@sixbell-telco/sdk 1.0.1 → 1.0.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.
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,71 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
7
 
9
8
  ## [Unreleased]
10
9
 
11
- ## [1.0.0] - 2025-07-17
10
+ ## [1.0.3] - 2025-07-23
11
+
12
+ ### Added
13
+
14
+ - **Theme**: Enhance theme management by updating backgrounds based on effective theme preference (`b3b5457`)
15
+ - **Testing**: Add Jest configuration and setup for Angular testing environment (`0a68a13`)
16
+ - **Testing**: Add jest-sonar-reporter, jest-html-reporters, and jest-junit to dependencies (`ec062bf`)
17
+ - **Testing**: Add CI test script for Jest coverage collection (`2a2748c`)
18
+ - **Storybook**: Add storybook build script to package.json (`69d8cf1`)
19
+ - **Storybook**: Add Dockerfile and nginx configuration for storybook SDK (`2137ff2`)
20
+ - **Storybook**: Implement scroll reset functionality for Storybook navigation (`73cbc29`)
21
+ - **Storybook**: Add comprehensive welcome documentation for Sixbell Telco SDK (`471d831`)
22
+ - **Storybook**: Add comprehensive color palette documentation for design system (`64e0f3f`)
23
+ - **Storybook**: Add accessibility documentation for design system (`50b58d2`)
24
+ - **Storybook**: Add comprehensive spacing and layout documentation for design system (`b4feee3`)
25
+ - **Storybook**: Add onload action to Meta component for improved user experience (`8d8c5cd`, `35e0fff`, `600b471`, `bcf8567`)
26
+ - **Storybook**: Enhance theme management and toggle button functionality (`94ecbc9`)
27
+ - **Storybook**: Implement global theme change listener and enhance docs styling for better theme integration (`e49e1b6`)
28
+ - **Storybook**: Enhance theme application by dispatching theme change event to iframe and forcing docs refresh (`269b91a`)
29
+ - **Table**: Add allowClear property to paginator select component (`d010f64`)
30
+
31
+ ### Changed
32
+
33
+ - **Storybook**: Update docs and configuration (`3245167`, `a643030`, `c29c8e2`, `d80ceff`, `96859fc`)
34
+ - **TypeScript Config**: Streamline and update exclude/include paths for improved type checking (`d06b710`, `71aa1c0`, `7a1a60c`, `2d6b416`)
35
+ - **Theme**: Reorganize imports and improve theme application logic (`03ef08c`)
36
+ - **Product Card**: Update directives to use 'st' prefix and define User interface (`b1d2dea`)
37
+ - **Product Card**: Enhance product card stories with new actions and image support (`fa18960`)
38
+ - **ESLint**: Simplify commands and update configuration for TypeScript and Angular rules (`60dbed0`, `b6f1b25`)
39
+ - **Directives**: Update selectors from 'app' to 'st' prefix for consistency (`eff8030`)
40
+ - **CI/CD**: Update and simplify GitLab CI configuration for Angular and Storybook builds, remove unused jobs and variables (`5ba38a1`, `2a2748c`, `77e6145`, `f2bd1b0`, `63da8de`, `bb3b514`, `22183dc`, `17d53b3`)
41
+ - **Assets**: Remove unused asset files from stories (`d5d8311`)
42
+ - **Storybook**: Clean up scroll reset logic and improve theme handling (`67bc80c`, `1f656fe`)
43
+ - **Dropdown**: Update label rendering logic for clarity and remove unused link style (`ebcf301`)
44
+ - **Dropdown Stories**: Remove link style and associated stories for cleaner dropdown component (`696df1f`)
45
+ - **Dropdown Stories**: Change min story's min-height (`20323bb`)
46
+ - **Toggle Stories**: Reorganize imports and streamline story args for better readability (`3633eac`)
47
+ - **Notification**: Update badge styles for consistency and improve button shape variants (`f707e1c`)
48
+ - **Notification Stories**: Update shape option to 'rounded' and improve code formatting for clarity (`290c6b1`)
49
+ - **App Component**: Remove redundant dropdowns for improved clarity and maintainability (`7c590cf`)
50
+ - **App Component**: Remove shape attribute from notifications for consistency (`7303b64`)
51
+ - **Prettier**: Add \*.mdx to .prettierignore (`7905b65`)
52
+
53
+ ### Fixed
54
+
55
+ - **TimePipe**: Correct test suite name and ensure pipe creation and transformation are validated (`27def6b`)
56
+ - **AvatarComponent**: Simplify tests by removing unused code and redundant assertions (`dd9b895`)
57
+ - **Storybook**: Enhance design system section with detailed color and accessibility information (`893e857`)
58
+ - **Storybook**: Correct Meta component parameters formatting and add onload action (`22300a7`)
59
+ - **Storybook**: Return stored theme preference without type assertion (`67287cc`)
60
+
61
+ ### Removed
62
+
63
+ - **Storybook**: Remove periodic check for story changes to reduce noise (`41580fe`)
64
+ - **Storybook**: Remove custom theme handling component (`15b60d2`)
65
+
66
+ ## [1.0.2] - 2025-07-18
67
+
68
+ - **Package**: Add missing keywords to package.json and update `@angular/cdk` version constraint (`8316dc6`)
69
+ - **TailwindCSS**: Remove redundant class attribute from settings (`87fffeb`)
70
+ - **Readme**: Update with correct Node, NPM, and Angular versions; enhance translation service setup (`127eec6`)
71
+ - **Dependencies**: Update peerDependencies for compatibility with Angular and Tailwind CSS (`3c871f5`)
72
+ - **Theme**: Enable default and prefersdark settings for vivid_elegance_light theme (`efb2ca0`)
73
+
74
+ ## [1.0.1] - 2025-07-17
12
75
 
