@makeform/choice 1.0.2 → 1.0.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Logs
2
2
 
3
+ ## v1.0.3
4
+
5
+ - ensure translated value to be string, otherwise `n/a` will be shown.
6
+
7
+
3
8
  ## v1.0.2
4
9
 
5
10
  - release missing dist file
package/index.html CHANGED
@@ -1 +1 @@
1
- <div><div class="form-group has-tips manual" ld="base error-root" plug="widget"><div ld="display" data-display="block"><label class="d-flex align-items-end flex-wrap"><div><span ld="label"></span><span class="text-danger ml-2" ld="is-required">*</span></div><div class="flex-grow-1"></div><div class="m-edit"><div class="mf-note text-sm" ld="limitation"></div></div></label></div><div class="text-sm text-muted" ld="display" data-display="block"><div ld="desc" style="margin:-.6em 0 .7em"></div></div><select class="m-edit form-control" ld="input"><option value="">...</option><option ld-each="option">...</option></select><div class="m-edit"><div class="hover-tip tip-sm"><div ld-each="error"></div></div></div><div class="m-edit" ld="display" data-display="block"><div class="mf-note text-sm mt-2 note" ld-each="note"></div></div><div class="m-view"><div ld="content"></div></div></div><script type="@plotdb/block">var mod;module.exports={pkg:{name:"@makeform/choice",extend:{name:"@makeform/common"}},init:function(n){return n.pubsub.fire("subinit",{mod:mod(n)})}};mod=function(n){var i,e,t,r,o,u,a,d;i=n.root,e=n.ctx,t=n.data,r=n.parent,o=n.t,u=n.i18n;a=e.ldview;d={};return{init:function(){var n,e,t=this;this.on("change",function(n){t.mod.child.view.get("input").value=n||"";return t.mod.child.view.render(["input","content"])});n=function(n){var e;e=n.node;return t.value(e.value)};return this.mod.child.view=e=new a({root:i,action:{input:{input:n},change:{input:n}},handler:{content:function(n){var e;e=n.node;if(t.isEmpty()){return"n/a"}else{return e.innerText=o(t.content())}},option:{list:function(){return t.mod.info.config.values||[]},key:function(n){return n},handler:function(n){var e,t;e=n.node,t=n.data;e.setAttribute("value",t);return e.innerText=o(t)}},input:function(n){var e;e=n.node;if(!t.mod.info.meta.readonly){e.removeAttribute("readonly");e.removeAttribute("disabled")}else{e.setAttribute("readonly",null);e.setAttribute("disabled",null)}e.value=t.value();return e.classList.toggle("is-invalid",t.status()===2)}}})},render:function(){return this.mod.child.view.render()}}};</script></div>
1
+ <div><div class="form-group has-tips manual" ld="base error-root" plug="widget"><div ld="display" data-display="block"><label class="d-flex align-items-end flex-wrap"><div><span ld="label"></span><span class="text-danger ml-2" ld="is-required">*</span></div><div class="flex-grow-1"></div><div class="m-edit"><div class="mf-note text-sm" ld="limitation"></div></div></label></div><div class="text-sm text-muted" ld="display" data-display="block"><div ld="desc" style="margin:-.6em 0 .7em"></div></div><select class="m-edit form-control" ld="input"><option value="">...</option><option ld-each="option">...</option></select><div class="m-edit"><div class="hover-tip tip-sm"><div ld-each="error"></div></div></div><div class="m-edit" ld="display" data-display="block"><div class="mf-note text-sm mt-2 note" ld-each="note"></div></div><div class="m-view"><div ld="content"></div></div></div><script type="@plotdb/block">var mod;module.exports={pkg:{name:"@makeform/choice",extend:{name:"@makeform/common"}},init:function(n){return n.pubsub.fire("subinit",{mod:mod(n)})}};mod=function(n){var e,t,i,r,o,u,a,d;e=n.root,t=n.ctx,i=n.data,r=n.parent,o=n.t,u=n.i18n;a=t.ldview;d={};return{init:function(){var n,t,i=this;this.on("change",function(n){i.mod.child.view.get("input").value=n||"";return i.mod.child.view.render(["input","content"])});n=function(n){var t;t=n.node;return i.value(t.value)};return this.mod.child.view=t=new a({root:e,action:{input:{input:n},change:{input:n}},handler:{content:function(n){var t,e;t=n.node;if(i.isEmpty()||typeof(e=i.content())!=="string"){return"n/a"}else{return o(e)}},option:{list:function(){return i.mod.info.config.values||[]},key:function(n){return n},handler:function(n){var t,e;t=n.node,e=n.data;t.setAttribute("value",e);return t.innerText=o(e)}},input:function(n){var t;t=n.node;if(!i.mod.info.meta.readonly){t.removeAttribute("readonly");t.removeAttribute("disabled")}else{t.setAttribute("readonly",null);t.setAttribute("disabled",null)}t.value=i.value();return t.classList.toggle("is-invalid",i.status()===2)}}})},render:function(){return this.mod.child.view.render()}}};</script></div>
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@makeform/choice","version":"1.0.2","description":"","scripts":{},"keywords":[],"author":"zbryikt","license":"MIT","dependencies":{"@plotdb/srcbuild":"^0.0.65"},"devDependencies":{"fedep":"^1.1.11"}}
1
+ {"name":"@makeform/choice","version":"1.0.3","description":"","scripts":{},"keywords":[],"author":"zbryikt","license":"MIT","dependencies":{"@plotdb/srcbuild":"^0.0.68"},"devDependencies":{"fedep":"^1.3.0"}}