jornada-ui 0.4.16 → 0.4.17

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 (38) hide show
  1. package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js +35 -0
  2. package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
  3. package/lib/commonjs/components/modals/modal-change-activitie-history/index.js +203 -0
  4. package/lib/commonjs/components/modals/modal-change-activitie-history/index.js.map +1 -0
  5. package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js +6 -0
  6. package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js.map +1 -0
  7. package/lib/commonjs/components/step-indicator/index.js +131 -68
  8. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  9. package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js +32 -0
  10. package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
  11. package/lib/module/components/modals/modal-change-activitie-history/index.js +196 -0
  12. package/lib/module/components/modals/modal-change-activitie-history/index.js.map +1 -0
  13. package/lib/module/components/modals/modal-change-activitie-history/interface.js +4 -0
  14. package/lib/module/components/modals/modal-change-activitie-history/interface.js.map +1 -0
  15. package/lib/module/components/step-indicator/index.js +129 -65
  16. package/lib/module/components/step-indicator/index.js.map +1 -1
  17. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
  18. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
  19. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
  20. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
  21. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
  22. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
  23. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts +3 -9
  24. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
  25. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
  26. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
  27. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
  28. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
  29. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
  30. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
  31. package/lib/typescript/module/src/components/step-indicator/index.d.ts +3 -9
  32. package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/src/components/modals/modal-change-activitie-history/helpers/index.ts +15 -0
  35. package/src/components/modals/modal-change-activitie-history/index.tsx +189 -0
  36. package/src/components/modals/modal-change-activitie-history/interface.ts +16 -0
  37. package/src/components/step-indicator/index.tsx +226 -155
  38. package/src/components/step-indicator/interface.d.ts +3 -2
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.optionsActivities = void 0;
7
+ /**
8
+ * CONSTANTS
9
+ */
10
+ const optionsActivities = exports.optionsActivities = [{
11
+ label: "Selecione atividade",
12
+ value: "none",
13
+ key: 0
14
+ }, {
15
+ label: "Descanso",
16
+ value: "descanso",
17
+ key: 9
18
+ }, {
19
+ label: "Repouso Noturno",
20
+ value: "repouso_noturno",
21
+ key: 6
22
+ }, {
23
+ label: "Refeição",
24
+ value: "refeição",
25
+ key: 7
26
+ }, {
27
+ label: "Repouso Semanal",
28
+ value: "repouso_semanal",
29
+ key: 5
30
+ }];
31
+
32
+ /**
33
+ * EXPORTS
34
+ */
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["optionsActivities","exports","label","value","key"],"sourceRoot":"..\\..\\..\\..\\..\\..\\src","sources":["components/modals/modal-change-activitie-history/helpers/index.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA,MAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,CACxB;EAAEE,KAAK,EAAE,qBAAqB;EAAEC,KAAK,EAAE,MAAM;EAAEC,GAAG,EAAE;AAAE,CAAC,EACvD;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE,UAAU;EAAEC,GAAG,EAAE;AAAE,CAAC,EAChD;EAAEF,KAAK,EAAE,iBAAiB;EAAEC,KAAK,EAAE,iBAAiB;EAAEC,GAAG,EAAE;AAAE,CAAC,EAC9D;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE,UAAU;EAAEC,GAAG,EAAE;AAAE,CAAC,EAChD;EAAEF,KAAK,EAAE,iBAAiB;EAAEC,KAAK,EAAE,iBAAiB;EAAEC,GAAG,EAAE;AAAE,CAAC,CAC/D;;AAED;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ModalChangeActivity = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = _interopRequireDefault(require("../../box/index.js"));
10
+ var _index2 = _interopRequireDefault(require("../../button/index.js"));
11
+ var _index3 = _interopRequireDefault(require("../../typography/index.js"));
12
+ var _index4 = _interopRequireDefault(require("../../selects/select-option/index.js"));
13
+ var _index5 = require("../../../common/icons-svg/index.js");
14
+ var _index6 = require("./helpers/index.js");
15
+ var _theme = require("../../../styles/theme/theme.js");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ /**
19
+ * IMPORTS
20
+ */
21
+
22
+ // libs RN
23
+
24
+ // componentes
25
+
26
+ // assets / icons
27
+
28
+ // helpers / data
29
+
30
+ // typings
31
+
32
+ // styles / theme
33
+
34
+ /**
35
+ * Componente Modal para alteração de atividade.
36
+ */
37
+ const ModalChangeActivity = ({
38
+ visible,
39
+ onClose,
40
+ modalConfirm,
41
+ descricao
42
+ }) => {
43
+ const [isLoading] = _react.default.useState(false);
44
+ const initial = (descricao ?? "").toLowerCase().replace(/\s+/g, "_");
45
+ const [selectedOption, setSelectedOption] = _react.default.useState(initial || "none");
46
+ const handleConfirm = () => {
47
+ const selected = _index6.optionsActivities?.find(activity => activity.value === selectedOption);
48
+ if (selected && selected.value !== "none") {
49
+ modalConfirm({
50
+ label: selected.label,
51
+ value: selected.value,
52
+ key: selected.key
53
+ });
54
+ }
55
+
56
+ // sempre fechar o modal
57
+ onClose();
58
+ };
59
+ const handleSelectDown = activity => {
60
+ const option = _index6.optionsActivities.find(o => o.label === activity || o.value === activity);
61
+ if (option) setSelectedOption(option.value);
62
+ };
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
64
+ animationType: "fade",
65
+ transparent: true,
66
+ visible: visible,
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
68
+ style: {
69
+ flex: 1,
70
+ justifyContent: "center",
71
+ alignItems: "center",
72
+ backgroundColor: "rgba(0,0,0,0.6)"
73
+ },
74
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
75
+ width: 346,
76
+ backgroundColor: _theme.theme.colors.orange[500],
77
+ borderStyled: {
78
+ borderRadius: _theme.theme.borderWidths.thick_medium
79
+ },
80
+ paddingStyle: {
81
+ paddingLeft: _theme.theme.paddings["2xs"],
82
+ paddingRight: _theme.theme.paddings["2xs"],
83
+ paddingTop: _theme.theme.paddings.sm,
84
+ paddingBottom: _theme.theme.paddings.sm
85
+ },
86
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
87
+ marginStyle: {
88
+ marginBottom: _theme.theme.margins["2xs"],
89
+ marginLeft: _theme.theme.margins["1xs"]
90
+ },
91
+ flexStyle: {
92
+ flexDirection: "row",
93
+ alignItems: "center"
94
+ },
95
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Icons, {
96
+ icon: "EXCLAMATION_TRIANGLE",
97
+ color: _theme.theme.colors.black[10],
98
+ background: _theme.theme.colors.yellow[50],
99
+ size: _theme.theme.fontSizes["2xl"]
100
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
101
+ text: "Alterar Atividade",
102
+ color: "#fff",
103
+ marginLeft: _theme.theme.margins["2xs"],
104
+ fontFamily: _theme.theme.fonts.inter_bold_700,
105
+ size: _theme.theme.fontSizes.md
106
+ })]
107
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
108
+ backgroundColor: _theme.theme.colors.neutral[300],
109
+ paddingStyle: {
110
+ padding: _theme.theme.paddings.xs
111
+ },
112
+ borderStyled: {
113
+ borderRadius: _theme.theme.borderWidths.thick_medium
114
+ },
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
116
+ flexStyle: {
117
+ flexDirection: "row",
118
+ justifyContent: "flex-start"
119
+ },
120
+ width: "100%",
121
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
122
+ text: `Deseja realmente alterar sua atividade?`,
123
+ color: _theme.theme.colors.black[25],
124
+ fontFamily: _theme.theme.fonts.inter_medium_500,
125
+ size: _theme.theme.fontSizes.xs,
126
+ style: {
127
+ flexWrap: "wrap",
128
+ maxWidth: "100%"
129
+ }
130
+ })
131
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.default, {
132
+ titleLabel: "Selecione atividade",
133
+ sizeTitleLabel: _theme.theme.fontSizes.xs,
134
+ dataOption: _index6.optionsActivities,
135
+ handleSelectDown: handleSelectDown,
136
+ backgroundColor: _theme.theme.colors.neutral[300]
137
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
138
+ marginStyle: {
139
+ marginTop: _theme.theme.margins["1xs"]
140
+ },
141
+ flexStyle: {
142
+ flexDirection: "row",
143
+ justifyContent: "space-between"
144
+ },
145
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
146
+ title: "CANCELAR",
147
+ onPress: onClose,
148
+ width: "48%",
149
+ height: 36,
150
+ isLoading: isLoading,
151
+ disabled: isLoading,
152
+ backgroundColor: _theme.theme.colors.neutral[300],
153
+ buttonTextStyle: {
154
+ color: _theme.theme.colors.blue[100],
155
+ fontFamily: "Inter-Medium",
156
+ fontSize: _theme.theme.fontSizes.xs,
157
+ fontWeight: "500"
158
+ },
159
+ flexStyle: {
160
+ flexDirection: "row",
161
+ alignItems: "center",
162
+ justifyContent: "center",
163
+ textAlign: "center"
164
+ },
165
+ borderStyled: {
166
+ borderWidth: _theme.theme.borderWidths.thin,
167
+ borderColor: _theme.theme.colors.blue[100],
168
+ borderRadius: _theme.theme.borderWidths.thick_medium
169
+ }
170
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
171
+ title: "CONFIRMAR",
172
+ onPress: handleConfirm,
173
+ width: "48%",
174
+ height: 36,
175
+ isLoading: isLoading,
176
+ disabled: isLoading,
177
+ backgroundColor: _theme.theme.colors.blue[100],
178
+ buttonTextStyle: {
179
+ color: "#fff",
180
+ fontFamily: "Inter-Medium",
181
+ fontSize: _theme.theme.fontSizes.xs,
182
+ fontWeight: "500"
183
+ },
184
+ flexStyle: {
185
+ flexDirection: "row",
186
+ alignItems: "center",
187
+ justifyContent: "center",
188
+ textAlign: "center"
189
+ },
190
+ borderStyled: {
191
+ borderWidth: _theme.theme.borderWidths.thin,
192
+ borderColor: _theme.theme.colors.blue[100],
193
+ borderRadius: _theme.theme.borderWidths.thick_medium
194
+ }
195
+ })]
196
+ })]
197
+ })]
198
+ })
199
+ })
200
+ });
201
+ };
202
+ exports.ModalChangeActivity = ModalChangeActivity;
203
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_index2","_index3","_index4","_index5","_index6","_theme","_jsxRuntime","e","__esModule","default","ModalChangeActivity","visible","onClose","modalConfirm","descricao","isLoading","React","useState","initial","toLowerCase","replace","selectedOption","setSelectedOption","handleConfirm","selected","optionsActivities","find","activity","value","label","key","handleSelectDown","option","o","jsx","Modal","animationType","transparent","children","View","style","flex","justifyContent","alignItems","backgroundColor","jsxs","width","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","margins","marginLeft","flexStyle","flexDirection","Icons","icon","color","black","background","yellow","size","fontSizes","text","fontFamily","fonts","inter_bold_700","md","neutral","padding","xs","inter_medium_500","flexWrap","maxWidth","titleLabel","sizeTitleLabel","dataOption","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","exports"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-change-activitie-history/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AAGA,IAAAM,OAAA,GAAAN,OAAA;AAGA,IAAAO,OAAA,GAAAP,OAAA;AAMA,IAAAQ,MAAA,GAAAR,OAAA;AAAoD,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAvBpD;AACA;AACA;;AAEA;;AAGA;;AAMA;;AAGA;;AAGA;;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interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-change-activitie-history/interface.ts"],"mappings":"","ignoreList":[]}
@@ -4,95 +4,157 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _index = require("../../common/icons-svg/index.js");
9
+ var _index = require("../modals/modal-change-activitie-history/index.js");
10
+ var _index2 = require("../../common/icons-svg/index.js");
10
11
  var _getIconByStatus = require("./helpers/get-icon-by-status.js");
