@aehrc/smart-forms-renderer 1.2.2 → 1.2.4

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 (120) hide show
  1. package/lib/components/FormComponents/DecimalItem/DecimalField.js +6 -2
  2. package/lib/components/FormComponents/DecimalItem/DecimalField.js.map +1 -1
  3. package/lib/components/FormComponents/IntegerItem/IntegerField.js +6 -2
  4. package/lib/components/FormComponents/IntegerItem/IntegerField.js.map +1 -1
  5. package/lib/components/FormComponents/QuantityItem/QuantityField.d.ts +1 -0
  6. package/lib/components/FormComponents/QuantityItem/QuantityField.js +10 -3
  7. package/lib/components/FormComponents/QuantityItem/QuantityField.js.map +1 -1
  8. package/lib/components/FormComponents/QuantityItem/QuantityItem.js +2 -2
  9. package/lib/components/FormComponents/QuantityItem/QuantityItem.js.map +1 -1
  10. package/lib/hooks/useCalculatedExpressionUpdated.js +3 -1
  11. package/lib/hooks/useCalculatedExpressionUpdated.js.map +1 -1
  12. package/lib/interfaces/itemPath.interface.d.ts +31 -0
  13. package/lib/interfaces/itemPath.interface.js +2 -0
  14. package/lib/interfaces/itemPath.interface.js.map +1 -0
  15. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.d.ts +2 -3
  16. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js +6 -27
  17. package/lib/stories/storybookWrappers/InitialiseFormWrapperForStorybook.js.map +1 -1
  18. package/lib/stories/storybookWrappers/index.js +1 -1
  19. package/lib/utils/itemPath.d.ts +57 -0
  20. package/lib/utils/itemPath.js +75 -0
  21. package/lib/utils/itemPath.js.map +1 -0
  22. package/package.json +1 -1
  23. package/src/components/FormComponents/DecimalItem/DecimalField.tsx +8 -2
  24. package/src/components/FormComponents/IntegerItem/IntegerField.tsx +8 -2
  25. package/src/components/FormComponents/QuantityItem/QuantityField.tsx +13 -2
  26. package/src/components/FormComponents/QuantityItem/QuantityItem.tsx +2 -0
  27. package/src/hooks/useCalculatedExpressionUpdated.ts +3 -1
  28. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.d.ts +0 -7
  29. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js +0 -26
  30. package/lib/components/FormComponents/ItemParts/FadingCheckIcon.js.map +0 -1
  31. package/lib/components/FormComponents/ItemParts/ItemLabelText.d.ts +0 -8
  32. package/lib/components/FormComponents/ItemParts/ItemLabelText.js +0 -63
  33. package/lib/components/FormComponents/ItemParts/ItemLabelText.js.map +0 -1
  34. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.d.ts +0 -8
  35. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.js +0 -53
  36. package/lib/components/FormComponents/ItemParts/ItemLabelWrapper.js.map +0 -1
  37. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.d.ts +0 -10
  38. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js +0 -30
  39. package/lib/components/FormComponents/RepeatGroup/DeleteItemButton.js.map +0 -1
  40. package/lib/components/Iconify/Iconify.d.ts +0 -10
  41. package/lib/components/Iconify/Iconify.js +0 -26
  42. package/lib/components/Iconify/Iconify.js.map +0 -1
  43. package/lib/components/Renderer/FormBodyPage.d.ts +0 -9
  44. package/lib/components/Renderer/FormBodyPage.js +0 -43
  45. package/lib/components/Renderer/FormBodyPage.js.map +0 -1
  46. package/lib/components/Renderer/FormTitle.d.ts +0 -7
  47. package/lib/components/Renderer/FormTitle.js +0 -30
  48. package/lib/components/Renderer/FormTitle.js.map +0 -1
  49. package/lib/components/Renderer/FormTopLevelPage.d.ts +0 -9
  50. package/lib/components/Renderer/FormTopLevelPage.js +0 -29
  51. package/lib/components/Renderer/FormTopLevelPage.js.map +0 -1
  52. package/lib/hooks/useBooleanCalculatedExpression.d.ts +0 -12
  53. package/lib/hooks/useBooleanCalculatedExpression.js +0 -53
  54. package/lib/hooks/useBooleanCalculatedExpression.js.map +0 -1
  55. package/lib/hooks/useDecimalCalculatedExpression.d.ts +0 -13
  56. package/lib/hooks/useDecimalCalculatedExpression.js +0 -59
  57. package/lib/hooks/useDecimalCalculatedExpression.js.map +0 -1
  58. package/lib/hooks/useIntegerCalculatedExpression.d.ts +0 -12
  59. package/lib/hooks/useIntegerCalculatedExpression.js +0 -56
  60. package/lib/hooks/useIntegerCalculatedExpression.js.map +0 -1
  61. package/lib/hooks/useQuantityCalculatedExpression.d.ts +0 -14
  62. package/lib/hooks/useQuantityCalculatedExpression.js +0 -107
  63. package/lib/hooks/useQuantityCalculatedExpression.js.map +0 -1
  64. package/lib/hooks/useStringCalculatedExpression.d.ts +0 -12
  65. package/lib/hooks/useStringCalculatedExpression.js +0 -58
  66. package/lib/hooks/useStringCalculatedExpression.js.map +0 -1
  67. package/lib/theme/Theme.d.ts +0 -44
  68. package/lib/theme/Theme.js +0 -43
  69. package/lib/theme/Theme.js.map +0 -1
  70. package/lib/theme/customGlobalStyles.d.ts +0 -2
  71. package/lib/theme/customGlobalStyles.js +0 -61
  72. package/lib/theme/customGlobalStyles.js.map +0 -1
  73. package/lib/theme/overrides/Accordion.d.ts +0 -14
  74. package/lib/theme/overrides/Accordion.js +0 -32
  75. package/lib/theme/overrides/Accordion.js.map +0 -1
  76. package/lib/theme/overrides/Autocomplete.d.ts +0 -10
  77. package/lib/theme/overrides/Autocomplete.js +0 -28
  78. package/lib/theme/overrides/Autocomplete.js.map +0 -1
  79. package/lib/theme/overrides/Button.d.ts +0 -33
  80. package/lib/theme/overrides/Button.js +0 -52
  81. package/lib/theme/overrides/Button.js.map +0 -1
  82. package/lib/theme/overrides/Card.d.ts +0 -35
  83. package/lib/theme/overrides/Card.js +0 -49
  84. package/lib/theme/overrides/Card.js.map +0 -1
  85. package/lib/theme/overrides/Input.d.ts +0 -64
  86. package/lib/theme/overrides/Input.js +0 -81
  87. package/lib/theme/overrides/Input.js.map +0 -1
  88. package/lib/theme/overrides/Overrides.d.ts +0 -3
  89. package/lib/theme/overrides/Overrides.js +0 -29
  90. package/lib/theme/overrides/Overrides.js.map +0 -1
  91. package/lib/theme/overrides/Paper.d.ts +0 -12
  92. package/lib/theme/overrides/Paper.js +0 -31
  93. package/lib/theme/overrides/Paper.js.map +0 -1
  94. package/lib/theme/overrides/SpeedDial.d.ts +0 -16
  95. package/lib/theme/overrides/SpeedDial.js +0 -34
  96. package/lib/theme/overrides/SpeedDial.js.map +0 -1
  97. package/lib/theme/overrides/Table.d.ts +0 -12
  98. package/lib/theme/overrides/Table.js +0 -30
  99. package/lib/theme/overrides/Table.js.map +0 -1
  100. package/lib/theme/palette.d.ts +0 -27
  101. package/lib/theme/palette.js +0 -63
  102. package/lib/theme/palette.js.map +0 -1
  103. package/lib/theme/shadows.d.ts +0 -2
  104. package/lib/theme/shadows.js +0 -52
  105. package/lib/theme/shadows.js.map +0 -1
  106. package/lib/utils/dayjsExtend.d.ts +0 -1
  107. package/lib/utils/dayjsExtend.js +0 -22
  108. package/lib/utils/dayjsExtend.js.map +0 -1
  109. package/lib/utils/itemControl.d.ts +0 -103
  110. package/lib/utils/itemControl.js +0 -350
  111. package/lib/utils/itemControl.js.map +0 -1
  112. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.d.ts +0 -2
  113. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js +0 -43
  114. package/lib/utils/questionnaireStoreUtils/addAdditionalVariables.js.map +0 -1
  115. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.d.ts +0 -3
  116. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js +0 -101
  117. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +0 -1
  118. package/lib/utils/validateQuestionnaire.d.ts +0 -66
  119. package/lib/utils/validateQuestionnaire.js +0 -559
  120. package/lib/utils/validateQuestionnaire.js.map +0 -1
