@ojiepermana/angular-component 22.0.36 → 22.0.40
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 +3 -3
- package/alert-dialog/README.md +14 -14
- package/checkbox/README.md +16 -15
- package/command/README.md +4 -4
- package/dialog/README.md +12 -12
- package/drawer/README.md +1 -1
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +11 -3
- package/fesm2022/ojiepermana-angular-component-alert.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-badge.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-button.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-card.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +18 -6
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-input.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-item.mjs +14 -4
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-popover.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-select.mjs +22 -5
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +18 -6
- package/fesm2022/ojiepermana-angular-component-table.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +13 -3
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +16 -4
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +44 -4
- package/fesm2022/ojiepermana-angular-component-utils.mjs +51 -1
- package/form/README.md +13 -13
- package/hover-card/README.md +1 -1
- package/package.json +1 -1
- package/radio/README.md +11 -11
- package/scroll-area/README.md +4 -2
- package/sheet/README.md +11 -11
- package/slider/README.md +2 -2
- package/switch/README.md +10 -10
- package/toast/README.md +59 -210
- package/tooltip/README.md +13 -8
- package/types/ojiepermana-angular-component-accordion.d.ts +5 -1
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +3 -1
- package/types/ojiepermana-angular-component-alert.d.ts +5 -1
- package/types/ojiepermana-angular-component-avatar.d.ts +5 -1
- package/types/ojiepermana-angular-component-badge.d.ts +5 -1
- package/types/ojiepermana-angular-component-button.d.ts +5 -1
- package/types/ojiepermana-angular-component-card.d.ts +5 -1
- package/types/ojiepermana-angular-component-dialog.d.ts +5 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +5 -1
- package/types/ojiepermana-angular-component-input.d.ts +5 -1
- package/types/ojiepermana-angular-component-item.d.ts +5 -1
- package/types/ojiepermana-angular-component-popover.d.ts +5 -1
- package/types/ojiepermana-angular-component-select.d.ts +11 -5
- package/types/ojiepermana-angular-component-sheet.d.ts +5 -1
- package/types/ojiepermana-angular-component-table.d.ts +5 -1
- package/types/ojiepermana-angular-component-tabs.d.ts +5 -1
- package/types/ojiepermana-angular-component-textarea.d.ts +5 -1
- package/types/ojiepermana-angular-component-tooltip.d.ts +13 -1
- package/types/ojiepermana-angular-component-utils.d.ts +34 -2
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ Library ini menggunakan pola secondary entry point per folder. Import yang disar
|
|
|
9
9
|
Jalankan build library dengan perintah berikut:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bunx ng build component
|
|
12
|
+
bunx ng build angular-component
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Artefak build akan ditulis ke `dist/component`.
|
|
15
|
+
Nama project di `angular.json` adalah `angular-component`. Artefak build akan ditulis ke `dist/component`.
|
|
16
16
|
|
|
17
17
|
## Penggunaan Lokal
|
|
18
18
|
|
|
@@ -36,7 +36,7 @@ Untuk komponen atau utilitas spesifik, gunakan subpath secondary entry point:
|
|
|
36
36
|
Jalankan unit test library dengan perintah berikut:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
bunx ng test component --watch=false
|
|
39
|
+
bunx ng test angular-component --watch=false
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Runner test di workspace ini menggunakan Vitest melalui Angular build tooling.
|
package/alert-dialog/README.md
CHANGED
|
@@ -175,25 +175,25 @@ Wrap the trigger and dialog in a `dir="rtl"` container or manage direction globa
|
|
|
175
175
|
|
|
176
176
|
### `AlertDialogComponent`
|
|
177
177
|
|
|
178
|
-
| Input | Type
|
|
179
|
-
| ---------------------- |
|
|
180
|
-
| `open` (model) | `boolean`
|
|
181
|
-
| `closeOnEscape` | `boolean`
|
|
182
|
-
| `closeOnBackdropClick` | `boolean`
|
|
183
|
-
| `showCloseButton` | `boolean`
|
|
184
|
-
| `closeButtonLabel` | `string`
|
|
185
|
-
| `aria-labelledby` | `string
|
|
186
|
-
| `aria-describedby` | `string
|
|
187
|
-
| `class` | `string`
|
|
178
|
+
| Input | Type | Default |
|
|
179
|
+
| ---------------------- | ---------------- | --------- |
|
|
180
|
+
| `open` (model) | `boolean` | `false` |
|
|
181
|
+
| `closeOnEscape` | `boolean` | `true` |
|
|
182
|
+
| `closeOnBackdropClick` | `boolean` | `false` |
|
|
183
|
+
| `showCloseButton` | `boolean` | `false` |
|
|
184
|
+
| `closeButtonLabel` | `string` | `'Close'` |
|
|
185
|
+
| `aria-labelledby` | `string \| null` | `null` |
|
|
186
|
+
| `aria-describedby` | `string \| null` | `null` |
|
|
187
|
+
| `class` | `string` | `''` |
|
|
188
188
|
|
|
189
189
|
Output: `openedChange: boolean`. Method: `close()`.
|
|
190
190
|
|
|
191
191
|
### `AlertDialogContentComponent`
|
|
192
192
|
|
|
193
|
-
| Input | Type
|
|
194
|
-
| ------- |
|
|
195
|
-
| `size` | `'default'
|
|
196
|
-
| `class` | `string`
|
|
193
|
+
| Input | Type | Default |
|
|
194
|
+
| ------- | ------------------- | ----------- |
|
|
195
|
+
| `size` | `'default' \| 'sm'` | `'default'` |
|
|
196
|
+
| `class` | `string` | `''` |
|
|
197
197
|
|
|
198
198
|
### Parts
|
|
199
199
|
|
package/checkbox/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Checkbox
|
|
2
2
|
|
|
3
|
-
A shadcn-style checkbox primitive built on
|
|
3
|
+
A shadcn-style checkbox primitive built on a native `<input type="checkbox">`, with full `ControlValueAccessor` support for `ngModel` and reactive forms.
|
|
4
4
|
|
|
5
5
|
## Import
|
|
6
6
|
|
|
@@ -98,17 +98,18 @@ Use `indeterminate` for the select-all checkbox and set `data-state="selected"`
|
|
|
98
98
|
|
|
99
99
|
## API reference
|
|
100
100
|
|
|
101
|
-
| Input | Type | Default | Notes
|
|
102
|
-
| ------------------ | --------------------------- | -------------- |
|
|
103
|
-
| `id` | `string` | auto-generated |
|
|
104
|
-
| `name` | `string \| null` | `null` | Forwarded to the native checkbox input.
|
|
105
|
-
| `indeterminate` | `boolean` | `false` | Useful for select-all patterns.
|
|
106
|
-
| `required` | `boolean` | `false` | Forwarded to the native input.
|
|
107
|
-
| `
|
|
108
|
-
| `aria-
|
|
109
|
-
| `aria-
|
|
110
|
-
| `aria-
|
|
111
|
-
| `
|
|
101
|
+
| Input | Type | Default | Notes |
|
|
102
|
+
| ------------------ | --------------------------- | -------------- | ------------------------------------------------------------ |
|
|
103
|
+
| `id` | `string` | auto-generated | Set directly on the native checkbox input. |
|
|
104
|
+
| `name` | `string \| null` | `null` | Forwarded to the native checkbox input. |
|
|
105
|
+
| `indeterminate` | `boolean` | `false` | Useful for select-all patterns. |
|
|
106
|
+
| `required` | `boolean` | `false` | Forwarded to the native input. |
|
|
107
|
+
| `disabled` | `boolean` | `false` | Disables the control; forwarded to the native input. |
|
|
108
|
+
| `aria-label` | `string \| null` | `null` | Use for icon-only or table selection checkboxes. |
|
|
109
|
+
| `aria-describedby` | `string \| null` | `null` | Links helper or error text outside the checkbox. |
|
|
110
|
+
| `aria-labelledby` | `string \| null` | `null` | Alternative to projected text or wrapper labels. |
|
|
111
|
+
| `aria-invalid` | `boolean \| string \| null` | `null` | Switches the control into the destructive invalid treatment. |
|
|
112
|
+
| `class` | `string` | `''` | Adds utility classes to the checkbox host. |
|
|
112
113
|
|
|
113
114
|
| Output | Payload |
|
|
114
115
|
| --------------- | --------- |
|
|
@@ -118,13 +119,13 @@ Public method: `focus()`.
|
|
|
118
119
|
|
|
119
120
|
## Styling and theming
|
|
120
121
|
|
|
121
|
-
The component
|
|
122
|
+
The component renders a native checkbox input that is restyled through the library theme tokens.
|
|
122
123
|
|
|
123
124
|
- Default borders and icon color use the shared `input` and `primary` tokens.
|
|
124
125
|
- `aria-invalid="true"` switches the control to the `destructive` token set.
|
|
125
126
|
- Pass spacing or alignment utilities through the `class` input when the checkbox needs to align with multi-line content.
|
|
126
127
|
|
|
127
|
-
Extra visual adjustments belong in
|
|
128
|
+
Extra visual adjustments belong in the component's inline `styles` inside the library.
|
|
128
129
|
|
|
129
130
|
## Accessibility
|
|
130
131
|
|
|
@@ -141,7 +142,7 @@ Extra visual adjustments belong in `checkbox.component.css` inside the library.
|
|
|
141
142
|
## Angular notes
|
|
142
143
|
|
|
143
144
|
- `ngModel`, reactive forms, and `checkedChange` all work with the same primitive.
|
|
144
|
-
- When you pass `id`,
|
|
145
|
+
- When you pass `id`, it is set directly on the native checkbox input; wrapper labels or `aria-labelledby` are usually the simplest Angular pattern.
|
|
145
146
|
- Projected text still works if you prefer `<Checkbox>Accept</Checkbox>` for compact markup.
|
|
146
147
|
|
|
147
148
|
## Source parity
|
package/command/README.md
CHANGED
|
@@ -193,10 +193,10 @@ For right-to-left interfaces, apply `dir="rtl"` to the wrapper and input.
|
|
|
193
193
|
|
|
194
194
|
### `CommandInputComponent`
|
|
195
195
|
|
|
196
|
-
| Input | Type | Default
|
|
197
|
-
| ------------- | -------- |
|
|
198
|
-
| `placeholder` | `string` | `Type a command or search
|
|
199
|
-
| `class` | `string` | `''`
|
|
196
|
+
| Input | Type | Default |
|
|
197
|
+
| ------------- | -------- | --------------------------- |
|
|
198
|
+
| `placeholder` | `string` | `Type a command or search…` |
|
|
199
|
+
| `class` | `string` | `''` |
|
|
200
200
|
|
|
201
201
|
Behavior:
|
|
202
202
|
|
package/dialog/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Use an external button or link to toggle the `open` signal, then declare the dia
|
|
|
44
44
|
```html
|
|
45
45
|
<button type="button" Button variant="outline" (click)="open.set(true)">Edit profile</button>
|
|
46
46
|
|
|
47
|
-
<
|
|
47
|
+
<Dialog [(open)]="open" aria-labelledby="dialog-title" aria-describedby="dialog-description" class="sm:max-w-sm">
|
|
48
48
|
<DialogHeader>
|
|
49
49
|
<DialogTitle id="dialog-title">Edit profile</DialogTitle>
|
|
50
50
|
<DialogDescription id="dialog-description">
|
|
@@ -67,7 +67,7 @@ Use an external button or link to toggle the `open` signal, then declare the dia
|
|
|
67
67
|
<button type="button" Button variant="outline" DialogClose>Cancel</button>
|
|
68
68
|
<button type="button" Button (click)="open.set(false)">Save changes</button>
|
|
69
69
|
</DialogFooter>
|
|
70
|
-
</
|
|
70
|
+
</Dialog>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
## Common patterns
|
|
@@ -79,7 +79,7 @@ Use a short title, short body copy, and explicit cancel/confirm actions for dest
|
|
|
79
79
|
```html
|
|
80
80
|
<button type="button" Button variant="destructive" (click)="confirmOpen.set(true)">Delete project</button>
|
|
81
81
|
|
|
82
|
-
<
|
|
82
|
+
<Dialog [(open)]="confirmOpen">
|
|
83
83
|
<DialogHeader>
|
|
84
84
|
<DialogTitle>Delete this project?</DialogTitle>
|
|
85
85
|
<DialogDescription> This action cannot be undone. This permanently deletes your project. </DialogDescription>
|
|
@@ -88,7 +88,7 @@ Use a short title, short body copy, and explicit cancel/confirm actions for dest
|
|
|
88
88
|
<button type="button" Button variant="outline" DialogClose>Cancel</button>
|
|
89
89
|
<button type="button" Button variant="destructive" (click)="confirmOpen.set(false)">Delete</button>
|
|
90
90
|
</DialogFooter>
|
|
91
|
-
</
|
|
91
|
+
</Dialog>
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
### Custom close button
|
|
@@ -96,7 +96,7 @@ Use a short title, short body copy, and explicit cancel/confirm actions for dest
|
|
|
96
96
|
Hide the built-in corner close control with `[showCloseButton]="false"` and place `button[DialogClose]` wherever dismissal should live.
|
|
97
97
|
|
|
98
98
|
```html
|
|
99
|
-
<
|
|
99
|
+
<Dialog [(open)]="shareOpen" [showCloseButton]="false" class="sm:max-w-md">
|
|
100
100
|
<DialogHeader>
|
|
101
101
|
<DialogTitle>Share link</DialogTitle>
|
|
102
102
|
<DialogDescription> Anyone who has this link can view this workspace. </DialogDescription>
|
|
@@ -110,7 +110,7 @@ Hide the built-in corner close control with `[showCloseButton]="false"` and plac
|
|
|
110
110
|
<DialogFooter class="sm:justify-start">
|
|
111
111
|
<button type="button" Button DialogClose>Close</button>
|
|
112
112
|
</DialogFooter>
|
|
113
|
-
</
|
|
113
|
+
</Dialog>
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
### No close button
|
|
@@ -118,14 +118,14 @@ Hide the built-in corner close control with `[showCloseButton]="false"` and plac
|
|
|
118
118
|
Use `[showCloseButton]="false"` without an internal close action when Escape and backdrop dismissal are enough.
|
|
119
119
|
|
|
120
120
|
```html
|
|
121
|
-
<
|
|
121
|
+
<Dialog [(open)]="noCloseOpen" [showCloseButton]="false">
|
|
122
122
|
<DialogHeader>
|
|
123
123
|
<DialogTitle>No Close Button</DialogTitle>
|
|
124
124
|
<DialogDescription>
|
|
125
125
|
Dismiss this dialog with Escape, the backdrop, or another action you control.
|
|
126
126
|
</DialogDescription>
|
|
127
127
|
</DialogHeader>
|
|
128
|
-
</
|
|
128
|
+
</Dialog>
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
### Sticky footer for long content
|
|
@@ -133,7 +133,7 @@ Use `[showCloseButton]="false"` without an internal close action when Escape and
|
|
|
133
133
|
Move the scroll region into `DialogContent` and keep the footer outside that overflow container so primary actions remain visible.
|
|
134
134
|
|
|
135
135
|
```html
|
|
136
|
-
<
|
|
136
|
+
<Dialog [(open)]="stickyOpen" [showCloseButton]="false" class="max-h-[85vh] overflow-hidden p-0 sm:max-w-lg">
|
|
137
137
|
<DialogHeader class="px-6 pt-6">
|
|
138
138
|
<DialogTitle>Sticky Footer</DialogTitle>
|
|
139
139
|
<DialogDescription>Keep actions visible while the content scrolls.</DialogDescription>
|
|
@@ -145,7 +145,7 @@ Move the scroll region into `DialogContent` and keep the footer outside that ove
|
|
|
145
145
|
<button type="button" Button variant="outline" DialogClose>Close</button>
|
|
146
146
|
<button type="button" Button (click)="stickyOpen.set(false)">Save changes</button>
|
|
147
147
|
</DialogFooter>
|
|
148
|
-
</
|
|
148
|
+
</Dialog>
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
### RTL
|
|
@@ -156,7 +156,7 @@ Wrap the trigger and dialog in a `dir="rtl"` container or set direction globally
|
|
|
156
156
|
<div dir="rtl" lang="ar" class="text-right">
|
|
157
157
|
<button type="button" Button variant="outline" (click)="rtlOpen.set(true)">فتح الحوار</button>
|
|
158
158
|
|
|
159
|
-
<
|
|
159
|
+
<Dialog [(open)]="rtlOpen" [showCloseButton]="false" class="sm:max-w-sm">
|
|
160
160
|
<DialogHeader>
|
|
161
161
|
<DialogTitle>تعديل الملف الشخصي</DialogTitle>
|
|
162
162
|
<DialogDescription> قم بإجراء تغييرات على ملفك الشخصي هنا. انقر فوق حفظ عند الانتهاء. </DialogDescription>
|
|
@@ -169,7 +169,7 @@ Wrap the trigger and dialog in a `dir="rtl"` container or set direction globally
|
|
|
169
169
|
<button type="button" Button variant="outline" DialogClose>إلغاء</button>
|
|
170
170
|
<button type="button" Button (click)="rtlOpen.set(false)">حفظ التغييرات</button>
|
|
171
171
|
</DialogFooter>
|
|
172
|
-
</
|
|
172
|
+
</Dialog>
|
|
173
173
|
</div>
|
|
174
174
|
```
|
|
175
175
|
|
package/drawer/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, input, model, computed, forwardRef, ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
3
|
-
import { cn, uniqueId } from '@ojiepermana/angular-component/utils';
|
|
3
|
+
import { cn, radiusBaseValue, densityBaseValue, uniqueId } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
class AccordionContextBase {
|
|
6
6
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AccordionContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -18,8 +18,16 @@ class AccordionComponent extends AccordionContextBase {
|
|
|
18
18
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
19
19
|
class = input('', /* @ts-ignore */
|
|
20
20
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
21
|
+
radius = input('inherit', /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
23
|
+
density = input('inherit', /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
21
25
|
classes = computed(() => cn('block', this.class()), /* @ts-ignore */
|
|
22
26
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
27
|
+
radiusBase = computed(() => radiusBaseValue(this.radius()), /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "radiusBase" }] : /* istanbul ignore next */ []));
|
|
29
|
+
densityBase = computed(() => densityBaseValue(this.density()), /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "densityBase" }] : /* istanbul ignore next */ []));
|
|
23
31
|
openSet = computed(() => {
|
|
24
32
|
const v = this.value();
|
|
25
33
|
if (v == null)
|
|
@@ -50,7 +58,7 @@ class AccordionComponent extends AccordionContextBase {
|
|
|
50
58
|
}
|
|
51
59
|
}
|
|
52
60
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AccordionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AccordionComponent, isStandalone: true, selector: "Accordion", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()" } }, providers: [{ provide: AccordionContextBase, useExisting: forwardRef(() => AccordionComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AccordionComponent, isStandalone: true, selector: "Accordion", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()", "style.--radius-base": "radiusBase()", "style.--spacing-base": "densityBase()" } }, providers: [{ provide: AccordionContextBase, useExisting: forwardRef(() => AccordionComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
62
|
}
|
|
55
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AccordionComponent, decorators: [{
|
|
56
64
|
type: Component,
|
|
@@ -58,10 +66,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
58
66
|
selector: 'Accordion',
|
|
59
67
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
68
|
providers: [{ provide: AccordionContextBase, useExisting: forwardRef(() => AccordionComponent) }],
|
|
61
|
-
host: {
|
|
69
|
+
host: {
|
|
70
|
+
'[class]': 'classes()',
|
|
71
|
+
'[style.--radius-base]': 'radiusBase()',
|
|
72
|
+
'[style.--spacing-base]': 'densityBase()',
|
|
73
|
+
},
|
|
62
74
|
template: `<ng-content />`,
|
|
63
75
|
}]
|
|
64
|
-
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
76
|
+
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }] } });
|
|
65
77
|
class AccordionItemComponent {
|
|
66
78
|
ctx = inject(AccordionContextBase);
|
|
67
79
|
value = input.required(/* @ts-ignore */
|
|
@@ -23,6 +23,10 @@ class AlertDialogComponent {
|
|
|
23
23
|
describedBy = input(null, { ...(ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
|
|
24
24
|
class = input('', /* @ts-ignore */
|
|
25
25
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
26
|
+
radius = input('inherit', /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
28
|
+
density = input('inherit', /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
26
30
|
openedChange = output();
|
|
27
31
|
contentSize = signal('default', /* @ts-ignore */
|
|
28
32
|
...(ngDevMode ? [{ debugName: "contentSize" }] : /* istanbul ignore next */ []));
|
|
@@ -37,7 +41,7 @@ class AlertDialogComponent {
|
|
|
37
41
|
this.open.set(false);
|
|
38
42
|
}
|
|
39
43
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AlertDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AlertDialogComponent, isStandalone: true, selector: "AlertDialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, closeButtonLabel: { classPropertyName: "closeButtonLabel", publicName: "closeButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openedChange: "openedChange" }, ngImport: i0, template: `
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AlertDialogComponent, isStandalone: true, selector: "AlertDialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdropClick: { classPropertyName: "closeOnBackdropClick", publicName: "closeOnBackdropClick", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, closeButtonLabel: { classPropertyName: "closeButtonLabel", publicName: "closeButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, labelledBy: { classPropertyName: "labelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, describedBy: { classPropertyName: "describedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", openedChange: "openedChange" }, ngImport: i0, template: `
|
|
41
45
|
<Dialog
|
|
42
46
|
[(open)]="open"
|
|
43
47
|
[closeOnEscape]="closeOnEscape()"
|
|
@@ -47,10 +51,12 @@ class AlertDialogComponent {
|
|
|
47
51
|
[aria-labelledby]="labelledBy()"
|
|
48
52
|
[aria-describedby]="describedBy()"
|
|
49
53
|
[class]="surfaceClasses()"
|
|
54
|
+
[radius]="radius()"
|
|
55
|
+
[density]="density()"
|
|
50
56
|
(openedChange)="openedChange.emit($event)">
|
|
51
57
|
<ng-content />
|
|
52
58
|
</Dialog>
|
|
53
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogComponent, selector: "Dialog", inputs: ["open", "closeOnEscape", "closeOnBackdropClick", "showCloseButton", "closeButtonLabel", "aria-labelledby", "aria-describedby", "class"], outputs: ["openChange", "openedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogComponent, selector: "Dialog", inputs: ["open", "closeOnEscape", "closeOnBackdropClick", "showCloseButton", "closeButtonLabel", "aria-labelledby", "aria-describedby", "class", "radius", "density"], outputs: ["openChange", "openedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
60
|
}
|
|
55
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AlertDialogComponent, decorators: [{
|
|
56
62
|
type: Component,
|
|
@@ -68,12 +74,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
68
74
|
[aria-labelledby]="labelledBy()"
|
|
69
75
|
[aria-describedby]="describedBy()"
|
|
70
76
|
[class]="surfaceClasses()"
|
|
77
|
+
[radius]="radius()"
|
|
78
|
+
[density]="density()"
|
|
71
79
|
(openedChange)="openedChange.emit($event)">
|
|
72
80
|
<ng-content />
|
|
73
81
|
</Dialog>
|
|
74
82
|
`,
|
|
75
83
|
}]
|
|
76
|
-
}], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], closeButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonLabel", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
|
|
84
|
+
}], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdropClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdropClick", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], closeButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonLabel", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], describedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
|
|
77
85
|
|
|
78
86
|
const ALERT_DIALOG_MEDIA_SIZE_CLASSES = {
|
|
79
87
|
default: 'h-12 w-12 [&_svg]:h-5 [&_svg]:w-5',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { cn } from '@ojiepermana/angular-component/utils';
|
|
3
|
+
import { cn, radiusBaseValue, densityBaseValue } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva([
|
|
@@ -22,10 +22,18 @@ class AlertComponent {
|
|
|
22
22
|
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
23
23
|
class = input('', /* @ts-ignore */
|
|
24
24
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
25
|
+
radius = input('inherit', /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
27
|
+
density = input('inherit', /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
25
29
|
classes = computed(() => cn(alertVariants({ variant: this.variant() }), this.class()), /* @ts-ignore */
|
|
26
30
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
31
|
+
radiusBase = computed(() => radiusBaseValue(this.radius()), /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "radiusBase" }] : /* istanbul ignore next */ []));
|
|
33
|
+
densityBase = computed(() => densityBaseValue(this.density()), /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "densityBase" }] : /* istanbul ignore next */ []));
|
|
27
35
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AlertComponent, isStandalone: true, selector: "Alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"alert\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
36
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AlertComponent, isStandalone: true, selector: "Alert", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"alert\"", "style.--radius-base": "radiusBase()", "style.--spacing-base": "densityBase()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
37
|
}
|
|
30
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AlertComponent, decorators: [{
|
|
31
39
|
type: Component,
|
|
@@ -35,10 +43,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
35
43
|
host: {
|
|
36
44
|
'[class]': 'classes()',
|
|
37
45
|
'[attr.role]': '"alert"',
|
|
46
|
+
'[style.--radius-base]': 'radiusBase()',
|
|
47
|
+
'[style.--spacing-base]': 'densityBase()',
|
|
38
48
|
},
|
|
39
49
|
template: `<ng-content />`,
|
|
40
50
|
}]
|
|
41
|
-
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
51
|
+
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }] } });
|
|
42
52
|
class AlertTitleComponent {
|
|
43
53
|
class = input('', /* @ts-ignore */
|
|
44
54
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
|
3
|
-
import { cn } from '@ojiepermana/angular-component/utils';
|
|
3
|
+
import { cn, radiusBaseValue, densityBaseValue } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
|
|
5
5
|
const avatarSizeClasses = {
|
|
6
6
|
default: 'h-10 w-10',
|
|
@@ -12,10 +12,18 @@ class AvatarComponent {
|
|
|
12
12
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
13
13
|
class = input('', /* @ts-ignore */
|
|
14
14
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
15
|
+
radius = input('inherit', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
17
|
+
density = input('inherit', /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
15
19
|
classes = computed(() => cn('relative flex shrink-0 overflow-hidden rounded-full', avatarSizeClasses[this.size()], this.class()), /* @ts-ignore */
|
|
16
20
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
21
|
+
radiusBase = computed(() => radiusBaseValue(this.radius()), /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "radiusBase" }] : /* istanbul ignore next */ []));
|
|
23
|
+
densityBase = computed(() => densityBaseValue(this.density()), /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "densityBase" }] : /* istanbul ignore next */ []));
|
|
17
25
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AvatarComponent, isStandalone: true, selector: "Avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-size": "size()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: AvatarComponent, isStandalone: true, selector: "Avatar", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-size": "size()", "style.--radius-base": "radiusBase()", "style.--spacing-base": "densityBase()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19
27
|
}
|
|
20
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
21
29
|
type: Component,
|
|
@@ -25,10 +33,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
25
33
|
host: {
|
|
26
34
|
'[class]': 'classes()',
|
|
27
35
|
'[attr.data-size]': 'size()',
|
|
36
|
+
'[style.--radius-base]': 'radiusBase()',
|
|
37
|
+
'[style.--spacing-base]': 'densityBase()',
|
|
28
38
|
},
|
|
29
39
|
template: `<ng-content />`,
|
|
30
40
|
}]
|
|
31
|
-
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
41
|
+
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }] } });
|
|
32
42
|
class AvatarImageComponent {
|
|
33
43
|
src = input.required(/* @ts-ignore */
|
|
34
44
|
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { cn } from '@ojiepermana/angular-component/utils';
|
|
3
|
+
import { cn, radiusBaseValue, densityBaseValue } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva([
|
|
@@ -27,20 +27,32 @@ class BadgeComponent {
|
|
|
27
27
|
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
28
28
|
class = input('', /* @ts-ignore */
|
|
29
29
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
30
|
+
radius = input('inherit', /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
32
|
+
density = input('inherit', /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
30
34
|
classes = computed(() => cn(badgeVariants({ variant: this.variant() }), this.class()), /* @ts-ignore */
|
|
31
35
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
36
|
+
radiusBase = computed(() => radiusBaseValue(this.radius()), /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "radiusBase" }] : /* istanbul ignore next */ []));
|
|
38
|
+
densityBase = computed(() => densityBaseValue(this.density()), /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "densityBase" }] : /* istanbul ignore next */ []));
|
|
32
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: BadgeComponent, isStandalone: true, selector: "Badge, [Badge]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: BadgeComponent, isStandalone: true, selector: "Badge, [Badge]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "style.--radius-base": "radiusBase()", "style.--spacing-base": "densityBase()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34
42
|
}
|
|
35
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
36
44
|
type: Component,
|
|
37
45
|
args: [{
|
|
38
46
|
selector: 'Badge, [Badge]',
|
|
39
47
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
host: {
|
|
48
|
+
host: {
|
|
49
|
+
'[class]': 'classes()',
|
|
50
|
+
'[style.--radius-base]': 'radiusBase()',
|
|
51
|
+
'[style.--spacing-base]': 'densityBase()',
|
|
52
|
+
},
|
|
41
53
|
template: `<ng-content />`,
|
|
42
54
|
}]
|
|
43
|
-
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
55
|
+
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }] } });
|
|
44
56
|
|
|
45
57
|
/**
|
|
46
58
|
* Generated bundle index. Do not edit.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { cn } from '@ojiepermana/angular-component/utils';
|
|
3
|
+
import { cn, radiusBaseValue, densityBaseValue } from '@ojiepermana/angular-component/utils';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
const buttonVariants = cva([
|
|
@@ -41,10 +41,18 @@ class ButtonComponent {
|
|
|
41
41
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
42
42
|
class = input('', /* @ts-ignore */
|
|
43
43
|
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
44
|
+
radius = input('inherit', /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
46
|
+
density = input('inherit', /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
44
48
|
classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), /* @ts-ignore */
|
|
45
49
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
50
|
+
radiusBase = computed(() => radiusBaseValue(this.radius()), /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "radiusBase" }] : /* istanbul ignore next */ []));
|
|
52
|
+
densityBase = computed(() => densityBaseValue(this.density()), /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "densityBase" }] : /* istanbul ignore next */ []));
|
|
46
54
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: ButtonComponent, isStandalone: true, selector: "button[Button], a[Button]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-variant": "variant()", "attr.data-size": "size()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.3", type: ButtonComponent, isStandalone: true, selector: "button[Button], a[Button]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-variant": "variant()", "attr.data-size": "size()", "style.--radius-base": "radiusBase()", "style.--spacing-base": "densityBase()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
56
|
}
|
|
49
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
50
58
|
type: Component,
|
|
@@ -55,10 +63,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
55
63
|
'[class]': 'classes()',
|
|
56
64
|
'[attr.data-variant]': 'variant()',
|
|
57
65
|
'[attr.data-size]': 'size()',
|
|
66
|
+
'[style.--radius-base]': 'radiusBase()',
|
|
67
|
+
'[style.--spacing-base]': 'densityBase()',
|
|
58
68
|
},
|
|
59
69
|
template: `<ng-content />`,
|
|
60
70
|
}]
|
|
61
|
-
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
71
|
+
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }] } });
|
|
62
72
|
|
|
63
73
|
/**
|
|
64
74
|
* Generated bundle index. Do not edit.
|
|
@@ -71,7 +71,7 @@ class CalendarComponent {
|
|
|
71
71
|
[startView]="startView()"
|
|
72
72
|
[dateFilter]="resolvedDateFilter()"
|
|
73
73
|
(selectedChange)="onSelect($event)" />
|
|
74
|
-
`, isInline: true, styles: [":host{display:block;width:fit-content;padding
|
|
74
|
+
`, isInline: true, styles: [":host{display:block;width:fit-content;padding:calc(var(--spacing) * 3);border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.Calendar{display:block;width:var(--calendar-width, 17.5rem)}\n"], dependencies: [{ kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
75
75
|
}
|
|
76
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
@@ -92,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.3", ngImpor
|
|
|
92
92
|
[startView]="startView()"
|
|
93
93
|
[dateFilter]="resolvedDateFilter()"
|
|
94
94
|
(selectedChange)="onSelect($event)" />
|
|
95
|
-
`, styles: [":host{display:block;width:fit-content;padding
|
|
95
|
+
`, styles: [":host{display:block;width:fit-content;padding:calc(var(--spacing) * 3);border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.Calendar{display:block;width:var(--calendar-width, 17.5rem)}\n"] }]
|
|
96
96
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], startAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAt", required: false }] }], startView: [{ type: i0.Input, args: [{ isSignal: true, alias: "startView", required: false }] }], dateFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFilter", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
97
97
|
|
|
98
98
|
/**
|