@axelor/aos-mobile-quality 8.0.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.
Files changed (112) hide show
  1. package/README.md +44 -0
  2. package/lib/api/control-entry-api.d.ts +19 -0
  3. package/lib/api/control-entry-api.js +83 -0
  4. package/lib/api/control-entry-api.js.map +1 -0
  5. package/lib/api/control-entry-sample-api.d.ts +4 -0
  6. package/lib/api/control-entry-sample-api.js +37 -0
  7. package/lib/api/control-entry-sample-api.js.map +1 -0
  8. package/lib/api/control-entry-sample-line-api.d.ts +13 -0
  9. package/lib/api/control-entry-sample-line-api.js +96 -0
  10. package/lib/api/control-entry-sample-line-api.js.map +1 -0
  11. package/lib/api/control-plan-api.d.ts +3 -0
  12. package/lib/api/control-plan-api.js +26 -0
  13. package/lib/api/control-plan-api.js.map +1 -0
  14. package/lib/api/index.d.ts +4 -0
  15. package/lib/api/index.js +22 -0
  16. package/lib/api/index.js.map +1 -0
  17. package/lib/components/atoms/ControlEntryCard/ControlEntryCard.d.ts +11 -0
  18. package/lib/components/atoms/ControlEntryCard/ControlEntryCard.js +99 -0
  19. package/lib/components/atoms/ControlEntryCard/ControlEntryCard.js.map +1 -0
  20. package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.d.ts +2 -0
  21. package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.js +47 -0
  22. package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.js.map +1 -0
  23. package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.d.ts +8 -0
  24. package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.js +86 -0
  25. package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.js.map +1 -0
  26. package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.d.ts +2 -0
  27. package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.js +52 -0
  28. package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.js.map +1 -0
  29. package/lib/components/atoms/NavigationButton/NavigationButton.d.ts +7 -0
  30. package/lib/components/atoms/NavigationButton/NavigationButton.js +40 -0
  31. package/lib/components/atoms/NavigationButton/NavigationButton.js.map +1 -0
  32. package/lib/components/atoms/index.d.ts +5 -0
  33. package/lib/components/atoms/index.js +23 -0
  34. package/lib/components/atoms/index.js.map +1 -0
  35. package/lib/components/index.d.ts +2 -0
  36. package/lib/components/index.js +20 -0
  37. package/lib/components/index.js.map +1 -0
  38. package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.d.ts +2 -0
  39. package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.js +38 -0
  40. package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.js.map +1 -0
  41. package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.d.ts +5 -0
  42. package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.js +72 -0
  43. package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.js.map +1 -0
  44. package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.d.ts +12 -0
  45. package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.js +66 -0
  46. package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.js.map +1 -0
  47. package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.d.ts +8 -0
  48. package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.js +54 -0
  49. package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.js.map +1 -0
  50. package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.d.ts +8 -0
  51. package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.js +60 -0
  52. package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.js.map +1 -0
  53. package/lib/components/molecules/index.d.ts +5 -0
  54. package/lib/components/molecules/index.js +23 -0
  55. package/lib/components/molecules/index.js.map +1 -0
  56. package/lib/features/asyncFunctions-index.d.ts +4 -0
  57. package/lib/features/asyncFunctions-index.js +22 -0
  58. package/lib/features/asyncFunctions-index.js.map +1 -0
  59. package/lib/features/controlEntrySampleLineSlice.d.ts +26 -0
  60. package/lib/features/controlEntrySampleLineSlice.js +66 -0
  61. package/lib/features/controlEntrySampleLineSlice.js.map +1 -0
  62. package/lib/features/controlEntrySampleSlice.d.ts +16 -0
  63. package/lib/features/controlEntrySampleSlice.js +49 -0
  64. package/lib/features/controlEntrySampleSlice.js.map +1 -0
  65. package/lib/features/controlEntrySlice.d.ts +38 -0
  66. package/lib/features/controlEntrySlice.js +81 -0
  67. package/lib/features/controlEntrySlice.js.map +1 -0
  68. package/lib/features/controlPlanSlice.d.ts +14 -0
  69. package/lib/features/controlPlanSlice.js +48 -0
  70. package/lib/features/controlPlanSlice.js.map +1 -0
  71. package/lib/features/index.d.ts +4 -0
  72. package/lib/features/index.js +22 -0
  73. package/lib/features/index.js.map +1 -0
  74. package/lib/hooks/use-quality-header-actions.d.ts +1 -0
  75. package/lib/hooks/use-quality-header-actions.js +50 -0
  76. package/lib/hooks/use-quality-header-actions.js.map +1 -0
  77. package/lib/i18n/en.json +29 -0
  78. package/lib/i18n/fr.json +29 -0
  79. package/lib/index.d.ts +7 -0
  80. package/lib/index.js +60 -0
  81. package/lib/index.js.map +1 -0
  82. package/lib/models/index.d.ts +3 -0
  83. package/lib/models/index.js +21 -0
  84. package/lib/models/index.js.map +1 -0
  85. package/lib/models/objectFields.d.ts +2 -0
  86. package/lib/models/objectFields.js +51 -0
  87. package/lib/models/objectFields.js.map +1 -0
  88. package/lib/models/searchFields.d.ts +2 -0
  89. package/lib/models/searchFields.js +21 -0
  90. package/lib/models/searchFields.js.map +1 -0
  91. package/lib/models/sortFields.d.ts +2 -0
  92. package/lib/models/sortFields.js +26 -0
  93. package/lib/models/sortFields.js.map +1 -0
  94. package/lib/screens/ControlEntryDetailsScreen.d.ts +4 -0
  95. package/lib/screens/ControlEntryDetailsScreen.js +49 -0
  96. package/lib/screens/ControlEntryDetailsScreen.js.map +1 -0
  97. package/lib/screens/ControlEntryFormScreen.d.ts +5 -0
  98. package/lib/screens/ControlEntryFormScreen.js +190 -0
  99. package/lib/screens/ControlEntryFormScreen.js.map +1 -0
  100. package/lib/screens/ControlEntryListScreen.d.ts +4 -0
  101. package/lib/screens/ControlEntryListScreen.js +78 -0
  102. package/lib/screens/ControlEntryListScreen.js.map +1 -0
  103. package/lib/screens/index.d.ts +35 -0
  104. package/lib/screens/index.js +48 -0
  105. package/lib/screens/index.js.map +1 -0
  106. package/lib/types/controlEntry.d.ts +45 -0
  107. package/lib/types/controlEntry.js +155 -0
  108. package/lib/types/controlEntry.js.map +1 -0
  109. package/lib/types/index.d.ts +1 -0
  110. package/lib/types/index.js +19 -0
  111. package/lib/types/index.js.map +1 -0
  112. package/package.json +50 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FillingMethodAlert.js","sourceRoot":"","sources":["../../../../src/components/molecules/FillingMethodAlert/FillingMethodAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAC,KAAK,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAQ5C,MAAM,kBAAkB,GAAG,CAAC,EAC1B,cAAc,EACd,OAAO,EACP,UAAU,GACc,EAAE,EAAE;IAC5B,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,IAAI,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,KAAK,CACJ,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CACvC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACpB,kBAAkB,CAAC,CAAC;YAClB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,GAAG,EAAE;gBACZ,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;SACF,CAAC,CACF,mBAAmB,CAAC,CAAC;YACnB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,YAAY,IAAI,IAAI;YAC9B,OAAO,EAAE,GAAG,EAAE;gBACZ,UAAU,CAAC,KAAK,CAAC,CAAC;gBAClB,UAAU,CAAC,QAAQ,CAAC,wBAAwB,EAAE;oBAC5C,cAAc,EAAE,cAAc;oBAC9B,YAAY,EAAE,YAAY;iBAC3B,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CACF;MAAA,CAAC,WAAW,CACV,SAAS,CAAC,QAAQ,CAClB,SAAS,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAC9B,KAAK,CAAC,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAC5C,QAAQ,CAAC,CAAC,eAAe,CAAC,CAC1B,gBAAgB,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAEzC;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,WAAW,EAAE;QACX,MAAM,EAAE,GAAG;KACZ;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;KACb;IACD,WAAW,EAAE;QACX,KAAK,EAAE,GAAG;KACX;CACF,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default as ControlEntryDetailsButtons } from "./ControlEntryDetailsButtons/ControlEntryDetailsButtons";