11
- var _index2 = require("../../utils/format-date/index.js");
12
+ var _index3 = require("../../utils/format-date/index.js");
12
13
  var _styles = require("./styles.js");
13
14
  var _theme = require("../../styles/theme/theme.js");
15
+ var _asBaseComponent = require("../../@types/as-base-component.js");
14
16
  var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- /**
17
- * IMPORTS
18
- */
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
+ // components
19
19
 
20
20
  // commons / svg
21
21
 
22
22
  // helpers
23
23
 
24
- // utils
25
-
26
24
  // typings
27
25
 
26
+ // utils
27
+
28
28
  // styles
29
29
 
30
30
  /**
31
31
  * Componente StepIndicator para a interação da ui.
32
- */const StepIndicator = ({
32
+ */const StepIndicator = /*#__PURE__*/(0, _react.forwardRef)(({
33
33
  data = [],
34
34
  type,
35
35
  textColorDescription,
36
36
  titleColor,
37
37
  titleNumberColor,
38
- handleOnPressActivitie
39
- }) => {
38
+ onChangeActivity
39
+ }, ref) => {
40
40
  const StepDefault = () => {
41
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
42
- children: data.length > 0 && data.map((history, index) => {
43
- // pegando primeira atividade pelo index
44
- const isFirst = index === 0;
45
- //pegando o tipo de atividade
46
- const isEditableType = history.tipo === "descanso";
41
+ const [isModalVisible, setIsModalVisible] = (0, _react.useState)(false);
42
+ const [currentStepIndex, setCurrentStepIndex] = (0, _react.useState)(null);
43
+ const [stepData, setStepData] = (0, _react.useState)(data);
44
+ const flatListRef = (0, _react.useRef)(null);
45
+ const handleOnPressActivitie = (stepItem, index) => {
46
+ const desc = stepItem?.descricao?.toLowerCase?.();
47
+ if (!desc) return;
48
+ const isDescanso = ["descanso", "refeição", "repouso_noturno", "repouso_semanal"].includes(desc.replace(/\s+/g, "_"));
49
+ if (isDescanso && stepItem?.sincronizado === true) {
50
+ setCurrentStepIndex(index);
51
+ setIsModalVisible(true);
52
+ }
53
+ };
54
+ const handleConfirmModal = newData => {
55
+ if (currentStepIndex !== null) {
56
+ const updatedStep = {
57
+ ...stepData[currentStepIndex],
58
+ descricao: newData.label,
59
+ referencia: newData.value,
60
+ jr_tipo_atividade_id: newData.key
61
+ };
62
+ const newSteps = stepData.map((item, index) => index === currentStepIndex ? updatedStep : item);
63
+ setStepData(newSteps);
64
+ if (onChangeActivity) {
65
+ onChangeActivity(updatedStep);
66
+ }
67
+ }
68
+ setIsModalVisible(false);
69
+ setCurrentStepIndex(null);
70
+ };
47
71
 
48
- // pegando o valor para saber se atividade ta ou não sincronizada
49
- const isSynced = history?.sincronizado === true;
50
- const canEdit = isFirst && isEditableType && isSynced;
51
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
52
- testID: "step-indicator",
53
- activeOpacity: 0.7,
54
- style: (0, _styles.styles)({}).containerIndicator,
55
- disabled: !canEdit,
56
- onPress: () => handleOnPressActivitie(history),
57
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
72
+ // render item padrão do step indicator
73
+ const renderItem = ({
74
+ item: history,
75
+ index
76
+ }) => {
77
+ const isFirst = index === 0;
78
+ const isEditableType = history.tipo === "descanso";
79
+ const isSynced = history?.sincronizado === true;
80
+ const canEdit = isFirst && isEditableType && isSynced;
81
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
82
+ testID: "step-indicator",
83
+ activeOpacity: 0.7,
84
+ style: (0, _styles.styles)({}).containerIndicator,
85
+ disabled: !canEdit,
86
+ onPress: () => handleOnPressActivitie(history, index),
87
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
88
+ style: (0, _styles.styles)({
89
+ sincronizado: history.sincronizado
90
+ }).containerBall,
91
+ children: [stepData.length > 1 && index < stepData.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
92
+ style: {
93
+ width: 2,
94
+ height: 84,
95
+ marginTop: 116,
96
+ position: "relative",
97
+ backgroundColor: history.sincronizado ? _theme.theme.colors.blue[500] : _theme.theme.colors.orange[150]
98
+ }
99
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
58
100
  style: (0, _styles.styles)({
59
- sincronizado: history.sincronizado
60
- }).containerBall,
61
- children: [data?.length > 1 && index < data?.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
62
- style: {
63
- width: 2,
64
- height: 84,
65
- marginTop: 116,
66
- position: "relative",
67
- backgroundColor: history.sincronizado ? _theme.theme.colors.blue[500] : _theme.theme.colors.orange[150]
68
- }
69
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
70
- style: (0, _styles.styles)({
71
- titleNumberColor
72
- }).titleNumber,
73
- children: data?.length - index
74
- })]
75
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
76
- style: (0, _styles.styles)({}).containerMain,
77
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
78
- style: (0, _styles.styles)({
79
- titleColor
80
- }).title,
81
- children: history?.descricao
82
- }), history?.data_inicio && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
83
- style: (0, _styles.styles)({
84
- textColorDescription
85
- }).titleDescription,
86
- children: `Inicio: ${history.data_inicio} ás ${history.data_fim}`
87
- }), history.duracao_segundos && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
88
- style: (0, _styles.styles)({
89
- textColorDescription
90
- }).titleDescription,
91
- children: ["Dura\xE7\xE3o: ", (0, _index2.formHoursMinute)(history?.duracao_segundos)]
92
- })]
101
+ titleNumberColor
102
+ }).titleNumber,
103
+ children: stepData.length - index
93
104
  })]
