@db-ux/ngx-core-components 1.0.0-test-13b991d
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/README.md +130 -0
- package/components/accordion/accordion.d.ts +31 -0
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/model.d.ts +41 -0
- package/components/accordion-item/accordion-item.d.ts +29 -0
- package/components/accordion-item/index.d.ts +1 -0
- package/components/accordion-item/model.d.ts +24 -0
- package/components/badge/badge.d.ts +28 -0
- package/components/badge/index.d.ts +1 -0
- package/components/badge/model.d.ts +16 -0
- package/components/brand/brand.d.ts +24 -0
- package/components/brand/index.d.ts +1 -0
- package/components/brand/model.d.ts +10 -0
- package/components/button/button.d.ts +39 -0
- package/components/button/index.d.ts +1 -0
- package/components/button/model.d.ts +52 -0
- package/components/card/card.d.ts +24 -0
- package/components/card/index.d.ts +1 -0
- package/components/card/model.d.ts +18 -0
- package/components/checkbox/checkbox.d.ts +64 -0
- package/components/checkbox/index.d.ts +1 -0
- package/components/checkbox/model.d.ts +10 -0
- package/components/divider/divider.d.ts +22 -0
- package/components/divider/index.d.ts +1 -0
- package/components/divider/model.d.ts +18 -0
- package/components/drawer/drawer.d.ts +34 -0
- package/components/drawer/index.d.ts +1 -0
- package/components/drawer/model.d.ts +41 -0
- package/components/header/MetaNavigation.directive.d.ts +5 -0
- package/components/header/Navigation.directive.d.ts +5 -0
- package/components/header/SecondaryAction.directive.d.ts +5 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/index.d.ts +1 -0
- package/components/header/model.d.ts +44 -0
- package/components/icon/icon.d.ts +22 -0
- package/components/icon/index.d.ts +1 -0
- package/components/icon/model.d.ts +12 -0
- package/components/infotext/index.d.ts +1 -0
- package/components/infotext/infotext.d.ts +24 -0
- package/components/infotext/model.d.ts +5 -0
- package/components/input/index.d.ts +1 -0
- package/components/input/input.d.ts +87 -0
- package/components/input/model.d.ts +39 -0
- package/components/link/index.d.ts +1 -0
- package/components/link/link.d.ts +37 -0
- package/components/link/model.d.ts +24 -0
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/model.d.ts +5 -0
- package/components/navigation/navigation.d.ts +21 -0
- package/components/navigation-item/NavigationContent.directive.d.ts +5 -0
- package/components/navigation-item/index.d.ts +1 -0
- package/components/navigation-item/model.d.ts +34 -0
- package/components/navigation-item/navigation-item.d.ts +44 -0
- package/components/notification/index.d.ts +1 -0
- package/components/notification/model.d.ts +57 -0
- package/components/notification/notification.d.ts +38 -0
- package/components/page/index.d.ts +1 -0
- package/components/page/model.d.ts +32 -0
- package/components/page/page.d.ts +25 -0
- package/components/popover/index.d.ts +1 -0
- package/components/popover/model.d.ts +18 -0
- package/components/popover/popover.d.ts +33 -0
- package/components/radio/index.d.ts +1 -0
- package/components/radio/model.d.ts +7 -0
- package/components/radio/radio.d.ts +51 -0
- package/components/section/index.d.ts +1 -0
- package/components/section/model.d.ts +5 -0
- package/components/section/section.d.ts +22 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/model.d.ts +43 -0
- package/components/select/select.d.ts +77 -0
- package/components/stack/index.d.ts +1 -0
- package/components/stack/model.d.ts +34 -0
- package/components/stack/stack.d.ts +25 -0
- package/components/switch/index.d.ts +1 -0
- package/components/switch/model.d.ts +12 -0
- package/components/switch/switch.d.ts +55 -0
- package/components/tab-item/index.d.ts +1 -0
- package/components/tab-item/model.d.ts +24 -0
- package/components/tab-item/tab-item.d.ts +44 -0
- package/components/tab-list/index.d.ts +1 -0
- package/components/tab-list/model.d.ts +5 -0
- package/components/tab-list/tab-list.d.ts +20 -0
- package/components/tab-panel/index.d.ts +1 -0
- package/components/tab-panel/model.d.ts +10 -0
- package/components/tab-panel/tab-panel.d.ts +21 -0
- package/components/tabs/index.d.ts +1 -0
- package/components/tabs/model.d.ts +47 -0
- package/components/tabs/tabs.d.ts +42 -0
- package/components/tag/index.d.ts +1 -0
- package/components/tag/model.d.ts +45 -0
- package/components/tag/tag.d.ts +37 -0
- package/components/textarea/index.d.ts +1 -0
- package/components/textarea/model.d.ts +30 -0
- package/components/textarea/textarea.d.ts +79 -0
- package/components/tooltip/index.d.ts +1 -0
- package/components/tooltip/model.d.ts +7 -0
- package/components/tooltip/tooltip.d.ts +32 -0
- package/esm2022/components/accordion/accordion.mjs +196 -0
- package/esm2022/components/accordion/index.mjs +2 -0
- package/esm2022/components/accordion/model.mjs +3 -0
- package/esm2022/components/accordion-item/accordion-item.mjs +136 -0
- package/esm2022/components/accordion-item/index.mjs +2 -0
- package/esm2022/components/accordion-item/model.mjs +2 -0
- package/esm2022/components/badge/badge.mjs +130 -0
- package/esm2022/components/badge/index.mjs +2 -0
- package/esm2022/components/badge/model.mjs +2 -0
- package/esm2022/components/brand/brand.mjs +99 -0
- package/esm2022/components/brand/index.mjs +2 -0
- package/esm2022/components/brand/model.mjs +2 -0
- package/esm2022/components/button/button.mjs +158 -0
- package/esm2022/components/button/index.mjs +2 -0
- package/esm2022/components/button/model.mjs +4 -0
- package/esm2022/components/card/card.mjs +107 -0
- package/esm2022/components/card/index.mjs +2 -0
- package/esm2022/components/card/model.mjs +3 -0
- package/esm2022/components/checkbox/checkbox.mjs +328 -0
- package/esm2022/components/checkbox/index.mjs +2 -0
- package/esm2022/components/checkbox/model.mjs +2 -0
- package/esm2022/components/divider/divider.mjs +93 -0
- package/esm2022/components/divider/index.mjs +2 -0
- package/esm2022/components/divider/model.mjs +3 -0
- package/esm2022/components/drawer/drawer.mjs +218 -0
- package/esm2022/components/drawer/index.mjs +2 -0
- package/esm2022/components/drawer/model.mjs +4 -0
- package/esm2022/components/header/MetaNavigation.directive.mjs +15 -0
- package/esm2022/components/header/Navigation.directive.mjs +15 -0
- package/esm2022/components/header/SecondaryAction.directive.mjs +15 -0
- package/esm2022/components/header/header.mjs +251 -0
- package/esm2022/components/header/index.mjs +2 -0
- package/esm2022/components/header/model.mjs +2 -0
- package/esm2022/components/icon/icon.mjs +100 -0
- package/esm2022/components/icon/index.mjs +2 -0
- package/esm2022/components/icon/model.mjs +3 -0
- package/esm2022/components/infotext/index.mjs +2 -0
- package/esm2022/components/infotext/infotext.mjs +103 -0
- package/esm2022/components/infotext/model.mjs +2 -0
- package/esm2022/components/input/index.mjs +2 -0
- package/esm2022/components/input/input.mjs +421 -0
- package/esm2022/components/input/model.mjs +6 -0
- package/esm2022/components/link/index.mjs +2 -0
- package/esm2022/components/link/link.mjs +152 -0
- package/esm2022/components/link/model.mjs +4 -0
- package/esm2022/components/navigation/index.mjs +2 -0
- package/esm2022/components/navigation/model.mjs +2 -0
- package/esm2022/components/navigation/navigation.mjs +92 -0
- package/esm2022/components/navigation-item/NavigationContent.directive.mjs +15 -0
- package/esm2022/components/navigation-item/index.mjs +2 -0
- package/esm2022/components/navigation-item/model.mjs +2 -0
- package/esm2022/components/navigation-item/navigation-item.mjs +236 -0
- package/esm2022/components/notification/index.mjs +2 -0
- package/esm2022/components/notification/model.mjs +4 -0
- package/esm2022/components/notification/notification.mjs +181 -0
- package/esm2022/components/page/index.mjs +2 -0
- package/esm2022/components/page/model.mjs +3 -0
- package/esm2022/components/page/page.mjs +127 -0
- package/esm2022/components/popover/index.mjs +2 -0
- package/esm2022/components/popover/model.mjs +2 -0
- package/esm2022/components/popover/popover.mjs +189 -0
- package/esm2022/components/radio/index.mjs +2 -0
- package/esm2022/components/radio/model.mjs +2 -0
- package/esm2022/components/radio/radio.mjs +230 -0
- package/esm2022/components/section/index.mjs +2 -0
- package/esm2022/components/section/model.mjs +2 -0
- package/esm2022/components/section/section.mjs +96 -0
- package/esm2022/components/select/index.mjs +2 -0
- package/esm2022/components/select/model.mjs +2 -0
- package/esm2022/components/select/select.mjs +426 -0
- package/esm2022/components/stack/index.mjs +2 -0
- package/esm2022/components/stack/model.mjs +5 -0
- package/esm2022/components/stack/stack.mjs +106 -0
- package/esm2022/components/switch/index.mjs +2 -0
- package/esm2022/components/switch/model.mjs +2 -0
- package/esm2022/components/switch/switch.mjs +237 -0
- package/esm2022/components/tab-item/index.mjs +2 -0
- package/esm2022/components/tab-item/model.mjs +2 -0
- package/esm2022/components/tab-item/tab-item.mjs +195 -0
- package/esm2022/components/tab-list/index.mjs +2 -0
- package/esm2022/components/tab-list/model.mjs +2 -0
- package/esm2022/components/tab-list/tab-list.mjs +84 -0
- package/esm2022/components/tab-panel/index.mjs +2 -0
- package/esm2022/components/tab-panel/model.mjs +2 -0
- package/esm2022/components/tab-panel/tab-panel.mjs +96 -0
- package/esm2022/components/tabs/index.mjs +2 -0
- package/esm2022/components/tabs/model.mjs +3 -0
- package/esm2022/components/tabs/tabs.mjs +322 -0
- package/esm2022/components/tag/index.mjs +2 -0
- package/esm2022/components/tag/model.mjs +2 -0
- package/esm2022/components/tag/tag.mjs +186 -0
- package/esm2022/components/textarea/index.mjs +2 -0
- package/esm2022/components/textarea/model.mjs +3 -0
- package/esm2022/components/textarea/textarea.mjs +363 -0
- package/esm2022/components/tooltip/index.mjs +2 -0
- package/esm2022/components/tooltip/model.mjs +2 -0
- package/esm2022/components/tooltip/tooltip.mjs +149 -0
- package/esm2022/db-ux-ngx-core-components.mjs +5 -0
- package/esm2022/index.mjs +41 -0
- package/esm2022/shared/constants.mjs +94 -0
- package/esm2022/shared/model.mjs +22 -0
- package/esm2022/utils/form-components.mjs +11 -0
- package/esm2022/utils/index.mjs +174 -0
- package/esm2022/utils/navigation.mjs +133 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +6109 -0
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -0
- package/index.d.ts +40 -0
- package/package.json +35 -0
- package/shared/constants.d.ts +83 -0
- package/shared/model.d.ts +445 -0
- package/utils/form-components.d.ts +2 -0
- package/utils/index.d.ts +61 -0
- package/utils/navigation.d.ts +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# @db-ux/ngx-core-components
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
[](https://github.com/prettier/prettier)
|
|
5
|
+
[](https://conventionalcommits.org)
|
|
6
|
+
[](https://makeapullrequest.com)
|
|
7
|
+
|
|
8
|
+
An Angular library containing all styles & components of [DB UX Design System (technical components)](https://github.com/db-ux-design-system/core-web).
|
|
9
|
+
|
|
10
|
+
> **Note:** Find more information about specific components [here](https://db-ux-design-system.github.io/core-web/review/main)
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
npm i @db-ux/ngx-core-components
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
> **Note:** This will install [`@db-ux/core-foundations`](https://www.npmjs.com/package/@db-ux/core-foundations) and [`@db-ux/core-components`](https://www.npmjs.com/package/@db-ux/core-components) as well which contains the `css`/`scss` files
|
|
19
|
+
|
|
20
|
+
## Styling Dependencies
|
|
21
|
+
|
|
22
|
+
Import the styles in `scss` or `css`. Based on your technology the file names could be different.
|
|
23
|
+
|
|
24
|
+
- Default (relative): points to `../assets`
|
|
25
|
+
- Rollup (rollup): points to `@db-ux/core-foundations/assets`
|
|
26
|
+
- Webpack (webpack): points to `~@db-ux/core-foundations/assets`
|
|
27
|
+
|
|
28
|
+
<details>
|
|
29
|
+
<summary><strong>SCSS</strong></summary>
|
|
30
|
+
|
|
31
|
+
```scss styles.scss
|
|
32
|
+
// styles.scss
|
|
33
|
+
@forward "@db-ux/core-components/build/styles/rollup";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
<details>
|
|
38
|
+
<summary><strong>CSS</strong></summary>
|
|
39
|
+
|
|
40
|
+
```css styles.css
|
|
41
|
+
/* styles.css */
|
|
42
|
+
@import "@db-ux/core-components/build/styles/rollup.css";
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
</details>
|
|
46
|
+
|
|
47
|
+
> **Note:** The `relative` file contains optional and all components styles. If you consider performance issues see [@db-ux/core-components](https://www.npmjs.com/package/@db-ux/core-components) for more information.
|
|
48
|
+
|
|
49
|
+
### Resolve assets
|
|
50
|
+
|
|
51
|
+
The current default development config in `angular.json` doesn't use output hashing. This may cause an issue loading the fonts. Look at [this](https://github.com/angular/angular-cli/issues/26347) for more information.
|
|
52
|
+
|
|
53
|
+
As a solution add `
|
|
54
|
+
"outputHashing": "media"` to `configurations/development` in`angular.json`.
|
|
55
|
+
|
|
56
|
+
## Usage
|
|
57
|
+
|
|
58
|
+
```ts app.component.ts
|
|
59
|
+
//app.component.ts
|
|
60
|
+
import { DBButton } from '@db-ux/ngx-core-components';
|
|
61
|
+
|
|
62
|
+
@Component({
|
|
63
|
+
// ...
|
|
64
|
+
imports: [
|
|
65
|
+
// ...,
|
|
66
|
+
DBButton
|
|
67
|
+
],
|
|
68
|
+
standalone: true
|
|
69
|
+
// ...
|
|
70
|
+
})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```html app.component.html
|
|
74
|
+
<!-- app.component.html -->
|
|
75
|
+
<db-button variant="brand">Button</db-button>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Events
|
|
79
|
+
|
|
80
|
+
There are 3 ways to use Events in Angular:
|
|
81
|
+
|
|
82
|
+
**[ngModel](https://angular.io/api/forms/NgModel)**
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<db-input
|
|
86
|
+
label="Inputfield"
|
|
87
|
+
name="input-name"
|
|
88
|
+
[(ngModel)]="inputModel"
|
|
89
|
+
></db-input>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**[FormControl](https://angular.io/api/forms/FormControl)**
|
|
93
|
+
|
|
94
|
+
```html
|
|
95
|
+
<db-input
|
|
96
|
+
label="Inputfield"
|
|
97
|
+
name="input-name"
|
|
98
|
+
[formControl]="inputControl"
|
|
99
|
+
></db-input>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**[change](https://developer.mozilla.org/de/docs/Web/API/HTMLElement/change_event)**
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
<db-input
|
|
106
|
+
label="Inputfield"
|
|
107
|
+
name="input-name"
|
|
108
|
+
(change)="inputModel = $event.target.value"
|
|
109
|
+
></db-input>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Deutsche Bahn brand
|
|
113
|
+
|
|
114
|
+
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
|
|
115
|
+
Please have a look at our brand portal at <https://marketingportal.extranet.deutschebahn.com/> for any further questions and whom to contact on any brand issues.
|
|
116
|
+
|
|
117
|
+
You must remove or replace any Deutsche Bahn brand and design assets as well as protected characteristics and trademarks. We're even also planning to provide a neutral theme that would make it much easier for you to use our product without the trademarks by Deutsche Bahn.
|
|
118
|
+
|
|
119
|
+
## Contributions
|
|
120
|
+
|
|
121
|
+
Contributions are very welcome, please refer to the [contribution guide](https://github.com/db-ux-design-system/core-web/blob/main/CONTRIBUTING.md).
|
|
122
|
+
|
|
123
|
+
## Code of conduct
|
|
124
|
+
|
|
125
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
126
|
+
community a harassment-free experience for everyone – have a look at our [Contributor Covenant Code of Conduct](https://github.com/db-ux-design-system/core-web/blob/main/CODE-OF-CONDUCT.md).
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
This project is licensed under [Apache-2.0](LICENSE).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { DBAccordionProps, DBAccordionState } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBAccordion {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: DBAccordionProps["id"];
|
|
7
|
+
name: DBAccordionProps["name"];
|
|
8
|
+
behavior: DBAccordionProps["behavior"];
|
|
9
|
+
initOpenIndex: DBAccordionProps["initOpenIndex"];
|
|
10
|
+
className: DBAccordionProps["className"];
|
|
11
|
+
variant: DBAccordionProps["variant"];
|
|
12
|
+
items: DBAccordionProps["items"];
|
|
13
|
+
_ref: ElementRef | undefined;
|
|
14
|
+
_id: DBAccordionState["_id"];
|
|
15
|
+
_name: DBAccordionState["_name"];
|
|
16
|
+
initialized: DBAccordionState["initialized"];
|
|
17
|
+
_initOpenIndexDone: DBAccordionState["_initOpenIndexDone"];
|
|
18
|
+
convertItems(items: unknown[] | string | undefined): ReturnType<DBAccordionState["convertItems"]>;
|
|
19
|
+
trackByItem0(index: any, item: any): string;
|
|
20
|
+
/**
|
|
21
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
22
|
+
* @param element the ref for the component
|
|
23
|
+
* @param customElementSelector the custom element like `my-component`
|
|
24
|
+
*/
|
|
25
|
+
private enableAttributePassing;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBAccordion, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBAccordion, "db-accordion", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "initOpenIndex": { "alias": "initOpenIndex"; "required": false; }; "className": { "alias": "className"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBAccordion } from './accordion';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';
|
|
2
|
+
import { DBAccordionItemDefaultProps } from '../accordion-item/model';
|
|
3
|
+
export declare const AccordionVariantList: readonly ["divider", "card"];
|
|
4
|
+
export type AccordionVariantType = (typeof AccordionVariantList)[number];
|
|
5
|
+
export declare const AccordionBehaviorList: readonly ["multiple", "single"];
|
|
6
|
+
export type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];
|
|
7
|
+
export type DBAccordionDefaultProps = {
|
|
8
|
+
/**
|
|
9
|
+
* To allow multiple items open at the same time or only 1 item
|
|
10
|
+
*/
|
|
11
|
+
behavior?: AccordionBehaviorType;
|
|
12
|
+
/**
|
|
13
|
+
* The index of items which should be open when loading the accordion
|
|
14
|
+
*/
|
|
15
|
+
initOpenIndex?: number[];
|
|
16
|
+
/**
|
|
17
|
+
* Alternative to pass in a simple representation of accordion items
|
|
18
|
+
*/
|
|
19
|
+
items?: DBAccordionItemDefaultProps[] | string;
|
|
20
|
+
/**
|
|
21
|
+
* Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Informs about the changes in the internal state, which item is open
|
|
26
|
+
*/
|
|
27
|
+
onChange?: (openAccordionItemIds: string[]) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the display of the accordion and the items:
|
|
30
|
+
* "divider": with a dividing line between the items
|
|
31
|
+
* "card": w/o dividing line, but items are shown in the card variant
|
|
32
|
+
*/
|
|
33
|
+
variant?: AccordionVariantType;
|
|
34
|
+
};
|
|
35
|
+
export type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;
|
|
36
|
+
export type DBAccordionDefaultState = {
|
|
37
|
+
_initOpenIndexDone: boolean;
|
|
38
|
+
_name: string;
|
|
39
|
+
convertItems: (items?: unknown[] | string) => DBAccordionItemDefaultProps[];
|
|
40
|
+
};
|
|
41
|
+
export type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from "@angular/core";
|
|
2
|
+
import { DBAccordionItemProps, DBAccordionItemState } from "./model";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBAccordionItem {
|
|
6
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
getBooleanAsString: (originBool?: boolean | undefined) => any;
|
|
8
|
+
id: DBAccordionItemProps["id"];
|
|
9
|
+
defaultOpen: DBAccordionItemProps["defaultOpen"];
|
|
10
|
+
className: DBAccordionItemProps["className"];
|
|
11
|
+
disabled: DBAccordionItemProps["disabled"];
|
|
12
|
+
headlinePlain: DBAccordionItemProps["headlinePlain"];
|
|
13
|
+
text: DBAccordionItemProps["text"];
|
|
14
|
+
onToggle: EventEmitter<any>;
|
|
15
|
+
_ref: ElementRef | undefined;
|
|
16
|
+
_id: DBAccordionItemState["_id"];
|
|
17
|
+
_open: DBAccordionItemState["_open"];
|
|
18
|
+
toggle(event: ClickEvent<HTMLElement>): ReturnType<DBAccordionItemState["toggle"]>;
|
|
19
|
+
/**
|
|
20
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
21
|
+
* @param element the ref for the component
|
|
22
|
+
* @param customElementSelector the custom element like `my-component`
|
|
23
|
+
*/
|
|
24
|
+
private enableAttributePassing;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBAccordionItem, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBAccordionItem, "db-accordion-item", never, { "id": { "alias": "id"; "required": false; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; }; "className": { "alias": "className"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "headlinePlain": { "alias": "headlinePlain"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "onToggle": "onToggle"; }, never, ["[headline]", "*"], true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBAccordionItem } from './accordion-item';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
2
|
+
export type DBAccordionItemDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Initial state for the accordion item
|
|
5
|
+
*/
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The disabled attribute can be set to keep a user from clicking on the element.
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Title of the accordion-item as slot
|
|
13
|
+
*/
|
|
14
|
+
headline?: any;
|
|
15
|
+
/**
|
|
16
|
+
* Title of the accordion-item as plain text
|
|
17
|
+
*/
|
|
18
|
+
headlinePlain?: string;
|
|
19
|
+
} & TextProps;
|
|
20
|
+
export type DBAccordionItemProps = DBAccordionItemDefaultProps & GlobalProps & ToggleEventProps;
|
|
21
|
+
export type DBAccordionItemDefaultState = {
|
|
22
|
+
_open: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type DBAccordionItemState = DBAccordionItemDefaultState & GlobalState & ToggleEventState<HTMLElement>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { DBBadgeProps, DBBadgeState } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBBadge {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
DEFAULT_LABEL: string;
|
|
7
|
+
placement: DBBadgeProps["placement"];
|
|
8
|
+
id: DBBadgeProps["id"];
|
|
9
|
+
className: DBBadgeProps["className"];
|
|
10
|
+
semantic: DBBadgeProps["semantic"];
|
|
11
|
+
size: DBBadgeProps["size"];
|
|
12
|
+
emphasis: DBBadgeProps["emphasis"];
|
|
13
|
+
label: DBBadgeProps["label"];
|
|
14
|
+
text: DBBadgeProps["text"];
|
|
15
|
+
_ref: ElementRef | undefined;
|
|
16
|
+
initialized: DBBadgeState["initialized"];
|
|
17
|
+
/**
|
|
18
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
19
|
+
* @param element the ref for the component
|
|
20
|
+
* @param customElementSelector the custom element like `my-component`
|
|
21
|
+
*/
|
|
22
|
+
private enableAttributePassing;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngAfterViewInit(): void;
|
|
25
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBBadge, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBBadge, "db-badge", never, { "placement": { "alias": "placement"; "required": false; }; "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "semantic": { "alias": "semantic"; "required": false; }; "size": { "alias": "size"; "required": false; }; "emphasis": { "alias": "emphasis"; "required": false; }; "label": { "alias": "label"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBBadge } from './badge';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TagEmphasisProps, TextProps } from '../../shared/model';
|
|
2
|
+
export declare const BadgePlacementList: readonly ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"];
|
|
3
|
+
export type BadgePlacementType = (typeof BadgePlacementList)[number];
|
|
4
|
+
export type DBBadgeDefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.
|
|
7
|
+
*/
|
|
8
|
+
placement?: BadgePlacementType;
|
|
9
|
+
/**
|
|
10
|
+
* Describes the badge for a11y if you use placement attribute with `corner-*`
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
14
|
+
export type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & TagEmphasisProps & TextProps;
|
|
15
|
+
export type DBBadgeDefaultState = {};
|
|
16
|
+
export type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { DBBrandProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBBrand {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
7
|
+
DEFAULT_ICON: string;
|
|
8
|
+
hideLogo: DBBrandProps["hideLogo"];
|
|
9
|
+
icon: DBBrandProps["icon"];
|
|
10
|
+
showIcon: DBBrandProps["showIcon"];
|
|
11
|
+
id: DBBrandProps["id"];
|
|
12
|
+
className: DBBrandProps["className"];
|
|
13
|
+
text: DBBrandProps["text"];
|
|
14
|
+
_ref: ElementRef | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
17
|
+
* @param element the ref for the component
|
|
18
|
+
* @param customElementSelector the custom element like `my-component`
|
|
19
|
+
*/
|
|
20
|
+
private enableAttributePassing;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBBrand, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBBrand, "db-brand", never, { "hideLogo": { "alias": "hideLogo"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBBrand } from './brand';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
|
|
2
|
+
export type DBBrandDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated: Disable the default logo svg to pass in a custom `img`
|
|
5
|
+
*/
|
|
6
|
+
hideLogo?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DBBrandProps = DBBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps;
|
|
9
|
+
export type DBBrandDefaultState = {};
|
|
10
|
+
export type DBBrandState = DBBrandDefaultState & GlobalState;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from "@angular/core";
|
|
2
|
+
import type { DBButtonProps, DBButtonState } from "./model";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBButton {
|
|
6
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
getBooleanAsString: (originBool?: boolean | undefined) => any;
|
|
8
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
9
|
+
id: DBButtonProps["id"];
|
|
10
|
+
className: DBButtonProps["className"];
|
|
11
|
+
type: DBButtonProps["type"];
|
|
12
|
+
disabled: DBButtonProps["disabled"];
|
|
13
|
+
label: DBButtonProps["label"];
|
|
14
|
+
icon: DBButtonProps["icon"];
|
|
15
|
+
showIcon: DBButtonProps["showIcon"];
|
|
16
|
+
size: DBButtonProps["size"];
|
|
17
|
+
state: DBButtonProps["state"];
|
|
18
|
+
width: DBButtonProps["width"];
|
|
19
|
+
variant: DBButtonProps["variant"];
|
|
20
|
+
noText: DBButtonProps["noText"];
|
|
21
|
+
name: DBButtonProps["name"];
|
|
22
|
+
value: DBButtonProps["value"];
|
|
23
|
+
describedbyid: DBButtonProps["describedbyid"];
|
|
24
|
+
ariaexpanded: DBButtonProps["ariaexpanded"];
|
|
25
|
+
ariapressed: DBButtonProps["ariapressed"];
|
|
26
|
+
text: DBButtonProps["text"];
|
|
27
|
+
onClick: EventEmitter<any>;
|
|
28
|
+
_ref: ElementRef | undefined;
|
|
29
|
+
handleClick(event: ClickEvent<HTMLButtonElement>): ReturnType<DBButtonState["handleClick"]>;
|
|
30
|
+
/**
|
|
31
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
32
|
+
* @param element the ref for the component
|
|
33
|
+
* @param customElementSelector the custom element like `my-component`
|
|
34
|
+
*/
|
|
35
|
+
private enableAttributePassing;
|
|
36
|
+
ngAfterViewInit(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBButton, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBButton, "db-button", never, { "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "state": { "alias": "state"; "required": false; }; "width": { "alias": "width"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "noText": { "alias": "noText"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "describedbyid": { "alias": "describedbyid"; "required": false; }; "ariaexpanded": { "alias": "ariaexpanded"; "required": false; }; "ariapressed": { "alias": "ariapressed"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBButton } from './button';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, ShowIconProps, SizeProps, TextProps, WidthProps } from '../../shared/model';
|
|
2
|
+
export declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
|
|
3
|
+
export type ButtonVariantType = (typeof ButtonVariantList)[number];
|
|
4
|
+
export declare const ButtonTypeList: readonly ["button", "reset", "submit"];
|
|
5
|
+
export type ButtonTypeType = (typeof ButtonTypeList)[number];
|
|
6
|
+
export declare const ButtonStateList: readonly ["loading"];
|
|
7
|
+
export type ButtonStateType = (typeof ButtonStateList)[number];
|
|
8
|
+
export type DBButtonDefaultProps = {
|
|
9
|
+
/**
|
|
10
|
+
* If the button controls a grouping of other elements, the ariaexpanded state [indicates whether the controlled grouping is currently expanded or collapsed](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded).
|
|
11
|
+
*/
|
|
12
|
+
ariaexpanded?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the button as a toggle button. The value of [ariapressed describes the state of the button](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed).
|
|
15
|
+
*/
|
|
16
|
+
ariapressed?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
23
|
+
*/
|
|
24
|
+
noText?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The label represents the [aria-label attributes](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) value of the button
|
|
27
|
+
*/
|
|
28
|
+
label?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).
|
|
35
|
+
*/
|
|
36
|
+
type?: ButtonTypeType;
|
|
37
|
+
/**
|
|
38
|
+
* The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).
|
|
39
|
+
*/
|
|
40
|
+
value?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Show loading progress inside button.
|
|
43
|
+
*/
|
|
44
|
+
state?: ButtonStateType;
|
|
45
|
+
/**
|
|
46
|
+
* Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.
|
|
47
|
+
*/
|
|
48
|
+
variant?: ButtonVariantType | string;
|
|
49
|
+
};
|
|
50
|
+
export type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps;
|
|
51
|
+
export type DBButtonDefaultState = {};
|
|
52
|
+
export type DBButtonState = DBButtonDefaultState & GlobalState & ClickEventState<HTMLButtonElement>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from "@angular/core";
|
|
2
|
+
import type { DBCardProps, DBCardState } from "./model";
|
|
3
|
+
import { ClickEvent } from "../../shared/model";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DBCard {
|
|
6
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
7
|
+
id: DBCardProps["id"];
|
|
8
|
+
className: DBCardProps["className"];
|
|
9
|
+
behavior: DBCardProps["behavior"];
|
|
10
|
+
elevationLevel: DBCardProps["elevationLevel"];
|
|
11
|
+
spacing: DBCardProps["spacing"];
|
|
12
|
+
onClick: EventEmitter<any>;
|
|
13
|
+
_ref: ElementRef | undefined;
|
|
14
|
+
handleClick(event: ClickEvent<HTMLElement>): ReturnType<DBCardState["handleClick"]>;
|
|
15
|
+
/**
|
|
16
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
17
|
+
* @param element the ref for the component
|
|
18
|
+
* @param customElementSelector the custom element like `my-component`
|
|
19
|
+
*/
|
|
20
|
+
private enableAttributePassing;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBCard, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBCard, "db-card", never, { "id": { "alias": "id"; "required": false; }; "className": { "alias": "className"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "elevationLevel": { "alias": "elevationLevel"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBCard } from './card';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
|
|
2
|
+
export declare const CardBehaviorList: readonly ["static", "interactive"];
|
|
3
|
+
export type CardBehaviorType = (typeof CardBehaviorList)[number];
|
|
4
|
+
export declare const CardElevationLevelList: readonly ["1", "2", "3"];
|
|
5
|
+
export type CardElevationLevelType = (typeof CardElevationLevelList)[number];
|
|
6
|
+
export type DBCardDefaultProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Makes the card interactive
|
|
9
|
+
*/
|
|
10
|
+
behavior?: CardBehaviorType;
|
|
11
|
+
/**
|
|
12
|
+
* Changes the elevation of the card which is equal to `basic-background-level`
|
|
13
|
+
*/
|
|
14
|
+
elevationLevel?: CardElevationLevelType;
|
|
15
|
+
};
|
|
16
|
+
export type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;
|
|
17
|
+
export type DBCardDefaultState = {};
|
|
18
|
+
export type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, SimpleChanges, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { DBCheckboxProps, DBCheckboxState } from "./model";
|
|
4
|
+
import { ChangeEvent, InteractionEvent } from "../../shared/model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DBCheckbox implements ControlValueAccessor {
|
|
7
|
+
private renderer;
|
|
8
|
+
constructor(renderer: Renderer2);
|
|
9
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
10
|
+
getHideProp: (show?: boolean | undefined) => any;
|
|
11
|
+
stringPropVisible: (givenString?: string | undefined, showString?: boolean | undefined) => string | boolean | undefined;
|
|
12
|
+
DEFAULT_INVALID_MESSAGE: string;
|
|
13
|
+
DEFAULT_VALID_MESSAGE: string;
|
|
14
|
+
id: DBCheckboxProps["id"];
|
|
15
|
+
message: DBCheckboxProps["message"];
|
|
16
|
+
showMessage: DBCheckboxProps["showMessage"];
|
|
17
|
+
checked: DBCheckboxProps["checked"];
|
|
18
|
+
indeterminate: DBCheckboxProps["indeterminate"];
|
|
19
|
+
validation: DBCheckboxProps["validation"];
|
|
20
|
+
invalidMessage: DBCheckboxProps["invalidMessage"];
|
|
21
|
+
required: DBCheckboxProps["required"];
|
|
22
|
+
validMessage: DBCheckboxProps["validMessage"];
|
|
23
|
+
className: DBCheckboxProps["className"];
|
|
24
|
+
size: DBCheckboxProps["size"];
|
|
25
|
+
showLabel: DBCheckboxProps["showLabel"];
|
|
26
|
+
name: DBCheckboxProps["name"];
|
|
27
|
+
disabled: DBCheckboxProps["disabled"];
|
|
28
|
+
value: DBCheckboxProps["value"];
|
|
29
|
+
label: DBCheckboxProps["label"];
|
|
30
|
+
messageIcon: DBCheckboxProps["messageIcon"];
|
|
31
|
+
onChange: EventEmitter<any>;
|
|
32
|
+
change: EventEmitter<any>;
|
|
33
|
+
onBlur: EventEmitter<any>;
|
|
34
|
+
blur: EventEmitter<any>;
|
|
35
|
+
onFocus: EventEmitter<any>;
|
|
36
|
+
focus: EventEmitter<any>;
|
|
37
|
+
_ref: ElementRef | undefined;
|
|
38
|
+
initialized: DBCheckboxState["initialized"];
|
|
39
|
+
_id: DBCheckboxState["_id"];
|
|
40
|
+
_messageId: DBCheckboxState["_messageId"];
|
|
41
|
+
_validMessageId: DBCheckboxState["_validMessageId"];
|
|
42
|
+
_invalidMessageId: DBCheckboxState["_invalidMessageId"];
|
|
43
|
+
_descByIds: DBCheckboxState["_descByIds"];
|
|
44
|
+
_voiceOverFallback: DBCheckboxState["_voiceOverFallback"];
|
|
45
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): ReturnType<DBCheckboxState["handleChange"]>;
|
|
46
|
+
handleBlur(event: InteractionEvent<HTMLInputElement>): ReturnType<DBCheckboxState["handleBlur"]>;
|
|
47
|
+
handleFocus(event: InteractionEvent<HTMLInputElement>): ReturnType<DBCheckboxState["handleFocus"]>;
|
|
48
|
+
/**
|
|
49
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
50
|
+
* @param element the ref for the component
|
|
51
|
+
* @param customElementSelector the custom element like `my-component`
|
|
52
|
+
*/
|
|
53
|
+
private enableAttributePassing;
|
|
54
|
+
writeValue(value: any): void;
|
|
55
|
+
propagateChange(_: any): void;
|
|
56
|
+
registerOnChange(onChange: any): void;
|
|
57
|
+
registerOnTouched(onTouched: any): void;
|
|
58
|
+
setDisabledState(disabled: boolean): void;
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
ngAfterViewInit(): void;
|
|
61
|
+
ngAfterContentChecked(changes: SimpleChanges): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBCheckbox, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBCheckbox, "db-checkbox", never, { "id": { "alias": "id"; "required": false; }; "message": { "alias": "message"; "required": false; }; "showMessage": { "alias": "showMessage"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "validMessage": { "alias": "validMessage"; "required": false; }; "className": { "alias": "className"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; }, { "onChange": "onChange"; "change": "change"; "onBlur": "onBlur"; "blur": "blur"; "onFocus": "onFocus"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBCheckbox } from './checkbox';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
|
|
2
|
+
export type DBCheckboxDefaultProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox
|
|
5
|
+
*/
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DBCheckboxProps = DBCheckboxDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps;
|
|
9
|
+
export type DBCheckboxDefaultState = {};
|
|
10
|
+
export type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { DBDividerProps } from "./model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DBDivider {
|
|
5
|
+
cls: (...args: import("../../utils").ClassNameArg[]) => string;
|
|
6
|
+
id: DBDividerProps["id"];
|
|
7
|
+
margin: DBDividerProps["margin"];
|
|
8
|
+
variant: DBDividerProps["variant"];
|
|
9
|
+
emphasis: DBDividerProps["emphasis"];
|
|
10
|
+
width: DBDividerProps["width"];
|
|
11
|
+
className: DBDividerProps["className"];
|
|
12
|
+
_ref: ElementRef | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
15
|
+
* @param element the ref for the component
|
|
16
|
+
* @param customElementSelector the custom element like `my-component`
|
|
17
|
+
*/
|
|
18
|
+
private enableAttributePassing;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DBDivider, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DBDivider, "db-divider", never, { "id": { "alias": "id"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "emphasis": { "alias": "emphasis"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DBDivider } from './divider';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
|
|
2
|
+
export declare const DividerMarginList: readonly ["none", "_"];
|
|
3
|
+
export type DividerMarginType = (typeof DividerMarginList)[number];
|
|
4
|
+
export declare const DividerVariantList: readonly ["horizontal", "vertical"];
|
|
5
|
+
export type DividerVariantType = (typeof DividerVariantList)[number];
|
|
6
|
+
export type DBDividerDefaultProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Removes the margin of the divider.
|
|
9
|
+
*/
|
|
10
|
+
margin?: DividerMarginType;
|
|
11
|
+
/**
|
|
12
|
+
* Changes the orientation of the divider.
|
|
13
|
+
*/
|
|
14
|
+
variant?: DividerVariantType;
|
|
15
|
+
};
|
|
16
|
+
export type DBDividerProps = DBDividerDefaultProps & GlobalProps & EmphasisProps & MarginProps & WidthProps;
|
|
17
|
+
export type DBDividerDefaultState = {};
|
|
18
|
+
export type DBDividerState = DBDividerDefaultState & GlobalState;
|