2
+ export { default as ControlEntryDetailsHeader } from "./ControlEntryDetailsHeader/ControlEntryDetailsHeader";
3
+ export { default as ControlEntryFormButtons } from "./ControlEntryFormButtons/ControlEntryFormButtons";
4
+ export { default as ControlEntryFormHeader } from "./ControlEntryFormHeader/ControlEntryFormHeader";
5
+ export { default as FillingMethodAlert } from "./FillingMethodAlert/FillingMethodAlert";
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as ControlEntryDetailsButtons } from './ControlEntryDetailsButtons/ControlEntryDetailsButtons';
19
+ export { default as ControlEntryDetailsHeader } from './ControlEntryDetailsHeader/ControlEntryDetailsHeader';
20
+ export { default as ControlEntryFormButtons } from './ControlEntryFormButtons/ControlEntryFormButtons';
21
+ export { default as ControlEntryFormHeader } from './ControlEntryFormHeader/ControlEntryFormHeader';
22
+ export { default as FillingMethodAlert } from './FillingMethodAlert/FillingMethodAlert';
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/molecules/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,OAAO,IAAI,yBAAyB,EAAC,MAAM,uDAAuD,CAAC;AAC3G,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { fetchControlEntrySampleLine, searchControlEntrySampleLineOfControlEntry, } from './controlEntrySampleLineSlice';
2
+ export { searchControlEntrySample } from './controlEntrySampleSlice';
3
+ export { fetchControlEntryById, searchControlEntry, updateControlEntry, } from './controlEntrySlice';
4
+ export { fetchControlPlanById } from './controlPlanSlice';
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { fetchControlEntrySampleLine, searchControlEntrySampleLineOfControlEntry, } from './controlEntrySampleLineSlice';
19
+ export { searchControlEntrySample } from './controlEntrySampleSlice';
20
+ export { fetchControlEntryById, searchControlEntry, updateControlEntry, } from './controlEntrySlice';
21
+ export { fetchControlPlanById } from './controlPlanSlice';
22
+ //# sourceMappingURL=asyncFunctions-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncFunctions-index.js","sourceRoot":"","sources":["../../src/features/asyncFunctions-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,2BAA2B,EAC3B,0CAA0C,GAC3C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAC,wBAAwB,EAAC,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,26 @@
1
+ export const searchControlEntrySampleLineOfControlEntry: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const fetchControlEntrySampleLine: import("@reduxjs/toolkit").AsyncThunk<any, void, {
12
+ state?: unknown;
13
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
14
+ extra?: unknown;
15
+ rejectValue?: unknown;
16
+ serializedErrorType?: unknown;
17
+ pendingMeta?: unknown;
18
+ fulfilledMeta?: unknown;
19
+ rejectedMeta?: unknown;
20
+ }>;
21
+ export const controlEntrySampleLineReducer: import("redux").Reducer<{
22
+ loadingSampleLines: boolean;
23
+ sampleLineOfEntryList: any[];
24
+ loadingSampleLine: boolean;
25
+ sampleLine: {};
26
+ }>;
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { handlerApiCall } from '@axelor/aos-mobile-core';
20
+ import { fetchControlEntrySampleLine as _fetchControlEntrySampleLine, searchControlEntrySampleLineOfControlEntry as _searchControlEntrySampleLineOfControlEntry, } from '../api/control-entry-sample-line-api';
21
+ export const searchControlEntrySampleLineOfControlEntry = createAsyncThunk('controlEntrySampleLine/searchControlEntrySampleLineOfControlEntry', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: _searchControlEntrySampleLineOfControlEntry,
24
+ data,
25
+ action: 'Quality_SliceAction_SearchControlEntrySampleLine',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ export const fetchControlEntrySampleLine = createAsyncThunk('controlEntrySampleLine/fetchControlEntrySampleLine', async function (data, { getState }) {
31
+ return handlerApiCall({
32
+ fetchFunction: _fetchControlEntrySampleLine,
33
+ data,
34
+ action: 'Quality_SliceAction_FetchControlEntrySampleLine',
35
+ getState,
36
+ responseOptions: { isArrayResponse: false },
37
+ });
38
+ });
39
+ const initialState = {
40
+ loadingSampleLines: true,
41
+ sampleLineOfEntryList: [],
42
+ loadingSampleLine: false,
43
+ sampleLine: {},
44
+ };
45
+ const controlEntrySampleLineSlice = createSlice({
46
+ name: 'controlEntrySampleLine',
47
+ initialState,
48
+ extraReducers: builder => {
49
+ builder.addCase(fetchControlEntrySampleLine.pending, state => {
50
+ state.loadingSampleLine = true;
51
+ });
52
+ builder.addCase(fetchControlEntrySampleLine.fulfilled, (state, action) => {
53
+ state.loadingSampleLine = false;
54
+ state.sampleLine = action.payload;
55
+ });
56
+ builder.addCase(searchControlEntrySampleLineOfControlEntry.pending, state => {
57
+ state.loadingSampleLines = true;
58
+ });
59
+ builder.addCase(searchControlEntrySampleLineOfControlEntry.fulfilled, (state, action) => {
60
+ state.loadingSampleLines = false;
61
+ state.sampleLineOfEntryList = action.payload;
62
+ });
63
+ },
64
+ });
65
+ export const controlEntrySampleLineReducer = controlEntrySampleLineSlice.reducer;
66
+ //# sourceMappingURL=controlEntrySampleLineSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlEntrySampleLineSlice.js","sourceRoot":"","sources":["../../src/features/controlEntrySampleLineSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,2BAA2B,IAAI,4BAA4B,EAC3D,0CAA0C,IAAI,2CAA2C,GAC1F,MAAM,sCAAsC,CAAC;AAE9C,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CACxE,mEAAmE,EACnE,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,2CAA2C;QAC1D,IAAI;QACJ,MAAM,EAAE,kDAAkD;QAC1D,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CACzD,oDAAoD,EACpD,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,4BAA4B;QAC3C,IAAI;QACJ,MAAM,EAAE,iDAAiD;QACzD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,KAAK,EAAC;KAC1C,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,EAAE;IAEzB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,EAAE;CACf,CAAC;AAEF,MAAM,2BAA2B,GAAG,WAAW,CAAC;IAC9C,IAAI,EAAE,wBAAwB;IAC9B,YAAY;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;YAC3D,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACvE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC;YAChC,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;QACpC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CACb,0CAA0C,CAAC,OAAO,EAClD,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC;QAClC,CAAC,CACF,CAAC;QACF,OAAO,CAAC,OAAO,CACb,0CAA0C,CAAC,SAAS,EACpD,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChB,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC;YACjC,KAAK,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/C,CAAC,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GACxC,2BAA2B,CAAC,OAAO,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const searchControlEntrySample: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const controlEntrySampleReducer: import("redux").Reducer<{
12
+ loadingControlEntrySampleList: boolean;
13
+ moreLoading: boolean;
14
+ isListEnd: boolean;
15
+ controlEntrySampleList: any[];
16
+ }>;
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { generateInifiniteScrollCases, handlerApiCall, } from '@axelor/aos-mobile-core';
20
+ import { searchControlEntrySample as _searchControlEntrySample } from '../api/control-entry-sample-api';
21
+ export const searchControlEntrySample = createAsyncThunk('controlEntrySample/searchControlEntrySample', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: _searchControlEntrySample,
24
+ data,
25
+ action: 'Quality_SliceAction_SearchControlEntrySample',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ const initialState = {
31
+ loadingControlEntrySampleList: true,
32
+ moreLoading: false,
33
+ isListEnd: false,
34
+ controlEntrySampleList: [],
35
+ };
36
+ const controlEntrySampleSlice = createSlice({
37
+ name: 'controlEntrySample',
38
+ initialState,
39
+ extraReducers: builder => {
40
+ generateInifiniteScrollCases(builder, searchControlEntrySample, {
41
+ loading: 'loadingControlEntrySampleList',
42
+ moreLoading: 'moreLoading',
43
+ isListEnd: 'isListEnd',
44
+ list: 'controlEntrySampleList',
45
+ });
46
+ },
47
+ });
48
+ export const controlEntrySampleReducer = controlEntrySampleSlice.reducer;
49
+ //# sourceMappingURL=controlEntrySampleSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlEntrySampleSlice.js","sourceRoot":"","sources":["../../src/features/controlEntrySampleSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,wBAAwB,IAAI,yBAAyB,EAAC,MAAM,iCAAiC,CAAC;AAEtG,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,CACtD,6CAA6C,EAC7C,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,yBAAyB;QACxC,IAAI;QACJ,MAAM,EAAE,8CAA8C;QACtD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,6BAA6B,EAAE,IAAI;IACnC,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,sBAAsB,EAAE,EAAE;CAC3B,CAAC;AAEF,MAAM,uBAAuB,GAAG,WAAW,CAAC;IAC1C,IAAI,EAAE,oBAAoB;IAC1B,YAAY;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,4BAA4B,CAAC,OAAO,EAAE,wBAAwB,EAAE;YAC9D,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,wBAAwB;SAC/B,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,uBAAuB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,38 @@
1
+ export const searchControlEntry: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const fetchControlEntryById: import("@reduxjs/toolkit").AsyncThunk<any, void, {
12
+ state?: unknown;
13
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
14
+ extra?: unknown;
15
+ rejectValue?: unknown;
16
+ serializedErrorType?: unknown;
17
+ pendingMeta?: unknown;
18
+ fulfilledMeta?: unknown;
19
+ rejectedMeta?: unknown;
20
+ }>;
21
+ export const updateControlEntry: import("@reduxjs/toolkit").AsyncThunk<void, void, {
22
+ state?: unknown;
23
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
24
+ extra?: unknown;
25
+ rejectValue?: unknown;
26
+ serializedErrorType?: unknown;
27
+ pendingMeta?: unknown;
28
+ fulfilledMeta?: unknown;
29
+ rejectedMeta?: unknown;
30
+ }>;
31
+ export const controlEntryReducer: import("redux").Reducer<{
32
+ loadingControlEntryList: boolean;
33
+ moreLoading: boolean;
34
+ isListEnd: boolean;
35
+ controlEntryList: any[];
36
+ loadingControlEntry: boolean;
37
+ controlEntry: {};
38
+ }>;
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { generateInifiniteScrollCases, handlerApiCall, updateAgendaItems, } from '@axelor/aos-mobile-core';
20
+ import { searchControlEntry as _searchControlEntry, fetchControlEntryById as _fetchControlEntryById, updateControlEntry as _updateControlEntry, } from '../api/control-entry-api';
21
+ export const searchControlEntry = createAsyncThunk('controlEntry/searchControlEntry', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: _searchControlEntry,
24
+ data,
25
+ action: 'Quality_SliceAction_SearchControlEntry',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ export const fetchControlEntryById = createAsyncThunk('controlEntry/fetchControlEntryById', async function (data, { getState }) {
31
+ return handlerApiCall({
32
+ fetchFunction: _fetchControlEntryById,
33
+ data,
34
+ action: 'Quality_SliceAction_FetchControlEntryById',
35
+ getState,
36
+ responseOptions: { isArrayResponse: false },
37
+ });
38
+ });
39
+ export const updateControlEntry = createAsyncThunk('controlEntry/updateControlEntry', async function (data = {}, { getState, dispatch }) {
40
+ return handlerApiCall({
41
+ fetchFunction: _updateControlEntry,
42
+ data,
43
+ action: 'Quality_SliceAction_UpdateControlEntry',
44
+ getState,
45
+ responseOptions: { isArrayResponse: false },
46
+ }).then(() => {
47
+ dispatch(fetchControlEntryById({ controlEntryId: data?.controlEntryId }));
48
+ });
49
+ });
50
+ const initialState = {
51
+ loadingControlEntryList: true,
52
+ moreLoading: false,
53
+ isListEnd: false,
54
+ controlEntryList: [],
55
+ loadingControlEntry: true,
56
+ controlEntry: {},
57
+ };
58
+ const controlEntrySlice = createSlice({
59
+ name: 'controlEntry',
60
+ initialState,
61
+ extraReducers: builder => {
62
+ generateInifiniteScrollCases(builder, searchControlEntry, {
63
+ loading: 'loadingControlEntryList',
64
+ moreLoading: 'moreLoading',
65
+ isListEnd: 'isListEnd',
66
+ list: 'controlEntryList',
67
+ });
68
+ builder.addCase(fetchControlEntryById.pending, (state, action) => {
69
+ state.loadingControlEntry = true;
70
+ });
71
+ builder.addCase(fetchControlEntryById.fulfilled, (state, action) => {
72
+ state.loadingControlEntry = false;
73
+ state.controlEntry = action.payload;
74
+ state.controlEntryList = updateAgendaItems(state.controlEntryList, [
75
+ action.payload,
76
+ ]);
77
+ });
78
+ },
79
+ });
80
+ export const controlEntryReducer = controlEntrySlice.reducer;
81
+ //# sourceMappingURL=controlEntrySlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlEntrySlice.js","sourceRoot":"","sources":["../../src/features/controlEntrySlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,IAAI,mBAAmB,EACzC,qBAAqB,IAAI,sBAAsB,EAC/C,kBAAkB,IAAI,mBAAmB,GAC1C,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAChD,iCAAiC,EACjC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,mBAAmB;QAClC,IAAI;QACJ,MAAM,EAAE,wCAAwC;QAChD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,gBAAgB,CACnD,oCAAoC,EACpC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,sBAAsB;QACrC,IAAI;QACJ,MAAM,EAAE,2CAA2C;QACnD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,KAAK,EAAC;KAC1C,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAChD,iCAAiC,EACjC,KAAK,WAAW,IAAI,GAAG,EAAE,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAC;IAC7C,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,mBAAmB;QAClC,IAAI;QACJ,MAAM,EAAE,wCAAwC;QAChD,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,KAAK,EAAC;KAC1C,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACX,QAAQ,CAAC,qBAAqB,CAAC,EAAC,cAAc,EAAE,IAAI,EAAE,cAAc,EAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,uBAAuB,EAAE,IAAI;IAC7B,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,gBAAgB,EAAE,EAAE;IAEpB,mBAAmB,EAAE,IAAI;IACzB,YAAY,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,iBAAiB,GAAG,WAAW,CAAC;IACpC,IAAI,EAAE,cAAc;IACpB,YAAY;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB,EAAE;YACxD,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/D,KAAK,CAAC,mBAAmB,GAAG,IAAI,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACjE,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC;YAClC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;YACpC,KAAK,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,KAAK,CAAC,gBAAgB,EAAE;gBACjE,MAAM,CAAC,OAAO;aACf,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const fetchControlPlanById: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const controlPlanReducer: import("redux").Reducer<{
12
+ loadingControlPlan: boolean;
13
+ controlPlan: {};
14
+ }>;
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { handlerApiCall } from '@axelor/aos-mobile-core';
20
+ import { fetchControlPlanById as _fetchControlPlanById } from '../api/control-plan-api';
21
+ export const fetchControlPlanById = createAsyncThunk('controlPlan/fetchControlPlanById', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: _fetchControlPlanById,
24
+ data,
25
+ action: 'Quality_SliceAction_FetchControlPlan',
26
+ getState,
27
+ responseOptions: { isArrayResponse: false },
28
+ });
29
+ });
30
+ const initialState = {
31
+ loadingControlPlan: true,
32
+ controlPlan: {},
33
+ };
34
+ const controlPlanSlice = createSlice({
35
+ name: 'controlPlan',
36
+ initialState,
37
+ extraReducers: builder => {
38
+ builder.addCase(fetchControlPlanById.pending, (state, action) => {
39
+ state.loadingControlPlan = true;
40
+ });
41
+ builder.addCase(fetchControlPlanById.fulfilled, (state, action) => {
42
+ state.loadingControlPlan = false;
43
+ state.controlPlan = action.payload;
44
+ });
45
+ },
46
+ });
47
+ export const controlPlanReducer = controlPlanSlice.reducer;
48
+ //# sourceMappingURL=controlPlanSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlPlanSlice.js","sourceRoot":"","sources":["../../src/features/controlPlanSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,oBAAoB,IAAI,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAEtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAClD,kCAAkC,EAClC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,qBAAqB;QACpC,IAAI;QACJ,MAAM,EAAE,sCAAsC;QAC9C,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,KAAK,EAAC;KAC1C,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,kBAAkB,EAAE,IAAI;IACxB,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,gBAAgB,GAAG,WAAW,CAAC;IACnC,IAAI,EAAE,aAAa;IACnB,YAAY;IACZ,aAAa,EAAE,OAAO,CAAC,EAAE;QACvB,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC9D,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChE,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC;YACjC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { controlEntrySampleLineReducer as controlEntrySampleLine } from "./controlEntrySampleLineSlice";
2
+ export { controlEntrySampleReducer as controlEntrySample } from "./controlEntrySampleSlice";
3
+ export { controlEntryReducer as controlEntry } from "./controlEntrySlice";
4
+ export { controlPlanReducer as controlPlan } from "./controlPlanSlice";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { controlEntrySampleLineReducer as controlEntrySampleLine } from './controlEntrySampleLineSlice';
19
+ export { controlEntrySampleReducer as controlEntrySample } from './controlEntrySampleSlice';
20
+ export { controlEntryReducer as controlEntry } from './controlEntrySlice';
21
+ export { controlPlanReducer as controlPlan } from './controlPlanSlice';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,6BAA6B,IAAI,sBAAsB,EAAC,MAAM,+BAA+B,CAAC;AACtG,OAAO,EAAC,yBAAyB,IAAI,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAC,mBAAmB,IAAI,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAC,kBAAkB,IAAI,WAAW,EAAC,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const useQualityHeaders: () => void;
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2024 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { headerActionsProvider, useDispatch, useSelector, useTranslator, } from '@axelor/aos-mobile-core';
19
+ import { useEffect } from 'react';
20
+ import { useThemeColor } from '@axelor/aos-mobile-ui';
21
+ import { fetchControlEntryById } from '../features/controlEntrySlice';
22
+ export const useQualityHeaders = () => {
23
+ useControlEntryDetailsActions();
24
+ };
25
+ const useControlEntryDetailsActions = () => {
26
+ const Colors = useThemeColor();
27
+ const I18n = useTranslator();
28
+ const dispatch = useDispatch();
29
+ const { controlEntry } = useSelector((state) => state.controlEntry);
30
+ useEffect(() => {
31
+ headerActionsProvider.registerModel('quality_controlEntry_details', {
32
+ actions: [
33
+ {
34
+ key: 'refreshControlEntry',
35
+ order: 10,
36
+ iconName: 'arrow-repeat',
37
+ title: I18n.t('Quality_RefreshControlEntry'),
38
+ iconColor: Colors.primaryColor.background,
39
+ onPress: () => {
40
+ dispatch(fetchControlEntryById({
41
+ controlEntryId: controlEntry?.id,
42
+ }));
43
+ },
44
+ showInHeader: true,
45
+ },
46
+ ],
47
+ });
48
+ }, [Colors, I18n, controlEntry?.id, dispatch]);
49
+ };
50
+ //# sourceMappingURL=use-quality-header-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-quality-header-actions.js","sourceRoot":"","sources":["../../src/hooks/use-quality-header-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,qBAAqB,EAAC,MAAM,+BAA+B,CAAC;AAEpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,6BAA6B,EAAE,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,6BAA6B,GAAG,GAAG,EAAE;IACzC,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,YAAY,EAAC,GAAG,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAEvE,SAAS,CAAC,GAAG,EAAE;QACb,qBAAqB,CAAC,aAAa,CAAC,8BAA8B,EAAE;YAClE,OAAO,EAAE;gBACP;oBACE,GAAG,EAAE,qBAAqB;oBAC1B,KAAK,EAAE,EAAE;oBACT,QAAQ,EAAE,cAAc;oBACxB,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,6BAA6B,CAAC;oBAC5C,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU;oBACzC,OAAO,EAAE,GAAG,EAAE;wBACZ,QAAQ,CACL,qBAA6B,CAAC;4BAC7B,cAAc,EAAE,YAAY,EAAE,EAAE;yBACjC,CAAC,CACH,CAAC;oBACJ,CAAC;oBACD,YAAY,EAAE,IAAI;iBACnB;aACF;SACF,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ {
2
+ "Quality_Quality": "Quality",
3
+ "Quality_ControlEntries": "Control entries",
4
+ "Quality_ControlEntry": "Control entry",
5
+ "Quality_Sample": "Sample",
6
+ "Quality_SampleCount": "Sample count",
7
+ "Quality_Characteristic": "Characteristic",
8
+ "Quality_Status_Draft": "Draft",
9
+ "Quality_Status_InProgress": "In progress",
10
+ "Quality_Status_Completed": "Completed",
11
+ "Quality_Status_Canceled": "Canceled",
12
+ "Quality_RefreshControlEntry": "Refresh control entry",
13
+ "Quality_ControlPlan": "Control plan",
14
+ "Quality_MarkAsCompleted": "Mark as completed",
15
+ "Quality_FillingMethod": "Filling method",
16
+ "Quality_FillingMethod_Sample": "By sample",
17
+ "Quality_FillingMethod_Characteristic": "By characteristic",
18
+ "Quality_ControlResult_Compliant": "Compliant",
19
+ "Quality_ControlResult_NotCompliant": "Not compliant",
20
+ "Quality_ControlResult_NotControlled": "Not controlled",
21
+ "Quality_ConformityResult": "Conformity result",
22
+ "Quality_SliceAction_SearchControlEntry": "search control entries",
23
+ "Quality_SliceAction_FetchControlEntryById": "fetch control entry by id",
24
+ "Quality_SliceAction_SearchControlEntrySample": "search control entry samples",
25
+ "Quality_SliceAction_FetchControlPlan": "fetch control plan",
26
+ "Quality_SliceAction_SearchControlEntrySampleLine": "search control entry sample lines",
27
+ "Quality_SliceAction_FetchControlEntrySampleLine": "fetch control entry sample line",
28
+ "Quality_SliceAction_UpdateControlEntry": "update control entry"
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "Quality_Quality": "Qualité",
3
+ "Quality_ControlEntries": "Relevés de contrôle",
4
+ "Quality_ControlEntry": "Relevé de contrôle",
5
+ "Quality_Sample": "Échantillon",
6
+ "Quality_SampleCount": "Nombre d'échantillons",
7
+ "Quality_Characteristic": "Caractéristique",
8
+ "Quality_Status_Draft": "Brouillon",
9
+ "Quality_Status_InProgress": "En cours",
10
+ "Quality_Status_Completed": "Complété",
11
+ "Quality_Status_Canceled": "Annulé",
12
+ "Quality_RefreshControlEntry": "Mettre à jour le relevé de contrôle",
13
+ "Quality_ControlPlan": "Plan de contrôle",
14
+ "Quality_MarkAsCompleted": "Marquer comme terminé",
15
+ "Quality_FillingMethod": "Méthode de remplissage",
16
+ "Quality_FillingMethod_Sample": "Par échantillon",
17
+ "Quality_FillingMethod_Characteristic": "Par caractéristique",
18
+ "Quality_ControlResult_Compliant": "Conforme",
19
+ "Quality_ControlResult_NotCompliant": "Non conforme",
20
+ "Quality_ControlResult_NotControlled": "Non contrôlé",
21
+ "Quality_ConformityResult": "Résultat de la conformité",
22
+ "Quality_SliceAction_SearchControlEntry": "recherche des relevés de contrôle",
23
+ "Quality_SliceAction_FetchControlEntryById": "récupération du relevé de contrôle par id",
24
+ "Quality_SliceAction_SearchControlEntrySample": "recherche sur les échantillons du relevé de contôle",
25
+ "Quality_SliceAction_FetchControlPlan": "récupération de la gamme de contrôle",
26
+ "Quality_SliceAction_SearchControlEntrySampleLine": "recherche des lignes d'échantillons du relevé de contrôle",
27
+ "Quality_SliceAction_FetchControlEntrySampleLine": "récupération de la ligne d'échantillon du relevé de contrôle",
28
+ "Quality_SliceAction_UpdateControlEntry": "mise à jour du relevé de contrôle"
29
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { Module } from '@axelor/aos-mobile-core';
2
+ export declare const QualityModule: Module;
3
+ export * from './api';
4
+ export * from './components';
5
+ export * from './features/asyncFunctions-index';
6
+ export * from './screens';
7
+ export * from './types';