94
- }, history.id);
95
- })
105
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
106
+ style: (0, _styles.styles)({}).containerMain,
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
108
+ style: (0, _styles.styles)({
109
+ titleColor
110
+ }).title,
111
+ children: history?.descricao
112
+ }), history?.data_inicio && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
113
+ style: (0, _styles.styles)({
114
+ textColorDescription
115
+ }).titleDescription,
116
+ children: `Inicio: ${history.data_inicio} ás ${history.data_fim}`
117
+ }), history.duracao_segundos && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
118
+ style: (0, _styles.styles)({
119
+ textColorDescription
120
+ }).titleDescription,
121
+ children: ["Dura\xE7\xE3o: ", (0, _index3.formHoursMinute)(history?.duracao_segundos)]
122
+ })]
123
+ })]
124
+ });
125
+ };
126
+
127
+ // Expor funções para o pai via forwardRef
128
+ (0, _react.useImperativeHandle)(ref, () => ({
129
+ scrollToIndex: index => {
130
+ flatListRef.current?.scrollToIndex({
131
+ index,
132
+ animated: true
133
+ });
134
+ },
135
+ openModalAt: index => {
136
+ if (stepData[index]) {
137
+ setCurrentStepIndex(index);
138
+ setIsModalVisible(true);
139
+ }
140
+ },
141
+ resetSteps: newData => {
142
+ setStepData(newData);
143
+ }
144
+ }));
145
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
146
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.FlatList, {
147
+ ref: flatListRef,
148
+ data: stepData,
149
+ renderItem: renderItem,
150
+ keyExtractor: (item, index) => String(item?.id ?? String(index)),
151
+ showsVerticalScrollIndicator: false
152
+ }), isModalVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ModalChangeActivity, {
153
+ visible: isModalVisible,
154
+ modalConfirm: handleConfirmModal,
155
+ descricao: "",
156
+ onClose: () => setIsModalVisible(false)
157
+ })]
96
158
  });
