ngx-strata 0.2.1 → 0.2.2
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/assets/styles/base.scss +4 -0
- package/assets/styles/components/action-menu.scss +2 -1
- package/assets/styles/components/card.scss +2 -1
- package/assets/styles/components/modal.scss +26 -0
- package/assets/styles/components/tag.scss +1 -1
- package/assets/styles/shadows.scss +1 -0
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +666 -497
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +5 -4
- package/skills/ngx-strata/SKILL.md +1 -1
- package/skills/ngx-strata/components/accordion.md +1 -1
- package/skills/ngx-strata/components/action-menu.md +1 -1
- package/skills/ngx-strata/components/alert.md +1 -1
- package/skills/ngx-strata/components/avatar.md +1 -1
- package/skills/ngx-strata/components/breadcrumb.md +1 -1
- package/skills/ngx-strata/components/button.md +1 -1
- package/skills/ngx-strata/components/card.md +8 -2
- package/skills/ngx-strata/components/checkbox.md +1 -1
- package/skills/ngx-strata/components/divider.md +1 -1
- package/skills/ngx-strata/components/icon.md +1 -1
- package/skills/ngx-strata/components/input-field.md +2 -2
- package/skills/ngx-strata/components/item.md +2 -2
- package/skills/ngx-strata/components/kbd.md +1 -1
- package/skills/ngx-strata/components/message-state.md +1 -1
- package/skills/ngx-strata/components/modal.md +16 -6
- package/skills/ngx-strata/components/notification.md +1 -1
- package/skills/ngx-strata/components/number-display.md +1 -1
- package/skills/ngx-strata/components/overlay.md +1 -1
- package/skills/ngx-strata/components/pagination.md +1 -1
- package/skills/ngx-strata/components/progress.md +2 -2
- package/skills/ngx-strata/components/radio.md +1 -1
- package/skills/ngx-strata/components/segmented-control.md +1 -1
- package/skills/ngx-strata/components/shell.md +1 -1
- package/skills/ngx-strata/components/sidemenu.md +2 -2
- package/skills/ngx-strata/components/single-select.md +1 -1
- package/skills/ngx-strata/components/slider.md +1 -1
- package/skills/ngx-strata/components/spinner.md +1 -1
- package/skills/ngx-strata/components/tabs.md +1 -1
- package/skills/ngx-strata/components/tag.md +1 -1
- package/skills/ngx-strata/components/text-stack.md +2 -2
- package/skills/ngx-strata/components/theming.md +2 -2
- package/skills/ngx-strata/components/toggle.md +1 -1
- package/types/ngx-strata.d.ts +20 -22
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-strata",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A simple UI framework for quickly prototyping angular applications with a bit of flair.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "
|
|
8
|
-
"@angular/core": "
|
|
7
|
+
"@angular/common": ">=22.0.0",
|
|
8
|
+
"@angular/core": ">=22.0.0",
|
|
9
9
|
"@floating-ui/dom": "^1.1.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
@@ -31,5 +31,6 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"module": "fesm2022/ngx-strata.mjs",
|
|
34
|
-
"typings": "types/ngx-strata.d.ts"
|
|
34
|
+
"typings": "types/ngx-strata.d.ts",
|
|
35
|
+
"type": "module"
|
|
35
36
|
}
|
|
@@ -59,7 +59,7 @@ Do not hardcode colors or spacing values. Always use the built-in Strata CSS var
|
|
|
59
59
|
- `--st-color-text-primary`: Standard text.
|
|
60
60
|
- `--st-color-text-secondary`: Muted/secondary text.
|
|
61
61
|
- `--st-color-text-tertiary`: Disabled/faded text.
|
|
62
|
-
- `--st-
|
|
62
|
+
- `--st-color-accent-default`: Primary brand accent color.
|
|
63
63
|
|
|
64
64
|
**Key Spacing Variables:**
|
|
65
65
|
- `--st-space-1` (4px) to `--st-space-10` (40px)
|
|
@@ -35,4 +35,4 @@ This file contains the AI documentation for the `accordion` feature and its rela
|
|
|
35
35
|
</st-accordion-group>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
38
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -33,4 +33,4 @@ This file contains the AI documentation for the `action-menu` feature and its re
|
|
|
33
33
|
</st-action-menu>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
36
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -25,4 +25,4 @@ This file contains the AI documentation for the `alert` feature and its related
|
|
|
25
25
|
</st-alert>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
28
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -30,4 +30,4 @@ This file contains the AI documentation for the `avatar` feature and its related
|
|
|
30
30
|
</st-avatar-stack>
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
33
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -29,4 +29,4 @@ This file contains the AI documentation for the `breadcrumb` feature and its rel
|
|
|
29
29
|
</st-breadcrumb>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
32
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -31,4 +31,4 @@ This file contains the AI documentation for the `button` feature and its related
|
|
|
31
31
|
</st-button-group>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
34
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -11,7 +11,14 @@ This file contains the AI documentation for the `card` feature and its related c
|
|
|
11
11
|
- `[padding] (boolean)`
|
|
12
12
|
- `[variant] (CardVariant)`
|
|
13
13
|
|
|
14
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
14
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
15
|
+
|
|
16
|
+
## CSS Custom Properties
|
|
17
|
+
Every component exposes internal CSS custom properties for visual styling overrides:
|
|
18
|
+
- `--st-card-shadow`: Box-shadow of the elevated card (defaults to `var(--st-shadow-1)`).
|
|
19
|
+
- `--st-card-padding`: Inner padding of the card (defaults to `var(--st-size-xs)`).
|
|
20
|
+
- `--st-card-background-color`: Background color of the card (defaults to `var(--st-color-bg-subtle)`).
|
|
21
|
+
|
|
15
22
|
## Usage Example
|
|
16
23
|
|
|
17
24
|
```html
|
|
@@ -21,4 +28,3 @@ This file contains the AI documentation for the `card` feature and its related c
|
|
|
21
28
|
</st-card>
|
|
22
29
|
```
|
|
23
30
|
|
|
24
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Ensure data binding uses modern Angular Signals if the host project allows it.
|
|
@@ -19,4 +19,4 @@ This file contains the AI documentation for the `checkbox` feature and its relat
|
|
|
19
19
|
</st-checkbox>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
22
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -16,4 +16,4 @@ This file contains the AI documentation for the `divider` feature and its relate
|
|
|
16
16
|
<st-divider label="OR" [margin]="true" [vertical]="false"></st-divider>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
19
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -18,4 +18,4 @@ This file contains the AI documentation for the `icon` feature and its related c
|
|
|
18
18
|
> **CRITICAL RULE FOR AI AGENTS regarding Icons:**
|
|
19
19
|
> NEVER guess an icon name. Before using an \`<st-icon>\`, you MUST verify that the icon is registered in the host application (usually located in \`src/app/shared/icon.config.ts\`). Alternatively, you may use one of the **ngx-strata Base Icons**: <!-- BASE_ICONS_START -->`question`, `arrow-right`, `arrow-left`, `arrow-up`, `arrow-down`, `close`, `expand-up-down`, `clipboard`, or `more`<!-- BASE_ICONS_END -->. If the icon you want to use is NOT registered, you must STOP and ask the user to add it.
|
|
20
20
|
|
|
21
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
21
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -17,7 +17,7 @@ This file contains the AI documentation for the `input-field` feature and its re
|
|
|
17
17
|
- **Selector**: `st-input-field`
|
|
18
18
|
- **Imports**: `StrataInputFieldComponent`
|
|
19
19
|
|
|
20
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
20
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
21
21
|
## Usage Example
|
|
22
22
|
|
|
23
23
|
```html
|
|
@@ -26,4 +26,4 @@ This file contains the AI documentation for the `input-field` feature and its re
|
|
|
26
26
|
</st-input-field>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
29
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -14,7 +14,7 @@ This file contains the AI documentation for the `item` feature and its related c
|
|
|
14
14
|
- `[dividers] (boolean)`
|
|
15
15
|
- `[template] (TemplateRef<T)`
|
|
16
16
|
|
|
17
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
17
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
18
18
|
## Usage Example
|
|
19
19
|
|
|
20
20
|
```html
|
|
@@ -28,4 +28,4 @@ This file contains the AI documentation for the `item` feature and its related c
|
|
|
28
28
|
</st-item>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
31
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -15,4 +15,4 @@ This file contains the AI documentation for the `kbd` feature and its related co
|
|
|
15
15
|
<st-kbd keys="enter"></st-kbd>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
18
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -29,4 +29,4 @@ This file contains the AI documentation for the `message-state` feature and its
|
|
|
29
29
|
</st-message-state>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
32
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -45,18 +45,19 @@ export class MyComponent {
|
|
|
45
45
|
private modalService = inject(ModalService);
|
|
46
46
|
|
|
47
47
|
openSettings() {
|
|
48
|
-
this.modalService.
|
|
48
|
+
this.modalService.showModal({
|
|
49
|
+
component: MyModalContentComponent,
|
|
49
50
|
title: 'User Settings',
|
|
50
51
|
size: 'lg'
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
```
|
|
55
56
|
|
|
56
57
|
### 2. The Modal Content Component
|
|
57
|
-
Inside your modal content component, inject
|
|
58
|
+
Inside your modal content component, inject `StrataModalRef` to close it. The modal's header and close button are automatically handled by the wrapper based on the configuration passed to `showModal()`.
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
```typescript
|
|
60
61
|
import { Component, inject } from '@angular/core';
|
|
61
62
|
import { StrataModalRef } from 'ngx-strata';
|
|
62
63
|
|
|
@@ -81,6 +82,15 @@ export class MyModalContentComponent {
|
|
|
81
82
|
this.modalRef.close(true); // Can pass data back
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## CSS Custom Properties
|
|
88
|
+
The modal component exposes internal CSS custom properties for styling and layout overrides:
|
|
89
|
+
- `--st-modal-bg-color`: Background color of the modal (defaults to `var(--st-color-bg-raised)`).
|
|
90
|
+
- `--st-modal-border-radius`: Border radius of the modal (defaults to `var(--st-border-radius-sm)`).
|
|
91
|
+
- `--st-modal-padding`: Inner padding of the modal (defaults to `var(--st-size-md)`).
|
|
92
|
+
- `--st-modal-covered-modal-filter`: CSS filter applied to covered modals (defaults to `brightness(70%)`).
|
|
93
|
+
- `--st-modal-viewport-margin`: Viewport safety margin when calculating max-height (defaults to `var(--st-size-md)`).
|
|
94
|
+
|
|
95
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
85
96
|
|
|
86
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Ensure data binding uses modern Angular Signals if the host project allows it.
|
|
@@ -43,4 +43,4 @@ export class MyComponent {
|
|
|
43
43
|
}
|
|
44
44
|
\`\`\`
|
|
45
45
|
|
|
46
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
46
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -23,4 +23,4 @@ This file contains the AI documentation for the `number-display` feature and its
|
|
|
23
23
|
</st-number-display>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
26
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -17,4 +17,4 @@ This file contains the AI documentation for the `overlay` feature and its relate
|
|
|
17
17
|
<st-overlay></st-overlay>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
20
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -20,4 +20,4 @@ This file contains the AI documentation for the `pagination` feature and its rel
|
|
|
20
20
|
</st-pagination>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
23
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -25,7 +25,7 @@ This file contains the AI documentation for the `progress` feature and its relat
|
|
|
25
25
|
- `[size] (any)`
|
|
26
26
|
- `[strokeWidth] (any)`
|
|
27
27
|
|
|
28
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
28
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
29
29
|
## Usage Example
|
|
30
30
|
|
|
31
31
|
```html
|
|
@@ -43,4 +43,4 @@ This file contains the AI documentation for the `progress` feature and its relat
|
|
|
43
43
|
</st-progress-radial>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
46
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -26,4 +26,4 @@ This file contains the AI documentation for the `radio` feature and its related
|
|
|
26
26
|
</st-radio-group>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
29
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -35,4 +35,4 @@ This file contains the AI documentation for the `segmented-control` feature and
|
|
|
35
35
|
</st-segmented-control>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
38
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -15,4 +15,4 @@ This file contains the AI documentation for the `shell` feature and its related
|
|
|
15
15
|
</st-shell>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
18
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -24,7 +24,7 @@ This file contains the AI documentation for the `sidemenu` feature and its relat
|
|
|
24
24
|
- **Inputs**:
|
|
25
25
|
- `[label] (string)`
|
|
26
26
|
|
|
27
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
27
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
28
28
|
## Usage Example
|
|
29
29
|
|
|
30
30
|
```html
|
|
@@ -38,4 +38,4 @@ This file contains the AI documentation for the `sidemenu` feature and its relat
|
|
|
38
38
|
</st-sidemenu>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
41
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -42,4 +42,4 @@ This file contains the AI documentation for the `single-select` feature and its
|
|
|
42
42
|
</st-single-select>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
45
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -21,4 +21,4 @@ This file contains the AI documentation for the `slider` feature and its related
|
|
|
21
21
|
</st-slider>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
24
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -14,4 +14,4 @@ This file contains the AI documentation for the `spinner` feature and its relate
|
|
|
14
14
|
<st-spinner size="md"></st-spinner>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
17
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -24,4 +24,4 @@ This file contains the AI documentation for the `tabs` feature and its related c
|
|
|
24
24
|
</st-tabs>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
27
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -14,4 +14,4 @@ This file contains the AI documentation for the `tag` feature and its related co
|
|
|
14
14
|
<st-tag size="md">New Feature</st-tag>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
17
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -8,7 +8,7 @@ This file contains the AI documentation for the `text-stack` feature and its rel
|
|
|
8
8
|
- **Inputs**:
|
|
9
9
|
- `[overflow] (TextStackOverflow)`
|
|
10
10
|
|
|
11
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
11
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
12
12
|
## Usage Example
|
|
13
13
|
|
|
14
14
|
```html
|
|
@@ -18,4 +18,4 @@ This file contains the AI documentation for the `text-stack` feature and its rel
|
|
|
18
18
|
</st-text-stack>
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
21
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -8,7 +8,7 @@ This file contains the AI documentation for the `theming` feature and its relate
|
|
|
8
8
|
- **Inputs**:
|
|
9
9
|
- `[stTheme] (Theme)`
|
|
10
10
|
|
|
11
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
11
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
12
12
|
## Usage Example
|
|
13
13
|
|
|
14
14
|
```html
|
|
@@ -16,4 +16,4 @@ This file contains the AI documentation for the `theming` feature and its relate
|
|
|
16
16
|
<div class="st-bg-raised st-text-primary">Content</div>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
19
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
|
@@ -19,4 +19,4 @@ This file contains the AI documentation for the `toggle` feature and its related
|
|
|
19
19
|
</st-toggle>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents.
|
|
22
|
+
> **Note to AI Agents**: Prioritize using these components over raw HTML equivalents. Use modern Angular Signals (input(), input.required(), and output()) for all data/event bindings. Do not use legacy @Input() or @Output() decorators.
|
package/types/ngx-strata.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, AfterContentInit,
|
|
2
|
+
import { OnInit, OnDestroy, AfterContentInit, EnvironmentProviders, InjectionToken, Provider, ElementRef, Renderer2, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, PipeTransform, QueryList, Type, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Placement } from '@floating-ui/dom';
|
|
4
4
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
5
5
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
@@ -32,7 +32,6 @@ declare class StrataTooltipDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
32
32
|
private eventListeners;
|
|
33
33
|
private autoUpdateCleanupFunction?;
|
|
34
34
|
private config;
|
|
35
|
-
constructor(document: Document, element: ElementRef, renderer: Renderer2);
|
|
36
35
|
ngOnInit(): void;
|
|
37
36
|
ngAfterContentInit(): void;
|
|
38
37
|
doPosition(): void;
|
|
@@ -382,7 +381,6 @@ declare class IconRegistryService {
|
|
|
382
381
|
private iconLoader;
|
|
383
382
|
icons: Record<string, string>;
|
|
384
383
|
svgs: Record<string, SafeHtml>;
|
|
385
|
-
constructor(iconLoader: IconLoader);
|
|
386
384
|
registerIcons(iconConfigs: IconConfig[]): void;
|
|
387
385
|
registerIcon(iconConfig: IconConfig): void;
|
|
388
386
|
getIconUrl(name: string): string | null;
|
|
@@ -538,12 +536,12 @@ declare class StrataRadioComponent {
|
|
|
538
536
|
label: _angular_core.InputSignal<string | undefined>;
|
|
539
537
|
checked: _angular_core.ModelSignal<boolean>;
|
|
540
538
|
disabled: _angular_core.InputSignal<boolean>;
|
|
541
|
-
|
|
539
|
+
selected: _angular_core.OutputEmitterRef<void>;
|
|
542
540
|
get isChecked(): boolean;
|
|
543
541
|
get isDisabled(): boolean;
|
|
544
542
|
onClick(event: MouseEvent): void;
|
|
545
543
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataRadioComponent, never>;
|
|
546
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataRadioComponent, "st-radio", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "
|
|
544
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataRadioComponent, "st-radio", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "selected": "selected"; }, never, never, true, never>;
|
|
547
545
|
}
|
|
548
546
|
|
|
549
547
|
declare class StrataRadioGroupComponent {
|
|
@@ -722,6 +720,21 @@ declare class StrataThemeDirective {
|
|
|
722
720
|
}
|
|
723
721
|
type Theme = 'brand' | 'default' | 'danger' | 'warning' | 'success' | 'info';
|
|
724
722
|
|
|
723
|
+
declare class StrataAlertContentComponent {
|
|
724
|
+
private modalService;
|
|
725
|
+
title: _angular_core.InputSignal<string>;
|
|
726
|
+
message: _angular_core.InputSignal<string | undefined>;
|
|
727
|
+
icon: _angular_core.InputSignal<string | undefined>;
|
|
728
|
+
readonly computedIcon: _angular_core.Signal<string>;
|
|
729
|
+
theme: _angular_core.InputSignal<Theme>;
|
|
730
|
+
affirmativeButton: _angular_core.InputSignal<string>;
|
|
731
|
+
cancelButton: _angular_core.InputSignal<string | undefined>;
|
|
732
|
+
onAffirmation(): void;
|
|
733
|
+
onCancel(): void;
|
|
734
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataAlertContentComponent, never>;
|
|
735
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataAlertContentComponent, "st-alert-content", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "affirmativeButton": { "alias": "affirmativeButton"; "required": true; "isSignal": true; }; "cancelButton": { "alias": "cancelButton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
736
|
+
}
|
|
737
|
+
|
|
725
738
|
interface ModalConfiguration {
|
|
726
739
|
title?: string;
|
|
727
740
|
component: Type<unknown>;
|
|
@@ -747,6 +760,8 @@ declare abstract class StrataModalRef {
|
|
|
747
760
|
declare class ModalService {
|
|
748
761
|
private _modals;
|
|
749
762
|
modals: _angular_core.Signal<ModalConfiguration[]>;
|
|
763
|
+
private document;
|
|
764
|
+
constructor();
|
|
750
765
|
showModal(config: ModalConfiguration): void;
|
|
751
766
|
showAlert(config: AlertConfiguration, callback: (value: boolean) => void): void;
|
|
752
767
|
closeCurrentModal(value?: unknown): void;
|
|
@@ -755,25 +770,8 @@ declare class ModalService {
|
|
|
755
770
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
|
|
756
771
|
}
|
|
757
772
|
|
|
758
|
-
declare class StrataAlertContentComponent {
|
|
759
|
-
private modalService;
|
|
760
|
-
title: _angular_core.InputSignal<string>;
|
|
761
|
-
message: _angular_core.InputSignal<string | undefined>;
|
|
762
|
-
icon: _angular_core.InputSignal<string | undefined>;
|
|
763
|
-
readonly computedIcon: _angular_core.Signal<string>;
|
|
764
|
-
theme: _angular_core.InputSignal<Theme>;
|
|
765
|
-
affirmativeButton: _angular_core.InputSignal<string>;
|
|
766
|
-
cancelButton: _angular_core.InputSignal<string | undefined>;
|
|
767
|
-
constructor(modalService: ModalService);
|
|
768
|
-
onAffirmation(): void;
|
|
769
|
-
onCancel(): void;
|
|
770
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataAlertContentComponent, never>;
|
|
771
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataAlertContentComponent, "st-alert-content", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "affirmativeButton": { "alias": "affirmativeButton"; "required": true; "isSignal": true; }; "cancelButton": { "alias": "cancelButton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
773
|
declare class StrataModalContainerComponent {
|
|
775
774
|
modalService: ModalService;
|
|
776
|
-
constructor(modalService: ModalService);
|
|
777
775
|
onBackdropClick(event: MouseEvent): void;
|
|
778
776
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrataModalContainerComponent, never>;
|
|
779
777
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrataModalContainerComponent, "st-modal-container", never, {}, {}, never, never, true, never>;
|