@webilix/ngx-helper-m3 0.0.29 → 0.0.32
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 +379 -15
- package/fesm2022/webilix-ngx-helper-m3.mjs.map +1 -1
- package/index.d.ts +38 -2
- package/ngx-helper-m3.css +128 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
@@ -609,6 +609,42 @@ declare class NgxHelperHttpService {
|
|
609
609
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperHttpService>;
|
610
610
|
}
|
611
611
|
|
612
|
+
type NgxHelperRoute = {
|
613
|
+
latitude: number;
|
614
|
+
longitude: number;
|
615
|
+
}[];
|
616
|
+
interface INgxHelperRouteConfig {
|
617
|
+
zoom: number;
|
618
|
+
circle: Partial<{
|
619
|
+
size: number;
|
620
|
+
color: string;
|
621
|
+
}>;
|
622
|
+
text: Partial<{
|
623
|
+
size: number;
|
624
|
+
font: string;
|
625
|
+
color: string;
|
626
|
+
}>;
|
627
|
+
view: {
|
628
|
+
latitude: number;
|
629
|
+
longitude: number;
|
630
|
+
};
|
631
|
+
disableAnimate?: boolean;
|
632
|
+
}
|
633
|
+
|
634
|
+
declare class NgxHelperRouteService {
|
635
|
+
private readonly applicationRef;
|
636
|
+
private readonly injector;
|
637
|
+
constructor(applicationRef: ApplicationRef, injector: Injector);
|
638
|
+
get(): Promise<NgxHelperRoute>;
|
639
|
+
get(route: NgxHelperRoute): Promise<NgxHelperRoute>;
|
640
|
+
get(config: Partial<INgxHelperRouteConfig>): Promise<NgxHelperRoute>;
|
641
|
+
get(route: NgxHelperRoute, config: Partial<INgxHelperRouteConfig>): Promise<NgxHelperRoute>;
|
642
|
+
show(route: NgxHelperRoute): void;
|
643
|
+
show(route: NgxHelperRoute, config: Partial<Omit<INgxHelperRouteConfig, 'view'>>): void;
|
644
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperRouteService, never>;
|
645
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperRouteService>;
|
646
|
+
}
|
647
|
+
|
612
648
|
declare class NgxHelperMobileViewDirective implements OnInit {
|
613
649
|
private readonly elementRef;
|
614
650
|
private readonly rendererFactory;
|
@@ -791,5 +827,5 @@ declare class NgxHelperWeightPipe implements PipeTransform {
|
|
791
827
|
static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperWeightPipe, "ngxHelperWeight", true>;
|
792
828
|
}
|
793
829
|
|
794
|
-
export { NGX_HELPER_BOX_DATA, NGX_HELPER_CONFIG, NGX_HELPER_CONTAINER_CLOSE, NGX_HELPER_CONTAINER_DATA, NGX_HELPER_CONTAINER_TYPE, NGX_HELPER_PAGE_GROUP_DATA, NGX_HELPER_PAGE_GROUP_DATA_CHANGE, NGX_HELPER_PAGE_GROUP_ITEM, NgxHelperBankCardPipe, NgxHelperBoxComponent, NgxHelperCardComponent, NgxHelperConfirmService, NgxHelperContainerService, NgxHelperCoordinatesService, NgxHelperDatePipe, NgxHelperDurationPipe, NgxHelperFileSizePipe, NgxHelperHttpService, NgxHelperLoaderComponent, NgxHelperMobilePipe, NgxHelperMobileViewDirective, NgxHelperMultiLinePipe, NgxHelperNumberPipe, NgxHelperPageGroupComponent, NgxHelperPeriodPipe, NgxHelperPricePipe, NgxHelperProgressComponent, NgxHelperSafePipe, NgxHelperSectionColumnComponent, NgxHelperSectionComponent, NgxHelperStickyDirective, NgxHelperToastService, NgxHelperValueBoxComponent, NgxHelperValueListComponent, NgxHelperValuePipe, NgxHelperVolumePipe, NgxHelperWeightPipe, provideNgxHelperConfig };
|
795
|
-
export type { INgxHelperCardOption, INgxHelperConfig, INgxHelperConfirm, INgxHelperContainerConfig, INgxHelperCoordinates, INgxHelperCoordinatesConfig, INgxHelperHttpDownloadConfig, INgxHelperHttpUploadConfig, INgxHelperPageGroup, INgxHelperPageGroupItem, INgxHelperToastConfig, INgxHelperValue, NgxHelperCardAction, NgxHelperContainer, NgxHelperValue };
|
830
|
+
export { NGX_HELPER_BOX_DATA, NGX_HELPER_CONFIG, NGX_HELPER_CONTAINER_CLOSE, NGX_HELPER_CONTAINER_DATA, NGX_HELPER_CONTAINER_TYPE, NGX_HELPER_PAGE_GROUP_DATA, NGX_HELPER_PAGE_GROUP_DATA_CHANGE, NGX_HELPER_PAGE_GROUP_ITEM, NgxHelperBankCardPipe, NgxHelperBoxComponent, NgxHelperCardComponent, NgxHelperConfirmService, NgxHelperContainerService, NgxHelperCoordinatesService, NgxHelperDatePipe, NgxHelperDurationPipe, NgxHelperFileSizePipe, NgxHelperHttpService, NgxHelperLoaderComponent, NgxHelperMobilePipe, NgxHelperMobileViewDirective, NgxHelperMultiLinePipe, NgxHelperNumberPipe, NgxHelperPageGroupComponent, NgxHelperPeriodPipe, NgxHelperPricePipe, NgxHelperProgressComponent, NgxHelperRouteService, NgxHelperSafePipe, NgxHelperSectionColumnComponent, NgxHelperSectionComponent, NgxHelperStickyDirective, NgxHelperToastService, NgxHelperValueBoxComponent, NgxHelperValueListComponent, NgxHelperValuePipe, NgxHelperVolumePipe, NgxHelperWeightPipe, provideNgxHelperConfig };
|
831
|
+
export type { INgxHelperCardOption, INgxHelperConfig, INgxHelperConfirm, INgxHelperContainerConfig, INgxHelperCoordinates, INgxHelperCoordinatesConfig, INgxHelperHttpDownloadConfig, INgxHelperHttpUploadConfig, INgxHelperPageGroup, INgxHelperPageGroupItem, INgxHelperRouteConfig, INgxHelperToastConfig, INgxHelperValue, NgxHelperCardAction, NgxHelperContainer, NgxHelperRoute, NgxHelperValue };
|
package/ngx-helper-m3.css
CHANGED
@@ -185,7 +185,7 @@
|
|
185
185
|
|
186
186
|
mat-icon {
|
187
187
|
cursor: pointer;
|
188
|
-
font-size:
|
188
|
+
font-size: 130%;
|
189
189
|
color: rgb(0, 0, 0);
|
190
190
|
}
|
191
191
|
|
@@ -266,6 +266,132 @@
|
|
266
266
|
}
|
267
267
|
}
|
268
268
|
|
269
|
+
/* NGX HELPER ROUTE */
|
270
|
+
.ngx-helper-m3-route {
|
271
|
+
display: block;
|
272
|
+
z-index: 1000;
|
273
|
+
|
274
|
+
position: fixed;
|
275
|
+
top: 0;
|
276
|
+
right: 0;
|
277
|
+
bottom: 0;
|
278
|
+
left: 0;
|
279
|
+
|
280
|
+
.map {
|
281
|
+
width: 100vw;
|
282
|
+
height: 100vh;
|
283
|
+
background-color: rgb(255, 255, 255);
|
284
|
+
}
|
285
|
+
|
286
|
+
.route {
|
287
|
+
position: absolute;
|
288
|
+
top: 0;
|
289
|
+
bottom: 0;
|
290
|
+
left: 0;
|
291
|
+
width: 250px;
|
292
|
+
|
293
|
+
direction: ltr;
|
294
|
+
background-color: var(--background);
|
295
|
+
box-shadow: 0 0 5px 0px var(--primary);
|
296
|
+
|
297
|
+
display: flex;
|
298
|
+
flex-direction: column;
|
299
|
+
|
300
|
+
.header {
|
301
|
+
display: flex;
|
302
|
+
align-items: center;
|
303
|
+
column-gap: 1rem;
|
304
|
+
|
305
|
+
padding: 0.5rem 1rem;
|
306
|
+
color: var(--on-primary);
|
307
|
+
background-color: var(--primary);
|
308
|
+
margin: 0.5rem 0.5rem 0.75rem 0.5rem;
|
309
|
+
|
310
|
+
.title {
|
311
|
+
flex: 1;
|
312
|
+
font-size: 90%;
|
313
|
+
font-weight: 500;
|
314
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
315
|
+
}
|
316
|
+
|
317
|
+
mat-icon {
|
318
|
+
cursor: pointer;
|
319
|
+
font-size: 110%;
|
320
|
+
color: var(--on-primary);
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
.coordinates {
|
325
|
+
flex: 1;
|
326
|
+
|
327
|
+
overflow: auto;
|
328
|
+
max-height: calc(100vh - 1rem - 40px - 48px);
|
329
|
+
}
|
330
|
+
|
331
|
+
.footer {
|
332
|
+
display: flex;
|
333
|
+
align-items: center;
|
334
|
+
|
335
|
+
position: relative;
|
336
|
+
color: var(--primary);
|
337
|
+
background-color: var(--surface-container);
|
338
|
+
padding: 0.75rem 1rem;
|
339
|
+
|
340
|
+
.distance {
|
341
|
+
flex: 1;
|
342
|
+
font-size: 90%;
|
343
|
+
font-weight: 500;
|
344
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
345
|
+
}
|
346
|
+
|
347
|
+
mat-icon {
|
348
|
+
cursor: pointer;
|
349
|
+
font-size: 130%;
|
350
|
+
}
|
351
|
+
|
352
|
+
mat-icon.disabled {
|
353
|
+
opacity: 0.4;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
.ngx-helper-m3-route-coordinate {
|
360
|
+
display: flex;
|
361
|
+
align-items: center;
|
362
|
+
|
363
|
+
padding: 0.5rem;
|
364
|
+
border-top: 1px solid var(--outline-variant);
|
365
|
+
background-color: var(--background);
|
366
|
+
|
367
|
+
mat-icon {
|
368
|
+
cursor: pointer;
|
369
|
+
font-size: 130%;
|
370
|
+
}
|
371
|
+
|
372
|
+
mat-icon.delete {
|
373
|
+
color: var(--error);
|
374
|
+
}
|
375
|
+
|
376
|
+
.index {
|
377
|
+
width: 30px;
|
378
|
+
font-size: 80%;
|
379
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
380
|
+
}
|
381
|
+
|
382
|
+
.value {
|
383
|
+
flex: 1;
|
384
|
+
font-size: 90%;
|
385
|
+
cursor: pointer;
|
386
|
+
overflow: hidden;
|
387
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
.ngx-helper-m3-route-coordinate.selected {
|
392
|
+
background-color: var(--surface-container-high);
|
393
|
+
}
|
394
|
+
|
269
395
|
/* NGX HELPER TOAST */
|
270
396
|
.ngx-helper-m3-toast {
|
271
397
|
position: fixed;
|
@@ -340,6 +466,7 @@
|
|
340
466
|
}
|
341
467
|
}
|
342
468
|
}
|
469
|
+
|
343
470
|
.ngx-helper-m3-toast.center {
|
344
471
|
left: 50%;
|
345
472
|
transform: translate(-50%, 0);
|
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.32",
|
4
4
|
"author": "Ali Amirnezhad",
|
5
5
|
"description": "Helper library for Angular and Material 3",
|
6
6
|
"repository": {
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@angular/common": ">=20.0.0",
|
24
24
|
"@angular/core": ">=20.0.0",
|
25
25
|
"@angular/material": ">=20.0.1",
|
26
|
-
"@webilix/helper-library": ">=6.1.
|
26
|
+
"@webilix/helper-library": ">=6.1.5",
|
27
27
|
"@webilix/jalali-date-time": ">=2.0.7",
|
28
28
|
"ngx-mask": ">=19.0.6",
|
29
29
|
"ol": ">=10.5.0"
|