limitng 0.21.75 → 0.21.76

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.
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Pipe } from '@angular/core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { GlobalFunctions } from 'limitng/api';
5
+
6
+ class AyAdiPipe {
7
+ constructor() {
8
+ this.translateService = inject(TranslateService);
9
+ }
10
+ transform(ayNo) {
11
+ if ((ayNo === null) || (ayNo === undefined) || (ayNo === '')) {
12
+ return '';
13
+ }
14
+ const ayNoNumber = Number(ayNo);
15
+ if (!Number.isInteger(ayNoNumber)) {
16
+ return '';
17
+ }
18
+ if (ayNoNumber === 0) {
19
+ return this.translateService.instant('genel.tumu');
20
+ }
21
+ return GlobalFunctions.ayAdiVer(ayNoNumber, this.translateService.getCurrentLang());
22
+ }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: AyAdiPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
24
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.15", ngImport: i0, type: AyAdiPipe, isStandalone: true, name: "ayAdi", pure: false }); }
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: AyAdiPipe, decorators: [{
27
+ type: Pipe,
28
+ args: [{
29
+ name: 'ayAdi',
30
+ standalone: true,
31
+ pure: false
32
+ }]
33
+ }] });
34
+
35
+ /**
36
+ * Generated bundle index. Do not edit.
37
+ */
38
+
39
+ export { AyAdiPipe };
40
+ //# sourceMappingURL=limitng-pipes-ayAdiPipe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limitng-pipes-ayAdiPipe.mjs","sources":["../../src/app/components/pipes/ayAdiPipe/ayAdi.pipe.ts","../../src/app/components/pipes/ayAdiPipe/limitng-pipes-ayAdiPipe.ts"],"sourcesContent":["import { inject, Pipe, PipeTransform } from '@angular/core';\n\nimport { TranslateService } from '@ngx-translate/core';\n\nimport { GlobalFunctions } from 'limitng/api';\n\n@Pipe({\n name: 'ayAdi',\n standalone: true,\n pure: false\n})\nexport class AyAdiPipe implements PipeTransform {\n private readonly translateService = inject(TranslateService);\n\n transform(ayNo: number | string | null | undefined): string {\n if ((ayNo === null) || (ayNo === undefined) || (ayNo === '')) {\n return '';\n }\n\n const ayNoNumber = Number(ayNo);\n if (!Number.isInteger(ayNoNumber)) {\n return '';\n }\n\n if (ayNoNumber === 0) {\n return this.translateService.instant('genel.tumu');\n }\n\n return GlobalFunctions.ayAdiVer(ayNoNumber, this.translateService.getCurrentLang()\n );\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MAWa,SAAS,CAAA;AALtB,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAmB7D,IAAA;AAjBC,IAAA,SAAS,CAAC,IAAwC,EAAA;AAChD,QAAA,IAAI,CAAC,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,SAAS,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC,EAAE;AAC5D,YAAA,OAAO,EAAE;QACX;AAEA,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;AACjC,YAAA,OAAO,EAAE;QACX;AAEA,QAAA,IAAI,UAAU,KAAK,CAAC,EAAE;YACpB,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAAC;QACpD;AAEA,QAAA,OAAO,eAAe,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CACjF;IACH;+GAnBW,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,OAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA;;4FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBALrB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,OAAO;AACb,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACP,iBAAA;;;ACVD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limitng",
3
- "version": "0.21.75",
3
+ "version": "0.21.76",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "http://limitdestek.com:3000/Limit/LimitNG"
@@ -347,6 +347,10 @@
347
347
  "types": "./types/limitng-pipes.d.ts",
348
348
  "default": "./fesm2022/limitng-pipes.mjs"
349
349
  },
350
+ "./pipes/ayAdiPipe": {
351
+ "types": "./types/limitng-pipes-ayAdiPipe.d.ts",
352
+ "default": "./fesm2022/limitng-pipes-ayAdiPipe.mjs"
353
+ },
350
354
  "./pipes/boolToPlus.pipe": {
351
355
  "types": "./types/limitng-pipes-boolToPlus.pipe.d.ts",
352
356
  "default": "./fesm2022/limitng-pipes-boolToPlus.pipe.mjs"
@@ -0,0 +1,12 @@
1
+ import * as i0 from '@angular/core';
2
+ import { PipeTransform } from '@angular/core';
3
+
4
+ declare class AyAdiPipe implements PipeTransform {
5
+ private readonly translateService;
6
+ transform(ayNo: number | string | null | undefined): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AyAdiPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<AyAdiPipe, "ayAdi", true>;
9
+ }
10
+
11
+ export { AyAdiPipe };
12
+ //# sourceMappingURL=limitng-pipes-ayAdiPipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limitng-pipes-ayAdiPipe.d.ts","sources":["../../src/app/components/pipes/ayAdiPipe/ayAdi.pipe.ts"],"mappings":";;;AAMA,cAKa,SAAU,YAAW,aAAa;AAC7C;;yCADW,SAAS;uCAAT,SAAS;AAoBrB;;;;","names":[]}