@joster-dev/chaos-control 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/chaos-control.module.mjs +19 -9
- package/esm2022/lib/components/busy/busy.component.mjs +11 -0
- package/esm2022/lib/components/choice/choice.component.mjs +5 -4
- package/esm2022/lib/components/color/color.component.mjs +5 -4
- package/esm2022/lib/components/file/file.component.mjs +8 -4
- package/esm2022/lib/components/icon/icon.component.mjs +117 -0
- package/esm2022/lib/components/icon-stack/icon-stack.component.mjs +29 -0
- package/esm2022/lib/components/index.mjs +5 -2
- package/esm2022/lib/components/number/number.component.mjs +5 -4
- package/esm2022/lib/components/readonly/readonly.component.mjs +3 -3
- package/esm2022/lib/components/select/select.component.mjs +55 -25
- package/esm2022/lib/components/text/text.component.mjs +3 -3
- package/esm2022/lib/directives/busy.directive.mjs +71 -0
- package/esm2022/lib/directives/index.mjs +3 -1
- package/esm2022/lib/directives/item.directive.mjs +3 -1
- package/esm2022/lib/directives/size.directive.mjs +38 -0
- package/esm2022/lib/models/icon-types.const.mjs +33 -0
- package/esm2022/lib/models/icon.type.mjs +2 -0
- package/esm2022/lib/models/index.mjs +3 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/joster-dev-chaos-control.mjs +410 -84
- package/fesm2022/joster-dev-chaos-control.mjs.map +1 -1
- package/lib/chaos-control.module.d.ts +8 -5
- package/lib/components/busy/busy.component.d.ts +5 -0
- package/lib/components/file/file.component.d.ts +2 -1
- package/lib/components/icon/icon.component.d.ts +31 -0
- package/lib/components/icon-stack/icon-stack.component.d.ts +9 -0
- package/lib/components/index.d.ts +4 -1
- package/lib/components/select/select.component.d.ts +12 -7
- package/lib/directives/busy.directive.d.ts +20 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/item.directive.d.ts +1 -0
- package/lib/directives/size.directive.d.ts +12 -0
- package/lib/models/icon-types.const.d.ts +1 -0
- package/lib/models/icon.type.d.ts +2 -0
- package/lib/models/index.d.ts +2 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/src/lib/styles.scss +7 -62
- package/src/lib/atomic.scss +0 -87
- package/src/lib/variables.scss +0 -3
|
@@ -6,18 +6,23 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class SelectComponent extends ItemDirective implements ControlValueAccessor {
|
|
7
7
|
ngControl: NgControl;
|
|
8
8
|
private hostElement;
|
|
9
|
-
|
|
9
|
+
dropGroup: ElementRef<HTMLDivElement>;
|
|
10
|
+
dropup: ElementRef<HTMLDialogElement>;
|
|
11
|
+
dropdown: ElementRef<HTMLDialogElement>;
|
|
12
|
+
dropHeightPx: number;
|
|
13
|
+
get searchTerm(): string;
|
|
10
14
|
set searchTerm(value: string);
|
|
11
15
|
_searchTerm: string;
|
|
12
|
-
get showDropdown(): boolean;
|
|
13
|
-
set showDropdown(value: boolean);
|
|
14
|
-
_showDropdown: boolean;
|
|
15
16
|
isDropdownCloseToBottom: boolean;
|
|
17
|
+
id: string;
|
|
16
18
|
constructor(ngControl: NgControl, hostElement: ElementRef);
|
|
19
|
+
get activeItemValues(): string;
|
|
20
|
+
get isSelectedAll(): boolean;
|
|
17
21
|
onGlobalClick(event: MouseEvent): void;
|
|
18
|
-
|
|
19
|
-
onFocusSearch(): void;
|
|
22
|
+
onClickGroup(): void;
|
|
20
23
|
onClick(item: Item): void;
|
|
24
|
+
onClickSelectAll(): void;
|
|
25
|
+
closeDropdown(): void;
|
|
21
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ self: true; }, null]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "jo-select", never, { "
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "jo-select", never, { "dropHeightPx": { "alias": "dropHeightPx"; "required": false; }; }, {}, never, ["*", "[rightAligned]"], false, never>;
|
|
23
28
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Subject, Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BusyDirective {
|
|
5
|
+
private element;
|
|
6
|
+
private viewContainerRef;
|
|
7
|
+
private renderer;
|
|
8
|
+
asyncEvents?: Subscription | Subscription[] | Promise<any> | Promise<any>[];
|
|
9
|
+
host: HTMLElement;
|
|
10
|
+
insertedNode?: Node;
|
|
11
|
+
endSubscription$: Subject<void>;
|
|
12
|
+
busySubscription?: Subscription;
|
|
13
|
+
constructor(element: ElementRef, viewContainerRef: ViewContainerRef, renderer: Renderer2);
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
private addSpinner;
|
|
17
|
+
private removeSpinner;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BusyDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BusyDirective, "[joBusy]", never, { "asyncEvents": { "alias": "joBusy"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SizeDirective implements OnDestroy {
|
|
5
|
+
get size(): any;
|
|
6
|
+
set size(value: any);
|
|
7
|
+
_size: string;
|
|
8
|
+
sizeChangesSubject: Subject<void>;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SizeDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDirective, "[size]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconTypes: readonly ["circle", "dot", "ring", "square", "squircle", "check", "times", "plus", "minus", "row", "column", "bomb", "flag", "gear", "star", "user", "refresh", "ascend", "descend", "search", "crown", "ogre", "folder", "chevron", "ankh", "sun", "moon", "clear", "amphora", "speech"];
|
package/lib/models/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joster-dev/chaos-control",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/common": "^18.0.0",
|
|
37
37
|
"@angular/core": "^18.0.0",
|
|
38
|
-
"@joster-dev/
|
|
38
|
+
"@joster-dev/style": "^0.1.4"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
package/src/lib/styles.scss
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@joster-dev/style/scss/all.scss";
|
|
3
|
+
@use "@joster-dev/style/scss/variables.scss" as variables;
|
|
2
4
|
|
|
3
5
|
label {
|
|
4
6
|
display: block;
|
|
5
|
-
padding-bottom:
|
|
7
|
+
padding-bottom: map.get(variables.$sizes, "md");
|
|
6
8
|
font-weight: bold;
|
|
7
9
|
|
|
8
10
|
&:empty {
|
|
@@ -20,64 +22,7 @@ ul {
|
|
|
20
22
|
margin: 0;
|
|
21
23
|
padding: 0;
|
|
22
24
|
|
|
23
|
-
>li {
|
|
24
|
-
|
|
25
|
-
}
|
|
25
|
+
// >li {
|
|
26
|
+
// padding-top: map.get($sizes, "sm");
|
|
27
|
+
// }
|
|
26
28
|
}
|
|
27
|
-
|
|
28
|
-
a:not(.jo-ignore),
|
|
29
|
-
button:not(.jo-ignore),
|
|
30
|
-
.button,
|
|
31
|
-
input,
|
|
32
|
-
textarea {
|
|
33
|
-
color: inherit;
|
|
34
|
-
background: transparent;
|
|
35
|
-
border-width: 0.15em;
|
|
36
|
-
border-style: outset;
|
|
37
|
-
border-color: currentColor;
|
|
38
|
-
padding: $md;
|
|
39
|
-
margin: 0;
|
|
40
|
-
font-size: 1em;
|
|
41
|
-
// transition: all 700ms ease;
|
|
42
|
-
line-height: 1em;
|
|
43
|
-
|
|
44
|
-
&:active,
|
|
45
|
-
&.active {
|
|
46
|
-
border-style: inset;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled,
|
|
50
|
-
&.disabled {
|
|
51
|
-
cursor: not-allowed;
|
|
52
|
-
border-style: solid;
|
|
53
|
-
box-shadow: none;
|
|
54
|
-
opacity: 0.5;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.invalid {
|
|
58
|
-
// animation: 3s ease 0s infinite invalid-border;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:focus {
|
|
62
|
-
// outline: 0.15em solid transparent;
|
|
63
|
-
// box-shadow: 0 0 0.1em 0 currentColor;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
a,
|
|
68
|
-
button,
|
|
69
|
-
.button {
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes invalid-border {
|
|
74
|
-
|
|
75
|
-
0%,
|
|
76
|
-
100% {
|
|
77
|
-
border-style: inset;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
50% {
|
|
81
|
-
border-style: outset;
|
|
82
|
-
}
|
|
83
|
-
}
|
package/src/lib/atomic.scss
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
@import "./variables.scss";
|
|
2
|
-
|
|
3
|
-
.d-flex {
|
|
4
|
-
display: flex;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.align-items-start {
|
|
8
|
-
align-items: flex-start;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.align-items-center {
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.align-items-stretch {
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.justify-content-between {
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.flex-wrap {
|
|
24
|
-
flex-wrap: wrap;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.flex-column {
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.flex-1 {
|
|
32
|
-
flex: 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.flex-2 {
|
|
36
|
-
flex: 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.flex-3 {
|
|
40
|
-
flex: 3;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.align-self-center {
|
|
44
|
-
align-self: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.margin-right-1 {
|
|
48
|
-
margin-right: $md;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.margin-right-2 {
|
|
52
|
-
margin-right: $lg;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.margin-left-1 {
|
|
56
|
-
margin-left: $md;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.margin-left-2 {
|
|
60
|
-
margin-left: $lg;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.border-radius-right {
|
|
64
|
-
border-top-right-radius: $md;
|
|
65
|
-
border-bottom-right-radius: $md;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.border-radius-left {
|
|
69
|
-
border-top-left-radius: $md;
|
|
70
|
-
border-bottom-left-radius: $md;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.white-space-nowrap {
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.text-right {
|
|
78
|
-
text-align: right;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.text-left {
|
|
82
|
-
text-align: left;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.text-center {
|
|
86
|
-
text-align: center;
|
|
87
|
-
}
|
package/src/lib/variables.scss
DELETED