@licklist/design 0.58.2 → 0.58.3-dev.1

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 (41) hide show
  1. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -1
  3. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  4. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  5. package/dist/iframe/event/event-card/IframeEventCard.d.ts +2 -1
  6. package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
  7. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  8. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +2 -2
  9. package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
  10. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
  11. package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
  12. package/dist/product-set/control/ProductSetControl.d.ts +1 -1
  13. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  14. package/dist/product-set/form/ProductSetForm.d.ts +1 -1
  15. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  16. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  17. package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -1
  18. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  19. package/dist/styles/iframe-events/Card.scss +19 -6
  20. package/dist/styles/iframe-page/Page.scss +1 -0
  21. package/dist/styles/iframe-page/PageBody.scss +4 -3
  22. package/dist/styles/report/ReportRunnerModal.scss +88 -82
  23. package/dist/styles/sales/BookingResults.scss +1 -1
  24. package/package.json +3 -3
  25. package/src/auth/Login/LoginComponent.tsx +9 -1
  26. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +0 -1
  27. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +14 -14
  28. package/src/iframe/event/event-card/IframeEventCard.stories.tsx +1 -0
  29. package/src/iframe/event/event-card/IframeEventCard.tsx +3 -0
  30. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +5 -3
  31. package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +3 -1
  32. package/src/product-set/control/ProductSetControl.tsx +1 -1
  33. package/src/product-set/form/ProductSetForm.tsx +1 -1
  34. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +35 -4
  35. package/src/sales/booking/results/components/ResultCard.tsx +0 -3
  36. package/src/static/switch/BooleanSwitch.tsx +1 -1
  37. package/src/styles/iframe-events/Card.scss +19 -6
  38. package/src/styles/iframe-page/Page.scss +1 -0
  39. package/src/styles/iframe-page/PageBody.scss +4 -3
  40. package/src/styles/report/ReportRunnerModal.scss +88 -82
  41. package/src/styles/sales/BookingResults.scss +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":";AAuBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,gBA0GrB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":";AAuBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,gBAkHrB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),i=e(r),n=require("react-router-dom"),o=e(require("@licklist/plugins/dist/context/user/hooks/useUser")),s=e(require("@licklist/plugins/dist/services/Route/RouteService")),a=e(require("@licklist/plugins/dist/context/user/hooks/useAuth")),c=require("../../static/loader/LoaderIndicator.js"),l=require("react-i18next"),u=require("../Router.js"),d=e(require("react-bootstrap/Row")),m=e(require("react-bootstrap/Col")),g=e(require("@licklist/plugins/dist/context/app/RequestContext")),p=e(require("@licklist/plugins/dist/hooks/Api/useUserApi")),f=e(require("@licklist/plugins/dist/context/app/hooks/useNotification")),v=e(require("@licklist/plugins/dist/context/user/hooks/useInvite")),q=require("../Social/SocialFormComponent.js"),h=require("./LoginFormComponent.js"),k=require("../../static/FormCard.js"),E=require("../../logo/Logo.js"),_=require("../../assets/logo/bookedit.svg.js");exports.LoginComponent=function(e){var x=e.hideSignUpLink,L=void 0!==x&&x,S=e.showSocialLinks,j=void 0!==S&&S,b=l.useTranslation(["Notification","User"]).t,C=r.useContext(g),N=f(),F=a(),R=o(),w=v(),y=t.__read(r.useState(!1),2),I=y[0],T=y[1],U=p(C),A=function(e){N.danger({title:"Error",message:e.message})};return i.createElement(u.Router,null,i.createElement(d,{className:"justify-content-center"},i.createElement(m,{xs:!0,sm:12,md:7,lg:6,xl:5,className:"align-self-center"},i.createElement(i.Fragment,null,i.createElement("h1",{className:"text-center"},b("User:loginTitle")),i.createElement("div",{className:"login d-flex pb-4 justify-content-center"},i.createElement(E.default,{logo:i.createElement(_.ReactComponent,null)})),!L&&i.createElement("h6",{className:"text-center"},i.createElement(l.Trans,{t:b,i18nKey:"loginPromo"},"Don't have account? ",i.createElement(n.Link,{to:"/register"},"Sign up"),".")),i.createElement(k.default,null,j&&i.createElement(i.Fragment,null,i.createElement(q.SocialFormComponent,{isLoading:I,setIsLoading:T}),i.createElement("hr",{className:"mb-2"})),i.createElement(h.LoginFormComponent,{isLoading:I,setIsLoading:T,onSubmit:function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var r,i;return t.__generator(this,(function(n){switch(n.label){case 0:return[4,(o=e,t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,U.login(o).catch(A)]}))})))];case 1:return(r=n.sent())?(function(e){F.setSecrets(e)}(r),U.setAuthorizationToken(r.access_token),[4,t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,U.profile().catch(A)]}))}))]):[2];case 2:return(i=n.sent())?(R.login(i.data),w.clearInvitation(),N.success({title:"Success",message:b("Notification:loggedSuccessfully")}),s.redirectTo("/"),[2]):[2]}var o}))}))},invitation:w.invitation}),i.createElement(c.LoaderIndicator,{isLoaded:!I}))))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),i=e(r),n=require("react-router-dom"),o=e(require("@licklist/plugins/dist/context/user/hooks/useUser")),s=e(require("@licklist/plugins/dist/services/Route/RouteService")),a=e(require("@licklist/plugins/dist/context/user/hooks/useAuth")),c=require("../../static/loader/LoaderIndicator.js"),l=require("react-i18next"),u=require("../Router.js"),d=e(require("react-bootstrap/Row")),m=e(require("react-bootstrap/Col")),g=e(require("@licklist/plugins/dist/context/app/RequestContext")),f=e(require("@licklist/plugins/dist/hooks/Api/useUserApi")),p=e(require("@licklist/plugins/dist/context/app/hooks/useNotification")),v=e(require("@licklist/plugins/dist/context/user/hooks/useInvite")),q=require("../Social/SocialFormComponent.js"),h=require("./LoginFormComponent.js"),E=require("../../static/FormCard.js"),k=require("../../logo/Logo.js"),_=require("../../assets/logo/bookedit.svg.js");exports.LoginComponent=function(e){var x=e.hideSignUpLink,L=void 0!==x&&x,S=e.showSocialLinks,j=void 0!==S&&S,b=l.useTranslation(["Notification","User"]).t,C=r.useContext(g),N=p(),F=a(),R=o(),w=v(),y=t.__read(r.useState(!1),2),I=y[0],T=y[1],U=f(C),A=function(e){N.danger({title:"Error",message:e.message})};return r.useEffect((function(){R.profile&&F.secrets&&s.redirectTo("/")}),[R.profile,F.secrets]),i.createElement(u.Router,null,i.createElement(d,{className:"justify-content-center"},i.createElement(m,{xs:!0,sm:12,md:7,lg:6,xl:5,className:"align-self-center"},i.createElement(i.Fragment,null,i.createElement("h1",{className:"text-center"},b("User:loginTitle")),i.createElement("div",{className:"login d-flex pb-4 justify-content-center"},i.createElement(k.default,{logo:i.createElement(_.ReactComponent,null)})),!L&&i.createElement("h6",{className:"text-center"},i.createElement(l.Trans,{t:b,i18nKey:"loginPromo"},"Don't have account? ",i.createElement(n.Link,{to:"/register"},"Sign up"),".")),i.createElement(E.default,null,j&&i.createElement(i.Fragment,null,i.createElement(q.SocialFormComponent,{isLoading:I,setIsLoading:T}),i.createElement("hr",{className:"mb-2"})),i.createElement(h.LoginFormComponent,{isLoading:I,setIsLoading:T,onSubmit:function(e){return t.__awaiter(void 0,void 0,void 0,(function(){var r,i;return t.__generator(this,(function(n){switch(n.label){case 0:return[4,(o=e,t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,U.login(o).catch(A)]}))})))];case 1:return(r=n.sent())?(function(e){F.setSecrets(e)}(r),U.setAuthorizationToken(r.access_token),[4,t.__awaiter(void 0,void 0,void 0,(function(){return t.__generator(this,(function(e){return[2,U.profile().catch(A)]}))}))]):[2];case 2:return(i=n.sent())?(R.login(i.data),w.clearInvitation(),N.success({title:"Success",message:b("Notification:loggedSuccessfully")}),s.redirectTo("/"),[2]):[2]}var o}))}))},invitation:w.invitation}),i.createElement(c.LoaderIndicator,{isLoaded:!I}))))))};
