diff --git a/404.html b/404.html index 64b3846..a820cc2 100644 --- a/404.html +++ b/404.html @@ -10,5 +10,5 @@ - + diff --git a/490.ca01ad3673120edd.js b/490.0d5bc239be006d51.js similarity index 50% rename from 490.ca01ad3673120edd.js rename to 490.0d5bc239be006d51.js index a4f89ed..aa4e55e 100644 --- a/490.ca01ad3673120edd.js +++ b/490.0d5bc239be006d51.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[490],{1490:(Z,u,e)=>{e.r(u),e.d(u,{ConditionsComponent:()=>r});var d=e(6814),a=e(4650),s=e(1978),t=e(5879);const l=function(){return["json"]};let r=(()=>{class o{constructor(){this.ruleJson='{\n ...\n "showIf": {\n "conditions": [\n ["path", "operator", "value"],\n ...\n ],\n "logicalType": "$or"\n },\n}',this.demo1={a:{type:"group",name:"groupA",children:{switchA:{type:"switch",name:"switchA",default:!0},textA:{type:"text",name:"textA",default:"A",showIf:{conditions:[["a.switchA","$ne",!1],["b.switchB","$eq",!0]],logicalType:"$or"}}},expanded:!0},b:{type:"group",name:"groupB",children:{switchB:{type:"switch",name:"switchB",default:!1},textB:{type:"text",name:"textB",default:"B"}},expanded:!0}},this.demo2={array:{name:"Array",type:"tabs",default:[{switch:!0,text:"A"},{switch:!0,text:"B"}],template:{name:"No.<%= i + 1%>",children:{switch:{type:"switch",name:"switch",default:!0},text:{type:"text",name:"text",showIf:{conditions:[["switch","$eq",!0]]}}}},expanded:!0,mode:"list"}}}static#t=this.\u0275fac=function(n){return new(n||o)};static#e=this.\u0275cmp=t.Xpm({type:o,selectors:[["app-conditions"]],standalone:!0,features:[t.jDz],decls:107,vars:6,consts:[["subtitle","Used for controling the visibility of fields.",3,"title"],["id","rule"],["href","conditions#rule"],[3,"highlight","languages"],["id","demo1"],["href","conditions#demo1"],[3,"config"],["id","demo2"],["href","conditions#demo2"]],template:function(n,i){1&n&&(t._UZ(0,"app-page-header",0),t.TgZ(1,"h2",1)(2,"a",2),t._uU(3,"Rule"),t.qZA()(),t.TgZ(4,"p"),t._uU(5," Add "),t.TgZ(6,"code"),t._uU(7,"showIf"),t.qZA(),t._uU(8," to control the visibility of the field.\n"),t.qZA(),t.TgZ(9,"pre"),t._UZ(10,"code",3),t.qZA(),t.TgZ(11,"table")(12,"thead")(13,"tr")(14,"th"),t._uU(15,"Parameter"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Description"),t.qZA()()(),t.TgZ(18,"tbody")(19,"tr")(20,"td"),t._uU(21,"path"),t.qZA(),t.TgZ(22,"td"),t._uU(23," At first, it will find the condition form control from the parent form group of current field. "),t._UZ(24,"br"),t._uU(25," If the control cannot be found, it will continue to find from the root form group. "),t.qZA()(),t.TgZ(26,"tr")(27,"td"),t._uU(28,"operator"),t.qZA(),t.TgZ(29,"td")(30,"li")(31,"code"),t._uU(32,"$eq"),t.qZA(),t._uU(33," - "),t.TgZ(34,"span"),t._uU(35,"equal"),t.qZA()(),t.TgZ(36,"li")(37,"code"),t._uU(38,"$ne"),t.qZA(),t._uU(39," - "),t.TgZ(40,"span"),t._uU(41,"not equal"),t.qZA()(),t.TgZ(42,"li")(43,"code"),t._uU(44,"$gt"),t.qZA(),t._uU(45," - "),t.TgZ(46,"span"),t._uU(47,"greater than"),t.qZA()(),t.TgZ(48,"li")(49,"code"),t._uU(50,"$lt"),t.qZA(),t._uU(51," - "),t.TgZ(52,"span"),t._uU(53,"less than"),t.qZA()(),t.TgZ(54,"li")(55,"code"),t._uU(56,"$gte"),t.qZA(),t._uU(57," - "),t.TgZ(58,"span"),t._uU(59,"greater than or equal"),t.qZA()(),t.TgZ(60,"li")(61,"code"),t._uU(62,"$lte"),t.qZA(),t._uU(63," - "),t.TgZ(64,"span"),t._uU(65,"less than or equal"),t.qZA()(),t.TgZ(66,"li")(67,"code"),t._uU(68,"$in"),t.qZA(),t._uU(69," - "),t.TgZ(70,"span"),t._uU(71,"in the set"),t.qZA()(),t.TgZ(72,"li")(73,"code"),t._uU(74,"$nin"),t.qZA(),t._uU(75," - "),t.TgZ(76,"span"),t._uU(77,"not in the set"),t.qZA()()()(),t.TgZ(78,"tr")(79,"td"),t._uU(80,"value"),t.qZA(),t.TgZ(81,"td"),t._uU(82,"The value of condition form control."),t.qZA()(),t.TgZ(83,"tr")(84,"td"),t._uU(85,"logicalType"),t.qZA(),t.TgZ(86,"td")(87,"li")(88,"code"),t._uU(89,"$and"),t.qZA(),t._uU(90," - "),t.TgZ(91,"span"),t._uU(92,"All the conditions should be true"),t.qZA()(),t.TgZ(93,"li")(94,"code"),t._uU(95,"$or"),t.qZA(),t._uU(96," - "),t.TgZ(97,"span"),t._uU(98,"As long as one condition is true"),t.qZA()()()()()(),t.TgZ(99,"h2",4)(100,"a",5),t._uU(101,"Demo1"),t.qZA()(),t._UZ(102,"app-example-viewer",6),t.TgZ(103,"h2",7)(104,"a",8),t._uU(105,"Demo2"),t.qZA()(),t._UZ(106,"app-example-viewer",6)),2&n&&(t.Q6J("title","Conditions"),t.xp6(10),t.Q6J("highlight",i.ruleJson)("languages",t.DdM(5,l)),t.xp6(92),t.Q6J("config",i.demo1),t.xp6(4),t.Q6J("config",i.demo2))},dependencies:[d.ez,s.qA,s.Zb,a._l,a.y$],changeDetection:0})}return o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[490],{1490:(Z,u,e)=>{e.r(u),e.d(u,{ConditionsComponent:()=>r});var l=e(6814),a=e(4650),s=e(1978),t=e(5879);const d=function(){return["json"]};let r=(()=>{class o{constructor(){this.ruleJson='{\n ...\n "showIf": {\n "conditions": [\n ["path", "operator", "value"],\n ...\n ],\n "logicalType": "$or"\n },\n}',this.demo1={a:{type:"group",name:"groupA",children:{switchA:{type:"switch",name:"switchA",default:!0},textA:{type:"text",name:"textA",default:"A",showIf:{conditions:[["a.switchA","$ne",!1],["b.switchB","$eq",!0]],logicalType:"$or"}}},expanded:!0},b:{type:"group",name:"groupB",children:{switchB:{type:"switch",name:"switchB",default:!1},textB:{type:"text",name:"textB",default:"B"}},expanded:!0}},this.demo2={array:{name:"Array",type:"tabs",default:[{switch:!0,text:"A"},{switch:!0,text:"B"}],template:{name:"No.<%= i + 1%>",children:{switch:{type:"switch",name:"switch",default:!0},text:{type:"text",name:"text",showIf:{conditions:[["switch","$eq",!0]]}}}},expanded:!0,mode:"list"}}}static#t=this.\u0275fac=function(n){return new(n||o)};static#e=this.\u0275cmp=t.Xpm({type:o,selectors:[["app-conditions"]],standalone:!0,features:[t.jDz],decls:109,vars:6,consts:[["subtitle","Used for controling the visibility of fields.",3,"title"],["id","rule"],["href","conditions#rule"],[3,"highlight","languages"],["id","demo1"],["href","conditions#demo1"],[3,"config"],["id","demo2"],["href","conditions#demo2"]],template:function(n,i){1&n&&(t._UZ(0,"app-page-header",0),t.TgZ(1,"h2",1)(2,"a",2),t._uU(3,"Rule"),t.qZA()(),t.TgZ(4,"p"),t._uU(5," Add "),t.TgZ(6,"code"),t._uU(7,"showIf"),t.qZA(),t._uU(8," to control the visibility of the field.\n"),t.qZA(),t.TgZ(9,"pre"),t._UZ(10,"code",3),t.qZA(),t.TgZ(11,"table")(12,"thead")(13,"tr")(14,"th"),t._uU(15,"Parameter"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Description"),t.qZA()()(),t.TgZ(18,"tbody")(19,"tr")(20,"td"),t._uU(21,"path"),t.qZA(),t.TgZ(22,"td"),t._uU(23," At first, it will find the condition form control from the parent form group of current field. "),t._UZ(24,"br"),t._uU(25," If the control cannot be found, it will continue to find from the root form group. "),t.qZA()(),t.TgZ(26,"tr")(27,"td"),t._uU(28,"operator"),t.qZA(),t.TgZ(29,"td")(30,"ul")(31,"li")(32,"code"),t._uU(33,"$eq"),t.qZA(),t._uU(34," - "),t.TgZ(35,"span"),t._uU(36,"equal"),t.qZA()(),t.TgZ(37,"li")(38,"code"),t._uU(39,"$ne"),t.qZA(),t._uU(40," - "),t.TgZ(41,"span"),t._uU(42,"not equal"),t.qZA()(),t.TgZ(43,"li")(44,"code"),t._uU(45,"$gt"),t.qZA(),t._uU(46," - "),t.TgZ(47,"span"),t._uU(48,"greater than"),t.qZA()(),t.TgZ(49,"li")(50,"code"),t._uU(51,"$lt"),t.qZA(),t._uU(52," - "),t.TgZ(53,"span"),t._uU(54,"less than"),t.qZA()(),t.TgZ(55,"li")(56,"code"),t._uU(57,"$gte"),t.qZA(),t._uU(58," - "),t.TgZ(59,"span"),t._uU(60,"greater than or equal"),t.qZA()(),t.TgZ(61,"li")(62,"code"),t._uU(63,"$lte"),t.qZA(),t._uU(64," - "),t.TgZ(65,"span"),t._uU(66,"less than or equal"),t.qZA()(),t.TgZ(67,"li")(68,"code"),t._uU(69,"$in"),t.qZA(),t._uU(70," - "),t.TgZ(71,"span"),t._uU(72,"in the set"),t.qZA()(),t.TgZ(73,"li")(74,"code"),t._uU(75,"$nin"),t.qZA(),t._uU(76," - "),t.TgZ(77,"span"),t._uU(78,"not in the set"),t.qZA()()()()(),t.TgZ(79,"tr")(80,"td"),t._uU(81,"value"),t.qZA(),t.TgZ(82,"td"),t._uU(83,"The value of condition form control."),t.qZA()(),t.TgZ(84,"tr")(85,"td"),t._uU(86,"logicalType"),t.qZA(),t.TgZ(87,"td")(88,"ul")(89,"li")(90,"code"),t._uU(91,"$and"),t.qZA(),t._uU(92," - "),t.TgZ(93,"span"),t._uU(94,"All the conditions should be true"),t.qZA()(),t.TgZ(95,"li")(96,"code"),t._uU(97,"$or"),t.qZA(),t._uU(98," - "),t.TgZ(99,"span"),t._uU(100,"As long as one condition is true"),t.qZA()()()()()()(),t.TgZ(101,"h2",4)(102,"a",5),t._uU(103,"Demo1"),t.qZA()(),t._UZ(104,"app-example-viewer",6),t.TgZ(105,"h2",7)(106,"a",8),t._uU(107,"Demo2"),t.qZA()(),t._UZ(108,"app-example-viewer",6)),2&n&&(t.Q6J("title","Conditions"),t.xp6(10),t.Q6J("highlight",i.ruleJson)("languages",t.DdM(5,d)),t.xp6(94),t.Q6J("config",i.demo1),t.xp6(4),t.Q6J("config",i.demo2))},dependencies:[l.ez,s.qA,s.Zb,a._l,a.y$],changeDetection:0})}return o})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index 64b3846..a820cc2 100644 --- a/index.html +++ b/index.html @@ -10,5 +10,5 @@ - + diff --git a/runtime.e15f25d56820db26.js b/runtime.522978f476daf420.js similarity index 97% rename from runtime.e15f25d56820db26.js rename to runtime.522978f476daf420.js index 1bf2d80..a947a39 100644 --- a/runtime.e15f25d56820db26.js +++ b/runtime.522978f476daf420.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(o,t,f,i)=>{if(!t){var a=1/0;for(n=0;n=i)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(l=!1,i0&&e[n-1][2]>i;n--)e[n]=e[n-1];e[n]=[t,f,i]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{164:"398aa1ab4206fa39",254:"f1e1efde161dff92",266:"abd53745aa8a7257",346:"19c4801d0aeacda7",373:"0831fc66775c9d0b",490:"ca01ad3673120edd",576:"ab629d8603dae832",668:"81a125715341be18",832:"5bbf7b0a93895949",914:"e7fb1e38ac5e0f09",923:"b097b3a476b0024c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="docs:";r.l=(t,f,i,n)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==i)for(var d=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,i)=>{var n=r.o(e,f)?e[f]:void 0;if(0!==n)if(n)i.push(n[2]);else if(666!=f){var a=new Promise((u,s)=>n=e[f]=[u,s]);i.push(n[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,u=>{if(r.o(e,f)&&(0!==(n=e[f])&&(e[f]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,n[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var o=(f,i)=>{var d,c,[n,a,l]=i,u=0;if(n.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(i);u{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(o,t,f,i)=>{if(!t){var a=1/0;for(n=0;n=i)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(l=!1,i0&&e[n-1][2]>i;n--)e[n]=e[n-1];e[n]=[t,f,i]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{164:"398aa1ab4206fa39",254:"f1e1efde161dff92",266:"abd53745aa8a7257",346:"19c4801d0aeacda7",373:"0831fc66775c9d0b",490:"0d5bc239be006d51",576:"ab629d8603dae832",668:"81a125715341be18",832:"5bbf7b0a93895949",914:"e7fb1e38ac5e0f09",923:"b097b3a476b0024c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="docs:";r.l=(t,f,i,n)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==i)for(var d=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,i)=>{var n=r.o(e,f)?e[f]:void 0;if(0!==n)if(n)i.push(n[2]);else if(666!=f){var a=new Promise((u,s)=>n=e[f]=[u,s]);i.push(n[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,u=>{if(r.o(e,f)&&(0!==(n=e[f])&&(e[f]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,n[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var o=(f,i)=>{var d,c,[n,a,l]=i,u=0;if(n.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(i);u