@ngbase/adk 0.1.6 → 0.1.7

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.
Files changed (61) hide show
  1. package/breadcrumb/breadcrumb-separator.d.ts +1 -5
  2. package/breadcrumb/breadcrumb.d.ts +1 -0
  3. package/breadcrumb/breadcrumbs.d.ts +3 -1
  4. package/breadcrumb/public-api.d.ts +1 -1
  5. package/fesm2022/ngbase-adk-breadcrumb.mjs +32 -34
  6. package/fesm2022/ngbase-adk-breadcrumb.mjs.map +1 -1
  7. package/package.json +13 -13
  8. package/schematics/components/files/accordion/accordion-llm.md.template +35 -0
  9. package/schematics/components/files/alert/alert-llm.md.template +34 -0
  10. package/schematics/components/files/autocomplete/autocomplete-llm.md.template +76 -0
  11. package/schematics/components/files/avatar/avatar-llm.md.template +37 -0
  12. package/schematics/components/files/avatar/avatar.ts.template +5 -2
  13. package/schematics/components/files/badge/badge-llm.md.template +21 -0
  14. package/schematics/components/files/badge/badge.ts.template +1 -1
  15. package/schematics/components/files/breadcrumb/breadcrumb-llm.md.template +26 -0
  16. package/schematics/components/files/breadcrumb/breadcrumb.ts.template +9 -18
  17. package/schematics/components/files/button/button-llm.md.template +22 -0
  18. package/schematics/components/files/card/card-llm.md.template +16 -0
  19. package/schematics/components/files/carousel/carousel-llm.md.template +38 -0
  20. package/schematics/components/files/checkbox/checkbox-llm.md.template +27 -0
  21. package/schematics/components/files/chip/chip-llm.md.template +29 -0
  22. package/schematics/components/files/color-picker/color-picker-llm.md.template +27 -0
  23. package/schematics/components/files/datepicker/datepicker-llm.md.template +43 -0
  24. package/schematics/components/files/dialog/dialog-llm.md.template +69 -0
  25. package/schematics/components/files/drawer/drawer-llm.md.template +54 -0
  26. package/schematics/components/files/form-field/form-field-llm.md.template +56 -0
  27. package/schematics/components/files/form-field/form-field.ts.template +1 -1
  28. package/schematics/components/files/hover-card/hover-card-llm.md.template +26 -0
  29. package/schematics/components/files/icon/icon-llm.md.template +19 -0
  30. package/schematics/components/files/inline-edit/inline-edit-llm.md.template +22 -0
  31. package/schematics/components/files/list/list-llm.md.template +23 -0
  32. package/schematics/components/files/mask/mask-llm.md.template +19 -0
  33. package/schematics/components/files/menu/context-menu-llm.md.template +28 -0
  34. package/schematics/components/files/menu/menu-llm.md.template +37 -0
  35. package/schematics/components/files/otp/otp-llm.md.template +21 -0
  36. package/schematics/components/files/pagination/pagination-llm.md.template +29 -0
  37. package/schematics/components/files/popover/popover-llm.md.template +59 -0
  38. package/schematics/components/files/progress/progress-llm.md.template +19 -0
  39. package/schematics/components/files/radio/radio-llm.md.template +36 -0
  40. package/schematics/components/files/resizable/resizable-llm.md.template +31 -0
  41. package/schematics/components/files/select/select-llm.md.template +87 -0
  42. package/schematics/components/files/selectable/selectable-llm.md.template +31 -0
  43. package/schematics/components/files/sheet/sheet-llm.md.template +54 -0
  44. package/schematics/components/files/sidenav/sidenav-llm.md.template +37 -0
  45. package/schematics/components/files/skeleton/skeleton-llm.md.template +22 -0
  46. package/schematics/components/files/slider/slider-llm.md.template +35 -0
  47. package/schematics/components/files/sonner/sonner-llm.md.template +34 -0
  48. package/schematics/components/files/spinner/spinner-llm.md.template +29 -0
  49. package/schematics/components/files/stepper/stepper-llm.md.template +32 -0
  50. package/schematics/components/files/switch/switch-llm.md.template +23 -0
  51. package/schematics/components/files/table/table-llm.md.template +31 -0
  52. package/schematics/components/files/tabs/tab.ts.template +1 -1
  53. package/schematics/components/files/tabs/tabs-llm.md.template +48 -0
  54. package/schematics/components/files/theme/index.ts.template +1 -1
  55. package/schematics/components/files/theme/theme-button.ts.template +27 -0
  56. package/schematics/components/files/theme/theme-llm.md.template +23 -0
  57. package/schematics/components/files/theme/theme.service.ts.template +1 -3
  58. package/schematics/components/files/toggle/toggle-llm.md.template +19 -0
  59. package/schematics/components/files/toggle-group/toggle-group-llm.md.template +32 -0
  60. package/schematics/components/files/tooltip/tooltip-llm.md.template +37 -0
  61. package/schematics/components/schema.json +2 -0