@@ -1,56 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useEffect, useState } from 'react';
18
- import { useQuestionnaireStore } from '../stores';
19
- function useIntegerCalculatedExpression(props) {
20
- const { qItem, inputValue, onChangeByCalcExpressionInteger, onChangeByCalcExpressionNull } = props;
21
- const calculatedExpressions = useQuestionnaireStore.use.calculatedExpressions();
22
- const [calcExpUpdated, setCalcExpUpdated] = useState(false);
23
- useEffect(() => {
24
- var _a;
25
- const calcExpression = (_a = calculatedExpressions[qItem.linkId]) === null || _a === void 0 ? void 0 : _a.find((exp) => exp.from === 'item');
26
- if (!calcExpression) {
27
- return;
28
- }
29
- // only update if calculated value is different from current value
30
- if (calcExpression.value !== inputValue &&
31
- (typeof calcExpression.value === 'number' || calcExpression.value === null)) {
32
- const calcExpressionValue = calcExpression.value;
33
- if (calcExpressionValue !== parseInt(inputValue)) {
34
- // update ui to show calculated value changes
35
- setCalcExpUpdated(true);
36
- const timeoutId = setTimeout(() => {
37
- setCalcExpUpdated(false);
38
- }, 500);
39
- // calculatedExpression value is null
40
- if (calcExpressionValue === null) {
41
- onChangeByCalcExpressionNull();
42
- return () => clearTimeout(timeoutId);
43
- }
44
- // calculatedExpression value is a number
45
- onChangeByCalcExpressionInteger(calcExpressionValue);
46
- return () => clearTimeout(timeoutId);
47
- }
48
- }
49
- },
50
- // Only trigger this effect if calculatedExpression of item changes
51
- // eslint-disable-next-line react-hooks/exhaustive-deps
52
- [calculatedExpressions]);
53
- return { calcExpUpdated: calcExpUpdated };
54
- }
55
- export default useIntegerCalculatedExpression;
56
- //# sourceMappingURL=useIntegerCalculatedExpression.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIntegerCalculatedExp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AAK,IAAI,EAAE,CAAC;oBACjC,4BAA4B,EAAE,CAAC;oBAC/B,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;gBACvC,CAAC;gBAED,yCAAyC;gBACzC,+BAA+B,CAAC,mBAAmB,CAAC,CAAC;gBACrD,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;IACD,mEAAmE;IACnE,uDAAuD;IACvD,CAAC,qBAAqB,CAAC,CACxB,CAAC;IAEF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AAC5C,CAAC;AAED,eAAe,8BAA8B,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { QuestionnaireItem } from 'fhir/r4';
2
- interface UseQuantityCalculatedExpression {
3
- calcExpUpdated: boolean;
4
- }
5
- interface UseQuantityCalculatedExpressionProps {
6
- qItem: QuestionnaireItem;
7
- inputValue: string;
8
- precision: number | null;
9
- onChangeByCalcExpressionDecimal: (newValue: number) => void;
10
- onChangeByCalcExpressionQuantity: (newValue: number, newUnitSystem: string, newUnitCode: string, newUnitDisplay: string) => void;
11
- onChangeByCalcExpressionNull: () => void;
12
- }
13
- declare function useQuantityCalculatedExpression(props: UseQuantityCalculatedExpressionProps): UseQuantityCalculatedExpression;
14
- export default useQuantityCalculatedExpression;
@@ -1,107 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useEffect, useState } from 'react';
18
- import { useQuestionnaireStore } from '../stores';
19
- import { validateCodePromise } from '../utils/valueSet';
20
- import { TERMINOLOGY_SERVER_URL } from '../globals';
21
- function useQuantityCalculatedExpression(props) {
22
- const { qItem, inputValue, precision, onChangeByCalcExpressionDecimal, onChangeByCalcExpressionQuantity, onChangeByCalcExpressionNull } = props;
23
- const calculatedExpressions = useQuestionnaireStore.use.calculatedExpressions();
24
- const [calcExpUpdated, setCalcExpUpdated] = useState(false);
25
- useEffect(() => {
26
- var _a;
27
- const calcExpression = (_a = calculatedExpressions[qItem.linkId]) === null || _a === void 0 ? void 0 : _a.find((exp) => exp.from === 'item');
28
- if (!calcExpression) {
29
- return;
30
- }
31
- // only update if calculated value is different from current value
32
- if (calcExpression.value !== inputValue &&
33
- (typeof calcExpression.value === 'number' ||
34
- typeof calcExpression.value === 'string' ||
35
- calcExpression.value === null)) {
36
- // Null path
37
- if (calcExpression.value === null) {
38
- onChangeByCalcExpressionNull();
39
- return;
40
- }
41
- // Number path
42
- if (typeof calcExpression.value === 'number') {
43
- const calcExpressionValue = typeof precision === 'number'
44
- ? parseFloat(calcExpression.value.toFixed(precision))
45
- : calcExpression.value;
46
- // only update if calculated value is different from current value
47
- if (calcExpressionValue !== parseFloat(inputValue)) {
48
- // update ui to show calculated value changes
49
- setCalcExpUpdated(true);
50
- const timeoutId = setTimeout(() => {
51
- setCalcExpUpdated(false);
52
- }, 500);
53
- // calculatedExpression value is null
54
- if (calcExpressionValue === null) {
55
- onChangeByCalcExpressionNull();
56
- return () => clearTimeout(timeoutId);
57
- }
58
- // calculatedExpression value is a number
59
- onChangeByCalcExpressionDecimal(calcExpressionValue);
60
- return () => clearTimeout(timeoutId);
61
- }
62
- }
63
- // String path (quantity)
64
- if (typeof calcExpression.value === 'string') {
65
- try {
66
- const [value, unitCode] = calcExpression.value.split(' ');
67
- const unitCodeFormatted = unitCode.replace(/'/g, '');
68
- const ucumValueSet = 'http://hl7.org/fhir/ValueSet/ucum-units';
69
- const ucumSystem = 'http://unitsofmeasure.org';
70
- validateCodePromise(ucumValueSet, ucumSystem, unitCodeFormatted, TERMINOLOGY_SERVER_URL).then((validateCodeResponse) => {
71
- // Return early if validate-code request fails
72
- if (!validateCodeResponse) {
73
- onChangeByCalcExpressionNull();
74
- return;
75
- }
76
- if (validateCodeResponse.parameter) {
77
- const systemParameter = validateCodeResponse.parameter.find((p) => p.name === 'system');
78
- const codeParameter = validateCodeResponse.parameter.find((p) => p.name === 'code');
79
- const displayParameter = validateCodeResponse.parameter.find((p) => p.name === 'display');
80
- if (systemParameter.valueUri &&
81
- codeParameter.valueCode &&
82
- displayParameter.valueString) {
83
- // update ui to show calculated value changes
84
- setCalcExpUpdated(true);
85
- const timeoutId = setTimeout(() => {
86
- setCalcExpUpdated(false);
87
- }, 500);
88
- onChangeByCalcExpressionQuantity(parseFloat(value), systemParameter.valueUri, codeParameter.valueCode, displayParameter.valueString);
89
- return () => clearTimeout(timeoutId);
90
- }
91
- }
92
- });
93
- }
94
- catch (e) {
95
- console.error(e);
96
- onChangeByCalcExpressionNull();
97
- }
98
- }
99
- }
100
- },
101
- // Only trigger this effect if calculatedExpression of item changes
102
- // eslint-disable-next-line react-hooks/exhaustive-deps
103
- [calculatedExpressions]);
104
- return { calcExpUpdated: calcExpUpdated };
105
- }
106
- export default useQuantityCalculatedExpression;
107
- //# sourceMappingURL=useQuantityCalculatedExpression.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useQuantityCalculatedExpression.js","sourceRoot":"","sources":["../../src/hooks/useQuantityCalculatedExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY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boolean;
4
- }
5
- interface useStringCalculatedExpressionProps {
6
- qItem: QuestionnaireItem;
7
- inputValue: string;
8
- onChangeByCalcExpressionString: (newValueString: string) => void;
9
- onChangeByCalcExpressionNull: () => void;
10
- }
11
- declare function useStringCalculatedExpression(props: useStringCalculatedExpressionProps): UseStringCalculatedExpression;
12
- export default useStringCalculatedExpression;
@@ -1,58 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useEffect, useState } from 'react';
18
- import { useQuestionnaireStore } from '../stores';
19
- function useStringCalculatedExpression(props) {
20
- const { qItem, inputValue, onChangeByCalcExpressionString, onChangeByCalcExpressionNull } = props;
21
- const calculatedExpressions = useQuestionnaireStore.use.calculatedExpressions();
22
- const [calcExpUpdated, setCalcExpUpdated] = useState(false);
23
- useEffect(() => {
24
- var _a;
25
- const calcExpression = (_a = calculatedExpressions[qItem.linkId]) === null || _a === void 0 ? void 0 : _a.find((exp) => exp.from === 'item');
26
- if (!calcExpression) {
27
- return;
28
- }
29
- // only update if calculated value is different from current value
30
- if (calcExpression.value !== inputValue &&
31
- (typeof calcExpression.value === 'string' ||
32
- typeof calcExpression.value === 'number' ||
33
- calcExpression.value === null)) {
34
- // update ui to show calculated value changes
35
- setCalcExpUpdated(true);
36
- const timeoutId = setTimeout(() => {
37
- setCalcExpUpdated(false);
38
- }, 500);
39
- // calculatedExpression value is null
40
- if (calcExpression.value === null) {
41
- onChangeByCalcExpressionNull();
42
- return () => clearTimeout(timeoutId);
43
- }
44
- // calculatedExpression value is a string or number
45
- const newInputValue = typeof calcExpression.value === 'string'
46
- ? calcExpression.value
47
- : calcExpression.value.toString();
48
- onChangeByCalcExpressionString(newInputValue);
49
- return () => clearTimeout(timeoutId);
50
- }
51
- },
52
- // Only trigger this effect if calculatedExpression of item changes
53
- // eslint-disable-next-line react-hooks/exhaustive-deps
54
- [calculatedExpressions]);
55
- return { calcExpUpdated: calcExpUpdated };
56
- }
57
- export default useStringCalculatedExpression;
58
- //# sourceMappingURL=useStringCalculatedExpression.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStringCalculatedExpression.js","sourceRoot":"","sources":["../../src/hooks/useStringCalculatedExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAalD,SAAS,6BAA6B,CACpC,KAAyC;IAEzC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,8BAA8B,EAAE,4BAA4B,EAAE,GAAG,KAAK,CAAC;IAElG,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAEhF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,SAAS,CACP,GAAG,EAAE;;QACH,MAAM,cAAc,GAAG,MAAA,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,IAAI,CAC9D,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAC7B,CAAC;QAEF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,kEAAkE;QAClE,IACE,cAAc,CAAC,KAAK,KAAK,UAAU;YACnC,CAAC,OAAO,cAAc,CAAC,KAAK,KAAK,QAAQ;gBACvC,OAAO,cAAc,CAAC,KAAK,KAAK,QAAQ;gBACxC,cAAc,CAAC,KAAK,KAAK,IAAI,CAAC,EAChC,CAAC;YACD,6CAA6C;YAC7C,iBAAiB,CAAC,IAAI,CAAC,CAAC;YACxB,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;gBAChC,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC,EAAE,GAAG,CAAC,CAAC;YAER,qCAAqC;YACrC,IAAI,cAAc,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBAClC,4BAA4B,EAAE,CAAC;gBAC/B,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC;YAED,mDAAmD;YACnD,MAAM,aAAa,GACjB,OAAO,cAAc,CAAC,KAAK,KAAK,QAAQ;gBACtC,CAAC,CAAC,cAAc,CAAC,KAAK;gBACtB,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAEtC,8BAA8B,CAAC,aAAa,CAAC,CAAC;YAC9C,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IACD,mEAAmE;IACnE,uDAAuD;IACvD,CAAC,qBAAqB,CAAC,CACxB,CAAC;IAEF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AAC5C,CAAC;AAED,eAAe,6BAA6B,CAAC"}
@@ -1,44 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import type { ThemeOptions } from '@mui/material/styles';
4
- declare module '@mui/material/styles' {
5
- interface Theme {
6
- customShadows: {
7
- z1: string;
8
- z4: string;
9
- z8: string;
10
- z12: string;
11
- z16: string;
12
- z20: string;
13
- z24: string;
14
- card: string;
15
- dialog: string;
16
- dropdown: string;
17
- };
18
- }
19
- interface ThemeOptions {
20
- customShadows: {
21
- z1: string;
22
- z4: string;
23
- z8: string;
24
- z12: string;
25
- z16: string;
26
- z20: string;
27
- z24: string;
28
- card: string;
29
- dialog: string;
30
- dropdown: string;
31
- };
32
- }
33
- }
34
- export declare const themeOptions: ThemeOptions;
35
- /**
36
- * Default theme used by the renderer using Material UI. You can customise your own theme by defining a new ThemeProvider.
37
- * @see {@link https://mui.com/material-ui/customization/theming/}
38
- *
39
- * @author Sean Fong
40
- */
41
- export declare function RendererThemeProvider({ children }: {
42
- children: ReactNode;
43
- }): React.JSX.Element;
44
- export default RendererThemeProvider;
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { alpha, createTheme, StyledEngineProvider, ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
3
- import palette from './palette';
4
- import typography from './typography';
5
- import CustomGlobalStyles from './customGlobalStyles';
6
- import componentsOverride from './overrides/Overrides';
7
- import { grey } from '@mui/material/colors';
8
- // ----------------------------------------------------------------------
9
- const transparent = alpha(grey[500], 0.16);
10
- export const themeOptions = {
11
- palette,
12
- shape: { borderRadius: 6 },
13
- typography,
14
- customShadows: {
15
- z1: `0 1px 2px 0 ${transparent}`,
16
- z4: `0 4px 8px 0 ${transparent}`,
17
- z8: `0 8px 16px 0 ${transparent}`,
18
- z12: `0 12px 24px -4px ${transparent}`,
19
- z16: `0 16px 32px -4px ${transparent}`,
20
- z20: `0 20px 40px -4px ${transparent}`,
21
- z24: `0 24px 48px 0 ${transparent}`,
22
- //
23
- card: `0 0 2px 0 ${alpha(grey[500], 0.2)}, 0 12px 24px -4px ${alpha(grey[500], 0.12)}`,
24
- dialog: `-40px 40px 80px -8px ${alpha(grey[500], 0.24)}`,
25
- dropdown: `0 0 2px 0 ${alpha(grey[500], 0.24)}, -20px 20px 40px -4px ${alpha(grey[500], 0.24)}`
26
- }
27
- };
28
- /**
29
- * Default theme used by the renderer using Material UI. You can customise your own theme by defining a new ThemeProvider.
30
- * @see {@link https://mui.com/material-ui/customization/theming/}
31
- *
32
- * @author Sean Fong
33
- */
34
- export function RendererThemeProvider({ children }) {
35
- const theme = createTheme(themeOptions);
36
- theme.components = componentsOverride(theme);
37
- return (React.createElement(StyledEngineProvider, { injectFirst: true },
38
- React.createElement(MUIThemeProvider, { theme: theme },
39
- React.createElement(CustomGlobalStyles, null),
40
- children)));
41
- }
42
- export default RendererThemeProvider;
43
- //# sourceMappingURL=Theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,aAAa,IAAI,gBAAgB,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAsC5C,yEAAyE;AAEzE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,OAAO;IACP,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE;IAC1B,UAAU;IACV,aAAa,EAAE;QACb,EAAE,EAAE,eAAe,WAAW,EAAE;QAChC,EAAE,EAAE,eAAe,WAAW,EAAE;QAChC,EAAE,EAAE,gBAAgB,WAAW,EAAE;QACjC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,oBAAoB,WAAW,EAAE;QACtC,GAAG,EAAE,iBAAiB,WAAW,EAAE;QACnC,EAAE;QACF,IAAI,EAAE,aAAa,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;QACtF,MAAM,EAAE,wBAAwB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;QACxD,QAAQ,EAAE,aAAa,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,0BAA0B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;KAChG;CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,EAAE,QAAQ,EAA2B;IACzE,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IACxC,KAAK,CAAC,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAE7C,OAAO,CACL,oBAAC,oBAAoB,IAAC,WAAW;QAC/B,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK;YAC5B,oBAAC,kBAAkB,OAAG;YACrB,QAAQ,CACQ,CACE,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function CustomGlobalStyles(): React.JSX.Element;
@@ -1,61 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import GlobalStyles from '@mui/material/GlobalStyles';
19
- export default function CustomGlobalStyles() {
20
- return (React.createElement(GlobalStyles, { styles: {
21
- '*': {
22
- boxSizing: 'border-box'
23
- },
24
- html: {
25
- margin: 0,
26
- padding: 0,
27
- width: '100%',
28
- height: '100%',
29
- WebkitOverflowScrolling: 'touch'
30
- },
31
- body: {
32
- margin: 0,
33
- padding: 0,
34
- width: '100%',
35
- height: '100%'
36
- },
37
- '#root': {
38
- width: '100%',
39
- height: '100%',
40
- textAlign: 'left'
41
- },
42
- input: {
43
- '&[type=number]': {
44
- MozAppearance: 'textfield',
45
- '&::-webkit-outer-spin-button': {
46
- margin: 0,
47
- WebkitAppearance: 'none'
48
- },
49
- '&::-webkit-inner-spin-button': {
50
- margin: 0,
51
- WebkitAppearance: 'none'
52
- }
53
- }
54
- },
55
- img: {
56
- display: 'block',
57
- maxWidth: '100%'
58
- }
59
- } }));
60
- }
61
- //# sourceMappingURL=customGlobalStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customGlobalStyles.js","sourceRoot":"","sources":["../../src/theme/customGlobalStyles.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACxC,OAAO,CACL,oBAAC,YAAY,IACX,MAAM,EAAE;YACN,GAAG,EAAE;gBACH,SAAS,EAAE,YAAY;aACxB;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,uBAAuB,EAAE,OAAO;aACjC;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,CAAC;gBACV,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,SAAS,EAAE,MAAM;aAClB;YACD,KAAK,EAAE;gBACL,gBAAgB,EAAE;oBAChB,aAAa,EAAE,WAAW;oBAC1B,8BAA8B,EAAE;wBAC9B,MAAM,EAAE,CAAC;wBACT,gBAAgB,EAAE,MAAM;qBACzB;oBACD,8BAA8B,EAAE;wBAC9B,MAAM,EAAE,CAAC;wBACT,gBAAgB,EAAE,MAAM;qBACzB;iBACF;aACF;YACD,GAAG,EAAE;gBACH,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,MAAM;aACjB;SACF,GACD,CACH,CAAC;AACJ,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { Theme } from '@mui/material/styles';
2
- export default function Accordion(theme: Theme): {
3
- MuiAccordion: {
4
- styleOverrides: {
5
- root: {
6
- boxShadow: string;
7
- borderRadius: number;
8
- '&:before': {
9
- display: string;
10
- };
11
- };
12
- };
13
- };
14
- };
@@ -1,32 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export default function Accordion(theme) {
18
- return {
19
- MuiAccordion: {
20
- styleOverrides: {
21
- root: {
22
- boxShadow: theme.customShadows.card,
23
- borderRadius: Number(theme.shape.borderRadius) * 2,
24
- '&:before': {
25
- display: 'none'
26
- }
27
- }
28
- }
29
- }
30
- };
31
- }
32
- //# sourceMappingURL=Accordion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/theme/overrides/Accordion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAY;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI;oBACnC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC;oBAClD,UAAU,EAAE;wBACV,OAAO,EAAE,MAAM;qBAChB;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { Theme } from '@mui/material/styles';
2
- export default function Autocomplete(theme: Theme): {
3
- MuiAutocomplete: {
4
- styleOverrides: {
5
- paper: {
6
- boxShadow: string;
7
- };
8
- };
9
- };
10
- };
@@ -1,28 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export default function Autocomplete(theme) {
18
- return {
19
- MuiAutocomplete: {
20
- styleOverrides: {
21
- paper: {
22
- boxShadow: theme.customShadows.z20
23
- }
24
- }
25
- }
26
- };
27
- }
28
- //# sourceMappingURL=Autocomplete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Autocomplete.js","sourceRoot":"","sources":["../../../src/theme/overrides/Autocomplete.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAY;IAC/C,OAAO;QACL,eAAe,EAAE;YACf,cAAc,EAAE;gBACd,KAAK,EAAE;oBACL,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG;iBACnC;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -1,33 +0,0 @@
1
- import type { Theme } from '@mui/material/styles';
2
- export default function Button(theme: Theme): {
3
- MuiButton: {
4
- styleOverrides: {
5
- root: {
6
- '&:hover': {
7
- boxShadow: string;
8
- };
9
- };
10
- sizeLarge: {
11
- height: number;
12
- };
13
- containedInherit: {
14
- color: string;
15
- boxShadow: string;
16
- '&:hover': {
17
- backgroundColor: string;
18
- };
19
- };
20
- outlinedInherit: {
21
- border: string;
22
- '&:hover': {
23
- backgroundColor: string;
24
- };
25
- };
26
- textInherit: {
27
- '&:hover': {
28
- backgroundColor: string;
29
- };
30
- };
31
- };
32
- };
33
- };
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { alpha } from '@mui/material/styles';
18
- export default function Button(theme) {
19
- return {
20
- MuiButton: {
21
- styleOverrides: {
22
- root: {
23
- '&:hover': {
24
- boxShadow: 'none'
25
- }
26
- },
27
- sizeLarge: {
28
- height: 48
29
- },
30
- containedInherit: {
31
- color: theme.palette.grey[800],
32
- boxShadow: theme.customShadows.z8,
33
- '&:hover': {
34
- backgroundColor: theme.palette.grey[400]
35
- }
36
- },
37
- outlinedInherit: {
38
- border: `1px solid ${alpha(theme.palette.grey[500], 0.32)}`,
39
- '&:hover': {
40
- backgroundColor: theme.palette.action.hover
41
- }
42
- },
43
- textInherit: {
44
- '&:hover': {
45
- backgroundColor: theme.palette.action.hover
46
- }
47
- }
48
- }
49
- }
50
- };
51
- }
52
- //# sourceMappingURL=Button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/theme/overrides/Button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAY;IACzC,OAAO;QACL,SAAS,EAAE;YACT,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,SAAS,EAAE;wBACT,SAAS,EAAE,MAAM;qBAClB;iBACF;gBACD,SAAS,EAAE;oBACT,MAAM,EAAE,EAAE;iBACX;gBACD,gBAAgB,EAAE;oBAChB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;oBAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE;oBACjC,SAAS,EAAE;wBACT,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;qBACzC;iBACF;gBACD,eAAe,EAAE;oBACf,MAAM,EAAE,aAAa,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE;oBAC3D,SAAS,EAAE;wBACT,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;qBAC5C;iBACF;gBACD,WAAW,EAAE;oBACX,SAAS,EAAE;wBACT,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;qBAC5C;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}