@egose/shadcn-theme-ng 0.0.25 → 0.0.27
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/LICENSE +201 -0
- package/README.md +107 -2
- package/alert/fesm2022/alert.mjs +19 -19
- package/alert/fesm2022/alert.mjs.map +1 -1
- package/badge/fesm2022/badge.mjs +4 -4
- package/badge/fesm2022/badge.mjs.map +1 -1
- package/basic-alert/fesm2022/basic-alert.mjs +4 -4
- package/basic-alert/fesm2022/basic-alert.mjs.map +1 -1
- package/button/fesm2022/button.mjs +8 -8
- package/button/fesm2022/button.mjs.map +1 -1
- package/calendar/fesm2022/calendar.mjs +16 -16
- package/calendar/fesm2022/calendar.mjs.map +1 -1
- package/date-picker/fesm2022/date-picker.mjs +19 -19
- package/date-picker/fesm2022/date-picker.mjs.map +1 -1
- package/form-date-picker/fesm2022/form-date-picker.mjs +4 -4
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -1
- package/form-field/fesm2022/form-field.mjs +16 -16
- package/form-field/fesm2022/form-field.mjs.map +1 -1
- package/form-field-simple/fesm2022/form-field-simple.mjs +4 -4
- package/form-field-simple/fesm2022/form-field-simple.mjs.map +1 -1
- package/form-select/fesm2022/form-select.mjs +5 -5
- package/form-select/fesm2022/form-select.mjs.map +1 -1
- package/form-text-input/fesm2022/form-text-input.mjs +8 -8
- package/form-text-input/fesm2022/form-text-input.mjs.map +1 -1
- package/form-textarea/fesm2022/form-textarea.mjs +4 -4
- package/form-textarea/fesm2022/form-textarea.mjs.map +1 -1
- package/icon/fesm2022/icon.mjs +8 -8
- package/icon/fesm2022/icon.mjs.map +1 -1
- package/input/fesm2022/input.mjs +8 -8
- package/input/fesm2022/input.mjs.map +1 -1
- package/label/fesm2022/label.mjs +8 -8
- package/label/fesm2022/label.mjs.map +1 -1
- package/package.json +7 -57
- package/popover/fesm2022/popover.mjs +12 -12
- package/popover/fesm2022/popover.mjs.map +1 -1
- package/select/fesm2022/select.mjs +40 -40
- package/select/fesm2022/select.mjs.map +1 -1
- package/separator/fesm2022/separator.mjs +8 -8
- package/separator/fesm2022/separator.mjs.map +1 -1
- package/sheet/fesm2022/sheet.mjs +36 -37
- package/sheet/fesm2022/sheet.mjs.map +1 -1
- package/sonner/fesm2022/sonner.mjs +8 -8
- package/sonner/fesm2022/sonner.mjs.map +1 -1
- package/spinner/fesm2022/spinner.mjs +8 -8
- package/spinner/fesm2022/spinner.mjs.map +1 -1
- package/switch/fesm2022/switch.mjs +12 -12
- package/switch/fesm2022/switch.mjs.map +1 -1
- package/accordion/README.md +0 -64
- package/accordion/fesm2022/accordion.mjs +0 -155
- package/accordion/fesm2022/accordion.mjs.map +0 -1
- package/accordion/index.d.ts +0 -49
- package/autocomplete/README.md +0 -64
- package/autocomplete/fesm2022/autocomplete.mjs +0 -543
- package/autocomplete/fesm2022/autocomplete.mjs.map +0 -1
- package/autocomplete/index.d.ts +0 -162
- package/checkbox/README.md +0 -64
- package/checkbox/fesm2022/checkbox.mjs +0 -146
- package/checkbox/fesm2022/checkbox.mjs.map +0 -1
- package/checkbox/index.d.ts +0 -55
- package/confirmation-dialog/README.md +0 -64
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +0 -93
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +0 -1
- package/confirmation-dialog/index.d.ts +0 -24
- package/dialog/README.md +0 -64
- package/dialog/fesm2022/dialog.mjs +0 -278
- package/dialog/fesm2022/dialog.mjs.map +0 -1
- package/dialog/index.d.ts +0 -89
- package/exports.json +0 -1
- package/form-checkbox/README.md +0 -64
- package/form-checkbox/fesm2022/form-checkbox.mjs +0 -137
- package/form-checkbox/fesm2022/form-checkbox.mjs.map +0 -1
- package/form-checkbox/index.d.ts +0 -27
- package/form-searchable-multiselect/README.md +0 -64
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +0 -139
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +0 -1
- package/form-searchable-multiselect/index.d.ts +0 -30
- package/layout-simple/README.md +0 -64
- package/layout-simple/fesm2022/layout-simple.mjs +0 -591
- package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
- package/layout-simple/index.d.ts +0 -140
- package/menu/README.md +0 -64
- package/menu/fesm2022/menu.mjs +0 -449
- package/menu/fesm2022/menu.mjs.map +0 -1
- package/menu/index.d.ts +0 -137
- package/radio-group/README.md +0 -64
- package/radio-group/fesm2022/radio-group.mjs +0 -170
- package/radio-group/fesm2022/radio-group.mjs.map +0 -1
- package/radio-group/index.d.ts +0 -63
- package/searchable-multiselect/README.md +0 -64
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +0 -221
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +0 -1
- package/searchable-multiselect/index.d.ts +0 -50
- package/tabs/README.md +0 -64
- package/tabs/fesm2022/tabs.mjs +0 -258
- package/tabs/fesm2022/tabs.mjs.map +0 -1
- package/tabs/index.d.ts +0 -71
- package/tooltip/README.md +0 -64
- package/tooltip/fesm2022/tooltip.mjs +0 -93
- package/tooltip/fesm2022/tooltip.mjs.map +0 -1
- package/tooltip/index.d.ts +0 -21
package/menu/index.d.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { ClassValue } from 'clsx';
|
|
4
|
-
import * as i1 from '@spartan-ng/brain/menu';
|
|
5
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
6
|
-
|
|
7
|
-
declare const menuVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "menubar" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare class HlmMenu {
|
|
11
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
12
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
13
|
-
readonly variant: i0.InputSignal<"default" | "menubar" | null | undefined>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenu, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenu, "hlm-menu", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnMenu; inputs: {}; outputs: {}; }]>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare class HlmMenuBar {
|
|
19
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
20
|
-
protected _computedClass: i0.Signal<string>;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuBar, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuBar, "hlm-menu-bar", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnMenuBar; inputs: {}; outputs: {}; }]>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare class HlmMenuBarItem {
|
|
26
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
27
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuBarItem, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmMenuBarItem, "[hlmMenuBarItem]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnMenuItem; inputs: {}; outputs: {}; }]>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare class HlmMenuGroup {
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuGroup, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuGroup, "hlm-menu-group", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.BrnMenuGroup; inputs: {}; outputs: {}; }]>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare class HlmMenuLabel {
|
|
38
|
-
readonly inset: i0.InputSignalWithTransform<boolean, BooleanInput>;
|
|
39
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
40
|
-
protected _computedClass: i0.Signal<string>;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuLabel, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuLabel, "hlm-menu-label", never, { "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare class HlmMenuSeparator {
|
|
46
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
47
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuSeparator, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuSeparator, "hlm-menu-separator", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare class HlmSubMenu {
|
|
53
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
54
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmSubMenu, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmSubMenu, "hlm-sub-menu", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnMenu; inputs: {}; outputs: {}; }]>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare class HlmMenuItem {
|
|
60
|
-
readonly variant: i0.InputSignal<"default" | "destructive">;
|
|
61
|
-
readonly inset: i0.InputSignalWithTransform<boolean, BooleanInput>;
|
|
62
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
63
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItem, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmMenuItem, "[hlmMenuItem]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inset": { "alias": "inset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnMenuItem; inputs: { "disabled": "disabled"; }; outputs: { "triggered": "triggered"; }; }]>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare class HlmMenuItemIcon {
|
|
69
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
70
|
-
protected _computedClass: i0.Signal<string>;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemIcon, never>;
|
|
72
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmMenuItemIcon, "[hlmMenuIcon]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare class HlmMenuItemSubIndicator {
|
|
76
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
77
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemSubIndicator, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuItemSubIndicator, "hlm-menu-item-sub-indicator", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare class HlmMenuItemRadioIndicator {
|
|
83
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
84
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemRadioIndicator, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuItemRadioIndicator, "hlm-menu-item-radio", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare class HlmMenuItemCheck {
|
|
90
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
91
|
-
protected _computedClass: i0.Signal<string>;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemCheck, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuItemCheck, "hlm-menu-item-check", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare class HlmMenuShortcut {
|
|
97
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
98
|
-
protected _computedClass: i0.Signal<string>;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuShortcut, never>;
|
|
100
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmMenuShortcut, "hlm-menu-shortcut", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare class HlmMenuItemCheckbox {
|
|
104
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
105
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemCheckbox, never>;
|
|
107
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmMenuItemCheckbox, "[hlmMenuItemCheckbox]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnMenuItemCheckbox; inputs: { "disabled": "disabled"; "checked": "checked"; }; outputs: { "triggered": "triggered"; }; }]>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
declare class HlmMenuItemRadio {
|
|
111
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
112
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
113
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemRadio, never>;
|
|
114
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmMenuItemRadio, "[hlmMenuItemRadio]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnMenuItemRadio; inputs: { "disabled": "disabled"; "checked": "checked"; }; outputs: { "triggered": "triggered"; }; }]>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare const HlmMenuItemImports: (typeof HlmMenuGroup)[];
|
|
118
|
-
declare const HlmMenuStructureImports: readonly [typeof HlmMenuLabel, typeof HlmMenuSeparator];
|
|
119
|
-
declare const HlmMenuImports: readonly [...(typeof HlmMenuGroup)[], typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu];
|
|
120
|
-
declare const HlmMenuBarImports: readonly [...(typeof HlmMenuGroup)[], typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu, typeof HlmMenuBar, typeof HlmMenuBarItem];
|
|
121
|
-
declare class HlmMenuItemModule {
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuItemModule, never>;
|
|
123
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmMenuItemModule, never, [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio], [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio]>;
|
|
124
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HlmMenuItemModule>;
|
|
125
|
-
}
|
|
126
|
-
declare class HlmMenuModule {
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuModule, never>;
|
|
128
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmMenuModule, never, [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio, typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu], [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio, typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu]>;
|
|
129
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HlmMenuModule>;
|
|
130
|
-
}
|
|
131
|
-
declare class HlmMenuBarModule {
|
|
132
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmMenuBarModule, never>;
|
|
133
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmMenuBarModule, never, [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio, typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu, typeof HlmMenuBar, typeof HlmMenuBarItem], [typeof HlmMenuItem, typeof HlmMenuItemIcon, typeof HlmMenuGroup, typeof HlmMenuItemSubIndicator, typeof HlmMenuItemRadioIndicator, typeof HlmMenuItemCheck, typeof HlmMenuShortcut, typeof HlmMenuItemCheckbox, typeof HlmMenuItemRadio, typeof HlmMenuLabel, typeof HlmMenuSeparator, typeof HlmMenu, typeof HlmSubMenu, typeof HlmMenuBar, typeof HlmMenuBarItem]>;
|
|
134
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HlmMenuBarModule>;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export { HlmMenu, HlmMenuBar, HlmMenuBarImports, HlmMenuBarItem, HlmMenuBarModule, HlmMenuGroup, HlmMenuImports, HlmMenuItem, HlmMenuItemCheck, HlmMenuItemCheckbox, HlmMenuItemIcon, HlmMenuItemImports, HlmMenuItemModule, HlmMenuItemRadio, HlmMenuItemRadioIndicator, HlmMenuItemSubIndicator, HlmMenuLabel, HlmMenuModule, HlmMenuSeparator, HlmMenuShortcut, HlmMenuStructureImports, HlmSubMenu, menuVariants };
|
package/radio-group/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# RadioGroup
|
|
2
|
-
|
|
3
|
-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
ng build radio-group
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
32
|
-
|
|
33
|
-
1. Navigate to the `dist` directory:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
cd dist/radio-group
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
40
|
-
```bash
|
|
41
|
-
npm publish
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Running unit tests
|
|
45
|
-
|
|
46
|
-
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
ng test
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Running end-to-end tests
|
|
53
|
-
|
|
54
|
-
For end-to-end (e2e) testing, run:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
ng e2e
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
61
|
-
|
|
62
|
-
## Additional Resources
|
|
63
|
-
|
|
64
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Renderer2, ElementRef, PLATFORM_ID, input, computed, booleanAttribute, signal, output, effect, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
-
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
4
|
-
import * as i1 from '@spartan-ng/brain/radio-group';
|
|
5
|
-
import { BrnRadio, BrnRadioGroup } from '@spartan-ng/brain/radio-group';
|
|
6
|
-
import { hlm } from '@egose/shadcn-theme-ng/utils';
|
|
7
|
-
|
|
8
|
-
class HlmRadio {
|
|
9
|
-
_document = inject(DOCUMENT);
|
|
10
|
-
_renderer = inject(Renderer2);
|
|
11
|
-
_elementRef = inject(ElementRef);
|
|
12
|
-
_isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
13
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
14
|
-
_computedClass = computed(() => hlm('group flex items-center gap-x-3', this.userClass(), this._state().disabled() ? 'cursor-not-allowed opacity-50' : ''), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
15
|
-
/** Used to set the id on the underlying brn element. */
|
|
16
|
-
id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
17
|
-
/** Used to set the aria-label attribute on the underlying brn element. */
|
|
18
|
-
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel", alias: 'aria-label' }] : [{ alias: 'aria-label' }]));
|
|
19
|
-
/** Used to set the aria-labelledby attribute on the underlying brn element. */
|
|
20
|
-
ariaLabelledby = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelledby", alias: 'aria-labelledby' }] : [{ alias: 'aria-labelledby' }]));
|
|
21
|
-
/** Used to set the aria-describedby attribute on the underlying brn element. */
|
|
22
|
-
ariaDescribedby = input(undefined, ...(ngDevMode ? [{ debugName: "ariaDescribedby", alias: 'aria-describedby' }] : [{ alias: 'aria-describedby' }]));
|
|
23
|
-
/**
|
|
24
|
-
* The value this radio button represents.
|
|
25
|
-
*/
|
|
26
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
27
|
-
/** Whether the checkbox is required. */
|
|
28
|
-
required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
29
|
-
/** Whether the checkbox is disabled. */
|
|
30
|
-
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
31
|
-
_state = computed(() => {
|
|
32
|
-
const id = this.id();
|
|
33
|
-
return {
|
|
34
|
-
disabled: signal(this.disabled()),
|
|
35
|
-
id: id ? id : null,
|
|
36
|
-
};
|
|
37
|
-
}, ...(ngDevMode ? [{ debugName: "_state" }] : []));
|
|
38
|
-
/**
|
|
39
|
-
* Event emitted when the checked state of this radio button changes.
|
|
40
|
-
*/
|
|
41
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
42
|
-
change = output();
|
|
43
|
-
constructor() {
|
|
44
|
-
effect(() => {
|
|
45
|
-
const state = this._state();
|
|
46
|
-
const isDisabled = state.disabled();
|
|
47
|
-
if (!this._elementRef.nativeElement || !this._isBrowser)
|
|
48
|
-
return;
|
|
49
|
-
const labelElement = this._elementRef.nativeElement.closest('label') ?? this._document.querySelector(`label[for="${state.id}"]`);
|
|
50
|
-
if (!labelElement)
|
|
51
|
-
return;
|
|
52
|
-
this._renderer.setAttribute(labelElement, 'data-disabled', isDisabled ? 'true' : 'false');
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadio, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmRadio, isStandalone: true, selector: "hlm-radio", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change" }, host: { properties: { "attr.id": "null", "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null", "attr.data-disabled": "_state().disabled() ? \"\" : null" } }, ngImport: i0, template: `
|
|
57
|
-
<brn-radio
|
|
58
|
-
[id]="id()"
|
|
59
|
-
[class]="_computedClass()"
|
|
60
|
-
[value]="value()"
|
|
61
|
-
[required]="required()"
|
|
62
|
-
[disabled]="disabled()"
|
|
63
|
-
[aria-label]="ariaLabel()"
|
|
64
|
-
[aria-labelledby]="ariaLabelledby()"
|
|
65
|
-
[aria-describedby]="ariaDescribedby()"
|
|
66
|
-
(change)="change.emit($event)"
|
|
67
|
-
>
|
|
68
|
-
<ng-content select="[target],[indicator],hlm-radio-indicator" indicator />
|
|
69
|
-
<ng-content />
|
|
70
|
-
</brn-radio>
|
|
71
|
-
`, isInline: true, dependencies: [{ kind: "component", type: BrnRadio, selector: "brn-radio", inputs: ["disabled", "id", "aria-label", "aria-labelledby", "aria-describedby", "value", "required"], outputs: ["change"], exportAs: ["brnRadio"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
-
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadio, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{
|
|
76
|
-
selector: 'hlm-radio',
|
|
77
|
-
imports: [BrnRadio],
|
|
78
|
-
template: `
|
|
79
|
-
<brn-radio
|
|
80
|
-
[id]="id()"
|
|
81
|
-
[class]="_computedClass()"
|
|
82
|
-
[value]="value()"
|
|
83
|
-
[required]="required()"
|
|
84
|
-
[disabled]="disabled()"
|
|
85
|
-
[aria-label]="ariaLabel()"
|
|
86
|
-
[aria-labelledby]="ariaLabelledby()"
|
|
87
|
-
[aria-describedby]="ariaDescribedby()"
|
|
88
|
-
(change)="change.emit($event)"
|
|
89
|
-
>
|
|
90
|
-
<ng-content select="[target],[indicator],hlm-radio-indicator" indicator />
|
|
91
|
-
<ng-content />
|
|
92
|
-
</brn-radio>
|
|
93
|
-
`,
|
|
94
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
95
|
-
host: {
|
|
96
|
-
'[attr.id]': 'null',
|
|
97
|
-
'[attr.aria-label]': 'null',
|
|
98
|
-
'[attr.aria-labelledby]': 'null',
|
|
99
|
-
'[attr.aria-describedby]': 'null',
|
|
100
|
-
'[attr.data-disabled]': '_state().disabled() ? "" : null',
|
|
101
|
-
},
|
|
102
|
-
}]
|
|
103
|
-
}], ctorParameters: () => [] });
|
|
104
|
-
|
|
105
|
-
class HlmRadioGroup {
|
|
106
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
107
|
-
_computedClass = computed(() => hlm('grid gap-3', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmRadioGroup, isStandalone: true, selector: "hlm-radio-group", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnRadioGroup, inputs: ["name", "name", "value", "value", "disabled", "disabled", "required", "required", "direction", "direction"], outputs: ["valueChange", "valueChange"] }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
110
|
-
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroup, decorators: [{
|
|
112
|
-
type: Component,
|
|
113
|
-
args: [{
|
|
114
|
-
selector: 'hlm-radio-group',
|
|
115
|
-
hostDirectives: [
|
|
116
|
-
{
|
|
117
|
-
directive: BrnRadioGroup,
|
|
118
|
-
inputs: ['name', 'value', 'disabled', 'required', 'direction'],
|
|
119
|
-
outputs: ['valueChange'],
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
host: {
|
|
123
|
-
'[class]': '_computedClass()',
|
|
124
|
-
},
|
|
125
|
-
template: '<ng-content />',
|
|
126
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
127
|
-
}]
|
|
128
|
-
}] });
|
|
129
|
-
|
|
130
|
-
class HlmRadioIndicator {
|
|
131
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
132
|
-
_computedClass = computed(() => hlm('border-input text-primary group-has-[:focus-visible]:border-ring group-has-[:focus-visible]:ring-ring/50 dark:bg-input/10 shadow-xs group-data=[disabled=true]:cursor-not-allowed group-data=[disabled=true]:opacity-50 relative flex aspect-square size-4 shrink-0 items-center justify-center rounded-full border outline-none transition-[color,box-shadow] group-has-[:focus-visible]:ring-[3px]', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
133
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
134
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmRadioIndicator, isStandalone: true, selector: "hlm-radio-indicator", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: ` <div class="group-data-[checked=true]:bg-primary size-2 rounded-full bg-transparent"></div> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
135
|
-
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioIndicator, decorators: [{
|
|
137
|
-
type: Component,
|
|
138
|
-
args: [{
|
|
139
|
-
selector: 'hlm-radio-indicator',
|
|
140
|
-
host: {
|
|
141
|
-
'[class]': '_computedClass()',
|
|
142
|
-
},
|
|
143
|
-
template: ` <div class="group-data-[checked=true]:bg-primary size-2 rounded-full bg-transparent"></div> `,
|
|
144
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
145
|
-
}]
|
|
146
|
-
}] });
|
|
147
|
-
|
|
148
|
-
/*
|
|
149
|
-
* Public API Surface of radio-group
|
|
150
|
-
*/
|
|
151
|
-
const HlmRadioGroupImports = [HlmRadioGroup, HlmRadio, HlmRadioIndicator];
|
|
152
|
-
class HlmRadioGroupModule {
|
|
153
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
154
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroupModule, imports: [HlmRadioGroup, HlmRadio, HlmRadioIndicator], exports: [HlmRadioGroup, HlmRadio, HlmRadioIndicator] });
|
|
155
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroupModule, imports: [HlmRadio] });
|
|
156
|
-
}
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmRadioGroupModule, decorators: [{
|
|
158
|
-
type: NgModule,
|
|
159
|
-
args: [{
|
|
160
|
-
imports: [...HlmRadioGroupImports],
|
|
161
|
-
exports: [...HlmRadioGroupImports],
|
|
162
|
-
}]
|
|
163
|
-
}] });
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Generated bundle index. Do not edit.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
export { HlmRadio, HlmRadioGroup, HlmRadioGroupImports, HlmRadioGroupModule, HlmRadioIndicator };
|
|
170
|
-
//# sourceMappingURL=radio-group.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.mjs","sources":["../../../projects/radio-group/src/lib/radio.ts","../../../projects/radio-group/src/lib/radio-group.ts","../../../projects/radio-group/src/lib/radio-indicator.ts","../../../projects/radio-group/src/public-api.ts","../../../projects/radio-group/src/radio-group.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n output,\n PLATFORM_ID,\n Renderer2,\n signal,\n} from '@angular/core';\nimport { BrnRadio, BrnRadioChange } from '@spartan-ng/brain/radio-group';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { ClassValue } from 'clsx';\n\n@Component({\n selector: 'hlm-radio',\n imports: [BrnRadio],\n template: `\n <brn-radio\n [id]=\"id()\"\n [class]=\"_computedClass()\"\n [value]=\"value()\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n [aria-label]=\"ariaLabel()\"\n [aria-labelledby]=\"ariaLabelledby()\"\n [aria-describedby]=\"ariaDescribedby()\"\n (change)=\"change.emit($event)\"\n >\n <ng-content select=\"[target],[indicator],hlm-radio-indicator\" indicator />\n <ng-content />\n </brn-radio>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.id]': 'null',\n '[attr.aria-label]': 'null',\n '[attr.aria-labelledby]': 'null',\n '[attr.aria-describedby]': 'null',\n '[attr.data-disabled]': '_state().disabled() ? \"\" : null',\n },\n})\nexport class HlmRadio<T = unknown> {\n private readonly _document = inject(DOCUMENT);\n private readonly _renderer = inject(Renderer2);\n private readonly _elementRef = inject(ElementRef);\n private readonly _isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:group tw:flex tw:items-center tw:gap-x-3',\n this.userClass(),\n this._state().disabled() ? 'tw:cursor-not-allowed tw:opacity-50' : '',\n ),\n );\n\n /** Used to set the id on the underlying brn element. */\n public readonly id = input<string | undefined>(undefined);\n\n /** Used to set the aria-label attribute on the underlying brn element. */\n public readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n\n /** Used to set the aria-labelledby attribute on the underlying brn element. */\n public readonly ariaLabelledby = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /** Used to set the aria-describedby attribute on the underlying brn element. */\n public readonly ariaDescribedby = input<string | undefined>(undefined, { alias: 'aria-describedby' });\n\n /**\n * The value this radio button represents.\n */\n public readonly value = input.required<T>();\n\n /** Whether the checkbox is required. */\n public readonly required = input(false, { transform: booleanAttribute });\n\n /** Whether the checkbox is disabled. */\n public readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly _state = computed(() => {\n const id = this.id();\n return {\n disabled: signal(this.disabled()),\n id: id ? id : null,\n };\n });\n /**\n * Event emitted when the checked state of this radio button changes.\n */\n // eslint-disable-next-line @angular-eslint/no-output-native\n public readonly change = output<BrnRadioChange<T>>();\n\n constructor() {\n effect(() => {\n const state = this._state();\n const isDisabled = state.disabled();\n\n if (!this._elementRef.nativeElement || !this._isBrowser) return;\n\n const labelElement =\n this._elementRef.nativeElement.closest('label') ?? this._document.querySelector(`label[for=\"${state.id}\"]`);\n\n if (!labelElement) return;\n this._renderer.setAttribute(labelElement, 'data-disabled', isDisabled ? 'true' : 'false');\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { BrnRadioGroup } from '@spartan-ng/brain/radio-group';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n selector: 'hlm-radio-group',\n hostDirectives: [\n {\n directive: BrnRadioGroup,\n inputs: ['name', 'value', 'disabled', 'required', 'direction'],\n outputs: ['valueChange'],\n },\n ],\n host: {\n '[class]': '_computedClass()',\n },\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HlmRadioGroup {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => hlm('tw:grid tw:gap-3', this.userClass()));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n selector: 'hlm-radio-indicator',\n host: {\n '[class]': '_computedClass()',\n },\n template: ` <div class=\"tw:group-data-[checked=true]:bg-primary tw:size-2 tw:rounded-full tw:bg-transparent\"></div> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HlmRadioIndicator {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:border-input tw:text-primary tw:group-has-[:focus-visible]:border-ring tw:group-has-[:focus-visible]:ring-ring/50 tw:dark:bg-input/10 tw:shadow-xs tw:group-data=[disabled=true]:cursor-not-allowed tw:group-data=[disabled=true]:opacity-50 tw:relative tw:flex tw:aspect-square tw:size-4 tw:shrink-0 tw:items-center tw:justify-center tw:rounded-full tw:border tw:outline-none tw:transition-[color,box-shadow] tw:group-has-[:focus-visible]:ring-[3px]',\n this.userClass(),\n ),\n );\n}\n","/*\n * Public API Surface of radio-group\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmRadio } from './lib/radio';\nimport { HlmRadioGroup } from './lib/radio-group';\nimport { HlmRadioIndicator } from './lib/radio-indicator';\n\nexport * from './lib/radio';\nexport * from './lib/radio-group';\nexport * from './lib/radio-indicator';\n\nexport const HlmRadioGroupImports = [HlmRadioGroup, HlmRadio, HlmRadioIndicator];\n\n@NgModule({\n imports: [...HlmRadioGroupImports],\n exports: [...HlmRadioGroupImports],\n})\nexport class HlmRadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA+Ca,QAAQ,CAAA;AACF,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;IAChC,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAEpD,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;AAClD,IAAA,cAAc,GAAG,QAAQ,CAAC,MAC3C,GAAG,CACD,6CAA6C,EAC7C,IAAI,CAAC,SAAS,EAAE,EAChB,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,GAAG,qCAAqC,GAAG,EAAE,CACtE,0DACF;;AAGe,IAAA,EAAE,GAAG,KAAK,CAAqB,SAAS,8CAAC;;AAGzC,IAAA,SAAS,GAAG,KAAK,CAAqB,SAAS,6CAAI,KAAK,EAAE,YAAY,EAAA,CAAA,GAAA,CAArB,EAAE,KAAK,EAAE,YAAY,EAAE,GAAC;;AAGzE,IAAA,cAAc,GAAG,KAAK,CAAqB,SAAS,kDAAI,KAAK,EAAE,iBAAiB,EAAA,CAAA,GAAA,CAA1B,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAC;;AAGnF,IAAA,eAAe,GAAG,KAAK,CAAqB,SAAS,mDAAI,KAAK,EAAE,kBAAkB,EAAA,CAAA,GAAA,CAA3B,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAC;AAErG;;AAEG;AACa,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAK;;AAG3B,IAAA,QAAQ,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GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YANoB,QAAQ,CAAA,EAAA,CAAA;;2FAM/C,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAClC,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AACnC,iBAAA;;;ACnBD;;AAEG;;;;"}
|
package/radio-group/index.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import * as i1 from '@spartan-ng/brain/radio-group';
|
|
3
|
-
import { BrnRadioChange } from '@spartan-ng/brain/radio-group';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
5
|
-
|
|
6
|
-
declare class HlmRadio<T = unknown> {
|
|
7
|
-
private readonly _document;
|
|
8
|
-
private readonly _renderer;
|
|
9
|
-
private readonly _elementRef;
|
|
10
|
-
private readonly _isBrowser;
|
|
11
|
-
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
12
|
-
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
13
|
-
/** Used to set the id on the underlying brn element. */
|
|
14
|
-
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
15
|
-
/** Used to set the aria-label attribute on the underlying brn element. */
|
|
16
|
-
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
17
|
-
/** Used to set the aria-labelledby attribute on the underlying brn element. */
|
|
18
|
-
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
19
|
-
/** Used to set the aria-describedby attribute on the underlying brn element. */
|
|
20
|
-
readonly ariaDescribedby: _angular_core.InputSignal<string | undefined>;
|
|
21
|
-
/**
|
|
22
|
-
* The value this radio button represents.
|
|
23
|
-
*/
|
|
24
|
-
readonly value: _angular_core.InputSignal<T>;
|
|
25
|
-
/** Whether the checkbox is required. */
|
|
26
|
-
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
-
/** Whether the checkbox is disabled. */
|
|
28
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
-
protected readonly _state: _angular_core.Signal<{
|
|
30
|
-
disabled: _angular_core.WritableSignal<boolean>;
|
|
31
|
-
id: string | null;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Event emitted when the checked state of this radio button changes.
|
|
35
|
-
*/
|
|
36
|
-
readonly change: _angular_core.OutputEmitterRef<BrnRadioChange<T>>;
|
|
37
|
-
constructor();
|
|
38
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmRadio<any>, never>;
|
|
39
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmRadio<any>, "hlm-radio", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, ["[target],[indicator],hlm-radio-indicator", "*"], true, never>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare class HlmRadioGroup {
|
|
43
|
-
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
44
|
-
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
45
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmRadioGroup, never>;
|
|
46
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmRadioGroup, "hlm-radio-group", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnRadioGroup; inputs: { "name": "name"; "value": "value"; "disabled": "disabled"; "required": "required"; "direction": "direction"; }; outputs: { "valueChange": "valueChange"; }; }]>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare class HlmRadioIndicator {
|
|
50
|
-
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
51
|
-
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
52
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmRadioIndicator, never>;
|
|
53
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmRadioIndicator, "hlm-radio-indicator", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
declare const HlmRadioGroupImports: (typeof HlmRadio | typeof HlmRadioGroup | typeof HlmRadioIndicator)[];
|
|
57
|
-
declare class HlmRadioGroupModule {
|
|
58
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmRadioGroupModule, never>;
|
|
59
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmRadioGroupModule, never, [typeof HlmRadioGroup, typeof HlmRadio, typeof HlmRadioIndicator], [typeof HlmRadioGroup, typeof HlmRadio, typeof HlmRadioIndicator]>;
|
|
60
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmRadioGroupModule>;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export { HlmRadio, HlmRadioGroup, HlmRadioGroupImports, HlmRadioGroupModule, HlmRadioIndicator };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# MultiselectAutocomplete
|
|
2
|
-
|
|
3
|
-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
ng build searchable-multiselect
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
32
|
-
|
|
33
|
-
1. Navigate to the `dist` directory:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
cd dist/searchable-multiselect
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
40
|
-
```bash
|
|
41
|
-
npm publish
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Running unit tests
|
|
45
|
-
|
|
46
|
-
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
ng test
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Running end-to-end tests
|
|
53
|
-
|
|
54
|
-
For end-to-end (e2e) testing, run:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
ng e2e
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
61
|
-
|
|
62
|
-
## Additional Resources
|
|
63
|
-
|
|
64
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|