@itwin/appui-abstract 4.9.0-dev.9 → 4.10.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/CHANGELOG.md +26 -1
- package/lib/cjs/appui-abstract/properties/Value.d.ts +7 -0
- package/lib/cjs/appui-abstract/properties/Value.d.ts.map +1 -1
- package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Value.d.ts +7 -0
- package/lib/esm/appui-abstract/properties/Value.d.ts.map +1 -1
- package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
# Change Log - @itwin/appui-abstract
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 13 Sep 2024 15:12:41 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.8.7
|
6
|
+
Fri, 13 Sep 2024 15:11:17 GMT
|
7
|
+
|
8
|
+
_Version update only_
|
9
|
+
|
10
|
+
## 4.8.6
|
11
|
+
Fri, 06 Sep 2024 05:06:49 GMT
|
12
|
+
|
13
|
+
_Version update only_
|
14
|
+
|
15
|
+
## 4.8.5
|
16
|
+
Wed, 28 Aug 2024 17:27:23 GMT
|
17
|
+
|
18
|
+
_Version update only_
|
19
|
+
|
20
|
+
## 4.8.4
|
21
|
+
Thu, 22 Aug 2024 17:37:06 GMT
|
22
|
+
|
23
|
+
_Version update only_
|
24
|
+
|
25
|
+
## 4.8.3
|
26
|
+
Fri, 16 Aug 2024 18:18:14 GMT
|
27
|
+
|
28
|
+
_Version update only_
|
4
29
|
|
5
30
|
## 4.8.2
|
6
31
|
Thu, 15 Aug 2024 15:33:49 GMT
|
@@ -25,6 +25,13 @@ export interface PrimitiveValue extends BasePropertyValue {
|
|
25
25
|
valueFormat: PropertyValueFormat.Primitive;
|
26
26
|
value?: Primitives.Value;
|
27
27
|
displayValue?: string;
|
28
|
+
/**
|
29
|
+
* Rounding error that should be taken into consideration when comparing numeric values. This is useful
|
30
|
+
* when numeric display value is rounded and displayed with less precision than actual value.
|
31
|
+
*
|
32
|
+
* Example: entered value is 0.12 but it should match values like 0.12345. In that case `roundingError` can be set to `0.005` and comparison should be done in `0.115` to `0.125` range.
|
33
|
+
*/
|
34
|
+
roundingError?: number;
|
28
35
|
}
|
29
36
|
/** Struct property value
|
30
37
|
* @public
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,WAAW,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,WAAW,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,WAAW,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACnD,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACvC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH;;;GAGG;AACH,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,uEAAS,CAAA;IACT,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Properties\r\n */\r\n\r\nimport { Primitives } from \"./PrimitiveTypes\";\r\nimport { PropertyRecord } from \"./Record\";\r\n\r\n/**\r\n * Enumeration for Format of the property value.\r\n * @public\r\n */\r\nexport enum PropertyValueFormat {\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/** Base interface for a property value\r\n * @public\r\n */\r\nexport interface BasePropertyValue {\r\n valueFormat: PropertyValueFormat;\r\n}\r\n\r\n/** Primitive property value\r\n * @public\r\n */\r\nexport interface PrimitiveValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Primitive;\r\n value?: Primitives.Value;\r\n displayValue?: string;\r\n}\r\n\r\n/** Struct property value\r\n * @public\r\n */\r\nexport interface StructValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Struct;\r\n members: { [name: string]: PropertyRecord };\r\n}\r\n\r\n/** Array property value\r\n * @public\r\n */\r\nexport interface ArrayValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Array;\r\n items: PropertyRecord[];\r\n itemsTypeName: string;\r\n}\r\n\r\n/** Type for all property values\r\n * @public\r\n */\r\nexport type PropertyValue = PrimitiveValue | StructValue | ArrayValue;\r\n"]}
|
1
|
+
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH;;;GAGG;AACH,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,uEAAS,CAAA;IACT,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Properties\r\n */\r\n\r\nimport { Primitives } from \"./PrimitiveTypes\";\r\nimport { PropertyRecord } from \"./Record\";\r\n\r\n/**\r\n * Enumeration for Format of the property value.\r\n * @public\r\n */\r\nexport enum PropertyValueFormat {\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/** Base interface for a property value\r\n * @public\r\n */\r\nexport interface BasePropertyValue {\r\n valueFormat: PropertyValueFormat;\r\n}\r\n\r\n/** Primitive property value\r\n * @public\r\n */\r\nexport interface PrimitiveValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Primitive;\r\n value?: Primitives.Value;\r\n displayValue?: string;\r\n /**\r\n * Rounding error that should be taken into consideration when comparing numeric values. This is useful\r\n * when numeric display value is rounded and displayed with less precision than actual value.\r\n *\r\n * Example: entered value is 0.12 but it should match values like 0.12345. In that case `roundingError` can be set to `0.005` and comparison should be done in `0.115` to `0.125` range.\r\n */\r\n roundingError?: number;\r\n}\r\n\r\n/** Struct property value\r\n * @public\r\n */\r\nexport interface StructValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Struct;\r\n members: { [name: string]: PropertyRecord };\r\n}\r\n\r\n/** Array property value\r\n * @public\r\n */\r\nexport interface ArrayValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Array;\r\n items: PropertyRecord[];\r\n itemsTypeName: string;\r\n}\r\n\r\n/** Type for all property values\r\n * @public\r\n */\r\nexport type PropertyValue = PrimitiveValue | StructValue | ArrayValue;\r\n"]}
|
@@ -25,6 +25,13 @@ export interface PrimitiveValue extends BasePropertyValue {
|
|
25
25
|
valueFormat: PropertyValueFormat.Primitive;
|
26
26
|
value?: Primitives.Value;
|
27
27
|
displayValue?: string;
|
28
|
+
/**
|
29
|
+
* Rounding error that should be taken into consideration when comparing numeric values. This is useful
|
30
|
+
* when numeric display value is rounded and displayed with less precision than actual value.
|
31
|
+
*
|
32
|
+
* Example: entered value is 0.12 but it should match values like 0.12345. In that case `roundingError` can be set to `0.005` and comparison should be done in `0.115` to `0.125` range.
|
33
|
+
*/
|
34
|
+
roundingError?: number;
|
28
35
|
}
|
29
36
|
/** Struct property value
|
30
37
|
* @public
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,WAAW,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,SAAS,IAAA;IACT,KAAK,IAAA;IACL,MAAM,IAAA;CACP;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,WAAW,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,WAAW,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACnD,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACvC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAKH;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,uEAAS,CAAA;IACT,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Properties\r\n */\r\n\r\nimport { Primitives } from \"./PrimitiveTypes\";\r\nimport { PropertyRecord } from \"./Record\";\r\n\r\n/**\r\n * Enumeration for Format of the property value.\r\n * @public\r\n */\r\nexport enum PropertyValueFormat {\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/** Base interface for a property value\r\n * @public\r\n */\r\nexport interface BasePropertyValue {\r\n valueFormat: PropertyValueFormat;\r\n}\r\n\r\n/** Primitive property value\r\n * @public\r\n */\r\nexport interface PrimitiveValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Primitive;\r\n value?: Primitives.Value;\r\n displayValue?: string;\r\n}\r\n\r\n/** Struct property value\r\n * @public\r\n */\r\nexport interface StructValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Struct;\r\n members: { [name: string]: PropertyRecord };\r\n}\r\n\r\n/** Array property value\r\n * @public\r\n */\r\nexport interface ArrayValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Array;\r\n items: PropertyRecord[];\r\n itemsTypeName: string;\r\n}\r\n\r\n/** Type for all property values\r\n * @public\r\n */\r\nexport type PropertyValue = PrimitiveValue | StructValue | ArrayValue;\r\n"]}
|
1
|
+
{"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/appui-abstract/properties/Value.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAKH;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,uEAAS,CAAA;IACT,+DAAK,CAAA;IACL,iEAAM,CAAA;AACR,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Properties\r\n */\r\n\r\nimport { Primitives } from \"./PrimitiveTypes\";\r\nimport { PropertyRecord } from \"./Record\";\r\n\r\n/**\r\n * Enumeration for Format of the property value.\r\n * @public\r\n */\r\nexport enum PropertyValueFormat {\r\n Primitive,\r\n Array,\r\n Struct,\r\n}\r\n\r\n/** Base interface for a property value\r\n * @public\r\n */\r\nexport interface BasePropertyValue {\r\n valueFormat: PropertyValueFormat;\r\n}\r\n\r\n/** Primitive property value\r\n * @public\r\n */\r\nexport interface PrimitiveValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Primitive;\r\n value?: Primitives.Value;\r\n displayValue?: string;\r\n /**\r\n * Rounding error that should be taken into consideration when comparing numeric values. This is useful\r\n * when numeric display value is rounded and displayed with less precision than actual value.\r\n *\r\n * Example: entered value is 0.12 but it should match values like 0.12345. In that case `roundingError` can be set to `0.005` and comparison should be done in `0.115` to `0.125` range.\r\n */\r\n roundingError?: number;\r\n}\r\n\r\n/** Struct property value\r\n * @public\r\n */\r\nexport interface StructValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Struct;\r\n members: { [name: string]: PropertyRecord };\r\n}\r\n\r\n/** Array property value\r\n * @public\r\n */\r\nexport interface ArrayValue extends BasePropertyValue {\r\n valueFormat: PropertyValueFormat.Array;\r\n items: PropertyRecord[];\r\n itemsTypeName: string;\r\n}\r\n\r\n/** Type for all property values\r\n * @public\r\n */\r\nexport type PropertyValue = PrimitiveValue | StructValue | ArrayValue;\r\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itwin/appui-abstract",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.10.0-dev.1",
|
4
4
|
"description": "iTwin.js UI abstractions",
|
5
5
|
"main": "lib/cjs/appui-abstract.js",
|
6
6
|
"module": "lib/esm/appui-abstract.js",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"url": "http://www.bentley.com"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
|
-
"@itwin/core-bentley": "^4.
|
25
|
+
"@itwin/core-bentley": "^4.10.0-dev.1"
|
26
26
|
},
|
27
27
|
"//devDependencies": [
|
28
28
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
@@ -44,14 +44,14 @@
|
|
44
44
|
"mocha": "^10.2.0",
|
45
45
|
"raf": "^3.4.0",
|
46
46
|
"rimraf": "^3.0.2",
|
47
|
-
"sinon": "^17.0.
|
47
|
+
"sinon": "^17.0.2",
|
48
48
|
"sinon-chai": "^3.7.0",
|
49
49
|
"source-map-loader": "^4.0.0",
|
50
50
|
"typescript": "~5.3.3",
|
51
51
|
"webpack": "^5.76.0",
|
52
|
-
"@itwin/build-tools": "4.
|
53
|
-
"@itwin/core-bentley": "4.
|
54
|
-
"@itwin/certa": "4.
|
52
|
+
"@itwin/build-tools": "4.10.0-dev.1",
|
53
|
+
"@itwin/core-bentley": "4.10.0-dev.1",
|
54
|
+
"@itwin/certa": "4.10.0-dev.1"
|
55
55
|
},
|
56
56
|
"//dependencies": [
|
57
57
|
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|