@itwin/ecschema-rpcinterface-tests 5.7.0-dev.6 → 5.7.0-dev.8
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/lib/dist/bundled-tests.js +21 -9
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -174492,11 +174492,13 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
174492
174492
|
/** Settings specific to text input fields. */
|
|
174493
174493
|
input: {
|
|
174494
174494
|
/** Font color to use for text input field values. */
|
|
174495
|
-
color: "var(--iui-color-
|
|
174495
|
+
color: "var(--iui-color-text-muted, white)",
|
|
174496
174496
|
/** Padding applied to text input fields. */
|
|
174497
174497
|
padding: "0 var(--iui-size-s, 0.5rem)",
|
|
174498
174498
|
/** Settings applied to text input fields when they have focus. */
|
|
174499
174499
|
focused: {
|
|
174500
|
+
/** Font color for focused text input fields. */
|
|
174501
|
+
color: "hsla(0, 0%, 100%, 1)",
|
|
174500
174502
|
/** Background color for focused text input fields. */
|
|
174501
174503
|
backgroundColor: "hsl(var(--iui-color-accent-hsl, 166 96% 30.7%) / var(--iui-opacity-2, 85%))",
|
|
174502
174504
|
/** Inner stroke for focused text input fields. */
|
|
@@ -174525,7 +174527,7 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
174525
174527
|
/** Settings applied to lock buttons when they are unlocked. */
|
|
174526
174528
|
unlocked: {
|
|
174527
174529
|
/** Text color for unlocked lock buttons. */
|
|
174528
|
-
color: "var(--iui-color-text
|
|
174530
|
+
color: "var(--iui-color-text, #cccccc)",
|
|
174529
174531
|
/** Background color for unlocked lock buttons. */
|
|
174530
174532
|
backgroundColor: "hsl(var(--iui-color-background-hsl, 203 6% 21.25%) / var(--iui-opacity-2, 85%))",
|
|
174531
174533
|
/** Border settings for unlocked lock buttons. */
|
|
@@ -174975,7 +174977,13 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
174975
174977
|
break;
|
|
174976
174978
|
case false:
|
|
174977
174979
|
style.backgroundColor = controlProps.input.unfocused.backgroundColor;
|
|
174978
|
-
|
|
174980
|
+
/**
|
|
174981
|
+
* StrataKit resets the `outline` style here: https://github.com/iTwin/stratakit/blob/d08ecb28ca4e304094489522eb8e17c9a10865b3/packages/foundations/src/~unlayered.css#L10
|
|
174982
|
+
* This causes the input to have a white outline when focused unless we override it again with `!important`.
|
|
174983
|
+
* Note: `style.outline = "none !important"` does not work because the CSSOM property setter ignores the `!important` flag; the `priority` must be passed via `CSSStyleDeclaration.setProperty`.
|
|
174984
|
+
* See MDN: https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty
|
|
174985
|
+
*/
|
|
174986
|
+
style.setProperty("outline", "none", "important");
|
|
174979
174987
|
style.padding = controlProps.input.padding;
|
|
174980
174988
|
style.border = baseBorder + controlProps.input.unfocused.border.color;
|
|
174981
174989
|
style.color = controlProps.input.color;
|
|
@@ -175180,6 +175188,9 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
175180
175188
|
itemField.style.boxShadow = focusIn
|
|
175181
175189
|
? AccuDrawViewportUI.controlProps.input.focused.innerStroke
|
|
175182
175190
|
: "none";
|
|
175191
|
+
itemField.style.color = focusIn
|
|
175192
|
+
? AccuDrawViewportUI.controlProps.input.focused.color
|
|
175193
|
+
: AccuDrawViewportUI.controlProps.input.color;
|
|
175183
175194
|
this.updateItemFieldKeyinStatus(itemField, item);
|
|
175184
175195
|
if (!focusIn)
|
|
175185
175196
|
this.setDynamicKeyinStatus(item);
|
|
@@ -305851,7 +305862,7 @@ class Formatter {
|
|
|
305851
305862
|
}
|
|
305852
305863
|
const azBaseQuantity = new _Quantity__WEBPACK_IMPORTED_MODULE_4__.Quantity(spec.format.azimuthBaseUnit, spec.format.azimuthBase);
|
|
305853
305864
|
const azBaseConverted = azBaseQuantity.convertTo(spec.persistenceUnit, spec.azimuthBaseConversion);
|
|
305854
|
-
if (
|
|
305865
|
+
if (!azBaseConverted.isValid) {
|
|
305855
305866
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.UnsupportedUnit, `Failed to convert azimuth base unit to ${spec.persistenceUnit.name}.`);
|
|
305856
305867
|
}
|
|
305857
305868
|
azimuthBase = this.normalizeAngle(azBaseConverted.magnitude, revolution);
|
|
@@ -305881,7 +305892,7 @@ class Formatter {
|
|
|
305881
305892
|
}
|
|
305882
305893
|
const revolution = new _Quantity__WEBPACK_IMPORTED_MODULE_4__.Quantity(spec.format.revolutionUnit, 1.0);
|
|
305883
305894
|
const converted = revolution.convertTo(spec.persistenceUnit, spec.revolutionConversion);
|
|
305884
|
-
if (
|
|
305895
|
+
if (!converted.isValid) {
|
|
305885
305896
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.UnsupportedUnit, `Failed to convert revolution unit to ${spec.persistenceUnit.name}.`);
|
|
305886
305897
|
}
|
|
305887
305898
|
return converted.magnitude;
|
|
@@ -307006,7 +307017,7 @@ class Parser {
|
|
|
307006
307017
|
}
|
|
307007
307018
|
const azBaseQuantity = new _Quantity__WEBPACK_IMPORTED_MODULE_3__.Quantity(spec.format.azimuthBaseUnit, spec.format.azimuthBase);
|
|
307008
307019
|
const azBaseConverted = azBaseQuantity.convertTo(spec.outUnit, spec.azimuthBaseConversion);
|
|
307009
|
-
if (
|
|
307020
|
+
if (!azBaseConverted.isValid) {
|
|
307010
307021
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.UnsupportedUnit, `Failed to convert azimuth base unit to ${spec.outUnit.name}.`);
|
|
307011
307022
|
}
|
|
307012
307023
|
azimuthBase = this.normalizeAngle(azBaseConverted.magnitude, revolution);
|
|
@@ -307137,8 +307148,9 @@ class Parser {
|
|
|
307137
307148
|
if (err instanceof _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError && err.errorNumber === _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.InvertingZero) {
|
|
307138
307149
|
return { ok: false, error: ParseError.InvalidMathResult };
|
|
307139
307150
|
}
|
|
307151
|
+
throw err;
|
|
307140
307152
|
}
|
|
307141
|
-
if (
|
|
307153
|
+
if (!converted.isValid) {
|
|
307142
307154
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.UnsupportedUnit, `Failed to convert from ${spec.format.units[0][0].name} to ${spec.outUnit.name} On format ${spec.format.name}.`);
|
|
307143
307155
|
}
|
|
307144
307156
|
return { ok: true, value: converted.magnitude };
|
|
@@ -307156,7 +307168,7 @@ class Parser {
|
|
|
307156
307168
|
}
|
|
307157
307169
|
const revolution = new _Quantity__WEBPACK_IMPORTED_MODULE_3__.Quantity(spec.format.revolutionUnit, 1.0);
|
|
307158
307170
|
const converted = revolution.convertTo(spec.outUnit, spec.revolutionConversion);
|
|
307159
|
-
if (
|
|
307171
|
+
if (!converted.isValid) {
|
|
307160
307172
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.UnsupportedUnit, `Failed to convert revolution unit to ${spec.outUnit.name} On format ${spec.format.name}.`);
|
|
307161
307173
|
}
|
|
307162
307174
|
return converted.magnitude;
|
|
@@ -321279,7 +321291,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
321279
321291
|
/***/ ((module) => {
|
|
321280
321292
|
|
|
321281
321293
|
"use strict";
|
|
321282
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.7.0-dev.
|
|
321294
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.7.0-dev.8","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
321283
321295
|
|
|
321284
321296
|
/***/ })
|
|
321285
321297
|
|