@joster-dev/chaos-control 0.1.2 → 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 +2 -2
- package/esm2022/lib/components/select/select.component.mjs +5 -4
- package/esm2022/lib/components/text/text.component.mjs +2 -2
- package/esm2022/lib/directives/busy.directive.mjs +71 -0
- package/esm2022/lib/directives/index.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 +408 -114
- 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/directives/busy.directive.d.ts +20 -0
- package/lib/directives/index.d.ts +2 -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 -3
- package/public-api.d.ts +1 -0
- package/src/lib/styles.scss +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export * from './busy/busy.component';
|
|
1
2
|
export * from './choice/choice.component';
|
|
2
3
|
export * from './color/color.component';
|
|
3
4
|
export * from './file/file.component';
|
|
5
|
+
export * from './icon-stack/icon-stack.component';
|
|
6
|
+
export * from './icon/icon.component';
|
|
4
7
|
export * from './number/number.component';
|
|
5
8
|
export * from './readonly/readonly.component';
|
|
6
|
-
export * from './text/text.component';
|
|
7
9
|
export * from './select/select.component';
|
|
10
|
+
export * from './text/text.component';
|
|
@@ -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,8 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/common": "^18.0.0",
|
|
37
37
|
"@angular/core": "^18.0.0",
|
|
38
|
-
"@joster-dev/
|
|
39
|
-
"@joster-dev/style": "^0.1.1"
|
|
38
|
+
"@joster-dev/style": "^0.1.4"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
package/src/lib/styles.scss
CHANGED