@spartan-ng/brain 0.0.1-alpha.598 → 0.0.1-alpha.600
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/command/index.d.ts +13 -7
- package/fesm2022/spartan-ng-brain-command.mjs +32 -14
- package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-popover.mjs +19 -5
- package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-tabs.mjs +6 -6
- package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -1
- package/hlm-tailwind-preset.css +60 -0
- package/package.json +5 -5
- package/popover/index.d.ts +13 -3
- package/tabs/index.d.ts +5 -4
package/hlm-tailwind-preset.css
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
3
3
|
|
|
4
4
|
@custom-variant dark (&:is(.dark *));
|
|
5
5
|
|
|
6
|
+
@custom-variant data-open {
|
|
7
|
+
&:where([data-state='open']),
|
|
8
|
+
&:where([data-open]:not([data-open='false'])) {
|
|
9
|
+
@slot;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@custom-variant data-closed {
|
|
14
|
+
&:where([data-state='closed']),
|
|
15
|
+
&:where([data-closed]:not([data-closed='false'])) {
|
|
16
|
+
@slot;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@custom-variant data-checked {
|
|
21
|
+
&:where([data-state='checked']),
|
|
22
|
+
&:where([data-checked]:not([data-checked='false'])) {
|
|
23
|
+
@slot;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@custom-variant data-unchecked {
|
|
28
|
+
&:where([data-state='unchecked']),
|
|
29
|
+
&:where([data-unchecked]:not([data-unchecked='false'])) {
|
|
30
|
+
@slot;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@custom-variant data-selected {
|
|
35
|
+
&:where([data-selected='true']) {
|
|
36
|
+
@slot;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@custom-variant data-disabled {
|
|
41
|
+
&:where([data-disabled='true']),
|
|
42
|
+
&:where([data-disabled]:not([data-disabled='false'])) {
|
|
43
|
+
@slot;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@custom-variant data-active {
|
|
48
|
+
&:where([data-state='active']),
|
|
49
|
+
&:where([data-active]:not([data-active='false'])) {
|
|
50
|
+
@slot;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@custom-variant data-horizontal {
|
|
55
|
+
&:where([data-orientation='horizontal']) {
|
|
56
|
+
@slot;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@custom-variant data-vertical {
|
|
61
|
+
&:where([data-orientation='vertical']) {
|
|
62
|
+
@slot;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
6
66
|
@theme inline {
|
|
7
67
|
--color-background: var(--background);
|
|
8
68
|
--color-foreground: var(--foreground);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spartan-ng/brain",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.600",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
"./hlm-tailwind-preset": {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"types": "./index.d.ts",
|
|
15
15
|
"default": "./fesm2022/spartan-ng-brain.mjs"
|
|
16
16
|
},
|
|
17
|
-
"./alert-dialog": {
|
|
18
|
-
"types": "./alert-dialog/index.d.ts",
|
|
19
|
-
"default": "./fesm2022/spartan-ng-brain-alert-dialog.mjs"
|
|
20
|
-
},
|
|
21
17
|
"./accordion": {
|
|
22
18
|
"types": "./accordion/index.d.ts",
|
|
23
19
|
"default": "./fesm2022/spartan-ng-brain-accordion.mjs"
|
|
24
20
|
},
|
|
21
|
+
"./alert-dialog": {
|
|
22
|
+
"types": "./alert-dialog/index.d.ts",
|
|
23
|
+
"default": "./fesm2022/spartan-ng-brain-alert-dialog.mjs"
|
|
24
|
+
},
|
|
25
25
|
"./autocomplete": {
|
|
26
26
|
"types": "./autocomplete/index.d.ts",
|
|
27
27
|
"default": "./fesm2022/spartan-ng-brain-autocomplete.mjs"
|
package/popover/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { ValueProvider } from '@angular/core';
|
|
2
3
|
import { NumberInput } from '@angular/cdk/coercion';
|
|
3
4
|
import { BrnDialogDefaultOptions, BrnDialog, BrnDialogContent, BrnDialogTrigger } from '@spartan-ng/brain/dialog';
|
|
4
5
|
|
|
5
|
-
declare const BRN_POPOVER_DIALOG_DEFAULT_OPTIONS: Partial<BrnDialogDefaultOptions>;
|
|
6
6
|
type BrnPopoverAlign = 'start' | 'center' | 'end';
|
|
7
|
+
interface BrnPopoverConfig {
|
|
8
|
+
align: BrnPopoverAlign;
|
|
9
|
+
sideOffset: number;
|
|
10
|
+
offsetX: number;
|
|
11
|
+
}
|
|
12
|
+
declare function provideBrnPopoverConfig(config: Partial<BrnPopoverConfig>): ValueProvider;
|
|
13
|
+
declare function injectBrnPopoverConfig(): BrnPopoverConfig;
|
|
14
|
+
|
|
15
|
+
declare const BRN_POPOVER_DIALOG_DEFAULT_OPTIONS: Partial<BrnDialogDefaultOptions>;
|
|
7
16
|
declare class BrnPopover extends BrnDialog {
|
|
17
|
+
private readonly _config;
|
|
8
18
|
readonly align: i0.InputSignal<BrnPopoverAlign>;
|
|
9
19
|
readonly sideOffset: i0.InputSignalWithTransform<number, NumberInput>;
|
|
10
20
|
readonly offsetX: i0.InputSignalWithTransform<number, NumberInput>;
|
|
@@ -31,5 +41,5 @@ declare class BrnPopoverTrigger extends BrnDialogTrigger {
|
|
|
31
41
|
|
|
32
42
|
declare const BrnPopoverImports: readonly [typeof BrnPopover, typeof BrnPopoverTrigger, typeof BrnPopoverContent];
|
|
33
43
|
|
|
34
|
-
export { BRN_POPOVER_DIALOG_DEFAULT_OPTIONS, BrnPopover, BrnPopoverContent, BrnPopoverImports, BrnPopoverTrigger };
|
|
35
|
-
export type { BrnPopoverAlign };
|
|
44
|
+
export { BRN_POPOVER_DIALOG_DEFAULT_OPTIONS, BrnPopover, BrnPopoverContent, BrnPopoverImports, BrnPopoverTrigger, injectBrnPopoverConfig, provideBrnPopoverConfig };
|
|
45
|
+
export type { BrnPopoverAlign, BrnPopoverConfig };
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
2
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { OnDestroy, ElementRef, AfterContentInit, AfterContentChecked, AfterViewInit, Signal, ChangeDetectorRef } from '@angular/core';
|
|
3
5
|
import * as _spartan_ng_brain_tabs from '@spartan-ng/brain/tabs';
|
|
4
6
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
7
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
6
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
7
8
|
import { Observable, Subject } from 'rxjs';
|
|
8
9
|
|
|
9
10
|
declare class BrnTabsContent implements OnDestroy {
|
|
@@ -47,12 +48,12 @@ type TabEntry = {
|
|
|
47
48
|
content: BrnTabsContent;
|
|
48
49
|
};
|
|
49
50
|
declare class BrnTabs {
|
|
51
|
+
private readonly _dir;
|
|
50
52
|
readonly orientation: _angular_core.InputSignal<BrnTabsOrientation>;
|
|
51
53
|
/** internal **/
|
|
52
54
|
$orientation: _angular_core.InputSignal<BrnTabsOrientation>;
|
|
53
|
-
readonly direction: _angular_core.InputSignal<BrnTabsDirection>;
|
|
54
55
|
/** internal **/
|
|
55
|
-
|
|
56
|
+
readonly direction: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
56
57
|
readonly activeTab: _angular_core.ModelSignal<string | undefined>;
|
|
57
58
|
/** internal **/
|
|
58
59
|
$activeTab: _angular_core.Signal<string | undefined>;
|
|
@@ -72,7 +73,7 @@ declare class BrnTabs {
|
|
|
72
73
|
emitTabActivated(key: string): void;
|
|
73
74
|
setActiveTab(key: string): void;
|
|
74
75
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnTabs, never>;
|
|
75
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnTabs, "[brnTabs]", ["brnTabs"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "
|
|
76
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnTabs, "[brnTabs]", ["brnTabs"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activeTab": { "alias": "brnTabs"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; }, { "activeTab": "brnTabsChange"; "tabActivated": "tabActivated"; }, never, never, true, never>;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
declare class BrnTabsList implements AfterContentInit {
|