nadesiko3 3.3.1 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/batch/browsers.template.md +3 -0
- package/batch/build_browsers.nako3 +72 -0
- package/batch/build_command.nako3 +44 -0
- package/batch/build_nako_version.nako3 +14 -0
- package/batch/calc_hash.nako3 +29 -0
- package/batch/cmd_txt2json.nako3 +72 -0
- package/batch/command.txt +1046 -0
- package/batch/command_nakopad.txt +996 -0
- package/batch/download-extlib.nako3 +43 -0
- package/batch/gen_command_nakopad.nako3 +57 -0
- package/batch/jsplugin2text.nako3 +269 -0
- package/batch/pickup_command.nako3 +84 -0
- package/batch/pickup_reserved_words.nako3 +11 -0
- package/batch/publish_version.nako3 +46 -0
- package/batch/show_agents.js +14 -0
- package/batch/turtle2js.nako3 +21 -0
- package/demo/runscript3.html +35 -0
- package/package.json +8 -6
- package/release/_hash.txt +20 -20
- package/release/_script-tags.txt +14 -14
- package/release/command.json +1 -1
- package/release/command.json.js +1 -1
- package/release/command_cnako3.json +1 -1
- package/release/command_list.json +1 -1
- package/release/editor.js +1 -1
- package/release/plugin_csv.js +1 -1
- package/release/plugin_weykturtle3d.js.LICENSE.txt +3 -0
- package/release/stats.json +1 -1
- package/release/version.js +1 -1
- package/release/wnako3.js +1 -1
- package/src/cnako3mod.mjs +78 -53
- package/src/nako3.mjs +18 -10
- package/src/nako_errors.mjs +2 -2
- package/src/nako_from_dncl.mjs +4 -3
- package/src/nako_indent.mjs +26 -22
- package/src/nako_prepare.mjs +45 -6
- package/src/nako_version.mjs +2 -2
- package/src/plugin_csv.mjs +2 -1
- package/src/plugin_keigo.mjs +1 -1
- package/src/wnako3.mjs +19 -9
- package/src/wnako3_editor.mjs +4 -4
- package/test/node/async_test.mjs +1 -2
- package/test/node/commander_ja_test.mjs +1 -1
- package/test/node/error_message_test.mjs +3 -3
- package/test/node/node_test.mjs +2 -2
- package/test/node/{plugin_browser_ut_ajax_test.mjs → plugin_browser_ut_ajax_test.mjs.todo} +2 -2
- package/test/node/plugin_browser_ut_location_test.mjs +1 -1
- package/test/node/plugin_markup_test.mjs +3 -3
- package/test/node/plugin_math_test.mjs +2 -2
- package/test/node/plugin_node_test.mjs +3 -3
- package/test/node/plugin_test.mjs +1 -1
- package/test/node/require_nako3_test.mjs +2 -2
- package/test/node/side_effects_test.mjs +4 -4
- package/test/node/wnako3_editor_test.mjs +5 -5
- package/tools/nako3edit/html/daisyui/LICENSE +22 -0
- package/tools/nako3edit/html/daisyui/full.css +1 -0
- package/tools/nako3edit/html/daisyui/tailwind.min.css +1 -0
- package/tools/nako3edit/html/daisyui/version_2.14.1 +1 -0
- package/tools/nako3edit/html/edit.html +104 -19
- package/tools/nako3edit/html/files.html +84 -8
- package/tools/nako3edit/html/nako3edit.css +6 -7
- package/tools/nako3edit/index.nako3 +44 -5
package/release/plugin_csv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var t={8516:function(t,r,e){t.exports=e(4869)},9985:function(t){"use strict";var r={delimiter:",",eol:"\r\n"};t.exports={options:r,parse:function(t,e){null==e&&(e=r.delimiter),t=(t=(t+="\n").replace(/(\r\n|\r)/g,"\n")).replace(/\s+$/,"")+"\n";for(var o=new RegExp("^(.*?)([\\"+e+"\\n])"),
|
|
1
|
+
!function(){var t={8516:function(t,r,e){t.exports=e(4869)},9985:function(t){"use strict";var r={delimiter:",",eol:"\r\n"};t.exports={options:r,parse:function(t,e){null==e&&(e=r.delimiter),t=(t=(t+="\n").replace(/(\r\n|\r)/g,"\n")).replace(/\s+$/,"")+"\n";for(var o=new RegExp("^(.*?)([\\"+e+"\\n])"),n=function(t){return"string"==typeof t&&t.search(/^[0-9\.]+$/)>=0&&(t=parseFloat(t)),t},s=[],i=[],u="";""!=t;)if((u=t.charAt(0))!==e)if("\n"!==u)if((u=(t=t.replace(/^\s+/,"")).charAt(0))!==e)if("="!==u||'"'!==t.charAt(1))if('"'===u)if('""'!=t.substr(0,2)){for(var p=1,f="";p<t.length;){var l=t.charAt(p),h=t.charAt(p+1);if('"'!=l||'"'!=h)if('"'!=l)f+=l,p++;else{if(p++,h==e){p++,i.push(n(f)),f="";break}if("\n"==h){p++,i.push(n(f)),s.push(i),i=[];break}p++}else p+=2,f+='"'}t=t.substr(p)}else i.push(""),t=t.substr(2);else{var a=o.exec(t);if(!a){i.push(n(t)),s.push(i),i=[];break}"\n"==a[2]?(i.push(n(a[1])),s.push(i),i=[]):a[2]==e&&i.push(n(a[1])),t=t.substr(a[0].length)}else t=t.substr(1);else console.log("delimiter"),i.push(""),t=t.substr(e.length);else i.push(""),s.push(i),i=[],t=t.substr(1);else t=t.substr(1),i.push("");return i.length>0&&s.push(i),s},stringify:function(t,e,o){null==e&&(e=r.delimiter),null==o&&(o=r.eol);var n=function(t,r){return function(r){var e=!1;return((r=""+r).indexOf("\n")>=0||r.indexOf("\r")>=0)&&(e=!0),r.indexOf(t)>=0&&(e=!0),r.indexOf('"')>=0&&(e=!0,r=r.replace(/\"/g,'""')),e&&(r='"'+r+'"'),r}}(e);if(null==t)return"";for(var s="",i=0;i<t.length;i++){var u=t[i];if(null!=u){for(var p=0;p<u.length;p++)u[p]=n(u[p]);s+=u.join(e)+o}else s+=o}return s=s.replace(/(\r\n|\r|\n)/g,o)}}},4869:function(t,r,e){"use strict";var o=e(9985);function n(){for(var t in this.rows=[],this.options=[],this.useHeader=!1,o.options)this.options[t]=o.options[t]}n.prototype.toString=function(){var t=this.options.delimiter,r=this.options.eol;return o.stringify(this.rows,t,r)},n.prototype.parse=function(t,r){this.rows=o.parse(t,r)},n.prototype.fromString=n.prototype.parse,n.prototype.stringify=n.prototype.toString,n.prototype.getCell=function(t,r){return this.rows[t][r]},n.prototype.setCell=function(t,r,e){for(var o=this.getColSize();this.rows.length<=t;){for(var n=[],s=0;s<o;s++)n.push("");this.rows.push(n)}this.rows[t][r]=e},n.prototype.getColSize=function(){return 0==this.rows.length?0:this.rows[0].length},n.prototype.setArray=function(t){this.rows=t},n.prototype.getArray=function(){return this.rows},n.prototype.getRowValues=function(t){return t>=this.length?[]:this.rows[t]},n.prototype.getColValues=function(t){var r=[];for(var e in this.rows){var o=this.rows[e];r.push(o[t])}return r},n.prototype.find=function(t,r,e){null==e&&(e=this.useHeader?1:0);for(var o=e;o<this.rows.length;o++){if(this.rows[o][t]==r)return o}return-1},n.prototype.findAll=function(t,r,e,o){var n=[];null==e&&(e=this.useHeader?1:0),null==o&&(o=this.rows.length);for(var s=e;s<this.rows.length;s++){var i=this.rows[s];if(i[t]==r&&(n.push(i),o<=n.length))break}return n},n.prototype.filter=function(t,r){return this.rows.filter((function(e,o,n){if(null==e)return!1;var s=e[t];return r(s,o,n)}))},n.prototype.sort=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return r[t]>e[t]?1:-1}:function(r,e){return r[t]<e[t]?1:-1},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},n.prototype.sortNumber=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return parseFloat(r[t])-parseFloat(e[t])}:function(r,e){return parseFloat(e[t])-parseFloat(r[t])},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},n.prototype.insertRow=function(t,r){this.rows.splice(t,0,r)},n.prototype.insert=n.prototype.insertRow,n.prototype.add=function(t){this.rows.push(t)},n.prototype.deleteRow=function(t){return this.rows.splice(t,1)},n.prototype.insertCol=function(t,r){this.rows.map((function(e,o,n){return e.splice(t,0,r[o]),e}))},n.prototype.deleteCol=function(t){this.rows.map((function(r,e,o){return r.splice(t,1),r}))},Object.defineProperty(n.prototype,"length",{get:function(){return null==this.rows?0:this.rows.length}}),o.CSVObject=n,t.exports=o}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var s=r[o]={exports:{}};return t[o](s,s.exports,e),s.exports}!function(){"use strict";var t=e(8516);const r={"初期化":{type:"func",josi:[],pure:!0,fn:function(t){}},"CSV取得":{type:"func",josi:[["を","の","で"]],pure:!0,fn:function(r){return t.options.delimiter=",",t.parse(r)}},"TSV取得":{type:"func",josi:[["を","の","で"]],pure:!0,fn:function(r){return t.options.delimiter="\t",t.parse(r)}},"表CSV変換":{type:"func",josi:[["を"]],pure:!0,fn:function(r){return t.options.delimiter=",",t.stringify(r)}},"表TSV変換":{type:"func",josi:[["を"]],pure:!0,fn:function(r){return t.options.delimiter="\t",t.stringify(r)}}};"object"==typeof navigator&&"object"==typeof navigator.nako3&&navigator.nako3.addPluginObject("PluginCSV",r)}()}();
|