@db-ux/ngx-core-components 4.5.1 → 4.5.2-0-eff2227
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/agent/Accordion.md +52 -0
- package/agent/AccordionItem.md +45 -0
- package/agent/Badge.md +48 -0
- package/agent/Brand.md +29 -0
- package/agent/Button.md +59 -0
- package/agent/Card.md +39 -0
- package/agent/Checkbox.md +52 -0
- package/agent/CustomSelect.md +89 -0
- package/agent/Divider.md +37 -0
- package/agent/Drawer.md +90 -0
- package/agent/Header.md +45 -0
- package/agent/Icon.md +36 -0
- package/agent/Infotext.md +41 -0
- package/agent/Input.md +58 -0
- package/agent/Link.md +60 -0
- package/agent/Navigation.md +34 -0
- package/agent/NavigationItem.md +45 -0
- package/agent/Notification.md +52 -0
- package/agent/Page.md +45 -0
- package/agent/Popover.md +69 -0
- package/agent/Radio.md +39 -0
- package/agent/Section.md +39 -0
- package/agent/Select.md +80 -0
- package/agent/Stack.md +51 -0
- package/agent/Switch.md +55 -0
- package/agent/TabItem.md +41 -0
- package/agent/Tabs.md +80 -0
- package/agent/Tag.md +48 -0
- package/agent/Textarea.md +57 -0
- package/agent/Tooltip.md +64 -0
- package/agent/_instructions.md +31 -0
- package/package.json +4 -4
- package/agent/.gitkeep +0 -0
package/agent/Tabs.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Tabs Examples (angular)
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { Component, effect } from "@angular/core";
|
|
7
|
+
import { CommonModule } from "@angular/common";
|
|
8
|
+
|
|
9
|
+
import { DBTabItem } from "../../tab-item/index";
|
|
10
|
+
import { DBTabList } from "../../tab-list/index";
|
|
11
|
+
import { DBTabPanel } from "../../tab-panel/index";
|
|
12
|
+
import { DBTabs } from "../index";
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: "tabs",
|
|
16
|
+
standalone: true,
|
|
17
|
+
imports: [CommonModule, DBTabs, DBTabList, DBTabItem, DBTabPanel],
|
|
18
|
+
template: `<ng-container
|
|
19
|
+
><h1>DBTabs Documentation Examples</h1>
|
|
20
|
+
<h2>1. Default Tabs</h2>
|
|
21
|
+
<db-tabs
|
|
22
|
+
><db-tab-list
|
|
23
|
+
><db-tab-item>Tab 1</db-tab-item>
|
|
24
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
25
|
+
<db-tab-item>Tab 3</db-tab-item></db-tab-list
|
|
26
|
+
>
|
|
27
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
28
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
29
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel></db-tabs
|
|
30
|
+
>
|
|
31
|
+
<h2>2. Behavior Variants</h2>
|
|
32
|
+
<db-tabs behavior="scrollbar"
|
|
33
|
+
><db-tab-list
|
|
34
|
+
><db-tab-item>Tab 1</db-tab-item>
|
|
35
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
36
|
+
<db-tab-item>Tab 3</db-tab-item></db-tab-list
|
|
37
|
+
>
|
|
38
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
39
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
40
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel></db-tabs
|
|
41
|
+
>
|
|
42
|
+
<db-tabs behavior="arrows"
|
|
43
|
+
><db-tab-list
|
|
44
|
+
><db-tab-item>Tab 1</db-tab-item>
|
|
45
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
46
|
+
<db-tab-item>Tab 3</db-tab-item></db-tab-list
|
|
47
|
+
>
|
|
48
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
49
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
50
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel></db-tabs
|
|
51
|
+
>
|
|
52
|
+
<h2>3. Initial Selected Index</h2>
|
|
53
|
+
<db-tabs [initialSelectedIndex]="1"
|
|
54
|
+
><db-tab-list
|
|
55
|
+
><db-tab-item>Tab 1</db-tab-item>
|
|
56
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
57
|
+
<db-tab-item>Tab 3</db-tab-item></db-tab-list
|
|
58
|
+
>
|
|
59
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
60
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
61
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel></db-tabs
|
|
62
|
+
>
|
|
63
|
+
<h2>4. Initial Selected Mode</h2>
|
|
64
|
+
<db-tabs initialSelectedMode="manually"
|
|
65
|
+
><db-tab-list
|
|
66
|
+
><db-tab-item>Tab 1</db-tab-item>
|
|
67
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
68
|
+
<db-tab-item>Tab 3</db-tab-item></db-tab-list
|
|
69
|
+
>
|
|
70
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
71
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
72
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel></db-tabs
|
|
73
|
+
></ng-container
|
|
74
|
+
> `,
|
|
75
|
+
styles: `:host { display: contents; }`,
|
|
76
|
+
})
|
|
77
|
+
export class Tabs {
|
|
78
|
+
constructor() {}
|
|
79
|
+
}
|
|
80
|
+
```
|
package/agent/Tag.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Tag Examples (angular)
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { Component, effect } from "@angular/core";
|
|
7
|
+
import { CommonModule } from "@angular/common";
|
|
8
|
+
|
|
9
|
+
import { DBButton } from "../../button";
|
|
10
|
+
import { DBCheckbox } from "../../checkbox";
|
|
11
|
+
import { DBLink } from "../../link";
|
|
12
|
+
import { DBRadio } from "../../radio";
|
|
13
|
+
import { DBTag } from "../index";
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: "tag",
|
|
17
|
+
standalone: true,
|
|
18
|
+
imports: [CommonModule, DBTag, DBButton, DBLink, DBCheckbox, DBRadio],
|
|
19
|
+
template: `<ng-container
|
|
20
|
+
><h1>DBTag Documentation Examples</h1>
|
|
21
|
+
<h2>1. Default Tags</h2>
|
|
22
|
+
<db-tag><db-button>Tag as Button</db-button></db-tag>
|
|
23
|
+
<db-tag><db-link>Tag as Link</db-link></db-tag>
|
|
24
|
+
<db-tag><db-checkbox>Tag as Checkbox</db-checkbox></db-tag>
|
|
25
|
+
<db-tag><db-radio>Tag as Radio</db-radio></db-tag>
|
|
26
|
+
<db-tag>Static Tag</db-tag>
|
|
27
|
+
<h2>2. Overflow Example</h2>
|
|
28
|
+
<db-tag [overflow]="true"><span>Static Tag with overflow</span></db-tag>
|
|
29
|
+
<h2>3. Removable Tag</h2>
|
|
30
|
+
<db-tag behavior="removable" (remove)="console.log('Tag removed')">
|
|
31
|
+
Removable Tag
|
|
32
|
+
</db-tag>
|
|
33
|
+
<h2>4. Semantic Variants</h2>
|
|
34
|
+
<db-tag semantic="adaptive">Adaptive Tag</db-tag>
|
|
35
|
+
<db-tag semantic="neutral">Neutral Tag</db-tag>
|
|
36
|
+
<db-tag semantic="critical">Critical Tag</db-tag>
|
|
37
|
+
<db-tag semantic="informational">Informational Tag</db-tag>
|
|
38
|
+
<db-tag semantic="warning">Warning Tag</db-tag>
|
|
39
|
+
<db-tag semantic="successful">Successful Tag</db-tag>
|
|
40
|
+
<h2>5. Icon Support</h2>
|
|
41
|
+
<db-tag icon="user">Tag with Icon</db-tag></ng-container
|
|
42
|
+
> `,
|
|
43
|
+
styles: `:host { display: contents; }`,
|
|
44
|
+
})
|
|
45
|
+
export class Tag {
|
|
46
|
+
constructor() {}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Textarea Examples (angular)
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { Component, effect } from "@angular/core";
|
|
7
|
+
import { CommonModule } from "@angular/common";
|
|
8
|
+
|
|
9
|
+
import { DBTextarea } from "../index";
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: "textarea",
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [CommonModule, DBTextarea],
|
|
15
|
+
template: `<ng-container
|
|
16
|
+
><h1>DBTextarea Documentation Examples</h1>
|
|
17
|
+
<h2>1. Default Textarea</h2>
|
|
18
|
+
<db-textarea label="Default Textarea"></db-textarea>
|
|
19
|
+
<h2>2. Resizable Variants</h2>
|
|
20
|
+
<db-textarea resize="none" label="No Resize"></db-textarea>
|
|
21
|
+
<db-textarea resize="both" label="Resize Both"></db-textarea>
|
|
22
|
+
<db-textarea resize="horizontal" label="Resize Horizontal"></db-textarea>
|
|
23
|
+
<db-textarea resize="vertical" label="Resize Vertical"></db-textarea>
|
|
24
|
+
<h2>3. Rows and Columns</h2>
|
|
25
|
+
<db-textarea
|
|
26
|
+
label="Custom Rows and Columns"
|
|
27
|
+
[rows]="5"
|
|
28
|
+
[cols]="30"
|
|
29
|
+
></db-textarea>
|
|
30
|
+
<h2>4. Wrap Variants</h2>
|
|
31
|
+
<db-textarea wrap="hard" label="Hard Wrap"></db-textarea>
|
|
32
|
+
<db-textarea wrap="soft" label="Soft Wrap"></db-textarea>
|
|
33
|
+
<db-textarea wrap="off" label="No Wrap"></db-textarea>
|
|
34
|
+
<h2>5. Disabled State</h2>
|
|
35
|
+
<db-textarea label="Disabled Textarea" [disabled]="true"></db-textarea>
|
|
36
|
+
<h2>6. Placeholder Examples</h2>
|
|
37
|
+
<db-textarea
|
|
38
|
+
placeholder="Enter text here"
|
|
39
|
+
label="With Placeholder"
|
|
40
|
+
></db-textarea>
|
|
41
|
+
<h2>7. Message Property Example</h2>
|
|
42
|
+
<db-textarea
|
|
43
|
+
label="Textarea with Message"
|
|
44
|
+
message="This is a helper message."
|
|
45
|
+
></db-textarea>
|
|
46
|
+
<h2>8. Input Event Example</h2>
|
|
47
|
+
<db-textarea
|
|
48
|
+
label="Input Event"
|
|
49
|
+
(input)="console.log('Input event:', $event.target.value)"
|
|
50
|
+
></db-textarea
|
|
51
|
+
></ng-container> `,
|
|
52
|
+
styles: `:host { display: contents; }`,
|
|
53
|
+
})
|
|
54
|
+
export class Textarea {
|
|
55
|
+
constructor() {}
|
|
56
|
+
}
|
|
57
|
+
```
|
package/agent/Tooltip.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Tooltip Examples (angular)
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { Component, effect } from "@angular/core";
|
|
7
|
+
import { CommonModule } from "@angular/common";
|
|
8
|
+
|
|
9
|
+
import { DBButton } from "../../button";
|
|
10
|
+
import { DBTooltip } from "../index";
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: "tooltip",
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, DBButton, DBTooltip],
|
|
16
|
+
template: `<ng-container
|
|
17
|
+
><h1>DBTooltip Documentation Examples</h1>
|
|
18
|
+
<h2>1. Default Tooltip</h2>
|
|
19
|
+
<db-button>
|
|
20
|
+
Hover on me to open Tooltip
|
|
21
|
+
|
|
22
|
+
<db-tooltip>Tooltip</db-tooltip></db-button
|
|
23
|
+
>
|
|
24
|
+
<h2>2. Tooltip Variants</h2>
|
|
25
|
+
<db-button>
|
|
26
|
+
Description Tooltip
|
|
27
|
+
|
|
28
|
+
<db-tooltip variant="description">
|
|
29
|
+
Description Tooltip Content
|
|
30
|
+
</db-tooltip></db-button
|
|
31
|
+
>
|
|
32
|
+
<db-button>
|
|
33
|
+
Label Tooltip
|
|
34
|
+
|
|
35
|
+
<db-tooltip variant="label">Label Tooltip Content</db-tooltip></db-button
|
|
36
|
+
>
|
|
37
|
+
<h2>3. Tooltip with Arrow</h2>
|
|
38
|
+
<db-button>
|
|
39
|
+
Tooltip with Arrow
|
|
40
|
+
|
|
41
|
+
<db-tooltip [showArrow]="true">
|
|
42
|
+
Tooltip Content with Arrow
|
|
43
|
+
</db-tooltip></db-button
|
|
44
|
+
>
|
|
45
|
+
<h2>4. Placement Variants</h2>
|
|
46
|
+
<db-button>
|
|
47
|
+
Top Placement
|
|
48
|
+
|
|
49
|
+
<db-tooltip placement="top">Tooltip Content at Top</db-tooltip></db-button
|
|
50
|
+
>
|
|
51
|
+
<db-button>
|
|
52
|
+
Bottom Placement
|
|
53
|
+
|
|
54
|
+
<db-tooltip placement="bottom">
|
|
55
|
+
Tooltip Content at Bottom
|
|
56
|
+
</db-tooltip></db-button
|
|
57
|
+
></ng-container
|
|
58
|
+
> `,
|
|
59
|
+
styles: `:host { display: contents; }`,
|
|
60
|
+
})
|
|
61
|
+
export class Tooltip {
|
|
62
|
+
constructor() {}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
- Use "@db-ux/ngx-core-components" as import for components:
|
|
2
|
+
- use for `DBDrawer` or `Drawer` the file __agent-path__/agent/Drawer.md
|
|
3
|
+
- use for `DBTooltip` or `Tooltip` the file __agent-path__/agent/Tooltip.md
|
|
4
|
+
- use for `DBTextarea` or `Textarea` the file __agent-path__/agent/Textarea.md
|
|
5
|
+
- use for `DBTag` or `Tag` the file __agent-path__/agent/Tag.md
|
|
6
|
+
- use for `DBTabs` or `Tabs` the file __agent-path__/agent/Tabs.md
|
|
7
|
+
- use for `DBTabItem` or `TabItem` the file __agent-path__/agent/TabItem.md
|
|
8
|
+
- use for `DBSwitch` or `Switch` the file __agent-path__/agent/Switch.md
|
|
9
|
+
- use for `DBStack` or `Stack` the file __agent-path__/agent/Stack.md
|
|
10
|
+
- use for `DBSelect` or `Select` the file __agent-path__/agent/Select.md
|
|
11
|
+
- use for `DBSection` or `Section` the file __agent-path__/agent/Section.md
|
|
12
|
+
- use for `DBRadio` or `Radio` the file __agent-path__/agent/Radio.md
|
|
13
|
+
- use for `DBPopover` or `Popover` the file __agent-path__/agent/Popover.md
|
|
14
|
+
- use for `DBPage` or `Page` the file __agent-path__/agent/Page.md
|
|
15
|
+
- use for `DBNotification` or `Notification` the file __agent-path__/agent/Notification.md
|
|
16
|
+
- use for `DBNavigationItem` or `NavigationItem` the file __agent-path__/agent/NavigationItem.md
|
|
17
|
+
- use for `DBNavigation` or `Navigation` the file __agent-path__/agent/Navigation.md
|
|
18
|
+
- use for `DBLink` or `Link` the file __agent-path__/agent/Link.md
|
|
19
|
+
- use for `DBInput` or `Input` the file __agent-path__/agent/Input.md
|
|
20
|
+
- use for `DBInfotext` or `Infotext` the file __agent-path__/agent/Infotext.md
|
|
21
|
+
- use for `DBIcon` or `Icon` the file __agent-path__/agent/Icon.md
|
|
22
|
+
- use for `DBHeader` or `Header` the file __agent-path__/agent/Header.md
|
|
23
|
+
- use for `DBDivider` or `Divider` the file __agent-path__/agent/Divider.md
|
|
24
|
+
- use for `DBCustomSelect` or `CustomSelect` the file __agent-path__/agent/CustomSelect.md
|
|
25
|
+
- use for `DBCheckbox` or `Checkbox` the file __agent-path__/agent/Checkbox.md
|
|
26
|
+
- use for `DBCard` or `Card` the file __agent-path__/agent/Card.md
|
|
27
|
+
- use for `DBButton` or `Button` the file __agent-path__/agent/Button.md
|
|
28
|
+
- use for `DBBrand` or `Brand` the file __agent-path__/agent/Brand.md
|
|
29
|
+
- use for `DBBadge` or `Badge` the file __agent-path__/agent/Badge.md
|
|
30
|
+
- use for `DBAccordionItem` or `AccordionItem` the file __agent-path__/agent/AccordionItem.md
|
|
31
|
+
- use for `DBAccordion` or `Accordion` the file __agent-path__/agent/Accordion.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/ngx-core-components",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2-0-eff2227",
|
|
4
4
|
"description": "Angular components @db-ux/core-components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@db-ux/core-components": "4.5.
|
|
20
|
-
"@db-ux/core-foundations": "4.5.
|
|
19
|
+
"@db-ux/core-components": "4.5.2-0-eff2227",
|
|
20
|
+
"@db-ux/core-foundations": "4.5.2-0-eff2227",
|
|
21
21
|
"tslib": "^2.3.0"
|
|
22
22
|
},
|
|
23
23
|
"typings": "index.d.ts",
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false
|
|
34
|
-
}
|
|
34
|
+
}
|
package/agent/.gitkeep
DELETED
|
File without changes
|