@licklist/design 0.66.3 → 0.66.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ interface ReportField {
7
7
  key: string;
8
8
  title: string;
9
9
  }
10
- type ReportRunnerModalProps = {
10
+ export type ReportRunnerModalProps = {
11
11
  reportId: Report["id"] | null;
12
12
  show: boolean;
13
13
  useShowReportFields: (reportType?: ReportType) => CachedHttpQueryResponse<ReportField[], unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAG9F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC3B,CAAC;AASF,eAAO,MAAM,iBAAiB,0FAS3B,sBAAsB,gBAmKxB,CAAC"}
1
+ {"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAG9F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC3B,CAAC;AASF,eAAO,MAAM,iBAAiB,0FAS3B,sBAAsB,gBA6KxB,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),r=require("react"),a=(e=r)&&"object"==typeof e&&"default"in e?e.default:e;require("../../static/loader/LoaderIndicator.js");var o=require("../../static/loader/BlockLoader.js"),n=require("react-i18next"),i=require("react-bootstrap"),l=require("react-hook-form");require("../../static/loader/ButtonLoader.js"),require("../../static/loader/SnippetLoader.js"),require("../../static/loader/PaymentLoader.js");var d,s=require("lodash"),c=require("@licklist/core/dist/DataMapper/Report"),u=require("@licklist/plugins/dist/utils/report"),m=((d={})[c.PERIOD_BY_CREATION_DATE]="Design:reportPeriodByCreationDate",d[c.PERIOD_BY_BOOKING_DATE]="Design:reportPeriodByBookingDate",d);exports.ReportRunnerModal=function(e){var r,d,p=e.reportId,v=e.show,E=e.onHide,g=e.useShowReportFields,_=e.reports,f=e.generate,y=e.download,F=e.onEdit,b=n.useTranslation(["App","Design"]).t,D=null==_?void 0:_.find((function(e){return e.id===p})),q=g(null==D?void 0:D.type),B=q.data,k=void 0===B?[]:B,I=q.isLoading,h=l.useForm({mode:"onChange"}),C=h.handleSubmit,w=h.register,L=h.formState.errors,R=h.reset,T=(0,h.watch)("dateFrom"),N=C((function(e){y.execute(t.__assign(t.__assign({},e),{reportId:p,type:null==D?void 0:D.type}))})),O=C((function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var r;return t.__generator(this,(function(a){switch(a.label){case 0:return[4,f.execute(t.__assign(t.__assign({},e),{reportId:p}))];case 1:return r=a.sent(),D&&r&&!f.isError?(u.openOnlineViewer({type:D.type,dateFrom:e.dateFrom,dateTo:e.dateTo,data:r}),[2]):[2]}}))}))})),P=function(){R(),E()},j=f.isLoading||y.isLoading||I;return a.createElement(i.Modal,{show:v,onHide:P,className:"report-runner-modal",centered:!0},a.createElement("header",null,a.createElement("h5",null,b("generateReport")),a.createElement(i.Button,{variant:"","data-testid":"cancel-button",onClick:P},b("cancel"))),j&&a.createElement(o.BlockLoader,null),!j&&a.createElement("div",null,a.createElement("div",{className:"report-type-label"},s.capitalize(null==D?void 0:D.type)),a.createElement("div",null,null==D?void 0:D.name),a.createElement("div",{className:"data-fields"},null==D?void 0:D.reportFieldValues.map((function(e){var t=null==k?void 0:k.find((function(t){return t.id===e.reportFieldId}));return t?a.createElement("span",{key:e.id},t.title):null}))),a.createElement(i.Button,{className:"edit-button",type:"button",variant:"","data-testid":"edit-button",onClick:F},b("Design:edit")),a.createElement("form",{noValidate:!0},a.createElement("div",{className:"period-by"},c.PERIOD_BY_TYPES.map((function(e){var r;return a.createElement("div",{key:e},a.createElement(i.Form.Group,null,a.createElement(i.Form.Check,t.__assign({inline:!0,isInvalid:!!L.periodBy,label:b(m[e]),type:"radio",id:e,value:e},w("periodBy"))),a.createElement(i.Form.Control.Feedback,{type:"invalid"},null===(r=L.periodBy)||void 0===r?void 0:r.message)))}))),a.createElement("div",{className:"controls"},a.createElement(i.Form.Group,{controlId:"from-input"},a.createElement(i.Form.Label,null,b("Design:from")),a.createElement(i.Form.Control,t.__assign({type:"datetime-local","data-testid":"date-from-input",isInvalid:!!L.dateFrom},w("dateFrom",{required:{value:!0,message:"".concat(b("Validation:fieldRequired",{attribute:b("Design:to")}))}}))),a.createElement(i.Form.Control.Feedback,{type:"invalid"},null===(r=L.dateFrom)||void 0===r?void 0:r.message)),a.createElement(i.Form.Group,{controlId:"to-input"},a.createElement(i.Form.Label,null,b("Design:to")),a.createElement(i.Form.Control,t.__assign({type:"datetime-local","data-testid":"date-to-input",isInvalid:!!L.dateTo},w("dateTo",{required:"".concat(b("Validation:fieldRequired",{attribute:b("Design:to")})),validate:function(e){return!T||(e>T||b("toDateAfterFrom"))}}))),a.createElement(i.Form.Control.Feedback,{type:"invalid"},null===(d=L.dateTo)||void 0===d?void 0:d.message))),a.createElement("div",{className:"controls"},a.createElement(i.Button,{"data-testid":"download-button",onClick:N},b("generateDownload")),a.createElement(i.Button,{"data-testid":"view-button",onClick:O},b("generateView"))))))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),r=require("react"),a=(e=r)&&"object"==typeof e&&"default"in e?e.default:e;require("../../static/loader/LoaderIndicator.js");var o=require("../../static/loader/BlockLoader.js"),i=require("react-i18next"),n=require("react-bootstrap"),l=require("react-hook-form");require("../../static/loader/ButtonLoader.js"),require("../../static/loader/SnippetLoader.js"),require("../../static/loader/PaymentLoader.js");var d,s=require("lodash"),c=require("@licklist/core/dist/DataMapper/Report"),u=require("@licklist/plugins/dist/utils/report"),m=((d={})[c.PERIOD_BY_CREATION_DATE]="Design:reportPeriodByCreationDate",d[c.PERIOD_BY_BOOKING_DATE]="Design:reportPeriodByBookingDate",d);exports.ReportRunnerModal=function(e){var r,d,p,v,E,g=e.reportId,f=e.show,_=e.onHide,y=e.useShowReportFields,b=e.reports,F=e.generate,q=e.download,D=e.onEdit,B=i.useTranslation(["App","Design"]).t,k=null==b?void 0:b.find((function(e){return e.id===g})),I=y(null==k?void 0:k.type),h=I.data,w=void 0===h?[]:h,C=I.isLoading,R=l.useForm({mode:"onChange"}),L=R.handleSubmit,N=R.register,T=R.formState.errors,j=R.reset,O=(0,R.watch)("dateFrom"),P=L((function(e){q.execute(t.__assign(t.__assign({},e),{reportId:g,type:null==k?void 0:k.type}))})),V=L((function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var r;return t.__generator(this,(function(a){switch(a.label){case 0:return[4,F.execute(t.__assign(t.__assign({},e),{reportId:g}))];case 1:return r=a.sent(),k&&r&&!F.isError?(u.openOnlineViewer({type:k.type,dateFrom:e.dateFrom,dateTo:e.dateTo,data:r}),[2]):[2]}}))}))})),x=function(){j(),_()},A=F.isLoading||q.isLoading||C;return a.createElement(n.Modal,{show:f,onHide:x,className:"report-runner-modal",centered:!0},a.createElement("header",null,a.createElement("h5",null,B("generateReport")),a.createElement(n.Button,{variant:"","data-testid":"cancel-button",onClick:x},B("cancel"))),A&&a.createElement(o.BlockLoader,null),!A&&a.createElement("div",null,a.createElement("div",{className:"report-type-label"},s.capitalize(null==k?void 0:k.type)),a.createElement("div",null,null==k?void 0:k.name),a.createElement("div",{className:"data-fields"},null==k?void 0:k.reportFieldValues.map((function(e){var t=null==w?void 0:w.find((function(t){return t.id===e.reportFieldId}));return t?a.createElement("span",{key:e.id},t.title):null}))),a.createElement(n.Button,{className:"edit-button",type:"button",variant:"","data-testid":"edit-button",onClick:D},B("Design:edit")),a.createElement("form",{noValidate:!0},a.createElement("div",{className:"pl-1 ".concat((null===(r=T.periodBy)||void 0===r?void 0:r.message)&&"border-danger border rounded")},a.createElement("div",{className:"period-by"},c.PERIOD_BY_TYPES.map((function(e){return a.createElement("div",{key:e},a.createElement(n.Form.Check,t.__assign({inline:!0,label:B(m[e]),type:"radio",id:e,required:!0,value:e},N("periodBy",{required:"".concat(B("Validation:fieldRequired",{attribute:B("Design:period")}))}))))}))),(null===(d=T.periodBy)||void 0===d?void 0:d.message)&&a.createElement("div",{className:"iframe-event__message-error justify-content-start mb-1"},null===(p=T.periodBy)||void 0===p?void 0:p.message)),a.createElement("div",{className:"controls mt-4"},a.createElement(n.Form.Group,{controlId:"from-input"},a.createElement(n.Form.Label,null,B("Design:from")),a.createElement(n.Form.Control,t.__assign({type:"datetime-local","data-testid":"date-from-input",isInvalid:!!T.dateFrom},N("dateFrom",{required:{value:!0,message:"".concat(B("Validation:fieldRequired",{attribute:B("Design:from")}))}}))),a.createElement(n.Form.Control.Feedback,{type:"invalid"},null===(v=T.dateFrom)||void 0===v?void 0:v.message)),a.createElement(n.Form.Group,{controlId:"to-input"},a.createElement(n.Form.Label,null,B("Design:to")),a.createElement(n.Form.Control,t.__assign({type:"datetime-local","data-testid":"date-to-input",isInvalid:!!T.dateTo},N("dateTo",{required:"".concat(B("Validation:fieldRequired",{attribute:B("Design:to")})),validate:function(e){return!O||(e>O||B("toDateAfterFrom"))}}))),a.createElement(n.Form.Control.Feedback,{type:"invalid"},null===(E=T.dateTo)||void 0===E?void 0:E.message))),a.createElement("div",{className:"controls"},a.createElement(n.Button,{"data-testid":"download-button",onClick:P},B("generateDownload")),a.createElement(n.Button,{"data-testid":"view-button",onClick:V},B("generateView"))))))};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.66.3",
3
+ "version": "0.66.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -0,0 +1,307 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import React from "react";
3
+ import { Card } from "react-bootstrap";
4
+ import { ReportRunnerModal, ReportRunnerModalProps } from "./ReportRunnerModal";
5
+
6
+ export default {
7
+ title: "Report/ReportRunnerModal",
8
+ component: ReportRunnerModal,
9
+ } as Meta;
10
+
11
+ export const Default: Story<ReportRunnerModalProps> = (args) => (
12
+ <Card style={{ maxWidth: "max-content" }}>
13
+ <Card.Body>
14
+ <ReportRunnerModal {...args} />
15
+ </Card.Body>
16
+ </Card>
17
+ );
18
+
19
+ Default.args = {
20
+ reportId: 47,
21
+ show: true,
22
+ generate: { isLoading: false },
23
+ download: { isLoading: false },
24
+ useShowReportFields: (type) => ({ data: [], isLoading: false }),
25
+ onHide: () => {},
26
+ onEdit: () => {},
27
+ reports: [
28
+ {
29
+ id: 47,
30
+ providerId: null,
31
+ type: "payments",
32
+ name: "Test 1",
33
+ createdAt: "2024-04-26 08:16:59",
34
+ updatedAt: "2024-04-26 08:16:59",
35
+ deletedAt: null,
36
+ reportFieldValues: [
37
+ {
38
+ id: 580,
39
+ reportId: 47,
40
+ reportFieldId: 16,
41
+ },
42
+ {
43
+ id: 581,
44
+ reportId: 47,
45
+ reportFieldId: 17,
46
+ },
47
+ {
48
+ id: 582,
49
+ reportId: 47,
50
+ reportFieldId: 18,
51
+ },
52
+ {
53
+ id: 583,
54
+ reportId: 47,
55
+ reportFieldId: 19,
56
+ },
57
+ {
58
+ id: 584,
59
+ reportId: 47,
60
+ reportFieldId: 20,
61
+ },
62
+ {
63
+ id: 585,
64
+ reportId: 47,
65
+ reportFieldId: 21,
66
+ },
67
+ {
68
+ id: 586,
69
+ reportId: 47,
70
+ reportFieldId: 22,
71
+ },
72
+ {
73
+ id: 587,
74
+ reportId: 47,
75
+ reportFieldId: 23,
76
+ },
77
+ {
78
+ id: 588,
79
+ reportId: 47,
80
+ reportFieldId: 24,
81
+ },
82
+ {
83
+ id: 589,
84
+ reportId: 47,
85
+ reportFieldId: 26,
86
+ },
87
+ {
88
+ id: 590,
89
+ reportId: 47,
90
+ reportFieldId: 27,
91
+ },
92
+ {
93
+ id: 591,
94
+ reportId: 47,
95
+ reportFieldId: 28,
96
+ },
97
+ {
98
+ id: 592,
99
+ reportId: 47,
100
+ reportFieldId: 40,
101
+ },
102
+ {
103
+ id: 593,
104
+ reportId: 47,
105
+ reportFieldId: 41,
106
+ },
107
+ {
108
+ id: 594,
109
+ reportId: 47,
110
+ reportFieldId: 42,
111
+ },
112
+ ],
113
+ },
114
+ {
115
+ id: 52,
116
+ providerId: null,
117
+ type: "bookings",
118
+ name: "new report",
119
+ createdAt: "2024-04-29 16:05:51",
120
+ updatedAt: "2024-04-29 16:08:39",
121
+ deletedAt: null,
122
+ reportFieldValues: [
123
+ {
124
+ id: 635,
125
+ reportId: 52,
126
+ reportFieldId: 1,
127
+ },
128
+ {
129
+ id: 636,
130
+ reportId: 52,
131
+ reportFieldId: 2,
132
+ },
133
+ {
134
+ id: 637,
135
+ reportId: 52,
136
+ reportFieldId: 3,
137
+ },
138
+ {
139
+ id: 638,
140
+ reportId: 52,
141
+ reportFieldId: 4,
142
+ },
143
+ {
144
+ id: 639,
145
+ reportId: 52,
146
+ reportFieldId: 5,
147
+ },
148
+ {
149
+ id: 640,
150
+ reportId: 52,
151
+ reportFieldId: 6,
152
+ },
153
+ {
154
+ id: 641,
155
+ reportId: 52,
156
+ reportFieldId: 7,
157
+ },
158
+ {
159
+ id: 642,
160
+ reportId: 52,
161
+ reportFieldId: 8,
162
+ },
163
+ {
164
+ id: 643,
165
+ reportId: 52,
166
+ reportFieldId: 9,
167
+ },
168
+ {
169
+ id: 644,
170
+ reportId: 52,
171
+ reportFieldId: 10,
172
+ },
173
+ {
174
+ id: 645,
175
+ reportId: 52,
176
+ reportFieldId: 11,
177
+ },
178
+ {
179
+ id: 646,
180
+ reportId: 52,
181
+ reportFieldId: 12,
182
+ },
183
+ {
184
+ id: 647,
185
+ reportId: 52,
186
+ reportFieldId: 13,
187
+ },
188
+ {
189
+ id: 648,
190
+ reportId: 52,
191
+ reportFieldId: 14,
192
+ },
193
+ {
194
+ id: 649,
195
+ reportId: 52,
196
+ reportFieldId: 15,
197
+ },
198
+ {
199
+ id: 650,
200
+ reportId: 52,
201
+ reportFieldId: 36,
202
+ },
203
+ {
204
+ id: 651,
205
+ reportId: 52,
206
+ reportFieldId: 37,
207
+ },
208
+ {
209
+ id: 652,
210
+ reportId: 52,
211
+ reportFieldId: 38,
212
+ },
213
+ {
214
+ id: 653,
215
+ reportId: 52,
216
+ reportFieldId: 39,
217
+ },
218
+ {
219
+ id: 654,
220
+ reportId: 52,
221
+ reportFieldId: 47,
222
+ },
223
+ {
224
+ id: 655,
225
+ reportId: 52,
226
+ reportFieldId: 48,
227
+ },
228
+ ],
229
+ },
230
+ {
231
+ id: 53,
232
+ providerId: null,
233
+ type: "tickets",
234
+ name: "tickets",
235
+ createdAt: "2024-04-29 16:12:36",
236
+ updatedAt: "2024-04-29 16:12:36",
237
+ deletedAt: null,
238
+ reportFieldValues: [
239
+ {
240
+ id: 656,
241
+ reportId: 53,
242
+ reportFieldId: 29,
243
+ },
244
+ {
245
+ id: 657,
246
+ reportId: 53,
247
+ reportFieldId: 30,
248
+ },
249
+ {
250
+ id: 658,
251
+ reportId: 53,
252
+ reportFieldId: 31,
253
+ },
254
+ {
255
+ id: 659,
256
+ reportId: 53,
257
+ reportFieldId: 32,
258
+ },
259
+ {
260
+ id: 660,
261
+ reportId: 53,
262
+ reportFieldId: 33,
263
+ },
264
+ {
265
+ id: 661,
266
+ reportId: 53,
267
+ reportFieldId: 34,
268
+ },
269
+ {
270
+ id: 662,
271
+ reportId: 53,
272
+ reportFieldId: 35,
273
+ },
274
+ {
275
+ id: 663,
276
+ reportId: 53,
277
+ reportFieldId: 43,
278
+ },
279
+ {
280
+ id: 664,
281
+ reportId: 53,
282
+ reportFieldId: 44,
283
+ },
284
+ {
285
+ id: 665,
286
+ reportId: 53,
287
+ reportFieldId: 45,
288
+ },
289
+ {
290
+ id: 666,
291
+ reportId: 53,
292
+ reportFieldId: 46,
293
+ },
294
+ {
295
+ id: 667,
296
+ reportId: 53,
297
+ reportFieldId: 51,
298
+ },
299
+ {
300
+ id: 668,
301
+ reportId: 53,
302
+ reportFieldId: 52,
303
+ },
304
+ ],
305
+ },
306
+ ],
307
+ };
@@ -23,7 +23,7 @@ interface ReportField {
23
23
  title: string;
24
24
  }
25
25
 
26
- type ReportRunnerModalProps = {
26
+ export type ReportRunnerModalProps = {
27
27
  reportId: Report["id"] | null;
28
28
  show: boolean;
29
29
  useShowReportFields: (
@@ -136,28 +136,38 @@ export const ReportRunnerModal = ({
136
136
  </Button>
137
137
 
138
138
  <form noValidate>
139
- <div className="period-by">
140
- {PERIOD_BY_TYPES.map((type) => (
141
- <div key={type}>
142
- <Form.Group>
139
+ <div
140
+ className={`pl-1 ${
141
+ errors.periodBy?.message && "border-danger border rounded"
142
+ }`}
143
+ >
144
+ <div className="period-by">
145
+ {PERIOD_BY_TYPES.map((type) => (
146
+ <div key={type}>
143
147
  <Form.Check
144
148
  inline
145
- isInvalid={!!errors.periodBy}
146
149
  label={t(labelByPeriodType[type])}
147
150
  type="radio"
148
151
  id={type}
152
+ required
149
153
  value={type}
150
- {...register("periodBy")}
154
+ {...register("periodBy", {
155
+ required: `${t("Validation:fieldRequired", {
156
+ attribute: t("Design:period"),
157
+ })}`,
158
+ })}
151
159
  />
152
- <Form.Control.Feedback type="invalid">
153
- {errors.periodBy?.message}
154
- </Form.Control.Feedback>
155
- </Form.Group>
160
+ </div>
161
+ ))}
162
+ </div>
163
+ {errors.periodBy?.message && (
164
+ <div className="iframe-event__message-error justify-content-start mb-1">
165
+ {errors.periodBy?.message}
156
166
  </div>
157
- ))}
167
+ )}
158
168
  </div>
159
169
 
160
- <div className="controls">
170
+ <div className="controls mt-4">
161
171
  <Form.Group controlId="from-input">
162
172
  <Form.Label>{t("Design:from")}</Form.Label>
163
173
  <Form.Control
@@ -168,7 +178,7 @@ export const ReportRunnerModal = ({
168
178
  required: {
169
179
  value: true,
170
180
  message: `${t("Validation:fieldRequired", {
171
- attribute: t("Design:to"),
181
+ attribute: t("Design:from"),
172
182
  })}`,
173
183
  },
174
184
  })}