Skip to content

Commit d8955ec

Browse files
committed
Add is-alpha-numeric-func, is-ascii-func, is-base64-func, is-credit-card-func, is-email-func, is-file-uri-func, is-fqdn-func, is-guid-func, is-in-rang-func, is-ip-func
components
1 parent 9ba5365 commit d8955ec

36 files changed

Lines changed: 2280 additions & 6 deletions

src/app/shared/data/versions.data.ts

Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,274 @@ export const Versions: IVersion[] = [
235235
}
236236
]
237237
},
238+
{
239+
id: "is-alpha-numeric-func",
240+
title: ".IsAlphaNumeric()",
241+
isCode: true,
242+
route: resolveRoute(VERSIONS["1.0.0"], "is-alpha-numeric-func"),
243+
sections: [
244+
{
245+
id: "definition",
246+
title: "Definition"
247+
},
248+
{
249+
id: "examples",
250+
title: "Examples"
251+
},
252+
{
253+
id: "example1",
254+
title: "Example 1"
255+
},
256+
{
257+
id: "example2",
258+
title: "Example 2"
259+
}
260+
]
261+
},
262+
{
263+
id: "is-ascii-func",
264+
title: ".IsASCII()",
265+
isCode: true,
266+
route: resolveRoute(VERSIONS["1.0.0"], "is-ascii-func"),
267+
sections: [
268+
{
269+
id: "definition",
270+
title: "Definition"
271+
},
272+
{
273+
id: "examples",
274+
title: "Examples"
275+
},
276+
{
277+
id: "example1",
278+
title: "Example 1"
279+
},
280+
{
281+
id: "example2",
282+
title: "Example 2"
283+
}
284+
]
285+
},
286+
{
287+
id: "is-base64-func",
288+
title: ".IsBase64()",
289+
isCode: true,
290+
route: resolveRoute(VERSIONS["1.0.0"], "is-base64-func"),
291+
sections: [
292+
{
293+
id: "definition",
294+
title: "Definition"
295+
},
296+
{
297+
id: "examples",
298+
title: "Examples"
299+
},
300+
{
301+
id: "example1",
302+
title: "Example 1"
303+
},
304+
{
305+
id: "example2",
306+
title: "Example 2"
307+
},
308+
{
309+
id: "example3",
310+
title: "Example 3"
311+
}
312+
]
313+
},
314+
{
315+
id: "is-credit-card-func",
316+
title: ".IsCreditCard()",
317+
isCode: true,
318+
route: resolveRoute(VERSIONS["1.0.0"], "is-credit-card-func"),
319+
sections: [
320+
{
321+
id: "definition",
322+
title: "Definition"
323+
},
324+
{
325+
id: "examples",
326+
title: "Examples"
327+
},
328+
{
329+
id: "example1",
330+
title: "Example 1"
331+
},
332+
{
333+
id: "example2",
334+
title: "Example 2"
335+
},
336+
{
337+
id: "example3",
338+
title: "Example 3"
339+
}
340+
]
341+
},
342+
{
343+
id: "is-email-func",
344+
title: ".IsEmail()",
345+
isCode: true,
346+
route: resolveRoute(VERSIONS["1.0.0"], "is-email-func"),
347+
sections: [
348+
{
349+
id: "definition",
350+
title: "Definition"
351+
},
352+
{
353+
id: "examples",
354+
title: "Examples"
355+
},
356+
{
357+
id: "example1",
358+
title: "Example 1"
359+
},
360+
{
361+
id: "example2",
362+
title: "Example 2"
363+
},
364+
{
365+
id: "example3",
366+
title: "Example 3"
367+
}
368+
]
369+
},
370+
{
371+
id: "is-file-uri-func",
372+
title: ".IsFileUri()",
373+
isCode: true,
374+
route: resolveRoute(VERSIONS["1.0.0"], "is-file-uri-func"),
375+
sections: [
376+
{
377+
id: "definition",
378+
title: "Definition"
379+
},
380+
{
381+
id: "examples",
382+
title: "Examples"
383+
},
384+
{
385+
id: "example1",
386+
title: "Example 1"
387+
},
388+
{
389+
id: "example2",
390+
title: "Example 2"
391+
},
392+
{
393+
id: "example3",
394+
title: "Example 3"
395+
}
396+
]
397+
},
398+
{
399+
id: "is-fqdn-func",
400+
title: ".IsFQDN()",
401+
isCode: true,
402+
route: resolveRoute(VERSIONS["1.0.0"], "is-fqdn-func"),
403+
sections: [
404+
{
405+
id: "definition",
406+
title: "Definition"
407+
},
408+
{
409+
id: "examples",
410+
title: "Examples"
411+
},
412+
{
413+
id: "example1",
414+
title: "Example 1"
415+
},
416+
{
417+
id: "example2",
418+
title: "Example 2"
419+
}
420+
]
421+
},
422+
{
423+
id: "is-guid-func",
424+
title: ".IsGuid()",
425+
isCode: true,
426+
route: resolveRoute(VERSIONS["1.0.0"], "is-guid-func"),
427+
sections: [
428+
{
429+
id: "definition",
430+
title: "Definition"
431+
},
432+
{
433+
id: "examples",
434+
title: "Examples"
435+
},
436+
{
437+
id: "example1",
438+
title: "Example 1"
439+
},
440+
{
441+
id: "example2",
442+
title: "Example 2"
443+
},
444+
{
445+
id: "example3",
446+
title: "Example 3"
447+
}
448+
]
449+
},
450+
{
451+
id: "is-in-range-func",
452+
title: ".IsInRange()",
453+
isCode: true,
454+
route: resolveRoute(VERSIONS["1.0.0"], "is-in-range-func"),
455+
sections: [
456+
{
457+
id: "definitions",
458+
title: "Definitions"
459+
},
460+
{
461+
id: "examples",
462+
title: "Examples"
463+
},
464+
{
465+
id: "example1",
466+
title: "Example 1"
467+
},
468+
{
469+
id: "example2",
470+
title: "Example 2"
471+
},
472+
{
473+
id: "example3",
474+
title: "Example 3"
475+
}
476+
]
477+
},
478+
{
479+
id: "is-ip-func",
480+
title: ".IsIP()",
481+
isCode: true,
482+
route: resolveRoute(VERSIONS["1.0.0"], "is-ip-func"),
483+
sections: [
484+
{
485+
id: "definitions",
486+
title: "Definitions"
487+
},
488+
{
489+
id: "examples",
490+
title: "Examples"
491+
},
492+
{
493+
id: "example1",
494+
title: "Example 1"
495+
},
496+
{
497+
id: "example2",
498+
title: "Example 2"
499+
},
500+
{
501+
id: "example3",
502+
title: "Example 3"
503+
}
504+
]
505+
},
238506
]
239507
}
240508
]