13
76
  ### Added
14
77
 
@@ -232,8 +295,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
232
295
  - **Input**: Add logic to handle disable state properly with related styles (`07e84f2`)
233
296
  - **File Type Validator**: Improve file extension validation logic and error messaging
234
297
  - **Button Styling**:
235
- - Fix alignment and styling of play button component
236
- - Improve icon alignment in button component
298
+ - Fix alignment and styling of play button component
299
+ - Improve icon alignment in button component
237
300
  - **Wizard Wrapper**: Fix background color for horizontal and vertical variants (`30a5f3d`)
238
301
  - **AudioPlayer**:
239
302
  - Enhanced initialization/cleanup processes
@@ -324,8 +387,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
324
387
  - **Showcase**: Upgrade table showcase section (4c02afa4)
325
388
  - **Typography Directive**: Update directive scale to minor second for improved readability and consistency
326
389
  - **Modal Component**:
327
- - Update default width from 'fit' to 'lg' (cc95896)
328
- - Enhance component with additional width variants (b5db589)
390
+ - Update default width from 'fit' to 'lg' (cc95896)
391
+ - Enhance component with additional width variants (b5db589)
329
392
  - **Changelog**: Updated documentation in changelog.md (`528b633`)
330
393
  - **Readme**: Updated documentation in README (`528b633`)
331
394
  - **VScode Settings**: Updated VSCode settings (`528b633`)
@@ -576,22 +639,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
576
639
  - Integrate form control support
577
640
  - Enhance file input handling
578
641
  - **Component Styling**:
579
- - **Text and Typography**:
580
- - Updated badge text sizes for improved readability and scaling
581
- - Enhanced textarea text sizes for better readability
582
- - Adjusted select text sizes for improved scaling
583
- - Modified input text sizes for better scaling
584
- - Updated audio-timeline text size to 'body-xxs'
585
- - Refined table paginator text size
586
- - **Layout and Structure**:
587
- - Enhanced card layout and spacing
588
- - Updated icon color variants
589
- - Modified tab sizes and text styles
590
- - Improved dropdown button sizes and text styles
591
- - Streamlined file-dropzone button structure
592
- - **Width and Alignment**:
593
- - Enhanced input component's full width handling
594
- - Improved vertical alignment across multiple components
642
+ - **Text and Typography**:
643
+ - Updated badge text sizes for improved readability and scaling
644
+ - Enhanced textarea text sizes for better readability
645
+ - Adjusted select text sizes for improved scaling
646
+ - Modified input text sizes for better scaling
647
+ - Updated audio-timeline text size to 'body-xxs'
648
+ - Refined table paginator text size
649
+ - **Layout and Structure**:
650
+ - Enhanced card layout and spacing
651
+ - Updated icon color variants
652
+ - Modified tab sizes and text styles
653
+ - Improved dropdown button sizes and text styles
654
+ - Streamlined file-dropzone button structure
655
+ - **Width and Alignment**:
656
+ - Enhanced input component's full width handling
657
+ - Improved vertical alignment across multiple components
595
658
  - **Tailwind**: Added custom sizes for buttons, inputs, and selects
596
659
  - **File Dropzone**:
597
660
  - Adjust layout and typography for improved file display
@@ -606,8 +669,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
606
669
  - Improved performance by converting getters to computed properties (44beb75)
607
670
  - Updated user properties to use first and last initials (511e43c)
608
671
  - **Button Component**:
609
- - Enhance with comprehensive size variants and improved documentation
610
- - Update containerClass to use computed property for better performance
672
+ - Enhance with comprehensive size variants and improved documentation
673
+ - Update containerClass to use computed property for better performance
611
674
  - **Tailwind Config**: Update error and accent color values for improved consistency
612
675
  - Enhanced JSDoc documentation for multiple components (`wizard-content`, `wizard-marker`, `wizard-step`, `wizard-sub-step`, `wizard-wrapper`, `wizard.service`)
613
676
  - Updated examples for improved component clarity
@@ -689,4 +752,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
689
752
  - **Storybook Definitions**: Update storybook definitions (`c5c19a8`)
690
753
  - **Code Changes**: Implement code changes to enhance functionality and improve performance (`13db375`)
691
754
  - **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
