@egose/shadcn-theme-ng-tw 0.0.14
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 +2 -0
- package/accordion/README.md +64 -0
- package/accordion/fesm2022/accordion.mjs +155 -0
- package/accordion/fesm2022/accordion.mjs.map +1 -0
- package/accordion/index.d.ts +49 -0
- package/alert/README.md +64 -0
- package/alert/fesm2022/alert.mjs +189 -0
- package/alert/fesm2022/alert.mjs.map +1 -0
- package/alert/index.d.ts +49 -0
- package/autocomplete/README.md +64 -0
- package/autocomplete/fesm2022/autocomplete.mjs +543 -0
- package/autocomplete/fesm2022/autocomplete.mjs.map +1 -0
- package/autocomplete/index.d.ts +162 -0
- package/badge/README.md +64 -0
- package/badge/fesm2022/badge.mjs +137 -0
- package/badge/fesm2022/badge.mjs.map +1 -0
- package/badge/index.d.ts +33 -0
- package/basic-alert/README.md +64 -0
- package/basic-alert/fesm2022/basic-alert.mjs +103 -0
- package/basic-alert/fesm2022/basic-alert.mjs.map +1 -0
- package/basic-alert/index.d.ts +14 -0
- package/button/README.md +64 -0
- package/button/fesm2022/button.mjs +282 -0
- package/button/fesm2022/button.mjs.map +1 -0
- package/button/index.d.ts +52 -0
- package/calendar/README.md +64 -0
- package/calendar/fesm2022/calendar.mjs +637 -0
- package/calendar/fesm2022/calendar.mjs.map +1 -0
- package/calendar/index.d.ts +111 -0
- package/confirmation-dialog/README.md +64 -0
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +93 -0
- package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -0
- package/confirmation-dialog/index.d.ts +24 -0
- package/date-picker/README.md +64 -0
- package/date-picker/fesm2022/date-picker.mjs +599 -0
- package/date-picker/fesm2022/date-picker.mjs.map +1 -0
- package/date-picker/index.d.ts +227 -0
- package/dialog/README.md +64 -0
- package/dialog/fesm2022/dialog.mjs +278 -0
- package/dialog/fesm2022/dialog.mjs.map +1 -0
- package/dialog/index.d.ts +89 -0
- package/exports.json +1 -0
- package/form-date-picker/README.md +64 -0
- package/form-date-picker/fesm2022/form-date-picker.mjs +146 -0
- package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -0
- package/form-date-picker/index.d.ts +32 -0
- package/form-field/README.md +64 -0
- package/form-field/fesm2022/form-field.mjs +112 -0
- package/form-field/fesm2022/form-field.mjs.map +1 -0
- package/form-field/index.d.ts +37 -0
- package/form-searchable-multiselect/README.md +64 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +124 -0
- package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +1 -0
- package/form-searchable-multiselect/index.d.ts +28 -0
- package/form-select/README.md +64 -0
- package/form-select/fesm2022/form-select.mjs +165 -0
- package/form-select/fesm2022/form-select.mjs.map +1 -0
- package/form-select/index.d.ts +33 -0
- package/form-text-input/README.md +64 -0
- package/form-text-input/fesm2022/form-text-input.mjs +197 -0
- package/form-text-input/fesm2022/form-text-input.mjs.map +1 -0
- package/form-text-input/index.d.ts +47 -0
- package/form-textarea/README.md +64 -0
- package/form-textarea/fesm2022/form-textarea.mjs +156 -0
- package/form-textarea/fesm2022/form-textarea.mjs.map +1 -0
- package/form-textarea/index.d.ts +33 -0
- package/icon/README.md +64 -0
- package/icon/fesm2022/icon.mjs +71 -0
- package/icon/fesm2022/icon.mjs.map +1 -0
- package/icon/index.d.ts +27 -0
- package/input/README.md +64 -0
- package/input/fesm2022/input.mjs +97 -0
- package/input/fesm2022/input.mjs.map +1 -0
- package/input/index.d.ts +41 -0
- package/label/README.md +64 -0
- package/label/fesm2022/label.mjs +51 -0
- package/label/fesm2022/label.mjs.map +1 -0
- package/label/index.d.ts +19 -0
- package/package.json +139 -0
- package/popover/README.md +64 -0
- package/popover/fesm2022/popover.mjs +69 -0
- package/popover/fesm2022/popover.mjs.map +1 -0
- package/popover/index.d.ts +30 -0
- package/radio-group/README.md +64 -0
- package/radio-group/fesm2022/radio-group.mjs +170 -0
- package/radio-group/fesm2022/radio-group.mjs.map +1 -0
- package/radio-group/index.d.ts +63 -0
- package/searchable-multiselect/README.md +64 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +221 -0
- package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +1 -0
- package/searchable-multiselect/index.d.ts +50 -0
- package/select/README.md +64 -0
- package/select/fesm2022/select.mjs +281 -0
- package/select/fesm2022/select.mjs.map +1 -0
- package/select/index.d.ts +92 -0
- package/separator/README.md +64 -0
- package/separator/fesm2022/separator.mjs +46 -0
- package/separator/fesm2022/separator.mjs.map +1 -0
- package/separator/index.d.ts +19 -0
- package/sonner/README.md +64 -0
- package/sonner/fesm2022/sonner.mjs +110 -0
- package/sonner/fesm2022/sonner.mjs.map +1 -0
- package/sonner/index.d.ts +32 -0
- package/spinner/README.md +64 -0
- package/spinner/fesm2022/spinner.mjs +67 -0
- package/spinner/fesm2022/spinner.mjs.map +1 -0
- package/spinner/index.d.ts +25 -0
- package/switch/README.md +64 -0
- package/switch/fesm2022/switch.mjs +139 -0
- package/switch/fesm2022/switch.mjs.map +1 -0
- package/switch/index.d.ts +56 -0
- package/tabs/README.md +64 -0
- package/tabs/fesm2022/tabs.mjs +258 -0
- package/tabs/fesm2022/tabs.mjs.map +1 -0
- package/tabs/index.d.ts +71 -0
- package/tooltip/README.md +64 -0
- package/tooltip/fesm2022/tooltip.mjs +93 -0
- package/tooltip/fesm2022/tooltip.mjs.map +1 -0
- package/tooltip/index.d.ts +21 -0
- package/utils/README.md +64 -0
- package/utils/fesm2022/utils.mjs +17 -0
- package/utils/fesm2022/utils.mjs.map +1 -0
- package/utils/index.d.ts +5 -0
package/tabs/index.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import * as i1 from '@spartan-ng/brain/tabs';
|
|
5
|
+
import { BrnTabsPaginatedList, BrnTabsTrigger, BrnPaginatedTabHeaderItem } from '@spartan-ng/brain/tabs';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
|
|
9
|
+
declare class HlmTabs {
|
|
10
|
+
readonly tab: _angular_core.InputSignal<string>;
|
|
11
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
12
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabs, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmTabs, "hlm-tabs", never, { "tab": { "alias": "tab"; "required": true; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnTabs; inputs: { "orientation": "orientation"; "direction": "direction"; "activationMode": "activationMode"; "brnTabs": "tab"; }; outputs: { "tabActivated": "tabActivated"; }; }]>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class HlmTabsContent {
|
|
18
|
+
readonly contentFor: _angular_core.InputSignal<string>;
|
|
19
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
20
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabsContent, never>;
|
|
22
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmTabsContent, "[hlmTabsContent]", never, { "contentFor": { "alias": "hlmTabsContent"; "required": true; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnTabsContent; inputs: { "brnTabsContent": "hlmTabsContent"; }; outputs: {}; }]>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const listVariants: (props?: ({
|
|
26
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
27
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
28
|
+
declare class HlmTabsList {
|
|
29
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | null | undefined>;
|
|
30
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
31
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabsList, never>;
|
|
33
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmTabsList, "hlm-tabs-list", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BrnTabsList; inputs: {}; outputs: {}; }]>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class HlmTabsPaginatedList extends BrnTabsPaginatedList {
|
|
37
|
+
readonly items: _angular_core.Signal<readonly BrnTabsTrigger[]>;
|
|
38
|
+
/** Explicitly annotating type to avoid non-portable inferred type */
|
|
39
|
+
readonly itemsChanges: Observable<ReadonlyArray<BrnPaginatedTabHeaderItem>>;
|
|
40
|
+
readonly tabListContainer: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
41
|
+
readonly tabList: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
42
|
+
readonly tabListInner: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
43
|
+
readonly nextPaginator: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
44
|
+
readonly previousPaginator: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
45
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
46
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
47
|
+
readonly tabListClass: _angular_core.InputSignal<ClassValue>;
|
|
48
|
+
protected readonly _tabListClass: _angular_core.Signal<string>;
|
|
49
|
+
readonly paginationButtonClass: _angular_core.InputSignal<ClassValue>;
|
|
50
|
+
protected readonly _paginationButtonClass: _angular_core.Signal<string>;
|
|
51
|
+
protected _itemSelected(event: KeyboardEvent): void;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabsPaginatedList, never>;
|
|
53
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmTabsPaginatedList, "hlm-paginated-tabs-list", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "tabListClass": { "alias": "tabListClass"; "required": false; "isSignal": true; }; "paginationButtonClass": { "alias": "paginationButtonClass"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class HlmTabsTrigger {
|
|
57
|
+
readonly triggerFor: _angular_core.InputSignal<string>;
|
|
58
|
+
readonly userClass: _angular_core.InputSignal<ClassValue>;
|
|
59
|
+
protected readonly _computedClass: _angular_core.Signal<string>;
|
|
60
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabsTrigger, never>;
|
|
61
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmTabsTrigger, "[hlmTabsTrigger]", never, { "triggerFor": { "alias": "hlmTabsTrigger"; "required": true; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnTabsTrigger; inputs: { "brnTabsTrigger": "hlmTabsTrigger"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare const HlmTabsImports: readonly [typeof HlmTabs, typeof HlmTabsList, typeof HlmTabsTrigger, typeof HlmTabsContent, typeof HlmTabsPaginatedList];
|
|
65
|
+
declare class HlmTabsModule {
|
|
66
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmTabsModule, never>;
|
|
67
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmTabsModule, never, [typeof HlmTabs, typeof HlmTabsList, typeof HlmTabsTrigger, typeof HlmTabsContent, typeof HlmTabsPaginatedList], [typeof HlmTabs, typeof HlmTabsList, typeof HlmTabsTrigger, typeof HlmTabsContent, typeof HlmTabsPaginatedList]>;
|
|
68
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmTabsModule>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { HlmTabs, HlmTabsContent, HlmTabsImports, HlmTabsList, HlmTabsModule, HlmTabsPaginatedList, HlmTabsTrigger, listVariants };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Tooltip
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build tooltip
|
|
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/tooltip
|
|
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.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@spartan-ng/brain/tooltip';
|
|
4
|
+
import { BrnTooltip, provideBrnTooltipDefaultOptions, BrnTooltipTrigger } from '@spartan-ng/brain/tooltip';
|
|
5
|
+
|
|
6
|
+
class HlmTooltip {
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltip, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: HlmTooltip, isStandalone: true, selector: "hlm-tooltip", host: { properties: { "style": "{display: \"contents\"}" } }, hostDirectives: [{ directive: i1.BrnTooltip }], ngImport: i0, template: ` <ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltip, decorators: [{
|
|
11
|
+
type: Component,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'hlm-tooltip',
|
|
14
|
+
encapsulation: ViewEncapsulation.None,
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
host: {
|
|
17
|
+
'[style]': '{display: "contents"}',
|
|
18
|
+
},
|
|
19
|
+
hostDirectives: [BrnTooltip],
|
|
20
|
+
template: ` <ng-content /> `,
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
|
|
24
|
+
const DEFAULT_TOOLTIP_CONTENT_CLASSES = 'tw:bg-primary tw:text-primary-foreground tw:animate-in tw:fade-in-0 tw:zoom-in-95 tw:z-50 tw:w-fit tw:rounded-md tw:px-3 tw:py-1.5 tw:text-xs tw:text-balance ' +
|
|
25
|
+
'tw:data-[state=open]:animate-in ' +
|
|
26
|
+
'tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=closed]:zoom-out-95 ' +
|
|
27
|
+
'tw:data-[side=below]:slide-in-from-top-2 tw:data-[side=above]:slide-in-from-bottom-2 ' +
|
|
28
|
+
'tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 ';
|
|
29
|
+
class HlmTooltipTrigger {
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.1", type: HlmTooltipTrigger, isStandalone: true, selector: "[hlmTooltipTrigger]", providers: [
|
|
32
|
+
provideBrnTooltipDefaultOptions({
|
|
33
|
+
showDelay: 150,
|
|
34
|
+
hideDelay: 300,
|
|
35
|
+
exitAnimationDuration: 150,
|
|
36
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
37
|
+
}),
|
|
38
|
+
], hostDirectives: [{ directive: i1.BrnTooltipTrigger, inputs: ["brnTooltipDisabled", "hlmTooltipDisabled", "brnTooltipTrigger", "hlmTooltipTrigger", "aria-describedby", "aria-describedby", "position", "position", "positionAtOrigin", "positionAtOrigin", "hideDelay", "hideDelay", "showDelay", "showDelay", "exitAnimationDuration", "exitAnimationDuration", "touchGestures", "touchGestures"] }], ngImport: i0 });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipTrigger, decorators: [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{
|
|
43
|
+
selector: '[hlmTooltipTrigger]',
|
|
44
|
+
providers: [
|
|
45
|
+
provideBrnTooltipDefaultOptions({
|
|
46
|
+
showDelay: 150,
|
|
47
|
+
hideDelay: 300,
|
|
48
|
+
exitAnimationDuration: 150,
|
|
49
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
50
|
+
}),
|
|
51
|
+
],
|
|
52
|
+
hostDirectives: [
|
|
53
|
+
{
|
|
54
|
+
directive: BrnTooltipTrigger,
|
|
55
|
+
inputs: [
|
|
56
|
+
'brnTooltipDisabled: hlmTooltipDisabled',
|
|
57
|
+
'brnTooltipTrigger: hlmTooltipTrigger',
|
|
58
|
+
'aria-describedby',
|
|
59
|
+
'position',
|
|
60
|
+
'positionAtOrigin',
|
|
61
|
+
'hideDelay',
|
|
62
|
+
'showDelay',
|
|
63
|
+
'exitAnimationDuration',
|
|
64
|
+
'touchGestures',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
}]
|
|
69
|
+
}] });
|
|
70
|
+
|
|
71
|
+
/*
|
|
72
|
+
* Public API Surface of tooltip
|
|
73
|
+
*/
|
|
74
|
+
const HlmTooltipImports = [HlmTooltip, HlmTooltipTrigger];
|
|
75
|
+
class HlmTooltipModule {
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
77
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipModule, imports: [HlmTooltip, HlmTooltipTrigger], exports: [HlmTooltip, HlmTooltipTrigger] });
|
|
78
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipModule });
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmTooltipModule, decorators: [{
|
|
81
|
+
type: NgModule,
|
|
82
|
+
args: [{
|
|
83
|
+
imports: [...HlmTooltipImports],
|
|
84
|
+
exports: [...HlmTooltipImports],
|
|
85
|
+
}]
|
|
86
|
+
}] });
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Generated bundle index. Do not edit.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
export { HlmTooltip, HlmTooltipImports, HlmTooltipModule, HlmTooltipTrigger };
|
|
93
|
+
//# sourceMappingURL=tooltip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.mjs","sources":["../../../projects/tooltip/src/lib/tooltip.ts","../../../projects/tooltip/src/lib/tooltip-trigger.ts","../../../projects/tooltip/src/public-api.ts","../../../projects/tooltip/src/tooltip.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { BrnTooltip } from '@spartan-ng/brain/tooltip';\n\n@Component({\n selector: 'hlm-tooltip',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style]': '{display: \"contents\"}',\n },\n hostDirectives: [BrnTooltip],\n template: ` <ng-content /> `,\n})\nexport class HlmTooltip {}\n","import { Directive } from '@angular/core';\nimport { BrnTooltipTrigger, provideBrnTooltipDefaultOptions } from '@spartan-ng/brain/tooltip';\n\nconst DEFAULT_TOOLTIP_CONTENT_CLASSES =\n 'tw:bg-primary tw:text-primary-foreground tw:animate-in tw:fade-in-0 tw:zoom-in-95 tw:z-50 tw:w-fit tw:rounded-md tw:px-3 tw:py-1.5 tw:text-xs tw:text-balance ' +\n 'tw:data-[state=open]:animate-in ' +\n 'tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=closed]:zoom-out-95 ' +\n 'tw:data-[side=below]:slide-in-from-top-2 tw:data-[side=above]:slide-in-from-bottom-2 ' +\n 'tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 ';\n\n@Directive({\n selector: '[hlmTooltipTrigger]',\n providers: [\n provideBrnTooltipDefaultOptions({\n showDelay: 150,\n hideDelay: 300,\n exitAnimationDuration: 150,\n tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,\n }),\n ],\n hostDirectives: [\n {\n directive: BrnTooltipTrigger,\n inputs: [\n 'brnTooltipDisabled: hlmTooltipDisabled',\n 'brnTooltipTrigger: hlmTooltipTrigger',\n 'aria-describedby',\n 'position',\n 'positionAtOrigin',\n 'hideDelay',\n 'showDelay',\n 'exitAnimationDuration',\n 'touchGestures',\n ],\n },\n ],\n})\nexport class HlmTooltipTrigger {}\n","/*\n * Public API Surface of tooltip\n */\n\nimport { NgModule } from '@angular/core';\nimport { HlmTooltip } from './lib/tooltip';\nimport { HlmTooltipTrigger } from './lib/tooltip-trigger';\n\nexport * from './lib/tooltip';\nexport * from './lib/tooltip-trigger';\n\nexport const HlmTooltipImports = [HlmTooltip, HlmTooltipTrigger] as const;\n\n@NgModule({\n imports: [...HlmTooltipImports],\n exports: [...HlmTooltipImports],\n})\nexport class HlmTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAaa,UAAU,CAAA;uGAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EA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AA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YANK,UAAU,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAA7B,UAAU,EAAE,iBAAiB,CAAA,EAAA,CAAA;wGAMlD,gBAAgB,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC;AAC/B,oBAAA,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC;AAChC,iBAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@spartan-ng/brain/tooltip';
|
|
3
|
+
|
|
4
|
+
declare class HlmTooltip {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmTooltip, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HlmTooltip, "hlm-tooltip", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.BrnTooltip; inputs: {}; outputs: {}; }]>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class HlmTooltipTrigger {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmTooltipTrigger, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HlmTooltipTrigger, "[hlmTooltipTrigger]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnTooltipTrigger; inputs: { "brnTooltipDisabled": "hlmTooltipDisabled"; "brnTooltipTrigger": "hlmTooltipTrigger"; "aria-describedby": "aria-describedby"; "position": "position"; "positionAtOrigin": "positionAtOrigin"; "hideDelay": "hideDelay"; "showDelay": "showDelay"; "exitAnimationDuration": "exitAnimationDuration"; "touchGestures": "touchGestures"; }; outputs: {}; }]>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const HlmTooltipImports: readonly [typeof HlmTooltip, typeof HlmTooltipTrigger];
|
|
15
|
+
declare class HlmTooltipModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HlmTooltipModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HlmTooltipModule, never, [typeof HlmTooltip, typeof HlmTooltipTrigger], [typeof HlmTooltip, typeof HlmTooltipTrigger]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HlmTooltipModule>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { HlmTooltip, HlmTooltipImports, HlmTooltipModule, HlmTooltipTrigger };
|
package/utils/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Utils
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build utils
|
|
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/utils
|
|
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.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
function hlm(...inputs) {
|
|
5
|
+
return twMerge(clsx(inputs));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Public API Surface of utils
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Generated bundle index. Do not edit.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export { hlm };
|
|
17
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../../projects/utils/src/lib/utils.ts","../../../projects/utils/src/public-api.ts","../../../projects/utils/src/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function hlm(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","/*\n * Public API Surface of utils\n */\n\nexport * from './lib/utils';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGM,SAAU,GAAG,CAAC,GAAG,MAAoB,EAAA;AACzC,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B;;ACLA;;AAEG;;ACFH;;AAEG;;;;"}
|