pict 1.0.291 → 1.0.292
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/dist/pict.compatible.js +2 -2
- package/dist/pict.compatible.js.map +1 -1
- package/dist/pict.compatible.min.js +1 -1
- package/dist/pict.compatible.min.js.map +1 -1
- package/dist/pict.js +2 -2
- package/dist/pict.js.map +1 -1
- package/dist/pict.min.js +1 -1
- package/dist/pict.min.js.map +1 -1
- package/package.json +1 -1
- package/source/filters/Filter.js +1 -1
package/dist/pict.compatible.js
CHANGED
|
@@ -5106,7 +5106,7 @@ try{if(!global.localStorage)return false;}catch(_){return false;}var val=global.
|
|
|
5106
5106
|
// presumably different callback function.
|
|
5107
5107
|
// This makes sure that own properties are retained, so that
|
|
5108
5108
|
// decorations and such are not lost along the way.
|
|
5109
|
-
module.exports=wrappy;function wrappy(fn,cb){if(fn&&cb)return wrappy(fn)(cb);if(typeof fn!=='function')throw new TypeError('need wrapper function');Object.keys(fn).forEach(function(k){wrapper[k]=fn[k];});return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==='function'&&ret!==cb){Object.keys(cb).forEach(function(k){ret[k]=cb[k];});}return ret;}}},{}],190:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],191:[function(require,module,exports){module.exports={"name":"pict","version":"1.0.
|
|
5109
|
+
module.exports=wrappy;function wrappy(fn,cb){if(fn&&cb)return wrappy(fn)(cb);if(typeof fn!=='function')throw new TypeError('need wrapper function');Object.keys(fn).forEach(function(k){wrapper[k]=fn[k];});return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==='function'&&ret!==cb){Object.keys(cb).forEach(function(k){ret[k]=cb[k];});}return ret;}}},{}],190:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],191:[function(require,module,exports){module.exports={"name":"pict","version":"1.0.292","description":"Pict browser library.","main":"source/Pict.js","scripts":{"start":"node source/Pict.js","test":"npx mocha -u tdd -R spec","tests":"npx mocha -u tdd --exit -R spec --grep","coverage":"npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec","build":"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-image:local","docker-dev-run":"docker run -it -d --name pict-dev -p 37447:8080 -p 19506:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/pict\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" pict-image:local","docker-dev-shell":"docker exec -it pict-dev /bin/bash","lint":"eslint source/**/*.js test/**/*.js","types":"tsc -p ."},"types":"types/source/Pict.d.ts","mocha":{"diff":true,"extension":["js"],"package":"./package.json","reporter":"spec","slow":"75","timeout":"5000","ui":"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},"repository":{"type":"git","url":"git+https://stevenvelozo@github.com/stevenvelozo/pict.git"},"author":"steven velozo <steven@velozo.com>","license":"MIT","bugs":{"url":"https://github.com/stevenvelozo/pict/issues"},"homepage":"https://github.com/stevenvelozo/pict#readme","devDependencies":{"@eslint/js":"^9.27.0","@types/jquery":"^3.5.32","@types/sinon":"^17.0.4","eslint":"^9.27.0","globals":"^16.2.0","quackage":"^1.0.42","sinon":"^20.0.0","typescript":"^5.8.3"},"dependencies":{"cachetrax":"^1.0.4","fable":"^3.1.17","pict-application":"^1.0.27","pict-provider":"^1.0.6","pict-template":"^1.0.12","pict-view":"^1.0.62"}};},{}],192:[function(require,module,exports){// This assumes Pict has been required in the browser. Delcare these as globals so linter can do its job.
|
|
5110
5110
|
/* global Pict, _Pict: writeable *//**
|
|
5111
5111
|
* Simple function to load a pict Application
|
|
5112
5112
|
*
|
|
@@ -5844,7 +5844,7 @@ if(tmpFilterConfig.Type=='InternalJoinDateRange'){if((!tmpFilterConfig.Values.St
|
|
|
5844
5844
|
* Generate a computed index for each filter in the meadow filter stanzas such that the overall address space is non-overlapping and stable.
|
|
5845
5845
|
*
|
|
5846
5846
|
* @param {FilterState} pFilterState
|
|
5847
|
-
*/},{key:"normalizeMeadowFilterStanzas",value:function normalizeMeadowFilterStanzas(pFilterState){var tmpTotalIndexCount=0;var _iterator25=_createForOfIteratorHelper(pFilterState.PreparedFilters),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var tmpFilterGroup=_step25.value;var tmpLocalIndices=new Set();tmpFilterGroup.Filters.sort(function(a,b){return a.Index-b.Index;});var _iterator27=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var tmpFilter=_step27.value;if(!tmpFilter.CoreEntity){tmpLocalIndices.add(tmpFilter.Index);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}tmpTotalIndexCount+=tmpLocalIndices.size;}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}var tmpComputedIndex=-tmpTotalIndexCount-1;var _iterator26=_createForOfIteratorHelper(pFilterState.PreparedFilters),_step26;try{var _loop4=function _loop4(){var tmpFilterGroup=_step26.value;var tmpCurrentIndex=null;var _iterator28=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _tmpFilter3=_step28.value;if(_tmpFilter3.Index!==tmpCurrentIndex){++tmpComputedIndex;tmpCurrentIndex=_tmpFilter3.Index;}_tmpFilter3.ComputedIndex=tmpComputedIndex;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _iterator29=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _tmpFilter4=_step29.value;if(_tmpFilter4.ValueTemplate){_tmpFilter4.ValueTemplate=_tmpFilter4.ValueTemplate.replace(/\[([^\]]+)\]/g,function(match){var _tmpFilterGroup$Filte;var tmpLocalIndex=match.substring(5,match.length-1);var tmpGlobalIndex=(_tmpFilterGroup$Filte=tmpFilterGroup.Filters.find(function(f){return f.Index==tmpLocalIndex;}))===null||_tmpFilterGroup$Filte===void 0?void 0:_tmpFilterGroup$Filte.ComputedIndex;if(
|
|
5847
|
+
*/},{key:"normalizeMeadowFilterStanzas",value:function normalizeMeadowFilterStanzas(pFilterState){var tmpTotalIndexCount=0;var _iterator25=_createForOfIteratorHelper(pFilterState.PreparedFilters),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var tmpFilterGroup=_step25.value;var tmpLocalIndices=new Set();tmpFilterGroup.Filters.sort(function(a,b){return a.Index-b.Index;});var _iterator27=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var tmpFilter=_step27.value;if(!tmpFilter.CoreEntity){tmpLocalIndices.add(tmpFilter.Index);}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}tmpTotalIndexCount+=tmpLocalIndices.size;}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}var tmpComputedIndex=-tmpTotalIndexCount-1;var _iterator26=_createForOfIteratorHelper(pFilterState.PreparedFilters),_step26;try{var _loop4=function _loop4(){var tmpFilterGroup=_step26.value;var tmpCurrentIndex=null;var _iterator28=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _tmpFilter3=_step28.value;if(_tmpFilter3.Index!==tmpCurrentIndex){++tmpComputedIndex;tmpCurrentIndex=_tmpFilter3.Index;}_tmpFilter3.ComputedIndex=tmpComputedIndex;}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}var _iterator29=_createForOfIteratorHelper(tmpFilterGroup.Filters),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _tmpFilter4=_step29.value;if(_tmpFilter4.ValueTemplate){_tmpFilter4.ValueTemplate=_tmpFilter4.ValueTemplate.replace(/\[([^\]]+)\]/g,function(match){var _tmpFilterGroup$Filte;var tmpLocalIndex=match.substring(5,match.length-1);var tmpGlobalIndex=(_tmpFilterGroup$Filte=tmpFilterGroup.Filters.find(function(f){return f.Index==tmpLocalIndex;}))===null||_tmpFilterGroup$Filte===void 0?void 0:_tmpFilterGroup$Filte.ComputedIndex;if(tmpGlobalIndex==null){throw new Error("Filter index ".concat(tmpLocalIndex," not found in group filters."));}return match.replace(tmpLocalIndex,tmpGlobalIndex);});}}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}};for(_iterator26.s();!(_step26=_iterator26.n()).done;){_loop4();}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}/**
|
|
5848
5848
|
* @param {FilterState} pFilterState
|
|
5849
5849
|
*/},{key:"compileMeadowFilterStanzas",value:function compileMeadowFilterStanzas(pFilterState){var _this86=this;var tmpBundleConfig=[];//TODO: mathematically solve the number line
|
|
5850
5850
|
// planned synthesized syntax for running on the server
|