ngx-com 0.0.21 → 0.1.0
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 +137 -33
- package/fesm2022/ngx-com-components-alert.mjs +21 -11
- package/fesm2022/ngx-com-components-alert.mjs.map +1 -1
- package/fesm2022/ngx-com-components-avatar.mjs +9 -7
- package/fesm2022/ngx-com-components-avatar.mjs.map +1 -1
- package/fesm2022/ngx-com-components-button.mjs +1 -1
- package/fesm2022/ngx-com-components-button.mjs.map +1 -1
- package/fesm2022/ngx-com-components-calendar.mjs +27 -3112
- package/fesm2022/ngx-com-components-calendar.mjs.map +1 -1
- package/fesm2022/ngx-com-components-card.mjs +8 -8
- package/fesm2022/ngx-com-components-card.mjs.map +1 -1
- package/fesm2022/ngx-com-components-carousel.mjs +16 -4
- package/fesm2022/ngx-com-components-carousel.mjs.map +1 -1
- package/fesm2022/ngx-com-components-checkbox.mjs +1 -1
- package/fesm2022/ngx-com-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-com-components-code-block.mjs +9 -9
- package/fesm2022/ngx-com-components-code-block.mjs.map +1 -1
- package/fesm2022/ngx-com-components-collapsible.mjs +15 -13
- package/fesm2022/ngx-com-components-collapsible.mjs.map +1 -1
- package/fesm2022/ngx-com-components-confirm.mjs +4 -4
- package/fesm2022/ngx-com-components-confirm.mjs.map +1 -1
- package/fesm2022/ngx-com-components-datepicker.mjs +2334 -0
- package/fesm2022/ngx-com-components-datepicker.mjs.map +1 -0
- package/fesm2022/ngx-com-components-dialog.mjs +47 -45
- package/fesm2022/ngx-com-components-dialog.mjs.map +1 -1
- package/fesm2022/ngx-com-components-dropdown.mjs +446 -340
- package/fesm2022/ngx-com-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-com-components-empty-state.mjs +5 -3
- package/fesm2022/ngx-com-components-empty-state.mjs.map +1 -1
- package/fesm2022/ngx-com-components-form-field.mjs +11 -6
- package/fesm2022/ngx-com-components-form-field.mjs.map +1 -1
- package/fesm2022/ngx-com-components-icon-lucide.mjs +41 -0
- package/fesm2022/ngx-com-components-icon-lucide.mjs.map +1 -0
- package/fesm2022/ngx-com-components-icon.mjs +89 -61
- package/fesm2022/ngx-com-components-icon.mjs.map +1 -1
- package/fesm2022/ngx-com-components-item.mjs +14 -4
- package/fesm2022/ngx-com-components-item.mjs.map +1 -1
- package/fesm2022/ngx-com-components-menu.mjs +61 -69
- package/fesm2022/ngx-com-components-menu.mjs.map +1 -1
- package/fesm2022/ngx-com-components-native-control.mjs +170 -0
- package/fesm2022/ngx-com-components-native-control.mjs.map +1 -0
- package/fesm2022/ngx-com-components-paginator.mjs +11 -3
- package/fesm2022/ngx-com-components-paginator.mjs.map +1 -1
- package/fesm2022/ngx-com-components-popover.mjs +58 -33
- package/fesm2022/ngx-com-components-popover.mjs.map +1 -1
- package/fesm2022/ngx-com-components-radio.mjs +4 -4
- package/fesm2022/ngx-com-components-radio.mjs.map +1 -1
- package/fesm2022/ngx-com-components-segmented-control.mjs +6 -4
- package/fesm2022/ngx-com-components-segmented-control.mjs.map +1 -1
- package/fesm2022/ngx-com-components-sort.mjs +63 -57
- package/fesm2022/ngx-com-components-sort.mjs.map +1 -1
- package/fesm2022/ngx-com-components-spinner.mjs +6 -6
- package/fesm2022/ngx-com-components-spinner.mjs.map +1 -1
- package/fesm2022/ngx-com-components-switch.mjs +18 -9
- package/fesm2022/ngx-com-components-switch.mjs.map +1 -1
- package/fesm2022/ngx-com-components-table.mjs +23 -9
- package/fesm2022/ngx-com-components-table.mjs.map +1 -1
- package/fesm2022/ngx-com-components-tabs.mjs +81 -58
- package/fesm2022/ngx-com-components-tabs.mjs.map +1 -1
- package/fesm2022/ngx-com-components-timepicker.mjs +1048 -0
- package/fesm2022/ngx-com-components-timepicker.mjs.map +1 -0
- package/fesm2022/ngx-com-components-toast.mjs +18 -14
- package/fesm2022/ngx-com-components-toast.mjs.map +1 -1
- package/fesm2022/ngx-com-components-tooltip.mjs +5 -5
- package/fesm2022/ngx-com-components-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-com-components.mjs +0 -13
- package/fesm2022/ngx-com-components.mjs.map +1 -1
- package/fesm2022/ngx-com-tokens.mjs +0 -8
- package/fesm2022/ngx-com-tokens.mjs.map +1 -1
- package/fesm2022/ngx-com-utils.mjs +13 -1
- package/fesm2022/ngx-com-utils.mjs.map +1 -1
- package/fesm2022/ngx-com.mjs +1 -1
- package/fesm2022/ngx-com.mjs.map +1 -1
- package/package.json +51 -8
- package/styles/animations.css +38 -0
- package/styles/candy.css +121 -0
- package/styles/dark.css +159 -0
- package/styles/forest.css +117 -0
- package/styles/ocean.css +117 -0
- package/styles/themes.css +7 -0
- package/styles/tokens.css +277 -0
- package/styles/utilities.css +16 -0
- package/types/ngx-com-components-alert.d.ts +14 -4
- package/types/ngx-com-components-avatar.d.ts +2 -0
- package/types/ngx-com-components-calendar.d.ts +3 -747
- package/types/ngx-com-components-card.d.ts +2 -2
- package/types/ngx-com-components-carousel.d.ts +11 -1
- package/types/ngx-com-components-code-block.d.ts +4 -4
- package/types/ngx-com-components-collapsible.d.ts +10 -2
- package/types/ngx-com-components-confirm.d.ts +2 -2
- package/types/ngx-com-components-datepicker.d.ts +623 -0
- package/types/ngx-com-components-dialog.d.ts +5 -2
- package/types/ngx-com-components-dropdown.d.ts +22 -4
- package/types/ngx-com-components-empty-state.d.ts +2 -0
- package/types/ngx-com-components-form-field.d.ts +4 -1
- package/types/ngx-com-components-icon-lucide.d.ts +32 -0
- package/types/ngx-com-components-icon.d.ts +49 -35
- package/types/ngx-com-components-item.d.ts +12 -2
- package/types/ngx-com-components-menu.d.ts +38 -38
- package/types/ngx-com-components-native-control.d.ts +99 -0
- package/types/ngx-com-components-paginator.d.ts +2 -0
- package/types/ngx-com-components-popover.d.ts +19 -12
- package/types/ngx-com-components-segmented-control.d.ts +3 -1
- package/types/ngx-com-components-sort.d.ts +13 -10
- package/types/ngx-com-components-switch.d.ts +7 -2
- package/types/ngx-com-components-table.d.ts +16 -2
- package/types/ngx-com-components-tabs.d.ts +46 -34
- package/types/ngx-com-components-timepicker.d.ts +273 -0
- package/types/ngx-com-components-toast.d.ts +4 -2
- package/types/ngx-com-components-tooltip.d.ts +1 -1
- package/types/ngx-com-components.d.ts +6 -7
- package/types/ngx-com-tokens.d.ts +5 -3
- package/types/ngx-com-utils.d.ts +11 -1
- package/types/ngx-com.d.ts +1 -1
|
@@ -15,8 +15,8 @@ type CardBadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-righ
|
|
|
15
15
|
/**
|
|
16
16
|
* CVA variants for the card container.
|
|
17
17
|
*
|
|
18
|
-
* @tokens `--color-
|
|
19
|
-
* `--color-foreground`, `--color-border`, `--color-primary`, `--color-ring`
|
|
18
|
+
* @tokens `--color-card`, `--color-card-foreground`, `--color-muted`, `--color-muted-hover`,
|
|
19
|
+
* `--color-foreground`, `--color-border`, `--color-primary`, `--color-ring`, `--shadow-card`
|
|
20
20
|
*/
|
|
21
21
|
declare const cardVariants: (props?: {
|
|
22
22
|
variant?: CardVariant;
|
|
@@ -44,6 +44,8 @@ type CarouselDotVariants = VariantProps<typeof carouselDotVariants>;
|
|
|
44
44
|
* Apply this directive to each direct child element that should be
|
|
45
45
|
* treated as a slide within `<com-carousel>`.
|
|
46
46
|
*
|
|
47
|
+
* @tokens none
|
|
48
|
+
*
|
|
47
49
|
* @example
|
|
48
50
|
* ```html
|
|
49
51
|
* <com-carousel>
|
|
@@ -64,6 +66,8 @@ declare class ComCarouselItem {
|
|
|
64
66
|
* The template receives a boolean context (`$implicit`) indicating
|
|
65
67
|
* whether the carousel can navigate backward.
|
|
66
68
|
*
|
|
69
|
+
* @tokens none
|
|
70
|
+
*
|
|
67
71
|
* @example
|
|
68
72
|
* ```html
|
|
69
73
|
* <com-carousel>
|
|
@@ -87,6 +91,8 @@ declare class ComCarouselPrevTpl {
|
|
|
87
91
|
* The template receives a boolean context (`$implicit`) indicating
|
|
88
92
|
* whether the carousel can navigate forward.
|
|
89
93
|
*
|
|
94
|
+
* @tokens none
|
|
95
|
+
*
|
|
90
96
|
* @example
|
|
91
97
|
* ```html
|
|
92
98
|
* <com-carousel>
|
|
@@ -110,6 +116,8 @@ declare class ComCarouselNextTpl {
|
|
|
110
116
|
* Rendered once per "page" in the carousel. The template receives
|
|
111
117
|
* a context with the page index, active state, and total count.
|
|
112
118
|
*
|
|
119
|
+
* @tokens none
|
|
120
|
+
*
|
|
113
121
|
* @example
|
|
114
122
|
* ```html
|
|
115
123
|
* <com-carousel>
|
|
@@ -165,7 +173,9 @@ declare class ComCarouselPaginationTpl {
|
|
|
165
173
|
* @example Auto-play with loop
|
|
166
174
|
* ```html
|
|
167
175
|
* <com-carousel autoPlay loop [autoPlayInterval]="4000">
|
|
168
|
-
*
|
|
176
|
+
* @for (img of images(); track img.url) {
|
|
177
|
+
* <img comCarouselItem [src]="img.url" [alt]="img.alt" />
|
|
178
|
+
* }
|
|
169
179
|
* </com-carousel>
|
|
170
180
|
* ```
|
|
171
181
|
*
|
|
@@ -38,7 +38,7 @@ type CodeBlockVariants = VariantProps<typeof codeBlockVariants>;
|
|
|
38
38
|
* <com-code-block [code]="htmlSnippet" language="HTML" variant="outlined" />
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
declare class
|
|
41
|
+
declare class ComCodeBlock {
|
|
42
42
|
/** The raw code string to display. */
|
|
43
43
|
readonly code: InputSignal<string>;
|
|
44
44
|
/** Language label shown in the header (e.g. 'TypeScript', 'HTML'). */
|
|
@@ -58,9 +58,9 @@ declare class ComCodeBlockComponent {
|
|
|
58
58
|
private copyTimeoutId;
|
|
59
59
|
/** Copies the code to clipboard and shows feedback for 2 seconds. */
|
|
60
60
|
protected copyToClipboard(): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComCodeBlock, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComCodeBlock, "com-code-block", ["comCodeBlock"], { "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "copied": "copied"; }, never, never, true, never>;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { ComCodeBlock, codeBlockVariants };
|
|
66
66
|
export type { CodeBlockVariant, CodeBlockVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { TemplateRef, ModelSignal, InputSignalWithTransform, InputSignal, Signal
|
|
3
|
+
import { TemplateRef, ModelSignal, InputSignalWithTransform, InputSignal, Signal } from '@angular/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Context provided to the trigger template.
|
|
@@ -72,6 +72,8 @@ type CollapsibleTriggerVariants = VariantProps<typeof collapsibleTriggerVariants
|
|
|
72
72
|
* Directive to mark a template as the custom trigger layout template.
|
|
73
73
|
* Replaces the inner content of the trigger while preserving ARIA and keyboard handling.
|
|
74
74
|
*
|
|
75
|
+
* @tokens none
|
|
76
|
+
*
|
|
75
77
|
* @example
|
|
76
78
|
* ```html
|
|
77
79
|
* <button comCollapsibleTrigger>
|
|
@@ -104,6 +106,8 @@ declare class ComCollapsibleTriggerTpl {
|
|
|
104
106
|
* Wraps the content with custom chrome (headers, footers, padding).
|
|
105
107
|
* The grid animation still applies on the host.
|
|
106
108
|
*
|
|
109
|
+
* @tokens none
|
|
110
|
+
*
|
|
107
111
|
* @example
|
|
108
112
|
* ```html
|
|
109
113
|
* <com-collapsible-content>
|
|
@@ -137,6 +141,8 @@ declare class ComCollapsibleContentTpl {
|
|
|
137
141
|
* Directive to mark a template as the custom icon template.
|
|
138
142
|
* Replaces only the chevron icon inside the default trigger layout.
|
|
139
143
|
*
|
|
144
|
+
* @tokens none
|
|
145
|
+
*
|
|
140
146
|
* @example
|
|
141
147
|
* ```html
|
|
142
148
|
* <button comCollapsibleTrigger>
|
|
@@ -163,6 +169,8 @@ declare class ComCollapsibleIconTpl {
|
|
|
163
169
|
* Structural directive for lazy content rendering.
|
|
164
170
|
* Content is only instantiated on first expand, preserving state on subsequent toggles.
|
|
165
171
|
*
|
|
172
|
+
* @tokens none
|
|
173
|
+
*
|
|
166
174
|
* @example
|
|
167
175
|
* ```html
|
|
168
176
|
* <com-collapsible-content>
|
|
@@ -361,7 +369,7 @@ declare class ComCollapsibleContent {
|
|
|
361
369
|
/** Lazy content template. */
|
|
362
370
|
protected readonly lazyTpl: Signal<ComCollapsibleLazy | undefined>;
|
|
363
371
|
/** Track if collapsible has ever been opened (for lazy rendering). */
|
|
364
|
-
protected readonly hasBeenOpened:
|
|
372
|
+
protected readonly hasBeenOpened: Signal<boolean>;
|
|
365
373
|
/** Transition duration in milliseconds. */
|
|
366
374
|
readonly duration: InputSignal<number>;
|
|
367
375
|
/** Consumer CSS classes for the inner wrapper. */
|
|
@@ -32,7 +32,7 @@ interface ConfirmTemplateContext {
|
|
|
32
32
|
*
|
|
33
33
|
* @tokens `--color-popover`, `--color-popover-foreground`, `--color-border`,
|
|
34
34
|
* `--color-foreground`, `--color-muted-foreground`, `--color-backdrop`,
|
|
35
|
-
* `--shadow-
|
|
35
|
+
* `--shadow-overlay`, `--radius-popover`
|
|
36
36
|
*
|
|
37
37
|
* @example Basic confirmation
|
|
38
38
|
* ```html
|
|
@@ -134,7 +134,7 @@ declare const confirmBackdropVariants: (props?: {
|
|
|
134
134
|
/**
|
|
135
135
|
* CVA variants for the confirmation panel container.
|
|
136
136
|
*
|
|
137
|
-
* @tokens `--color-popover`, `--color-popover-foreground`, `--color-border`, `--shadow-
|
|
137
|
+
* @tokens `--color-popover`, `--color-popover-foreground`, `--color-border`, `--shadow-overlay`, `--radius-popover`
|
|
138
138
|
*/
|
|
139
139
|
declare const confirmPanelVariants: (props?: {
|
|
140
140
|
visible?: boolean;
|