ngx-ntk-icon-picker 18.3.1

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.
Files changed (38) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/icon-picker.component.mjs +204 -0
  3. package/esm2020/lib/icon-picker.directive.mjs +131 -0
  4. package/esm2020/lib/icon-picker.module.mjs +43 -0
  5. package/esm2020/lib/icon-picker.service.mjs +68 -0
  6. package/esm2020/lib/icon.mjs +11 -0
  7. package/esm2020/lib/icons-pack.mjs +2 -0
  8. package/esm2020/lib/index.mjs +6 -0
  9. package/esm2020/lib/pack/font-awesome4-icons-pack.mjs +4791 -0
  10. package/esm2020/lib/pack/font-awesome5-icons-pack.mjs +18193 -0
  11. package/esm2020/lib/pack/font-awesome6-icons-pack.mjs +16828 -0
  12. package/esm2020/lib/pack/material-icons-pack.mjs +3735 -0
  13. package/esm2020/lib/pack/prime-icons-pack.mjs +951 -0
  14. package/esm2020/lib/search-icon.pipe.mjs +38 -0
  15. package/esm2020/lib/text.directive.mjs +27 -0
  16. package/esm2020/ngx-ntk-icon-picker.mjs +5 -0
  17. package/esm2020/public-api.mjs +5 -0
  18. package/fesm2015/ngx-ntk-icon-picker.mjs +45004 -0
  19. package/fesm2015/ngx-ntk-icon-picker.mjs.map +1 -0
  20. package/fesm2020/ngx-ntk-icon-picker.mjs +45004 -0
  21. package/fesm2020/ngx-ntk-icon-picker.mjs.map +1 -0
  22. package/index.d.ts +5 -0
  23. package/lib/icon-picker.component.d.ts +59 -0
  24. package/lib/icon-picker.directive.d.ts +40 -0
  25. package/lib/icon-picker.module.d.ts +12 -0
  26. package/lib/icon-picker.service.d.ts +15 -0
  27. package/lib/icon.d.ts +17 -0
  28. package/lib/icons-pack.d.ts +4 -0
  29. package/lib/index.d.ts +5 -0
  30. package/lib/pack/font-awesome4-icons-pack.d.ts +5 -0
  31. package/lib/pack/font-awesome5-icons-pack.d.ts +5 -0
  32. package/lib/pack/font-awesome6-icons-pack.d.ts +5 -0
  33. package/lib/pack/material-icons-pack.d.ts +5 -0
  34. package/lib/pack/prime-icons-pack.d.ts +5 -0
  35. package/lib/search-icon.pipe.d.ts +9 -0
  36. package/lib/text.directive.d.ts +9 -0
  37. package/package.json +45 -0
  38. package/public-api.d.ts +1 -0
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-ntk-icon-picker" />
5
+ export * from './public-api';
@@ -0,0 +1,59 @@
1
+ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { IconPickerService } from './icon-picker.service';
3
+ import { Icon, IconType } from './icon';
4
+ import * as i0 from "@angular/core";
5
+ export declare class IconPickerComponent implements OnInit {
6
+ private el;
7
+ private cdr;
8
+ private service;
9
+ dialogElement: any;
10
+ ipPosition: string;
11
+ ipHeight: number;
12
+ ipMaxHeight: number;
13
+ ipWidth: number;
14
+ ipIconSize: number;
15
+ ipIconVerticalPadding: number;
16
+ ipIconHorizontalPadding: number;
17
+ ipButtonStyleClass: string;
18
+ ipInputSearchStyleClass: string;
19
+ ipDivSearchStyleClass: string;
20
+ ipUseRootViewContainer: boolean;
21
+ ipKeepSearchFilter: boolean;
22
+ ipPlaceHolder: string;
23
+ ipFallbackIcon: string;
24
+ ipIconPack: string[];
25
+ show: boolean;
26
+ hidden: boolean;
27
+ top: number;
28
+ left: number;
29
+ position: string;
30
+ arrowTop: number;
31
+ selectedIcon: Icon;
32
+ iconType: typeof IconType;
33
+ buttonWidth: number;
34
+ buttonHeight: number;
35
+ icons: Icon[];
36
+ search: string;
37
+ private directiveInstance;
38
+ private initialIcon;
39
+ private directiveElementRef;
40
+ private listenerMouseDown;
41
+ private listenerResize;
42
+ private dialogArrowSize;
43
+ constructor(el: ElementRef, cdr: ChangeDetectorRef, service: IconPickerService);
44
+ setDialog(instance: any, elementRef: ElementRef, icon: string, ipPosition: string, ipHeight: string, ipMaxHeight: string, ipWidth: string, ipPlaceHolder: string, ipFallbackIcon: string, ipIconPack: string[], ipIconSize: string, ipIconVerticalPadding: string, ipIconHorizontalPadding: string, ipButtonStyleClass: string, ipDivSearchStyleClass: string, ipInputSearchStyleClass: string, ipKeepSearchFilter: string, ipUseRootViewContainer?: boolean): void;
45
+ ngOnInit(): void;
46
+ setInitialIcon(icon: string): void;
47
+ openDialog(icon: string): void;
48
+ setSearch(val: string): void;
49
+ selectIcon(icon: Icon): void;
50
+ onMouseDown(event: any): void;
51
+ openIconPicker(): void;
52
+ closeIconPicker(): void;
53
+ onResize(): void;
54
+ setDialogPosition(): void;
55
+ isDescendant(parent: any, child: any): boolean;
56
+ createBox(element: any, offset: boolean): any;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconPickerComponent, "icon-picker", never, {}, {}, never, never, false, never>;
59
+ }
@@ -0,0 +1,40 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IconPickerDirective implements OnInit, OnChanges {
4
+ private vcRef;
5
+ private el;
6
+ iconPicker: string;
7
+ ipPlaceHolder: string;
8
+ ipPosition: string;
9
+ ipFallbackIcon: string;
10
+ ipHeight: string;
11
+ ipMaxHeight: string;
12
+ ipWidth: string;
13
+ ipIconSize: string;
14
+ ipIconVerticalPadding: string;
15
+ ipIconHorizontalPadding: string;
16
+ ipIconPack: string[];
17
+ ipKeepSearchFilter: string;
18
+ ipUseRootViewContainer: boolean;
19
+ ipButtonStyleClass: string;
20
+ ipDivSearchStyleClass: string;
21
+ ipInputSearchStyleClass: string;
22
+ iconPickerSelect: EventEmitter<string>;
23
+ iconPickerOpen: EventEmitter<void>;
24
+ iconPickerClose: EventEmitter<void>;
25
+ iconPickerFocus: EventEmitter<void>;
26
+ handleFocus(): void;
27
+ private dialog;
28
+ private created;
29
+ private ignoreChanges;
30
+ constructor(vcRef: ViewContainerRef, el: ElementRef);
31
+ onClick(): void;
32
+ ngOnChanges(changes: any): void;
33
+ ngOnInit(): void;
34
+ openDialog(): void;
35
+ iconSelected(icon: string): void;
36
+ stateChanged(state: boolean): void;
37
+ elementFocus(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerDirective, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconPickerDirective, "[iconPicker]", never, { "iconPicker": "iconPicker"; "ipPlaceHolder": "ipPlaceHolder"; "ipPosition": "ipPosition"; "ipFallbackIcon": "ipFallbackIcon"; "ipHeight": "ipHeight"; "ipMaxHeight": "ipMaxHeight"; "ipWidth": "ipWidth"; "ipIconSize": "ipIconSize"; "ipIconVerticalPadding": "ipIconVerticalPadding"; "ipIconHorizontalPadding": "ipIconHorizontalPadding"; "ipIconPack": "ipIconPack"; "ipKeepSearchFilter": "ipKeepSearchFilter"; "ipUseRootViewContainer": "ipUseRootViewContainer"; "ipButtonStyleClass": "ipButtonStyleClass"; "ipDivSearchStyleClass": "ipDivSearchStyleClass"; "ipInputSearchStyleClass": "ipInputSearchStyleClass"; }, { "iconPickerSelect": "iconPickerSelect"; "iconPickerOpen": "iconPickerOpen"; "iconPickerClose": "iconPickerClose"; "iconPickerFocus": "iconPickerFocus"; }, never, never, false, never>;
40
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./icon-picker.component";
3
+ import * as i2 from "./icon-picker.directive";
4
+ import * as i3 from "./text.directive";
5
+ import * as i4 from "./search-icon.pipe";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@fortawesome/angular-fontawesome";
8
+ export declare class IconPickerModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IconPickerModule, [typeof i1.IconPickerComponent, typeof i2.IconPickerDirective, typeof i3.TextDirective, typeof i4.SearchIconPipe], [typeof i5.CommonModule, typeof i6.FontAwesomeModule], [typeof i2.IconPickerDirective]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<IconPickerModule>;
12
+ }
@@ -0,0 +1,15 @@
1
+ import { Icon } from './icon';
2
+ import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IconPickerService {
5
+ protected faIconLibrary: FaIconLibrary;
6
+ private fa4IconsPack;
7
+ private fa5IconsPack;
8
+ private fa6IconsPack;
9
+ private matIconsPack;
10
+ private primeIconsPack;
11
+ constructor(faIconLibrary: FaIconLibrary);
12
+ getIcons(ipIconPacks: string[]): Icon[];
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<IconPickerService>;
15
+ }
package/lib/icon.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { IconName } from '@fortawesome/fontawesome-svg-core';
2
+ export declare class Icon {
3
+ name: string;
4
+ id: string;
5
+ filter?: string[];
6
+ aliases?: string[];
7
+ type?: IconType;
8
+ iconName?: IconName;
9
+ prefix?: string;
10
+ }
11
+ export declare enum IconType {
12
+ FontAwesome = 0,
13
+ FontAwesome5 = 2,
14
+ Material = 3,
15
+ FontAwesome6 = 4,
16
+ PrimeIcons = 5
17
+ }
@@ -0,0 +1,4 @@
1
+ import { Icon } from './icon';
2
+ export interface IconsPack {
3
+ getIcons(): Icon[];
4
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from './icon';
2
+ export * from './icon-picker.component';
3
+ export * from './icon-picker.directive';
4
+ export * from './icon-picker.module';
5
+ export * from './icon-picker.service';
@@ -0,0 +1,5 @@
1
+ import { Icon } from '../icon';
2
+ import { IconsPack } from '../icons-pack';
3
+ export declare class FontAwesome4IconsPack implements IconsPack {
4
+ getIcons(): Icon[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Icon } from '../icon';
2
+ import { IconsPack } from '../icons-pack';
3
+ export declare class FontAwesome5IconsPack implements IconsPack {
4
+ getIcons(): Icon[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Icon } from '../icon';
2
+ import { IconsPack } from '../icons-pack';
3
+ export declare class FontAwesome6IconsPack implements IconsPack {
4
+ getIcons(): Icon[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Icon } from '../icon';
2
+ import { IconsPack } from '../icons-pack';
3
+ export declare class MaterialIconsPack implements IconsPack {
4
+ getIcons(): Icon[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import { IconsPack } from '../icons-pack';
2
+ import { Icon } from '../icon';
3
+ export declare class PrimeIconsPack implements IconsPack {
4
+ getIcons(): Icon[];
5
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Icon } from './icon';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SearchIconPipe implements PipeTransform {
5
+ transform(value: Icon[], search: string): Icon[];
6
+ clean(value: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchIconPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<SearchIconPipe, "searchIcon", false>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TextDirective {
4
+ newValue: EventEmitter<string>;
5
+ text: string;
6
+ changeInput(value: string): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextDirective, "[text]", never, { "text": "text"; }, { "newValue": "newValue"; }, never, never, false, never>;
9
+ }
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "ngx-ntk-icon-picker",
3
+ "version": "18.3.1",
4
+ "description": "Ntk Cms Api And Model For Typscript",
5
+ "author": "Alireza-Karavi",
6
+ "license": "ISC",
7
+ "keywords": [
8
+ "NTK",
9
+ "KARAVI",
10
+ "SMS",
11
+ "news",
12
+ "api"
13
+ ],
14
+ "peerDependencies": {
15
+ "@angular/common": ">=10.0.0",
16
+ "@angular/core": ">=10.0.0",
17
+ "@fortawesome/angular-fontawesome": ">=0.10.2",
18
+ "@fortawesome/fontawesome-svg-core": ">=6.1.1",
19
+ "@fortawesome/free-solid-svg-icons": ">=6.1.1",
20
+ "primeicons": ">=5.0.0"
21
+ },
22
+ "dependencies": {
23
+ "tslib": "^2.3.0"
24
+ },
25
+ "module": "fesm2015/ngx-ntk-icon-picker.mjs",
26
+ "es2020": "fesm2020/ngx-ntk-icon-picker.mjs",
27
+ "esm2020": "esm2020/ngx-ntk-icon-picker.mjs",
28
+ "fesm2020": "fesm2020/ngx-ntk-icon-picker.mjs",
29
+ "fesm2015": "fesm2015/ngx-ntk-icon-picker.mjs",
30
+ "typings": "index.d.ts",
31
+ "exports": {
32
+ "./package.json": {
33
+ "default": "./package.json"
34
+ },
35
+ ".": {
36
+ "types": "./index.d.ts",
37
+ "esm2020": "./esm2020/ngx-ntk-icon-picker.mjs",
38
+ "es2020": "./fesm2020/ngx-ntk-icon-picker.mjs",
39
+ "es2015": "./fesm2015/ngx-ntk-icon-picker.mjs",
40
+ "node": "./fesm2015/ngx-ntk-icon-picker.mjs",
41
+ "default": "./fesm2020/ngx-ntk-icon-picker.mjs"
42
+ }
43
+ },
44
+ "sideEffects": false
45
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/index';