@webilix/ngx-helper-m3 0.0.15 → 0.0.17

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.
@@ -1,12 +1,25 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { INgxHelperConfig } from '../../../ngx-helper.config';
3
+ import { ComponentService } from '../../component.service';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class NgxHelperSectionColumnComponent implements OnChanges {
6
+ private readonly componentService;
7
+ private readonly config?;
4
8
  flexStyle: string;
5
9
  widthStyle: string;
10
+ stickyPosition: string;
11
+ stickyZIndex: string;
12
+ stickyTop: string;
6
13
  flex?: number;
7
14
  width?: string;
8
- sticky?: 'TOP' | 'BOTTOM';
15
+ sticky?: boolean | 'DESKTOP' | 'MOBILE';
16
+ zIndex?: number;
17
+ private componentConfig;
18
+ private isMobile;
19
+ constructor(componentService: ComponentService, config?: Partial<INgxHelperConfig> | undefined);
9
20
  ngOnChanges(changes: SimpleChanges): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSectionColumnComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperSectionColumnComponent, "ngx-helper-section-column", never, { "flex": { "alias": "flex"; "required": false; }; "width": { "alias": "width"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; }, {}, never, ["*"], true, never>;
21
+ onResize(): void;
22
+ setPosition(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSectionColumnComponent, [null, { optional: true; }]>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxHelperSectionColumnComponent, "ngx-helper-section-column", never, { "flex": { "alias": "flex"; "required": false; }; "width": { "alias": "width"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; }, {}, never, ["*"], true, never>;
12
25
  }
@@ -0,0 +1,19 @@
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
+ coordinates?: INgxHelperCoordinates;
7
+ config?: Partial<INgxHelperCoordinatesConfig>;
8
+ close: (coordinates?: INgxHelperCoordinates) => void;
9
+ private map;
10
+ coordinate: Coordinate;
11
+ inputTransformFn: (value: any) => string;
12
+ ngOnInit(): void;
13
+ addLayer(): void;
14
+ checkInputs(latitude: string, longitude: string): void;
15
+ selectCoordinates(): void;
16
+ setCoordinates(event: MouseEvent): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<GetComponent, "ng-component", never, {}, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,10 @@
1
+ export interface INgxHelperCoordinates {
2
+ latitude: number;
3
+ longitude: number;
4
+ }
5
+ export interface INgxHelperCoordinatesConfig {
6
+ zoom: number;
7
+ size: number;
8
+ color: string;
9
+ view: INgxHelperCoordinates;
10
+ }
@@ -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,15 @@
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
+ coordinates: INgxHelperCoordinates;
6
+ config?: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>;
7
+ close: () => void;
8
+ private map;
9
+ copied?: 'LATITUDE' | 'LONGITUDE';
10
+ private copyTimeout;
11
+ ngOnInit(): void;
12
+ setCopy(type: 'LATITUDE' | 'LONGITUDE'): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowComponent, "ng-component", never, {}, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,19 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { INgxHelperConfig } from '../ngx-helper.config';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgxHelperStickyDirective implements OnInit {
5
+ private readonly elementRef;
6
+ private readonly config?;
7
+ ngxHelperSticky: 'TOP' | 'BOTTOM';
8
+ stickyIn: 'ALWAYS' | 'DESKTOP' | 'MOBILE';
9
+ zIndex?: number;
10
+ private mobileWidth;
11
+ private stickyView;
12
+ private isMobile;
13
+ constructor(elementRef: ElementRef, config?: Partial<INgxHelperConfig> | undefined);
14
+ ngOnInit(): void;
15
+ onResize(): void;
16
+ setPosition(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperStickyDirective, [null, { optional: true; }]>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgxHelperStickyDirective, "[ngxHelperSticky]", never, { "ngxHelperSticky": { "alias": "ngxHelperSticky"; "required": true; }; "stickyIn": { "alias": "stickyIn"; "required": false; }; "zIndex": { "alias": "zIndex"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
package/ngx-helper-m3.css CHANGED
@@ -308,7 +308,6 @@
308
308
  display: flex;
309
309
  align-items: center;
310
310
  column-gap: 0.5rem;
311
- padding-left: 0.5rem;
312
311
 
313
312
  button {
314
313
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-helper-m3",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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
@@ -7,13 +7,23 @@ export * from './lib/components/loader/ngx-helper-loader.component';
7
7
  export * from './lib/components/page-group/ngx-helper-page-group.component';
8
8
  export * from './lib/components/page-group/ngx-helper-page-group.interface';
9
9
  export * from './lib/components/progress/ngx-helper-progress.component';
10
- export * from './lib/components/section/ngx-helper-section-sticky.directive';
11
10
  export * from './lib/components/section/ngx-helper-section.component';
12
11
  export * from './lib/components/section/column/ngx-helper-section-column.component';
13
12
  export * from './lib/components/value/box/ngx-helper-value-box.component';
14
13
  export * from './lib/components/value/list/ngx-helper-value-list.component';
15
14
  export * from './lib/components/value/ngx-helper-value.interface';
16
15
  export * from './lib/components/value/ngx-helper-value.pipe';
16
+ export * from './lib/confirm/confirm.interface';
17
+ export * from './lib/confirm/confirm.service';
18
+ export * from './lib/container/container.interface';
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';
22
+ export * from './lib/http/ngx-helper-http.interface';
23
+ export * from './lib/http/ngx-helper-http.service';
24
+ export * from './lib/toast/ngx-helper-toast.interface';
25
+ export * from './lib/toast/ngx-helper-toast.service';
26
+ export * from './lib/directives/ngx-helper-sticky.directive';
17
27
  export * from './lib/pipes/bank-card.pipe';
18
28
  export * from './lib/pipes/date.pipe';
19
29
  export * from './lib/pipes/duration.pipe';
@@ -26,11 +36,3 @@ export * from './lib/pipes/price.pipe';
26
36
  export * from './lib/pipes/safe.pipe';
27
37
  export * from './lib/pipes/volume.pipe';
28
38
  export * from './lib/pipes/weight.pipe';
29
- export * from './lib/confirm/confirm.interface';
30
- export * from './lib/confirm/confirm.service';
31
- export * from './lib/container/container.interface';
32
- export * from './lib/container/container.service';
33
- export * from './lib/http/ngx-helper-http.interface';
34
- export * from './lib/http/ngx-helper-http.service';
35
- export * from './lib/toast/ngx-helper-toast.interface';
36
- export * from './lib/toast/ngx-helper-toast.service';
@@ -1,18 +0,0 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { INgxHelperConfig } from '../../ngx-helper.config';
3
- import * as i0 from "@angular/core";
4
- export declare class NgxHelperSectionStickyDirective implements OnInit {
5
- private readonly elementRef;
6
- private readonly config?;
7
- ngxHelperSectionSticky: 'TOP' | 'BOTTOM';
8
- ngxHelperSectionZIndex?: number;
9
- private componentService;
10
- private componentConfig;
11
- private isMobile;
12
- constructor(elementRef: ElementRef, config?: Partial<INgxHelperConfig> | undefined);
13
- ngOnInit(): void;
14
- onResize(): void;
15
- setPosition(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSectionStickyDirective, [null, { optional: true; }]>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgxHelperSectionStickyDirective, "[ngxHelperSectionSticky]", never, { "ngxHelperSectionSticky": { "alias": "ngxHelperSectionSticky"; "required": true; }; "ngxHelperSectionZIndex": { "alias": "ngxHelperSectionZIndex"; "required": false; }; }, {}, never, never, true, never>;
18
- }