@itwin/appui-react 5.28.1 → 5.29.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log - @itwin/appui-react
2
2
 
3
+ ## 5.29.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8202fee]
8
+ - Updated dependencies [8202fee]
9
+ - Updated dependencies [cdd7f5b]
10
+ - @itwin/components-react@5.29.0
11
+ - @itwin/imodel-components-react@5.29.0
12
+ - @itwin/core-react@5.29.0
13
+
3
14
  ## 5.28.1
4
15
 
5
16
  ### Patch Changes
@@ -13,10 +13,10 @@ export const NumericEditorSpec = createEditorSpec({
13
13
  isValueSupported: ValueUtilities.isNumeric,
14
14
  Editor: NumericEditor,
15
15
  });
16
- function NumericEditor({ value, onChange, size, disabled, }) {
16
+ function NumericEditor({ value, onChange, size, disabled, id, }) {
17
17
  const currentValue = getNumericValue(value);
18
18
  return (React.createElement(InputWithDecorations, { size: size },
19
- React.createElement(InputWithDecorations.Input, { value: currentValue.displayValue, onChange: (e) => {
19
+ React.createElement(InputWithDecorations.Input, { id: id, value: currentValue.displayValue, onChange: (e) => {
20
20
  const parsedValue = parseFloat(e.target.value);
21
21
  onChange({
22
22
  rawValue: Number.isNaN(parsedValue)
@@ -1 +1 @@
1
- {"version":3,"file":"NumericEditor.js","sourceRoot":"","sources":["../../../src/appui-react/new-editors/NumericEditor.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,qBAAqB;AAErB,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAChD,mBAAmB,EAAE,CAAC,QAAQ,EAA6B,EAAE,CAC3D,QAAQ,CAAC,IAAI,KAAK,QAAQ;IAC5B,gBAAgB,EAAE,cAAc,CAAC,SAAS;IAC1C,MAAM,EAAE,aAAa;CACtB,CAAC,CAAC;AAEH,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,GACiC;IACzC,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI;QAC9B,oBAAC,oBAAoB,CAAC,KAAK,IACzB,KAAK,EAAE,YAAY,CAAC,YAAY,EAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,MAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC/C,QAAQ,CAAC;oBACP,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;wBACjC,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;oBAC9B,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;iBAC7B,CAAC,CAAC;YACL,CAAC,EACD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,yBAAyB,OAAG,CACR,CACxB,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAA+B;IACtD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;AACnE,CAAC;AAED,oBAAoB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport { InputWithDecorations } from \"@itwin/itwinui-react\";\nimport type {\n EditorProps,\n NumericValue,\n ValueMetadata,\n} from \"@itwin/components-react\";\nimport { createEditorSpec, ValueUtilities } from \"@itwin/components-react\";\nimport { LockButtonInputDecoration } from \"../editors/LockProvider.js\";\n\n/* v8 ignore start */\n\n/** @internal */\nexport const NumericEditorSpec = createEditorSpec({\n isMetadataSupported: (metadata): metadata is ValueMetadata =>\n metadata.type === \"number\",\n isValueSupported: ValueUtilities.isNumeric,\n Editor: NumericEditor,\n});\n\nfunction NumericEditor({\n value,\n onChange,\n size,\n disabled,\n}: EditorProps<ValueMetadata, NumericValue>) {\n const currentValue = getNumericValue(value);\n return (\n <InputWithDecorations size={size}>\n <InputWithDecorations.Input\n value={currentValue.displayValue}\n onChange={(e) => {\n const parsedValue = parseFloat(e.target.value);\n onChange({\n rawValue: Number.isNaN(parsedValue)\n ? undefined\n : parseFloat(e.target.value),\n displayValue: e.target.value,\n });\n }}\n size={size}\n disabled={disabled}\n />\n <LockButtonInputDecoration />\n </InputWithDecorations>\n );\n}\n\nfunction getNumericValue(value: NumericValue | undefined): NumericValue {\n return value ? value : { rawValue: undefined, displayValue: \"\" };\n}\n\n/* v8 ignore stop */\n"]}
1
+ {"version":3,"file":"NumericEditor.js","sourceRoot":"","sources":["../../../src/appui-react/new-editors/NumericEditor.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,qBAAqB;AAErB,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAChD,mBAAmB,EAAE,CAAC,QAAQ,EAA6B,EAAE,CAC3D,QAAQ,CAAC,IAAI,KAAK,QAAQ;IAC5B,gBAAgB,EAAE,cAAc,CAAC,SAAS;IAC1C,MAAM,EAAE,aAAa;CACtB,CAAC,CAAC;AAEH,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,EAAE,GACuC;IACzC,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI;QAC9B,oBAAC,oBAAoB,CAAC,KAAK,IACzB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,YAAY,CAAC,YAAY,EAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,MAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC/C,QAAQ,CAAC;oBACP,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC;wBACjC,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;oBAC9B,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;iBAC7B,CAAC,CAAC;YACL,CAAC,EACD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,yBAAyB,OAAG,CACR,CACxB,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAA+B;IACtD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;AACnE,CAAC;AAED,oBAAoB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport { InputWithDecorations } from \"@itwin/itwinui-react\";\nimport type {\n EditorProps,\n NumericValue,\n ValueMetadata,\n} from \"@itwin/components-react\";\nimport { createEditorSpec, ValueUtilities } from \"@itwin/components-react\";\nimport { LockButtonInputDecoration } from \"../editors/LockProvider.js\";\n\n/* v8 ignore start */\n\n/** @internal */\nexport const NumericEditorSpec = createEditorSpec({\n isMetadataSupported: (metadata): metadata is ValueMetadata =>\n metadata.type === \"number\",\n isValueSupported: ValueUtilities.isNumeric,\n Editor: NumericEditor,\n});\n\nfunction NumericEditor({\n value,\n onChange,\n size,\n disabled,\n id,\n}: EditorProps<ValueMetadata, NumericValue>) {\n const currentValue = getNumericValue(value);\n return (\n <InputWithDecorations size={size}>\n <InputWithDecorations.Input\n id={id}\n value={currentValue.displayValue}\n onChange={(e) => {\n const parsedValue = parseFloat(e.target.value);\n onChange({\n rawValue: Number.isNaN(parsedValue)\n ? undefined\n : parseFloat(e.target.value),\n displayValue: e.target.value,\n });\n }}\n size={size}\n disabled={disabled}\n />\n <LockButtonInputDecoration />\n </InputWithDecorations>\n );\n}\n\nfunction getNumericValue(value: NumericValue | undefined): NumericValue {\n return value ? value : { rawValue: undefined, displayValue: \"\" };\n}\n\n/* v8 ignore stop */\n"]}
@@ -13,10 +13,10 @@ export const TextEditorSpec = createEditorSpec({
13
13
  isValueSupported: ValueUtilities.isText,
14
14
  Editor: TextEditor,
15
15
  });
16
- function TextEditor({ value, onChange, size, disabled, }) {
16
+ function TextEditor({ value, onChange, size, disabled, id, }) {
17
17
  const currentValue = value ? value : { value: "" };
18
18
  return (React.createElement(InputWithDecorations, { size: size },
19
- React.createElement(InputWithDecorations.Input, { value: currentValue.value, onChange: (e) => onChange({ value: e.target.value }), size: size, disabled: disabled }),
19
+ React.createElement(InputWithDecorations.Input, { id: id, value: currentValue.value, onChange: (e) => onChange({ value: e.target.value }), size: size, disabled: disabled }),
20
20
  React.createElement(LockButtonInputDecoration, null)));
21
21
  }
22
22
  /* v8 ignore stop */
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditor.js","sourceRoot":"","sources":["../../../src/appui-react/new-editors/TextEditor.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,qBAAqB;AAErB,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC7C,mBAAmB,EAAE,CAAC,QAAQ,EAA6B,EAAE,CAC3D,QAAQ,CAAC,IAAI,KAAK,QAAQ;IAC5B,gBAAgB,EAAE,cAAc,CAAC,MAAM;IACvC,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,GAC8B;IACtC,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAEnD,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI;QAC9B,oBAAC,oBAAoB,CAAC,KAAK,IACzB,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,yBAAyB,OAAG,CACR,CACxB,CAAC;AACJ,CAAC;AAED,oBAAoB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport { InputWithDecorations } from \"@itwin/itwinui-react\";\nimport type {\n EditorProps,\n TextValue,\n ValueMetadata,\n} from \"@itwin/components-react\";\nimport { createEditorSpec, ValueUtilities } from \"@itwin/components-react\";\nimport { LockButtonInputDecoration } from \"../editors/LockProvider.js\";\n\n/* v8 ignore start */\n\n/** @internal */\nexport const TextEditorSpec = createEditorSpec({\n isMetadataSupported: (metadata): metadata is ValueMetadata =>\n metadata.type === \"string\",\n isValueSupported: ValueUtilities.isText,\n Editor: TextEditor,\n});\n\nfunction TextEditor({\n value,\n onChange,\n size,\n disabled,\n}: EditorProps<ValueMetadata, TextValue>) {\n const currentValue = value ? value : { value: \"\" };\n\n return (\n <InputWithDecorations size={size}>\n <InputWithDecorations.Input\n value={currentValue.value}\n onChange={(e) => onChange({ value: e.target.value })}\n size={size}\n disabled={disabled}\n />\n <LockButtonInputDecoration />\n </InputWithDecorations>\n );\n}\n\n/* v8 ignore stop */\n"]}
1
+ {"version":3,"file":"TextEditor.js","sourceRoot":"","sources":["../../../src/appui-react/new-editors/TextEditor.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,qBAAqB;AAErB,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC7C,mBAAmB,EAAE,CAAC,QAAQ,EAA6B,EAAE,CAC3D,QAAQ,CAAC,IAAI,KAAK,QAAQ;IAC5B,gBAAgB,EAAE,cAAc,CAAC,MAAM;IACvC,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,EAAE,GACoC;IACtC,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAEnD,OAAO,CACL,oBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI;QAC9B,oBAAC,oBAAoB,CAAC,KAAK,IACzB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,yBAAyB,OAAG,CACR,CACxB,CAAC;AACJ,CAAC;AAED,oBAAoB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport { InputWithDecorations } from \"@itwin/itwinui-react\";\nimport type {\n EditorProps,\n TextValue,\n ValueMetadata,\n} from \"@itwin/components-react\";\nimport { createEditorSpec, ValueUtilities } from \"@itwin/components-react\";\nimport { LockButtonInputDecoration } from \"../editors/LockProvider.js\";\n\n/* v8 ignore start */\n\n/** @internal */\nexport const TextEditorSpec = createEditorSpec({\n isMetadataSupported: (metadata): metadata is ValueMetadata =>\n metadata.type === \"string\",\n isValueSupported: ValueUtilities.isText,\n Editor: TextEditor,\n});\n\nfunction TextEditor({\n value,\n onChange,\n size,\n disabled,\n id,\n}: EditorProps<ValueMetadata, TextValue>) {\n const currentValue = value ? value : { value: \"\" };\n\n return (\n <InputWithDecorations size={size}>\n <InputWithDecorations.Input\n id={id}\n value={currentValue.value}\n onChange={(e) => onChange({ value: e.target.value })}\n size={size}\n disabled={disabled}\n />\n <LockButtonInputDecoration />\n </InputWithDecorations>\n );\n}\n\n/* v8 ignore stop */\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/appui-react",
3
- "version": "5.28.1",
3
+ "version": "5.29.0",
4
4
  "description": "A react component library for AppUI framework",
5
5
  "type": "module",
6
6
  "types": "./lib/appui-react.d.ts",
@@ -45,9 +45,9 @@
45
45
  "react-dom": "^18.0.0 || ^19.0.0",
46
46
  "react-redux": "^7.2.2 || ^8.0.0 || ^9.0.0",
47
47
  "redux": "^4.1.0 || ^5.0.0",
48
- "@itwin/components-react": "5.28.1",
49
- "@itwin/core-react": "5.28.1",
50
- "@itwin/imodel-components-react": "5.28.1"
48
+ "@itwin/components-react": "5.29.0",
49
+ "@itwin/core-react": "5.29.0",
50
+ "@itwin/imodel-components-react": "5.29.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@itwin/appui-abstract": "^5.8.1",
@@ -89,9 +89,9 @@
89
89
  "typescript": "~5.6.3",
90
90
  "upath": "^2.0.1",
91
91
  "vitest": "^3.2.4",
92
- "@itwin/components-react": "5.28.1",
93
- "@itwin/core-react": "5.28.1",
94
- "@itwin/imodel-components-react": "5.28.1"
92
+ "@itwin/components-react": "5.29.0",
93
+ "@itwin/core-react": "5.29.0",
94
+ "@itwin/imodel-components-react": "5.29.0"
95
95
  },
96
96
  "dependencies": {
97
97
  "@itwin/itwinui-icons-react": "^2.11.0",