@jm-7c3/common-lib 1.7.2
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 +9 -0
- package/fesm2022/jm-7c3-common-lib.mjs +956 -0
- package/fesm2022/jm-7c3-common-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/jm-7c3-common-lib-1.7.2.tgz +0 -0
- package/lib/common-lib.module.d.ts +6 -0
- package/lib/controls/button/button.component.d.ts +14 -0
- package/lib/controls/button/button.models.d.ts +1 -0
- package/lib/controls/button/index.d.ts +1 -0
- package/lib/controls/confirmation/confirmation.component.d.ts +12 -0
- package/lib/controls/confirmation/confirmation.models.d.ts +7 -0
- package/lib/controls/confirmation/confirmation.service.d.ts +11 -0
- package/lib/controls/confirmation/index.d.ts +3 -0
- package/lib/controls/content-dialog/content-dialog.component.d.ts +15 -0
- package/lib/controls/content-dialog/content-dialog.models.d.ts +10 -0
- package/lib/controls/content-dialog/content-dialog.service.d.ts +13 -0
- package/lib/controls/content-dialog/index.d.ts +3 -0
- package/lib/controls/form-dialog/form-dialog.component.d.ts +21 -0
- package/lib/controls/form-dialog/form-dialog.models.d.ts +13 -0
- package/lib/controls/form-dialog/form-dialog.service.d.ts +12 -0
- package/lib/controls/form-dialog/index.d.ts +3 -0
- package/lib/controls/icon-button/icon-button.component.d.ts +15 -0
- package/lib/controls/icon-button/index.d.ts +1 -0
- package/lib/controls/progress-bar-dialog/index.d.ts +2 -0
- package/lib/controls/progress-bar-dialog/progress-bar-dialog.component.d.ts +9 -0
- package/lib/controls/progress-bar-dialog/progress-bar-dialog.service.d.ts +8 -0
- package/lib/controls/readonly-value/index.d.ts +1 -0
- package/lib/controls/readonly-value/readonly-value.component.d.ts +7 -0
- package/lib/controls/toasts/index.d.ts +3 -0
- package/lib/controls/toasts/toasts.component.d.ts +9 -0
- package/lib/controls/toasts/toasts.models.d.ts +5 -0
- package/lib/controls/toasts/toasts.service.d.ts +9 -0
- package/lib/forms/base-form/base-form.component.d.ts +24 -0
- package/lib/forms/base-form/index.d.ts +1 -0
- package/lib/forms/file-input/file-input.component.d.ts +40 -0
- package/lib/forms/file-input/index.d.ts +1 -0
- package/lib/forms/file-inputs/file-inputs.component.d.ts +24 -0
- package/lib/forms/file-inputs/index.d.ts +1 -0
- package/lib/forms/form-field/error.directive.d.ts +7 -0
- package/lib/forms/form-field/form-field.component.d.ts +10 -0
- package/lib/forms/form-field/form-field.module.d.ts +9 -0
- package/lib/forms/form-field/index.d.ts +4 -0
- package/lib/forms/form-field/label.directive.d.ts +7 -0
- package/lib/models/cl-dialog.model.d.ts +15 -0
- package/lib/models/cl-state.model.d.ts +9 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/rxjs-operators/index.d.ts +1 -0
- package/lib/rxjs-operators/operators.d.ts +2 -0
- package/lib/services/cl-state.service.d.ts +12 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +29 -0
- package/public-api.d.ts +16 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const LABEL_DIRECTIVE: InjectionToken<LabelDirective>;
|
|
4
|
+
export declare class LabelDirective {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ConfirmationConfig {
|
|
2
|
+
acceptLabel: string;
|
|
3
|
+
cancelLabel: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ContentDialogConfig {
|
|
6
|
+
closeLabel: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldOption {
|
|
9
|
+
label: string;
|
|
10
|
+
value: any;
|
|
11
|
+
}
|
|
12
|
+
export interface FormDialogConfig {
|
|
13
|
+
cancelLabel: string;
|
|
14
|
+
submitLabel: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ClState = {
|
|
2
|
+
stateMessage: ClStateMessage | null;
|
|
3
|
+
};
|
|
4
|
+
export interface ClStateMessage {
|
|
5
|
+
key?: string;
|
|
6
|
+
payload?: any;
|
|
7
|
+
type: ClStateMessageType;
|
|
8
|
+
}
|
|
9
|
+
export type ClStateMessageType = 'confirmation' | 'confirmation-accept' | 'confirmation-cancel' | 'content-dialog' | 'content-dialog-cancel' | 'content-dialog-close' | 'form-dialog' | 'form-dialog-cancel' | 'form-dialog-submit' | 'progess-bar-dialog-close' | 'progess-bar-dialog-open' | 'toast';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './operators';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ClStateMessage, ClStateMessageType } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ClStateService {
|
|
5
|
+
private readonly state;
|
|
6
|
+
readonly stateMessage: any;
|
|
7
|
+
private readonly stateMessage$;
|
|
8
|
+
onStateMessage(type: ClStateMessageType): Observable<ClStateMessage | null>;
|
|
9
|
+
updateStateMessage(stateMessage: ClStateMessage | null): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClStateService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClStateService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cl-state.service';
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jm-7c3/common-lib",
|
|
3
|
+
"version": "1.7.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.1.0",
|
|
6
|
+
"@angular/core": "^19.1.0",
|
|
7
|
+
"@ngrx/signals": "^19.0.1",
|
|
8
|
+
"lodash-es": "^4.17.21",
|
|
9
|
+
"primeflex": "^3.3.1",
|
|
10
|
+
"primeicons": "^6.0.1",
|
|
11
|
+
"primeng": "^19.0.2",
|
|
12
|
+
"uuid": "^9.0.1"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"tslib": "^2.3.0"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"module": "fesm2022/jm-7c3-common-lib.mjs",
|
|
19
|
+
"typings": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
"./package.json": {
|
|
22
|
+
"default": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"default": "./fesm2022/jm-7c3-common-lib.mjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './lib/controls/button';
|
|
2
|
+
export * from './lib/controls/confirmation';
|
|
3
|
+
export * from './lib/controls/content-dialog';
|
|
4
|
+
export * from './lib/controls/form-dialog';
|
|
5
|
+
export * from './lib/controls/icon-button';
|
|
6
|
+
export * from './lib/controls/progress-bar-dialog';
|
|
7
|
+
export * from './lib/controls/readonly-value';
|
|
8
|
+
export * from './lib/controls/toasts';
|
|
9
|
+
export * from './lib/forms/base-form';
|
|
10
|
+
export * from './lib/forms/file-input';
|
|
11
|
+
export * from './lib/forms/file-inputs';
|
|
12
|
+
export * from './lib/forms/form-field';
|
|
13
|
+
export * from './lib/models';
|
|
14
|
+
export * from './lib/common-lib.module';
|
|
15
|
+
export * from './lib/rxjs-operators';
|
|
16
|
+
export * from './lib/services';
|