@itwin/grouping-mapping-widget 0.2.0 → 0.2.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.
Files changed (88) hide show
  1. package/README.md +7 -2
  2. package/lib/cjs/widget/GroupingMappingWidget.d.ts +2 -2
  3. package/lib/cjs/widget/GroupingMappingWidget.js +4 -3
  4. package/lib/cjs/widget/GroupingMappingWidget.js.map +1 -1
  5. package/lib/cjs/widget/components/CalculatedPropertyAction.js +2 -1
  6. package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +1 -1
  7. package/lib/cjs/widget/components/CalculatedPropertyTable.js +3 -2
  8. package/lib/cjs/widget/components/CalculatedPropertyTable.js.map +1 -1
  9. package/lib/cjs/widget/components/CustomCalculationAction.js +3 -1
  10. package/lib/cjs/widget/components/CustomCalculationAction.js.map +1 -1
  11. package/lib/cjs/widget/components/CustomCalculationTable.js +4 -3
  12. package/lib/cjs/widget/components/CustomCalculationTable.js.map +1 -1
  13. package/lib/cjs/widget/components/DeleteModal.js +3 -4
  14. package/lib/cjs/widget/components/DeleteModal.js.map +1 -1
  15. package/lib/cjs/widget/components/GroupAction.js +2 -10
  16. package/lib/cjs/widget/components/GroupAction.js.map +1 -1
  17. package/lib/cjs/widget/components/GroupPropertyAction.js +17 -14
  18. package/lib/cjs/widget/components/GroupPropertyAction.js.map +1 -1
  19. package/lib/cjs/widget/components/GroupPropertyTable.js +3 -2
  20. package/lib/cjs/widget/components/GroupPropertyTable.js.map +1 -1
  21. package/lib/cjs/widget/components/Grouping.js +66 -12
  22. package/lib/cjs/widget/components/Grouping.js.map +1 -1
  23. package/lib/cjs/widget/components/Mapping.js +2 -1
  24. package/lib/cjs/widget/components/Mapping.js.map +1 -1
  25. package/lib/cjs/widget/components/MappingAction.js +2 -1
  26. package/lib/cjs/widget/components/MappingAction.js.map +1 -1
  27. package/lib/cjs/widget/components/MappingImportWizardModal.js +1 -1
  28. package/lib/cjs/widget/components/MappingImportWizardModal.js.map +1 -1
  29. package/lib/cjs/widget/components/MappingImportWizardModal.scss +1 -1
  30. package/lib/cjs/widget/components/PropertyMenu.js +18 -12
  31. package/lib/cjs/widget/components/PropertyMenu.js.map +1 -1
  32. package/lib/cjs/widget/components/PropertyMenu.scss +3 -0
  33. package/lib/cjs/widget/components/QueryBuilder.js +1 -1
  34. package/lib/cjs/widget/components/QueryBuilder.js.map +1 -1
  35. package/lib/cjs/widget/components/SelectMappings.js +3 -1
  36. package/lib/cjs/widget/components/SelectMappings.js.map +1 -1
  37. package/lib/cjs/widget/components/SelectProject.scss +1 -1
  38. package/lib/cjs/widget/components/utils.d.ts +1 -0
  39. package/lib/cjs/widget/components/utils.js +61 -19
  40. package/lib/cjs/widget/components/utils.js.map +1 -1
  41. package/lib/esm/widget/GroupingMappingWidget.d.ts +2 -2
  42. package/lib/esm/widget/GroupingMappingWidget.js +5 -4
  43. package/lib/esm/widget/GroupingMappingWidget.js.map +1 -1
  44. package/lib/esm/widget/components/CalculatedPropertyAction.js +3 -2
  45. package/lib/esm/widget/components/CalculatedPropertyAction.js.map +1 -1
  46. package/lib/esm/widget/components/CalculatedPropertyTable.js +3 -2
  47. package/lib/esm/widget/components/CalculatedPropertyTable.js.map +1 -1
  48. package/lib/esm/widget/components/CustomCalculationAction.js +4 -2
  49. package/lib/esm/widget/components/CustomCalculationAction.js.map +1 -1
  50. package/lib/esm/widget/components/CustomCalculationTable.js +4 -3
  51. package/lib/esm/widget/components/CustomCalculationTable.js.map +1 -1
  52. package/lib/esm/widget/components/DeleteModal.js +3 -4
  53. package/lib/esm/widget/components/DeleteModal.js.map +1 -1
  54. package/lib/esm/widget/components/GroupAction.js +3 -11
  55. package/lib/esm/widget/components/GroupAction.js.map +1 -1
  56. package/lib/esm/widget/components/GroupPropertyAction.js +18 -15
  57. package/lib/esm/widget/components/GroupPropertyAction.js.map +1 -1
  58. package/lib/esm/widget/components/GroupPropertyTable.js +3 -2
  59. package/lib/esm/widget/components/GroupPropertyTable.js.map +1 -1
  60. package/lib/esm/widget/components/Grouping.js +68 -14
  61. package/lib/esm/widget/components/Grouping.js.map +1 -1
  62. package/lib/esm/widget/components/Mapping.js +3 -2
  63. package/lib/esm/widget/components/Mapping.js.map +1 -1
  64. package/lib/esm/widget/components/MappingAction.js +3 -2
  65. package/lib/esm/widget/components/MappingAction.js.map +1 -1
  66. package/lib/esm/widget/components/MappingImportWizardModal.js +1 -1
  67. package/lib/esm/widget/components/MappingImportWizardModal.js.map +1 -1
  68. package/lib/esm/widget/components/MappingImportWizardModal.scss +1 -1
  69. package/lib/esm/widget/components/PropertyMenu.js +19 -13
  70. package/lib/esm/widget/components/PropertyMenu.js.map +1 -1
  71. package/lib/esm/widget/components/PropertyMenu.scss +3 -0
  72. package/lib/esm/widget/components/QueryBuilder.js +1 -1
  73. package/lib/esm/widget/components/QueryBuilder.js.map +1 -1
  74. package/lib/esm/widget/components/SelectMappings.js +3 -1
  75. package/lib/esm/widget/components/SelectMappings.js.map +1 -1
  76. package/lib/esm/widget/components/SelectProject.scss +1 -1
  77. package/lib/esm/widget/components/utils.d.ts +1 -0
  78. package/lib/esm/widget/components/utils.js +60 -19
  79. package/lib/esm/widget/components/utils.js.map +1 -1
  80. package/package.json +2 -2
  81. package/lib/cjs/widget/icons/DatabaseInfo.d.ts +0 -5
  82. package/lib/cjs/widget/icons/DatabaseInfo.js +0 -19
  83. package/lib/cjs/widget/icons/DatabaseInfo.js.map +0 -1
  84. package/lib/cjs/widget/icons/DatabaseInfo.scss +0 -12
  85. package/lib/esm/widget/icons/DatabaseInfo.d.ts +0 -5
  86. package/lib/esm/widget/icons/DatabaseInfo.js +0 -14
  87. package/lib/esm/widget/icons/DatabaseInfo.js.map +0 -1
  88. package/lib/esm/widget/icons/DatabaseInfo.scss +0 -12
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import { SvgChevronLeft } from "@itwin/itwinui-icons-react";
6
- import { Text } from "@itwin/itwinui-react";
6
+ import { Text, toaster } from "@itwin/itwinui-react";
7
7
  import "./utils.scss";
