@egose/shadcn-theme-ng 0.0.26 → 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 -606
- package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
- package/layout-simple/index.d.ts +0 -142
- 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
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HlmDialogService } from '@egose/shadcn-theme-ng/dialog';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
|
|
4
|
-
declare class EgConfirmationDiaglog {
|
|
5
|
-
private readonly _dialogRef;
|
|
6
|
-
private readonly _dialogContext;
|
|
7
|
-
protected readonly _title: string;
|
|
8
|
-
protected readonly _description: string;
|
|
9
|
-
close(confirm: boolean): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EgConfirmationDiaglog, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EgConfirmationDiaglog, "ng-component", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
13
|
-
declare class EgConfirmationDialogService {
|
|
14
|
-
private hlmDialogService;
|
|
15
|
-
constructor(hlmDialogService: HlmDialogService);
|
|
16
|
-
showConfirmationDialog({ title, description }: {
|
|
17
|
-
title: string;
|
|
18
|
-
description: string;
|
|
19
|
-
}): Promise<boolean>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EgConfirmationDialogService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EgConfirmationDialogService>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { EgConfirmationDiaglog, EgConfirmationDialogService };
|
package/dialog/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Dialog
|
|
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 dialog
|
|
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/dialog
|
|
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,278 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, effect, untracked, Directive, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@spartan-ng/brain/dialog';
|
|
4
|
-
import { BrnDialog, BrnDialogOverlay, provideBrnDialogDefaultOptions, BrnDialogRef, injectBrnDialogContext, BrnDialogClose, BrnDialogDescription, BrnDialogTitle, BrnDialogService, cssClassesToArray, DEFAULT_BRN_DIALOG_OPTIONS } from '@spartan-ng/brain/dialog';
|
|
5
|
-
import { injectCustomClassSettable } from '@spartan-ng/brain/core';
|
|
6
|
-
import { hlm } from '@egose/shadcn-theme-ng/utils';
|
|
7
|
-
import { NgComponentOutlet } from '@angular/common';
|
|
8
|
-
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
9
|
-
import { lucideX } from '@ng-icons/lucide';
|
|
10
|
-
import { HlmIcon } from '@egose/shadcn-theme-ng/icon';
|
|
11
|
-
|
|
12
|
-
const hlmDialogOverlayClass = 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/50';
|
|
13
|
-
class HlmDialogOverlay {
|
|
14
|
-
_classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
15
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
16
|
-
_computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
17
|
-
constructor() {
|
|
18
|
-
effect(() => {
|
|
19
|
-
const newClass = this._computedClass();
|
|
20
|
-
untracked(() => this._classSettable?.setClassToCustomElement(newClass));
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogOverlay, isStandalone: true, selector: "[hlmDialogOverlay],brn-dialog-overlay[hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogOverlay, decorators: [{
|
|
27
|
-
type: Directive,
|
|
28
|
-
args: [{
|
|
29
|
-
selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',
|
|
30
|
-
}]
|
|
31
|
-
}], ctorParameters: () => [] });
|
|
32
|
-
|
|
33
|
-
class HlmDialog extends BrnDialog {
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: HlmDialog, isStandalone: true, selector: "hlm-dialog", providers: [
|
|
36
|
-
{
|
|
37
|
-
provide: BrnDialog,
|
|
38
|
-
useExisting: forwardRef(() => HlmDialog),
|
|
39
|
-
},
|
|
40
|
-
provideBrnDialogDefaultOptions({
|
|
41
|
-
// add custom options here
|
|
42
|
-
}),
|
|
43
|
-
], exportAs: ["hlmDialog"], usesInheritance: true, ngImport: i0, template: `
|
|
44
|
-
<brn-dialog-overlay hlm />
|
|
45
|
-
<ng-content />
|
|
46
|
-
`, isInline: true, dependencies: [{ kind: "component", type: BrnDialogOverlay, selector: "brn-dialog-overlay", inputs: ["class"] }, { kind: "directive", type: HlmDialogOverlay, selector: "[hlmDialogOverlay],brn-dialog-overlay[hlm]", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialog, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'hlm-dialog',
|
|
52
|
-
imports: [BrnDialogOverlay, HlmDialogOverlay],
|
|
53
|
-
providers: [
|
|
54
|
-
{
|
|
55
|
-
provide: BrnDialog,
|
|
56
|
-
useExisting: forwardRef(() => HlmDialog),
|
|
57
|
-
},
|
|
58
|
-
provideBrnDialogDefaultOptions({
|
|
59
|
-
// add custom options here
|
|
60
|
-
}),
|
|
61
|
-
],
|
|
62
|
-
template: `
|
|
63
|
-
<brn-dialog-overlay hlm />
|
|
64
|
-
<ng-content />
|
|
65
|
-
`,
|
|
66
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
67
|
-
encapsulation: ViewEncapsulation.None,
|
|
68
|
-
exportAs: 'hlmDialog',
|
|
69
|
-
}]
|
|
70
|
-
}] });
|
|
71
|
-
|
|
72
|
-
class HlmDialogClose {
|
|
73
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
74
|
-
_computedClass = computed(() => hlm('ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs absolute right-4 top-4 flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_ng-icon]:shrink-0', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogClose, isStandalone: true, selector: "[hlmDialogClose],[brnDialogClose][hlm]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
|
|
77
|
-
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogClose, decorators: [{
|
|
79
|
-
type: Directive,
|
|
80
|
-
args: [{
|
|
81
|
-
selector: '[hlmDialogClose],[brnDialogClose][hlm]',
|
|
82
|
-
host: {
|
|
83
|
-
'[class]': '_computedClass()',
|
|
84
|
-
},
|
|
85
|
-
}]
|
|
86
|
-
}] });
|
|
87
|
-
|
|
88
|
-
class HlmDialogContent {
|
|
89
|
-
_dialogRef = inject(BrnDialogRef);
|
|
90
|
-
_dialogContext = injectBrnDialogContext({ optional: true });
|
|
91
|
-
state = computed(() => this._dialogRef?.state() ?? 'closed', ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
92
|
-
component = this._dialogContext?.$component;
|
|
93
|
-
_dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;
|
|
94
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
95
|
-
_computedClass = computed(() => hlm('bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 mx-auto grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg data-[state=closed]:duration-200 data-[state=open]:duration-200 sm:mx-0 sm:max-w-lg', this.userClass(), this._dynamicComponentClass), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
96
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: HlmDialogContent, isStandalone: true, selector: "hlm-dialog-content", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()", "attr.data-state": "state()" } }, providers: [provideIcons({ lucideX })], ngImport: i0, template: `
|
|
98
|
-
@if (component) {
|
|
99
|
-
<ng-container [ngComponentOutlet]="component" />
|
|
100
|
-
} @else {
|
|
101
|
-
<ng-content />
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
<button brnDialogClose hlm>
|
|
105
|
-
<span class="sr-only">Close</span>
|
|
106
|
-
<ng-icon hlm size="sm" name="lucideX" />
|
|
107
|
-
</button>
|
|
108
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: BrnDialogClose, selector: "button[brnDialogClose]", inputs: ["delay"] }, { kind: "directive", type: HlmDialogClose, selector: "[hlmDialogClose],[brnDialogClose][hlm]", inputs: ["class"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
109
|
-
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogContent, decorators: [{
|
|
111
|
-
type: Component,
|
|
112
|
-
args: [{
|
|
113
|
-
selector: 'hlm-dialog-content',
|
|
114
|
-
imports: [NgComponentOutlet, BrnDialogClose, HlmDialogClose, NgIcon, HlmIcon],
|
|
115
|
-
providers: [provideIcons({ lucideX })],
|
|
116
|
-
host: {
|
|
117
|
-
'[class]': '_computedClass()',
|
|
118
|
-
'[attr.data-state]': 'state()',
|
|
119
|
-
},
|
|
120
|
-
template: `
|
|
121
|
-
@if (component) {
|
|
122
|
-
<ng-container [ngComponentOutlet]="component" />
|
|
123
|
-
} @else {
|
|
124
|
-
<ng-content />
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
<button brnDialogClose hlm>
|
|
128
|
-
<span class="sr-only">Close</span>
|
|
129
|
-
<ng-icon hlm size="sm" name="lucideX" />
|
|
130
|
-
</button>
|
|
131
|
-
`,
|
|
132
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
133
|
-
encapsulation: ViewEncapsulation.None,
|
|
134
|
-
}]
|
|
135
|
-
}] });
|
|
136
|
-
|
|
137
|
-
class HlmDialogDescription {
|
|
138
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
139
|
-
_computedClass = computed(() => hlm('text-muted-foreground text-sm', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
141
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogDescription, isStandalone: true, selector: "[hlmDialogDescription]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnDialogDescription }], ngImport: i0 });
|
|
142
|
-
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogDescription, decorators: [{
|
|
144
|
-
type: Directive,
|
|
145
|
-
args: [{
|
|
146
|
-
selector: '[hlmDialogDescription]',
|
|
147
|
-
host: {
|
|
148
|
-
'[class]': '_computedClass()',
|
|
149
|
-
},
|
|
150
|
-
hostDirectives: [BrnDialogDescription],
|
|
151
|
-
}]
|
|
152
|
-
}] });
|
|
153
|
-
|
|
154
|
-
class HlmDialogFooter {
|
|
155
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
156
|
-
_computedClass = computed(() => hlm('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
158
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogFooter, isStandalone: true, selector: "hlm-dialog-footer", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
159
|
-
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogFooter, decorators: [{
|
|
161
|
-
type: Component,
|
|
162
|
-
args: [{
|
|
163
|
-
selector: 'hlm-dialog-footer',
|
|
164
|
-
template: ` <ng-content /> `,
|
|
165
|
-
host: {
|
|
166
|
-
'[class]': '_computedClass()',
|
|
167
|
-
},
|
|
168
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
169
|
-
}]
|
|
170
|
-
}] });
|
|
171
|
-
|
|
172
|
-
class HlmDialogHeader {
|
|
173
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
174
|
-
_computedClass = computed(() => hlm('flex flex-col gap-2 text-center sm:text-left', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
175
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
176
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogHeader, isStandalone: true, selector: "hlm-dialog-header", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
177
|
-
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogHeader, decorators: [{
|
|
179
|
-
type: Component,
|
|
180
|
-
args: [{
|
|
181
|
-
selector: 'hlm-dialog-header',
|
|
182
|
-
template: ` <ng-content /> `,
|
|
183
|
-
host: {
|
|
184
|
-
'[class]': '_computedClass()',
|
|
185
|
-
},
|
|
186
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
187
|
-
}]
|
|
188
|
-
}] });
|
|
189
|
-
|
|
190
|
-
class HlmDialogTitle {
|
|
191
|
-
userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
|
|
192
|
-
_computedClass = computed(() => hlm('text-lg font-semibold leading-none', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
|
|
193
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
194
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmDialogTitle, isStandalone: true, selector: "[hlmDialogTitle]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnDialogTitle }], ngImport: i0 });
|
|
195
|
-
}
|
|
196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogTitle, decorators: [{
|
|
197
|
-
type: Directive,
|
|
198
|
-
args: [{
|
|
199
|
-
selector: '[hlmDialogTitle]',
|
|
200
|
-
hostDirectives: [BrnDialogTitle],
|
|
201
|
-
host: {
|
|
202
|
-
'[class]': '_computedClass()',
|
|
203
|
-
},
|
|
204
|
-
}]
|
|
205
|
-
}] });
|
|
206
|
-
|
|
207
|
-
class HlmDialogService {
|
|
208
|
-
_brnDialogService = inject(BrnDialogService);
|
|
209
|
-
open(component, options) {
|
|
210
|
-
const mergedOptions = {
|
|
211
|
-
...DEFAULT_BRN_DIALOG_OPTIONS,
|
|
212
|
-
...(options ?? {}),
|
|
213
|
-
backdropClass: cssClassesToArray(`${hlmDialogOverlayClass} ${options?.backdropClass ?? ''}`),
|
|
214
|
-
context: {
|
|
215
|
-
...(options?.context && typeof options.context === 'object' ? options.context : {}),
|
|
216
|
-
$component: component,
|
|
217
|
-
$dynamicComponentClass: options?.contentClass,
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
return this._brnDialogService.open(HlmDialogContent, undefined, mergedOptions.context, mergedOptions);
|
|
221
|
-
}
|
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogService, providedIn: 'root' });
|
|
224
|
-
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogService, decorators: [{
|
|
226
|
-
type: Injectable,
|
|
227
|
-
args: [{
|
|
228
|
-
providedIn: 'root',
|
|
229
|
-
}]
|
|
230
|
-
}] });
|
|
231
|
-
|
|
232
|
-
/*
|
|
233
|
-
* Public API Surface of dialog
|
|
234
|
-
*/
|
|
235
|
-
const HlmDialogImports = [
|
|
236
|
-
HlmDialog,
|
|
237
|
-
HlmDialogClose,
|
|
238
|
-
HlmDialogContent,
|
|
239
|
-
HlmDialogDescription,
|
|
240
|
-
HlmDialogFooter,
|
|
241
|
-
HlmDialogHeader,
|
|
242
|
-
HlmDialogOverlay,
|
|
243
|
-
HlmDialogTitle,
|
|
244
|
-
];
|
|
245
|
-
class HlmDialogModule {
|
|
246
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
247
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogModule, imports: [HlmDialog,
|
|
248
|
-
HlmDialogClose,
|
|
249
|
-
HlmDialogContent,
|
|
250
|
-
HlmDialogDescription,
|
|
251
|
-
HlmDialogFooter,
|
|
252
|
-
HlmDialogHeader,
|
|
253
|
-
HlmDialogOverlay,
|
|
254
|
-
HlmDialogTitle], exports: [HlmDialog,
|
|
255
|
-
HlmDialogClose,
|
|
256
|
-
HlmDialogContent,
|
|
257
|
-
HlmDialogDescription,
|
|
258
|
-
HlmDialogFooter,
|
|
259
|
-
HlmDialogHeader,
|
|
260
|
-
HlmDialogOverlay,
|
|
261
|
-
HlmDialogTitle] });
|
|
262
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogModule, imports: [HlmDialog,
|
|
263
|
-
HlmDialogContent] });
|
|
264
|
-
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmDialogModule, decorators: [{
|
|
266
|
-
type: NgModule,
|
|
267
|
-
args: [{
|
|
268
|
-
imports: [...HlmDialogImports],
|
|
269
|
-
exports: [...HlmDialogImports],
|
|
270
|
-
}]
|
|
271
|
-
}] });
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Generated bundle index. Do not edit.
|
|
275
|
-
*/
|
|
276
|
-
|
|
277
|
-
export { HlmDialog, HlmDialogClose, HlmDialogContent, HlmDialogDescription, HlmDialogFooter, HlmDialogHeader, HlmDialogImports, HlmDialogModule, HlmDialogOverlay, HlmDialogService, HlmDialogTitle, hlmDialogOverlayClass };
|
|
278
|
-
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.mjs","sources":["../../../projects/dialog/src/lib/dialog-overlay.ts","../../../projects/dialog/src/lib/dialog.ts","../../../projects/dialog/src/lib/dialog-close.ts","../../../projects/dialog/src/lib/dialog-content.ts","../../../projects/dialog/src/lib/dialog-description.ts","../../../projects/dialog/src/lib/dialog-footer.ts","../../../projects/dialog/src/lib/dialog-header.ts","../../../projects/dialog/src/lib/dialog-title.ts","../../../projects/dialog/src/lib/dialog.service.ts","../../../projects/dialog/src/public-api.ts","../../../projects/dialog/src/dialog.ts"],"sourcesContent":["import { Directive, computed, effect, input, untracked } from '@angular/core';\nimport { injectCustomClassSettable } from '@spartan-ng/brain/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\nexport const hlmDialogOverlayClass =\n 'tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:bg-black/50';\n\n@Directive({\n selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',\n})\nexport class HlmDialogOverlay {\n private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });\n\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()));\n\n constructor() {\n effect(() => {\n const newClass = this._computedClass();\n untracked(() => this._classSettable?.setClassToCustomElement(newClass));\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, forwardRef, ViewEncapsulation } from '@angular/core';\nimport { BrnDialog, BrnDialogOverlay, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';\nimport { HlmDialogOverlay } from './dialog-overlay';\n\n@Component({\n selector: 'hlm-dialog',\n imports: [BrnDialogOverlay, HlmDialogOverlay],\n providers: [\n {\n provide: BrnDialog,\n useExisting: forwardRef(() => HlmDialog),\n },\n provideBrnDialogDefaultOptions({\n // add custom options here\n }),\n ],\n template: `\n <brn-dialog-overlay hlm />\n <ng-content />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'hlmDialog',\n})\nexport class HlmDialog extends BrnDialog {}\n","import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmDialogClose],[brnDialogClose][hlm]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmDialogClose {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:ring-offset-background tw:focus:ring-ring tw:data-[state=open]:bg-accent tw:data-[state=open]:text-muted-foreground tw:rounded-xs tw:absolute tw:right-4 tw:top-4 tw:flex tw:items-center tw:justify-center tw:opacity-70 tw:transition-opacity tw:hover:opacity-100 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-offset-2 tw:disabled:pointer-events-none tw:[&_ng-icon]:shrink-0',\n this.userClass(),\n ),\n );\n}\n","import { NgComponentOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideX } from '@ng-icons/lucide';\nimport { BrnDialogClose, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';\nimport { HlmIcon } from '@egose/shadcn-theme-ng/icon';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\nimport { HlmDialogClose } from './dialog-close';\n\n@Component({\n selector: 'hlm-dialog-content',\n imports: [NgComponentOutlet, BrnDialogClose, HlmDialogClose, NgIcon, HlmIcon],\n providers: [provideIcons({ lucideX })],\n host: {\n '[class]': '_computedClass()',\n '[attr.data-state]': 'state()',\n },\n template: `\n @if (component) {\n <ng-container [ngComponentOutlet]=\"component\" />\n } @else {\n <ng-content />\n }\n\n <button brnDialogClose hlm>\n <span class=\"tw:sr-only\">Close</span>\n <ng-icon hlm size=\"sm\" name=\"lucideX\" />\n </button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class HlmDialogContent {\n private readonly _dialogRef = inject(BrnDialogRef);\n private readonly _dialogContext = injectBrnDialogContext({ optional: true });\n\n public readonly state = computed(() => this._dialogRef?.state() ?? 'closed');\n\n public readonly component = this._dialogContext?.$component;\n private readonly _dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;\n\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:bg-background tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:relative tw:z-50 tw:mx-auto tw:grid tw:w-full tw:max-w-[calc(100%-2rem)] tw:gap-4 tw:rounded-lg tw:border tw:p-6 tw:shadow-lg tw:data-[state=closed]:duration-200 tw:data-[state=open]:duration-200 tw:sm:mx-0 tw:sm:max-w-lg',\n this.userClass(),\n this._dynamicComponentClass,\n ),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnDialogDescription } from '@spartan-ng/brain/dialog';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmDialogDescription]',\n host: {\n '[class]': '_computedClass()',\n },\n hostDirectives: [BrnDialogDescription],\n})\nexport class HlmDialogDescription {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => hlm('tw:text-muted-foreground tw:text-sm', 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-dialog-footer',\n template: ` <ng-content /> `,\n host: {\n '[class]': '_computedClass()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HlmDialogFooter {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected _computedClass = computed(() =>\n hlm('tw:flex tw:flex-col-reverse tw:gap-2 tw:sm:flex-row tw:sm:justify-end', this.userClass()),\n );\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-dialog-header',\n template: ` <ng-content /> `,\n host: {\n '[class]': '_computedClass()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class HlmDialogHeader {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected _computedClass = computed(() =>\n hlm('tw:flex tw:flex-col tw:gap-2 tw:text-center tw:sm:text-left', this.userClass()),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnDialogTitle } from '@spartan-ng/brain/dialog';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmDialogTitle]',\n hostDirectives: [BrnDialogTitle],\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmDialogTitle {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:text-lg tw:font-semibold tw:leading-none', this.userClass()),\n );\n}\n","import type { ComponentType } from '@angular/cdk/portal';\nimport { Injectable, type TemplateRef, inject } from '@angular/core';\nimport {\n type BrnDialogOptions,\n BrnDialogService,\n DEFAULT_BRN_DIALOG_OPTIONS,\n cssClassesToArray,\n} from '@spartan-ng/brain/dialog';\nimport { HlmDialogContent } from './dialog-content';\nimport { hlmDialogOverlayClass } from './dialog-overlay';\n\nexport type HlmDialogOptions<DialogContext = unknown> = BrnDialogOptions & {\n contentClass?: string;\n context?: DialogContext;\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class HlmDialogService {\n private readonly _brnDialogService = inject(BrnDialogService);\n\n public open(component: ComponentType<unknown> | TemplateRef<unknown>, options?: Partial<HlmDialogOptions>) {\n const mergedOptions = {\n ...DEFAULT_BRN_DIALOG_OPTIONS,\n\n ...(options ?? {}),\n backdropClass: cssClassesToArray(`${hlmDialogOverlayClass} ${options?.backdropClass ?? ''}`),\n context: {\n ...(options?.context && typeof options.context === 'object' ? options.context : {}),\n $component: component,\n $dynamicComponentClass: options?.contentClass,\n },\n };\n\n return this._brnDialogService.open(HlmDialogContent, undefined, mergedOptions.context, mergedOptions);\n }\n}\n","/*\n * Public API Surface of dialog\n */\nimport { NgModule } from '@angular/core';\n\nimport { HlmDialog } from './lib/dialog';\nimport { HlmDialogClose } from './lib/dialog-close';\nimport { HlmDialogContent } from './lib/dialog-content';\nimport { HlmDialogDescription } from './lib/dialog-description';\nimport { HlmDialogFooter } from './lib/dialog-footer';\nimport { HlmDialogHeader } from './lib/dialog-header';\nimport { HlmDialogOverlay } from './lib/dialog-overlay';\nimport { HlmDialogTitle } from './lib/dialog-title';\n\nexport * from './lib/dialog';\nexport * from './lib/dialog-close';\nexport * from './lib/dialog-content';\nexport * from './lib/dialog-description';\nexport * from './lib/dialog-footer';\nexport * from './lib/dialog-header';\nexport * from './lib/dialog-overlay';\nexport * from './lib/dialog-title';\nexport * from './lib/dialog.service';\n\nexport const HlmDialogImports = [\n HlmDialog,\n HlmDialogClose,\n HlmDialogContent,\n HlmDialogDescription,\n HlmDialogFooter,\n HlmDialogHeader,\n HlmDialogOverlay,\n HlmDialogTitle,\n] as const;\n\n@NgModule({\n imports: [...HlmDialogImports],\n exports: [...HlmDialogImports],\n})\nexport class HlmDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAKO,MAAM,qBAAqB,GAChC;MAKW,gBAAgB,CAAA;AACV,IAAA,cAAc,GAAG,yBAAyB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAE3E,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,MAAM,GAAG,CAAC,qBAAqB,EAA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AA,EAAA,CAAA;;2FAYL,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC;AAC9B,oBAAA,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC;AAC/B,iBAAA;;;ACtCD;;AAEG;;;;"}
|
package/dialog/index.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@spartan-ng/brain/dialog';
|
|
2
|
-
import { BrnDialog, BrnDialogOptions } from '@spartan-ng/brain/dialog';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef } from '@angular/core';
|
|
5
|
-
import { ClassValue } from 'clsx';
|
|
6
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
7
|
-
|
|
8
|
-
declare class HlmDialog extends BrnDialog {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialog, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialog, "hlm-dialog", ["hlmDialog"], {}, {}, never, ["*"], true, never>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare class HlmDialogClose {
|
|
14
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
15
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogClose, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogClose, "[hlmDialogClose],[brnDialogClose][hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare class HlmDialogContent {
|
|
21
|
-
private readonly _dialogRef;
|
|
22
|
-
private readonly _dialogContext;
|
|
23
|
-
readonly state: i0.Signal<i1.BrnDialogState>;
|
|
24
|
-
readonly component: any;
|
|
25
|
-
private readonly _dynamicComponentClass;
|
|
26
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
27
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogContent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialogContent, "hlm-dialog-content", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare class HlmDialogDescription {
|
|
33
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
34
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogDescription, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogDescription, "[hlmDialogDescription]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnDialogDescription; inputs: {}; outputs: {}; }]>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class HlmDialogFooter {
|
|
40
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
41
|
-
protected _computedClass: i0.Signal<string>;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogFooter, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialogFooter, "hlm-dialog-footer", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare class HlmDialogHeader {
|
|
47
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
48
|
-
protected _computedClass: i0.Signal<string>;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogHeader, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HlmDialogHeader, "hlm-dialog-header", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
declare const hlmDialogOverlayClass = "tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:bg-black/50";
|
|
54
|
-
declare class HlmDialogOverlay {
|
|
55
|
-
private readonly _classSettable;
|
|
56
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
57
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
58
|
-
constructor();
|
|
59
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogOverlay, never>;
|
|
60
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogOverlay, "[hlmDialogOverlay],brn-dialog-overlay[hlm]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare class HlmDialogTitle {
|
|
64
|
-
readonly userClass: i0.InputSignal<ClassValue>;
|
|
65
|
-
protected readonly _computedClass: i0.Signal<string>;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogTitle, never>;
|
|
67
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDialogTitle, "[hlmDialogTitle]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnDialogTitle; inputs: {}; outputs: {}; }]>;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
type HlmDialogOptions<DialogContext = unknown> = BrnDialogOptions & {
|
|
71
|
-
contentClass?: string;
|
|
72
|
-
context?: DialogContext;
|
|
73
|
-
};
|
|
74
|
-
declare class HlmDialogService {
|
|
75
|
-
private readonly _brnDialogService;
|
|
76
|
-
open(component: ComponentType<unknown> | TemplateRef<unknown>, options?: Partial<HlmDialogOptions>): i1.BrnDialogRef<any>;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogService, never>;
|
|
78
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HlmDialogService>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare const HlmDialogImports: readonly [typeof HlmDialog, typeof HlmDialogClose, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogTitle];
|
|
82
|
-
declare class HlmDialogModule {
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HlmDialogModule, never>;
|
|
84
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmDialogModule, never, [typeof HlmDialog, typeof HlmDialogClose, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogTitle], [typeof HlmDialog, typeof HlmDialogClose, typeof HlmDialogContent, typeof HlmDialogDescription, typeof HlmDialogFooter, typeof HlmDialogHeader, typeof HlmDialogOverlay, typeof HlmDialogTitle]>;
|
|
85
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HlmDialogModule>;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { HlmDialog, HlmDialogClose, HlmDialogContent, HlmDialogDescription, HlmDialogFooter, HlmDialogHeader, HlmDialogImports, HlmDialogModule, HlmDialogOverlay, HlmDialogService, HlmDialogTitle, hlmDialogOverlayClass };
|
|
89
|
-
export type { HlmDialogOptions };
|
package/exports.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"./utils":{"types":"./utils/index.d.ts","default":"./utils/fesm2022/utils.mjs"},"./icon":{"types":"./icon/index.d.ts","default":"./icon/fesm2022/icon.mjs"},"./spinner":{"types":"./spinner/index.d.ts","default":"./spinner/fesm2022/spinner.mjs"},"./badge":{"types":"./badge/index.d.ts","default":"./badge/fesm2022/badge.mjs"},"./input":{"types":"./input/index.d.ts","default":"./input/fesm2022/input.mjs"},"./select":{"types":"./select/index.d.ts","default":"./select/fesm2022/select.mjs"},"./button":{"types":"./button/index.d.ts","default":"./button/fesm2022/button.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./accordion/fesm2022/accordion.mjs"},"./alert":{"types":"./alert/index.d.ts","default":"./alert/fesm2022/alert.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./switch/fesm2022/switch.mjs"},"./label":{"types":"./label/index.d.ts","default":"./label/fesm2022/label.mjs"},"./form-field":{"types":"./form-field/index.d.ts","default":"./form-field/fesm2022/form-field.mjs"},"./form-field-simple":{"types":"./form-field-simple/index.d.ts","default":"./form-field-simple/fesm2022/form-field-simple.mjs"},"./checkbox":{"types":"./checkbox/index.d.ts","default":"./checkbox/fesm2022/checkbox.mjs"},"./popover":{"types":"./popover/index.d.ts","default":"./popover/fesm2022/popover.mjs"},"./calendar":{"types":"./calendar/index.d.ts","default":"./calendar/fesm2022/calendar.mjs"},"./date-picker":{"types":"./date-picker/index.d.ts","default":"./date-picker/fesm2022/date-picker.mjs"},"./dialog":{"types":"./dialog/index.d.ts","default":"./dialog/fesm2022/dialog.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./menu/fesm2022/menu.mjs"},"./radio-group":{"types":"./radio-group/index.d.ts","default":"./radio-group/fesm2022/radio-group.mjs"},"./separator":{"types":"./separator/index.d.ts","default":"./separator/fesm2022/separator.mjs"},"./sheet":{"types":"./sheet/index.d.ts","default":"./sheet/fesm2022/sheet.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./tabs/fesm2022/tabs.mjs"},"./tooltip":{"types":"./tooltip/index.d.ts","default":"./tooltip/fesm2022/tooltip.mjs"},"./form-select":{"types":"./form-select/index.d.ts","default":"./form-select/fesm2022/form-select.mjs"},"./form-text-input":{"types":"./form-text-input/index.d.ts","default":"./form-text-input/fesm2022/form-text-input.mjs"},"./form-textarea":{"types":"./form-textarea/index.d.ts","default":"./form-textarea/fesm2022/form-textarea.mjs"},"./form-date-picker":{"types":"./form-date-picker/index.d.ts","default":"./form-date-picker/fesm2022/form-date-picker.mjs"},"./basic-alert":{"types":"./basic-alert/index.d.ts","default":"./basic-alert/fesm2022/basic-alert.mjs"},"./confirmation-dialog":{"types":"./confirmation-dialog/index.d.ts","default":"./confirmation-dialog/fesm2022/confirmation-dialog.mjs"},"./sonner":{"types":"./sonner/index.d.ts","default":"./sonner/fesm2022/sonner.mjs"},"./autocomplete":{"types":"./autocomplete/index.d.ts","default":"./autocomplete/fesm2022/autocomplete.mjs"},"./searchable-multiselect":{"types":"./searchable-multiselect/index.d.ts","default":"./searchable-multiselect/fesm2022/searchable-multiselect.mjs"},"./form-searchable-multiselect":{"types":"./form-searchable-multiselect/index.d.ts","default":"./form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs"},"./form-checkbox":{"types":"./form-checkbox/index.d.ts","default":"./form-checkbox/fesm2022/form-checkbox.mjs"},"./layout-simple":{"types":"./layout-simple/index.d.ts","default":"./layout-simple/fesm2022/layout-simple.mjs"}}
|
package/form-checkbox/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# FormCheckbox
|
|
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 form-checkbox
|
|
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/form-checkbox
|
|
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.
|