- ![sixbell-telco-sdk-banner](https://i.ibb.co/MScWwsQ/banner.png)
9
+ [![sixbell-telco-sdk-banner](https://i.postimg.cc/QNQ1CphY/banner.png)](https://postimg.cc/0rNbHK67)
10
10
 
11
11
  ## Pre-requirements
12
12
 
13
- - Angular 18.X.X or later
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.scss';
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", "classes"],
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@18.2.0
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. Finally, set up the basic configuration in your app.component to load the translations:
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
- constructor(private translate: TranslateService) {
498
- this.translate.addLangs(['en', 'es', 'pt']);
499
- this.translate.setDefaultLang('en');
500
- this.translate.use('en');
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 17th, 2025.
589
+ This file was last updated in July 18th, 2025.
package/_index.css CHANGED
@@ -13,8 +13,8 @@
13
13
 
14
14
  @plugin "daisyui/theme" {
15
15
  name: 'vivid_elegance_light';
16
- /* default: true; */
17
- /* prefersdark: false; */
16
+ default: true;
17
+ prefersdark: false;
18
18
  color-scheme: 'light';
19
19
 
20
20
  /* Daisy UI Colors */
@@ -91,11 +91,6 @@ export declare class DropdownComponent {
91
91
  * @defaultValue false
92
92
  */
93
93
  outline: import("@angular/core").InputSignal<boolean>;
94
- /**
95
- * Link button style (appears as a hyperlink)
96
- * @defaultValue false
97
- */
98
- link: import("@angular/core").InputSignal<boolean>;
99
94
  /**
100
95
  * Soft button style (muted/subdued color variant)
101
96
  * @defaultValue false
@@ -187,5 +182,5 @@ export declare class DropdownComponent {
187
182
  */
188
183
  handleClickOuside(): void;
189
184
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
190
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "st-dropdown", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "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; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "menuPosition": { "alias": "menuPosition"; "required": false; "isSignal": true; }; "menuAlignment": { "alias": "menuAlignment"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "isOpened": "isOpenedChange"; "toggled": "toggled"; }, never, ["*"], true, never>;
185
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "st-dropdown", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "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; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "menuPosition": { "alias": "menuPosition"; "required": false; "isSignal": true; }; "menuAlignment": { "alias": "menuAlignment"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "isOpened": "isOpenedChange"; "toggled": "toggled"; }, never, ["*"], true, never>;
191
186
  }
@@ -2,11 +2,11 @@ import * as i0 from "@angular/core";
2
2
  export type NotificationStatus = 'seen' | 'unseen';
3
3
  export declare const notificationComponent: (props?: ({
4
4
  variant?: "primary" | null | undefined;
5
- shape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
5
+ shape?: "rounded" | null | undefined;
6
6
  size?: "auto" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export type NotificationVariantProps = 'primary';
9
- export type NotificationShapeProps = 'round-sm' | 'round-md' | 'round-lg';
9
+ export type NotificationShapeProps = 'rounded';
10
10
  export type NotificationSizeProps = 'auto';
11
11
  export type NotificationProps = {
12
12
  variant?: NotificationVariantProps;
@@ -15,7 +15,7 @@ export type NotificationProps = {
15
15
  };
16
16
  export declare class NotificationComponent {
17
17
  variant: import("@angular/core").InputSignal<"primary" | undefined>;
18
- shape: import("@angular/core").InputSignal<NotificationShapeProps | undefined>;
18
+ shape: import("@angular/core").InputSignal<"rounded" | undefined>;
19
19
  size: import("@angular/core").InputSignal<"auto" | undefined>;
20
20
  icon: import("@angular/core").InputSignal<string>;
21
21
  status: import("@angular/core").InputSignal<NotificationStatus>;
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class ProductCardActionsDirective {
4
4
  tplRef: TemplateRef<any>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardActionsDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardActionsDirective, "[appProductCardActions]", never, {}, {}, never, never, true, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardActionsDirective, "[stProductCardActions]", never, {}, {}, never, never, true, never>;
7
7
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class ProductCardContentDirective {
4
4
  tplRef: TemplateRef<any>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardContentDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardContentDirective, "[appProductCardContent]", never, {}, {}, never, never, true, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardContentDirective, "[stProductCardContent]", never, {}, {}, never, never, true, never>;
7
7
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class ProductCardHeaderDirective {
4
4
  tplRef: TemplateRef<any>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardHeaderDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardHeaderDirective, "[appProductCardHeader]", never, {}, {}, never, never, true, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProductCardHeaderDirective, "[stProductCardHeader]", never, {}, {}, never, never, true, never>;
7
7
  }
@@ -128,11 +128,6 @@ class DropdownComponent {
128
128
  * @defaultValue false
129
129
  */
130
130
  outline = input(false);
131
- /**
132
- * Link button style (appears as a hyperlink)
133
- * @defaultValue false
134
- */
135
- link = input(false);
136
131
  /**
137
132
  * Soft button style (muted/subdued color variant)
138
133
  * @defaultValue false
@@ -210,7 +205,6 @@ class DropdownComponent {
210
205
  }), {
211
206
  'btn-ghost': this.ghost(),
212
207
  'btn-outline': this.outline(),
213
- 'btn-link': this.link(),
214
208
  'btn-soft': this.soft(),
215
209
  'btn-dash': this.dash(),
216
210
  'btn-circle': this.circle(),
@@ -258,11 +252,11 @@ class DropdownComponent {
258
252
  this.toggled.emit(this.isOpened());
259
253
  }
260
254
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
261
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownComponent, isStandalone: true, selector: "st-dropdown", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, soft: { classPropertyName: "soft", publicName: "soft", isSignal: true, isRequired: false, transformFunction: null }, dash: { classPropertyName: "dash", publicName: "dash", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, menuPosition: { classPropertyName: "menuPosition", publicName: "menuPosition", isSignal: true, isRequired: false, transformFunction: null }, menuAlignment: { classPropertyName: "menuAlignment", publicName: "menuAlignment", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, isOpened: { classPropertyName: "isOpened", publicName: "isOpened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpened: "isOpenedChange", toggled: "toggled" }, ngImport: i0, template: "@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t<div>\n\t\t\t{{ labelVar }}\n\t\t</div>\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: ClickOutsideDirective, selector: "[stClickOutside]", outputs: ["outsideClick"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
255
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DropdownComponent, isStandalone: true, selector: "st-dropdown", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, soft: { classPropertyName: "soft", publicName: "soft", isSignal: true, isRequired: false, transformFunction: null }, dash: { classPropertyName: "dash", publicName: "dash", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, menuPosition: { classPropertyName: "menuPosition", publicName: "menuPosition", isSignal: true, isRequired: false, transformFunction: null }, menuAlignment: { classPropertyName: "menuAlignment", publicName: "menuAlignment", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, isOpened: { classPropertyName: "isOpened", publicName: "isOpened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpened: "isOpenedChange", toggled: "toggled" }, ngImport: i0, template: "@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t@if (labelVar) {\n\t\t\t<div>\n\t\t\t\t{{ labelVar }}\n\t\t\t</div>\n\t\t}\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: ClickOutsideDirective, selector: "[stClickOutside]", outputs: ["outsideClick"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
262
256
  }
263
257
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownComponent, decorators: [{
264
258
  type: Component,
265
- args: [{ selector: 'st-dropdown', imports: [CommonModule, ClickOutsideDirective, IconComponent], template: "@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t<div>\n\t\t\t{{ labelVar }}\n\t\t</div>\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n" }]
259
+ args: [{ selector: 'st-dropdown', imports: [CommonModule, ClickOutsideDirective, IconComponent], template: "@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t@if (labelVar) {\n\t\t\t<div>\n\t\t\t\t{{ labelVar }}\n\t\t\t</div>\n\t\t}\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n" }]
266
260
  }] });
267
261
 
268
262
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-dropdown.mjs","sources":["../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.ts","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, computed, input, model, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { ClickOutsideDirective } from '@sixbell-telco/sdk/directives/click-outside';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base dropdown button classes with style variants\n */\nexport const dropdownButton = cva(['btn', 'font-body', 'text-pretty', 'font-medium', 'leading-normal', 'items-center', 'align-top'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary'],\n\t\t\tsecondary: ['btn-secondary'],\n\t\t\ttertiary: ['btn-tertiary'],\n\t\t\taccent: ['btn-accent'],\n\t\t\tinfo: ['btn-info'],\n\t\t\tsuccess: ['btn-success'],\n\t\t\twarning: ['btn-warning'],\n\t\t\terror: ['btn-error'],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['btn-xs'],\n\t\t\tsm: ['btn-sm'],\n\t\t\tmd: ['btn-md'],\n\t\t\tlg: ['btn-lg'],\n\t\t\txl: ['btn-xl'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: [''],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t\ticonPosition: 'left',\n\t},\n});\n\n/** Possible dropdown button style variants */\nexport type DropdownButtonVariantProps =\n\t| 'primary'\n\t| 'secondary'\n\t| 'tertiary'\n\t| 'accent'\n\t| 'info'\n\t| 'success'\n\t| 'warning'\n\t| 'error'\n\t| 'icon'\n\t| null\n\t| undefined;\n\n/** Possible dropdown button alignment options */\nexport type DropdownButtonAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\n/** Possible dropdown button icon positions */\nexport type DropdownButtonPositionProps = 'left' | 'right' | null | undefined;\n\n/** Possible dropdown button size variants */\nexport type DropdownButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/**\n * @internal\n * Generates base dropdown menu classes with positioning variants\n */\nexport const dropdownMenu = cva(['dropdown'], {\n\tvariants: {\n\t\tmenuPosition: {\n\t\t\ttop: ['dropdown-top'],\n\t\t\tbottom: ['dropdown-bottom'],\n\t\t\tright: ['dropdown-right'],\n\t\t\tleft: ['dropdown-left'],\n\t\t},\n\t\tmenuAlignment: {\n\t\t\tstart: [''],\n\t\t\tend: ['dropdown-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tmenuPosition: 'bottom',\n\t\tmenuAlignment: 'start',\n\t},\n});\n\n/** Possible dropdown menu position variants */\nexport type DropdownMenuPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Possible dropdown menu alignment variants */\nexport type DropdownMenuAlignmentProps = 'start' | 'end' | null | undefined;\n\n/** Configuration object for dropdown styling variants */\nexport type DropdownProps = {\n\tvariant?: DropdownButtonVariantProps;\n\talignment?: DropdownButtonAlignmentProps;\n\tmenuAlignment?: DropdownMenuAlignmentProps;\n\tmenuPosition?: DropdownMenuPositionProps;\n\ticonPosition?: DropdownButtonPositionProps;\n};\n\n/**\n * @internal\n * Combines dropdown button and menu classes\n */\nexport const dropdownComponent = ({ variant, menuAlignment, menuPosition, iconPosition }: DropdownProps = {}) =>\n\tcx(dropdownButton({ variant, iconPosition }), dropdownMenu({ menuAlignment, menuPosition }));\n\n/**\n * A customizable dropdown component with menu positioning and various styling options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports multiple button variants, menu positioning, and responsive behavior.\n *\n * @example\n * ```html\n * <st-dropdown\n * variant=\"primary\"\n * menuPosition=\"bottom\"\n * menuAlignment=\"end\"\n * icon=\"chevron-down\"\n * >\n * <button>Actions</button>\n * <div slot=\"menu\">\n * <button class=\"menu-item\">Edit</button>\n * <button class=\"menu-item\">Delete</button>\n * </div>\n * </st-dropdown>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown\n * variant=\"icon\"\n * menuPosition=\"right\"\n * icon=\"more-vertical\"\n * >\n * <div slot=\"menu\">...</div>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown',\n\timports: [CommonModule, ClickOutsideDirective, IconComponent],\n\ttemplateUrl: './dropdown.component.html',\n\tstyles: '',\n})\nexport class DropdownComponent {\n\t/**\n\t * Button style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<DropdownButtonVariantProps>();\n\n\t/**\n\t * Ghost button style (transparent background)\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Outline button style (border with transparent fill)\n\t * @defaultValue false\n\t */\n\toutline = input<boolean>(false);\n\n\t/**\n\t * Link button style (appears as a hyperlink)\n\t * @defaultValue false\n\t */\n\tlink = input<boolean>(false);\n\n\t/**\n\t * Soft button style (muted/subdued color variant)\n\t * @defaultValue false\n\t */\n\tsoft = input<boolean>(false);\n\n\t/**\n\t * Dash button style (dashed border)\n\t * @defaultValue false\n\t */\n\tdash = input<boolean>(false);\n\n\t/**\n\t * Circular button shape\n\t * @defaultValue false\n\t */\n\tcircle = input<boolean>(false);\n\n\t/**\n\t * Square button shape\n\t * @defaultValue false\n\t */\n\tsquare = input<boolean>(false);\n\n\t/**\n\t * Glass effect styling\n\t * @defaultValue false\n\t */\n\tglass = input<boolean>(false);\n\n\t/**\n\t * Button size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<DropdownButtonSizeProps>();\n\n\t/**\n\t * Add drop shadow\n\t * @defaultValue false\n\t */\n\tshadow = input<boolean>(false);\n\n\t/**\n\t * Icon name (from icon library)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Position of icon relative to text\n\t */\n\ticonPosition = input<DropdownButtonPositionProps>();\n\n\t/**\n\t * Position of dropdown menu relative to button\n\t * @defaultValue 'bottom'\n\t */\n\tmenuPosition = input<DropdownMenuPositionProps>('bottom');\n\n\t/**\n\t * Alignment of dropdown menu content\n\t */\n\tmenuAlignment = input<DropdownMenuAlignmentProps>();\n\n\t/**\n\t * Button label text\n\t */\n\tlabel = input<string | undefined>('');\n\n\t/**\n\t * Controls dropdown open/close state\n\t * @defaultValue false\n\t */\n\tisOpened = model<boolean>(false);\n\n\t/**\n\t * Event emitted when dropdown toggle state changes\n\t */\n\ttoggled = output<boolean>();\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown button\n\t */\n\tbuttonClass = computed(() => {\n\t\treturn cn(\n\t\t\tdropdownButton({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'btn-ghost': this.ghost(),\n\t\t\t\t'btn-outline': this.outline(),\n\t\t\t\t'btn-link': this.link(),\n\t\t\t\t'btn-soft': this.soft(),\n\t\t\t\t'btn-dash': this.dash(),\n\t\t\t\t'btn-circle': this.circle(),\n\t\t\t\t'btn-square': this.square(),\n\t\t\t\tglass: this.glass(),\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown menu container\n\t */\n\tmenuClass = computed(() => {\n\t\treturn cn(\n\t\t\tdropdownMenu({\n\t\t\t\tmenuPosition: this.menuPosition(),\n\t\t\t\tmenuAlignment: this.menuAlignment(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown content\n\t */\n\tdropdownContentClass = computed(() => {\n\t\treturn cn('menu dropdown-content rounded-box bg-base-300 p-2 shadow-main', {\n\t\t\t'mb-1': this.menuPosition() === 'top',\n\t\t\t'mt-1': this.menuPosition() === 'bottom',\n\t\t\t'ml-1': this.menuPosition() === 'right',\n\t\t\t'mr-1': this.menuPosition() === 'left',\n\t\t});\n\t});\n\n\t/**\n\t * @internal\n\t * Toggles dropdown visibility state\n\t */\n\thandleToggle() {\n\t\tthis.isOpened.set(!this.isOpened());\n\t\tthis.toggled.emit(this.isOpened());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click outside to close dropdown\n\t */\n\thandleClickOuside() {\n\t\tthis.isOpened.set(false);\n\t\tthis.toggled.emit(this.isOpened());\n\t}\n}\n","@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t<div>\n\t\t\t{{ labelVar }}\n\t\t</div>\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n","import { Component, Host, output } from '@angular/core';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * A selectable item component for use within dropdown menus\n *\n * @remarks\n * Designed to be used inside `<st-dropdown>` components. Handles selection events\n * and automatically closes the parent dropdown when clicked.\n *\n * @example\n * ```html\n * <st-dropdown-item (selected)=\"handleItemSelect()\">\n * <st-icon icon=\"check\"></st-icon>\n * <span typography>Select Item</span>\n * </st-dropdown-item>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown-item class=\"custom-item-style\" (selected)=\"logSelection()\">\n * Custom styled item\n * </st-dropdown-item>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-item',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-item.component.html',\n})\nexport class DropdownItemComponent {\n\t/**\n\t * Event emitted when the item is selected\n\t */\n\tselected = output();\n\n\t/**\n\t * @internal\n\t * Reference to parent dropdown component\n\t */\n\tconstructor(@Host() private dropdown: DropdownComponent) {}\n\n\t/**\n\t * @internal\n\t * Handles item selection and dropdown state\n\t */\n\thandleSelect() {\n\t\tthis.selected.emit();\n\t\tthis.dropdown.handleToggle();\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<li (click)=\"handleSelect()\">\n\t<ng-content></ng-content>\n</li>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.DropdownComponent"],"mappings":";;;;;;;;AAOA;;;AAGG;MACU,cAAc,GAAG,GAAG,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE;AACpI,IAAA,QAAQ,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["../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.ts","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, computed, input, model, output } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { ClickOutsideDirective } from '@sixbell-telco/sdk/directives/click-outside';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base dropdown button classes with style variants\n */\nexport const dropdownButton = cva(['btn', 'font-body', 'text-pretty', 'font-medium', 'leading-normal', 'items-center', 'align-top'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary'],\n\t\t\tsecondary: ['btn-secondary'],\n\t\t\ttertiary: ['btn-tertiary'],\n\t\t\taccent: ['btn-accent'],\n\t\t\tinfo: ['btn-info'],\n\t\t\tsuccess: ['btn-success'],\n\t\t\twarning: ['btn-warning'],\n\t\t\terror: ['btn-error'],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['btn-xs'],\n\t\t\tsm: ['btn-sm'],\n\t\t\tmd: ['btn-md'],\n\t\t\tlg: ['btn-lg'],\n\t\t\txl: ['btn-xl'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: [''],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'secondary',\n\t\tsize: 'md',\n\t\ticonPosition: 'left',\n\t},\n});\n\n/** Possible dropdown button style variants */\nexport type DropdownButtonVariantProps =\n\t| 'primary'\n\t| 'secondary'\n\t| 'tertiary'\n\t| 'accent'\n\t| 'info'\n\t| 'success'\n\t| 'warning'\n\t| 'error'\n\t| 'icon'\n\t| null\n\t| undefined;\n\n/** Possible dropdown button alignment options */\nexport type DropdownButtonAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\n/** Possible dropdown button icon positions */\nexport type DropdownButtonPositionProps = 'left' | 'right' | null | undefined;\n\n/** Possible dropdown button size variants */\nexport type DropdownButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/**\n * @internal\n * Generates base dropdown menu classes with positioning variants\n */\nexport const dropdownMenu = cva(['dropdown'], {\n\tvariants: {\n\t\tmenuPosition: {\n\t\t\ttop: ['dropdown-top'],\n\t\t\tbottom: ['dropdown-bottom'],\n\t\t\tright: ['dropdown-right'],\n\t\t\tleft: ['dropdown-left'],\n\t\t},\n\t\tmenuAlignment: {\n\t\t\tstart: [''],\n\t\t\tend: ['dropdown-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tmenuPosition: 'bottom',\n\t\tmenuAlignment: 'start',\n\t},\n});\n\n/** Possible dropdown menu position variants */\nexport type DropdownMenuPositionProps = 'top' | 'bottom' | 'right' | 'left' | null | undefined;\n\n/** Possible dropdown menu alignment variants */\nexport type DropdownMenuAlignmentProps = 'start' | 'end' | null | undefined;\n\n/** Configuration object for dropdown styling variants */\nexport type DropdownProps = {\n\tvariant?: DropdownButtonVariantProps;\n\talignment?: DropdownButtonAlignmentProps;\n\tmenuAlignment?: DropdownMenuAlignmentProps;\n\tmenuPosition?: DropdownMenuPositionProps;\n\ticonPosition?: DropdownButtonPositionProps;\n};\n\n/**\n * @internal\n * Combines dropdown button and menu classes\n */\nexport const dropdownComponent = ({ variant, menuAlignment, menuPosition, iconPosition }: DropdownProps = {}) =>\n\tcx(dropdownButton({ variant, iconPosition }), dropdownMenu({ menuAlignment, menuPosition }));\n\n/**\n * A customizable dropdown component with menu positioning and various styling options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports multiple button variants, menu positioning, and responsive behavior.\n *\n * @example\n * ```html\n * <st-dropdown\n * variant=\"primary\"\n * menuPosition=\"bottom\"\n * menuAlignment=\"end\"\n * icon=\"chevron-down\"\n * >\n * <button>Actions</button>\n * <div slot=\"menu\">\n * <button class=\"menu-item\">Edit</button>\n * <button class=\"menu-item\">Delete</button>\n * </div>\n * </st-dropdown>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown\n * variant=\"icon\"\n * menuPosition=\"right\"\n * icon=\"more-vertical\"\n * >\n * <div slot=\"menu\">...</div>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown',\n\timports: [CommonModule, ClickOutsideDirective, IconComponent],\n\ttemplateUrl: './dropdown.component.html',\n\tstyles: '',\n})\nexport class DropdownComponent {\n\t/**\n\t * Button style variant\n\t * @defaultValue 'secondary'\n\t */\n\tvariant = input<DropdownButtonVariantProps>();\n\n\t/**\n\t * Ghost button style (transparent background)\n\t * @defaultValue false\n\t */\n\tghost = input<boolean>(false);\n\n\t/**\n\t * Outline button style (border with transparent fill)\n\t * @defaultValue false\n\t */\n\toutline = input<boolean>(false);\n\n\t/**\n\t * Soft button style (muted/subdued color variant)\n\t * @defaultValue false\n\t */\n\tsoft = input<boolean>(false);\n\n\t/**\n\t * Dash button style (dashed border)\n\t * @defaultValue false\n\t */\n\tdash = input<boolean>(false);\n\n\t/**\n\t * Circular button shape\n\t * @defaultValue false\n\t */\n\tcircle = input<boolean>(false);\n\n\t/**\n\t * Square button shape\n\t * @defaultValue false\n\t */\n\tsquare = input<boolean>(false);\n\n\t/**\n\t * Glass effect styling\n\t * @defaultValue false\n\t */\n\tglass = input<boolean>(false);\n\n\t/**\n\t * Button size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<DropdownButtonSizeProps>();\n\n\t/**\n\t * Add drop shadow\n\t * @defaultValue false\n\t */\n\tshadow = input<boolean>(false);\n\n\t/**\n\t * Icon name (from icon library)\n\t */\n\ticon = input<string | undefined>();\n\n\t/**\n\t * Position of icon relative to text\n\t */\n\ticonPosition = input<DropdownButtonPositionProps>();\n\n\t/**\n\t * Position of dropdown menu relative to button\n\t * @defaultValue 'bottom'\n\t */\n\tmenuPosition = input<DropdownMenuPositionProps>('bottom');\n\n\t/**\n\t * Alignment of dropdown menu content\n\t */\n\tmenuAlignment = input<DropdownMenuAlignmentProps>();\n\n\t/**\n\t * Button label text\n\t */\n\tlabel = input<string | undefined>('');\n\n\t/**\n\t * Controls dropdown open/close state\n\t * @defaultValue false\n\t */\n\tisOpened = model<boolean>(false);\n\n\t/**\n\t * Event emitted when dropdown toggle state changes\n\t */\n\ttoggled = output<boolean>();\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown button\n\t */\n\tbuttonClass = computed(() => {\n\t\treturn cn(\n\t\t\tdropdownButton({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'btn-ghost': this.ghost(),\n\t\t\t\t'btn-outline': this.outline(),\n\t\t\t\t'btn-soft': this.soft(),\n\t\t\t\t'btn-dash': this.dash(),\n\t\t\t\t'btn-circle': this.circle(),\n\t\t\t\t'btn-square': this.square(),\n\t\t\t\tglass: this.glass(),\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t},\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown menu container\n\t */\n\tmenuClass = computed(() => {\n\t\treturn cn(\n\t\t\tdropdownMenu({\n\t\t\t\tmenuPosition: this.menuPosition(),\n\t\t\t\tmenuAlignment: this.menuAlignment(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * @internal\n\t * Computed class string for the dropdown content\n\t */\n\tdropdownContentClass = computed(() => {\n\t\treturn cn('menu dropdown-content rounded-box bg-base-300 p-2 shadow-main', {\n\t\t\t'mb-1': this.menuPosition() === 'top',\n\t\t\t'mt-1': this.menuPosition() === 'bottom',\n\t\t\t'ml-1': this.menuPosition() === 'right',\n\t\t\t'mr-1': this.menuPosition() === 'left',\n\t\t});\n\t});\n\n\t/**\n\t * @internal\n\t * Toggles dropdown visibility state\n\t */\n\thandleToggle() {\n\t\tthis.isOpened.set(!this.isOpened());\n\t\tthis.toggled.emit(this.isOpened());\n\t}\n\n\t/**\n\t * @internal\n\t * Handles click outside to close dropdown\n\t */\n\thandleClickOuside() {\n\t\tthis.isOpened.set(false);\n\t\tthis.toggled.emit(this.isOpened());\n\t}\n}\n","@let iconVar = icon();\n@let labelVar = label();\n@let isOpenedVar = isOpened();\n@let menuClassVar = menuClass();\n@let buttonClassVar = buttonClass();\n@let dropdownContentClassVar = dropdownContentClass();\n\n<details dropdown [class]=\"menuClassVar\" [attr.open]=\"isOpenedVar ? undefined : null\" stClickOutside (outsideClick)=\"handleClickOuside()\">\n\t<summary [class]=\"buttonClassVar\" (click)=\"handleToggle()\">\n\t\t@if (iconVar) {\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"auto\"></st-icon>\n\t\t}\n\t\t@if (labelVar) {\n\t\t\t<div>\n\t\t\t\t{{ labelVar }}\n\t\t\t</div>\n\t\t}\n\t</summary>\n\t<ul [class]=\"dropdownContentClassVar\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</details>\n","import { Component, Host, output } from '@angular/core';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * A selectable item component for use within dropdown menus\n *\n * @remarks\n * Designed to be used inside `<st-dropdown>` components. Handles selection events\n * and automatically closes the parent dropdown when clicked.\n *\n * @example\n * ```html\n * <st-dropdown-item (selected)=\"handleItemSelect()\">\n * <st-icon icon=\"check\"></st-icon>\n * <span typography>Select Item</span>\n * </st-dropdown-item>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown-item class=\"custom-item-style\" (selected)=\"logSelection()\">\n * Custom styled item\n * </st-dropdown-item>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-item',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-item.component.html',\n})\nexport class DropdownItemComponent {\n\t/**\n\t * Event emitted when the item is selected\n\t */\n\tselected = output();\n\n\t/**\n\t * @internal\n\t * Reference to parent dropdown component\n\t */\n\tconstructor(@Host() private dropdown: DropdownComponent) {}\n\n\t/**\n\t * @internal\n\t * Handles item selection and dropdown state\n\t */\n\thandleSelect() {\n\t\tthis.selected.emit();\n\t\tthis.dropdown.handleToggle();\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<li (click)=\"handleSelect()\">\n\t<ng-content></ng-content>\n</li>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.DropdownComponent"],"mappings":";;;;;;;;AAOA;;;AAGG;MACU,cAAc,GAAG,GAAG,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE;AACpI,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,SAAS,EAAE,CAAC,eAAe,CAAC;YAC5B,QAAQ,EAAE,CAAC,cAAc,CAAC;YAC1B,MAAM,EAAE,CAAC,YAAY,CAAC;YACtB,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,KAAK,EAAE,CAAC,WAAW,CAAC;AACpB,YAAA,IAAI,EAAE;gBACL,WAAW;gBACX,cAAc;gBACd,oBAAoB;gBACpB,sBAAsB;gBACtB,6BAA6B;gBAC7B,iCAAiC;gBACjC,+BAA+B;AAC/B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H,YAAY,GAAA;AACX,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;AACpB,QAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;;uGAlBjB,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,iBAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,+GC9BlC,mOAKA,EAAA,CAAA;;2FDyBa,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,cAChB,IAAI,EAAA,QAAA,EAAA,mOAAA,EAAA;;0BAaH;;;AExCd;;AAEG;;;;"}
@@ -287,7 +287,7 @@ class InputComponent {
287
287
  useExisting: InputComponent,
288
288
  multi: true,
289
289
  },
290
- ], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body pt-0 text-pretty\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: JustNumbersDirective, selector: "[stJustNumbers]", inputs: ["justNumbers"] }] });
290
+ ], ngImport: i0, template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body pt-0 text-pretty\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutofocusDirective, selector: "[stAutofocus]", inputs: ["focus"] }, { kind: "directive", type: JustNumbersDirective, selector: "[stJustNumbers]", inputs: ["justNumbers"] }] });
291
291
  }
292
292
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: InputComponent, decorators: [{
293
293
  type: Component,
@@ -297,7 +297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
297
297
  useExisting: InputComponent,
298
298
  multi: true,
299
299
  },
300
- ], template: "<!-- eslint-disable @angular-eslint/template/no-autofocus -->\n@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body pt-0 text-pretty\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
300
+ ], template: "@let labelVar = label();\n\n<fieldset class=\"fieldset p-0\">\n\t@if (labelVar) {\n\t\t<legend class=\"fieldset-legend font-body pt-0 text-pretty\">{{ labelVar }}</legend>\n\t}\n\t<div [class]=\"validationClass()\">\n\t\t<!-- Left content -->\n\t\t<ng-content select=\"st-input-content[alignment='start']\"></ng-content>\n\n\t\t<!-- Input field -->\n\t\t<input\n\t\t\tclass=\"w-full grow\"\n\t\t\t[type]=\"type()\"\n\t\t\t[attr.name]=\"name()\"\n\t\t\t[attr.placeholder]=\"placeholder()\"\n\t\t\t[(ngModel)]=\"value\"\n\t\t\t[disabled]=\"disabled()\"\n\t\t\t[readonly]=\"readonly()\"\n\t\t\t(ngModelChange)=\"handleChange()\"\n\t\t\t(keyup.enter)=\"handleEnter()\"\n\t\t\t(blur)=\"handleBlur()\"\n\t\t\t[justNumbers]=\"justNumbers()\"\n\t\t\t[focus]=\"focus()\"\n\t\t\tstJustNumbers\n\t\t\tstAutofocus\n\t\t/>\n\n\t\t<!-- Right content -->\n\t\t<ng-content select=\"st-input-content[alignment='end']\"></ng-content>\n\t</div>\n\n\t<!-- Hidden label for accessibility -->\n\t<label class=\"sr-only\" [for]=\"name()\">{{ labelVar }}</label>\n\n\t<!-- Additional content -->\n\t<ng-content select=\":not(st-input-content)\"></ng-content>\n</fieldset>\n" }]
301
301
  }], ctorParameters: () => [] });
302
302
 
303
303
  /**