Last change
on this file since 1ad8e64 was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago |
primeNG components
|
-
Property mode
set to
100644
|
File size:
781 bytes
|
Line | |
---|
1 | {{# def.definitions }}
|
---|
2 | {{# def.errors }}
|
---|
3 | {{# def.setupKeyword }}
|
---|
4 |
|
---|
5 | {{
|
---|
6 | var $key = 'key' + $lvl
|
---|
7 | , $idx = 'idx' + $lvl
|
---|
8 | , $matched = 'patternMatched' + $lvl
|
---|
9 | , $dataProperties = 'dataProperties' + $lvl
|
---|
10 | , $closingBraces = ''
|
---|
11 | , $ownProperties = it.opts.ownProperties;
|
---|
12 | }}
|
---|
13 |
|
---|
14 | var {{=$valid}} = true;
|
---|
15 | {{? $ownProperties }}
|
---|
16 | var {{=$dataProperties}} = undefined;
|
---|
17 | {{?}}
|
---|
18 |
|
---|
19 | {{~ $schema:$pProperty }}
|
---|
20 | var {{=$matched}} = false;
|
---|
21 | {{# def.iterateProperties }}
|
---|
22 | {{=$matched}} = {{= it.usePattern($pProperty) }}.test({{=$key}});
|
---|
23 | if ({{=$matched}}) break;
|
---|
24 | }
|
---|
25 |
|
---|
26 | {{ var $missingPattern = it.util.escapeQuotes($pProperty); }}
|
---|
27 | if (!{{=$matched}}) {
|
---|
28 | {{=$valid}} = false;
|
---|
29 | {{# def.addError:'patternRequired' }}
|
---|
30 | } {{# def.elseIfValid }}
|
---|
31 | {{~}}
|
---|
32 |
|
---|
33 | {{= $closingBraces }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.