@@ -0,0 +1,27 @@
1
+ # MEE Checkbox
2
+
3
+ ```typescript
4
+ import { Checkbox } from '<%= basepath %>/checkbox';
5
+ ```
6
+
7
+ ## Component
8
+
9
+ ### `<<%= name %>-checkbox>`
10
+
11
+ - **Inputs:**
12
+
13
+ - `disabled`: boolean - Whether the checkbox is disabled
14
+ - `checked`: boolean - Whether the checkbox is checked (2way)
15
+ - `indeterminate`: boolean - Whether the checkbox is indeterminate
16
+
17
+ - **Outputs:**
18
+
19
+ - `checkedChange`: boolean - Whether the checkbox is checked
20
+ - `change`: boolean - Whether the checkbox is checked
21
+
22
+ ## Usage
23
+
24
+ ```html
25
+ <<%= name %>-checkbox [checked]="true" (checkedChange)="onChange($event)" />
26
+ <<%= name %>-checkbox [(checked)]="property" />
27
+ ```
@@ -0,0 +1,29 @@
1
+ # MEE Chip
2
+
3
+ ```typescript
4
+ import { Chip, ChipGroup } from '<%= basepath %>/chip';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<<%= name %>-chip-group>`
10
+
11
+ ### `<<%= name %>-chip>, [<%= name %>Chip]`
12
+
13
+ - **Inputs:**
14
+
15
+ - `removable`: boolean - Whether the chip is removable
16
+ - `value`: any - The value of the chip
17
+
18
+ - **Outputs:**
19
+
20
+ - `close`: void - Emits when the chip is closed
21
+
22
+ ## Usage
23
+
24
+ ```html
25
+ <<%= name %>-chip-group>
26
+ <<%= name %>-chip [value]="item" [removable]="true">Text</<%= name %>-chip>
27
+ <button <%= name %>Chip [value]="item" [removable]="true">Text</button>
28
+ </<%= name %>-chip-group>
29
+ ```
@@ -0,0 +1,27 @@
1
+ # MEE Color Picker
2
+
3
+ ```typescript
4
+ import { FormField, Label } from '@/ui/form-field';
5
+ import { ColorInput } from '@/ui/color-picker';
6
+ ```
7
+
8
+ ## Components
9
+
10
+ ### `<<%= name %>-color-input>`
11
+
12
+ ColorFormat: `hex` | `rgb` | `hsl` | `hsb`
13
+
14
+ - **Inputs:**
15
+
16
+ - `format`: ColorFormat - The format of the color input
17
+ - `presetColors`: string[] - The preset colors of the color input
18
+ - `value`: string - The value of the color input (2way)
19
+
20
+ ## Usage
21
+
22
+ ```html
23
+ <<%= name %>-form-field>
24
+ <label <%= name %>Label>Color</label>
25
+ <<%= name %>-color-input [format]="format" [presetColors]="presetColors" [(value)]="value" />
26
+ </<%= name %>-form-field>
27
+ ```
@@ -0,0 +1,43 @@
1
+ # MEE Datepicker
2
+
3
+ ```typescript
4
+ import { FormField, Label } from '@/ui/form-field';
5
+ import { DatepickerTrigger } from '@/ui/datepicker';
6
+ ```
7
+
8
+ ## Components
9
+
10
+ ### `[<%= name %>DatepickerTrigger]`
11
+
12
+ - **Inputs:**
13
+
14
+ - `noOfCalendars`: number - The number of calendars to display
15
+ - `range`: boolean - Whether to display a range of dates
16
+ - `time`: boolean - Whether to display a time picker
17
+ - `format`: string - The format of the date input
18
+ - `fieldFormat`: string - The format of the date input in the datepicker group
19
+ - `dateFilter`: (date: Date) => boolean - A function to filter dates
20
+ - `pickerType`: 'date' | 'month' | 'year' - The type of picker to display
21
+ - `pickerTemplate`: TemplateRef<any> - A template to display in the picker
22
+
23
+ ## Usage
24
+
25
+ ```html
26
+ <<%= name %>-form-field>
27
+ <label <%= name %>Label>Date</label>
28
+ <<%= name %>-datepicker-trigger
29
+ [noOfCalendars]="noOfCalendars"
30
+ [range]="range"
31
+ [time]="time"
32
+ [format]="format"
33
+ [fieldFormat]="fieldFormat"
34
+ [dateFilter]="dateFilter"
35
+ [pickerType]="'date'"
36
+ [pickerTemplate]="pickerTemplate"
37
+ />
38
+ <ng-template #pickerTemplate>
39
+ <button <%= name %>Button>Today</button>
40
+ <button <%= name %>Button>Yesterday</button>
41
+ </ng-template>
42
+ </<%= name %>-form-field>
43
+ ```
@@ -0,0 +1,69 @@
1
+ # MEE Dialog
2
+
3
+ ```typescript
4
+ import { dialogPortal } from '@/ui/dialog';
5
+ ```
6
+
7
+ ## Notes:
8
+
9
+ DialogOptions:
10
+
11
+ - backdrop: boolean - Whether to show a backdrop
12
+ - backdropColor: boolean - Whether to use the backdrop color
13
+ - hideOverlay: boolean - Whether to hide the overlay
14
+ - data: any - The data to pass to the dialog
15
+ - title: string - The title of the dialog
16
+ - fullWindow: boolean - Whether to use the full window
17
+ - minWidth: string - The minimum width of the dialog
18
+ - minHeight: string - The minimum height of the dialog
19
+ - width: string - The width of the dialog
20
+ - height: string - The height of the dialog
21
+ - maxWidth: string - The maximum width of the dialog
22
+ - maxHeight: string - The maximum height of the dialog
23
+ - classNames: string[] - The class names of the dialog
24
+ - header: boolean - Whether to show a header
25
+ - disableClose: boolean - Whether to disable the close button
26
+ - ayId: string - The id of the dialog
27
+ - focusTrap: boolean - Whether to focus the dialog
28
+ - afterFocusEl: HTMLElement - The element to focus after the dialog is opened
29
+
30
+ ## Usage
31
+
32
+ ```html
33
+ <ng-template #dialogTemplate>
34
+ <div>
35
+ <h1>Dialog</h1>
36
+ </div>
37
+ </ng-template>
38
+ ```
39
+
40
+ ```typescript
41
+ import { DialogRef } from '@ngbase/adk/portal';
42
+ @Component({
43
+ template: `content`,
44
+ })
45
+ export class AddTaskComponent {
46
+ readonly dialogRef = inject<DialogRef<Task>>(DialogRef);
47
+ readonly data = this.dialogRef.data;
48
+
49
+ close() {
50
+ this.dialogRef.close(data);
51
+ }
52
+ }
53
+
54
+ const ref = dialog.open(AddTaskComponent, {
55
+ backdrop: true,
56
+ hideOverlay: false,
57
+ data: {},
58
+ });
59
+
60
+ ref.afterClosed.subscribe(data => {
61
+ console.log(data);
62
+ });
63
+
64
+ dialog.open(dialogContent(), {
65
+ backdrop: true,
66
+ hideOverlay: false,
67
+ data: {},
68
+ });
69
+ ```
@@ -0,0 +1,54 @@
1
+ # MEE Drawer
2
+
3
+ ```typescript
4
+ import { drawerPortal } from '@/ui/drawer';
5
+ ```
6
+
7
+ ## Notes:
8
+
9
+ DrawerOptions:
10
+
11
+ - backdrop: boolean - Whether to show a backdrop
12
+ - backdropColor: boolean - Whether to use the backdrop color
13
+ - hideOverlay: boolean - Whether to hide the overlay
14
+ - data: any - The data to pass to the drawer
15
+ - title: string - The title of the drawer
16
+ - fullWindow: boolean - Whether to use the full window
17
+ - minWidth: string - The minimum width of the drawer
18
+ - minHeight: string - The minimum height of the drawer
19
+ - width: string - The width of the drawer
20
+ - height: string - The height of the drawer
21
+ - maxWidth: string - The maximum width of the drawer
22
+ - maxHeight: string - The maximum height of the drawer
23
+ - classNames: string[] - The class names of the drawer
24
+ - header: boolean - Whether to show a header
25
+ - disableClose: boolean - Whether to disable the close button
26
+ - ayId: string - The id of the drawer
27
+ - focusTrap: boolean - Whether to focus the drawer
28
+ - afterFocusEl: HTMLElement - The element to focus after the drawer is opened
29
+
30
+ ## Usage
31
+
32
+ ```html
33
+ <ng-template #drawerContent>
34
+ <div>
35
+ <h1>Drawer</h1>
36
+ </div>
37
+ </ng-template>
38
+ ```
39
+
40
+ ```typescript
41
+ const drawer = drawerPortal();
42
+
43
+ drawer.open(DrawerComponent, {
44
+ backdrop: true,
45
+ hideOverlay: false,
46
+ data: {},
47
+ });
48
+
49
+ drawer.open(drawerContent, {
50
+ backdrop: true,
51
+ hideOverlay: false,
52
+ data: {},
53
+ });
54
+ ```
@@ -0,0 +1,56 @@
1
+ # MEE Form Field
2
+
3
+ ```typescript
4
+ import { Icon } from '@/ui/icon';
5
+ import {
6
+ FormField,
7
+ Label,
8
+ Description,
9
+ InputPrefix,
10
+ InputSuffix,
11
+ InputError,
12
+ MeeInput,
13
+ } from '@/ui/form-field';
14
+ ```
15
+
16
+ ## Components
17
+
18
+ ### `<%= name %>-form-field, [<%= name %>FormField]`
19
+
20
+ ### `[<%= name %>Label]`
21
+
22
+ ### `[<%= name %>Description]`
23
+
24
+ ### `[<%= name %>Prefix]`
25
+
26
+ ### `[<%= name %>Suffix]`
27
+
28
+ ### `[<%= name %>Error]`
29
+
30
+ - **Inputs**
31
+ - `<%= name %>Error`: string - condition to show the error similar to ngIf
32
+
33
+ ### `[<%= name %>Input]`
34
+
35
+ - **Inputs**
36
+ - `value`: string - The value of the input (2way)
37
+ - **Outputs**
38
+ - `valueChange`: EventEmitter<string> - The event emitter for the value change
39
+
40
+ ## Usage
41
+
42
+ ```html
43
+ <<%= name %>-form-field>
44
+ <label <%= name %>Label>Label</label>
45
+ <input <%= name %>Input [(value)]="value" />
46
+ <p <%= name %>Description>Description</p>
47
+ <p <%= name %>Error="required">Error</p>
48
+ <p <%= name %>Error="!required && minlength">Error</p>
49
+ <<%= name %>-icon <%= name %>Prefix name="info" />
50
+ <<%= name %>-icon <%= name %>Suffix name="info" />
51
+ </<%= name %>-form-field>
52
+
53
+ <<%= name %>-form-field>
54
+ <input <%= name %>Input [(ngModel)]="value" />
55
+ </<%= name %>-form-field>
56
+ ```
@@ -52,7 +52,7 @@ export class FormField {
52
52
  '[class.border-red-500]': 'formField?.hasErrors()',
53
53
  },
