@itwin/sheet-numbering-schema 0.0.0-stage → 1.0.0-dev.1
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/LICENSE.md +9 -0
- package/README.md +9 -3
- package/SheetNumbering.ecschema.json +1 -0
- package/SheetNumbering.ecschema.xml +57 -0
- package/package.json +24 -6
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2017-2026 Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @itwin/sheet-numbering-schema
|
|
2
|
+
|
|
3
|
+
Copyright © Bentley Systems, Incorporated. All rights reserved. See [LICENSE.md](./LICENSE.md) for license terms and full copyright notice.
|
|
4
|
+
|
|
5
|
+
[iTwin.js](http://itwinjs.org) is an open source platform for creating, querying, modifying, and displaying Infrastructure Digital Twins.
|
|
6
|
+
|
|
7
|
+
## BIS Schemas
|
|
8
|
+
|
|
9
|
+
The acronym “BIS” stands for “Base Infrastructure Schemas”. BIS is an “open” and extensible family of schemas that is modularized into Domains. Please go to [iTwinjs.org](https://www.itwinjs.org/bis/) for more information.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://dev.bentley.com/json_schemas/ec/32/ecschema","name":"SheetNumbering","version":"01.00.00","alias":"snum","description":"Contains classes and relationships for sheet numbering.","references":[{"name":"CoreCustomAttributes","version":"01.00.05"},{"name":"BisCustomAttributes","version":"01.00.00"},{"name":"BisCore","version":"01.00.28"},{"name":"ECDbMap","version":"02.00.04"}],"customAttributes":[{"className":"CoreCustomAttributes.ProductionStatus","SupportedUse":"NotForProduction"},{"className":"BisCustomAttributes.SchemaLayerInfo","Value":"Application"}],"items":{"SheetNumberAspect":{"schemaItemType":"EntityClass","label":"Sheet Number Aspect","description":"Numbers a sheet.","baseClass":"BisCore.ElementUniqueAspect","properties":[{"name":"Prefix","type":"PrimitiveProperty","description":"A string to append before the index number","typeName":"string"},{"name":"Postfix","type":"PrimitiveProperty","description":"A string to append after the index number","typeName":"string"},{"name":"Increment","type":"PrimitiveProperty","description":"Defines the amount to increase the index after the associated Sheet References (Indexes always start at 1)","typeName":"int"},{"name":"NumberOfDigits","type":"PrimitiveProperty","description":"Functionally pads the index number with zero","typeName":"int"},{"name":"ExcludeFromIndex","type":"PrimitiveProperty","description":"Sheet References associated with this flag will not be considered when processing the Sheet Number. Their codes will not be updated, they will not increase the index.","typeName":"boolean"},{"name":"StartAt","type":"PrimitiveProperty","description":"Starts calculating the index number at this value","typeName":"int"}]},"SheetReferenceOwnsSheetNumberAspect":{"schemaItemType":"RelationshipClass","modifier":"None","baseClass":"BisCore.ElementOwnsUniqueAspect","strength":"Embedding","strengthDirection":"Forward","source":{"multiplicity":"(1..1)","roleLabel":"owns","polymorphic":false,"constraintClasses":["BisCore.SheetReference"]},"target":{"multiplicity":"(0..1)","roleLabel":"is owned by","polymorphic":false,"constraintClasses":["SheetNumbering.SheetNumberAspect"]}},"SheetIndexFolderOwnsSheetNumberAspect":{"schemaItemType":"RelationshipClass","modifier":"None","baseClass":"BisCore.ElementOwnsUniqueAspect","strength":"Embedding","strengthDirection":"Forward","source":{"multiplicity":"(1..1)","roleLabel":"owns","polymorphic":false,"constraintClasses":["BisCore.SheetIndexFolder"]},"target":{"multiplicity":"(0..1)","roleLabel":"is owned by","polymorphic":false,"constraintClasses":["SheetNumbering.SheetNumberAspect"]}},"SheetIndexOwnsSheetNumberAspect":{"schemaItemType":"RelationshipClass","modifier":"None","baseClass":"BisCore.ElementOwnsUniqueAspect","strength":"Embedding","strengthDirection":"Forward","source":{"multiplicity":"(1..1)","roleLabel":"owns","polymorphic":false,"constraintClasses":["BisCore.SheetIndex"]},"target":{"multiplicity":"(0..1)","roleLabel":"is owned by","polymorphic":false,"constraintClasses":["SheetNumbering.SheetNumberAspect"]}}}}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- ==================================================================================
|
|
3
|
+
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
| * See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
======================================================================================= -->
|
|
6
|
+
<ECSchema schemaName="SheetNumbering" alias="snum" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2" description="Contains classes and relationships for sheet numbering.">
|
|
7
|
+
<ECSchemaReference name="CoreCustomAttributes" version="01.00.03" alias="CoreCA" />
|
|
8
|
+
<ECSchemaReference name="BisCustomAttributes" version="01.00.00" alias="bisCA"/>
|
|
9
|
+
<ECSchemaReference name="BisCore" version="01.00.16" alias="bis"/>
|
|
10
|
+
<ECSchemaReference name="ECDbMap" version="02.00.04" alias="ecdbmap"/>
|
|
11
|
+
|
|
12
|
+
<ECCustomAttributes>
|
|
13
|
+
<ProductionStatus xmlns="CoreCustomAttributes.01.00.03">
|
|
14
|
+
<SupportedUse>NotForProduction</SupportedUse>
|
|
15
|
+
</ProductionStatus>
|
|
16
|
+
<SchemaLayerInfo xmlns="BisCustomAttributes.01.00.00">
|
|
17
|
+
<Value>Application</Value>
|
|
18
|
+
</SchemaLayerInfo>
|
|
19
|
+
</ECCustomAttributes>
|
|
20
|
+
|
|
21
|
+
<ECEntityClass typeName="SheetNumberAspect" displayLabel="Sheet Number Aspect" modifier="None" description="Numbers a sheet.">
|
|
22
|
+
<BaseClass>bis:ElementUniqueAspect</BaseClass>
|
|
23
|
+
<ECProperty propertyName="Prefix" typeName="string" description="A string to append before the index number"/>
|
|
24
|
+
<ECProperty propertyName="Postfix" typeName="string" description="A string to append after the index number"/>
|
|
25
|
+
<ECProperty propertyName="Increment" typeName="int" description="Defines the amount to increase the index after the associated Sheet References (Indexes always start at 1)"/>
|
|
26
|
+
<ECProperty propertyName="NumberOfDigits" typeName="int" description="Functionally pads the index number with zero"/>
|
|
27
|
+
<ECProperty propertyName="ExcludeFromIndex" typeName="boolean" description="Sheet References associated with this flag will not be considered when processing the Sheet Number. Their codes will not be updated, they will not increase the index."/>
|
|
28
|
+
<ECProperty propertyName="StartAt" typeName="int" description="Starts calculating the index number at this value"/>
|
|
29
|
+
</ECEntityClass>
|
|
30
|
+
<ECRelationshipClass typeName="SheetReferenceOwnsSheetNumberAspect" strength="embedding" modifier="None">
|
|
31
|
+
<BaseClass>bis:ElementOwnsUniqueAspect</BaseClass>
|
|
32
|
+
<Source multiplicity="(1..1)" roleLabel="owns" polymorphic="false">
|
|
33
|
+
<Class class="bis:SheetReference"/>
|
|
34
|
+
</Source>
|
|
35
|
+
<Target multiplicity="(0..1)" roleLabel="is owned by" polymorphic="false">
|
|
36
|
+
<Class class="SheetNumberAspect"/>
|
|
37
|
+
</Target>
|
|
38
|
+
</ECRelationshipClass>
|
|
39
|
+
<ECRelationshipClass typeName="SheetIndexFolderOwnsSheetNumberAspect" strength="embedding" modifier="None">
|
|
40
|
+
<BaseClass>bis:ElementOwnsUniqueAspect</BaseClass>
|
|
41
|
+
<Source multiplicity="(1..1)" roleLabel="owns" polymorphic="false">
|
|
42
|
+
<Class class="bis:SheetIndexFolder"/>
|
|
43
|
+
</Source>
|
|
44
|
+
<Target multiplicity="(0..1)" roleLabel="is owned by" polymorphic="false">
|
|
45
|
+
<Class class="SheetNumberAspect"/>
|
|
46
|
+
</Target>
|
|
47
|
+
</ECRelationshipClass>
|
|
48
|
+
<ECRelationshipClass typeName="SheetIndexOwnsSheetNumberAspect" strength="embedding" modifier="None">
|
|
49
|
+
<BaseClass>bis:ElementOwnsUniqueAspect</BaseClass>
|
|
50
|
+
<Source multiplicity="(1..1)" roleLabel="owns" polymorphic="false">
|
|
51
|
+
<Class class="bis:SheetIndex"/>
|
|
52
|
+
</Source>
|
|
53
|
+
<Target multiplicity="(0..1)" roleLabel="is owned by" polymorphic="false">
|
|
54
|
+
<Class class="SheetNumberAspect"/>
|
|
55
|
+
</Target>
|
|
56
|
+
</ECRelationshipClass>
|
|
57
|
+
</ECSchema>
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@itwin/sheet-numbering-schema",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@itwin/sheet-numbering-schema",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "1.0.0-dev.1",
|
|
5
|
+
"homepage": "https://www.itwinjs.org/",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/iTwin/bis-schemas"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"Bentley",
|
|
12
|
+
"BIS",
|
|
13
|
+
"iModel"
|
|
14
|
+
],
|
|
15
|
+
"description": "SheetNumbering BIS Domains",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Bentley Systems, Inc.",
|
|
18
|
+
"url": "http://www.bentley.com"
|
|
19
|
+
},
|
|
20
|
+
"exports" : {
|
|
21
|
+
"./SheetNumbering.ecschema.xml": "./SheetNumbering.ecschema.xml",
|
|
22
|
+
"./SheetNumbering.ecschema.json": "./SheetNumbering.ecschema.json"
|
|
23
|
+
}
|
|
24
|
+
}
|