src/app/version1.0.0/components/index.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ import {ContainsFuncComponent} from "./validation/contains-func/contains-func.co
1212
import {CustomValidatorFuncComponent} from "./validation/custom-validator-func/custom-validator-func.component";
1313
import {EndsWithFuncComponent} from "./validation/ends-with-func/ends-with-func.component";
1414
import {IsAlphaFuncComponent} from "./validation/is-alpha-func/is-alpha-func.component";
15+
import {IsAlphaNumericFuncComponent} from "./validation/is-alpha-numeric-func/is-alpha-numeric-func.component";
16+
import {IsAsciiFuncComponent} from "./validation/is-ascii-func/is-ascii-func.component";
17+
import {IsBase64FuncComponent} from "./validation/is-base64-func/is-base64-func.component";
18+
import {IsCreditCardFuncComponent} from "./validation/is-credit-card-func/is-credit-card-func.component";
19+
import {IsEmailFuncComponent} from "./validation/is-email-func/is-email-func.component";
20+
import {IsFileUriFuncComponent} from "./validation/is-file-uri-func/is-file-uri-func.component";
21+
import {IsFqdnFuncComponent} from "./validation/is-fqdn-func/is-fqdn-func.component";
22+
import {IsGuidFuncComponent} from "./validation/is-guid-func/is-guid-func.component";
23+
import {IsInRangeFuncComponent} from "./validation/is-in-range-func/is-in-range-func.component";
24+
import {IsIpFuncComponent} from "./validation/is-ip-func/is-ip-func.component";
1525

