@sixbell-telco/sdk 3.1.0 → 3.2.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 +121 -16
- package/README.md +76 -58
- package/_index.css +297 -122
- package/components/accordion/README.md +20 -0
- package/components/audio-player/README.md +18 -0
- package/components/avatar/README.md +17 -0
- package/components/badge/README.md +17 -0
- package/components/badge/src/badge.component.d.ts +3 -3
- package/components/button/README.md +18 -0
- package/components/button/src/button.component.d.ts +2 -2
- package/components/card/README.md +36 -0
- package/components/countdown/README.md +18 -0
- package/components/data-table/README.md +31 -0
- package/components/data-table/src/data-table.component.d.ts +6 -1
- package/components/dialog/README.md +24 -0
- package/components/dialog/src/dialog.component.d.ts +4 -1
- package/components/divider/README.md +17 -0
- package/components/dropdown/README.md +25 -0
- package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
- package/components/dropdown-menu/README.md +24 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
- package/components/dual-list/README.md +17 -0
- package/components/file-upload/README.md +17 -0
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
- package/components/forms/checkbox/README.md +17 -0
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
- package/components/forms/combobox/README.md +26 -0
- package/components/forms/combobox/src/combobox.component.d.ts +16 -4
- package/components/forms/date-picker/README.md +27 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
- package/components/forms/form-error/README.md +21 -0
- package/components/forms/form-group/src/form-group.component.d.ts +27 -38
- package/components/forms/input/README.md +18 -0
- package/components/forms/input/src/input.component.d.ts +2 -2
- package/components/forms/radio/README.md +14 -0
- package/components/forms/radio/src/radio.component.d.ts +2 -2
- package/components/forms/range/README.md +13 -0
- package/components/forms/range/src/range.component.d.ts +2 -2
- package/components/forms/select/README.md +18 -0
- package/components/forms/select/src/select.component.d.ts +15 -4
- package/components/forms/switch/README.md +13 -0
- package/components/forms/switch/src/switch.component.d.ts +2 -2
- package/components/forms/textarea/README.md +17 -0
- package/components/forms/textarea/src/textarea.component.d.ts +2 -2
- package/components/forms/toggle/README.md +13 -0
- package/components/forms/toggle/src/toggle.component.d.ts +5 -36
- package/components/icon/README.md +18 -0
- package/components/link/README.md +17 -0
- package/components/link/src/link.component.d.ts +2 -2
- package/components/notification/README.md +13 -0
- package/components/notification/src/notification.component.d.ts +3 -3
- package/components/overlay/README.md +33 -0
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
- package/components/overlay/src/overlay.component.d.ts +34 -0
- package/components/paginator/README.md +17 -0
- package/components/product-card/README.md +13 -0
- package/components/progress/README.md +17 -0
- package/components/progress/src/progress.component.d.ts +3 -3
- package/components/sonner/README.md +23 -0
- package/components/sonner/src/sonner.component.d.ts +2 -2
- package/components/tab/README.md +17 -0
- package/components/table/README.md +20 -0
- package/components/table/src/table.component.d.ts +6 -1
- package/components/table/table-action/table-action.component.d.ts +26 -3
- package/components/text/README.md +14 -0
- package/components/tooltip/README.md +29 -0
- package/components/tooltip/src/tooltip.component.d.ts +64 -4
- package/components/wizard/README.md +25 -0
- package/components/wizard/services/wizard.service.d.ts +1 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +24 -24
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +6 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +42 -42
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +40 -34
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +21 -18
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +36 -30
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +46 -46
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +49 -40
- 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 +11 -11
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +95 -26
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +31 -9
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +30 -41
- package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -10
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +56 -24
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +7 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +9 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +102 -156
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +5 -4
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +26 -5
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +319 -30
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +38 -28
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +6 -5
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +8 -8
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +10 -10
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +56 -24
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +369 -13
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +81 -61
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +299 -160
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +96 -91
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +34 -19
- package/utils/theme/public-api.d.ts +2 -2
- package/utils/theme/src/constants.d.ts +6 -6
- package/utils/theme/src/models/theme.d.ts +14 -6
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
- package/utils/theme/src/utils/utils.d.ts +9 -3
|
@@ -4,12 +4,12 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Generates base badge classes with style variants
|
|
5
5
|
*/
|
|
6
6
|
export declare const badgeComponent: (props?: ({
|
|
7
|
-
variant?: "primary" | "secondary" | "tertiary" | "accent" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
7
|
+
variant?: "base" | "primary" | "secondary" | "tertiary" | "accent" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
9
|
iconPosition?: "left" | "right" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
/** Possible badge style variants */
|
|
12
|
-
export type BadgeVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | null | undefined;
|
|
12
|
+
export type BadgeVariantProps = 'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | null | undefined;
|
|
13
13
|
/** Possible badge size variants */
|
|
14
14
|
export type BadgeSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
15
15
|
/** Possible icon positions relative to badge text */
|
|
@@ -42,7 +42,7 @@ export type BadgeProps = {
|
|
|
42
42
|
export declare class BadgeComponent {
|
|
43
43
|
/**
|
|
44
44
|
* Badge style variant
|
|
45
|
-
* @defaultValue '
|
|
45
|
+
* @defaultValue 'base'
|
|
46
46
|
*/
|
|
47
47
|
variant: import("@angular/core").InputSignal<BadgeVariantProps>;
|
|
48
48
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/button`
|
|
4
|
+
|
|
5
|
+
Selector: `st-button`
|
|
6
|
+
|
|
7
|
+
Primary action control. Default color role is `base`; use `primary` for the main CTA.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-button variant="primary" size="md" (triggered)="save()">Save</st-button>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- Style flags: `ghost`, `outline`, `link`, `soft`, `dash`, `wide`, `circle`, `square`, `glass`, `block`, `loader`, `shadow`.
|
|
18
|
+
- Activation outputs: `clicked`, `pointerDown`, `keyDownEnter`, `keyDownSpace`, `triggered`. Prefer `(triggered)`.
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Generates base button classes with style variants
|
|
5
5
|
*/
|
|
6
6
|
export declare const buttonComponent: (props?: ({
|
|
7
|
-
variant?: "primary" | "secondary" | "tertiary" | "accent" | "info" | "success" | "warning" | "error" |
|
|
7
|
+
variant?: "base" | "primary" | "secondary" | "tertiary" | "accent" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
9
|
iconPosition?: "left" | "right" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -44,7 +44,7 @@ export type HTMLButtonType = 'button' | 'submit' | 'reset';
|
|
|
44
44
|
export declare class ButtonComponent {
|
|
45
45
|
/**
|
|
46
46
|
* Button style variant
|
|
47
|
-
* @defaultValue '
|
|
47
|
+
* @defaultValue 'base'
|
|
48
48
|
*/
|
|
49
49
|
variant: import("@angular/core").InputSignal<ButtonVariantProps>;
|
|
50
50
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Card
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/card`
|
|
4
|
+
|
|
5
|
+
Selector: `st-card`
|
|
6
|
+
|
|
7
|
+
Compound content shell. Compose with header, body, sections, footer, and actions — do not put title text directly on `st-card`.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-card [border]="true" [shadow]="true">
|
|
13
|
+
<st-card-header>
|
|
14
|
+
<st-card-title>Title</st-card-title>
|
|
15
|
+
<st-card-subtitle>Support</st-card-subtitle>
|
|
16
|
+
</st-card-header>
|
|
17
|
+
<st-card-body>
|
|
18
|
+
<st-card-section-group [divided]="true">
|
|
19
|
+
<st-card-section>
|
|
20
|
+
<st-card-section-body>Content</st-card-section-body>
|
|
21
|
+
</st-card-section>
|
|
22
|
+
</st-card-section-group>
|
|
23
|
+
</st-card-body>
|
|
24
|
+
<st-card-footer [divided]="true">
|
|
25
|
+
<st-card-actions>
|
|
26
|
+
<st-button variant="primary">Continue</st-button>
|
|
27
|
+
</st-card-actions>
|
|
28
|
+
</st-card-footer>
|
|
29
|
+
</st-card>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Notes
|
|
33
|
+
|
|
34
|
+
- `st-card-content` is legacy; use `st-card-body`.
|
|
35
|
+
- Flat forms in a card: `st-form-group`. Sectioned forms: `st-card-section-group`.
|
|
36
|
+
- See [Card migration](../../../../docs/migrations/Card_Migration.md).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Countdown
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/countdown`
|
|
4
|
+
|
|
5
|
+
Selector: `st-countdown`
|
|
6
|
+
|
|
7
|
+
Timer to a due date. Emits `finished` at zero.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-countdown [dueDate]="deadline" (finished)="onDone()"></st-countdown>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- `type` is `'simple-1'` | `'simple-2'` | `'extended-1'` | `'extended-2'`.
|
|
18
|
+
- Toggle units with `showDays`, `showHours`, `showMinutes`, `showSeconds`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Data Table
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/data-table`
|
|
4
|
+
|
|
5
|
+
Selector: `st-data-table`
|
|
6
|
+
|
|
7
|
+
TanStack table shell. You compose `<thead>` / `<tbody>` and cell renderers; there is no simple `dataSource` input.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-data-table [totalItems]="totalItems" [pagination]="pagination" (pageChanged)="onPage($event)">
|
|
13
|
+
<thead>
|
|
14
|
+
<tr>
|
|
15
|
+
<th>Name</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody>
|
|
19
|
+
@for (row of table().getRowModel().rows; track row.id) {
|
|
20
|
+
<tr>
|
|
21
|
+
<td>{{ row.original.firstName }}</td>
|
|
22
|
+
</tr>
|
|
23
|
+
}
|
|
24
|
+
</tbody>
|
|
25
|
+
</st-data-table>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Notes
|
|
29
|
+
|
|
30
|
+
- Helpers: `st-data-table-actions`, sortable header, row/head selection, expandable cells.
|
|
31
|
+
- Re-exports TanStack helpers such as `createAngularTable` and `flexRenderComponent`.
|
|
@@ -77,6 +77,11 @@ export declare class DataTableContainerComponent {
|
|
|
77
77
|
* @defaultValue false
|
|
78
78
|
*/
|
|
79
79
|
zebra: import("@angular/core").InputSignal<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Show row dividers (borders) between rows
|
|
82
|
+
* @defaultValue false
|
|
83
|
+
*/
|
|
84
|
+
bordered: import("@angular/core").InputSignal<boolean>;
|
|
80
85
|
/**
|
|
81
86
|
* Pagination control display variant
|
|
82
87
|
* @defaultValue 'default'
|
|
@@ -171,5 +176,5 @@ export declare class DataTableContainerComponent {
|
|
|
171
176
|
*/
|
|
172
177
|
readonly containerClass: import("@angular/core").Signal<string>;
|
|
173
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableContainerComponent, never>;
|
|
174
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableContainerComponent, "st-data-table", never, { "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, never, ["st-data-table-empty-actions", "*"], true, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableContainerComponent, "st-data-table", never, { "noDataIcon": { "alias": "noDataIcon"; "required": false; "isSignal": true; }; "noResultsIcon": { "alias": "noResultsIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "hasActiveFiltersCallback": { "alias": "hasActiveFiltersCallback"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "pageSizeChanged": "pageSizeChanged"; }, never, ["st-data-table-empty-actions", "*"], true, never>;
|
|
175
180
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Dialog
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/dialog`
|
|
4
|
+
|
|
5
|
+
Selector: `st-dialog`
|
|
6
|
+
|
|
7
|
+
Modal overlay with title, content, and actions.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-dialog [(opened)]="open">
|
|
13
|
+
<st-dialog-title>Confirm</st-dialog-title>
|
|
14
|
+
<st-dialog-content>Are you sure?</st-dialog-content>
|
|
15
|
+
<st-dialog-actions alignment="right">
|
|
16
|
+
<st-button variant="primary">OK</st-button>
|
|
17
|
+
</st-dialog-actions>
|
|
18
|
+
</st-dialog>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Notes
|
|
22
|
+
|
|
23
|
+
- `width` is `'sm'` | `'md'` | `'lg'` | `'xl'`. Outputs: `closed`, `clickOutside`.
|
|
24
|
+
- Prefer `(triggered)` on close controls.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/** Dropdown X position options for CDK overlay positioning */
|
|
4
5
|
export type DialogXPosition = 'start' | 'center' | 'end';
|
|
@@ -53,6 +54,8 @@ export declare class DialogComponent {
|
|
|
53
54
|
hasTitle: import("@angular/core").WritableSignal<boolean>;
|
|
54
55
|
hasSubTitle: import("@angular/core").WritableSignal<boolean>;
|
|
55
56
|
private readonly destroyRef;
|
|
57
|
+
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
58
|
+
protected readonly themeDomService: ThemeDomService;
|
|
56
59
|
private readonly contentEffect;
|
|
57
60
|
/**
|
|
58
61
|
* Specifies the maximum width of the dialog content
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Divider
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/divider`
|
|
4
|
+
|
|
5
|
+
Selector: `st-divider`
|
|
6
|
+
|
|
7
|
+
Horizontal or vertical rule with optional label.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-divider>OR</st-divider>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- Inputs: `orientation`, `placement`, `variant`, `margin`.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Dropdown
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/dropdown`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-dropdown`, `st-dropdown-trigger`, `st-dropdown-content`, `st-dropdown-item`, `st-dropdown-chevron`
|
|
6
|
+
|
|
7
|
+
Menu attached to a trigger. Overlay animation follows CDK position.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-dropdown>
|
|
13
|
+
<st-dropdown-trigger>
|
|
14
|
+
<st-button>Menu <st-dropdown-chevron></st-dropdown-chevron></st-button>
|
|
15
|
+
</st-dropdown-trigger>
|
|
16
|
+
<st-dropdown-content>
|
|
17
|
+
<st-dropdown-item (triggered)="onEdit()">Edit</st-dropdown-item>
|
|
18
|
+
<st-dropdown-separator></st-dropdown-separator>
|
|
19
|
+
</st-dropdown-content>
|
|
20
|
+
</st-dropdown>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Notes
|
|
24
|
+
|
|
25
|
+
- Prefer `(triggered)` on items. `st-dropdown-chevron` is `display: contents` so it centers in buttons and rotates from `[aria-expanded]`.
|
|
@@ -6,8 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DropdownChevronComponent {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Optional: works only when this chevron is created in the trigger's view.
|
|
10
|
+
* Projected usage (stories/showcase) cannot inject the trigger; rotation then
|
|
11
|
+
* follows the trigger's [aria-expanded] via :host-context.
|
|
11
12
|
*/
|
|
12
13
|
private readonly trigger;
|
|
13
14
|
/**
|
|
@@ -86,6 +86,10 @@ export declare class DropdownItemRadioComponent {
|
|
|
86
86
|
* Computed CSS classes for the menu item
|
|
87
87
|
*/
|
|
88
88
|
itemClass: () => string;
|
|
89
|
+
/**
|
|
90
|
+
* Computed CSS classes for the interactive item surface
|
|
91
|
+
*/
|
|
92
|
+
anchorClass: () => string;
|
|
89
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemRadioComponent, never>;
|
|
90
94
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemRadioComponent, "st-dropdown-item-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; }, never, ["*"], true, never>;
|
|
91
95
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/** Animation states for the dropdown */
|
|
5
6
|
type DropdownAnimationState = 'closed' | 'opening' | 'open' | 'closing';
|
|
@@ -38,6 +39,7 @@ export interface DropdownFallbackPositions {
|
|
|
38
39
|
* ```
|
|
39
40
|
*/
|
|
40
41
|
export declare class DropdownTriggerComponent {
|
|
42
|
+
protected readonly themeDomService: ThemeDomService;
|
|
41
43
|
/** Offset X in pixels */
|
|
42
44
|
offsetX: import("@angular/core").InputSignal<number>;
|
|
43
45
|
/** Offset Y in pixels */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Dropdown Menu
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/dropdown-menu`
|
|
4
|
+
|
|
5
|
+
Selector: `st-dropdown-menu`
|
|
6
|
+
|
|
7
|
+
Nested menu system (trigger, content, items, submenus).
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-dropdown-menu>
|
|
13
|
+
<st-dropdown-menu-trigger>
|
|
14
|
+
<st-button>Options</st-button>
|
|
15
|
+
</st-dropdown-menu-trigger>
|
|
16
|
+
<st-dropdown-menu-content>
|
|
17
|
+
<st-dropdown-menu-item (triggered)="onOpen()">Open</st-dropdown-menu-item>
|
|
18
|
+
</st-dropdown-menu-content>
|
|
19
|
+
</st-dropdown-menu>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Notes
|
|
23
|
+
|
|
24
|
+
- Prefer `(triggered)` on items. Use `clicked` / keyboard outputs only when you need the event.
|
|
@@ -85,6 +85,10 @@ export declare class DropdownMenuBarItemRadioComponent {
|
|
|
85
85
|
* Computed CSS classes for the menu item
|
|
86
86
|
*/
|
|
87
87
|
itemClass: () => string;
|
|
88
|
+
/**
|
|
89
|
+
* Computed CSS classes for the interactive item surface
|
|
90
|
+
*/
|
|
91
|
+
anchorClass: () => string;
|
|
88
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarItemRadioComponent, never>;
|
|
89
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarItemRadioComponent, "st-dropdown-menu-bar-item-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; }, { "checkedChanged": "checkedChanged"; "triggered": "triggered"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItemRadio; inputs: { "cdkMenuItemChecked": "checked"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
90
94
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Dual List
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/dual-list`
|
|
4
|
+
|
|
5
|
+
Selector: `st-dual-list`
|
|
6
|
+
|
|
7
|
+
Move items between available and selected lists.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-dual-list [items]="items" [addedItems]="selected" [pagination]="pagination"></st-dual-list>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- `items` and `addedItems` are required. `key` defaults to `'id'`, `value` to `'item'`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File Upload
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/file-upload`
|
|
4
|
+
|
|
5
|
+
Selectors: `st-file-uploader`, `st-file-dropzone`
|
|
6
|
+
|
|
7
|
+
Pick or drop files with extension filters.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-file-dropzone [extensions]="['.pdf']" [maxFiles]="2"></st-file-dropzone>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- `extensions` is required on both controls. Default field `variant` is `base`.
|
|
@@ -41,7 +41,7 @@ export type FileUploaderProps = {
|
|
|
41
41
|
export declare class FileUploaderComponent implements ControlValueAccessor {
|
|
42
42
|
/**
|
|
43
43
|
* Visual style variant
|
|
44
|
-
* @defaultValue '
|
|
44
|
+
* @defaultValue 'base'
|
|
45
45
|
*/
|
|
46
46
|
variant: import("@angular/core").InputSignal<InputVariantProps>;
|
|
47
47
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Checkbox
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/forms/checkbox`
|
|
4
|
+
|
|
5
|
+
Selector: `st-checkbox`
|
|
6
|
+
|
|
7
|
+
Boolean field. Default `variant` is `base`.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-checkbox label="Agree to terms" [(value)]="agreed"></st-checkbox>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Notes
|
|
16
|
+
|
|
17
|
+
- Outputs: `valueUpdated`, `clicked`, `keyDownEnter`, `keyDownSpace`, `triggered`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/** Possible checkbox color variants */
|
|
4
|
-
export type CheckboxVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;
|
|
4
|
+
export type CheckboxVariantProps = 'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'warning' | 'info' | 'error' | null | undefined;
|
|
5
5
|
/** Possible checkbox size variants */
|
|
6
6
|
export type CheckboxSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
7
7
|
/** Configuration object for checkbox styling */
|
|
@@ -36,7 +36,7 @@ export type CheckboxProps = {
|
|
|
36
36
|
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
37
37
|
/**
|
|
38
38
|
* Checkbox color variant
|
|
39
|
-
* @defaultValue '
|
|
39
|
+
* @defaultValue 'base'
|
|
40
40
|
*/
|
|
41
41
|
variant: import("@angular/core").InputSignal<CheckboxVariantProps>;
|
|
42
42
|
/**
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Combobox
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/forms/combobox`
|
|
4
|
+
|
|
5
|
+
Selector: `st-combobox`
|
|
6
|
+
|
|
7
|
+
Searchable select. Clear is a sibling of the trigger; the chevron is a custom icon that rotates in place.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-combobox
|
|
13
|
+
label="Country"
|
|
14
|
+
[options]="countries"
|
|
15
|
+
displayKey="name"
|
|
16
|
+
valueKey="code"
|
|
17
|
+
[(value)]="selectedCountry"
|
|
18
|
+
placeholder="Select country"
|
|
19
|
+
></st-combobox>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Notes
|
|
23
|
+
|
|
24
|
+
- `allowClear` keeps the clear control in tab order after the trigger. Do not nest a button in the trigger.
|
|
25
|
+
- Overlay animation follows CDK position with a 4px gap above or below.
|
|
26
|
+
- `selectionType` is `'single'` or `'multiple'`.
|
|
@@ -11,16 +11,17 @@
|
|
|
11
11
|
* - Animation states for smooth transitions
|
|
12
12
|
*/
|
|
13
13
|
import { CdkListbox } from '@angular/cdk/listbox';
|
|
14
|
-
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
14
|
+
import { ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';
|
|
15
15
|
import { ElementRef } from '@angular/core';
|
|
16
16
|
import { ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
17
17
|
import { TranslateService } from '@ngx-translate/core';
|
|
18
18
|
import { BadgeSizeProps } from '@sixbell-telco/sdk/components/badge';
|
|
19
|
+
import { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
/**
|
|
21
22
|
* Available style variants for the combobox component
|
|
22
23
|
*/
|
|
23
|
-
export type ComboboxVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;
|
|
24
|
+
export type ComboboxVariantProps = 'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;
|
|
24
25
|
/**
|
|
25
26
|
* Available size variants for the combobox component
|
|
26
27
|
*/
|
|
@@ -82,9 +83,10 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
82
83
|
* @internal
|
|
83
84
|
*/
|
|
84
85
|
translateService: TranslateService;
|
|
86
|
+
protected readonly themeDomService: ThemeDomService;
|
|
85
87
|
/**
|
|
86
88
|
* The visual style variant of the combobox
|
|
87
|
-
* @
|
|
89
|
+
* @defaultValue 'base'
|
|
88
90
|
*/
|
|
89
91
|
variant: import("@angular/core").InputSignal<ComboboxVariantProps>;
|
|
90
92
|
/**
|
|
@@ -224,7 +226,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
224
226
|
searchQuery: import("@angular/core").OutputEmitterRef<ComboboxSearchQueryEvent>;
|
|
225
227
|
/** Search icon for the search input */
|
|
226
228
|
iconSearch: string;
|
|
227
|
-
/**
|
|
229
|
+
/** Custom field chevron (DaisyUI native triangles stay hidden) */
|
|
228
230
|
iconChevronDown: string;
|
|
229
231
|
/** Check icon for selected options */
|
|
230
232
|
iconCheck: string;
|
|
@@ -242,6 +244,8 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
242
244
|
private readonly blurTrigger;
|
|
243
245
|
/** Active option index for keyboard navigation */
|
|
244
246
|
private readonly activeOptionIndex;
|
|
247
|
+
/** Reference to the field shell (CDK overlay origin) */
|
|
248
|
+
fieldRef: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
245
249
|
/** Reference to the trigger button element */
|
|
246
250
|
triggerRef: import("@angular/core").Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
247
251
|
/** Reference to the search input element */
|
|
@@ -254,6 +258,8 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
254
258
|
triggerWidth: import("@angular/core").WritableSignal<number>;
|
|
255
259
|
/** Current active position configuration from CDK overlay */
|
|
256
260
|
private readonly currentPosition;
|
|
261
|
+
/** Overlay positions with a symmetric 4px trigger gap (below first, flip above) */
|
|
262
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
257
263
|
/**
|
|
258
264
|
* Static class mappings for different animation directions
|
|
259
265
|
* Maps animation directions to complete Tailwind class names
|
|
@@ -399,6 +405,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
399
405
|
* @param fn - The callback function
|
|
400
406
|
*/
|
|
401
407
|
registerOnTouched(fn: () => void): void;
|
|
408
|
+
setDisabledState(isDisabled: boolean): void;
|
|
402
409
|
/**
|
|
403
410
|
* Toggles the overlay open/closed state
|
|
404
411
|
* Handles focus management and animation state transitions
|
|
@@ -409,6 +416,11 @@ export declare class ComboboxComponent implements ControlValueAccessor {
|
|
|
409
416
|
* Handle click activation on trigger
|
|
410
417
|
*/
|
|
411
418
|
handleClick(event: MouseEvent): void;
|
|
419
|
+
/**
|
|
420
|
+
* Open from decorative chevron hits that miss the trigger button.
|
|
421
|
+
* Clear and the trigger already handle their own clicks.
|
|
422
|
+
*/
|
|
423
|
+
handleFieldChromeClick(event: MouseEvent): void;
|
|
412
424
|
/**
|
|
413
425
|
* Handles animation end events to update state
|
|
414
426
|
* @param event - The animation event
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Datepicker
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/forms/date-picker`
|
|
4
|
+
|
|
5
|
+
Selector: `st-datepicker`
|
|
6
|
+
|
|
7
|
+
Single or range calendar. Overlay Clear is gated by `allowClear` (default `true`).
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-datepicker
|
|
13
|
+
label="Start date"
|
|
14
|
+
mode="single"
|
|
15
|
+
format="DD/MM/YYYY"
|
|
16
|
+
[value]="startDate"
|
|
17
|
+
(valueChanged)="startDate = $event"
|
|
18
|
+
#picker="stDatepicker"
|
|
19
|
+
>
|
|
20
|
+
<st-input [value]="picker.displayValue()" [readonly]="true" placeholder="Pick a date" name="startDate"></st-input>
|
|
21
|
+
</st-datepicker>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Notes
|
|
25
|
+
|
|
26
|
+
- Wrap with `st-form-item` and put `st-form-errors` as a sibling, not inside the trigger.
|
|
27
|
+
- Range: bind `[rangeValue]` and `(rangeValueChanged)`.
|
|
@@ -133,6 +133,11 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
133
133
|
* @defaultValue true
|
|
134
134
|
*/
|
|
135
135
|
showQuickActions: import("@angular/core").InputSignal<boolean>;
|
|
136
|
+
/**
|
|
137
|
+
* Whether the user can clear the current selection from overlay Clear and public clear methods
|
|
138
|
+
* @defaultValue true
|
|
139
|
+
*/
|
|
140
|
+
allowClear: import("@angular/core").InputSignal<boolean>;
|
|
136
141
|
/**
|
|
137
142
|
* Whether to show time pickers for start/end
|
|
138
143
|
* @defaultValue false
|
|
@@ -228,6 +233,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
228
233
|
syncTimeInputsEff: import("@angular/core").EffectRef;
|
|
229
234
|
/** Exposed selected date value (ISO format) for template access */
|
|
230
235
|
selectedDateValue: import("@angular/core").Signal<string>;
|
|
236
|
+
showOverlayClear: import("@angular/core").Signal<boolean>;
|
|
231
237
|
private formatMonthYear;
|
|
232
238
|
private formatWeekday;
|
|
233
239
|
private formatDateLocale;
|
|
@@ -280,6 +286,7 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
280
286
|
* Clear the current single date selection
|
|
281
287
|
*/
|
|
282
288
|
clearDate(): void;
|
|
289
|
+
handleOverlayClear(): void;
|
|
283
290
|
/**
|
|
284
291
|
* Set range value programmatically
|
|
285
292
|
*/
|
|
@@ -332,5 +339,5 @@ export declare class DatepickerComponent implements ControlValueAccessor {
|
|
|
332
339
|
onStartTimeChange(ev: Event): void;
|
|
333
340
|
onEndTimeChange(ev: Event): void;
|
|
334
341
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
335
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
342
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "showOptional": { "alias": "showOptional"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
|
|
336
343
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Form Error
|
|
2
|
+
|
|
3
|
+
Import: `@sixbell-telco/sdk/components/forms/form-error`
|
|
4
|
+
|
|
5
|
+
Selector: `st-form-errors`
|
|
6
|
+
|
|
7
|
+
Full-width validation messages for a control on `parentForm`.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<st-form-item>
|
|
13
|
+
<st-input label="Email" [parentForm]="form" formControlName="email"></st-input>
|
|
14
|
+
<st-form-errors [parentForm]="form" formField="email" [isRequired]="'Email is required'" [isEmail]="'Invalid email'"></st-form-errors>
|
|
15
|
+
</st-form-item>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Notes
|
|
19
|
+
|
|
20
|
+
- `parentForm` and `formField` are required. Projecting errors inside a field is legacy and width-limited.
|
|
21
|
+
- See [Form Errors migration](../../../../../docs/migrations/Form_Errors_Migration.md).
|