@ngflux/ngflux 1.0.4 → 2.0.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/README.md +46 -9
- package/_index.scss +1 -0
- package/fesm2022/ngflux-ngflux.mjs +404 -342
- package/fesm2022/ngflux-ngflux.mjs.map +1 -1
- package/lib/components/button/button.component.scss +126 -0
- package/lib/components/dialog/body/body.component.scss +4 -0
- package/lib/components/dialog/boxes/alert/alert.dialog.scss +6 -0
- package/lib/components/dialog/boxes/confirm/confirm.dialog.scss +6 -0
- package/lib/components/dialog/boxes/prompt/prompt.dialog.scss +24 -0
- package/lib/components/dialog/footer/footer.component.scss +12 -0
- package/lib/components/dialog/header/header.component.scss +38 -0
- package/lib/components/dialog/main/main.component.scss +24 -0
- package/lib/components/dialog/root/root.component.scss +6 -0
- package/lib/components/loading/main/main.component.scss +42 -0
- package/lib/components/loading/root/root.component.scss +21 -0
- package/lib/components/pagination/info/info.component.scss +58 -0
- package/lib/components/pagination/pagination.component.scss +7 -0
- package/package.json +4 -3
- package/types/ngflux-ngflux.d.ts +12 -12
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
svg {
|
|
5
|
+
width: 3.25em;
|
|
6
|
+
transform-origin: center;
|
|
7
|
+
animation: rotate4 2s linear infinite;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
circle {
|
|
11
|
+
fill: none;
|
|
12
|
+
// stroke: hsl(214, 97%, 59%);
|
|
13
|
+
stroke: var(--ngf-loading-foreground) !important;
|
|
14
|
+
stroke-width: 5;
|
|
15
|
+
stroke-dasharray: 1, 200;
|
|
16
|
+
stroke-dashoffset: 0;
|
|
17
|
+
stroke-linecap: round;
|
|
18
|
+
animation: dash4 1.5s ease-in-out infinite;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes rotate4 {
|
|
22
|
+
100% {
|
|
23
|
+
transform: rotate(360deg);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes dash4 {
|
|
28
|
+
0% {
|
|
29
|
+
stroke-dasharray: 1, 200;
|
|
30
|
+
stroke-dashoffset: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
50% {
|
|
34
|
+
stroke-dasharray: 90, 200;
|
|
35
|
+
stroke-dashoffset: -35px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
100% {
|
|
39
|
+
stroke-dashoffset: -125px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: var(--ngf-loading-z-index) !important;
|
|
5
|
+
inset: 0px;
|
|
6
|
+
|
|
7
|
+
&.show {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> .wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
background-color: var(--ngf-loading-background) !important;
|
|
17
|
+
height: 100% !important;
|
|
18
|
+
width: 100% !important;
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use '../../../../scss/system' as ngf;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
container: pagination / inline-size;
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
align-items: end;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: .8rem;
|
|
14
|
+
gap: 5px;
|
|
15
|
+
|
|
16
|
+
@container pagination (min-width: 400px) {
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
justify-content: end;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 15px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.block {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 5px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.limit {
|
|
32
|
+
> select {
|
|
33
|
+
display: block;
|
|
34
|
+
padding: 2px 5px;
|
|
35
|
+
font-size: inherit;
|
|
36
|
+
outline: none !important;
|
|
37
|
+
width: 50px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nav {
|
|
42
|
+
> button {
|
|
43
|
+
display: block;
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
box-shadow: none !important;
|
|
46
|
+
outline: none !important;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
border: none;
|
|
49
|
+
padding: 0px;
|
|
50
|
+
|
|
51
|
+
&:disabled {
|
|
52
|
+
cursor: default;
|
|
53
|
+
color: #AAA;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngflux/ngflux",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/NgFlux/ngflux.git"
|
|
7
7
|
},
|
|
8
|
+
"license": "MIT",
|
|
8
9
|
"homepage": "https://github.com/NgFlux/ngflux",
|
|
9
10
|
"keywords": [
|
|
10
11
|
"angular",
|
|
@@ -18,8 +19,8 @@
|
|
|
18
19
|
"access": "public"
|
|
19
20
|
},
|
|
20
21
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "^
|
|
22
|
-
"@angular/core": "^
|
|
22
|
+
"@angular/common": "^22.0.0",
|
|
23
|
+
"@angular/core": "^22.0.0"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"tslib": "^2.3.0"
|
package/types/ngflux-ngflux.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ type PaginationInfo = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
type LoadingOptions = {
|
|
47
|
+
showOnRouteNavigation?: boolean;
|
|
47
48
|
component?: NgFluxComponent;
|
|
48
49
|
};
|
|
49
50
|
type DialogAlertOptions = {
|
|
@@ -131,11 +132,6 @@ type NgFluxLoadingEntry = {
|
|
|
131
132
|
|
|
132
133
|
declare const provideNgFlux: (config?: NgFluxConfig) => _angular_core.EnvironmentProviders;
|
|
133
134
|
|
|
134
|
-
declare class NgFluxRootComponent {
|
|
135
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxRootComponent, never>;
|
|
136
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxRootComponent, "ngf-root", never, {}, {}, never, ["*"], true, never>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
135
|
declare class NgFluxButton {
|
|
140
136
|
private readonly ref;
|
|
141
137
|
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
@@ -167,10 +163,11 @@ declare class NgFluxDialogFooterComponent {
|
|
|
167
163
|
|
|
168
164
|
declare class NgFluxLoading {
|
|
169
165
|
private readonly internal;
|
|
166
|
+
private readonly root;
|
|
170
167
|
readonly data: _angular_core.Signal<_ngflux_ngflux.NgFluxLoadingEntry | undefined>;
|
|
171
168
|
readonly isLoading: _angular_core.Signal<boolean>;
|
|
172
|
-
start(text?: string)
|
|
173
|
-
stop()
|
|
169
|
+
readonly start: (text?: string) => void;
|
|
170
|
+
readonly stop: () => void;
|
|
174
171
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxLoading, never>;
|
|
175
172
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgFluxLoading>;
|
|
176
173
|
}
|
|
@@ -216,22 +213,25 @@ declare class NgFluxDialogHeaderComponent {
|
|
|
216
213
|
}
|
|
217
214
|
|
|
218
215
|
declare class NgFluxDialogRootComponent {
|
|
219
|
-
private readonly internal;
|
|
220
216
|
readonly injector: Injector;
|
|
221
217
|
readonly viewContainer: _angular_core.Signal<ViewContainerRef>;
|
|
222
|
-
constructor();
|
|
223
218
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxDialogRootComponent, never>;
|
|
224
219
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxDialogRootComponent, "ngf-dialog-root", never, {}, {}, never, never, true, never>;
|
|
225
220
|
}
|
|
226
221
|
|
|
227
222
|
declare class NgFluxLoadingRootComponent {
|
|
228
223
|
private readonly config;
|
|
229
|
-
private readonly internal;
|
|
230
224
|
private readonly injector;
|
|
231
|
-
|
|
225
|
+
private readonly entries;
|
|
226
|
+
readonly count: _angular_core.Signal<number>;
|
|
227
|
+
readonly isLoading: _angular_core.Signal<boolean>;
|
|
228
|
+
get showLoading(): boolean;
|
|
232
229
|
readonly viewContainer: _angular_core.Signal<ViewContainerRef>;
|
|
233
230
|
private componentRef;
|
|
234
231
|
constructor();
|
|
232
|
+
readonly entry: _angular_core.Signal<NgFluxLoadingEntry | undefined>;
|
|
233
|
+
readonly start: (text?: string) => void;
|
|
234
|
+
readonly stop: () => void;
|
|
235
235
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgFluxLoadingRootComponent, never>;
|
|
236
236
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxLoadingRootComponent, "ngf-loading-root", never, {}, {}, never, never, true, never>;
|
|
237
237
|
}
|
|
@@ -250,5 +250,5 @@ declare class NgFluxPagination {
|
|
|
250
250
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgFluxPagination, "ngf-pagination", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "preload": { "alias": "preload"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "limitEntries": { "alias": "limitEntries"; "required": false; "isSignal": true; }; }, { "limit": "limitChange"; "callback": "callback"; }, never, ["*"], true, never>;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export { NGF_CONFIG, NGF_DIALOG_DATA, NgFluxButton, NgFluxDialog, NgFluxDialogBodyComponent, NgFluxDialogFooterComponent, NgFluxDialogHeaderComponent, NgFluxDialogInstance, NgFluxDialogRef, NgFluxDialogRootComponent, NgFluxLoading, NgFluxLoadingRootComponent, NgFluxPagination,
|
|
253
|
+
export { NGF_CONFIG, NGF_DIALOG_DATA, NgFluxButton, NgFluxDialog, NgFluxDialogBodyComponent, NgFluxDialogFooterComponent, NgFluxDialogHeaderComponent, NgFluxDialogInstance, NgFluxDialogRef, NgFluxDialogRootComponent, NgFluxLoading, NgFluxLoadingRootComponent, NgFluxPagination, provideNgFlux };
|
|
254
254
|
export type { ButtonDirection, ButtonOptions, ButtonSize, ButtonTheme, ButtonType, NgFluxComponent, NgFluxConfig, NgFluxDialogAlertOptions, NgFluxDialogButton, NgFluxDialogButtonObj, NgFluxDialogCommand, NgFluxDialogConfig, NgFluxDialogConfirmOptions, NgFluxDialogEvents, NgFluxDialogPromptOptions, NgFluxDialogRoot, NgFluxLoadingEntry, Pagination, PaginationInfo, PaginationTransformer };
|