1626
/* Introduction */
1727
export * from "./introduction/getting-started/getting-started.component";
@@ -27,6 +37,16 @@ export * from "./validation/contains-func/contains-func.component";
2737
export * from "./validation/custom-validator-func/custom-validator-func.component";
2838
export * from "./validation/ends-with-func/ends-with-func.component";
2939
export * from "./validation/is-alpha-func/is-alpha-func.component";
40+
export * from "./validation/is-alpha-numeric-func/is-alpha-numeric-func.component";
41+
export * from "./validation/is-ascii-func/is-ascii-func.component";
42+
export * from "./validation/is-base64-func/is-base64-func.component";
43+
export * from "./validation/is-credit-card-func/is-credit-card-func.component";
44+
export * from "./validation/is-email-func/is-email-func.component";
45+
export * from "./validation/is-file-uri-func/is-file-uri-func.component";
46+
export * from "./validation/is-fqdn-func/is-fqdn-func.component";
47+
export * from "./validation/is-guid-func/is-guid-func.component";
48+
export * from "./validation/is-in-range-func/is-in-range-func.component";
49+
export * from "./validation/is-ip-func/is-ip-func.component";
3050

3151
export const COMPONENTS: any[] = [
3252
GettingStartedComponent,
@@ -39,5 +59,15 @@ export const COMPONENTS: any[] = [
3959
ContainsFuncComponent,
4060
CustomValidatorFuncComponent,
4161
EndsWithFuncComponent,
42-
IsAlphaFuncComponent
62+
IsAlphaFuncComponent,
63+
IsAlphaNumericFuncComponent,
64+
IsAsciiFuncComponent,
65+
IsBase64FuncComponent,
66+
IsCreditCardFuncComponent,
67+
IsEmailFuncComponent,
68+
IsFileUriFuncComponent,
69+
IsFqdnFuncComponent,
70+
IsGuidFuncComponent,
71+
IsInRangeFuncComponent,
72+
IsIpFuncComponent,
4373
];

src/app/version1.0.0/components/validation/contains-func/contains-func.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class ContainsFuncComponent implements OnInit {
5454
Age = 25
5555
};
5656
57-
var validator = Validator.Create(model, "Age")
57+
var validator = Validator.Create(model, "Name")
5858
.Contains(new [] { "Mister", "Mr", "Missis", "Mrs" }, "Invalid person Name.");
5959
6060
var errors = validator.Validate();

src/app/version1.0.0/components/validation/ends-with-func/ends-with-func.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h2 class="section-heading">
1111
Definition
1212
<a id="definition" aria-hidden="true" class="section-heading-ref"></a>
1313
</h2>
14-
<ol>
14+
<ul>
1515
<li>
1616
<h3>
1717
<code>.EndsWith(string str, string: errorMessage = null)</code>
@@ -40,7 +40,7 @@ <h3>Returns :</h3>
4040
</li>
4141
</ul>
4242
</li>
43-
</ol>
43+
</ul>
4444
</div>
4545
<div>
4646
<h2 class="section-heading">

src/app/version1.0.0/components/validation/is-alpha-func/is-alpha-func.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h2 class="section-heading">
1212
Definition
1313
<a id="definition" aria-hidden="true" class="section-heading-ref"></a>
1414
</h2>
15-
<ol>
15+
<ul>
1616
<li>
1717
<h3>
1818
<code>.IsAlpha(string: errorMessage = null)</code>
@@ -38,7 +38,7 @@ <h3>Returns :</h3>
3838
</li>
3939
</ul>
4040
</li>
41-
</ol>
41+
</ul>
4242
</div>
4343
<div>
4444
<h2 class="section-heading">

0 commit comments

Comments
 (0)