@ifc-lite/rules 0.5.0 → 0.7.2
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/dist/engine/rule-engine.d.ts.map +1 -1
- package/dist/engine/rule-engine.js +5 -3
- package/dist/engine/rule-engine.js.map +1 -1
- package/dist/filter/captured-scope.d.ts +34 -0
- package/dist/filter/captured-scope.d.ts.map +1 -0
- package/dist/filter/captured-scope.js +65 -0
- package/dist/filter/captured-scope.js.map +1 -0
- package/dist/filter/filter-evaluate.d.ts +1 -0
- package/dist/filter/filter-evaluate.d.ts.map +1 -1
- package/dist/filter/filter-evaluate.js +3 -3
- package/dist/filter/filter-evaluate.js.map +1 -1
- package/dist/filter/filter-match.d.ts.map +1 -1
- package/dist/filter/filter-match.js +3 -1
- package/dist/filter/filter-match.js.map +1 -1
- package/dist/filter/measure-units.d.ts +2 -1
- package/dist/filter/measure-units.d.ts.map +1 -1
- package/dist/filter/measure-units.js +4 -2
- package/dist/filter/measure-units.js.map +1 -1
- package/dist/filter/read-measure-subject.d.ts +10 -1
- package/dist/filter/read-measure-subject.d.ts.map +1 -1
- package/dist/filter/read-measure-subject.js +35 -17
- package/dist/filter/read-measure-subject.js.map +1 -1
- package/dist/filter/read-subject.d.ts +6 -3
- package/dist/filter/read-subject.d.ts.map +1 -1
- package/dist/filter/read-subject.js +2 -2
- package/dist/filter/read-subject.js.map +1 -1
- package/dist/filter/subject-match.d.ts +8 -6
- package/dist/filter/subject-match.d.ts.map +1 -1
- package/dist/filter/subject-match.js +4 -4
- package/dist/filter/subject-match.js.map +1 -1
- package/dist/ids/ids-facet-to-rules.d.ts.map +1 -1
- package/dist/ids/ids-facet-to-rules.js +2 -0
- package/dist/ids/ids-facet-to-rules.js.map +1 -1
- package/dist/ids/ids-regex.d.ts +5 -2
- package/dist/ids/ids-regex.d.ts.map +1 -1
- package/dist/ids/ids-regex.js +12 -30
- package/dist/ids/ids-regex.js.map +1 -1
- package/dist/ids/rule-set-to-ids.d.ts +1 -1
- package/dist/ids/rule-set-to-ids.d.ts.map +1 -1
- package/dist/ids/rule-set-to-ids.js +14 -1
- package/dist/ids/rule-set-to-ids.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/ids/ids-xml-writer.d.ts +0 -11
- package/dist/ids/ids-xml-writer.d.ts.map +0 -1
- package/dist/ids/ids-xml-writer.js +0 -172
- package/dist/ids/ids-xml-writer.js.map +0 -1
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
-
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
|
-
const IDS_NS = 'http://standards.buildingsmart.org/IDS';
|
|
5
|
-
const XS_NS = 'http://www.w3.org/2001/XMLSchema';
|
|
6
|
-
const XSI_NS = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
7
|
-
const SCHEMA_LOCATION = `${IDS_NS} http://standards.buildingsmart.org/IDS/1.0/ids.xsd`;
|
|
8
|
-
function escapeXml(text) {
|
|
9
|
-
return text
|
|
10
|
-
.replace(/&/g, '&')
|
|
11
|
-
.replace(/</g, '<')
|
|
12
|
-
.replace(/>/g, '>')
|
|
13
|
-
.replace(/"/g, '"')
|
|
14
|
-
.replace(/'/g, ''');
|
|
15
|
-
}
|
|
16
|
-
class XmlLines {
|
|
17
|
-
lines = [];
|
|
18
|
-
depth = 0;
|
|
19
|
-
open(tag, attrs = {}) {
|
|
20
|
-
this.lines.push(`${this.indent()}<${tag}${renderAttrs(attrs)}>`);
|
|
21
|
-
this.depth++;
|
|
22
|
-
}
|
|
23
|
-
close(tag) {
|
|
24
|
-
this.depth--;
|
|
25
|
-
this.lines.push(`${this.indent()}</${tag}>`);
|
|
26
|
-
}
|
|
27
|
-
leaf(tag, text, attrs = {}) {
|
|
28
|
-
this.lines.push(`${this.indent()}<${tag}${renderAttrs(attrs)}>${escapeXml(text)}</${tag}>`);
|
|
29
|
-
}
|
|
30
|
-
empty(tag, attrs = {}) {
|
|
31
|
-
this.lines.push(`${this.indent()}<${tag}${renderAttrs(attrs)}/>`);
|
|
32
|
-
}
|
|
33
|
-
indent() {
|
|
34
|
-
return ' '.repeat(this.depth);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function renderAttrs(attrs) {
|
|
38
|
-
let out = '';
|
|
39
|
-
for (const [key, value] of Object.entries(attrs)) {
|
|
40
|
-
if (value !== undefined)
|
|
41
|
-
out += ` ${key}="${escapeXml(value)}"`;
|
|
42
|
-
}
|
|
43
|
-
return out;
|
|
44
|
-
}
|
|
45
|
-
function writeConstraint(xml, tag, constraint) {
|
|
46
|
-
xml.open(tag);
|
|
47
|
-
switch (constraint.type) {
|
|
48
|
-
case 'simpleValue':
|
|
49
|
-
xml.leaf('simpleValue', constraint.value);
|
|
50
|
-
break;
|
|
51
|
-
case 'pattern':
|
|
52
|
-
xml.open('xs:restriction', { base: constraint.base ?? 'xs:string' });
|
|
53
|
-
xml.empty('xs:pattern', { value: constraint.pattern });
|
|
54
|
-
xml.close('xs:restriction');
|
|
55
|
-
break;
|
|
56
|
-
case 'enumeration':
|
|
57
|
-
xml.open('xs:restriction', { base: constraint.base ?? 'xs:string' });
|
|
58
|
-
for (const value of constraint.values)
|
|
59
|
-
xml.empty('xs:enumeration', { value });
|
|
60
|
-
xml.close('xs:restriction');
|
|
61
|
-
break;
|
|
62
|
-
case 'bounds': {
|
|
63
|
-
xml.open('xs:restriction', { base: constraint.base ?? 'xs:double' });
|
|
64
|
-
const bounds = [
|
|
65
|
-
['xs:minInclusive', constraint.minInclusive],
|
|
66
|
-
['xs:minExclusive', constraint.minExclusive],
|
|
67
|
-
['xs:maxInclusive', constraint.maxInclusive],
|
|
68
|
-
['xs:maxExclusive', constraint.maxExclusive],
|
|
69
|
-
];
|
|
70
|
-
for (const [facet, value] of bounds) {
|
|
71
|
-
if (value !== undefined)
|
|
72
|
-
xml.empty(facet, { value: String(value) });
|
|
73
|
-
}
|
|
74
|
-
xml.close('xs:restriction');
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
xml.close(tag);
|
|
79
|
-
}
|
|
80
|
-
function writeFacet(xml, facet, cardinality) {
|
|
81
|
-
switch (facet.type) {
|
|
82
|
-
case 'entity':
|
|
83
|
-
xml.open('entity');
|
|
84
|
-
writeConstraint(xml, 'name', facet.name);
|
|
85
|
-
if (facet.predefinedType)
|
|
86
|
-
writeConstraint(xml, 'predefinedType', facet.predefinedType);
|
|
87
|
-
xml.close('entity');
|
|
88
|
-
return;
|
|
89
|
-
case 'attribute':
|
|
90
|
-
xml.open('attribute', { cardinality });
|
|
91
|
-
writeConstraint(xml, 'name', facet.name);
|
|
92
|
-
if (facet.value)
|
|
93
|
-
writeConstraint(xml, 'value', facet.value);
|
|
94
|
-
xml.close('attribute');
|
|
95
|
-
return;
|
|
96
|
-
case 'property':
|
|
97
|
-
xml.open('property', { cardinality });
|
|
98
|
-
writeConstraint(xml, 'propertySet', facet.propertySet);
|
|
99
|
-
writeConstraint(xml, 'baseName', facet.baseName);
|
|
100
|
-
if (facet.value)
|
|
101
|
-
writeConstraint(xml, 'value', facet.value);
|
|
102
|
-
xml.close('property');
|
|
103
|
-
return;
|
|
104
|
-
case 'classification':
|
|
105
|
-
xml.open('classification', { cardinality });
|
|
106
|
-
if (facet.value)
|
|
107
|
-
writeConstraint(xml, 'value', facet.value);
|
|
108
|
-
if (facet.system)
|
|
109
|
-
writeConstraint(xml, 'system', facet.system);
|
|
110
|
-
xml.close('classification');
|
|
111
|
-
return;
|
|
112
|
-
case 'material':
|
|
113
|
-
xml.open('material', { cardinality });
|
|
114
|
-
if (facet.value)
|
|
115
|
-
writeConstraint(xml, 'value', facet.value);
|
|
116
|
-
xml.close('material');
|
|
117
|
-
return;
|
|
118
|
-
case 'partOf':
|
|
119
|
-
// `ruleSetToIds` never produces one (a rule's `parent` subject matches
|
|
120
|
-
// an ancestor's Name, not its class); refusing here keeps the writer
|
|
121
|
-
// honest if a caller hands it a document from elsewhere.
|
|
122
|
-
throw new Error('writeIdsXml: partOf facets are not supported by this writer');
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function writeRequirement(xml, requirement) {
|
|
126
|
-
// IDS 1.0 has no cardinality on an entity facet inside requirements.
|
|
127
|
-
const cardinality = requirement.facet.type === 'entity' ? undefined : requirement.optionality;
|
|
128
|
-
writeFacet(xml, requirement.facet, cardinality);
|
|
129
|
-
}
|
|
130
|
-
function writeSpecification(xml, spec) {
|
|
131
|
-
xml.open('specification', {
|
|
132
|
-
name: spec.name,
|
|
133
|
-
ifcVersion: spec.ifcVersions.join(' '),
|
|
134
|
-
identifier: spec.identifier,
|
|
135
|
-
description: spec.description,
|
|
136
|
-
instructions: spec.instructions,
|
|
137
|
-
});
|
|
138
|
-
const maxOccurs = spec.maxOccurs === undefined ? 'unbounded' : String(spec.maxOccurs);
|
|
139
|
-
xml.open('applicability', { minOccurs: String(spec.minOccurs ?? 0), maxOccurs });
|
|
140
|
-
for (const facet of spec.applicability.facets)
|
|
141
|
-
writeFacet(xml, facet, undefined);
|
|
142
|
-
xml.close('applicability');
|
|
143
|
-
if (spec.requirements.length > 0) {
|
|
144
|
-
xml.open('requirements');
|
|
145
|
-
for (const requirement of spec.requirements)
|
|
146
|
-
writeRequirement(xml, requirement);
|
|
147
|
-
xml.close('requirements');
|
|
148
|
-
}
|
|
149
|
-
xml.close('specification');
|
|
150
|
-
}
|
|
151
|
-
/** `doc` as an IDS 1.0 XML string. */
|
|
152
|
-
export function writeIdsXml(doc) {
|
|
153
|
-
const xml = new XmlLines();
|
|
154
|
-
xml.open('ids', {
|
|
155
|
-
xmlns: IDS_NS,
|
|
156
|
-
'xmlns:xs': XS_NS,
|
|
157
|
-
'xmlns:xsi': XSI_NS,
|
|
158
|
-
'xsi:schemaLocation': SCHEMA_LOCATION,
|
|
159
|
-
});
|
|
160
|
-
xml.open('info');
|
|
161
|
-
xml.leaf('title', doc.info.title);
|
|
162
|
-
if (doc.info.description)
|
|
163
|
-
xml.leaf('description', doc.info.description);
|
|
164
|
-
xml.close('info');
|
|
165
|
-
xml.open('specifications');
|
|
166
|
-
for (const spec of doc.specifications)
|
|
167
|
-
writeSpecification(xml, spec);
|
|
168
|
-
xml.close('specifications');
|
|
169
|
-
xml.close('ids');
|
|
170
|
-
return `<?xml version="1.0" encoding="UTF-8"?>\n${xml.lines.join('\n')}\n`;
|
|
171
|
-
}
|
|
172
|
-
//# sourceMappingURL=ids-xml-writer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ids-xml-writer.js","sourceRoot":"","sources":["../../src/ids/ids-xml-writer.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAkB/D,MAAM,MAAM,GAAG,wCAAwC,CAAC;AACxD,MAAM,KAAK,GAAG,kCAAkC,CAAC;AACjD,MAAM,MAAM,GAAG,2CAA2C,CAAC;AAC3D,MAAM,eAAe,GAAG,GAAG,MAAM,qDAAqD,CAAC;AAEvF,SAAS,SAAS,CAAC,IAAY;IAC7B,OAAO,IAAI;SACR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,QAAQ;IACH,KAAK,GAAa,EAAE,CAAC;IACtB,KAAK,GAAG,CAAC,CAAC;IAElB,IAAI,CAAC,GAAW,EAAE,QAA4C,EAAE;QAC9D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,WAAW,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