@@ -1 +1 @@
1
- {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,mBAAmB,iCAG7B,wBAAwB,gBAgH1B,CAAC"}
1
+ {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,mBAAmB,iCAG7B,wBAAwB,gBAgH1B,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),o=require("../../../product-set/utils/index.js");exports.getDefaultValues=function(n,i){var t,d,u,s,r,a,v,p,_,m,c,g;return{id:null!==(t=null==n?void 0:n.id)&&void 0!==t?t:0,name:null!==(d=null==n?void 0:n.name)&&void 0!==d?d:"",type:null!==(u=null==n?void 0:n.type)&&void 0!==u?u:l.DEFAULT_PRODUCT_SET_TYPE,termsAndConditions:null!==(s=null==n?void 0:n.termsAndConditions)&&void 0!==s?s:"",operationalCost:null!==(r=null==n?void 0:n.operationalCost)&&void 0!==r?r:l.DEFAULT_OPERATIONAL_COST_TYPE,relyOnPeopleType:null!==(a=null==n?void 0:n.relyOnPeopleType)&&void 0!==a?a:null,thankYouPageUrl:null!==(v=null==n?void 0:n.thankYouPageUrl)&&void 0!==v?v:"",fieldSetId:null==n?void 0:n.fieldSetId,emailTemplates:(null==n?void 0:n.mailTemplates)&&(null===(p=null==n?void 0:n.mailTemplates)||void 0===p?void 0:p.length)>0?o.getFilteredTemplates(null==n?void 0:n.mailTemplates):void 0,smsTemplates:(null==n?void 0:n.smsTemplates)&&(null===(_=null==n?void 0:n.smsTemplates)||void 0===_?void 0:_.length)>0?o.getFilteredTemplates(null==n?void 0:n.smsTemplates):void 0,steps:null!==(c=null===(m=null==n?void 0:n.steps)||void 0===m?void 0:m.map((function(l){var o,n=l.productCategories,i=e.__rest(l,["productCategories"]);return e.__assign(e.__assign({},i),{productCategories:null==n?void 0:n.map((function(l){var o=l.products,n=e.__rest(l,["products"]);return e.__assign(e.__assign({},n),{products:null==o?void 0:o.map((function(l){var o=l.zoneId,n=l.subProducts,i=e.__rest(l,["zoneId","subProducts"]);return e.__assign(e.__assign({},i),{subProducts:null==n?void 0:n.map((function(l){var o=l.zoneId,n=e.__rest(l,["zoneId"]);return e.__assign(e.__assign({},n),{productCategoryId:void 0,zoneId:o})})),productCategoryId:void 0,zoneId:o})}))})})),venueMapSetId:(null==i?void 0:i.venueMapSet)?null===(o=null==i?void 0:i.venueMapSet)||void 0===o?void 0:o.id:null})})))&&void 0!==c?c:void 0,menuRecurrences:i?[]:null!==(g=null==n?void 0:n.menuRecurrences)&&void 0!==g?g:[]}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),o=require("../../../product-set/utils/index.js");exports.getDefaultValues=function(n,i){var d,t,u,s,r,a,v,p,_,m,c,g;return{id:null!==(d=null==n?void 0:n.id)&&void 0!==d?d:0,name:null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"",type:null!==(u=null==n?void 0:n.type)&&void 0!==u?u:l.DEFAULT_PRODUCT_SET_TYPE,termsAndConditions:null!==(s=null==n?void 0:n.termsAndConditions)&&void 0!==s?s:"",operationalCost:null!==(r=null==n?void 0:n.operationalCost)&&void 0!==r?r:l.DEFAULT_OPERATIONAL_COST_TYPE,relyOnPeopleType:null!==(a=null==n?void 0:n.relyOnPeopleType)&&void 0!==a?a:null,thankYouPageUrl:null!==(v=null==n?void 0:n.thankYouPageUrl)&&void 0!==v?v:"",fieldSetId:null==n?void 0:n.fieldSetId,emailTemplates:(null==n?void 0:n.mailTemplates)&&(null===(p=null==n?void 0:n.mailTemplates)||void 0===p?void 0:p.length)>0?o.getFilteredTemplates(null==n?void 0:n.mailTemplates):void 0,smsTemplates:(null==n?void 0:n.smsTemplates)&&(null===(_=null==n?void 0:n.smsTemplates)||void 0===_?void 0:_.length)>0?o.getFilteredTemplates(null==n?void 0:n.smsTemplates):void 0,steps:null!==(c=null===(m=null==n?void 0:n.steps)||void 0===m?void 0:m.map((function(l){var o,n,i=l.productCategories,d=e.__rest(l,["productCategories"]);return e.__assign(e.__assign({},d),{productCategories:null!==(o=null==i?void 0:i.map((function(l){var o,n=l.products,i=e.__rest(l,["products"]);return e.__assign(e.__assign({},i),{products:null!==(o=null==n?void 0:n.map((function(l){var o=l.zoneId,n=l.subProducts,i=e.__rest(l,["zoneId","subProducts"]);return e.__assign(e.__assign({},i),{subProducts:null==n?void 0:n.map((function(l){var o=l.zoneId,n=e.__rest(l,["zoneId"]);return e.__assign(e.__assign({},n),{productCategoryId:void 0,zoneId:o})})),productCategoryId:void 0,zoneId:o})})))&&void 0!==o?o:[]})})))&&void 0!==o?o:[],venueMapSetId:(null==d?void 0:d.venueMapSet)?null===(n=null==d?void 0:d.venueMapSet)||void 0===n?void 0:n.id:null})})))&&void 0!==c?c:[],menuRecurrences:i?[]:null!==(g=null==n?void 0:n.menuRecurrences)&&void 0!==g?g:[]}};
@@ -16,7 +16,8 @@ interface IframeEventCardProps {
16
16
  titleId?: string;
17
17
  descriptionId?: string;
18
18
  imageClassName?: string;
19
+ showMoreInfo?: boolean;
19
20
  }
20
- export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, }: IframeEventCardProps): JSX.Element;
21
+ export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, showMoreInfo, }: IframeEventCardProps): JSX.Element;
21
22
  export {};
