@fitcoders/shared 1.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 +24 -0
- package/esm2020/fitcoders-shared.mjs +5 -0
- package/esm2020/lib/constant/shared.const.mjs +200 -0
- package/esm2020/lib/directive/directive-api.mjs +9 -0
- package/esm2020/lib/directive/directive.module.mjs +47 -0
- package/esm2020/lib/directive/directives/control-error.directive.mjs +89 -0
- package/esm2020/lib/directive/directives/hover.directive.mjs +42 -0
- package/esm2020/lib/directive/directives/input.directive.mjs +48 -0
- package/esm2020/lib/directive/directives/scroll.directive.mjs +45 -0
- package/esm2020/lib/directive/directives/sensitive.directive.mjs +32 -0
- package/esm2020/lib/pipe/pipe-api.mjs +5 -0
- package/esm2020/lib/pipe/pipe.module.mjs +31 -0
- package/esm2020/lib/pipe/pipes/money.pipe.mjs +28 -0
- package/esm2020/public-api.mjs +4 -0
- package/fesm2015/fitcoders-shared.mjs +550 -0
- package/fesm2015/fitcoders-shared.mjs.map +1 -0
- package/fesm2020/fitcoders-shared.mjs +550 -0
- package/fesm2020/fitcoders-shared.mjs.map +1 -0
- package/fitcoders-shared.d.ts +5 -0
- package/lib/constant/shared.const.d.ts +199 -0
- package/lib/directive/directive-api.d.ts +6 -0
- package/lib/directive/directive.module.d.ts +12 -0
- package/lib/directive/directives/control-error.directive.d.ts +25 -0
- package/lib/directive/directives/hover.directive.d.ts +13 -0
- package/lib/directive/directives/input.directive.d.ts +14 -0
- package/lib/directive/directives/scroll.directive.d.ts +16 -0
- package/lib/directive/directives/sensitive.directive.d.ts +10 -0
- package/lib/pipe/pipe-api.d.ts +2 -0
- package/lib/pipe/pipe.module.d.ts +8 -0
- package/lib/pipe/pipes/money.pipe.d.ts +13 -0
- package/package.json +31 -0
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitcoders-shared.mjs","sources":["../../../projects/shared/src/lib/constant/shared.const.ts","../../../projects/shared/src/lib/directive/directives/hover.directive.ts","../../../projects/shared/src/lib/directive/directives/input.directive.ts","../../../projects/shared/src/lib/directive/directives/scroll.directive.ts","../../../projects/shared/src/lib/directive/directives/sensitive.directive.ts","../../../projects/shared/src/lib/directive/directives/control-error.directive.ts","../../../projects/shared/src/lib/directive/directive.module.ts","../../../projects/shared/src/lib/directive/directive-api.ts","../../../projects/shared/src/lib/pipe/pipes/money.pipe.ts","../../../projects/shared/src/lib/pipe/pipe.module.ts","../../../projects/shared/src/lib/pipe/pipe-api.ts","../../../projects/shared/src/fitcoders-shared.ts"],"sourcesContent":["export const FitRegexConst = {\r\n number: new RegExp(/^[0-9]\\d*$/),\r\n decimal: new RegExp(/^[0-9]+(\\.[0-9]*){0,1}$/),\r\n percent: new RegExp(/^[1-9][0-9]*$/),\r\n alphabetical: /^[a-zA-Z\\u00C0-\\u00FF]+$/,\r\n alphabeticals: /^[a-zA-Z\\u00C0-\\u00FF ]+$/,\r\n alphanumeric: new RegExp(/^[0-9a-zA-Z\\u00C0-\\u00FF]+$/),\r\n alphanumerics: new RegExp(/^[0-9a-zA-Z\\u00C0-\\u00FF ]+$/),\r\n cell: new RegExp(/^9[0-9]*$/),\r\n noSpaces: new RegExp(/^\\S*$/gmi)\r\n};\r\n\r\nexport const FitCurrencyConst = {\r\n AED: 'د.إ',\r\n AFN: '؋',\r\n ALL: 'L',\r\n AMD: '֏',\r\n ANG: 'ƒ',\r\n AOA: 'Kz',\r\n ARS: '$',\r\n AUD: '$',\r\n AWG: 'ƒ',\r\n AZN: '₼',\r\n BAM: 'KM',\r\n BBD: '$',\r\n BDT: '৳',\r\n BGN: 'лв',\r\n BHD: '.د.ب',\r\n BIF: 'FBu',\r\n BMD: '$',\r\n BND: '$',\r\n BOB: '$b',\r\n BOV: 'BOV',\r\n BRL: 'R$',\r\n BSD: '$',\r\n BTC: '₿',\r\n BTN: 'Nu.',\r\n BWP: 'P',\r\n BYN: 'Br',\r\n BYR: 'Br',\r\n BZD: 'BZ$',\r\n CAD: '$',\r\n CDF: 'FC',\r\n CHE: 'CHE',\r\n CHF: 'CHF',\r\n CHW: 'CHW',\r\n CLF: 'CLF',\r\n CLP: '$',\r\n CNY: '¥',\r\n COP: '$',\r\n COU: 'COU',\r\n CRC: '₡',\r\n CUC: '$',\r\n CUP: '₱',\r\n CVE: '$',\r\n CZK: 'Kč',\r\n DJF: 'Fdj',\r\n DKK: 'kr',\r\n DOP: 'RD$',\r\n DZD: 'دج',\r\n EEK: 'kr',\r\n EGP: '£',\r\n ERN: 'Nfk',\r\n ETB: 'Br',\r\n ETH: 'Ξ',\r\n EUR: '€',\r\n FJD: '$',\r\n FKP: '£',\r\n GBP: '£',\r\n GEL: '₾',\r\n GGP: '£',\r\n GHC: '₵',\r\n GHS: 'GH₵',\r\n GIP: '£',\r\n GMD: 'D',\r\n GNF: 'FG',\r\n GTQ: 'Q',\r\n GYD: '$',\r\n HKD: '$',\r\n HNL: 'L',\r\n HRK: 'kn',\r\n HTG: 'G',\r\n HUF: 'Ft',\r\n IDR: 'Rp',\r\n ILS: '₪',\r\n IMP: '£',\r\n INR: '₹',\r\n IQD: 'ع.د',\r\n IRR: '﷼',\r\n ISK: 'kr',\r\n JEP: '£',\r\n JMD: 'J$',\r\n JOD: 'JD',\r\n JPY: '¥',\r\n KES: 'KSh',\r\n KGS: 'лв',\r\n KHR: '៛',\r\n KMF: 'CF',\r\n KPW: '₩',\r\n KRW: '₩',\r\n KWD: 'KD',\r\n KYD: '$',\r\n KZT: '₸',\r\n LAK: '₭',\r\n LBP: '£',\r\n LKR: '₨',\r\n LRD: '$',\r\n LSL: 'M',\r\n LTC: 'Ł',\r\n LTL: 'Lt',\r\n LVL: 'Ls',\r\n LYD: 'LD',\r\n MAD: 'MAD',\r\n MDL: 'lei',\r\n MGA: 'Ar',\r\n MKD: 'ден',\r\n MMK: 'K',\r\n MNT: '₮',\r\n MOP: 'MOP$',\r\n MRO: 'UM',\r\n MRU: 'UM',\r\n MUR: '₨',\r\n MVR: 'Rf',\r\n MWK: 'MK',\r\n MXN: '$',\r\n MXV: 'MXV',\r\n MYR: 'RM',\r\n MZN: 'MT',\r\n NAD: '$',\r\n NGN: '₦',\r\n NIO: 'C$',\r\n NOK: 'kr',\r\n NPR: '₨',\r\n NZD: '$',\r\n OMR: '﷼',\r\n PAB: 'B/.',\r\n PEN: 'S/.',\r\n PGK: 'K',\r\n PHP: '₱',\r\n PKR: '₨',\r\n PLN: 'zł',\r\n PYG: 'Gs',\r\n QAR: '﷼',\r\n RMB: '¥',\r\n RON: 'lei',\r\n RSD: 'Дин.',\r\n RUB: '₽',\r\n RWF: 'R₣',\r\n SAR: '﷼',\r\n SBD: '$',\r\n SCR: '₨',\r\n SDG: 'ج.س.',\r\n SEK: 'kr',\r\n SGD: 'S$',\r\n SHP: '£',\r\n SLL: 'Le',\r\n SOS: 'S',\r\n SRD: '$',\r\n SSP: '£',\r\n STD: 'Db',\r\n STN: 'Db',\r\n SVC: '$',\r\n SYP: '£',\r\n SZL: 'E',\r\n THB: '฿',\r\n TJS: 'SM',\r\n TMT: 'T',\r\n TND: 'د.ت',\r\n TOP: 'T$',\r\n TRL: '₤',\r\n TRY: '₺',\r\n TTD: 'TT$',\r\n TVD: '$',\r\n TWD: 'NT$',\r\n TZS: 'TSh',\r\n UAH: '₴',\r\n UGX: 'USh',\r\n USD: '$',\r\n UYI: 'UYI',\r\n UYU: '$U',\r\n UYW: 'UYW',\r\n UZS: 'лв',\r\n VEF: 'Bs',\r\n VES: 'Bs.S',\r\n VND: '₫',\r\n VUV: 'VT',\r\n WST: 'WS$',\r\n XAF: 'FCFA',\r\n XBT: 'Ƀ',\r\n XCD: '$',\r\n XOF: 'CFA',\r\n XPF: '₣',\r\n XSU: 'Sucre',\r\n XUA: 'XUA',\r\n YER: '﷼',\r\n ZAR: 'R',\r\n ZMW: 'ZK',\r\n ZWD: 'Z$',\r\n ZWL: '$'\r\n};\r\n","import {Directive, ElementRef, HostListener, Input} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[fitHover]'\r\n})\r\nexport class HoverDirective {\r\n @Input('fitHover') hover = '';\r\n\r\n constructor(private readonly elementRef: ElementRef) {\r\n }\r\n\r\n @HostListener('mouseenter') onMouseEnter() {\r\n this.setHoverEffect();\r\n }\r\n\r\n @HostListener('mouseleave') onMouseLeave() {\r\n this.removeHoverEffect();\r\n }\r\n\r\n private setHoverEffect() {\r\n for (const _class of this.hover.split(' ')) {\r\n this.elementRef.nativeElement.classList.add(_class);\r\n }\r\n }\r\n\r\n private removeHoverEffect() {\r\n for (const _class of this.hover.split(' ')) {\r\n this.elementRef.nativeElement.classList.remove(_class);\r\n }\r\n }\r\n}\r\n","import {Directive, ElementRef, HostListener, Input} from '@angular/core';\r\nimport {FitRegexConst} from '../../constant/shared.const';\r\n\r\nexport type FitPattern = '' | 'number' | 'decimal' | 'percent' | 'alphabetical' | 'alphanumeric' | 'cell' | 'noSpaces';\r\n\r\n@Directive({\r\n selector: '[fitInput]'\r\n})\r\nexport class InputDirective {\r\n @Input('fitInput') input: FitPattern = '';\r\n @Input() space = false;\r\n\r\n private _regex: any = FitRegexConst;\r\n private _specialKeys = ['Backspace', 'Tab', 'Enter', 'Escape', 'End', 'Home', 'ArrowLeft', 'ArrowRight', 'Delete'];\r\n\r\n constructor(private el: ElementRef) {\r\n }\r\n\r\n @HostListener('keydown', ['$event'])\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.input) {\r\n return;\r\n }\r\n if (this._specialKeys.indexOf(event.key) !== -1\r\n || (event.keyCode === 65 && event.ctrlKey) // Allow: Ctrl+A\r\n || (event.keyCode === 67 && event.ctrlKey) // Allow: Ctrl+C\r\n || (event.keyCode === 86 && event.ctrlKey) // Allow: Ctrl+V\r\n || (event.keyCode === 88 && event.ctrlKey) // Allow: Ctrl+X\r\n ) {\r\n return;\r\n }\r\n\r\n const current: string = this.el.nativeElement.value;\r\n const next: string = current.concat(event.key);\r\n const input = this.space && (this.input === 'alphabetical' || this.input === 'alphanumeric') ? `${this.input}s` : this.input;\r\n if (next && !String(next).match(this._regex[input])) {\r\n event.preventDefault();\r\n }\r\n }\r\n}\r\n","import {Directive, HostListener, Output, EventEmitter, Input} from '@angular/core';\r\n\r\nexport type SE = {\r\n header: boolean,\r\n bottom: boolean\r\n};\r\n\r\ndeclare const window: Window;\r\n\r\n@Directive({\r\n selector: '[fitScroll]'\r\n})\r\n\r\nexport class ScrollDirective {\r\n @Output() public onScroll = new EventEmitter<SE>();\r\n\r\n constructor() {\r\n }\r\n\r\n @HostListener('scroll', ['$event'])\r\n public scrolled($event: Event) {\r\n this.elementSE($event);\r\n }\r\n\r\n @HostListener('window:scroll', ['$event'])\r\n public windowScrolled($event: Event) {\r\n this.windowSE($event);\r\n }\r\n\r\n protected windowSE($event: Event) {\r\n const target = <Document> $event.target;\r\n const scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\r\n const header = scrollTop < 200;\r\n const bottom = scrollTop > 200;\r\n const emitVal: SE = {header, bottom};\r\n this.onScroll.emit(emitVal);\r\n }\r\n\r\n protected elementSE($event: Event) {\r\n const target = <HTMLElement> $event.target;\r\n const header = target.scrollTop < 200;\r\n const bottom = target.scrollTop > 200;\r\n const emitVal: SE = {header, bottom};\r\n this.onScroll.emit(emitVal);\r\n }\r\n\r\n}\r\n","import {Directive, ElementRef, HostListener, Input} from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[fitSensitive]'\r\n})\r\nexport class SensitiveDirective {\r\n @Input('fitSensitive') caseType: 'upper' | 'lower' | '' = '';\r\n\r\n constructor(private _el: ElementRef) {\r\n }\r\n\r\n @HostListener('input', ['$event']) onKeyUp(event: any) {\r\n const value = event.target.value;\r\n if (this.caseType === 'upper') {\r\n event.target.value = value.toUpperCase();\r\n } else if (this.caseType === 'lower') {\r\n event.target.value = value.toLowerCase();\r\n }\r\n }\r\n}\r\n","import {AfterViewInit, Directive, ElementRef, Input, Renderer2} from '@angular/core';\r\nimport {AbstractControl} from '@angular/forms';\r\n\r\n@Directive({\r\n selector: '[fitControlError]'\r\n})\r\nexport class ControlErrorDirective implements AfterViewInit {\r\n private FORMAT = 'DD/MM/YYYY';\r\n private _control: AbstractControl | undefined;\r\n\r\n @Input() msgRequired = 'El campo es obligatorio';\r\n @Input() msgMinlength = 'Ingrese mínimo {requiredLength} caracteres';\r\n @Input() msgMaxlength = 'Ingrese máximo {requiredLength} caracteres';\r\n @Input() msgPattern = 'El formato del valor es inválido';\r\n @Input() msgInvalidDate = 'La fecha es inválida';\r\n @Input() msgMinDate = 'La fecha mínima es {minDate}';\r\n @Input() msgMaxDate = 'La fecha máxima es {maxDate}';\r\n\r\n @Input()\r\n set control(value: AbstractControl) {\r\n this._control = value;\r\n this._control.valueChanges.subscribe(() => {\r\n this.loadError();\r\n });\r\n }\r\n\r\n get control(): AbstractControl {\r\n return <AbstractControl>this._control;\r\n }\r\n\r\n constructor(private readonly _elementRef: ElementRef,\r\n private readonly render2: Renderer2) {\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.removeHtml();\r\n }\r\n\r\n private loadError() {\r\n if (this.control && (this.control.dirty || this.control.touched) && this.control.errors) {\r\n this.removeHtml();\r\n if (this.control.errors['required'] && !this.control.errors['matDatepickerParse']) {\r\n this.createHtml(this.msgRequired);\r\n } else if (this.control.errors['minlength']) {\r\n this.createHtml(this.msgMinlength.replace('{requiredLength}', this.control.errors['minlength'].requiredLength));\r\n } else if (this.control.errors['maxlength'] && !this.control.errors['minlength']) {\r\n this.createHtml(this.msgMaxlength.replace('{requiredLength}', this.control.errors['maxlength'].requiredLength));\r\n } else if (this.control.errors['pattern'] && !this.control.errors['maxlength'] && !this.control.errors['minlength']) {\r\n this.createHtml(this.msgPattern);\r\n } else if (this.control.errors['matDatepickerParse'] && this.control.errors['matDatepickerParse'].text) {\r\n this.createHtml(this.msgInvalidDate);\r\n } else if (this.control.errors['matDatepickerMin'] && this.control.errors['matDatepickerMin'].min) {\r\n const minDate = this.control.errors['matDatepickerMin'].min.format(this.FORMAT);\r\n this.createHtml(this.msgMinDate.replace('{minDate}', minDate));\r\n } else if (this.control.errors['matDatepickerMax'] && this.control.errors['matDatepickerMax'].max) {\r\n const maxDate = this.control.errors['matDatepickerMax'].max.format(this.FORMAT);\r\n this.createHtml(this.msgMaxDate.replace('{maxDate}', maxDate));\r\n }\r\n }\r\n }\r\n\r\n private removeHtml() {\r\n if (this._elementRef.nativeElement.firstChild) {\r\n this._elementRef.nativeElement.removeChild(this._elementRef.nativeElement.firstChild);\r\n }\r\n }\r\n\r\n private createHtml(message: string) {\r\n this.render2.setProperty(this._elementRef.nativeElement, 'innerHTML', message);\r\n }\r\n}\r\n","import {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {InputDirective} from './directives/input.directive';\r\nimport {SensitiveDirective} from './directives/sensitive.directive';\r\nimport {ControlErrorDirective} from './directives/control-error.directive';\r\nimport {ScrollDirective} from \"./directives/scroll.directive\";\r\nimport {HoverDirective} from './directives/hover.directive';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n declarations: [\r\n InputDirective,\r\n SensitiveDirective,\r\n ControlErrorDirective,\r\n ScrollDirective,\r\n HoverDirective\r\n ],\r\n exports: [\r\n InputDirective,\r\n SensitiveDirective,\r\n ControlErrorDirective,\r\n ScrollDirective,\r\n HoverDirective\r\n ],\r\n providers: []\r\n})\r\nexport class DirectiveModule {\r\n}\r\n","// directives\nexport * from './directives/hover.directive';\nexport * from './directives/input.directive';\nexport * from './directives/scroll.directive';\nexport * from './directives/sensitive.directive';\nexport * from './directives/control-error.directive';\n\n// modules\nexport * from './directive.module';\n","import {DecimalPipe} from '@angular/common';\nimport {Pipe, PipeTransform} from '@angular/core';\nimport {FitCurrencyConst, FitRegexConst} from '../../constant/shared.const';\n\n@Pipe({\n name: 'fitMoney'\n})\nexport class MoneyPipe implements PipeTransform {\n private _currency: any = FitCurrencyConst;\n private _defaultCurrency = 'PEN';\n private _defaultDecimal = 2;\n\n constructor(private readonly decimalPipe: DecimalPipe) {\n }\n\n transform(value: number | string, currency = this._defaultCurrency, decimal = this._defaultDecimal): string {\n const format = `.${decimal}-${decimal}`;\n if (value && `${value}`.match(FitRegexConst.decimal)) {\n return `${this._currency[currency]} ${this.decimalPipe.transform(Number(value), (format))}`;\n }\n return `${this._currency[currency]} ${this.decimalPipe.transform(0, (format))}`;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule, DecimalPipe} from '@angular/common';\nimport {MoneyPipe} from './pipes/money.pipe';\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [\n MoneyPipe\n ],\n exports: [\n MoneyPipe\n ],\n providers: [\n DecimalPipe\n ]\n})\nexport class PipeModule {\n}\n","// pipes\nexport * from './pipes/money.pipe';\n\n// modules\nexport * from './pipe.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAAa,aAAa,GAAG;IAC3B,MAAM,EAAE,IAAI,MAAM,CAAC,YAAY,CAAC;IAChC,OAAO,EAAE,IAAI,MAAM,CAAC,yBAAyB,CAAC;IAC9C,OAAO,EAAE,IAAI,MAAM,CAAC,eAAe,CAAC;IACpC,YAAY,EAAE,0BAA0B;IACxC,aAAa,EAAE,2BAA2B;IAC1C,YAAY,EAAE,IAAI,MAAM,CAAC,6BAA6B,CAAC;IACvD,aAAa,EAAE,IAAI,MAAM,CAAC,8BAA8B,CAAC;IACzD,IAAI,EAAE,IAAI,MAAM,CAAC,WAAW,CAAC;IAC7B,QAAQ,EAAE,IAAI,MAAM,CAAC,UAAU,CAAC;EAChC;MAEW,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG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+
export declare const FitRegexConst: {
|
|
2
|
+
number: RegExp;
|
|
3
|
+
decimal: RegExp;
|
|
4
|
+
percent: RegExp;
|
|
5
|
+
alphabetical: RegExp;
|
|
6
|
+
alphabeticals: RegExp;
|
|
7
|
+
alphanumeric: RegExp;
|
|
8
|
+
alphanumerics: RegExp;
|
|
9
|
+
cell: RegExp;
|
|
10
|
+
noSpaces: RegExp;
|
|
11
|
+
};
|
|
12
|
+
export declare const FitCurrencyConst: {
|
|
13
|
+
AED: string;
|
|
14
|
+
AFN: string;
|
|
15
|
+
ALL: string;
|
|
16
|
+
AMD: string;
|
|
17
|
+
ANG: string;
|
|
18
|
+
AOA: string;
|
|
19
|
+
ARS: string;
|
|
20
|
+
AUD: string;
|
|
21
|
+
AWG: string;
|
|
22
|
+
AZN: string;
|
|
23
|
+
BAM: string;
|
|
24
|
+
BBD: string;
|
|
25
|
+
BDT: string;
|
|
26
|
+
BGN: string;
|
|
27
|
+
BHD: string;
|
|
28
|
+
BIF: string;
|
|
29
|
+
BMD: string;
|
|
30
|
+
BND: string;
|
|
31
|
+
BOB: string;
|
|
32
|
+
BOV: string;
|
|
33
|
+
BRL: string;
|
|
34
|
+
BSD: string;
|
|
35
|
+
BTC: string;
|
|
36
|
+
BTN: string;
|
|
37
|
+
BWP: string;
|
|
38
|
+
BYN: string;
|
|
39
|
+
BYR: string;
|
|
40
|
+
BZD: string;
|
|
41
|
+
CAD: string;
|
|
42
|
+
CDF: string;
|
|
43
|
+
CHE: string;
|
|
44
|
+
CHF: string;
|
|
45
|
+
CHW: string;
|
|
46
|
+
CLF: string;
|
|
47
|
+
CLP: string;
|
|
48
|
+
CNY: string;
|
|
49
|
+
COP: string;
|
|
50
|
+
COU: string;
|
|
51
|
+
CRC: string;
|
|
52
|
+
CUC: string;
|
|
53
|
+
CUP: string;
|
|
54
|
+
CVE: string;
|
|
55
|
+
CZK: string;
|
|
56
|
+
DJF: string;
|
|
57
|
+
DKK: string;
|
|
58
|
+
DOP: string;
|
|
59
|
+
DZD: string;
|
|
60
|
+
EEK: string;
|
|
61
|
+
EGP: string;
|
|
62
|
+
ERN: string;
|
|
63
|
+
ETB: string;
|
|
64
|
+
ETH: string;
|
|
65
|
+
EUR: string;
|
|
66
|
+
FJD: string;
|
|
67
|
+
FKP: string;
|
|
68
|
+
GBP: string;
|
|
69
|
+
GEL: string;
|
|
70
|
+
GGP: string;
|
|
71
|
+
GHC: string;
|
|
72
|
+
GHS: string;
|
|
73
|
+
GIP: string;
|
|
74
|
+
GMD: string;
|
|
75
|
+
GNF: string;
|
|
76
|
+
GTQ: string;
|
|
77
|
+
GYD: string;
|
|
78
|
+
HKD: string;
|
|
79
|
+
HNL: string;
|
|
80
|
+
HRK: string;
|
|
81
|
+
HTG: string;
|
|
82
|
+
HUF: string;
|
|
83
|
+
IDR: string;
|
|
84
|
+
ILS: string;
|
|
85
|
+
IMP: string;
|
|
86
|
+
INR: string;
|
|
87
|
+
IQD: string;
|
|
88
|
+
IRR: string;
|
|
89
|
+
ISK: string;
|
|
90
|
+
JEP: string;
|
|
91
|
+
JMD: string;
|
|
92
|
+
JOD: string;
|
|
93
|
+
JPY: string;
|
|
94
|
+
KES: string;
|
|
95
|
+
KGS: string;
|
|
96
|
+
KHR: string;
|
|
97
|
+
KMF: string;
|
|
98
|
+
KPW: string;
|
|
99
|
+
KRW: string;
|
|
100
|
+
KWD: string;
|
|
101
|
+
KYD: string;
|
|
102
|
+
KZT: string;
|
|
103
|
+
LAK: string;
|
|
104
|
+
LBP: string;
|
|
105
|
+
LKR: string;
|
|
106
|
+
LRD: string;
|
|
107
|
+
LSL: string;
|
|
108
|
+
LTC: string;
|
|
109
|
+
LTL: string;
|
|
110
|
+
LVL: string;
|
|
111
|
+
LYD: string;
|
|
112
|
+
MAD: string;
|
|
113
|
+
MDL: string;
|
|
114
|
+
MGA: string;
|
|
115
|
+
MKD: string;
|
|
116
|
+
MMK: string;
|
|
117
|
+
MNT: string;
|
|
118
|
+
MOP: string;
|
|
119
|
+
MRO: string;
|
|
120
|
+
MRU: string;
|
|
121
|
+
MUR: string;
|
|
122
|
+
MVR: string;
|
|
123
|
+
MWK: string;
|
|
124
|
+
MXN: string;
|
|
125
|
+
MXV: string;
|
|
126
|
+
MYR: string;
|
|
127
|
+
MZN: string;
|
|
128
|
+
NAD: string;
|
|
129
|
+
NGN: string;
|
|
130
|
+
NIO: string;
|
|
131
|
+
NOK: string;
|
|
132
|
+
NPR: string;
|
|
133
|
+
NZD: string;
|
|
134
|
+
OMR: string;
|
|
135
|
+
PAB: string;
|
|
136
|
+
PEN: string;
|
|
137
|
+
PGK: string;
|
|
138
|
+
PHP: string;
|
|
139
|
+
PKR: string;
|
|
140
|
+
PLN: string;
|
|
141
|
+
PYG: string;
|
|
142
|
+
QAR: string;
|
|
143
|
+
RMB: string;
|
|
144
|
+
RON: string;
|
|
145
|
+
RSD: string;
|
|
146
|
+
RUB: string;
|
|
147
|
+
RWF: string;
|
|
148
|
+
SAR: string;
|
|
149
|
+
SBD: string;
|
|
150
|
+
SCR: string;
|
|
151
|
+
SDG: string;
|
|
152
|
+
SEK: string;
|
|
153
|
+
SGD: string;
|
|
154
|
+
SHP: string;
|
|
155
|
+
SLL: string;
|
|
156
|
+
SOS: string;
|
|
157
|
+
SRD: string;
|
|
158
|
+
SSP: string;
|
|
159
|
+
STD: string;
|
|
160
|
+
STN: string;
|
|
161
|
+
SVC: string;
|
|
162
|
+
SYP: string;
|
|
163
|
+
SZL: string;
|
|
164
|
+
THB: string;
|
|
165
|
+
TJS: string;
|
|
166
|
+
TMT: string;
|
|
167
|
+
TND: string;
|
|
168
|
+
TOP: string;
|
|
169
|
+
TRL: string;
|
|
170
|
+
TRY: string;
|
|
171
|
+
TTD: string;
|
|
172
|
+
TVD: string;
|
|
173
|
+
TWD: string;
|
|
174
|
+
TZS: string;
|
|
175
|
+
UAH: string;
|
|
176
|
+
UGX: string;
|
|
177
|
+
USD: string;
|
|
178
|
+
UYI: string;
|
|
179
|
+
UYU: string;
|
|
180
|
+
UYW: string;
|
|
181
|
+
UZS: string;
|
|
182
|
+
VEF: string;
|
|
183
|
+
VES: string;
|
|
184
|
+
VND: string;
|
|
185
|
+
VUV: string;
|
|
186
|
+
WST: string;
|
|
187
|
+
XAF: string;
|
|
188
|
+
XBT: string;
|
|
189
|
+
XCD: string;
|
|
190
|
+
XOF: string;
|
|
191
|
+
XPF: string;
|
|
192
|
+
XSU: string;
|
|
193
|
+
XUA: string;
|
|
194
|
+
YER: string;
|
|
195
|
+
ZAR: string;
|
|
196
|
+
ZMW: string;
|
|
197
|
+
ZWD: string;
|
|
198
|
+
ZWL: string;
|
|
199
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './directives/hover.directive';
|
|
2
|
+
export * from './directives/input.directive';
|
|
3
|
+
export * from './directives/scroll.directive';
|
|
4
|
+
export * from './directives/sensitive.directive';
|
|
5
|
+
export * from './directives/control-error.directive';
|
|
6
|
+
export * from './directive.module';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./directives/input.directive";
|
|
3
|
+
import * as i2 from "./directives/sensitive.directive";
|
|
4
|
+
import * as i3 from "./directives/control-error.directive";
|
|
5
|
+
import * as i4 from "./directives/scroll.directive";
|
|
6
|
+
import * as i5 from "./directives/hover.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
export declare class DirectiveModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DirectiveModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DirectiveModule, [typeof i1.InputDirective, typeof i2.SensitiveDirective, typeof i3.ControlErrorDirective, typeof i4.ScrollDirective, typeof i5.HoverDirective], [typeof i6.CommonModule], [typeof i1.InputDirective, typeof i2.SensitiveDirective, typeof i3.ControlErrorDirective, typeof i4.ScrollDirective, typeof i5.HoverDirective]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DirectiveModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ControlErrorDirective implements AfterViewInit {
|
|
5
|
+
private readonly _elementRef;
|
|
6
|
+
private readonly render2;
|
|
7
|
+
private FORMAT;
|
|
8
|
+
private _control;
|
|
9
|
+
msgRequired: string;
|
|
10
|
+
msgMinlength: string;
|
|
11
|
+
msgMaxlength: string;
|
|
12
|
+
msgPattern: string;
|
|
13
|
+
msgInvalidDate: string;
|
|
14
|
+
msgMinDate: string;
|
|
15
|
+
msgMaxDate: string;
|
|
16
|
+
set control(value: AbstractControl);
|
|
17
|
+
get control(): AbstractControl;
|
|
18
|
+
constructor(_elementRef: ElementRef, render2: Renderer2);
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
private loadError;
|
|
21
|
+
private removeHtml;
|
|
22
|
+
private createHtml;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorDirective, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorDirective, "[fitControlError]", never, { "msgRequired": "msgRequired"; "msgMinlength": "msgMinlength"; "msgMaxlength": "msgMaxlength"; "msgPattern": "msgPattern"; "msgInvalidDate": "msgInvalidDate"; "msgMinDate": "msgMinDate"; "msgMaxDate": "msgMaxDate"; "control": "control"; }, {}, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HoverDirective {
|
|
4
|
+
private readonly elementRef;
|
|
5
|
+
hover: string;
|
|
6
|
+
constructor(elementRef: ElementRef);
|
|
7
|
+
onMouseEnter(): void;
|
|
8
|
+
onMouseLeave(): void;
|
|
9
|
+
private setHoverEffect;
|
|
10
|
+
private removeHoverEffect;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverDirective, "[fitHover]", never, { "hover": "fitHover"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare type FitPattern = '' | 'number' | 'decimal' | 'percent' | 'alphabetical' | 'alphanumeric' | 'cell' | 'noSpaces';
|
|
4
|
+
export declare class InputDirective {
|
|
5
|
+
private el;
|
|
6
|
+
input: FitPattern;
|
|
7
|
+
space: boolean;
|
|
8
|
+
private _regex;
|
|
9
|
+
private _specialKeys;
|
|
10
|
+
constructor(el: ElementRef);
|
|
11
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "[fitInput]", never, { "input": "fitInput"; "space": "space"; }, {}, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare type SE = {
|
|
4
|
+
header: boolean;
|
|
5
|
+
bottom: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare class ScrollDirective {
|
|
8
|
+
onScroll: EventEmitter<SE>;
|
|
9
|
+
constructor();
|
|
10
|
+
scrolled($event: Event): void;
|
|
11
|
+
windowScrolled($event: Event): void;
|
|
12
|
+
protected windowSE($event: Event): void;
|
|
13
|
+
protected elementSE($event: Event): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollDirective, "[fitScroll]", never, {}, { "onScroll": "onScroll"; }, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SensitiveDirective {
|
|
4
|
+
private _el;
|
|
5
|
+
caseType: 'upper' | 'lower' | '';
|
|
6
|
+
constructor(_el: ElementRef);
|
|
7
|
+
onKeyUp(event: any): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SensitiveDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SensitiveDirective, "[fitSensitive]", never, { "caseType": "fitSensitive"; }, {}, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pipes/money.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class PipeModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PipeModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, [typeof i1.MoneyPipe], [typeof i2.CommonModule], [typeof i1.MoneyPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PipeModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DecimalPipe } from '@angular/common';
|
|
2
|
+
import { PipeTransform } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MoneyPipe implements PipeTransform {
|
|
5
|
+
private readonly decimalPipe;
|
|
6
|
+
private _currency;
|
|
7
|
+
private _defaultCurrency;
|
|
8
|
+
private _defaultDecimal;
|
|
9
|
+
constructor(decimalPipe: DecimalPipe);
|
|
10
|
+
transform(value: number | string, currency?: string, decimal?: number): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoneyPipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MoneyPipe, "fitMoney">;
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fitcoders/shared",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.1.0",
|
|
6
|
+
"@angular/core": "^13.1.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"module": "fesm2015/fitcoders-shared.mjs",
|
|
12
|
+
"es2020": "fesm2020/fitcoders-shared.mjs",
|
|
13
|
+
"esm2020": "esm2020/fitcoders-shared.mjs",
|
|
14
|
+
"fesm2020": "fesm2020/fitcoders-shared.mjs",
|
|
15
|
+
"fesm2015": "fesm2015/fitcoders-shared.mjs",
|
|
16
|
+
"typings": "fitcoders-shared.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./fitcoders-shared.d.ts",
|
|
23
|
+
"esm2020": "./esm2020/fitcoders-shared.mjs",
|
|
24
|
+
"es2020": "./fesm2020/fitcoders-shared.mjs",
|
|
25
|
+
"es2015": "./fesm2015/fitcoders-shared.mjs",
|
|
26
|
+
"node": "./fesm2015/fitcoders-shared.mjs",
|
|
27
|
+
"default": "./fesm2020/fitcoders-shared.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false
|
|
31
|
+
}
|
package/public-api.d.ts
ADDED