54
54
  })
55
- export class Input {
55
+ export class MeeInput {
56
56
  readonly formField = inject(NgbFormField, { optional: true });
57
57
  }
58
58
 
@@ -0,0 +1,26 @@
1
+ # Hover Card
2
+
3
+ ```typescript
4
+ import { HoverCard } from '@/ui/hover-card';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-hover-card`
10
+
11
+ - **Inputs**
12
+ - `<%= name %>HoverCard`: TemplateRef<any> - The template to show when hovering over the element
13
+ - `options`: PopoverOptions - The options for the hover card
14
+ - `delay`: number - The delay in milliseconds before the hover card is shown
15
+
16
+ ## Usage
17
+
18
+ ```html
19
+ <button [<%= name %>HoverCard]="myTemplate" <%= name %>Button="ghost" class="underline">
20
+ Hover over to show hover card
21
+ </button>
22
+
23
+ <ng-template #myTemplate>
24
+ <div>Hover card content</div>
25
+ </ng-template>
26
+ ```
@@ -0,0 +1,19 @@
1
+ # Icon
2
+
3
+ ```typescript
4
+ import { Icon } from '@/ui/icon';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-icon`
10
+
11
+ - **Inputs**
12
+ - `name`: string - The name of the icon to display
13
+ - `size`: string - The size of the icon to display
14
+
15
+ ## Usage
16
+
17
+ ```html
18
+ <<%= name %>-icon name="info" />
19
+ ```
@@ -0,0 +1,22 @@
1
+ # Inline Edit
2
+
3
+ ```typescript
4
+ import { InlineEdit } from '@/ui/inline-edit';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-inline-edit`
10
+
11
+ - **Inputs**
12
+ - `value`: string - The value of the input (2way)
13
+ - `editOn`: 'click' | 'dblclick' = 'dblclick' - The event to trigger the edit
14
+ - **Outputs**
15
+ - `valueChange`: EventEmitter<string> - The event emitter for the value change
16
+
17
+ ## Usage
18
+
19
+ ```html
20
+ <<%= name %>-inline-edit [value]="value" [editOn]="editOn" (valueChange)="onValueChange($event)" />
21
+ <<%= name %>-inline-edit [(value)]="value" />
22
+ ```
@@ -0,0 +1,23 @@
1
+ # List
2
+
3
+ ```typescript
4
+ import { List } from '@/ui/list';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `[<%= name %>List]`
10
+
11
+ - **inputs**
12
+
13
+ - `disabled`: boolean
14
+
15
+ - **exports** - `<%= name %>List`
16
+
17
+ ## Usage
18
+
19
+ ```html
20
+ <button <%= name %>List>Item 1</button>
21
+ <button <%= name %>List>Item 2</button>
22
+ <button <%= name %>List>Item 3</button>
23
+ ```
@@ -0,0 +1,19 @@
1
+ # Mask
2
+
3
+ ```typescript
4
+ import { Mask } from '@/ui/mask';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>Mask`
10
+
11
+ - **Inputs**
12
+ - `<%= name %>Mask`: string - The mask pattern to apply to the input
13
+ - `showMaskType`: boolean = false - Whether to show the mask type
14
+
15
+ ## Usage
16
+
17
+ ```html
18
+ <<%= name %>-mask [<%= name %>Mask]="'(000) 000-0000'" [showMaskType]="showMaskType" />
19
+ ```
@@ -0,0 +1,28 @@
1
+ # Menu
2
+
3
+ ```typescript
4
+ import { Menu, MenuTrigger, MenuContent } from '@/ui/menu';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `[<%= name %>ContextMenu]`
10
+
11
+ - **Inputs**
12
+ - `<%= name %>ContextMenu`: Menu - Menu reference
13
+ - **Outputs**
14
+ - `ctxOpen`: EventEmitter<void> - Emits when the context menu is opened
15
+ - `ctxClose`: EventEmitter<void> - Emits when the context menu is closed
16
+ - **Exports** - `<%= name %>ContextMenu`
17
+
18
+ ## Usage
19
+
20
+ ```html
21
+ <button [<%= name %>ContextMenu]="menu">Context Menu</button>
22
+ <<%= name %>-menu #menu>
23
+ <button>Item 1</button>
24
+ <button>Item 2</button>
25
+ </<%= name %>-menu>
26
+ ```
27
+
28
+ ## Context Menu
@@ -0,0 +1,37 @@
1
+ # Menu
2
+
3
+ ```typescript
4
+ import { Menu, MenuTrigger, MenuContent } from '@/ui/menu';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-menu`
10
+
11
+ - **Exports** - `<%= name %>Menu`
12
+
13
+ ### `<%= name %>MenuContent`
14
+
15
+ ### `<%= name %>MenuTrigger`
16
+
17
+ - **Inputs**
18
+ - `<%= name %>MenuTrigger`: <%= name %>Menu - Menu reference
19
+ - **Exports** - `<%= name %>MenuTrigger`
20
+
21
+ ## Menu Usage
22
+
23
+ ```html
24
+ <button [<%= name %>MenuTrigger]="menu">Menu</button>
25
+ <<%= name %>-menu #menu>
26
+ <button>Item 1</button>
27
+ <button>Item 2</button>
28
+ </<%= name %>-menu>
29
+
30
+ <button [<%= name %>MenuTrigger]="menu1" [<%= name %>MenuTriggerData]="{ data: 'Custom data' }">Menu</button>
31
+ <<%= name %>-menu #menu1>
32
+ <ng-template <%= name %>MenuContent let-data="data">
33
+ <button <%= name %>List>{{ data }}</button>
34
+ <button <%= name %>List>Item 2</button>
35
+ </ng-template>
36
+ </<%= name %>-menu>
37
+ ```
@@ -0,0 +1,21 @@
1
+ # OTP
2
+
3
+ ```typescript
4
+ import { Otp } from '@/ui/otp';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-otp-input`
10
+
11
+ - **Inputs**
12
+ - `size`: number[] - The size of the OTP input
13
+ - `masked`: boolean - Whether the OTP input is masked
14
+ - `disabled`: boolean - Whether the OTP input is disabled
15
+ - **Exports** - `<%= name %>OtpInput`
16
+
17
+ ## Usage
18
+
19
+ ```html
20
+ <<%= name %>-otp-input [size]="[4, 4, 4]" [masked]="true" [disabled]="false"></<%= name %>-otp-input>
21
+ ```
@@ -0,0 +1,29 @@
1
+ # Pagination
2
+
3
+ ```typescript
4
+ import { Pagination } from '@/ui/pagination';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-pagination`
10
+
11
+ - **Inputs**
12
+ - `size`: number - The size of the pagination (2way)
13
+ - `active`: number - The active page (2way)
14
+ - `total`: number - The total number of pages
15
+ - `sizeOptions`: number[] - The options for the size of the pagination
16
+ - **Outputs**
17
+ - `valueChanged`: EventEmitter<number> - Emits when the value changes
18
+ - **Exports** - `<%= name %>Pagination`
19
+
20
+ ## Usage
21
+
22
+ ```html
23
+ <<%= name %>-pagination
24
+ [size]="10"
25
+ [active]="1"
26
+ [total]="100"
27
+ [sizeOptions]="[10, 20, 50, 100]"
28
+ ></<%= name %>-pagination>
29
+ ```
@@ -0,0 +1,59 @@
1
+ # Popover
2
+
3
+ ```typescript
4
+ import { popoverPortal, PopoverTrigger, PopoverClose } from '@/ui/popover';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>PopoverTrigger`
10
+
11
+ - **Inputs**
12
+ - `<%= name %>PopoverTrigger`: Popover - Popover reference
13
+ - `<%= name %>PopoverTriggerData`: any - The data to pass to the popover
14
+ -
15
+ - **Outputs**
16
+ - **Exports** - `<%= name %>PopoverTrigger`
17
+
18
+ ### `<%= name %>PopoverClose`
19
+
20
+ - **Inputs**
21
+ - `<%= name %>PopoverClose`: any - The data to pass to the afterClose event
22
+ - **Exports** - `<%= name %>PopoverClose`
23
+
24
+ ## Usage
25
+
26
+ ```html
27
+ <div [<%= name %>PopoverTrigger]="popoverTemplate"></div>
28
+
29
+ <ng-template #popoverTemplate>
30
+ <div>
31
+ <h1>Popover</h1>
32
+ </div>
33
+ </ng-template>
34
+ ```
35
+
36
+ ```typescript
37
+ class PopoverComponent {
38
+ readonly popover = popoverPortal();
39
+ readonly popoverTemplate = viewChild<TemplateRef<any>>('popoverTemplate');
40
+
41
+ open() {
42
+ const dialogRef = this.dialog.open(Component, {
43
+ data: {
44
+ message: 'Hello, world!',
45
+ },
46
+ });
47
+ or;
48
+ const dialogRef = this.dialog.open(popoverTemplate, {
49
+ data: {
50
+ message: 'Hello, world!',
51
+ },
52
+ });
53
+
54
+ dialogRef.afterClosed.subscribe(data => {
55
+ console.log(data);
56
+ });
57
+ }
58
+ }
59
+ ```
@@ -0,0 +1,19 @@
1
+ # Progress
2
+
3
+ ```typescript
4
+ import { Progress } from '@/ui/progress';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-progress`
10
+
11
+ - **Inputs**
12
+ - `value`: number - The value of the progress
13
+ - **Exports** - `<%= name %>Progress`
14
+
15
+ ## Usage
16
+
17
+ ```html
18
+ <<%= name %>-progress [value]="progress"></<%= name %>-progress>
19
+ ```
@@ -0,0 +1,36 @@
1
+ # Radio
2
+
3
+ ```typescript
4
+ import { Radio, RadioGroup } from '@/ui/radio';
5
+ ```
6
+
7
+ ## Components
8
+
9
+ ### `<%= name %>-radio-group`
10
+
11
+ - **Inputs**
12
+ - `value`: any - The value of the radio group (2way)
13
+ - **Outputs**
14
+ - `valueChange`: EventEmitter<any> - The event emitter for the value change
15
+ - **Exports** - `<%= name %>RadioGroup`
16
+
17
+ ### `<%= name %>-radio`
18
+
19
+ - **Inputs**
20
+ - `value`: any - The value of the radio
21
+ - `disabled`: boolean - Whether the radio is disabled
22
+ - **Exports** - `<%= name %>Radio`
23
+
24
+ ## Usage
25
+
26
+ ```html
27
+ <<%= name %>-radio-group [(value)]="value">
28
+ <<%= name %>-radio value="1">Radio 1</<%= name %>-radio>
29
+ <<%= name %>-radio value="2">Radio 2</<%= name %>-radio>
30
+ </<%= name %>-radio-group>
31
+
32
+ <<%= name %>-radio-group [(ngModel)]="value">
33
+ <<%= name %>-radio value="1">Radio 1</<%= name %>-radio>
34
+ <<%= name %>-radio value="2">Radio 2</<%= name %>-radio>
35
+ </<%= name %>-radio-group>
36
+ ```