97
159
  };
98
160
  const StepCustom = () => {
@@ -127,7 +189,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
127
189
  alignItems: "center",
128
190
  justifyContent: "center"
129
191
  },
130
- children: descricao && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
192
+ children: descricao && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Icons, {
131
193
  icon: descricao
132
194
  })
133
195
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
@@ -169,10 +231,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
169
231
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
170
232
  children: handleRenderComponent(type)
171
233
  });
172
- };
234
+ });
235
+ StepIndicator.displayName = "StepIndicator";
173
236
 
174
237
  /**
175
- * EXPORTS
238
+ * Componente StepIndicator para a interação da ui.
176
239
  */
177
- var _default = exports.default = StepIndicator;
240
+ var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(StepIndicator);
178
241
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_getIconByStatus","_index2","_styles","_theme","_jsxRuntime","e","__esModule","default","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","handleOnPressActivitie","StepDefault","jsx","Fragment","children","length","map","history","index","isFirst","isEditableType","tipo","isSynced","sincronizado","canEdit","jsxs","TouchableOpacity","testID","activeOpacity","style","styles","containerIndicator","disabled","onPress","View","containerBall","width","height","marginTop","position","backgroundColor","theme","colors","blue","orange","Text","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","id","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","_default","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/step-indicator/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAGA,IAAAG,gBAAA,GAAAH,OAAA;AAGA,IAAAI,OAAA,GAAAJ,OAAA;AAMA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAiD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AApBjD;AACA;AACA;;AAIA;;AAGA;;AAGA;;AAGA;;AAGA;;AAIA;AACA;AACA,GAEA,MAAMG,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAAI;EACJC,oBAAoB;EACpBC,UAAU;EACVC,gBAAgB;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F,CAAC;EAED,oBAAO,IAAAlC,WAAA,CAAAY,GAAA,EAAAZ,WAAA,CAAAa,QAAA;IAAAC,QAAA,EAAG8D,qBAAqB,CAACtE,IAAK;EAAC,CAAG,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AAFA,IAAAwE,QAAA,GAAAC,OAAA,CAAA5E,OAAA,GAGeC,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_getIconByStatus","_index3","_styles","_theme","_asBaseComponent","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StepIndicator","forwardRef","data","type","textColorDescription","titleColor","titleNumberColor","onChangeActivity","ref","StepDefault","isModalVisible","setIsModalVisible","useState","currentStepIndex","setCurrentStepIndex","stepData","setStepData","flatListRef","useRef","handleOnPressActivitie","stepItem","index","desc","descricao","toLowerCase","isDescanso","includes","replace","sincronizado","handleConfirmModal","newData","updatedStep","label","referencia","value","jr_tipo_atividade_id","key","newSteps","map","item","renderItem","history","isFirst","isEditableType","tipo","isSynced","canEdit","jsxs","TouchableOpacity","testID","activeOpacity","style","styles","containerIndicator","disabled","onPress","children","View","containerBall","length","jsx","width","height","marginTop","position","backgroundColor","theme","colors","blue","orange","Text","titleNumber","containerMain","title","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","useImperativeHandle","scrollToIndex","current","animated","openModalAt","resetSteps","Fragment","FlatList","keyExtractor","String","id","showsVerticalScrollIndicator","ModalChangeActivity","visible","modalConfirm","onClose","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/step-indicator/index.tsx"],"mappings":";;;;;;AAAA,IAAAA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AAA,CAAAgF,GAAA,EAACnD,WAAW,IAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAO,IAAA7B,WAAA,CAAAgF,GAAA,EAACmC,UAAU,IAAE,CAAC;MACvB;QACE,oBAAO,IAAAnH,WAAA,CAAAgF,GAAA,EAACxF,YAAA,CAAAqF,IAAI,IAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAO,IAAA7E,WAAA,CAAAgF,GAAA,EAAAhF,WAAA,CAAAyG,QAAA;IAAA7B,QAAA,EAAG2D,qBAAqB,CAAChH,IAAK;EAAC,CAAG,CAAC;AAC5C,CACF,CAAC;AAEDH,aAAa,CAACqH,WAAW,GAAG,eAAe;;AAE3C;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAhI,OAAA,GAGe,IAAAiI,gCAAe,EAACxH,aAAa,CAAC","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * CONSTANTS
5
+ */
6
+ const optionsActivities = [{
7
+ label: "Selecione atividade",
8
+ value: "none",
9
+ key: 0
10
+ }, {
11
+ label: "Descanso",
12
+ value: "descanso",
13
+ key: 9
14
+ }, {
15
+ label: "Repouso Noturno",
16
+ value: "repouso_noturno",
17
+ key: 6
18
+ }, {
19
+ label: "Refeição",
20
+ value: "refeição",
21
+ key: 7
22
+ }, {
23
+ label: "Repouso Semanal",
24
+ value: "repouso_semanal",
25
+ key: 5
26
+ }];
27
+
28
+ /**
29
+ * EXPORTS
30
+ */
31
+ export { optionsActivities };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["optionsActivities","label","value","key"],"sourceRoot":"..\\..\\..\\..\\..\\..\\src","sources":["components/modals/modal-change-activitie-history/helpers/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA,MAAMA,iBAAiB,GAAG,CACxB;EAAEC,KAAK,EAAE,qBAAqB;EAAEC,KAAK,EAAE,MAAM;EAAEC,GAAG,EAAE;AAAE,CAAC,EACvD;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE,UAAU;EAAEC,GAAG,EAAE;AAAE,CAAC,EAChD;EAAEF,KAAK,EAAE,iBAAiB;EAAEC,KAAK,EAAE,iBAAiB;EAAEC,GAAG,EAAE;AAAE,CAAC,EAC9D;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE,UAAU;EAAEC,GAAG,EAAE;AAAE,CAAC,EAChD;EAAEF,KAAK,EAAE,iBAAiB;EAAEC,KAAK,EAAE,iBAAiB;EAAEC,GAAG,EAAE;AAAE,CAAC,CAC/D;;AAED;AACA;AACA;AACA,SAASH,iBAAiB","ignoreList":[]}