@webilix/ngx-helper-m3 0.0.16 → 0.0.18
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/fesm2022/webilix-ngx-helper-m3.mjs +210 -12
- package/fesm2022/webilix-ngx-helper-m3.mjs.map +1 -1
- package/lib/coordinates/get/get.component.d.ts +20 -0
- package/lib/coordinates/ngx-helper-coordinates.interface.d.ts +10 -0
- package/lib/coordinates/ngx-helper-coordinates.service.d.ts +16 -0
- package/lib/coordinates/show/show.component.d.ts +16 -0
- package/ngx-helper-m3.css +111 -0
- package/package.json +4 -2
- package/public-api.d.ts +2 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { Coordinate } from 'ol/coordinate';
|
3
|
+
import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from '../ngx-helper-coordinates.interface';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class GetComponent implements OnInit {
|
6
|
+
private className;
|
7
|
+
coordinates?: INgxHelperCoordinates;
|
8
|
+
config?: Partial<INgxHelperCoordinatesConfig>;
|
9
|
+
close: (coordinates?: INgxHelperCoordinates) => void;
|
10
|
+
private map;
|
11
|
+
coordinate: Coordinate;
|
12
|
+
inputTransformFn: (value: any) => string;
|
13
|
+
ngOnInit(): void;
|
14
|
+
addLayer(): void;
|
15
|
+
checkInputs(latitude: string, longitude: string): void;
|
16
|
+
selectCoordinates(): void;
|
17
|
+
setCoordinates(event: MouseEvent): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetComponent, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GetComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ApplicationRef, Injector } from '@angular/core';
|
2
|
+
import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from './ngx-helper-coordinates.interface';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class NgxHelperCoordinatesService {
|
5
|
+
private readonly applicationRef;
|
6
|
+
private readonly injector;
|
7
|
+
constructor(applicationRef: ApplicationRef, injector: Injector);
|
8
|
+
get(): Promise<INgxHelperCoordinates>;
|
9
|
+
get(coordinates: INgxHelperCoordinates): Promise<INgxHelperCoordinates>;
|
10
|
+
get(config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
|
11
|
+
get(coordinates: INgxHelperCoordinates, config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
|
12
|
+
show(coordinates: INgxHelperCoordinates): void;
|
13
|
+
show(coordinates: INgxHelperCoordinates, config: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>): void;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperCoordinatesService, never>;
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperCoordinatesService>;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from '../ngx-helper-coordinates.interface';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ShowComponent implements OnInit {
|
5
|
+
private className;
|
6
|
+
coordinates: INgxHelperCoordinates;
|
7
|
+
config?: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>;
|
8
|
+
close: () => void;
|
9
|
+
private map;
|
10
|
+
copied?: 'LATITUDE' | 'LONGITUDE';
|
11
|
+
private copyTimeout;
|
12
|
+
ngOnInit(): void;
|
13
|
+
setCopy(type: 'LATITUDE' | 'LONGITUDE'): void;
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowComponent, never>;
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShowComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
16
|
+
}
|
package/ngx-helper-m3.css
CHANGED
@@ -79,6 +79,117 @@
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
|
82
|
+
/* NGX HELPER COORDINATES */
|
83
|
+
.ngx-helper-m3-coordinates {
|
84
|
+
display: block;
|
85
|
+
z-index: 1000;
|
86
|
+
|
87
|
+
position: fixed;
|
88
|
+
top: 0;
|
89
|
+
right: 0;
|
90
|
+
bottom: 0;
|
91
|
+
left: 0;
|
92
|
+
|
93
|
+
.map {
|
94
|
+
width: 100vw;
|
95
|
+
height: 100vh;
|
96
|
+
background-color: rgb(255, 255, 255);
|
97
|
+
}
|
98
|
+
|
99
|
+
.coordinates {
|
100
|
+
position: absolute;
|
101
|
+
bottom: 0;
|
102
|
+
left: 0;
|
103
|
+
|
104
|
+
padding: 0.5rem 0.5rem 0.75rem 0.5rem;
|
105
|
+
background-color: rgb(255, 255, 255);
|
106
|
+
box-shadow: 0 0 5px 0px var(--primary);
|
107
|
+
|
108
|
+
.header {
|
109
|
+
display: flex;
|
110
|
+
align-items: center;
|
111
|
+
column-gap: 1rem;
|
112
|
+
|
113
|
+
padding: 0.5rem 1rem;
|
114
|
+
color: var(--on-primary);
|
115
|
+
background-color: var(--primary);
|
116
|
+
|
117
|
+
.title {
|
118
|
+
flex: 1;
|
119
|
+
font-size: 90%;
|
120
|
+
font-weight: 500;
|
121
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
122
|
+
}
|
123
|
+
|
124
|
+
mat-icon {
|
125
|
+
cursor: pointer;
|
126
|
+
font-size: 110%;
|
127
|
+
color: var(--on-primary);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
.item {
|
132
|
+
display: flex;
|
133
|
+
align-items: center;
|
134
|
+
column-gap: 1rem;
|
135
|
+
|
136
|
+
padding: 0.75rem 1rem 0 1rem;
|
137
|
+
color: rgb(0, 0, 0);
|
138
|
+
|
139
|
+
.title {
|
140
|
+
flex: 1;
|
141
|
+
font-size: 90%;
|
142
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
143
|
+
}
|
144
|
+
|
145
|
+
input {
|
146
|
+
direction: ltr;
|
147
|
+
text-align: left;
|
148
|
+
|
149
|
+
outline: none;
|
150
|
+
width: 125px;
|
151
|
+
font-size: 90%;
|
152
|
+
padding: 0.25rem;
|
153
|
+
border-radius: 4px;
|
154
|
+
color: rgb(0, 0, 0);
|
155
|
+
border: 1px solid rgb(200, 200, 200);
|
156
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
157
|
+
}
|
158
|
+
|
159
|
+
.value {
|
160
|
+
font-size: 95%;
|
161
|
+
text-align: right;
|
162
|
+
padding-right: 1rem;
|
163
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
164
|
+
}
|
165
|
+
|
166
|
+
mat-icon {
|
167
|
+
cursor: pointer;
|
168
|
+
font-size: 100%;
|
169
|
+
color: rgb(0, 0, 0);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
.buttons {
|
174
|
+
display: flex;
|
175
|
+
justify-content: right;
|
176
|
+
|
177
|
+
margin-top: 0.5rem;
|
178
|
+
padding-right: 1rem;
|
179
|
+
|
180
|
+
mat-icon {
|
181
|
+
cursor: pointer;
|
182
|
+
font-size: 110%;
|
183
|
+
color: rgb(0, 0, 0);
|
184
|
+
}
|
185
|
+
|
186
|
+
mat-icon.disabled {
|
187
|
+
opacity: 0.4;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
82
193
|
/* NGX HELPER HTTP (UPLOAD / DOWNLOAD) */
|
83
194
|
.ngx-helper-m3-http {
|
84
195
|
position: fixed;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@webilix/ngx-helper-m3",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.18",
|
4
4
|
"author": "Ali Amirnezhad",
|
5
5
|
"description": "Helper library for Angular and Material 3",
|
6
6
|
"repository": {
|
@@ -24,7 +24,9 @@
|
|
24
24
|
"@angular/core": ">=19.0.5",
|
25
25
|
"@angular/material": ">=19.0.4",
|
26
26
|
"@webilix/helper-library": ">=6.0.2",
|
27
|
-
"@webilix/jalali-date-time": ">=2.0.5"
|
27
|
+
"@webilix/jalali-date-time": ">=2.0.5",
|
28
|
+
"ngx-mask": ">=19.0.6",
|
29
|
+
"ol": ">=10.3.1"
|
28
30
|
},
|
29
31
|
"dependencies": {
|
30
32
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
@@ -17,6 +17,8 @@ export * from './lib/confirm/confirm.interface';
|
|
17
17
|
export * from './lib/confirm/confirm.service';
|
18
18
|
export * from './lib/container/container.interface';
|
19
19
|
export * from './lib/container/container.service';
|
20
|
+
export * from './lib/coordinates/ngx-helper-coordinates.interface';
|
21
|
+
export * from './lib/coordinates/ngx-helper-coordinates.service';
|
20
22
|
export * from './lib/http/ngx-helper-http.interface';
|
21
23
|
export * from './lib/http/ngx-helper-http.service';
|
22
24
|
export * from './lib/toast/ngx-helper-toast.interface';
|