Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Infokit-form-error-messages-by-min-length-fixes (#408)
fareed.k4863ff77ea49
diff --git a/src/Web/Grand.Web/vueapp/src/main.js b/src/Web/Grand.Web/vueapp/src/main.jsindex 7ee74409f..d47900448 100644--- a/src/Web/Grand.Web/vueapp/src/main.js+++ b/src/Web/Grand.Web/vueapp/src/main.js@@ -263,7 +263,10 @@ extend('min', {if (text) {return text;}- return 'This ' + fieldName + ' should have at least characters.'+ const element = document.getElementsByName(fieldName);+ let minLength = element[0].minLength;++ return 'This ' + fieldName + ' should be at least ' + minLength + ' characters.'}});diff --git a/src/Web/Grand.Web/wwwroot/bundles/app.runtime.bundle.js b/src/Web/Grand.Web/wwwroot/bundles/app.runtime.bundle.jsindex ec2d5d896..2099834b6 100644--- a/src/Web/Grand.Web/wwwroot/bundles/app.runtime.bundle.js+++ b/src/Web/Grand.Web/wwwroot/bundles/app.runtime.bundle.js@@ -1 +1 @@-(function(){"use strict";var e={866:function(e,n,o){var t=o(538),a=(o(7024),o(959)),u=o(295),c=o(1869),l=o(3800),r=o(1083),d=o(9306),i=o(371),f=o(893),s=o(6669),m=o(325),p=o(7632),I=o(4003),B=o(2749),h=o(8793),v=o(4063),g=o(6494),b=o(6207),k=o(7709),w=o(3022),C=o(2466),y=o(2954),S=o(1714),T=o.n(S),O=(o(9669),o(4319),o(304)),x=o.n(O);t["default"].config.productionTip=!0,t["default"].use(a.H),t["default"].use(u.xL),t["default"].use(c.SY),t["default"].use(l.d),t["default"].use(r.A6),t["default"].use(d.k),t["default"].use(i.J),t["default"].use(f.sR),t["default"].use(s.kH),t["default"].use(m.Rt),t["default"].use(p.Q),t["default"].use(I.C),t["default"].use(B._s),t["default"].use(h.m$),t["default"].use(v.F),t["default"].use(g.PI),t["default"].use(b.V),t["default"].use(k.i),t["default"].component("BIcon",w.H),t["default"].component("BIconAspectRatio",C.kCe),t["default"].component("BIconCalendar2Check",C.lh2),t["default"].component("BIconSearch",C.Lln),t["default"].component("BIconTrash",C.DkS),t["default"].component("BIconEnvelope",C.AzZ),t["default"].component("BIconHandThumbsDown",C.E9m),t["default"].component("BIconHandThumbsUp",C.eA6),t["default"].component("BIconHouseDoor",C.xY_),t["default"].component("BIconList",C.Gbt),t["default"].component("BIconGrid3x2Gap",C.$i3),t["default"].component("BIconXCircleFill",C.aEb),t["default"].component("BIconClipboardPlus",C.R1J),t["default"].component("BIconServer",C.T1o),t["default"].component("BIconX",C.uR$),t["default"].component("BIconHeart",C.Ryo),t["default"].component("BIconShuffle",C.JIg),t["default"].component("BIconTruck",C.X8t),t["default"].component("BIconQuestionCircle",C.POT),t["default"].component("BIconGear",C.ajv),t["default"].component("BIconWrench",C.z_2),t["default"].component("BIconCart",C.K0N),t["default"].component("BIconCashStack",C.ah9),t["default"].component("BIconCartCheck",C.t3Q),t["default"].component("BIconPerson",C._iv),t["default"].component("BIconFileEarmarkEasel",C.RXn),t["default"].component("BIconFileEarmarkFont",C.k_T),t["default"].component("BIconFileEarmarkCheck",C.hgC),t["default"].component("BIconArrowReturnLeft",C.nyK),t["default"].component("BIconCloudDownload",C.rvl),t["default"].component("BIconSkipBackward",C.$oK),t["default"].component("BIconChevronLeft",C.As$),t["default"].component("BIconTrophy",C.dst),t["default"].component("BIconPersonCircle",C.pbm),t["default"].component("BIconFileRuled",C.xxm),t["default"].component("BIconShop",C.JSR),t["default"].component("BIconStar",C.rWC),t["default"].component("BIconStarFill",C.z76),t["default"].component("BIconStarHalf",C.$T$),t["default"].component("BIconPersonPlus",C.D62),t["default"].component("BIconHandbag",C.QNB),t["default"].component("BIconLock",C.MJF),t["default"].component("BIconShieldLock",C.hNJ),t["default"].component("BIconCartX",C.aGA),t["default"].component("BIconCart2",C.g3h),t["default"].component("BIconLayoutSidebarInset",C.ZGd),t["default"].component("BIconArrowClockwise",C.zI9),t["default"].component("BIconFileEarmarkLock2",C.wsb),t["default"].component("BIconFileEarmarkRuled",C.m6y),t["default"].component("BIconMoon",C.MZ$),t["default"].component("BIconSun",C.wiA),t["default"].component("BIconFileEarmarkRichtext",C.sox),t["default"].component("BIconHammer",C.ETj),t["default"].component("BIconMic",C.DGt),t["default"].component("BIconMicMute",C.RFg),t["default"].component("BIconCheck",C.PaS),t["default"].component("BIconPencil",C.Hu2),t["default"].component("ValidationProvider",y.d_),t["default"].component("ValidationObserver",y._j);const F={classes:{valid:"is-valid",invalid:"is-invalid"}};function P(e,n){const o=document.getElementsByName(e);if(o&&o[0]){const e=o[0].getAttribute("data-val-"+n);if(e)return e}}(0,y.jQ)(F),(0,y.l7)("confirmed",{params:["target"],validate(e,{target:n}){return e===n},message:e=>{const n=P(e,"equalto");return n||"The "+e+" field confirmation does not match."}}),(0,y.l7)("email",{validate:e=>!e||!!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e),message:e=>{const n=P(e,"email");return n||"This field must be a valid email."}}),(0,y.l7)("required",{params:["allowFalse"],validate(e,{allowFalse:n}){return void 0===n?{required:!0,valid:-1===["",null,void 0].indexOf(e)}:!0!==e||n?void 0:{required:!0,valid:-1===["",null,void 0].indexOf(e)}},computesRequired:!0,message:e=>{const n=P(e,"required");return n||"The "+e+" field is required."}}),(0,y.l7)("min",{params:["target"],options:{hasTarget:!0},validate:function(e,n){const o=n.target,t=e.length;return!e||!(t<o)},message:e=>{const n=P(e,"min");return n||"This "+e+" should have at least characters."}}),(0,y.l7)("exact_length",{params:["length","message"],validate(e,{length:n,message:o}){return!(e.length<1)||(o??"Must have "+n+" items")}}),window.axios=o(9669)["default"],window.Pikaday=o(4319),window.VueGallerySlideshow=T(),t["default"].use(x(),"vac"),window.Vue=t["default"]}},n={};function o(t){var a=n[t];if(void 0!==a)return a.exports;var u=n[t]={exports:{}};return e[t].call(u.exports,u,u.exports,o),u.exports}o.m=e,function(){var e=[];o.O=function(n,t,a,u){if(!t){var c=1/0;for(i=0;i<e.length;i++){t=e[i][0],a=e[i][1],u=e[i][2];for(var l=!0,r=0;r<t.length;r++)(!1&u||c>=u)&&Object.keys(o.O).every((function(e){return o.O[e](t[r])}))?t.splice(r--,1):(l=!1,u<c&&(c=u));if(l){e.splice(i--,1);var d=a();void 0!==d&&(n=d)}}return n}u=u||0;for(var i=e.length;i>0&&e[i-1][2]>u;i--)e[i]=e[i-1];e[i]=[t,a,u]}}(),function(){o.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(n,{a:n}),n}}(),function(){o.d=function(e,n){for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var a,u,c=t[0],l=t[1],r=t[2],d=0;if(c.some((function(n){return 0!==e[n]}))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(r)var i=r(o)}for(n&&n(t);d<c.length;d++)u=c[d],o.o(e,u)&&e[u]&&e[u][0](),e[u]=0;return o.O(i)},t=self["webpackChunkgrand_web"]=self["webpackChunkgrand_web"]||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var t=o.O(void 0,[998],(function(){return o(866)}));t=o.O(t)})();\ No newline at end of file+(function(){"use strict";var e={866:function(e,n,t){var o=t(538),a=(t(7024),t(959)),u=t(295),c=t(1869),l=t(3800),r=t(1083),d=t(9306),i=t(371),f=t(893),s=t(6669),m=t(325),p=t(7632),B=t(4003),I=t(2749),h=t(8793),v=t(4063),g=t(6494),b=t(6207),k=t(7709),w=t(3022),y=t(2466),C=t(2954),S=t(1714),T=t.n(S),O=(t(9669),t(4319),t(304)),x=t.n(O);o["default"].config.productionTip=!0,o["default"].use(a.H),o["default"].use(u.xL),o["default"].use(c.SY),o["default"].use(l.d),o["default"].use(r.A6),o["default"].use(d.k),o["default"].use(i.J),o["default"].use(f.sR),o["default"].use(s.kH),o["default"].use(m.Rt),o["default"].use(p.Q),o["default"].use(B.C),o["default"].use(I._s),o["default"].use(h.m$),o["default"].use(v.F),o["default"].use(g.PI),o["default"].use(b.V),o["default"].use(k.i),o["default"].component("BIcon",w.H),o["default"].component("BIconAspectRatio",y.kCe),o["default"].component("BIconCalendar2Check",y.lh2),o["default"].component("BIconSearch",y.Lln),o["default"].component("BIconTrash",y.DkS),o["default"].component("BIconEnvelope",y.AzZ),o["default"].component("BIconHandThumbsDown",y.E9m),o["default"].component("BIconHandThumbsUp",y.eA6),o["default"].component("BIconHouseDoor",y.xY_),o["default"].component("BIconList",y.Gbt),o["default"].component("BIconGrid3x2Gap",y.$i3),o["default"].component("BIconXCircleFill",y.aEb),o["default"].component("BIconClipboardPlus",y.R1J),o["default"].component("BIconServer",y.T1o),o["default"].component("BIconX",y.uR$),o["default"].component("BIconHeart",y.Ryo),o["default"].component("BIconShuffle",y.JIg),o["default"].component("BIconTruck",y.X8t),o["default"].component("BIconQuestionCircle",y.POT),o["default"].component("BIconGear",y.ajv),o["default"].component("BIconWrench",y.z_2),o["default"].component("BIconCart",y.K0N),o["default"].component("BIconCashStack",y.ah9),o["default"].component("BIconCartCheck",y.t3Q),o["default"].component("BIconPerson",y._iv),o["default"].component("BIconFileEarmarkEasel",y.RXn),o["default"].component("BIconFileEarmarkFont",y.k_T),o["default"].component("BIconFileEarmarkCheck",y.hgC),o["default"].component("BIconArrowReturnLeft",y.nyK),o["default"].component("BIconCloudDownload",y.rvl),o["default"].component("BIconSkipBackward",y.$oK),o["default"].component("BIconChevronLeft",y.As$),o["default"].component("BIconTrophy",y.dst),o["default"].component("BIconPersonCircle",y.pbm),o["default"].component("BIconFileRuled",y.xxm),o["default"].component("BIconShop",y.JSR),o["default"].component("BIconStar",y.rWC),o["default"].component("BIconStarFill",y.z76),o["default"].component("BIconStarHalf",y.$T$),o["default"].component("BIconPersonPlus",y.D62),o["default"].component("BIconHandbag",y.QNB),o["default"].component("BIconLock",y.MJF),o["default"].component("BIconShieldLock",y.hNJ),o["default"].component("BIconCartX",y.aGA),o["default"].component("BIconCart2",y.g3h),o["default"].component("BIconLayoutSidebarInset",y.ZGd),o["default"].component("BIconArrowClockwise",y.zI9),o["default"].component("BIconFileEarmarkLock2",y.wsb),o["default"].component("BIconFileEarmarkRuled",y.m6y),o["default"].component("BIconMoon",y.MZ$),o["default"].component("BIconSun",y.wiA),o["default"].component("BIconFileEarmarkRichtext",y.sox),o["default"].component("BIconHammer",y.ETj),o["default"].component("BIconMic",y.DGt),o["default"].component("BIconMicMute",y.RFg),o["default"].component("BIconCheck",y.PaS),o["default"].component("BIconPencil",y.Hu2),o["default"].component("ValidationProvider",C.d_),o["default"].component("ValidationObserver",C._j);const F={classes:{valid:"is-valid",invalid:"is-invalid"}};function P(e,n){const t=document.getElementsByName(e);if(t&&t[0]){const e=t[0].getAttribute("data-val-"+n);if(e)return e}}(0,C.jQ)(F),(0,C.l7)("confirmed",{params:["target"],validate(e,{target:n}){return e===n},message:e=>{const n=P(e,"equalto");return n||"The "+e+" field confirmation does not match."}}),(0,C.l7)("email",{validate:e=>!e||!!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e),message:e=>{const n=P(e,"email");return n||"This field must be a valid email."}}),(0,C.l7)("required",{params:["allowFalse"],validate(e,{allowFalse:n}){return void 0===n?{required:!0,valid:-1===["",null,void 0].indexOf(e)}:!0!==e||n?void 0:{required:!0,valid:-1===["",null,void 0].indexOf(e)}},computesRequired:!0,message:e=>{const n=P(e,"required");return n||"The "+e+" field is required."}}),(0,C.l7)("min",{params:["target"],options:{hasTarget:!0},validate:function(e,n){const t=n.target,o=e.length;return!e||!(o<t)},message:e=>{const n=P(e,"min");if(n)return n;const t=document.getElementsByName(e);let o=t[0].minLength;return"This "+e+" should be at least "+o+" characters."}}),(0,C.l7)("exact_length",{params:["length","message"],validate(e,{length:n,message:t}){return!(e.length<1)||(t??"Must have "+n+" items")}}),window.axios=t(9669)["default"],window.Pikaday=t(4319),window.VueGallerySlideshow=T(),o["default"].use(x(),"vac"),window.Vue=o["default"]}},n={};function t(o){var a=n[o];if(void 0!==a)return a.exports;var u=n[o]={exports:{}};return e[o].call(u.exports,u,u.exports,t),u.exports}t.m=e,function(){var e=[];t.O=function(n,o,a,u){if(!o){var c=1/0;for(i=0;i<e.length;i++){o=e[i][0],a=e[i][1],u=e[i][2];for(var l=!0,r=0;r<o.length;r++)(!1&u||c>=u)&&Object.keys(t.O).every((function(e){return t.O[e](o[r])}))?o.splice(r--,1):(l=!1,u<c&&(c=u));if(l){e.splice(i--,1);var d=a();void 0!==d&&(n=d)}}return n}u=u||0;for(var i=e.length;i>0&&e[i-1][2]>u;i--)e[i]=e[i-1];e[i]=[o,a,u]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};t.O.j=function(n){return 0===e[n]};var n=function(n,o){var a,u,c=o[0],l=o[1],r=o[2],d=0;if(c.some((function(n){return 0!==e[n]}))){for(a in l)t.o(l,a)&&(t.m[a]=l[a]);if(r)var i=r(t)}for(n&&n(o);d<c.length;d++)u=c[d],t.o(e,u)&&e[u]&&e[u][0](),e[u]=0;return t.O(i)},o=self["webpackChunkgrand_web"]=self["webpackChunkgrand_web"]||[];o.forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o))}();var o=t.O(void 0,[998],(function(){return t(866)}));o=t.O(o)})();\ No newline at end of file