8
8
  import React from "react";
9
9
  import { QueryRowFormat } from "@itwin/core-common";
@@ -48,25 +48,66 @@ export const fetchIdsFromQuery = async (query, iModelConnection) => {
48
48
  if (query === "") {
49
49
  return [];
50
50
  }
51
- const ids = [];
52
- const rowIterator = iModelConnection.query(query, undefined, {
53
- rowFormat: QueryRowFormat.UseJsPropertyNames,
54
- });
55
- while (true) {
56
- const { done, value } = await rowIterator.next();
57
- if (done) {
58
- break;
59
- }
60
- if (Object.keys(value).includes("id")) {
61
- // eslint-disable-next-line dot-notation
62
- ids.push(value.id);
63
- }
64
- else if (Object.keys(value).includes("element.id")) {
65
- ids.push(value["element.id"]);
51
+ try {
52
+ const ids = [];
53
+ const rowIterator = iModelConnection.query(query, undefined, {
54
+ rowFormat: QueryRowFormat.UseJsPropertyNames,
55
+ });
56
+ while (true) {
57
+ const { done, value } = await rowIterator.next();
58
+ if (done) {
59
+ break;
60
+ }
61
+ if (Object.keys(value).includes("id")) {
62
+ ids.push(value.id);
63
+ }
64
+ else if (Object.keys(value).includes("element.id")) {
65
+ ids.push(value["element.id"]);
66
+ }
67
+ else if (Object.keys(value).includes("eCInstanceId")) {
68
+ ids.push(value.eCInstanceId);
69
+ }
66
70
  }
67
- // eslint-disable-next-line dot-notation
68
- ids.push(value.id);
71
+ return ids;
72
+ }
73
+ catch (error) {
74
+ toaster.negative("Failed to resolve query.");
75
+ throw (error);
76
+ }
77
+ };
78
+ export const handleError = (errorStatus) => {
79
+ let errorMessage = `Error ${errorStatus}: `;
80
+ switch (errorStatus) {
81
+ case 401:
82
+ errorMessage += `You are unauthorized to do this operation.`;
83
+ break;
84
+ case 403:
85
+ errorMessage += `You don't have permission to access the requested resource.`;
86
+ break;
87
+ case 404:
88
+ errorMessage += `The requested resource was not found.`;
89
+ break;
90
+ case 409:
91
+ errorMessage += `This property name is already being used.`;
92
+ break;
93
+ case 422:
94
+ errorMessage += `Unable to process the request.`;
95
+ break;
96
+ case 429:
97
+ errorMessage += `Too many requests.`;
98
+ break;
99
+ case 500:
100
+ errorMessage += `Internal server error.`;
101
+ break;
102
+ case 502:
103
+ errorMessage += `Bad gateway.`;
104
+ break;
105
+ case 503:
106
+ errorMessage += `Service unavailable.`;
107
+ break;
108
+ default:
109
+ errorMessage += `Something went wrong!`;
69
110
  }
70
- return ids;
111
+ toaster.negative(errorMessage);
71
112
  };
72
113
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/widget/components/utils.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAA6B,EAC7B,iBAAqC,EACrC,EAAE;IACF,+BAA+B;IAC/B,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACxE,IAAI,SAAS,CAAC,OAAO,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;KACxD;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,IAAI,SAAS,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,EAAE;YACrC,0DAA0D;YAC1D,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC5B,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;gBAC9C,OAAO,CAAC,GAAG,CAAC,G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;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,KAAa,EACb,gBAAkC,EAClC,EAAE;IACF,IAAI,KAAK,KAAK,EAAE,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;IACD,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,WAAW,GAAG,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE;QAC3D,SAAS,EAAE,cAAc,CAAC,kBAAkB;KAC7C,CAAC,CAAC;IACH,OAAO,IAAI,EAAE;QACX,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;QACjD,IAAI,IAAI,EAAE;YACR,MAAM;SACP;QACD,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YACrC,wCAAwC;YACxC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACpB;aAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;YACpD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;SAC/B;QACD,wCAAwC;QACxC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;KACpB;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC","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*--------------------------------------------------------------------------------------------*/\nimport { SvgChevronLeft } from \"@itwin/itwinui-icons-react\";\nimport { Text } from \"@itwin/itwinui-react\";\nimport \"./utils.scss\";\nimport React from \"react\";\nimport type {\n ISelectionProvider,\n SelectionChangeEventArgs,\n} from \"@itwin/presentation-frontend\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport { QueryRowFormat } from \"@itwin/core-common\";\n\nexport const onSelectionChanged = (\n evt: SelectionChangeEventArgs,\n selectionProvider: ISelectionProvider,\n) => {\n /* eslint-disable no-console */\n const selection = selectionProvider.getSelection(evt.imodel, evt.level);\n if (selection.isEmpty) {\n console.log(\"========== Selection cleared ==========\");\n } else {\n console.log(\"========== Selection change ===========\");\n if (selection.instanceKeys.size !== 0) {\n // log all selected ECInstance ids grouped by ECClass name\n console.log(\"ECInstances:\");\n selection.instanceKeys.forEach((ids, ecclass) => {\n console.log(`${ecclass}: [${[...ids].join(\",\")}]`);\n });\n }\n if (selection.nodeKeys.size !== 0) {\n // log all selected node keys\n console.log(\"Nodes:\");\n selection.nodeKeys.forEach((key) => console.log(JSON.stringify(key)));\n }\n console.log(\"=======================================\");\n }\n /* eslint-enable no-console */\n};\n\nexport interface WidgetHeaderProps {\n title: string;\n disabled?: boolean;\n returnFn?: () => Promise<void>;\n}\n\nexport const WidgetHeader = ({\n title,\n disabled = false,\n returnFn,\n}: WidgetHeaderProps) => {\n return (\n <div className='widget-header-container'>\n {returnFn && (\n <div\n className={disabled ? \"chevron-disabled\" : \"chevron\"}\n onClick={disabled ? undefined : returnFn}\n >\n <SvgChevronLeft />\n </div>\n )}\n <Text className='title' variant='title'>\n {title}\n </Text>\n </div>\n );\n};\n\nexport const handleInputChange = <T,>(\n e: React.ChangeEvent<HTMLInputElement>,\n values: T,\n setValues: React.Dispatch<React.SetStateAction<T>>,\n) => {\n const { name, value } = e.target;\n\n setValues({\n ...values,\n [name]: value,\n });\n};\n\nexport const fetchIdsFromQuery = async (\n query: string,\n iModelConnection: IModelConnection,\n) => {\n if (query === \"\") {\n return [];\n }\n const ids: string[] = [];\n const rowIterator = iModelConnection.query(query, undefined, {\n rowFormat: QueryRowFormat.UseJsPropertyNames,\n });\n while (true) {\n const { done, value } = await rowIterator.next();\n if (done) {\n break;\n }\n if (Object.keys(value).includes(\"id\")) {\n // eslint-disable-next-line dot-notation\n ids.push(value.id);\n } else if (Object.keys(value).includes(\"element.id\")) {\n ids.push(value[\"element.id\"]);\n }\n // eslint-disable-next-line dot-notation\n ids.push(value.id);\n }\n return ids;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/widget/components/utils.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAA6B,EAC7B,iBAAqC,EACrC,EAAE;IACF,+BAA+B;IAC/B,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACxE,IAAI,SAAS,CAAC,OAAO,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;KACxD;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,IAAI,SAAS,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,EAAE;YACrC,0DAA0D;YAC1D,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC5B,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;gBAC9C,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;SACJ;QACD,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE;YACjC,6BAA6B;YAC7B,OAAO,CAAC,GAAG,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YAAY,IAAI,2CAA2C,CAAC;YAC5D,MAAM;QACR,KAAK,GAAG;YACN,YAAY,IAAI,gCAAgC,CAAC;YACjD,MAAM;QACR,KAAK,GAAG;YACN,YAAY,IAAI,oBAAoB,CAAC;YACrC,MAAM;QACR,KAAK,GAAG;YACN,YAAY,IAAI,wBAAwB,CAAC;YACzC,MAAM;QACR,KAAK,GAAG;YACN,YAAY,IAAI,cAAc,CAAC;YAC/B,MAAM;QACR,KAAK,GAAG;YACN,YAAY,IAAI,sBAAsB,CAAC;YACvC,MAAM;QACR;YACE,YAAY,IAAI,uBAAuB,CAAC;KAC3C;IACD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AAEjC,CAAC,CAAC","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*--------------------------------------------------------------------------------------------*/\nimport { SvgChevronLeft } from \"@itwin/itwinui-icons-react\";\nimport { Text, toaster } from \"@itwin/itwinui-react\";\nimport \"./utils.scss\";\nimport React from \"react\";\nimport type {\n ISelectionProvider,\n SelectionChangeEventArgs,\n} from \"@itwin/presentation-frontend\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport { QueryRowFormat } from \"@itwin/core-common\";\n\nexport const onSelectionChanged = (\n evt: SelectionChangeEventArgs,\n selectionProvider: ISelectionProvider,\n) => {\n /* eslint-disable no-console */\n const selection = selectionProvider.getSelection(evt.imodel, evt.level);\n if (selection.isEmpty) {\n console.log(\"========== Selection cleared ==========\");\n } else {\n console.log(\"========== Selection change ===========\");\n if (selection.instanceKeys.size !== 0) {\n // log all selected ECInstance ids grouped by ECClass name\n console.log(\"ECInstances:\");\n selection.instanceKeys.forEach((ids, ecclass) => {\n console.log(`${ecclass}: [${[...ids].join(\",\")}]`);\n });\n }\n if (selection.nodeKeys.size !== 0) {\n // log all selected node keys\n console.log(\"Nodes:\");\n selection.nodeKeys.forEach((key) => console.log(JSON.stringify(key)));\n }\n console.log(\"=======================================\");\n }\n /* eslint-enable no-console */\n};\n\nexport interface WidgetHeaderProps {\n title: string;\n disabled?: boolean;\n returnFn?: () => Promise<void>;\n}\n\nexport const WidgetHeader = ({\n title,\n disabled = false,\n returnFn,\n}: WidgetHeaderProps) => {\n return (\n <div className='widget-header-container'>\n {returnFn && (\n <div\n className={disabled ? \"chevron-disabled\" : \"chevron\"}\n onClick={disabled ? undefined : returnFn}\n >\n <SvgChevronLeft />\n </div>\n )}\n <Text className='title' variant='title'>\n {title}\n </Text>\n </div>\n );\n};\n\nexport const handleInputChange = <T,>(\n e: React.ChangeEvent<HTMLInputElement>,\n values: T,\n setValues: React.Dispatch<React.SetStateAction<T>>,\n) => {\n const { name, value } = e.target;\n\n setValues({\n ...values,\n [name]: value,\n });\n};\n\nexport const fetchIdsFromQuery = async (\n query: string,\n iModelConnection: IModelConnection,\n) => {\n if (query === \"\") {\n return [];\n }\n try {\n const ids: string[] = [];\n const rowIterator = iModelConnection.query(query, undefined, {\n rowFormat: QueryRowFormat.UseJsPropertyNames,\n });\n while (true) {\n const { done, value } = await rowIterator.next();\n if (done) {\n break;\n }\n if (Object.keys(value).includes(\"id\")) {\n ids.push(value.id);\n } else if (Object.keys(value).includes(\"element.id\")) {\n ids.push(value[\"element.id\"]);\n } else if (Object.keys(value).includes(\"eCInstanceId\")) {\n ids.push(value.eCInstanceId);\n }\n }\n return ids;\n } catch (error) {\n toaster.negative(\"Failed to resolve query.\");\n throw (error);\n\n }\n};\n\nexport const handleError = (errorStatus: number) => {\n let errorMessage = `Error ${errorStatus}: `;\n switch (errorStatus) {\n case 401:\n errorMessage += `You are unauthorized to do this operation.`;\n break;\n case 403:\n errorMessage += `You don't have permission to access the requested resource.`;\n break;\n case 404:\n errorMessage += `The requested resource was not found.`;\n break;\n case 409:\n errorMessage += `This property name is already being used.`;\n break;\n case 422:\n errorMessage += `Unable to process the request.`;\n break;\n case 429:\n errorMessage += `Too many requests.`;\n break;\n case 500:\n errorMessage += `Internal server error.`;\n break;\n case 502:\n errorMessage += `Bad gateway.`;\n break;\n case 503:\n errorMessage += `Service unavailable.`;\n break;\n default:\n errorMessage += `Something went wrong!`;\n }\n toaster.negative(errorMessage);\n\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/grouping-mapping-widget",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
5
5
  "keywords": [
6
6
  "Bentley",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@itwin/imodel-browser-react": "^0.12.1",
40
- "@itwin/itwinui-icons-react": "^1.5.1",
40
+ "@itwin/itwinui-icons-react": "^1.7.0",
41
41
  "@itwin/itwinui-react": "^1.29.2",
42
42
  "classnames": "^2.3.1",
43
43
  "cross-fetch": "^3.1.4",
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import "./DatabaseInfo.scss";
3
- declare const DatabaseInfoIcon: () => JSX.Element;
4
- export default DatabaseInfoIcon;
5
- //# sourceMappingURL=DatabaseInfo.d.ts.map
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /*---------------------------------------------------------------------------------------------
7
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
8
- * See LICENSE.md in the project root for license terms and full copyright notice.
9
- *--------------------------------------------------------------------------------------------*/
10
- const react_1 = __importDefault(require("react"));
11
- require("./DatabaseInfo.scss");
12
- const DatabaseInfoIcon = () => {
13
- return (react_1.default.createElement("svg", { className: 'database-info-icon', version: '1.1', viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg' },
14
- react_1.default.createElement("g", { transform: 'translate(-76.395 -115.93)' },
15
- react_1.default.createElement("path", { d: 'm91.293 123.66a0.77217 0.77217 0 0 1 0.83377 0.70519q0.0019 0.0233 0.0019 0.0473a1.095 1.095 0 0 1-1.0871 1.0035 0.79008 0.79008 0 0 1-0.83626-0.83626 1.0271 1.0271 0 0 1 1.0871-0.91987m-1.6723 8.0281c-0.41796 0-0.75264-0.25105-0.41796-1.4215l0.50175-2.007c0.08327-0.33447 0.08327-0.41848-4.93e-4 -0.41848-0.16708-0.0838-0.75264 0.16724-1.0873 0.41798l-0.16708-0.41798c1.0035-0.83641 2.1741-1.3382 2.7597-1.3382 0.41795 0 0.50175 0.50178 0.25089 1.3382l-0.58506 2.1746c-0.08381 0.41797-0.08381 0.50175 0.08381 0.50175a1.6749 1.6749 0 0 0 0.91989-0.50175l0.25089 0.33486a4.8242 4.8242 0 0 1-2.5091 1.3377', strokeWidth: '.50175' }),
16
- react_1.default.createElement("path", { d: 'm82.2 116.09c-2.4283 0-5.3503 0.45305-5.666 1.0765v2.9707c0.04028 0.16181 0.30758 0.31546 0.72039 0.46923a1.3194 1.3194 0 0 0-0.72039 0.42085v2.922c0.04028 0.1618 0.32376 0.33175 0.75276 0.48568a1.3841 1.3841 0 0 0-0.75276 0.45305v2.9301c0.16188 0.60709 3.7557 1.2222 5.666 1.2222 1.9103 0 5.5041-0.61516 5.666-1.2303v-2.922c-0.04866-0.13736-0.37238-0.29179-0.80944-0.43691 0.46949-0.1618 0.80944-0.32361 0.80944-0.50186v-2.922c-0.04866-0.13775-0.36423-0.27549-0.80944-0.42084 0.4614-0.15405 0.80944-0.32361 0.80944-0.50187v-2.9382c-0.1618-0.4612-3.2377-1.0766-5.666-1.0766zm-4.8566 1.1655h0.08106a10.085 10.085 0 0 0 1.4084 0.45355 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8102 9.8102 0 0 0 1.4327-0.38829l0.22668 0.0974v0.46923a10.401 10.401 0 0 1-1.5298 0.40454 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.652 10.652 0 0 1-1.546-0.40454l-0.11318-0.0485v-0.45355s0.06488-0.0485 0.28329-0.1296zm0 3.8448 0.09697 0.0485a10.296 10.296 0 0 0 1.4489 0.37211 19.677 19.677 0 0 0 3.432 0.38829 19.685 19.685 0 0 0 3.432-0.38829 10.005 10.005 0 0 0 1.4327-0.37211l0.22668 0.0974v0.46923a10.409 10.409 0 0 1-1.5298 0.40458 19.977 19.977 0 0 1-3.5534 0.38825 19.977 19.977 0 0 1-3.5534-0.38825 10.668 10.668 0 0 1-1.546-0.40458l-0.11318-0.0485v-0.43687s0.02445-0.0485 0.17011-0.12959zm0 3.8934h0.08106a10.077 10.077 0 0 0 1.4489 0.38829 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8021 9.8021 0 0 0 1.3922-0.38829l0.22668 0.097v0.46927a10.264 10.264 0 0 1-1.5298 0.42084 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.523 10.523 0 0 1-1.546-0.42084l-0.11318-0.0485v-0.42084s0.08102-0.0485 0.28329-0.097z', strokeWidth: '.80942' }))));
17
- };
18
- exports.default = DatabaseInfoIcon;
19
- //# sourceMappingURL=DatabaseInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatabaseInfo.js","sourceRoot":"","sources":["../../../../src/widget/icons/DatabaseInfo.tsx"],"names":[],"mappings":";;;;;AAAA;;;+FAG+F;AAC/F,kDAA0B;AAC1B,+BAA6B;AAE7B,MAAM,gBAAgB,GAAG,GAAgB,EAAE;IACzC,OAAO,CACL,uCACE,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B;QAElC,qCAAG,SAAS,EAAC,4BAA4B;YACvC,wCACE,CAAC,EAAC,6lBAA6lB,EAC/lB,WAAW,EAAC,QAAQ,GACpB;YACF,wCACE,CAAC,EAAC,2qDAA2qD,EAC7qD,WAAW,EAAC,QAAQ,GACpB,CACA,CACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC","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*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport \"./DatabaseInfo.scss\";\n\nconst DatabaseInfoIcon = (): JSX.Element => {\n return (\n <svg\n className='database-info-icon'\n version='1.1'\n viewBox='0 0 16 16'\n xmlns='http://www.w3.org/2000/svg'\n >\n <g transform='translate(-76.395 -115.93)'>\n <path\n d='m91.293 123.66a0.77217 0.77217 0 0 1 0.83377 0.70519q0.0019 0.0233 0.0019 0.0473a1.095 1.095 0 0 1-1.0871 1.0035 0.79008 0.79008 0 0 1-0.83626-0.83626 1.0271 1.0271 0 0 1 1.0871-0.91987m-1.6723 8.0281c-0.41796 0-0.75264-0.25105-0.41796-1.4215l0.50175-2.007c0.08327-0.33447 0.08327-0.41848-4.93e-4 -0.41848-0.16708-0.0838-0.75264 0.16724-1.0873 0.41798l-0.16708-0.41798c1.0035-0.83641 2.1741-1.3382 2.7597-1.3382 0.41795 0 0.50175 0.50178 0.25089 1.3382l-0.58506 2.1746c-0.08381 0.41797-0.08381 0.50175 0.08381 0.50175a1.6749 1.6749 0 0 0 0.91989-0.50175l0.25089 0.33486a4.8242 4.8242 0 0 1-2.5091 1.3377'\n strokeWidth='.50175'\n />\n <path\n d='m82.2 116.09c-2.4283 0-5.3503 0.45305-5.666 1.0765v2.9707c0.04028 0.16181 0.30758 0.31546 0.72039 0.46923a1.3194 1.3194 0 0 0-0.72039 0.42085v2.922c0.04028 0.1618 0.32376 0.33175 0.75276 0.48568a1.3841 1.3841 0 0 0-0.75276 0.45305v2.9301c0.16188 0.60709 3.7557 1.2222 5.666 1.2222 1.9103 0 5.5041-0.61516 5.666-1.2303v-2.922c-0.04866-0.13736-0.37238-0.29179-0.80944-0.43691 0.46949-0.1618 0.80944-0.32361 0.80944-0.50186v-2.922c-0.04866-0.13775-0.36423-0.27549-0.80944-0.42084 0.4614-0.15405 0.80944-0.32361 0.80944-0.50187v-2.9382c-0.1618-0.4612-3.2377-1.0766-5.666-1.0766zm-4.8566 1.1655h0.08106a10.085 10.085 0 0 0 1.4084 0.45355 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8102 9.8102 0 0 0 1.4327-0.38829l0.22668 0.0974v0.46923a10.401 10.401 0 0 1-1.5298 0.40454 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.652 10.652 0 0 1-1.546-0.40454l-0.11318-0.0485v-0.45355s0.06488-0.0485 0.28329-0.1296zm0 3.8448 0.09697 0.0485a10.296 10.296 0 0 0 1.4489 0.37211 19.677 19.677 0 0 0 3.432 0.38829 19.685 19.685 0 0 0 3.432-0.38829 10.005 10.005 0 0 0 1.4327-0.37211l0.22668 0.0974v0.46923a10.409 10.409 0 0 1-1.5298 0.40458 19.977 19.977 0 0 1-3.5534 0.38825 19.977 19.977 0 0 1-3.5534-0.38825 10.668 10.668 0 0 1-1.546-0.40458l-0.11318-0.0485v-0.43687s0.02445-0.0485 0.17011-0.12959zm0 3.8934h0.08106a10.077 10.077 0 0 0 1.4489 0.38829 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8021 9.8021 0 0 0 1.3922-0.38829l0.22668 0.097v0.46927a10.264 10.264 0 0 1-1.5298 0.42084 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.523 10.523 0 0 1-1.546-0.42084l-0.11318-0.0485v-0.42084s0.08102-0.0485 0.28329-0.097z'\n strokeWidth='.80942'\n />\n </g>\n </svg>\n );\n};\n\nexport default DatabaseInfoIcon;\n"]}
@@ -1,12 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import '~@itwin/itwinui-css/scss/icon/index';
6
-
7
- .database-info-icon {
8
- @include iui-icons-default();
9
- @include themed {
10
- fill: t(iui-icons-color-actionable);
11
- }
12
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import "./DatabaseInfo.scss";
3
- declare const DatabaseInfoIcon: () => JSX.Element;
4
- export default DatabaseInfoIcon;
5
- //# sourceMappingURL=DatabaseInfo.d.ts.map
@@ -1,14 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- import React from "react";
6
- import "./DatabaseInfo.scss";
7
- const DatabaseInfoIcon = () => {
8
- return (React.createElement("svg", { className: 'database-info-icon', version: '1.1', viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg' },
9
- React.createElement("g", { transform: 'translate(-76.395 -115.93)' },
10
- React.createElement("path", { d: 'm91.293 123.66a0.77217 0.77217 0 0 1 0.83377 0.70519q0.0019 0.0233 0.0019 0.0473a1.095 1.095 0 0 1-1.0871 1.0035 0.79008 0.79008 0 0 1-0.83626-0.83626 1.0271 1.0271 0 0 1 1.0871-0.91987m-1.6723 8.0281c-0.41796 0-0.75264-0.25105-0.41796-1.4215l0.50175-2.007c0.08327-0.33447 0.08327-0.41848-4.93e-4 -0.41848-0.16708-0.0838-0.75264 0.16724-1.0873 0.41798l-0.16708-0.41798c1.0035-0.83641 2.1741-1.3382 2.7597-1.3382 0.41795 0 0.50175 0.50178 0.25089 1.3382l-0.58506 2.1746c-0.08381 0.41797-0.08381 0.50175 0.08381 0.50175a1.6749 1.6749 0 0 0 0.91989-0.50175l0.25089 0.33486a4.8242 4.8242 0 0 1-2.5091 1.3377', strokeWidth: '.50175' }),
11
- React.createElement("path", { d: 'm82.2 116.09c-2.4283 0-5.3503 0.45305-5.666 1.0765v2.9707c0.04028 0.16181 0.30758 0.31546 0.72039 0.46923a1.3194 1.3194 0 0 0-0.72039 0.42085v2.922c0.04028 0.1618 0.32376 0.33175 0.75276 0.48568a1.3841 1.3841 0 0 0-0.75276 0.45305v2.9301c0.16188 0.60709 3.7557 1.2222 5.666 1.2222 1.9103 0 5.5041-0.61516 5.666-1.2303v-2.922c-0.04866-0.13736-0.37238-0.29179-0.80944-0.43691 0.46949-0.1618 0.80944-0.32361 0.80944-0.50186v-2.922c-0.04866-0.13775-0.36423-0.27549-0.80944-0.42084 0.4614-0.15405 0.80944-0.32361 0.80944-0.50187v-2.9382c-0.1618-0.4612-3.2377-1.0766-5.666-1.0766zm-4.8566 1.1655h0.08106a10.085 10.085 0 0 0 1.4084 0.45355 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8102 9.8102 0 0 0 1.4327-0.38829l0.22668 0.0974v0.46923a10.401 10.401 0 0 1-1.5298 0.40454 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.652 10.652 0 0 1-1.546-0.40454l-0.11318-0.0485v-0.45355s0.06488-0.0485 0.28329-0.1296zm0 3.8448 0.09697 0.0485a10.296 10.296 0 0 0 1.4489 0.37211 19.677 19.677 0 0 0 3.432 0.38829 19.685 19.685 0 0 0 3.432-0.38829 10.005 10.005 0 0 0 1.4327-0.37211l0.22668 0.0974v0.46923a10.409 10.409 0 0 1-1.5298 0.40458 19.977 19.977 0 0 1-3.5534 0.38825 19.977 19.977 0 0 1-3.5534-0.38825 10.668 10.668 0 0 1-1.546-0.40458l-0.11318-0.0485v-0.43687s0.02445-0.0485 0.17011-0.12959zm0 3.8934h0.08106a10.077 10.077 0 0 0 1.4489 0.38829 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8021 9.8021 0 0 0 1.3922-0.38829l0.22668 0.097v0.46927a10.264 10.264 0 0 1-1.5298 0.42084 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.523 10.523 0 0 1-1.546-0.42084l-0.11318-0.0485v-0.42084s0.08102-0.0485 0.28329-0.097z', strokeWidth: '.80942' }))));
12
- };
13
- export default DatabaseInfoIcon;
14
- //# sourceMappingURL=DatabaseInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatabaseInfo.js","sourceRoot":"","sources":["../../../../src/widget/icons/DatabaseInfo.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,gBAAgB,GAAG,GAAgB,EAAE;IACzC,OAAO,CACL,6BACE,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B;QAElC,2BAAG,SAAS,EAAC,4BAA4B;YACvC,8BACE,CAAC,EAAC,6lBAA6lB,EAC/lB,WAAW,EAAC,QAAQ,GACpB;YACF,8BACE,CAAC,EAAC,2qDAA2qD,EAC7qD,WAAW,EAAC,QAAQ,GACpB,CACA,CACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","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*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport \"./DatabaseInfo.scss\";\n\nconst DatabaseInfoIcon = (): JSX.Element => {\n return (\n <svg\n className='database-info-icon'\n version='1.1'\n viewBox='0 0 16 16'\n xmlns='http://www.w3.org/2000/svg'\n >\n <g transform='translate(-76.395 -115.93)'>\n <path\n d='m91.293 123.66a0.77217 0.77217 0 0 1 0.83377 0.70519q0.0019 0.0233 0.0019 0.0473a1.095 1.095 0 0 1-1.0871 1.0035 0.79008 0.79008 0 0 1-0.83626-0.83626 1.0271 1.0271 0 0 1 1.0871-0.91987m-1.6723 8.0281c-0.41796 0-0.75264-0.25105-0.41796-1.4215l0.50175-2.007c0.08327-0.33447 0.08327-0.41848-4.93e-4 -0.41848-0.16708-0.0838-0.75264 0.16724-1.0873 0.41798l-0.16708-0.41798c1.0035-0.83641 2.1741-1.3382 2.7597-1.3382 0.41795 0 0.50175 0.50178 0.25089 1.3382l-0.58506 2.1746c-0.08381 0.41797-0.08381 0.50175 0.08381 0.50175a1.6749 1.6749 0 0 0 0.91989-0.50175l0.25089 0.33486a4.8242 4.8242 0 0 1-2.5091 1.3377'\n strokeWidth='.50175'\n />\n <path\n d='m82.2 116.09c-2.4283 0-5.3503 0.45305-5.666 1.0765v2.9707c0.04028 0.16181 0.30758 0.31546 0.72039 0.46923a1.3194 1.3194 0 0 0-0.72039 0.42085v2.922c0.04028 0.1618 0.32376 0.33175 0.75276 0.48568a1.3841 1.3841 0 0 0-0.75276 0.45305v2.9301c0.16188 0.60709 3.7557 1.2222 5.666 1.2222 1.9103 0 5.5041-0.61516 5.666-1.2303v-2.922c-0.04866-0.13736-0.37238-0.29179-0.80944-0.43691 0.46949-0.1618 0.80944-0.32361 0.80944-0.50186v-2.922c-0.04866-0.13775-0.36423-0.27549-0.80944-0.42084 0.4614-0.15405 0.80944-0.32361 0.80944-0.50187v-2.9382c-0.1618-0.4612-3.2377-1.0766-5.666-1.0766zm-4.8566 1.1655h0.08106a10.085 10.085 0 0 0 1.4084 0.45355 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8102 9.8102 0 0 0 1.4327-0.38829l0.22668 0.0974v0.46923a10.401 10.401 0 0 1-1.5298 0.40454 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.652 10.652 0 0 1-1.546-0.40454l-0.11318-0.0485v-0.45355s0.06488-0.0485 0.28329-0.1296zm0 3.8448 0.09697 0.0485a10.296 10.296 0 0 0 1.4489 0.37211 19.677 19.677 0 0 0 3.432 0.38829 19.685 19.685 0 0 0 3.432-0.38829 10.005 10.005 0 0 0 1.4327-0.37211l0.22668 0.0974v0.46923a10.409 10.409 0 0 1-1.5298 0.40458 19.977 19.977 0 0 1-3.5534 0.38825 19.977 19.977 0 0 1-3.5534-0.38825 10.668 10.668 0 0 1-1.546-0.40458l-0.11318-0.0485v-0.43687s0.02445-0.0485 0.17011-0.12959zm0 3.8934h0.08106a10.077 10.077 0 0 0 1.4489 0.38829 19.556 19.556 0 0 0 3.432 0.37211 19.564 19.564 0 0 0 3.432-0.37211 9.8021 9.8021 0 0 0 1.3922-0.38829l0.22668 0.097v0.46927a10.264 10.264 0 0 1-1.5298 0.42084 19.977 19.977 0 0 1-3.5534 0.38829 19.977 19.977 0 0 1-3.5534-0.38829 10.523 10.523 0 0 1-1.546-0.42084l-0.11318-0.0485v-0.42084s0.08102-0.0485 0.28329-0.097z'\n strokeWidth='.80942'\n />\n </g>\n </svg>\n );\n};\n\nexport default DatabaseInfoIcon;\n"]}
@@ -1,12 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import '~@itwin/itwinui-css/scss/icon/index';
6
-
7
- .database-info-icon {
8
- @include iui-icons-default();
9
- @include themed {
10
- fill: t(iui-icons-color-actionable);
11
- }
12
- }