@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.
- package/README.md +44 -0
- package/lib/api/control-entry-api.d.ts +19 -0
- package/lib/api/control-entry-api.js +83 -0
- package/lib/api/control-entry-api.js.map +1 -0
- package/lib/api/control-entry-sample-api.d.ts +4 -0
- package/lib/api/control-entry-sample-api.js +37 -0
- package/lib/api/control-entry-sample-api.js.map +1 -0
- package/lib/api/control-entry-sample-line-api.d.ts +13 -0
- package/lib/api/control-entry-sample-line-api.js +96 -0
- package/lib/api/control-entry-sample-line-api.js.map +1 -0
- package/lib/api/control-plan-api.d.ts +3 -0
- package/lib/api/control-plan-api.js +26 -0
- package/lib/api/control-plan-api.js.map +1 -0
- package/lib/api/index.d.ts +4 -0
- package/lib/api/index.js +22 -0
- package/lib/api/index.js.map +1 -0
- package/lib/components/atoms/ControlEntryCard/ControlEntryCard.d.ts +11 -0
- package/lib/components/atoms/ControlEntryCard/ControlEntryCard.js +99 -0
- package/lib/components/atoms/ControlEntryCard/ControlEntryCard.js.map +1 -0
- package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.d.ts +2 -0
- package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.js +47 -0
- package/lib/components/atoms/ControlEntryHeader/ControlEntryHeader.js.map +1 -0
- package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.d.ts +8 -0
- package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.js +86 -0
- package/lib/components/atoms/ControlEntrySampleCard/ControlEntrySampleCard.js.map +1 -0
- package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.d.ts +2 -0
- package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.js +52 -0
- package/lib/components/atoms/ControlEntrySampleLineHeader/ControlEntrySampleLineHeader.js.map +1 -0
- package/lib/components/atoms/NavigationButton/NavigationButton.d.ts +7 -0
- package/lib/components/atoms/NavigationButton/NavigationButton.js +40 -0
- package/lib/components/atoms/NavigationButton/NavigationButton.js.map +1 -0
- package/lib/components/atoms/index.d.ts +5 -0
- package/lib/components/atoms/index.js +23 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.d.ts +2 -0
- package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.js +38 -0
- package/lib/components/molecules/ControlEntryDetailsButtons/ControlEntryDetailsButtons.js.map +1 -0
- package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.d.ts +5 -0
- package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.js +72 -0
- package/lib/components/molecules/ControlEntryDetailsHeader/ControlEntryDetailsHeader.js.map +1 -0
- package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.d.ts +12 -0
- package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.js +66 -0
- package/lib/components/molecules/ControlEntryFormButtons/ControlEntryFormButtons.js.map +1 -0
- package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.d.ts +8 -0
- package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.js +54 -0
- package/lib/components/molecules/ControlEntryFormHeader/ControlEntryFormHeader.js.map +1 -0
- package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.d.ts +8 -0
- package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.js +60 -0
- package/lib/components/molecules/FillingMethodAlert/FillingMethodAlert.js.map +1 -0
- package/lib/components/molecules/index.d.ts +5 -0
- package/lib/components/molecules/index.js +23 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +4 -0
- package/lib/features/asyncFunctions-index.js +22 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/controlEntrySampleLineSlice.d.ts +26 -0
- package/lib/features/controlEntrySampleLineSlice.js +66 -0
- package/lib/features/controlEntrySampleLineSlice.js.map +1 -0
- package/lib/features/controlEntrySampleSlice.d.ts +16 -0
- package/lib/features/controlEntrySampleSlice.js +49 -0
- package/lib/features/controlEntrySampleSlice.js.map +1 -0
- package/lib/features/controlEntrySlice.d.ts +38 -0
- package/lib/features/controlEntrySlice.js +81 -0
- package/lib/features/controlEntrySlice.js.map +1 -0
- package/lib/features/controlPlanSlice.d.ts +14 -0
- package/lib/features/controlPlanSlice.js +48 -0
- package/lib/features/controlPlanSlice.js.map +1 -0
- package/lib/features/index.d.ts +4 -0
- package/lib/features/index.js +22 -0
- package/lib/features/index.js.map +1 -0
- package/lib/hooks/use-quality-header-actions.d.ts +1 -0
- package/lib/hooks/use-quality-header-actions.js +50 -0
- package/lib/hooks/use-quality-header-actions.js.map +1 -0
- package/lib/i18n/en.json +29 -0
- package/lib/i18n/fr.json +29 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +60 -0
- package/lib/index.js.map +1 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +21 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +51 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +21 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +26 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/screens/ControlEntryDetailsScreen.d.ts +4 -0
- package/lib/screens/ControlEntryDetailsScreen.js +49 -0
- package/lib/screens/ControlEntryDetailsScreen.js.map +1 -0
- package/lib/screens/ControlEntryFormScreen.d.ts +5 -0
- package/lib/screens/ControlEntryFormScreen.js +190 -0
- package/lib/screens/ControlEntryFormScreen.js.map +1 -0
- package/lib/screens/ControlEntryListScreen.d.ts +4 -0
- package/lib/screens/ControlEntryListScreen.js +78 -0
- package/lib/screens/ControlEntryListScreen.js.map +1 -0
- package/lib/screens/index.d.ts +35 -0
- package/lib/screens/index.js +48 -0
- package/lib/screens/index.js.map +1 -0
- package/lib/types/controlEntry.d.ts +45 -0
- package/lib/types/controlEntry.js +155 -0
- package/lib/types/controlEntry.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +19 -0
- package/lib/types/index.js.map +1 -0
- package/package.json +50 -0
|
@@ -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 ControlEntryListScreen from './ControlEntryListScreen';
|
|
19
|
+
import ControlEntryDetailsScreen from './ControlEntryDetailsScreen';
|
|
20
|
+
import ControlEntryFormScreen from './ControlEntryFormScreen';
|
|
21
|
+
export default {
|
|
22
|
+
ControlEntryListScreen: {
|
|
23
|
+
title: 'Quality_ControlEntries',
|
|
24
|
+
component: ControlEntryListScreen,
|
|
25
|
+
options: {
|
|
26
|
+
shadedHeader: false,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ControlEntryDetailsScreen: {
|
|
30
|
+
title: 'Quality_ControlEntry',
|
|
31
|
+
component: ControlEntryDetailsScreen,
|
|
32
|
+
actionID: 'quality_controlEntry_details',
|
|
33
|
+
options: {
|
|
34
|
+
shadedHeader: false,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
ControlEntryFormScreen: {
|
|
38
|
+
title: 'Quality_ControlEntry',
|
|
39
|
+
component: ControlEntryFormScreen,
|
|
40
|
+
options: {
|
|
41
|
+
shadedHeader: false,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export { ControlEntryListScreen };
|
|
46
|
+
export { ControlEntryDetailsScreen };
|
|
47
|
+
export { ControlEntryFormScreen };
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/screens/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe;IACb,sBAAsB,EAAE;QACtB,KAAK,EAAE,wBAAwB;QAC/B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,yBAAyB,EAAE;QACzB,KAAK,EAAE,sBAAsB;QAC7B,SAAS,EAAE,yBAAyB;QACpC,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,sBAAsB,EAAE;QACtB,KAAK,EAAE,sBAAsB;QAC7B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC;AAEF,OAAO,EAAC,sBAAsB,EAAC,CAAC;AAChC,OAAO,EAAC,yBAAyB,EAAC,CAAC;AACnC,OAAO,EAAC,sBAAsB,EAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Color, ThemeColors } from '@axelor/aos-mobile-ui';
|
|
2
|
+
import { TranslatorProps } from '@axelor/aos-mobile-core';
|
|
3
|
+
declare class ControlEntry {
|
|
4
|
+
static status: {
|
|
5
|
+
Draft: number;
|
|
6
|
+
InProgress: number;
|
|
7
|
+
Completed: number;
|
|
8
|
+
Canceled: number;
|
|
9
|
+
};
|
|
10
|
+
static sampleResult: {
|
|
11
|
+
NotControlled: number;
|
|
12
|
+
Compliant: number;
|
|
13
|
+
NotCompliant: number;
|
|
14
|
+
};
|
|
15
|
+
static fillingMethod: {
|
|
16
|
+
Sample: string;
|
|
17
|
+
Characteristic: string;
|
|
18
|
+
};
|
|
19
|
+
static getStatus: (select: number, I18n: TranslatorProps) => string;
|
|
20
|
+
static getStatusColor: (status: number, Colors: ThemeColors) => Color;
|
|
21
|
+
static getStatusList: (Colors: ThemeColors, I18n: {
|
|
22
|
+
t: (key: string) => string;
|
|
23
|
+
}) => {
|
|
24
|
+
title: string;
|
|
25
|
+
color: Color;
|
|
26
|
+
key: number;
|
|
27
|
+
}[];
|
|
28
|
+
static getSampleResultColor: (sampleResult: number, Colors: ThemeColors) => Color;
|
|
29
|
+
static getSampleResultTitle: (sampleResult: number, I18n: TranslatorProps) => string;
|
|
30
|
+
static getSampleResultType: (sampleResult: number) => string;
|
|
31
|
+
static getFillingMethods: (I18n: TranslatorProps) => {
|
|
32
|
+
title: string;
|
|
33
|
+
id: string;
|
|
34
|
+
}[];
|
|
35
|
+
static getMethodAssociatedAttribut: (fillingMethod: string) => string;
|
|
36
|
+
static getMethodTotals: (fillingMethod: string, nbCharacteristic: number, nbSample: number) => {
|
|
37
|
+
nbItemInCategory: number;
|
|
38
|
+
nbCategories: number;
|
|
39
|
+
};
|
|
40
|
+
static getMethodIcons: (fillingMethod: string) => {
|
|
41
|
+
categoryIcon: string;
|
|
42
|
+
subCategoryIcon: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export default ControlEntry;
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
class ControlEntry {
|
|
19
|
+
static status = {
|
|
20
|
+
Draft: 1,
|
|
21
|
+
InProgress: 2,
|
|
22
|
+
Completed: 3,
|
|
23
|
+
Canceled: 4,
|
|
24
|
+
};
|
|
25
|
+
static sampleResult = {
|
|
26
|
+
NotControlled: 1,
|
|
27
|
+
Compliant: 2,
|
|
28
|
+
NotCompliant: 3,
|
|
29
|
+
};
|
|
30
|
+
static fillingMethod = {
|
|
31
|
+
Sample: 'sample',
|
|
32
|
+
Characteristic: 'characteristic',
|
|
33
|
+
};
|
|
34
|
+
static getStatus = (select, I18n) => {
|
|
35
|
+
if (I18n) {
|
|
36
|
+
switch (select) {
|
|
37
|
+
case this.status.Draft:
|
|
38
|
+
return I18n.t('Quality_Status_Draft');
|
|
39
|
+
case this.status.InProgress:
|
|
40
|
+
return I18n.t('Quality_Status_InProgress');
|
|
41
|
+
case this.status.Completed:
|
|
42
|
+
return I18n.t('Quality_Status_Completed');
|
|
43
|
+
case this.status.Canceled:
|
|
44
|
+
return I18n.t('Quality_Status_Canceled');
|
|
45
|
+
default:
|
|
46
|
+
console.warn(`Status provided with value ${select} is not supported by control entry`);
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
static getStatusColor = (status, Colors) => {
|
|
52
|
+
switch (status) {
|
|
53
|
+
case this.status.Draft:
|
|
54
|
+
return Colors.secondaryColor;
|
|
55
|
+
case this.status.InProgress:
|
|
56
|
+
return Colors.progressColor;
|
|
57
|
+
case this.status.Completed:
|
|
58
|
+
return Colors.successColor;
|
|
59
|
+
case this.status.Canceled:
|
|
60
|
+
return Colors.errorColor;
|
|
61
|
+
default:
|
|
62
|
+
console.warn(`Status provided with value ${status} is not supported by control entry`);
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
static getStatusList = (Colors, I18n) => {
|
|
67
|
+
return Object.entries(this.status).map(([key, value]) => ({
|
|
68
|
+
title: I18n.t(`Quality_Status_${key}`),
|
|
69
|
+
color: this.getStatusColor(value, Colors),
|
|
70
|
+
key: value,
|
|
71
|
+
}));
|
|
72
|
+
};
|
|
73
|
+
static getSampleResultColor = (sampleResult, Colors) => {
|
|
74
|
+
switch (sampleResult) {
|
|
75
|
+
case this.sampleResult.Compliant:
|
|
76
|
+
return Colors.successColor;
|
|
77
|
+
case this.sampleResult.NotCompliant:
|
|
78
|
+
return Colors.errorColor;
|
|
79
|
+
case this.sampleResult.NotControlled:
|
|
80
|
+
return Colors.secondaryColor;
|
|
81
|
+
default:
|
|
82
|
+
console.warn(`Sample result provided with value ${sampleResult} is not supported by control entry`);
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
static getSampleResultTitle = (sampleResult, I18n) => {
|
|
87
|
+
if (I18n) {
|
|
88
|
+
switch (sampleResult) {
|
|
89
|
+
case this.sampleResult.Compliant:
|
|
90
|
+
return I18n.t('Quality_ControlResult_Compliant');
|
|
91
|
+
case this.sampleResult.NotCompliant:
|
|
92
|
+
return I18n.t('Quality_ControlResult_NotCompliant');
|
|
93
|
+
case this.sampleResult.NotControlled:
|
|
94
|
+
return I18n.t('Quality_ControlResult_NotControlled');
|
|
95
|
+
default:
|
|
96
|
+
console.warn(`Sample result provided with value ${sampleResult} is not supported by control entry`);
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
static getSampleResultType = (sampleResult) => {
|
|
102
|
+
switch (sampleResult) {
|
|
103
|
+
case this.sampleResult.Compliant:
|
|
104
|
+
return 'success';
|
|
105
|
+
case this.sampleResult.NotCompliant:
|
|
106
|
+
return 'error';
|
|
107
|
+
case this.sampleResult.NotControlled:
|
|
108
|
+
return 'neutral';
|
|
109
|
+
default:
|
|
110
|
+
console.warn(`Sample result provided with value ${sampleResult} is not supported by control entry`);
|
|
111
|
+
return 'error';
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
static getFillingMethods = (I18n) => {
|
|
115
|
+
return Object.entries(this.fillingMethod).map(([key, value]) => ({
|
|
116
|
+
title: I18n.t(`Quality_FillingMethod_${key}`),
|
|
117
|
+
id: value,
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
static getMethodAssociatedAttribut = (fillingMethod) => {
|
|
121
|
+
switch (fillingMethod) {
|
|
122
|
+
case this.fillingMethod.Sample:
|
|
123
|
+
return 'controlEntrySample';
|
|
124
|
+
case this.fillingMethod.Characteristic:
|
|
125
|
+
return 'controlPlanLine';
|
|
126
|
+
default:
|
|
127
|
+
console.warn(`Filling method provided with value ${fillingMethod} is not supported by control entry`);
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
static getMethodTotals = (fillingMethod, nbCharacteristic, nbSample) => {
|
|
132
|
+
switch (fillingMethod) {
|
|
133
|
+
case this.fillingMethod.Sample:
|
|
134
|
+
return { nbItemInCategory: nbCharacteristic, nbCategories: nbSample };
|
|
135
|
+
case this.fillingMethod.Characteristic:
|
|
136
|
+
return { nbItemInCategory: nbSample, nbCategories: nbCharacteristic };
|
|
137
|
+
default:
|
|
138
|
+
console.warn(`Filling method provided with value ${fillingMethod} is not supported by control entry`);
|
|
139
|
+
return { nbItemInCategory: 0, nbCategories: 0 };
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
static getMethodIcons = (fillingMethod) => {
|
|
143
|
+
switch (fillingMethod) {
|
|
144
|
+
case this.fillingMethod.Sample:
|
|
145
|
+
return { categoryIcon: 'eyedropper', subCategoryIcon: 'palette2' };
|
|
146
|
+
case this.fillingMethod.Characteristic:
|
|
147
|
+
return { categoryIcon: 'palette2', subCategoryIcon: 'eyedropper' };
|
|
148
|
+
default:
|
|
149
|
+
console.warn(`Filling method provided with value ${fillingMethod} is not supported by control entry`);
|
|
150
|
+
return { categoryIcon: null, subCategoryIcon: null };
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
export default ControlEntry;
|
|
155
|
+
//# sourceMappingURL=controlEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlEntry.js","sourceRoot":"","sources":["../../src/types/controlEntry.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,MAAM,YAAY;IAChB,MAAM,CAAC,MAAM,GAAG;QACd,KAAK,EAAE,CAAC;QACR,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF,MAAM,CAAC,YAAY,GAAG;QACpB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;KAChB,CAAC;IAEF,MAAM,CAAC,aAAa,GAAG;QACrB,MAAM,EAAE,QAAQ;QAChB,cAAc,EAAE,gBAAgB;KACjC,CAAC;IAEF,MAAM,CAAC,SAAS,GAAG,CAAC,MAAc,EAAE,IAAqB,EAAU,EAAE;QACnE,IAAI,IAAI,EAAE;YACR,QAAQ,MAAM,EAAE;gBACd,K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,EAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAC,CAAC;YACtE,KAAK,IAAI,CAAC,aAAa,CAAC,cAAc;gBACpC,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAC,CAAC;YACtE;gBACE,OAAO,CAAC,IAAI,CACV,sCAAsC,aAAa,oCAAoC,CACxF,CAAC;gBACF,OAAO,EAAC,gBAAgB,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAC,CAAC;SACjD;IACH,CAAC,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,CACtB,aAAqB,EAC4B,EAAE;QACnD,QAAQ,aAAa,EAAE;YACrB,KAAK,IAAI,CAAC,aAAa,CAAC,MAAM;gBAC5B,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAC,CAAC;YACnE,KAAK,IAAI,CAAC,aAAa,CAAC,cAAc;gBACpC,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAC,CAAC;YACnE;gBACE,OAAO,CAAC,IAAI,CACV,sCAAsC,aAAa,oCAAoC,CACxF,CAAC;gBACF,OAAO,EAAC,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAC,CAAC;SACtD;IACH,CAAC,CAAC;;AAGJ,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ControlEntry } from './controlEntry';
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ControlEntry } from './controlEntry';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@axelor/aos-mobile-quality",
|
|
3
|
+
"version": "8.0.0",
|
|
4
|
+
"author": "Axelor",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "lib/index.js",
|
|
10
|
+
"types": "lib/index.d.js",
|
|
11
|
+
"files": [
|
|
12
|
+
"lib"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"clean": "rm -rf lib/",
|
|
16
|
+
"compile": "tsc -p tsconfig.build.json",
|
|
17
|
+
"dev": "npm run compile -- --watch",
|
|
18
|
+
"build": "npm run clean && npm run compile",
|
|
19
|
+
"i18n": "i18n-parser --config=./i18n.json",
|
|
20
|
+
"npm-publish": "npm publish",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"format": "prettier --write src/",
|
|
23
|
+
"format:check": "prettier --check src/",
|
|
24
|
+
"license:add": "npx add-copyright-header --generate --dir 'src'"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "18.2.0",
|
|
28
|
+
"react-i18next": "^11.18.6"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@axelor/aos-mobile-core": "8.0.0",
|
|
32
|
+
"@axelor/aos-mobile-ui": "8.0.0",
|
|
33
|
+
"@reduxjs/toolkit": "^1.8.5"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/runtime": "^7.19.0",
|
|
37
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
38
|
+
"@types/react": "18.2.0",
|
|
39
|
+
"@types/react-native": "0.68.1",
|
|
40
|
+
"cpx2": "^4.2.0",
|
|
41
|
+
"eslint": "^7.32.0",
|
|
42
|
+
"i18n-parser": "^1.0.0",
|
|
43
|
+
"prettier": "^2.7.1",
|
|
44
|
+
"react": "18.2.0",
|
|
45
|
+
"react-native": "0.68.1"
|
|
46
|
+
},
|
|
47
|
+
"resolutions": {
|
|
48
|
+
"@types/react": "18.2.0"
|
|
49
|
+
}
|
|
50
|
+
}
|