22
23
  //# sourceMappingURL=IframeEventCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,GACf,EAAE,oBAAoB,eA6FtB"}
1
+ {"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,GACb,EAAE,oBAAoB,eA8FtB"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),a=require("react-i18next"),r=require("react-bootstrap"),i=e(require("clsx")),c=require("react-intl"),l=require("../../../tiptap-editor/TipTapEditor.js"),s=require("../../../events/event-card/utils.js"),n=require("../../../assets/iframe/clock.svg.js"),m=require("../../../assets/iframe/calendar.svg.js"),d=require("../../../assets/iframe/ticket.svg.js");exports.IframeEventCard=function(e){var o=e.title,v=e.type,u=e.cost,p=e.date,f=e.imageSrc,E=e.colour,N=e.goToDetails,g=e.description,C=e.isListView,b=void 0!==C&&C,x=e.className,_=e.shortDate,w=e.titleId,T=e.descriptionId,q=e.imageClassName,y=c.useIntl().formatNumber,j=a.useTranslation("Design").t;return t.createElement(r.Card,{style:{"--card-colour":E},className:i("iframe-event-card",{"list-view":b},x),onClick:N?function(){N&&N()}:void 0},f&&t.createElement(r.Card.Img,{className:null!=q?q:"card-image",variant:"top",as:"div",style:{backgroundImage:'url("'.concat(f,'")')}}),t.createElement(r.Card.Body,{className:i("d-flex","flex-column",!f&&"no-image")},t.createElement(r.Card.Title,{className:"iframe-event-card__title",id:w},o),t.createElement("div",{className:"flex-grow-1 iframe-event-card__description"},t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(m.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0 list-view-hided"},p),t.createElement("p",{className:"iframe-event-card__bold m-0 grid-view-hided"},_))),v&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(n.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0"},v))),"number"==typeof u&&t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(d.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0"},j("from")," ",y(u,{style:"currency",currency:"GBP"})))),g&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement(l.TipTapEditor,{viewMode:!0,disabled:!0,content:s.formatContent(g,150),id:T})))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),a=require("react-i18next"),r=require("react-bootstrap"),i=e(require("clsx")),c=require("react-intl"),s=require("../../../tiptap-editor/TipTapEditor.js"),l=require("../../../events/event-card/utils.js"),n=require("../../../assets/iframe/clock.svg.js"),m=require("../../../assets/iframe/calendar.svg.js"),d=require("../../../assets/iframe/ticket.svg.js");exports.IframeEventCard=function(e){var o=e.title,v=e.type,u=e.cost,f=e.date,p=e.imageSrc,E=e.colour,N=e.goToDetails,g=e.description,_=e.isListView,C=void 0!==_&&_,b=e.className,x=e.shortDate,w=e.titleId,T=e.descriptionId,q=e.imageClassName,y=e.showMoreInfo,j=c.useIntl().formatNumber,I=a.useTranslation("Design").t;return t.createElement(r.Card,{style:{"--card-colour":E},className:i("iframe-event-card",{"list-view":C},b),onClick:N?function(){N&&N()}:void 0},y&&t.createElement("div",{className:"iframe-event-card__info-icon"},"i"),p&&t.createElement(r.Card.Img,{className:null!=q?q:"card-image",variant:"top",as:"div",style:{backgroundImage:'url("'.concat(p,'")')}}),t.createElement(r.Card.Body,{className:i("d-flex","flex-column",!p&&"no-image")},t.createElement(r.Card.Title,{className:"iframe-event-card__title",id:w},o),t.createElement("div",{className:"flex-grow-1 iframe-event-card__description"},t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(m.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0 list-view-hided"},f),t.createElement("p",{className:"iframe-event-card__bold m-0 grid-view-hided"},x))),v&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(n.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0"},v))),"number"==typeof u&&t.createElement(r.Card.Text,{as:"div"},t.createElement("div",{className:"d-flex align-items-center mb-3"},t.createElement("div",{className:"icon-wrapper"},t.createElement(d.ReactComponent,null)),t.createElement("p",{className:"iframe-event-card__bold m-0"},I("from")," ",j(u,{style:"currency",currency:"GBP"})))),g&&t.createElement(r.Card.Text,{as:"div",className:"list-view-hided"},t.createElement(s.TipTapEditor,{viewMode:!0,disabled:!0,content:l.formatContent(g,150),id:T})))))};
@@ -1,9 +1,9 @@
1
- import { ProductCategory } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
2
1
  import { OrderItems } from "@licklist/plugins/dist/types/context/Iframe/orderItems";
2
+ import { ProductCategory } from "@licklist/plugins/dist/types/context/sale/menuSteps";
3
3
  interface CategoryError {
4
4
  message: string;
5
5
  id?: number;
6
6
  }
7
- export declare const useCategoryVerification: () => (values: OrderItems, productCategories?: ProductCategory[], isLastPage?: boolean) => CategoryError | void;
7
+ export declare const useCategoryVerification: () => (orderItems: OrderItems, productCategories?: ProductCategory[], isLastPage?: boolean) => CategoryError | void;
8
8
  export {};
9
9
  //# sourceMappingURL=useCategoryVerification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCategoryVerification.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/utils/useCategoryVerification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kEAAkE,CAAC;AAInG,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAEpF,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAGD,eAAO,MAAM,uBAAuB,iBAKxB,UAAU,sBACE,eAAe,EAAE,eACxB,OAAO,KACnB,aAAa,GAAG,IA+DpB,CAAC"}
1
+ {"version":3,"file":"useCategoryVerification.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/utils/useCategoryVerification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAEtF,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAGD,eAAO,MAAM,uBAAuB,qBAKpB,UAAU,sBACF,eAAe,EAAE,eACxB,OAAO,KACnB,aAAa,GAAG,IAiEpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LeftBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAC5C;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS,+EAOnB,cAAc,gBA6BhB,CAAC"}
1
+ {"version":3,"file":"LeftBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAC5C;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS,+EAOnB,cAAc,gBA+BhB,CAAC"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),l=e(require("react")),a=e(require("clsx")),s=require("@licklist/plugins/dist/context/page/PageContext"),r=require("../../constants.js"),i=require("../../hooks/useResizePageBody.js");exports.LeftBlock=function(e){var n=e.pageTitle,c=e.children,o=e.className,u=e.component,d=e.childrenClassName,m=t.__rest(e,["pageTitle","children","className","component","childrenClassName"]),f=i.useResizePageBody(),g=f.leftBlockStyles,p=f.leftBlockContainerSizes;return l.createElement("div",t.__assign({className:a("left-block",o)},m),l.createElement("div",{className:"navigation"},n&&l.createElement(l.Fragment,null,"string"==typeof n?l.createElement("div",{className:"title"},n):n),u),l.createElement("div",{className:a("left-block-container",d),style:g,id:r.PAGE_LEFT_BLOCK_CONTAINER_ID},l.createElement(s.PageContextProvider,{leftBlockContainerSizes:p},c)))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),l=e(require("react")),a=e(require("clsx")),i=require("@licklist/plugins/dist/context/page/PageContext"),s=require("../../constants.js"),n=require("../../hooks/useResizePageBody.js");exports.LeftBlock=function(e){var r=e.pageTitle,c=e.children,o=e.className,u=e.component,d=e.childrenClassName,m=t.__rest(e,["pageTitle","children","className","component","childrenClassName"]),f=n.useResizePageBody(),g=f.leftBlockStyles,p=f.leftBlockContainerSizes;return l.createElement("div",t.__assign({className:a("left-block",o)},m),l.createElement("div",{className:"navigation"},r&&l.createElement(l.Fragment,null,"string"==typeof r?l.createElement("div",{className:"title",id:"navigation-title"},r):r),u),l.createElement("div",{className:a("left-block-container",d),style:g,id:s.PAGE_LEFT_BLOCK_CONTAINER_ID},l.createElement(i.PageContextProvider,{leftBlockContainerSizes:p},c)))};
@@ -21,7 +21,7 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
21
21
  productGroups?: SelectItem[];
22
22
  relyOnPeopleType?: RelyOnPeopleType | null;
23
23
  fieldSetId?: number;
24
- steps?: Step[];
24
+ steps: Step[];
25
25
  emailTemplates?: TemplateItem[];
26
26
  smsTemplates?: TemplateItem[];
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":";AAKA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAIL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAehC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,mBAAmB,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,GACrC,EAAE,sBAAsB,eA6RxB"}
1
+ {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":";AAKA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OA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qB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,GACrC,EAAE,sBAAsB,eA6RxB"}
@@ -15,7 +15,7 @@ export interface WithId {
15
15
  id: number;
16
16
  }
17
17
  export interface ProductSetFormValues extends FormValues, WithId, ProductSetControlValues {
18
- steps?: Step[];
18
+ steps: Step[];
19
19
  }
20
20
  export interface ProductSetFormProps extends WithIsLoading, ProductSetControlShared {
21
21
  companyName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetForm.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetForm.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAI1F,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAK5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAC;AACtI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAEtF,OAAO,EAEL,uBAAuB,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CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC3B,CAAC;AAOF,eAAO,MAAM,iBAAiB,0FAS3B,sBAAsB,gBA8IxB,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,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 +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 n=require("../../static/loader/BlockLoader.js"),o=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=require("lodash"),s=require("@licklist/plugins/dist/utils/report");exports.ReportRunnerModal=function(e){var r,u,c=e.reportId,m=e.show,p=e.onHide,v=e.useShowReportFields,f=e.reports,g=e.generate,E=e.download,F=e.onEdit,b=o.useTranslation(["App","Design"]).t,_=null==f?void 0:f.find((function(e){return e.id===c})),q=v(null==_?void 0:_.type),y=q.data,h=void 0===y?[]:y,w=q.isLoading,k=l.useForm({mode:"onChange"}),L=k.handleSubmit,C=k.register,I=k.formState.errors,D=k.reset,j=(0,k.watch)("dateFrom"),B=L((function(e){E.execute(t.__assign(t.__assign({},e),{reportId:c,type:null==_?void 0:_.type}))})),N=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,g.execute(t.__assign(t.__assign({},e),{reportId:c}))];case 1:return r=a.sent(),_&&r&&!g.isError?(s.openOnlineViewer({type:_.type,dateFrom:e.dateFrom,dateTo:e.dateTo,data:r}),[2]):[2]}}))}))})),R=function(){D(),p()},T=g.isLoading||E.isLoading||w;return a.createElement(i.Modal,{show:m,onHide:R,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:R},b("cancel"))),T&&a.createElement(n.BlockLoader,null),!T&&a.createElement("div",null,a.createElement("div",{className:"report-type-label"},d.capitalize(null==_?void 0:_.type)),a.createElement("div",null,null==_?void 0:_.name),a.createElement("div",{className:"data-fields"},null==_?void 0:_.reportFieldValues.map((function(e){var t=null==h?void 0:h.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:"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:!!I.dateFrom},C("dateFrom",{required:{value:!0,message:"".concat(b("Validation:fieldRequired",{attribute:b("Design:to")}))}}))),a.createElement(i.Form.Control.Feedback,{type:"invalid"},null===(r=I.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:!!I.dateTo},C("dateTo",{required:"".concat(b("Validation:fieldRequired",{attribute:b("Design:to")})),validate:function(e){return!j||(e>j||b("toDateAfterFrom"))}}))),a.createElement(i.Form.Control.Feedback,{type:"invalid"},null===(u=I.dateTo)||void 0===u?void 0:u.message))),a.createElement("div",{className:"controls"},a.createElement(i.Button,{"data-testid":"download-button",onClick:B},b("generateDownload")),a.createElement(i.Button,{"data-testid":"view-button",onClick:N},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"),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 +1 @@
1
- {"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAQ1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAIF,eAAO,MAAM,UAAU,oDAKpB,eAAe,gBA2FjB,CAAC"}
1
+ {"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":";AAKA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAO1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,oDAKpB,eAAe,gBA2FjB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  @import "../snippet-templates/snippetVariables";
2
+ @import "../themes//bookedit/variables";
2
3
 
3
4
  .iframe-event-card {
4
5
  position: relative;
@@ -26,6 +27,18 @@
26
27
  padding: 0.5rem 0 0.875rem;
27
28
  }
28
29
 
30
+ &__info-icon {
31
+ position: absolute;
32
+ right: 1rem;
33
+ top: 1rem;
34
+ background-color: "#ffffff";
35
+ border-radius: 1.5rem;
36
+ padding: 0 0.5rem;
37
+ font-size: 0.75rem;
38
+ font-weight: $white;
39
+ border: 1px solid $black;
40
+ }
41
+
29
42
  &__title {
30
43
  transition: $color-transition;
31
44
  color: $snippet-elements-body-color;
@@ -33,7 +46,7 @@
33
46
  line-height: 1.25rem;
34
47
  cursor: pointer;
35
48
  margin-bottom: 0.5rem;
36
- font-size: 1.125rem;
49
+ font-size: 0.95rem;
37
50
  }
38
51
 
39
52
  &__label {
@@ -82,7 +95,8 @@
82
95
  color: $snippet-elements-button-color;
83
96
  border: none;
84
97
  background-color: $snippet-elements-button-background-color;
85
- box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
98
+ box-shadow: 0 0 0 $input-btn-focus-width
99
+ $snippet-elements-button-background-color;
86
100
  }
87
101
 
88
102
  &:disabled {
@@ -95,14 +109,14 @@
95
109
  &:focus,
96
110
  &.focus {
97
111
  &:not(:disabled) {
98
- opacity: .7;
112
+ opacity: 0.7;
99
113
  }
100
114
  }
101
115
 
102
116
  &:active,
103
117
  &.active {
104
118
  &:not(:disabled) {
105
- opacity: .8;
119
+ opacity: 0.8;
106
120
  }
107
121
  }
108
122
  }
@@ -123,7 +137,7 @@
123
137
  }
124
138
 
125
139
  .card-text {
126
- font-size: 0.875rem;
140
+ font-size: 0.82rem;
127
141
  }
128
142
 
129
143
  &.event-info {
@@ -202,7 +216,6 @@
202
216
 
203
217
  @media (max-width: 576px) {
204
218
  &.list-view {
205
-
206
219
  .card-image {
207
220
  margin-right: 0.5rem;
208
221
  }
@@ -21,6 +21,7 @@
21
21
 
22
22
  @include media-breakpoint-down(sm) {
23
23
  height: 100svh;
24
+ min-width: auto;
24
25
  }
25
26
 
26
27
  .header-block {
@@ -29,15 +29,16 @@
29
29
  .navigation {
30
30
  font-size: 1.125rem;
31
31
  font-weight: 500;
32
- margin-bottom: 1.25rem;
32
+ padding-bottom: 2.625rem;
33
33
  display: flex;
34
34
  align-items: flex-start;
35
35
  justify-content: space-between;
36
+ margin-top: 0.125rem;
36
37
 
37
38
  .title {
39
+ position: absolute;
38
40
  color: $snippet-elements-body-color;
39
41
  margin: 0;
40
- margin-top: 0.125rem;
41
42
  }
42
43
 
43
44
  @include media-breakpoint-down(sm) {
@@ -64,7 +65,7 @@
64
65
  overflow-x: hidden;
65
66
  scrollbar-width: thin;
66
67
  .iframe-event-card {
67
- border-bottom: 2px solid $separator-color;
68
+ border-bottom: 1px solid $separator-color;
68
69
  }
69
70
 
70
71
  @include media-breakpoint-down(sm) {
@@ -1,95 +1,101 @@
1
1
  .report-runner-modal {
2
- .modal-dialog {
3
- @include media-breakpoint-up(sm) {
4
- max-width: 45rem;
5
- }
6
- }
7
-
8
- .modal-content {
2
+ .modal-dialog {
3
+ @include media-breakpoint-up(sm) {
9
4
  max-width: 45rem;
10
- margin: 0 auto;
11
- padding: 1.25rem 1.5rem;
12
-
13
- header {
14
- display: flex;
15
- justify-content: space-between;
16
- align-items: center;
17
- margin-bottom: 1rem;
18
- border-bottom: 2px solid #dcdcdc;
19
-
20
- h5 {
21
- margin-bottom: 0;
22
- font-size: 1.125rem;
23
- font-weight: 500;
24
- }
25
-
26
- button {
27
- padding-top: 0.5rem;
28
- padding-bottom: 0.5rem;
29
- font-size: 0.875rem;
30
- font-weight: 600;
31
- color: #0e8ce2;
32
- }
33
- }
34
-
35
- .data-fields {
36
- display: flex;
37
- flex-wrap: wrap;
38
-
39
- span {
40
- position: relative;
41
- font-size: 0.875rem;
42
- font-weight: 500;
43
-
44
- &:after {
45
- content: "|";
46
- margin: 0 0.25rem;
47
- color: #dcdcdc;
48
- }
49
-
50
- &:last-child:after {
51
- display: none;
52
- }
53
- }
5
+ }
6
+ }
7
+
8
+ .modal-content {
9
+ max-width: 45rem;
10
+ margin: 0 auto;
11
+ padding: 1.25rem 1.5rem;
12
+
13
+ header {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ align-items: center;
17
+ margin-bottom: 1rem;
18
+ border-bottom: 2px solid #dcdcdc;
19
+
20
+ h5 {
21
+ margin-bottom: 0;
22
+ font-size: 1.125rem;
23
+ font-weight: 500;
54
24
  }
55
-
56
- .edit-button {
57
- padding: 0;
25
+
26
+ button {
27
+ padding-top: 0.5rem;
28
+ padding-bottom: 0.5rem;
58
29
  font-size: 0.875rem;
59
30
  font-weight: 600;
60
31
  color: #0e8ce2;
61
- text-decoration: underline;
62
-
63
- &:focus {
64
- box-shadow: none;
32
+ }
33
+ }
34
+
35
+ .data-fields {
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+
39
+ span {
40
+ position: relative;
41
+ font-size: 0.875rem;
42
+ font-weight: 500;
43
+
44
+ &:after {
45
+ content: "|";
46
+ margin: 0 0.25rem;
47
+ color: #dcdcdc;
48
+ }
49
+
50
+ &:last-child:after {
51
+ display: none;
65
52
  }
66
53
  }
67
-
68
- input {
69
- border-radius: 0.5rem;
54
+ }
55
+
56
+ .edit-button {
57
+ padding: 0;
58
+ font-size: 0.875rem;
59
+ font-weight: 600;
60
+ color: #0e8ce2;
61
+ text-decoration: underline;
62
+
63
+ &:focus {
64
+ box-shadow: none;
70
65
  }
71
-
72
- form {
66
+ }
67
+
68
+ input {
69
+ border-radius: 0.5rem;
70
+ }
71
+
72
+ form {
73
+ margin-top: 1.25rem;
74
+
75
+ .period-by {
76
+ display: flex;
77
+ gap: 2rem;
73
78
  margin-top: 1.25rem;
74
-
75
- .controls {
76
- display: flex;
77
- gap: 2rem;
78
- align-items: flex-start;
79
- flex-wrap: wrap;
80
- }
81
-
82
- .form-group {
83
- flex: 1;
84
- }
85
-
86
- button[type="submit"] {
87
- white-space: nowrap;
88
- }
89
79
  }
90
-
91
- .loader {
92
- height: 10rem;
80
+
81
+ .controls {
82
+ display: flex;
83
+ gap: 2rem;
84
+ align-items: flex-start;
85
+ flex-wrap: wrap;
86
+ }
87
+
88
+ .form-group {
89
+ flex: 1;
90
+ }
91
+
92
+ button[type="submit"] {
93
+ white-space: nowrap;
93
94
  }
94
95
  }
95
- }
96
+
97
+ .loader {
98
+ height: 10rem;
99
+ }
100
+ }
101
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14.25rem;
8
+ height: 14rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.58.2",
3
+ "version": "0.58.3-dev.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -53,9 +53,9 @@
53
53
  "@fortawesome/free-brands-svg-icons": "5.15.2",
54
54
  "@fortawesome/free-solid-svg-icons": "5.15.2",
55
55
  "@fortawesome/react-fontawesome": "0.1.9",
56
- "@licklist/core": "^0.20.0",
56
+ "@licklist/core": ">=0.22.1-dev.3 < 0.22.1",
57
57
  "@licklist/eslint-config": "0.3.4",
58
- "@licklist/plugins": "^0.26.0",
58
+ "@licklist/plugins": ">=0.27.1-dev.0 < 0.27.1",
59
59
  "@mdx-js/react": "1.6.22",
60
60
  "@popperjs/core": "2.11.8",
61
61
  "@react-aria/utils": "3.9.0",
@@ -1,4 +1,4 @@
1
- import React, { useContext, useState } from "react";
1
+ import React, { useContext, useEffect, useState } from "react";
2
2
  import Row from "react-bootstrap/Row";
3
3
  import Col from "react-bootstrap/Col";
4
4
  import { Trans, useTranslation } from "react-i18next";
@@ -90,6 +90,14 @@ const LoginComponent = ({
90
90
  RouteService.redirectTo("/");
91
91
  };
92
92
 
93
+ useEffect(() => {
94
+ if (!user.profile || !auth.secrets) {
95
+ return;
96
+ }
97
+
98
+ RouteService.redirectTo("/");
99
+ }, [user.profile, auth.secrets]);
100
+
93
101
  return (
94
102
  <Router>
95
103
  <Row className="justify-content-center">
@@ -2,7 +2,6 @@ import React, { useEffect, useMemo } from "react";
2
2
  import { Button, Form } from "react-bootstrap";
3
3
  import { FormProvider, useForm } from "react-hook-form";
4
4
  import { isEqual } from "lodash";
5
-
6
5
  import { useParams } from "react-router-dom";
7
6
  import { useEventEditProductSetContext } from "@licklist/plugins/dist/context/event/EventEditProductSetContext";
8
7
  import { useTranslation } from "react-i18next";
@@ -29,22 +29,22 @@ export const getDefaultValues = (
29
29
  steps:
30
30
  productSet?.steps?.map(({ productCategories, ...step }) => ({
31
31
  ...step,
32
- productCategories: productCategories?.map(
33
- ({ products, ...productCategory }) => ({
32
+ productCategories:
33
+ productCategories?.map(({ products, ...productCategory }) => ({
34
34
  ...productCategory,
35
- products: products?.map(({ zoneId, subProducts, ...product }) => ({
36
- ...product,
37
- subProducts: subProducts?.map(({ zoneId, ...subProducts }) => ({
38
- ...subProducts,
35
+ products:
36
+ products?.map(({ zoneId, subProducts, ...product }) => ({
37
+ ...product,
38
+ subProducts: subProducts?.map(({ zoneId, ...subProducts }) => ({
39
+ ...subProducts,
40
+ productCategoryId: undefined,
41
+ zoneId,
42
+ })),
39
43
  productCategoryId: undefined,
40
- zoneId: zoneId as number,
41
- })),
42
- productCategoryId: undefined,
43
- zoneId: zoneId as number,
44
- })),
45
- })
46
- ),
44
+ zoneId,
45
+ })) ?? [],
46
+ })) ?? [],
47
47
  venueMapSetId: step?.venueMapSet ? step?.venueMapSet?.id : null,
48
- })) ?? undefined,
48
+ })) ?? [],
49
49
  menuRecurrences: hasNoRecurrences ? [] : productSet?.menuRecurrences ?? [],
50
50
  });
@@ -16,6 +16,7 @@ export function Default() {
16
16
  return (
17
17
  <div>
18
18
  <IframeEventCard
19
+ showMoreInfo
19
20
  imageSrc={
20
21
  showImage
21
22
  ? // eslint-disable-next-line max-len
@@ -29,6 +29,7 @@ interface IframeEventCardProps {
29
29
  titleId?: string;
30
30
  descriptionId?: string;
31
31
  imageClassName?: string;
32
+ showMoreInfo?: boolean;
32
33
  }
33
34
 
34
35
  export function IframeEventCard({
@@ -46,6 +47,7 @@ export function IframeEventCard({
46
47
  titleId,
47
48
  descriptionId,
48
49
  imageClassName,
50
+ showMoreInfo,
49
51
  }: IframeEventCardProps) {
50
52
  const { formatNumber } = useIntl();
51
53
  const { t } = useTranslation("Design");
@@ -70,6 +72,7 @@ export function IframeEventCard({
70
72
  )}
71
73
  onClick={goToDetails ? onClick : undefined}
72
74
  >
75
+ {showMoreInfo && <div className="iframe-event-card__info-icon">i</div>}
73
76
  {imageSrc && (
74
77
  <Card.Img
75
78
  className={imageClassName ?? "card-image"}
@@ -1,8 +1,8 @@
1
- import { ProductCategory } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
2
1
  import { Currency } from "@licklist/core/dist/Config";
3
2
  import { useIntl } from "react-intl";
4
3
  import { useTranslation } from "react-i18next";
5
4
  import { OrderItems } from "@licklist/plugins/dist/types/context/Iframe/orderItems";
5
+ import { ProductCategory } from "@licklist/plugins/dist/types/context/sale/menuSteps";
6
6
 
7
7
  interface CategoryError {
8
8
  message: string;
@@ -15,14 +15,16 @@ export const useCategoryVerification = () => {
15
15
  const { formatNumber } = useIntl();
16
16
 
17
17
  return (
18
- values: OrderItems,
18
+ orderItems: OrderItems,
19
19
  productCategories?: ProductCategory[],
20
20
  isLastPage?: boolean
21
21
  ): CategoryError | void => {
22
22
  let errorMessage: { id?: number; message: string } | void;
23
- const productArray = Object.values(values).filter(
23
+
24
+ const productArray = Object.values(orderItems).filter(
24
25
  (product) => product?.quantity > 0
25
26
  );
27
+
26
28
  const sumOfMinSpends = productCategories.reduce((acc, productCategory) => {
27
29
  const { products } = productCategory;
28
30
  const selectedProducts = products.filter((product) =>
@@ -28,7 +28,9 @@ export const LeftBlock = ({
28
28
  {pageTitle && (
29
29
  <>
30
30
  {typeof pageTitle === "string" ? (
31
- <div className="title">{pageTitle}</div>
31
+ <div className="title" id="navigation-title">
32
+ {pageTitle}
33
+ </div>
32
34
  ) : (
33
35
  pageTitle
34
36
  )}
@@ -61,7 +61,7 @@ export interface ProductSetControlValues extends DateAndRecurrenceInputValues {
61
61
  productGroups?: SelectItem[];
62
62
  relyOnPeopleType?: RelyOnPeopleType | null;
63
63
  fieldSetId?: number;
64
- steps?: Step[];
64
+ steps: Step[];
65
65
  emailTemplates?: TemplateItem[];
66
66
  smsTemplates?: TemplateItem[];
67
67
  }
@@ -33,7 +33,7 @@ export interface ProductSetFormValues
33
33
  extends FormValues,
34
34
  WithId,
35
35
  ProductSetControlValues {
36
- steps?: Step[];
36
+ steps: Step[];
37
37
  }
38
38
 
39
39
  export interface ProductSetFormProps
@@ -1,4 +1,12 @@
1
- import { Report, ReportType } from "@licklist/core/dist/DataMapper/Report";
1
+ import {
2
+ GenerateReportBody,
3
+ PERIOD_BY_BOOKING_DATE,
4
+ PERIOD_BY_CREATION_DATE,
5
+ PERIOD_BY_TYPES,
6
+ Report,
7
+ ReportPeriodBy,
8
+ ReportType,
9
+ } from "@licklist/core/dist/DataMapper/Report";
2
10
  import { capitalize } from "lodash";
3
11
  import React from "react";
4
12
  import { Button, Form, Modal } from "react-bootstrap";
@@ -28,9 +36,11 @@ type ReportRunnerModalProps = {
28
36
  reports?: Report[] | null;
29
37
  };
30
38
 
31
- type FormValues = {
32
- dateFrom: string;
33
- dateTo: string;
39
+ type FormValues = Pick<GenerateReportBody, "dateFrom" | "dateTo" | "periodBy">;
40
+
41
+ const labelByPeriodType: Record<ReportPeriodBy, string> = {
42
+ [PERIOD_BY_CREATION_DATE]: "Design:reportPeriodByCreationDate",
43
+ [PERIOD_BY_BOOKING_DATE]: "Design:reportPeriodByBookingDate",
34
44
  };
35
45
 
36
46
  export const ReportRunnerModal = ({
@@ -126,6 +136,27 @@ export const ReportRunnerModal = ({
126
136
  </Button>
127
137
 
128
138
  <form noValidate>
139
+ <div className="period-by">
140
+ {PERIOD_BY_TYPES.map((type) => (
141
+ <div key={type}>
142
+ <Form.Group>
143
+ <Form.Check
144
+ inline
145
+ isInvalid={!!errors.periodBy}
146
+ label={t(labelByPeriodType[type])}
147
+ type="radio"
148
+ id={type}
149
+ value={type}
150
+ {...register("periodBy")}
151
+ />
152
+ <Form.Control.Feedback type="invalid">
153
+ {errors.periodBy?.message}
154
+ </Form.Control.Feedback>
155
+ </Form.Group>
156
+ </div>
157
+ ))}
158
+ </div>
159
+
129
160
  <div className="controls">
130
161
  <Form.Group controlId="from-input">
131
162
  <Form.Label>{t("Design:from")}</Form.Label>
@@ -12,7 +12,6 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
12
12
  import * as Config from "@licklist/core/dist/Config";
13
13
  import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
14
14
  import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
15
-
16
15
  import Icon from "../../../../static/Icon";
17
16
 
18
17
  export type ResultCardProps = {
@@ -22,8 +21,6 @@ export type ResultCardProps = {
22
21
  onCardClick?: (id: number) => void;
23
22
  };
24
23
 
25
- // @TODO integrate when API will be available
26
- // activity and staff keys
27
24
  export const ResultCard = ({
28
25
  order,
29
26
  className,
@@ -23,7 +23,7 @@ export function BooleanSwitch({
23
23
  const { t } = useTranslation("Design");
24
24
 
25
25
  const options: SelectItem[] = [
26
- { id: 1, value: firstValueTitle ?? t("yes") },
26
+ { id: 1, value: firstValueTitle ?? t("yes") },
27
27
  { id: 0, value: secondValueTitle ?? t("no") },
28
28
  ];
29
29
 
@@ -1,4 +1,5 @@
1
1
  @import "../snippet-templates/snippetVariables";
2
+ @import "../themes//bookedit/variables";
2
3
 
3
4
  .iframe-event-card {
4
5
  position: relative;
@@ -26,6 +27,18 @@
26
27
  padding: 0.5rem 0 0.875rem;
27
28
  }
28
29
 
30
+ &__info-icon {
31
+ position: absolute;
32
+ right: 1rem;
33
+ top: 1rem;
34
+ background-color: "#ffffff";
35
+ border-radius: 1.5rem;
36
+ padding: 0 0.5rem;
37
+ font-size: 0.75rem;
38
+ font-weight: $white;
39
+ border: 1px solid $black;
40
+ }
41
+
29
42
  &__title {
30
43
  transition: $color-transition;
31
44
  color: $snippet-elements-body-color;
@@ -33,7 +46,7 @@
33
46
  line-height: 1.25rem;
34
47
  cursor: pointer;
35
48
  margin-bottom: 0.5rem;
36
- font-size: 1.125rem;
49
+ font-size: 0.95rem;
37
50
  }
38
51
 
39
52
  &__label {
@@ -82,7 +95,8 @@
82
95
  color: $snippet-elements-button-color;
83
96
  border: none;
84
97
  background-color: $snippet-elements-button-background-color;
85
- box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
98
+ box-shadow: 0 0 0 $input-btn-focus-width
99
+ $snippet-elements-button-background-color;
86
100
  }
87
101
 
88
102
  &:disabled {
@@ -95,14 +109,14 @@
95
109
  &:focus,
96
110
  &.focus {
97
111
  &:not(:disabled) {
98
- opacity: .7;
112
+ opacity: 0.7;
99
113
  }
100
114
  }
101
115
 
102
116
  &:active,
103
117
  &.active {
104
118
  &:not(:disabled) {
105
- opacity: .8;
119
+ opacity: 0.8;
106
120
  }
107
121
  }
108
122
  }
@@ -123,7 +137,7 @@
123
137
  }
124
138
 
125
139
  .card-text {
126
- font-size: 0.875rem;
140
+ font-size: 0.82rem;
127
141
  }
128
142
 
129
143
  &.event-info {
@@ -202,7 +216,6 @@
202
216
 
203
217
  @media (max-width: 576px) {
204
218
  &.list-view {
205
-
206
219
  .card-image {
207
220
  margin-right: 0.5rem;
208
221
  }
@@ -21,6 +21,7 @@
21
21
 
22
22
  @include media-breakpoint-down(sm) {
23
23
  height: 100svh;
24
+ min-width: auto;
24
25
  }
25
26
 
26
27
  .header-block {
@@ -29,15 +29,16 @@
29
29
  .navigation {
30
30
  font-size: 1.125rem;
31
31
  font-weight: 500;
32
- margin-bottom: 1.25rem;
32
+ padding-bottom: 2.625rem;
33
33
  display: flex;
34
34
  align-items: flex-start;
35
35
  justify-content: space-between;
36
+ margin-top: 0.125rem;
36
37
 
37
38
  .title {
39
+ position: absolute;
38
40
  color: $snippet-elements-body-color;
39
41
  margin: 0;
40
- margin-top: 0.125rem;
41
42
  }
42
43
 
43
44
  @include media-breakpoint-down(sm) {
@@ -64,7 +65,7 @@
64
65
  overflow-x: hidden;
65
66
  scrollbar-width: thin;
66
67
  .iframe-event-card {
67
- border-bottom: 2px solid $separator-color;
68
+ border-bottom: 1px solid $separator-color;
68
69
  }
69
70
 
70
71
  @include media-breakpoint-down(sm) {
@@ -1,95 +1,101 @@
1
1
  .report-runner-modal {
2
- .modal-dialog {
3
- @include media-breakpoint-up(sm) {
4
- max-width: 45rem;
5
- }
6
- }
7
-
8
- .modal-content {
2
+ .modal-dialog {
3
+ @include media-breakpoint-up(sm) {
9
4
  max-width: 45rem;
10
- margin: 0 auto;
11
- padding: 1.25rem 1.5rem;
12
-
13
- header {
14
- display: flex;
15
- justify-content: space-between;
16
- align-items: center;
17
- margin-bottom: 1rem;
18
- border-bottom: 2px solid #dcdcdc;
19
-
20
- h5 {
21
- margin-bottom: 0;
22
- font-size: 1.125rem;
23
- font-weight: 500;
24
- }
25
-
26
- button {
27
- padding-top: 0.5rem;
28
- padding-bottom: 0.5rem;
29
- font-size: 0.875rem;
30
- font-weight: 600;
31
- color: #0e8ce2;
32
- }
33
- }
34
-
35
- .data-fields {
36
- display: flex;
37
- flex-wrap: wrap;
38
-
39
- span {
40
- position: relative;
41
- font-size: 0.875rem;
42
- font-weight: 500;
43
-
44
- &:after {
45
- content: "|";
46
- margin: 0 0.25rem;
47
- color: #dcdcdc;
48
- }
49
-
50
- &:last-child:after {
51
- display: none;
52
- }
53
- }
5
+ }
6
+ }
7
+
8
+ .modal-content {
9
+ max-width: 45rem;
10
+ margin: 0 auto;
11
+ padding: 1.25rem 1.5rem;
12
+
13
+ header {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ align-items: center;
17
+ margin-bottom: 1rem;
18
+ border-bottom: 2px solid #dcdcdc;
19
+
20
+ h5 {
21
+ margin-bottom: 0;
22
+ font-size: 1.125rem;
23
+ font-weight: 500;
54
24
  }
55
-
56
- .edit-button {
57
- padding: 0;
25
+
26
+ button {
27
+ padding-top: 0.5rem;
28
+ padding-bottom: 0.5rem;
58
29
  font-size: 0.875rem;
59
30
  font-weight: 600;
60
31
  color: #0e8ce2;
61
- text-decoration: underline;
62
-
63
- &:focus {
64
- box-shadow: none;
32
+ }
33
+ }
34
+
35
+ .data-fields {
36
+ display: flex;
37
+ flex-wrap: wrap;
38
+
39
+ span {
40
+ position: relative;
41
+ font-size: 0.875rem;
42
+ font-weight: 500;
43
+
44
+ &:after {
45
+ content: "|";
46
+ margin: 0 0.25rem;
47
+ color: #dcdcdc;
48
+ }
49
+
50
+ &:last-child:after {
51
+ display: none;
65
52
  }
66
53
  }
67
-
68
- input {
69
- border-radius: 0.5rem;
54
+ }
55
+
56
+ .edit-button {
57
+ padding: 0;
58
+ font-size: 0.875rem;
59
+ font-weight: 600;
60
+ color: #0e8ce2;
61
+ text-decoration: underline;
62
+
63
+ &:focus {
64
+ box-shadow: none;
70
65
  }
71
-
72
- form {
66
+ }
67
+
68
+ input {
69
+ border-radius: 0.5rem;
70
+ }
71
+
72
+ form {
73
+ margin-top: 1.25rem;
74
+
75
+ .period-by {
76
+ display: flex;
77
+ gap: 2rem;
73
78
  margin-top: 1.25rem;
74
-
75
- .controls {
76
- display: flex;
77
- gap: 2rem;
78
- align-items: flex-start;
79
- flex-wrap: wrap;
80
- }
81
-
82
- .form-group {
83
- flex: 1;
84
- }
85
-
86
- button[type="submit"] {
87
- white-space: nowrap;
88
- }
89
79
  }
90
-
91
- .loader {
92
- height: 10rem;
80
+
81
+ .controls {
82
+ display: flex;
83
+ gap: 2rem;
84
+ align-items: flex-start;
85
+ flex-wrap: wrap;
86
+ }
87
+
88
+ .form-group {
89
+ flex: 1;
90
+ }
91
+
92
+ button[type="submit"] {
93
+ white-space: nowrap;
93
94
  }
94
95
  }
95
- }
96
+
97
+ .loader {
98
+ height: 10rem;
99
+ }
100
+ }
101
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14.25rem;
8
+ height: 14rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);