@itwin/presentation-shared 1.0.0 → 1.2.0
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 +44 -0
- package/README.md +2 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/presentation-shared.d.ts +11 -11
- package/lib/cjs/presentation-shared.d.ts.map +1 -1
- package/lib/cjs/presentation-shared.js +29 -29
- package/lib/cjs/presentation-shared.js.map +1 -1
- package/lib/cjs/shared/ConcatenatedValue.d.ts +9 -9
- package/lib/cjs/shared/ConcatenatedValue.d.ts.map +1 -1
- package/lib/cjs/shared/ConcatenatedValue.js +6 -6
- package/lib/cjs/shared/ConcatenatedValue.js.map +1 -1
- package/lib/cjs/shared/ECSqlCore.d.ts +7 -7
- package/lib/cjs/shared/Event.d.ts +1 -1
- package/lib/cjs/shared/Formatting.d.ts +5 -5
- package/lib/cjs/shared/Formatting.d.ts.map +1 -1
- package/lib/cjs/shared/Formatting.js +7 -7
- package/lib/cjs/shared/Formatting.js.map +1 -1
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.d.ts +12 -12
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.d.ts.map +1 -1
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.js +17 -17
- package/lib/cjs/shared/InstanceLabelSelectClauseFactory.js.map +1 -1
- package/lib/cjs/shared/Logging.d.ts +4 -4
- package/lib/cjs/shared/Logging.js +2 -2
- package/lib/cjs/shared/Logging.js.map +1 -1
- package/lib/cjs/shared/MappedTypes.d.ts +18 -2
- package/lib/cjs/shared/MappedTypes.d.ts.map +1 -1
- package/lib/cjs/shared/Metadata.d.ts +31 -31
- package/lib/cjs/shared/Metadata.js +4 -4
- package/lib/cjs/shared/Metadata.js.map +1 -1
- package/lib/cjs/shared/Utils.d.ts +11 -6
- package/lib/cjs/shared/Utils.d.ts.map +1 -1
- package/lib/cjs/shared/Utils.js +15 -6
- package/lib/cjs/shared/Utils.js.map +1 -1
- package/lib/cjs/shared/Values.d.ts +13 -13
- package/lib/cjs/shared/Values.d.ts.map +1 -1
- package/lib/cjs/shared/Values.js +7 -7
- package/lib/cjs/shared/Values.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts +5 -5
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.js +18 -20
- package/lib/cjs/shared/ecsql-snippets/ECSqlJoinSnippets.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts +12 -12
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js +22 -22
- package/lib/cjs/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/index.d.ts +2 -2
- package/lib/cjs/shared/ecsql-snippets/index.d.ts.map +1 -1
- package/lib/cjs/shared/ecsql-snippets/index.js +10 -10
- package/lib/cjs/shared/ecsql-snippets/index.js.map +1 -1
- package/lib/esm/presentation-shared.d.ts +11 -11
- package/lib/esm/presentation-shared.d.ts.map +1 -1
- package/lib/esm/presentation-shared.js +8 -9
- package/lib/esm/presentation-shared.js.map +1 -1
- package/lib/esm/shared/ConcatenatedValue.d.ts +9 -9
- package/lib/esm/shared/ConcatenatedValue.d.ts.map +1 -1
- package/lib/esm/shared/ConcatenatedValue.js +6 -6
- package/lib/esm/shared/ConcatenatedValue.js.map +1 -1
- package/lib/esm/shared/ECSqlCore.d.ts +7 -7
- package/lib/esm/shared/Event.d.ts +1 -1
- package/lib/esm/shared/Formatting.d.ts +5 -5
- package/lib/esm/shared/Formatting.d.ts.map +1 -1
- package/lib/esm/shared/Formatting.js +4 -4
- package/lib/esm/shared/Formatting.js.map +1 -1
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.d.ts +12 -12
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.d.ts.map +1 -1
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.js +5 -5
- package/lib/esm/shared/InstanceLabelSelectClauseFactory.js.map +1 -1
- package/lib/esm/shared/Logging.d.ts +4 -4
- package/lib/esm/shared/Logging.js +2 -2
- package/lib/esm/shared/Logging.js.map +1 -1
- package/lib/esm/shared/MappedTypes.d.ts +18 -2
- package/lib/esm/shared/MappedTypes.d.ts.map +1 -1
- package/lib/esm/shared/Metadata.d.ts +31 -31
- package/lib/esm/shared/Metadata.js +3 -3
- package/lib/esm/shared/Metadata.js.map +1 -1
- package/lib/esm/shared/Utils.d.ts +11 -6
- package/lib/esm/shared/Utils.d.ts.map +1 -1
- package/lib/esm/shared/Utils.js +14 -6
- package/lib/esm/shared/Utils.js.map +1 -1
- package/lib/esm/shared/Values.d.ts +13 -13
- package/lib/esm/shared/Values.d.ts.map +1 -1
- package/lib/esm/shared/Values.js +7 -7
- package/lib/esm/shared/Values.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts +5 -5
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.js +3 -5
- package/lib/esm/shared/ecsql-snippets/ECSqlJoinSnippets.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts +12 -12
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js +15 -15
- package/lib/esm/shared/ecsql-snippets/ECSqlValueSelectorSnippets.js.map +1 -1
- package/lib/esm/shared/ecsql-snippets/index.d.ts +2 -2
- package/lib/esm/shared/ecsql-snippets/index.d.ts.map +1 -1
- package/lib/esm/shared/ecsql-snippets/index.js +2 -2
- package/lib/esm/shared/ecsql-snippets/index.js.map +1 -1
- package/package.json +21 -13
- package/lib/cjs/shared/InternalUtils.d.ts +0 -3
- package/lib/cjs/shared/InternalUtils.d.ts.map +0 -1
- package/lib/cjs/shared/InternalUtils.js +0 -13
- package/lib/cjs/shared/InternalUtils.js.map +0 -1
- package/lib/esm/shared/InternalUtils.d.ts +0 -3
- package/lib/esm/shared/InternalUtils.d.ts.map +0 -1
- package/lib/esm/shared/InternalUtils.js +0 -10
- package/lib/esm/shared/InternalUtils.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @itwin/presentation-shared
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#791](https://github.com/iTwin/presentation/pull/791): Added a number of mapped types:
|
|
8
|
+
|
|
9
|
+
- `Props<TFunc>` obtains the type of the first `TFunc` function argument.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
function func(props: { x: number; y: string }) {
|
|
13
|
+
// ...
|
|
14
|
+
}
|
|
15
|
+
type FunctionProps = Props<typeof func>; // { x: number, y: string }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- `EventListener<TEvent>` obtains the event listener type of given event type.
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
type MyEvent = Event<(arg: number) => void>;
|
|
22
|
+
type MyEventListener = EventListener<MyEvent>; // (arg: number) => void
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- `EventArgs<TEvent>` obtains the type of the first event listener's argument of given event type.
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
type MyEvent = Event<(arg: { x: number; y: string }) => void>;
|
|
29
|
+
type MyEventArgs = EventArgs<MyEvent>; // { x: number, y: string }
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 1.1.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- [#740](https://github.com/iTwin/presentation/pull/740): Added an utility `julianToDateTime` function to convert julian date format to javascript's Date object.
|
|
37
|
+
- [#740](https://github.com/iTwin/presentation/pull/740): Define `type` and `exports` attributes in `package.json`.
|
|
38
|
+
|
|
39
|
+
The change moves this package a step closer towards dropping CommonJS support - it's now transpiled from ESM to CommonJS instead of the opposite.
|
|
40
|
+
|
|
41
|
+
In addition, the `exports` attribute has been added to `package.json` to prohibit access to APIs that are not intended to be used by external consumers.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#758](https://github.com/iTwin/presentation/pull/758): Promote `@beta` APIs to `@public`.
|
|
46
|
+
|
|
3
47
|
## 1.0.0
|
|
4
48
|
|
|
5
49
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -449,6 +449,8 @@ The package also delivers a number of utility types and functions:
|
|
|
449
449
|
- spaces after opening parentheses,
|
|
450
450
|
- spaces at the beginning and end of the string.
|
|
451
451
|
|
|
452
|
+
- `julianToDateTime` - converts a julian date to a JavaScript `Date` object.
|
|
453
|
+
|
|
452
454
|
- `releaseMainThread` - returns a promise that immediately resolves. Awaiting on the returned promise releases the main thread and allows other tasks to run.
|
|
453
455
|
|
|
454
456
|
- `createMainThreadReleaseOnTimePassedHandler` - returns a `releaseMainThread` promise if the given amount of time has passed since the handler was created or the main thread was last released using this handler. Otherwise, returns `undefined`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as ECSql from "./shared/ecsql-snippets";
|
|
1
|
+
import * as ECSql from "./shared/ecsql-snippets/index.js";
|
|
2
2
|
export { ECSql };
|
|
3
|
-
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue";
|
|
4
|
-
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore";
|
|
5
|
-
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting";
|
|
6
|
-
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory";
|
|
7
|
-
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging";
|
|
8
|
-
export { ArrayElement, OmitOverUnion } from "./shared/MappedTypes";
|
|
9
|
-
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata";
|
|
10
|
-
export { normalizeFullClassName, parseFullClassName,
|
|
11
|
-
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values";
|
|
12
|
-
export { Event } from "./shared/Event";
|
|
3
|
+
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue.js";
|
|
4
|
+
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore.js";
|
|
5
|
+
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting.js";
|
|
6
|
+
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory.js";
|
|
7
|
+
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging.js";
|
|
8
|
+
export { ArrayElement, EventArgs, EventListener, OmitOverUnion, Props } from "./shared/MappedTypes.js";
|
|
9
|
+
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata.js";
|
|
10
|
+
export { createMainThreadReleaseOnTimePassedHandler, julianToDateTime, normalizeFullClassName, parseFullClassName, releaseMainThread, trimWhitespace, } from "./shared/Utils.js";
|
|
11
|
+
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values.js";
|
|
12
|
+
export { Event } from "./shared/Event.js";
|
|
13
13
|
//# sourceMappingURL=presentation-shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-shared.d.ts","sourceRoot":"","sources":["../../src/presentation-shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presentation-shared.d.ts","sourceRoot":"","sources":["../../src/presentation-shared.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAE1D,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAChI,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EACL,iCAAiC,EACjC,6CAA6C,EAC7C,gDAAgD,EAChD,yCAAyC,EACzC,kBAAkB,GACnB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACvG,OAAO,EAAE,sCAAsC,EAAE,EAAE,EAAE,QAAQ,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzI,OAAO,EACL,0CAA0C,EAC1C,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -27,34 +27,34 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
return result;
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.TypedPrimitiveValue = exports.PrimitiveValue = exports.InstanceKey = exports.
|
|
31
|
-
|
|
32
|
-
const ECSql = __importStar(require("./shared/ecsql-snippets"));
|
|
30
|
+
exports.TypedPrimitiveValue = exports.PrimitiveValue = exports.InstanceKey = exports.trimWhitespace = exports.releaseMainThread = exports.parseFullClassName = exports.normalizeFullClassName = exports.julianToDateTime = exports.createMainThreadReleaseOnTimePassedHandler = exports.getClass = exports.createCachingECClassHierarchyInspector = exports.NOOP_LOGGER = exports.parseInstanceLabel = exports.createBisInstanceLabelSelectClauseFactory = exports.createClassBasedInstanceLabelSelectClauseFactory = exports.createDefaultInstanceLabelSelectClauseFactory = exports.formatConcatenatedValue = exports.createDefaultValueFormatter = exports.ConcatenatedValuePart = exports.ConcatenatedValue = exports.ECSql = void 0;
|
|
31
|
+
const ECSql = __importStar(require("./shared/ecsql-snippets/index.js"));
|
|
33
32
|
exports.ECSql = ECSql;
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "ConcatenatedValue", { enumerable: true, get: function () { return
|
|
36
|
-
Object.defineProperty(exports, "ConcatenatedValuePart", { enumerable: true, get: function () { return
|
|
37
|
-
var
|
|
38
|
-
Object.defineProperty(exports, "createDefaultValueFormatter", { enumerable: true, get: function () { return
|
|
39
|
-
Object.defineProperty(exports, "formatConcatenatedValue", { enumerable: true, get: function () { return
|
|
40
|
-
var
|
|
41
|
-
Object.defineProperty(exports, "createDefaultInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return
|
|
42
|
-
Object.defineProperty(exports, "createClassBasedInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return
|
|
43
|
-
Object.defineProperty(exports, "createBisInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return
|
|
44
|
-
Object.defineProperty(exports, "parseInstanceLabel", { enumerable: true, get: function () { return
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "NOOP_LOGGER", { enumerable: true, get: function () { return
|
|
47
|
-
var
|
|
48
|
-
Object.defineProperty(exports, "createCachingECClassHierarchyInspector", { enumerable: true, get: function () { return
|
|
49
|
-
Object.defineProperty(exports, "getClass", { enumerable: true, get: function () { return
|
|
50
|
-
var
|
|
51
|
-
Object.defineProperty(exports, "
|
|
52
|
-
Object.defineProperty(exports, "
|
|
53
|
-
Object.defineProperty(exports, "
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
Object.defineProperty(exports, "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Object.defineProperty(exports, "
|
|
59
|
-
Object.defineProperty(exports, "
|
|
33
|
+
var ConcatenatedValue_js_1 = require("./shared/ConcatenatedValue.js");
|
|
34
|
+
Object.defineProperty(exports, "ConcatenatedValue", { enumerable: true, get: function () { return ConcatenatedValue_js_1.ConcatenatedValue; } });
|
|
35
|
+
Object.defineProperty(exports, "ConcatenatedValuePart", { enumerable: true, get: function () { return ConcatenatedValue_js_1.ConcatenatedValuePart; } });
|
|
36
|
+
var Formatting_js_1 = require("./shared/Formatting.js");
|
|
37
|
+
Object.defineProperty(exports, "createDefaultValueFormatter", { enumerable: true, get: function () { return Formatting_js_1.createDefaultValueFormatter; } });
|
|
38
|
+
Object.defineProperty(exports, "formatConcatenatedValue", { enumerable: true, get: function () { return Formatting_js_1.formatConcatenatedValue; } });
|
|
39
|
+
var InstanceLabelSelectClauseFactory_js_1 = require("./shared/InstanceLabelSelectClauseFactory.js");
|
|
40
|
+
Object.defineProperty(exports, "createDefaultInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createDefaultInstanceLabelSelectClauseFactory; } });
|
|
41
|
+
Object.defineProperty(exports, "createClassBasedInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createClassBasedInstanceLabelSelectClauseFactory; } });
|
|
42
|
+
Object.defineProperty(exports, "createBisInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createBisInstanceLabelSelectClauseFactory; } });
|
|
43
|
+
Object.defineProperty(exports, "parseInstanceLabel", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.parseInstanceLabel; } });
|
|
44
|
+
var Logging_js_1 = require("./shared/Logging.js");
|
|
45
|
+
Object.defineProperty(exports, "NOOP_LOGGER", { enumerable: true, get: function () { return Logging_js_1.NOOP_LOGGER; } });
|
|
46
|
+
var Metadata_js_1 = require("./shared/Metadata.js");
|
|
47
|
+
Object.defineProperty(exports, "createCachingECClassHierarchyInspector", { enumerable: true, get: function () { return Metadata_js_1.createCachingECClassHierarchyInspector; } });
|
|
48
|
+
Object.defineProperty(exports, "getClass", { enumerable: true, get: function () { return Metadata_js_1.getClass; } });
|
|
49
|
+
var Utils_js_1 = require("./shared/Utils.js");
|
|
50
|
+
Object.defineProperty(exports, "createMainThreadReleaseOnTimePassedHandler", { enumerable: true, get: function () { return Utils_js_1.createMainThreadReleaseOnTimePassedHandler; } });
|
|
51
|
+
Object.defineProperty(exports, "julianToDateTime", { enumerable: true, get: function () { return Utils_js_1.julianToDateTime; } });
|
|
52
|
+
Object.defineProperty(exports, "normalizeFullClassName", { enumerable: true, get: function () { return Utils_js_1.normalizeFullClassName; } });
|
|
53
|
+
Object.defineProperty(exports, "parseFullClassName", { enumerable: true, get: function () { return Utils_js_1.parseFullClassName; } });
|
|
54
|
+
Object.defineProperty(exports, "releaseMainThread", { enumerable: true, get: function () { return Utils_js_1.releaseMainThread; } });
|
|
55
|
+
Object.defineProperty(exports, "trimWhitespace", { enumerable: true, get: function () { return Utils_js_1.trimWhitespace; } });
|
|
56
|
+
var Values_js_1 = require("./shared/Values.js");
|
|
57
|
+
Object.defineProperty(exports, "InstanceKey", { enumerable: true, get: function () { return Values_js_1.InstanceKey; } });
|
|
58
|
+
Object.defineProperty(exports, "PrimitiveValue", { enumerable: true, get: function () { return Values_js_1.PrimitiveValue; } });
|
|
59
|
+
Object.defineProperty(exports, "TypedPrimitiveValue", { enumerable: true, get: function () { return Values_js_1.TypedPrimitiveValue; } });
|
|
60
60
|
//# sourceMappingURL=presentation-shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-shared.js","sourceRoot":"","sources":["../../src/presentation-shared.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhG,
|
|
1
|
+
{"version":3,"file":"presentation-shared.js","sourceRoot":"","sources":["../../src/presentation-shared.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhG,wEAA0D;AAEjD,sBAAK;AAEd,sEAAyF;AAAhF,yHAAA,iBAAiB,OAAA;AAAE,6HAAA,qBAAqB,OAAA;AAEjD,wDAAwH;AAA/G,4HAAA,2BAA2B,OAAA;AAAE,wHAAA,uBAAuB,OAAA;AAC7D,oGAMsD;AAJpD,oKAAA,6CAA6C,OAAA;AAC7C,uKAAA,gDAAgD,OAAA;AAChD,gKAAA,yCAAyC,OAAA;AACzC,yIAAA,kBAAkB,OAAA;AAEpB,kDAAkF;AAAhE,yGAAA,WAAW,OAAA;AAE7B,oDAAyI;AAAhI,qIAAA,sCAAsC,OAAA;AAAM,uGAAA,QAAQ,OAAA;AAC7D,8CAO2B;AANzB,sIAAA,0CAA0C,OAAA;AAC1C,4GAAA,gBAAgB,OAAA;AAChB,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,0GAAA,cAAc,OAAA;AAEhB,gDAAsF;AAA7E,wGAAA,WAAW,OAAA;AAAE,2GAAA,cAAc,OAAA;AAAE,gHAAA,mBAAmB,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypedPrimitiveValue } from "./Values";
|
|
1
|
+
import { TypedPrimitiveValue } from "./Values.js";
|
|
2
2
|
/**
|
|
3
3
|
* A part of a `ConcatenatedValue`, describing one piece of the value. Possible types:
|
|
4
4
|
* - `ConcatenatedValue` describes a nested concatenated value.
|
|
@@ -7,32 +7,32 @@ import { TypedPrimitiveValue } from "./Values";
|
|
|
7
7
|
* - `string` is just concatenated to other parts as-is.
|
|
8
8
|
*
|
|
9
9
|
* @see `ConcatenatedValue`
|
|
10
|
-
* @
|
|
10
|
+
* @public
|
|
11
11
|
*/
|
|
12
12
|
export type ConcatenatedValuePart = ConcatenatedValue | TypedPrimitiveValue | string;
|
|
13
|
-
/** @
|
|
13
|
+
/** @public */
|
|
14
14
|
export declare namespace ConcatenatedValuePart {
|
|
15
|
-
/** @
|
|
15
|
+
/** @public */
|
|
16
16
|
function isString(part: ConcatenatedValuePart): part is string;
|
|
17
|
-
/** @
|
|
17
|
+
/** @public */
|
|
18
18
|
function isPrimitive(part: ConcatenatedValuePart): part is TypedPrimitiveValue;
|
|
19
|
-
/** @
|
|
19
|
+
/** @public */
|
|
20
20
|
function isConcatenatedValue(part: ConcatenatedValuePart): part is ConcatenatedValue;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* A data structure that contains `ConcatenatedValuePart` objects describing
|
|
24
24
|
* pieces that may be formatted and concatenated together.
|
|
25
25
|
*
|
|
26
|
-
* @
|
|
26
|
+
* @public
|
|
27
27
|
*/
|
|
28
28
|
export type ConcatenatedValue = ConcatenatedValuePart[];
|
|
29
|
-
/** @
|
|
29
|
+
/** @public */
|
|
30
30
|
export declare namespace ConcatenatedValue {
|
|
31
31
|
/**
|
|
32
32
|
* Serialize given `ConcatenatedValue` to string using a formatter function. The parts are
|
|
33
33
|
* each formatted individually and then joined together.
|
|
34
34
|
*
|
|
35
|
-
* @
|
|
35
|
+
* @public
|
|
36
36
|
*/
|
|
37
37
|
function serialize(props: {
|
|
38
38
|
/** The parts to join. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConcatenatedValue.d.ts","sourceRoot":"","sources":["../../../src/shared/ConcatenatedValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ConcatenatedValue.d.ts","sourceRoot":"","sources":["../../../src/shared/ConcatenatedValue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,MAAM,CAAC;AAErF,cAAc;AAEd,yBAAiB,qBAAqB,CAAC;IACrC,cAAc;IACd,SAAgB,QAAQ,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,IAAI,MAAM,CAEpE;IAED,cAAc;IACd,SAAgB,WAAW,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,IAAI,mBAAmB,CAEpF;IAED,cAAc;IACd,SAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,IAAI,iBAAiB,CAE1F;CACF;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,EAAE,CAAC;AAExD,cAAc;AAEd,yBAAiB,iBAAiB,CAAC;IACjC;;;;;OAKG;IACH,SAAsB,SAAS,CAAC,KAAK,EAAE;QACrC,yBAAyB;QACzB,KAAK,EAAE,iBAAiB,CAAC;QACzB,qDAAqD;QACrD,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;QAC5F,6EAA6E;QAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAYlB;CACF"}
|
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ConcatenatedValue = exports.ConcatenatedValuePart = void 0;
|
|
8
|
-
/** @
|
|
8
|
+
/** @public */
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
10
10
|
var ConcatenatedValuePart;
|
|
11
11
|
(function (ConcatenatedValuePart) {
|
|
12
|
-
/** @
|
|
12
|
+
/** @public */
|
|
13
13
|
function isString(part) {
|
|
14
14
|
return typeof part === "string";
|
|
15
15
|
}
|
|
16
16
|
ConcatenatedValuePart.isString = isString;
|
|
17
|
-
/** @
|
|
17
|
+
/** @public */
|
|
18
18
|
function isPrimitive(part) {
|
|
19
19
|
return !!part.type;
|
|
20
20
|
}
|
|
21
21
|
ConcatenatedValuePart.isPrimitive = isPrimitive;
|
|
22
|
-
/** @
|
|
22
|
+
/** @public */
|
|
23
23
|
function isConcatenatedValue(part) {
|
|
24
24
|
return Array.isArray(part);
|
|
25
25
|
}
|
|
26
26
|
ConcatenatedValuePart.isConcatenatedValue = isConcatenatedValue;
|
|
27
27
|
})(ConcatenatedValuePart || (exports.ConcatenatedValuePart = ConcatenatedValuePart = {}));
|
|
28
|
-
/** @
|
|
28
|
+
/** @public */
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
30
30
|
var ConcatenatedValue;
|
|
31
31
|
(function (ConcatenatedValue) {
|
|
@@ -33,7 +33,7 @@ var ConcatenatedValue;
|
|
|
33
33
|
* Serialize given `ConcatenatedValue` to string using a formatter function. The parts are
|
|
34
34
|
* each formatted individually and then joined together.
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
36
|
+
* @public
|
|
37
37
|
*/
|
|
38
38
|
async function serialize(props) {
|
|
39
39
|
const { parts, partFormatter, separator } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConcatenatedValue.js","sourceRoot":"","sources":["../../../src/shared/ConcatenatedValue.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAgBhG,
|
|
1
|
+
{"version":3,"file":"ConcatenatedValue.js","sourceRoot":"","sources":["../../../src/shared/ConcatenatedValue.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAgBhG,cAAc;AACd,2DAA2D;AAC3D,IAAiB,qBAAqB,CAerC;AAfD,WAAiB,qBAAqB;IACpC,cAAc;IACd,SAAgB,QAAQ,CAAC,IAA2B;QAClD,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC;IAClC,CAAC;IAFe,8BAAQ,WAEvB,CAAA;IAED,cAAc;IACd,SAAgB,WAAW,CAAC,IAA2B;QACrD,OAAO,CAAC,CAAE,IAA4B,CAAC,IAAI,CAAC;IAC9C,CAAC;IAFe,iCAAW,cAE1B,CAAA;IAED,cAAc;IACd,SAAgB,mBAAmB,CAAC,IAA2B;QAC7D,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAFe,yCAAmB,sBAElC,CAAA;AACH,CAAC,EAfgB,qBAAqB,qCAArB,qBAAqB,QAerC;AAUD,cAAc;AACd,2DAA2D;AAC3D,IAAiB,iBAAiB,CA2BjC;AA3BD,WAAiB,iBAAiB;IAChC;;;;;OAKG;IACI,KAAK,UAAU,SAAS,CAAC,KAO/B;QACC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAClD,OAAO,CACL,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YACvB,IAAI,qBAAqB,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpD,OAAO,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;YAC9D,CAAC;YACD,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CACH,CACF,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAC1B,CAAC;IAnBqB,2BAAS,YAmB9B,CAAA;AACH,CAAC,EA3BgB,iBAAiB,iCAAjB,iBAAiB,QA2BjC"}
|
|
@@ -3,7 +3,7 @@ import { Id64String } from "@itwin/core-bentley";
|
|
|
3
3
|
* Defines an ECSql binding consisting of a value and its type. Necessary to differentiate between numeric
|
|
4
4
|
* types and `Id64String` vs `string`.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
export type ECSqlBinding = {
|
|
9
9
|
type: "boolean";
|
|
@@ -36,7 +36,7 @@ export type ECSqlBinding = {
|
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* Defines an ECSQL query and its bindings.
|
|
39
|
-
* @
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
41
|
export interface ECSqlQueryDef {
|
|
42
42
|
/** A list of CTEs used in the query. */
|
|
@@ -55,13 +55,13 @@ export interface ECSqlQueryDef {
|
|
|
55
55
|
/**
|
|
56
56
|
* Defines requested ECSQL result row format.
|
|
57
57
|
* @see [QueryRowFormat](https://www.itwinjs.org/reference/core-common/imodels/queryrowformat/)
|
|
58
|
-
* @
|
|
58
|
+
* @public
|
|
59
59
|
*/
|
|
60
60
|
type ECSqlQueryRowFormat = "ECSqlPropertyNames" | "Indexes";
|
|
61
61
|
/**
|
|
62
62
|
* Defines options for ECSQL query reader.
|
|
63
63
|
* @see [QueryOptions](https://www.itwinjs.org/reference/core-common/imodels/queryoptions/)
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
66
|
export interface ECSqlQueryReaderOptions {
|
|
67
67
|
rowFormat?: ECSqlQueryRowFormat;
|
|
@@ -70,7 +70,7 @@ export interface ECSqlQueryReaderOptions {
|
|
|
70
70
|
/**
|
|
71
71
|
* Represents a single row of an ECSQL query result.
|
|
72
72
|
* @see [QueryRowProxy](https://www.itwinjs.org/reference/core-common/imodels/queryrowproxy/)
|
|
73
|
-
* @
|
|
73
|
+
* @public
|
|
74
74
|
*/
|
|
75
75
|
export interface ECSqlQueryRow {
|
|
76
76
|
[propertyName: string]: any;
|
|
@@ -79,13 +79,13 @@ export interface ECSqlQueryRow {
|
|
|
79
79
|
/**
|
|
80
80
|
* Represents ECSQL query results reader.
|
|
81
81
|
* @see [ECSqlReader](https://www.itwinjs.org/reference/core-common/imodels/ecsqlreader/)
|
|
82
|
-
* @
|
|
82
|
+
* @public
|
|
83
83
|
*/
|
|
84
84
|
type ECSqlQueryReader = AsyncIterableIterator<ECSqlQueryRow>;
|
|
85
85
|
/**
|
|
86
86
|
* An interface for something that knows how to create an ECSQL query reader.
|
|
87
87
|
* @see `createECSqlQueryExecutor` in `@itwin/presentation-core-interop`.
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
90
|
export interface ECSqlQueryExecutor {
|
|
91
91
|
createQueryReader(query: ECSqlQueryDef, config?: ECSqlQueryReaderOptions): ECSqlQueryReader;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ConcatenatedValue } from "./ConcatenatedValue";
|
|
2
|
-
import { TypedPrimitiveValue } from "./Values";
|
|
1
|
+
import { ConcatenatedValue } from "./ConcatenatedValue.js";
|
|
2
|
+
import { TypedPrimitiveValue } from "./Values.js";
|
|
3
3
|
/**
|
|
4
4
|
* A type definition for a function that knows how to create a display string for a typed primitive value.
|
|
5
5
|
* @see `createDefaultValueFormatter`
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
export type IPrimitiveValueFormatter = (value: TypedPrimitiveValue) => Promise<string>;
|
|
9
9
|
/**
|
|
10
10
|
* Formats a concatenated value into a string, taking into account different types of `ConcatenatedValuePart` that
|
|
11
11
|
* the value consists of.
|
|
12
12
|
*
|
|
13
|
-
* @
|
|
13
|
+
* @public
|
|
14
14
|
*/
|
|
15
15
|
export declare function formatConcatenatedValue(props: {
|
|
16
16
|
value: ConcatenatedValue | string;
|
|
@@ -38,7 +38,7 @@ export declare function formatConcatenatedValue(props: {
|
|
|
38
38
|
*
|
|
39
39
|
* - `String` and `Id` values are returned as-is.
|
|
40
40
|
*
|
|
41
|
-
* @
|
|
41
|
+
* @public
|
|
42
42
|
*/
|
|
43
43
|
export declare function createDefaultValueFormatter(): IPrimitiveValueFormatter;
|
|
44
44
|
//# sourceMappingURL=Formatting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formatting.d.ts","sourceRoot":"","sources":["../../../src/shared/Formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAyB,MAAM,
|
|
1
|
+
{"version":3,"file":"Formatting.d.ts","sourceRoot":"","sources":["../../../src/shared/Formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAyB,MAAM,wBAAwB,CAAC;AAElF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEvF;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAAC,cAAc,EAAE,wBAAwB,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBrJ;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,IAAI,wBAAwB,CAatE"}
|
|
@@ -7,24 +7,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.formatConcatenatedValue = formatConcatenatedValue;
|
|
8
8
|
exports.createDefaultValueFormatter = createDefaultValueFormatter;
|
|
9
9
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const ConcatenatedValue_js_1 = require("./ConcatenatedValue.js");
|
|
11
|
+
const Utils_js_1 = require("./Utils.js");
|
|
12
12
|
/**
|
|
13
13
|
* Formats a concatenated value into a string, taking into account different types of `ConcatenatedValuePart` that
|
|
14
14
|
* the value consists of.
|
|
15
15
|
*
|
|
16
|
-
* @
|
|
16
|
+
* @public
|
|
17
17
|
*/
|
|
18
18
|
async function formatConcatenatedValue(props) {
|
|
19
19
|
const { value, valueFormatter } = props;
|
|
20
20
|
if (typeof value === "string") {
|
|
21
21
|
return valueFormatter({ value, type: "String" });
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return ConcatenatedValue_js_1.ConcatenatedValue.serialize({
|
|
24
24
|
parts: value,
|
|
25
25
|
partFormatter: async (part) => {
|
|
26
26
|
// strings are converted to typed strings
|
|
27
|
-
if (
|
|
27
|
+
if (ConcatenatedValue_js_1.ConcatenatedValuePart.isString(part)) {
|
|
28
28
|
part = {
|
|
29
29
|
value: part,
|
|
30
30
|
type: "String",
|
|
@@ -57,7 +57,7 @@ async function formatConcatenatedValue(props) {
|
|
|
57
57
|
*
|
|
58
58
|
* - `String` and `Id` values are returned as-is.
|
|
59
59
|
*
|
|
60
|
-
* @
|
|
60
|
+
* @public
|
|
61
61
|
*/
|
|
62
62
|
function createDefaultValueFormatter() {
|
|
63
63
|
const formatters = [applyBooleanFormatting, applyNumericFormatting, applyDatesFormatting, applyPointsFormatting];
|
|
@@ -89,7 +89,7 @@ function applyNumericFormatting(value) {
|
|
|
89
89
|
}
|
|
90
90
|
function applyDatesFormatting(value) {
|
|
91
91
|
function getDate(julianOrDate) {
|
|
92
|
-
return typeof julianOrDate === "number" ? (0,
|
|
92
|
+
return typeof julianOrDate === "number" ? (0, Utils_js_1.julianToDateTime)(julianOrDate) : typeof julianOrDate === "string" ? new Date(julianOrDate) : julianOrDate;
|
|
93
93
|
}
|
|
94
94
|
if (value.type !== "DateTime") {
|
|
95
95
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formatting.js","sourceRoot":"","sources":["../../../src/shared/Formatting.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAoBhG,0DAmBC;AA0BD,kEAaC;AA5ED,sDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"Formatting.js","sourceRoot":"","sources":["../../../src/shared/Formatting.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConcatenatedValue } from "./ConcatenatedValue";
|
|
2
|
-
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets";
|
|
3
|
-
import { ECClassHierarchyInspector } from "./Metadata";
|
|
1
|
+
import { ConcatenatedValue } from "./ConcatenatedValue.js";
|
|
2
|
+
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets.js";
|
|
3
|
+
import { ECClassHierarchyInspector } from "./Metadata.js";
|
|
4
4
|
/**
|
|
5
5
|
* Props for `IInstanceLabelSelectClauseFactory.createSelectClause`.
|
|
6
|
-
* @
|
|
6
|
+
* @public
|
|
7
7
|
*/
|
|
8
8
|
interface CreateInstanceLabelSelectClauseProps {
|
|
9
9
|
/**
|
|
@@ -56,7 +56,7 @@ interface CreateInstanceLabelSelectClauseProps {
|
|
|
56
56
|
* @see `createDefaultInstanceLabelSelectClauseFactory`
|
|
57
57
|
* @see `createClassBasedInstanceLabelSelectClauseFactory`
|
|
58
58
|
* @see `createBisInstanceLabelSelectClauseFactory`
|
|
59
|
-
* @
|
|
59
|
+
* @public
|
|
60
60
|
*/
|
|
61
61
|
export interface IInstanceLabelSelectClauseFactory {
|
|
62
62
|
/** Creates a select clause for an instance label. */
|
|
@@ -67,7 +67,7 @@ export interface IInstanceLabelSelectClauseFactory {
|
|
|
67
67
|
* is expected when label selector is created using `IInstanceLabelSelectClauseFactory.createSelectClause` with
|
|
68
68
|
* `createConcatenatedValueJsonSelector`.
|
|
69
69
|
*
|
|
70
|
-
* @
|
|
70
|
+
* @public
|
|
71
71
|
*/
|
|
72
72
|
export declare function parseInstanceLabel(value: string | undefined): ConcatenatedValue | string;
|
|
73
73
|
/**
|
|
@@ -77,12 +77,12 @@ export declare function parseInstanceLabel(value: string | undefined): Concatena
|
|
|
77
77
|
* - `{local id} = ECInstanceId & (1 << 40 - 1)`
|
|
78
78
|
*
|
|
79
79
|
* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
82
|
export declare function createDefaultInstanceLabelSelectClauseFactory(): IInstanceLabelSelectClauseFactory;
|
|
83
83
|
/**
|
|
84
84
|
* An association of a class and an instance label select clause factory method.
|
|
85
|
-
* @
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
interface ClassBasedLabelSelectClause {
|
|
88
88
|
/** Full class name */
|
|
@@ -92,7 +92,7 @@ interface ClassBasedLabelSelectClause {
|
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Props for `createClassBasedInstanceLabelSelectClauseFactory`.
|
|
95
|
-
* @
|
|
95
|
+
* @public
|
|
96
96
|
*/
|
|
97
97
|
interface ClassBasedInstanceLabelSelectClauseFactoryProps {
|
|
98
98
|
/** Access to ECClass hierarchy in the iModel. */
|
|
@@ -113,12 +113,12 @@ interface ClassBasedInstanceLabelSelectClauseFactoryProps {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Creates an instance label select clause based on its class.
|
|
116
|
-
* @
|
|
116
|
+
* @public
|
|
117
117
|
*/
|
|
118
118
|
export declare function createClassBasedInstanceLabelSelectClauseFactory(props: ClassBasedInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;
|
|
119
119
|
/**
|
|
120
120
|
* Props for `createBisInstanceLabelSelectClauseFactory`.
|
|
121
|
-
* @
|
|
121
|
+
* @public
|
|
122
122
|
*/
|
|
123
123
|
interface BisInstanceLabelSelectClauseFactoryProps {
|
|
124
124
|
classHierarchyInspector: ECClassHierarchyInspector;
|
|
@@ -126,7 +126,7 @@ interface BisInstanceLabelSelectClauseFactoryProps {
|
|
|
126
126
|
/**
|
|
127
127
|
* Creates a label select clause according to BIS instance label rules.
|
|
128
128
|
* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
|
|
129
|
-
* @
|
|
129
|
+
* @public
|
|
130
130
|
*/
|
|
131
131
|
export declare function createBisInstanceLabelSelectClauseFactory(props: BisInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;
|
|
132
132
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceLabelSelectClauseFactory.d.ts","sourceRoot":"","sources":["../../../src/shared/InstanceLabelSelectClauseFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InstanceLabelSelectClauseFactory.d.ts","sourceRoot":"","sources":["../../../src/shared/InstanceLabelSelectClauseFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAGL,2BAA2B,EAC5B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE1D;;;GAGG;AACH,UAAU,oCAAoC;IAC5C;;;;;;;;;;OAUG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,2BAA2B,EAAE,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CACtG;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iCAAiC;IAChD,qDAAqD;IACrD,kBAAkB,CAAC,KAAK,EAAE,oCAAoC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,GAAG,MAAM,CAaxF;AAED;;;;;;;;GAQG;AACH,wBAAgB,6CAA6C,IAAI,iCAAiC,CAmBjG;AAED;;;GAGG;AACH,UAAU,2BAA2B;IACnC,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,MAAM,EAAE,CAAC,KAAK,EAAE,oCAAoC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1E;AAED;;;GAGG;AACH,UAAU,+CAA+C;IACvD,iDAAiD;IACjD,uBAAuB,EAAE,yBAAyB,CAAC;IAEnD;;;;;;OAMG;IACH,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAEvC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,iCAAiC,CAAC;CAC1D;AAED;;;GAGG;AACH,wBAAgB,gDAAgD,CAAC,KAAK,EAAE,+CAA+C,GAAG,iCAAiC,CA0D1J;AAED;;;GAGG;AACH,UAAU,wCAAwC;IAChD,uBAAuB,EAAE,yBAAyB,CAAC;CACpD;AAED;;;;GAIG;AACH,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,wCAAwC,GAAG,iCAAiC,CAuC5I"}
|