@sixbell-telco/sdk 0.11.0 → 0.13.0
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 +29 -0
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/card/card-actions/card-actions.component.d.ts +1 -1
- package/components/forms/input/src/input.component.d.ts +3 -1
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/icon/src/icon.component.d.ts +1 -1
- package/components/link/src/link.component.d.ts +1 -1
- package/components/modal/modal-actions/modal-actions.component.d.ts +1 -1
- package/components/modal/src/modal.component.d.ts +2 -2
- package/components/notification/src/notification.component.d.ts +2 -3
- package/components/product-card/src/product-card.component.d.ts +4 -4
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
- package/components/tab/directives/tab-header/tab-header.directive.d.ts +1 -1
- package/components/tab/src/tab.component.d.ts +1 -1
- package/components/table/src/table.component.d.ts +1 -1
- package/components/toast/toast-message/toast-message.component.d.ts +1 -1
- package/components/wizard/wizard-actions/wizard-actions.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +8 -1
- package/directives/auto-focus/index.d.ts +5 -0
- package/directives/auto-focus/public-api.d.ts +1 -0
- package/directives/auto-focus/src/autofocus.directive.d.ts +93 -0
- package/directives/click-outside/src/click-outside.directive.d.ts +48 -3
- package/directives/only-numbers/index.d.ts +5 -0
- package/directives/only-numbers/public-api.d.ts +1 -0
- package/directives/only-numbers/src/only-numbers.directive.d.ts +9 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -11
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +18 -18
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +8 -8
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +13 -9
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +17 -209
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +6 -8
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +27 -26
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +12 -9
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +29 -37
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +21 -23
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +10 -10
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +25 -41
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +42 -26
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +206 -0
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +53 -10
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +52 -0
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
- package/package.json +56 -48
package/CHANGELOG.md
CHANGED
|
@@ -154,6 +154,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
154
154
|
- **Modal**: Added start/end alignment options
|
|
155
155
|
- **FormError**: Added translation support for custom error messages
|
|
156
156
|
- **Styles**: Added soft button and badge styles for visual consistency
|
|
157
|
+
- **New Directives:**
|
|
158
|
+
- `auto-focus`: Automatically focuses elements when visible (`c2106fe`)
|
|
159
|
+
- `only-numbers`: Restricts input fields to numeric values (`8319468`)
|
|
157
160
|
|
|
158
161
|
### Fixed
|
|
159
162
|
|
|
@@ -197,6 +200,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
197
200
|
- Fixed form field reactivity in Dropzone
|
|
198
201
|
- Enhanced styling consistency in Avatar, Button, and Wizard components
|
|
199
202
|
- Corrected VSCode settings and file nesting patterns
|
|
203
|
+
- **Styles**: Fixed tailwind initialization and styles detection for showcase
|
|
204
|
+
- **Dropdown:** Updated `clickOutside` implementation and class adjustments (`17aa2cb`)
|
|
205
|
+
- **Tooling:** Standardized ESLint configuration formatting and Angular directive prefixes (`4a00230`)
|
|
206
|
+
- **Wizard Components:**
|
|
207
|
+
- Added button loading state functionality to wizard wrapper (`b76cfed`)
|
|
200
208
|
|
|
201
209
|
### Removed
|
|
202
210
|
|
|
@@ -544,3 +552,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
544
552
|
- Removed redundant classes and ESLint disable comments
|
|
545
553
|
- Improved class naming consistency
|
|
546
554
|
- Streamlined component structures
|
|
555
|
+
- **Dynamic Class Handling:**
|
|
556
|
+
Refactored `componentClass` to use computed properties for dynamic styling in:
|
|
557
|
+
- Accordion (`068786e`)
|
|
558
|
+
- Card actions (`88c8174`)
|
|
559
|
+
- Dropdown (via `clickOutside` updates) (`17aa2cb`)
|
|
560
|
+
- Icon (`e813dd2`)
|
|
561
|
+
- Link (`8fd2621`)
|
|
562
|
+
- Modal & Modal actions (`00d6312`, `00971cd`)
|
|
563
|
+
- Notification (`aa963c3`)
|
|
564
|
+
- Product card (`aa2dbbb`)
|
|
565
|
+
- Tabs/Tab headers/Content (`24484ae`, `ec1980a`, `625ced4`)
|
|
566
|
+
- Toast messages (`8f50776`)
|
|
567
|
+
- Toggle (`42737fb`)
|
|
568
|
+
- Wizard actions (`473abf1`)
|
|
569
|
+
- **Directive Enhancements:**
|
|
570
|
+
- Improved `clickOutside` directive with documentation and event naming updates (`3b14551`)
|
|
571
|
+
- Integrated `auto-focus` and `only-numbers` into Input component (`6383a3c`)
|
|
572
|
+
- **Event Handling:**
|
|
573
|
+
- Standardized event bindings in app countdown and wizard components (`cf703f5`)
|
|
574
|
+
- **Dynamic Styling:**
|
|
575
|
+
- Updated class binding to use function-based assignment in wizard actions (`4134c30`)
|
|
@@ -15,7 +15,7 @@ export declare class AccordionItemComponent {
|
|
|
15
15
|
name: string;
|
|
16
16
|
type: string;
|
|
17
17
|
constructor(accordion: AccordionComponent);
|
|
18
|
-
|
|
18
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, [{ host: true; }]>;
|
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "st-accordion-item", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
21
|
}
|
|
@@ -30,7 +30,7 @@ export declare class CardActionsComponent {
|
|
|
30
30
|
* @internal
|
|
31
31
|
* Computed class string for the actions container
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardActionsComponent, never>;
|
|
35
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardActionsComponent, "st-card-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
36
|
}
|
|
@@ -70,6 +70,8 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
70
70
|
* @defaultValue false
|
|
71
71
|
*/
|
|
72
72
|
readonly: import("@angular/core").InputSignal<boolean>;
|
|
73
|
+
focus: import("@angular/core").InputSignal<boolean>;
|
|
74
|
+
onlyNumbers: import("@angular/core").InputSignal<boolean>;
|
|
73
75
|
/**
|
|
74
76
|
* Whether to use ghost (transparent) styling
|
|
75
77
|
* @defaultValue false
|
|
@@ -173,6 +175,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
173
175
|
*/
|
|
174
176
|
private setupDebounce;
|
|
175
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
176
|
-
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; }; "readonly": { "alias": "readonly"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
178
|
+
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; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "onlyNumbers": { "alias": "onlyNumbers"; "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; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "enterPressed": "enterPressed"; "blurred": "blurred"; "valueDebounced": "valueDebounced"; }, never, ["st-input-content[alignment='start']", "st-input-content[alignment='end']", ":not(st-input-content)"], true, never>;
|
|
177
179
|
}
|
|
178
180
|
export {};
|
|
@@ -26,7 +26,7 @@ export declare class ToggleComponent {
|
|
|
26
26
|
valueUpdated: import("@angular/core").OutputEmitterRef<boolean>;
|
|
27
27
|
handleChange(): void;
|
|
28
28
|
handleBlur(): void;
|
|
29
|
-
|
|
29
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
31
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "st-toggle", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "valueUpdated": "valueUpdated"; }, never, never, true, never>;
|
|
32
32
|
}
|
|
@@ -13,7 +13,7 @@ export declare class IconComponent {
|
|
|
13
13
|
color: import("@angular/core").InputSignal<IconColorProps>;
|
|
14
14
|
size: import("@angular/core").InputSignal<IconSizeProps>;
|
|
15
15
|
icon: import("@angular/core").InputSignal<string>;
|
|
16
|
-
|
|
16
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
18
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>;
|
|
19
19
|
}
|
|
@@ -29,7 +29,7 @@ export declare class LinkComponent {
|
|
|
29
29
|
queryParamsHandling: import("@angular/core").InputSignal<import("@angular/router").QueryParamsHandling | null | undefined>;
|
|
30
30
|
fragment: import("@angular/core").InputSignal<string | undefined>;
|
|
31
31
|
constructor(router: Router);
|
|
32
|
-
|
|
32
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
34
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "st-link", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkOptions": { "alias": "routerLinkOptions"; "required": false; "isSignal": true; }; "routerLinkActive": { "alias": "routerLinkActive"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "fragment": { "alias": "fragment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
35
35
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
|
|
3
3
|
export declare class ModalActionsComponent {
|
|
4
4
|
alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
|
|
5
|
-
|
|
5
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalActionsComponent, never>;
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalActionsComponent, "st-modal-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
8
|
}
|
|
@@ -69,13 +69,13 @@ export declare class ModalComponent {
|
|
|
69
69
|
* @returns Combined Tailwind classes string
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
73
73
|
/**
|
|
74
74
|
* Computes CSS classes for modal overlay positioning
|
|
75
75
|
* @returns Combined positioning classes string
|
|
76
76
|
* @internal
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
modalClass: import("@angular/core").Signal<string>;
|
|
79
79
|
/** @internal Opens the native dialog element */
|
|
80
80
|
handleOpen(): void;
|
|
81
81
|
/** @internal Closes the native dialog element */
|
|
@@ -17,11 +17,10 @@ export declare class NotificationComponent {
|
|
|
17
17
|
variant: import("@angular/core").InputSignal<"primary" | undefined>;
|
|
18
18
|
shape: import("@angular/core").InputSignal<NotificationShapeProps | undefined>;
|
|
19
19
|
size: import("@angular/core").InputSignal<"auto" | undefined>;
|
|
20
|
-
classes: import("@angular/core").InputSignal<string>;
|
|
21
20
|
icon: import("@angular/core").InputSignal<string>;
|
|
22
21
|
status: import("@angular/core").InputSignal<NotificationStatus>;
|
|
23
22
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
24
|
-
|
|
23
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "st-notification", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "st-notification", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
26
|
}
|
|
@@ -57,10 +57,10 @@ export declare class ProductCardComponent {
|
|
|
57
57
|
header: import("@angular/core").Signal<ProductCardHeaderDirective | undefined>;
|
|
58
58
|
content: import("@angular/core").Signal<ProductCardContentDirective | undefined>;
|
|
59
59
|
actions: import("@angular/core").Signal<ProductCardActionsDirective | undefined>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
containerClass: import("@angular/core").Signal<string>;
|
|
61
|
+
figureClass: import("@angular/core").Signal<string>;
|
|
62
|
+
titleClass: import("@angular/core").Signal<string>;
|
|
63
|
+
actionsClass: import("@angular/core").Signal<string>;
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardComponent, never>;
|
|
65
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCardComponent, "st-product-card", never, { "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "figurePosition": { "alias": "figurePosition"; "required": false; "isSignal": true; }; "figureBackground": { "alias": "figureBackground"; "required": false; "isSignal": true; }; "figureAlignment": { "alias": "figureAlignment"; "required": false; "isSignal": true; }; "figurePaddingY": { "alias": "figurePaddingY"; "required": false; "isSignal": true; }; "figurePaddingX": { "alias": "figurePaddingX"; "required": false; "isSignal": true; }; "titleClasses": { "alias": "titleClasses"; "required": false; "isSignal": true; }; "actionsClasses": { "alias": "actionsClasses"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, ["header", "content", "actions"], never, true, never>;
|
|
66
66
|
}
|
|
@@ -11,7 +11,7 @@ export declare class TabContentDirective {
|
|
|
11
11
|
private element;
|
|
12
12
|
private renderer;
|
|
13
13
|
constructor(tabComponent: TabComponent);
|
|
14
|
-
|
|
14
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
15
15
|
classListEffect: import("@angular/core").EffectRef;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, [{ host: true; }]>;
|
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "div[tab-content]", never, { "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -10,7 +10,7 @@ export declare class TabHeaderDirective {
|
|
|
10
10
|
label: import("@angular/core").InputSignal<string>;
|
|
11
11
|
private element;
|
|
12
12
|
private renderer;
|
|
13
|
-
|
|
13
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
14
14
|
classListEffect: import("@angular/core").EffectRef;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderDirective, never>;
|
|
16
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabHeaderDirective, "a[tab-header]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -20,7 +20,7 @@ export declare class TabComponent {
|
|
|
20
20
|
size: import("@angular/core").InputSignal<TabSizeProps>;
|
|
21
21
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
22
22
|
active: import("@angular/core").InputSignal<boolean>;
|
|
23
|
-
|
|
23
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "st-tab", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
26
26
|
}
|
|
@@ -52,7 +52,7 @@ export type TablePagination = {
|
|
|
52
52
|
* [data]="users"
|
|
53
53
|
* [totalItems]="100"
|
|
54
54
|
* [pagination]="{ currentPage: 1, itemsPerPage: 10 }"
|
|
55
|
-
* (
|
|
55
|
+
* (pageChanged)="handlePageChange($event)"
|
|
56
56
|
* size="md"
|
|
57
57
|
* height="lg"
|
|
58
58
|
* zebra
|
|
@@ -19,7 +19,7 @@ export declare class ToastMessageComponent {
|
|
|
19
19
|
iconWarning: string;
|
|
20
20
|
iconError: string;
|
|
21
21
|
iconInfo: string;
|
|
22
|
-
|
|
22
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
23
23
|
handleClose(): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastMessageComponent, never>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToastMessageComponent, "st-toast-message", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "toast": { "alias": "toast"; "required": true; "isSignal": true; }; "toastAmount": { "alias": "toastAmount"; "required": true; "isSignal": true; }; "toastIndex": { "alias": "toastIndex"; "required": true; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export type WizardActionsAligmentProps = 'left' | 'right' | 'center';
|
|
3
3
|
export declare class WizardActionsComponent {
|
|
4
4
|
alignment: import("@angular/core").InputSignal<WizardActionsAligmentProps>;
|
|
5
|
-
|
|
5
|
+
componentClass: import("@angular/core").Signal<string>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<WizardActionsComponent, never>;
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<WizardActionsComponent, "st-wizard-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
8
|
}
|
|
@@ -91,6 +91,13 @@ export declare class WizardWrapperComponent {
|
|
|
91
91
|
* <st-wizard (complete)="showCompletionModal()">...</st-wizard>
|
|
92
92
|
*/
|
|
93
93
|
complete: import("@angular/core").OutputEmitterRef<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Controls visibility of the loading spinner for completition button
|
|
96
|
+
* @default false
|
|
97
|
+
* @example
|
|
98
|
+
* <st-wizard [loading]="true">...</st-wizard>
|
|
99
|
+
*/
|
|
100
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
94
101
|
/** @internal Material design chevron left icon */
|
|
95
102
|
iconChevronLeft: string;
|
|
96
103
|
/** @internal Material design chevron right icon */
|
|
@@ -149,5 +156,5 @@ export declare class WizardWrapperComponent {
|
|
|
149
156
|
*/
|
|
150
157
|
handleComplete(): void;
|
|
151
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<WizardWrapperComponent, never>;
|
|
152
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WizardWrapperComponent, "st-wizard", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "card": { "alias": "card"; "required": false; "isSignal": true; }; "showControls": { "alias": "showControls"; "required": false; "isSignal": true; }; }, { "back": "back"; "previous": "previous"; "next": "next"; "complete": "complete"; }, ["contents"], ["*", "st-wizard-actions"], true, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardWrapperComponent, "st-wizard", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "card": { "alias": "card"; "required": false; "isSignal": true; }; "showControls": { "alias": "showControls"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "back": "back"; "previous": "previous"; "next": "next"; "complete": "complete"; }, ["contents"], ["*", "st-wizard-actions"], true, never>;
|
|
153
160
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/autofocus.directive';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Directive that automatically focuses an element when it becomes visible.
|
|
5
|
+
*
|
|
6
|
+
* This directive uses multiple strategies to detect when an element becomes visible:
|
|
7
|
+
* - IntersectionObserver to detect when the element enters the viewport
|
|
8
|
+
* - MutationObserver to detect DOM changes that might affect visibility
|
|
9
|
+
* - Polling at regular intervals as a fallback mechanism
|
|
10
|
+
*
|
|
11
|
+
* The directive works reliably with modals, dialogs, accordions, and other UI components
|
|
12
|
+
* that dynamically show and hide content.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <!-- Basic usage -->
|
|
17
|
+
* <input [stAutofocus]="true" />
|
|
18
|
+
*
|
|
19
|
+
* <!-- Conditional autofocus -->
|
|
20
|
+
* <input [stAutofocus]="shouldFocus" />
|
|
21
|
+
*
|
|
22
|
+
* <!-- In a form inside a modal -->
|
|
23
|
+
* <st-modal>
|
|
24
|
+
* <input [stAutofocus]="true" />
|
|
25
|
+
* </st-modal>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @usageNotes
|
|
29
|
+
* The directive takes a boolean input that determines whether autofocus should be applied.
|
|
30
|
+
* When this value is true, the directive will attempt to focus the element once it becomes visible,
|
|
31
|
+
* and will continue to monitor the element's visibility state in case it changes.
|
|
32
|
+
*
|
|
33
|
+
* This is particularly useful for:
|
|
34
|
+
* - Elements in modals that need focus when opened
|
|
35
|
+
* - Elements in accordions/collapsible sections that should receive focus when expanded
|
|
36
|
+
* - Elements that are conditionally rendered and need focus when they appear
|
|
37
|
+
*
|
|
38
|
+
* @publicApi
|
|
39
|
+
*/
|
|
40
|
+
export declare class AutofocusDirective implements AfterViewInit, OnDestroy {
|
|
41
|
+
private elementRef;
|
|
42
|
+
/**
|
|
43
|
+
* Controls whether autofocus should be applied to the element.
|
|
44
|
+
* Set to true to enable autofocus.
|
|
45
|
+
*/
|
|
46
|
+
focus: import("@angular/core").InputSignal<boolean>;
|
|
47
|
+
/** Tracks the current visibility state of the element */
|
|
48
|
+
private isVisible;
|
|
49
|
+
/** Forces effect to run when visibility changes, even to the same value */
|
|
50
|
+
private changeTimestamp;
|
|
51
|
+
/** Collection of observers for cleanup */
|
|
52
|
+
private observers;
|
|
53
|
+
/** Interval used for polling visibility */
|
|
54
|
+
private pollingInterval;
|
|
55
|
+
/** Flag to prevent concurrent visibility checks */
|
|
56
|
+
private checkingVisibility;
|
|
57
|
+
/** Timeout reference for focus operation */
|
|
58
|
+
private focusTimeout;
|
|
59
|
+
constructor(elementRef: ElementRef);
|
|
60
|
+
/**
|
|
61
|
+
* Sets up visibility observers after the view is initialized
|
|
62
|
+
*/
|
|
63
|
+
ngAfterViewInit(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Cleans up all observers and timers to prevent memory leaks
|
|
66
|
+
*/
|
|
67
|
+
ngOnDestroy(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Sets up the IntersectionObserver to detect when the element enters or leaves the viewport
|
|
70
|
+
* @private
|
|
71
|
+
*/
|
|
72
|
+
private setupIntersectionObserver;
|
|
73
|
+
/**
|
|
74
|
+
* Sets up MutationObserver to detect style/class changes that might affect visibility
|
|
75
|
+
* Also monitors parent elements to detect when containers like modals appear/disappear
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
78
|
+
private setupMutationObserver;
|
|
79
|
+
/**
|
|
80
|
+
* Checks if the element is truly visible by examining computed style and dimensions
|
|
81
|
+
* @param force Whether to force a check even if one is already in progress
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
private checkVisibility;
|
|
85
|
+
/**
|
|
86
|
+
* Updates the visibility signal and triggers the effect by updating the timestamp
|
|
87
|
+
* @param visible The new visibility state
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
private updateVisibility;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[stAutofocus]", never, { "focus": { "alias": "focus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
@@ -1,10 +1,55 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Directive that detects clicks outside of an element and emits an event when they occur.
|
|
5
|
+
*
|
|
6
|
+
* This directive is useful for implementing dismissible UI components like dropdowns,
|
|
7
|
+
* modals, and popups that should close when a user clicks outside of them.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <!-- Basic usage -->
|
|
12
|
+
* <div stClickOutside (outsideClick)="closeDropdown()">
|
|
13
|
+
* Dropdown content
|
|
14
|
+
* </div>
|
|
15
|
+
*
|
|
16
|
+
* <!-- With conditional behavior -->
|
|
17
|
+
* <div stClickOutside (outsideClick)="isOpen ? closeDropdown() : null">
|
|
18
|
+
* Dropdown content that only closes when open
|
|
19
|
+
* </div>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @usageNotes
|
|
23
|
+
* The directive emits the `outsideClick` event when a click occurs outside
|
|
24
|
+
* the element it's attached to. It does not automatically hide or modify
|
|
25
|
+
* the element - you need to handle that in your component logic.
|
|
26
|
+
*
|
|
27
|
+
* Common use cases include:
|
|
28
|
+
* - Closing dropdowns when clicking elsewhere on the page
|
|
29
|
+
* - Dismissing modals when clicking outside the modal content
|
|
30
|
+
* - Hiding tooltips or popovers when clicking outside
|
|
31
|
+
*
|
|
32
|
+
* @publicApi
|
|
33
|
+
*/
|
|
3
34
|
export declare class ClickOutsideDirective {
|
|
4
35
|
private elementRef;
|
|
5
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Event emitted when a click occurs outside the element.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```html
|
|
41
|
+
* <div stClickOutside (outsideClick)="handleOutsideClick()">...</div>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
outsideClick: import("@angular/core").OutputEmitterRef<void>;
|
|
6
45
|
constructor(elementRef: ElementRef);
|
|
7
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Listens for clicks on the document and determines if they occurred
|
|
48
|
+
* outside the element this directive is attached to.
|
|
49
|
+
*
|
|
50
|
+
* @param event The mouse event from the document click
|
|
51
|
+
*/
|
|
52
|
+
clickedOutside(event: MouseEvent): void;
|
|
8
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[stClickOutside]", never, {}, { "outsideClick": "outsideClick"; }, never, never, true, never>;
|
|
10
55
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/only-numbers.directive';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class OnlyNumbersDirective {
|
|
3
|
+
onlyNumbers: import("@angular/core").InputSignal<boolean>;
|
|
4
|
+
constructor();
|
|
5
|
+
blockPaste(event: ClipboardEvent): boolean;
|
|
6
|
+
onKeyPress(event: KeyboardEvent): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumbersDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumbersDirective, "[stOnlynumbers]", never, { "onlyNumbers": { "alias": "onlyNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component, Host } from '@angular/core';
|
|
2
|
+
import { input, Component, computed, Host } from '@angular/core';
|
|
3
3
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
4
4
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
@@ -7,10 +7,10 @@ import { cva } from 'class-variance-authority';
|
|
|
7
7
|
class AccordionComponent {
|
|
8
8
|
name = input('accordion');
|
|
9
9
|
type = input('default');
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
11
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: AccordionComponent, isStandalone: true, selector: "st-accordion", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n" });
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionComponent, decorators: [{
|
|
14
14
|
type: Component,
|
|
15
15
|
args: [{ selector: 'st-accordion', imports: [], template: "<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n" }]
|
|
16
16
|
}] });
|
|
@@ -39,15 +39,13 @@ class AccordionItemComponent {
|
|
|
39
39
|
this.name = this.accordion.name();
|
|
40
40
|
this.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AccordionItemComponent, deps: [{ token: AccordionComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.1", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
42
|
+
componentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, deps: [{ token: AccordionComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
47
45
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
49
47
|
type: Component,
|
|
50
|
-
args: [{ selector: 'st-accordion-item', imports: [TypographyDirective], template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
|
|
48
|
+
args: [{ selector: 'st-accordion-item', imports: [TypographyDirective], template: "<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
|
|
51
49
|
}], ctorParameters: () => [{ type: AccordionComponent, decorators: [{
|
|
52
50
|
type: Host
|
|
53
51
|
}] }] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'st-accordion',\n imports: [],\n templateUrl: './accordion.component.html'\n})\nexport class AccordionComponent {\n\tname = input('accordion');\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { Component, Host, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['collapse join-item border border-neutral'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-accordion.mjs","sources":["../../../projects/sdk/components/accordion/src/accordion.component.ts","../../../projects/sdk/components/accordion/src/accordion.component.html","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.ts","../../../projects/sdk/components/accordion/accordion-item/accordion-item.component.html","../../../projects/sdk/components/accordion/sixbell-telco-sdk-components-accordion.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'st-accordion',\n imports: [],\n templateUrl: './accordion.component.html'\n})\nexport class AccordionComponent {\n\tname = input('accordion');\n\ttype = input<'default' | 'single'>('default');\n}\n","<div class=\"join join-vertical w-full\">\n\t<ng-content></ng-content>\n</div>\n","import { Component, computed, Host, input } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { AccordionComponent } from '../src/accordion.component';\n\nexport const accordionItemComponent = cva(['collapse join-item border border-neutral'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: [],\n\t\t\tarrow: ['collapse-arrow'],\n\t\t\tplus: ['collapse-plus'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AccordionVariantProps = 'default' | 'arrow' | 'plus' | null | undefined;\n\nexport type AccordionItemProps = {\n\tvariant?: AccordionVariantProps;\n};\n\n@Component({\n\tselector: 'st-accordion-item',\n\timports: [TypographyDirective],\n\ttemplateUrl: './accordion-item.component.html',\n})\nexport class AccordionItemComponent {\n\theader = input('');\n\topened = input(false);\n\n\tvariant = input<AccordionVariantProps>();\n\tname: string;\n\ttype: string;\n\n\tconstructor(@Host() private accordion: AccordionComponent) {\n\t\tthis.name = this.accordion.name();\n\t\tthis.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';\n\t}\n\n\tcomponentClass = computed(() => cn(accordionItemComponent({ variant: this.variant() })));\n}\n","<div [class]=\"componentClass()\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AccordionComponent"],"mappings":";;;;;;MAOa,kBAAkB,CAAA;AAC9B,IAAA,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC;AACzB,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,CAAC;uGAFjC,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,8TCP/B,kFAGA,EAAA,CAAA;;2FDIa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,WACf,EAAE,EAAA,QAAA,EAAA,kFAAA,EAAA;;;MEEF,sBAAsB,GAAG,GAAG,CAAC,CAAC,0CAA0C,CAAC,EAAE;AACvF,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,IAAI,EAAE,CAAC,eAAe,CAAC;AACvB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,KAAA;AACD,CAAA;MAaY,sBAAsB,CAAA;AAQN,IAAA,SAAA;AAP5B,IAAA,MAAM,GAAG,KAAK,CAAC,EAAE,CAAC;AAClB,IAAA,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;IAErB,OAAO,GAAG,KAAK,EAAyB;AACxC,IAAA,IAAI;AACJ,IAAA,IAAI;AAEJ,IAAA,WAAA,CAA4B,SAA6B,EAAA;QAA7B,IAAS,CAAA,SAAA,GAAT,SAAS;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;AACjC,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,QAAQ,GAAG,OAAO,GAAG,UAAU;;IAGtE,cAAc,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;uGAb5E,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,kBAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9BnC,8WAWA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDgBW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,EAAA,cAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAGjB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;+BACC,mBAAmB,EAAA,OAAA,EACpB,CAAC,mBAAmB,CAAC,EAAA,QAAA,EAAA,8WAAA,EAAA;;0BAWjB;;;AEtCd;;AAEG;;;;"}
|