@appbaseio/reactivecore
Advanced tools
Comparing version 8.1.6 to 8.2.6
@@ -1,1 +0,1 @@ | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.setComponentProps=setComponentProps;exports.updateComponentProps=updateComponentProps;exports.removeComponentProps=removeComponentProps;var _constants=require('../constants');var _validProps=require('../utils/validProps');var _validProps2=_interopRequireDefault(_validProps);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var getfilteredOptions=function getfilteredOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var filteredOptions={};Object.keys(options).forEach(function(option){if(_validProps2.default.includes(option)){filteredOptions[option]=options[option];}});return filteredOptions;};function setComponentProps(component,options){return{type:_constants.SET_PROPS,component:component,options:getfilteredOptions(options)};}function updateComponentProps(component,options){return{type:_constants.UPDATE_PROPS,component:component,options:getfilteredOptions(options)};}function removeComponentProps(component){return{type:_constants.REMOVE_PROPS,component:component};} | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.setComponentProps=setComponentProps;exports.updateComponentProps=updateComponentProps;exports.removeComponentProps=removeComponentProps;var _constants=require('../constants');var _constants2=require('../utils/constants');var getfilteredOptions=function getfilteredOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var filteredOptions={};Object.keys(options).forEach(function(option){if(_constants2.validProps.includes(option)){filteredOptions[option]=options[option];}});return filteredOptions;};function setComponentProps(component,options){return{type:_constants.SET_PROPS,component:component,options:getfilteredOptions(options)};}function updateComponentProps(component,options){return{type:_constants.UPDATE_PROPS,component:component,options:getfilteredOptions(options)};}function removeComponentProps(component){return{type:_constants.REMOVE_PROPS,component:component};} |
@@ -1,1 +0,1 @@ | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.validProps=exports.Reducers=exports.polyfills=exports.storeKey=exports.Actions=exports.suggestions=exports.causes=exports.helper=undefined;exports.default=configureStore;var _redux=require('redux');var _reduxThunk=require('redux-thunk');var _reduxThunk2=_interopRequireDefault(_reduxThunk);var _reducers=require('./reducers');var _reducers2=_interopRequireDefault(_reducers);var _constants=require('./constants');var _actions=require('./actions');var Actions=_interopRequireWildcard(_actions);var _helper=require('./utils/helper');var helper=_interopRequireWildcard(_helper);var _suggestions=require('./utils/suggestions');var _suggestions2=_interopRequireDefault(_suggestions);var _validProps=require('./utils/validProps');var _validProps2=_interopRequireDefault(_validProps);var _polyfills=require('./utils/polyfills');var _polyfills2=_interopRequireDefault(_polyfills);var _causes=require('./utils/causes');var _causes2=_interopRequireDefault(_causes);var _valueReducer=require('./reducers/valueReducer');var _valueReducer2=_interopRequireDefault(_valueReducer);var _queryReducer=require('./reducers/queryReducer');var _queryReducer2=_interopRequireDefault(_queryReducer);var _queryOptionsReducer=require('./reducers/queryOptionsReducer');var _queryOptionsReducer2=_interopRequireDefault(_queryOptionsReducer);var _dependencyTreeReducer=require('./reducers/dependencyTreeReducer');var _dependencyTreeReducer2=_interopRequireDefault(_dependencyTreeReducer);var _propsReducer=require('./reducers/propsReducer');var _propsReducer2=_interopRequireDefault(_propsReducer);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var storeKey=_constants.STORE_KEY;var suggestions=_suggestions2.default;var causes=_causes2.default;var Reducers={valueReducer:_valueReducer2.default,queryOptionsReducer:_queryOptionsReducer2.default,queryReducer:_queryReducer2.default,dependencyTreeReducer:_dependencyTreeReducer2.default,propsReducer:_propsReducer2.default};exports.helper=helper;exports.causes=causes;exports.suggestions=suggestions;exports.Actions=Actions;exports.storeKey=storeKey;exports.polyfills=_polyfills2.default;exports.Reducers=Reducers;exports.validProps=_validProps2.default;var composeEnhancers=typeof window==='object'&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):_redux.compose;var enhancer=composeEnhancers((0,_redux.applyMiddleware)(_reduxThunk2.default));function configureStore(initialState){return(0,_redux.createStore)(_reducers2.default,initialState,enhancer);} | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.constants=exports.Reducers=exports.polyfills=exports.storeKey=exports.Actions=exports.suggestions=exports.causes=exports.helper=undefined;exports.default=configureStore;var _redux=require('redux');var _reduxThunk=require('redux-thunk');var _reduxThunk2=_interopRequireDefault(_reduxThunk);var _reducers=require('./reducers');var _reducers2=_interopRequireDefault(_reducers);var _constants=require('./constants');var _actions=require('./actions');var Actions=_interopRequireWildcard(_actions);var _helper=require('./utils/helper');var helper=_interopRequireWildcard(_helper);var _suggestions=require('./utils/suggestions');var _suggestions2=_interopRequireDefault(_suggestions);var _constants2=require('./utils/constants');var _constants3=_interopRequireDefault(_constants2);var _polyfills=require('./utils/polyfills');var _polyfills2=_interopRequireDefault(_polyfills);var _causes=require('./utils/causes');var _causes2=_interopRequireDefault(_causes);var _valueReducer=require('./reducers/valueReducer');var _valueReducer2=_interopRequireDefault(_valueReducer);var _queryReducer=require('./reducers/queryReducer');var _queryReducer2=_interopRequireDefault(_queryReducer);var _queryOptionsReducer=require('./reducers/queryOptionsReducer');var _queryOptionsReducer2=_interopRequireDefault(_queryOptionsReducer);var _dependencyTreeReducer=require('./reducers/dependencyTreeReducer');var _dependencyTreeReducer2=_interopRequireDefault(_dependencyTreeReducer);var _propsReducer=require('./reducers/propsReducer');var _propsReducer2=_interopRequireDefault(_propsReducer);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var storeKey=_constants.STORE_KEY;var suggestions=_suggestions2.default;var causes=_causes2.default;var Reducers={valueReducer:_valueReducer2.default,queryOptionsReducer:_queryOptionsReducer2.default,queryReducer:_queryReducer2.default,dependencyTreeReducer:_dependencyTreeReducer2.default,propsReducer:_propsReducer2.default};exports.helper=helper;exports.causes=causes;exports.suggestions=suggestions;exports.Actions=Actions;exports.storeKey=storeKey;exports.polyfills=_polyfills2.default;exports.Reducers=Reducers;exports.constants=_constants3.default;var composeEnhancers=typeof window==='object'&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):_redux.compose;var enhancer=composeEnhancers((0,_redux.applyMiddleware)(_reduxThunk2.default));function configureStore(initialState){return(0,_redux.createStore)(_reducers2.default,initialState,enhancer);} |
@@ -1,1 +0,1 @@ | ||
Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[typeof Symbol==='function'?Symbol.iterator:'@@iterator'](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if((typeof Symbol==='function'?Symbol.iterator:'@@iterator')in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var filterComponents=['NUMBERBOX','TAGCLOUD','TOGGLEBUTTON','DATEPICKER','DATERANGE','MULTIDATALIST','MULTIDROPDOWNLIST','MULTILIST','SINGLEDATALIST','SINGLEDROPDOWNLIST','SINGLELIST','DYNAMICRANGESLIDER','MULTIDROPDOWNRANGE','MULTIRANGE','RANGESLIDER','RATINGSFILTER','SINGLEDROPDOWNRANGE','SINGLERANGE'];var rangeComponents=['DATERANGE','DYNAMICRANGESLIDER','RANGESLIDER','RANGEINPUT','RATINGSFILTER'];var rangeObjectComponents=['SINGLERANGE','SINGLEDROPDOWNRANGE','MULTIRANGE','MULTIDROPDOWNRANGE'];function parseRangeObject(filterKey,rangeObject){return filterKey+'='+rangeObject.start+'~'+rangeObject.end;}function parseFilterValue(componentId,componentValues){var label=componentValues.label,value=componentValues.value,componentType=componentValues.componentType;var filterKey=label||componentId;if(rangeComponents.includes(componentType)){return filterKey+'='+value[0]+'~'+value[1];}else if(rangeObjectComponents.includes(componentType)){if(Array.isArray(value)){return value.map(function(item){return parseRangeObject(filterKey,item);}).join();}return parseRangeObject(filterKey,value);}else if(Array.isArray(value)){var isObject=typeof value[0]==='object'&&value[0]!==null;return isObject?value.map(function(item){return filterKey+'='+item.value;}).join():value.map(function(item){return filterKey+'='+item;}).join();}return filterKey+'='+value;}function getFilterString(selectedValues){if(selectedValues&&Object.keys(selectedValues).length){return Object.entries(selectedValues).filter(function(_ref){var _ref2=_slicedToArray(_ref,2),componentValues=_ref2[1];return filterComponents.includes(componentValues.componentType)&&(componentValues.value&&componentValues.value.length||componentValues.value.start||componentValues.value.end);}).map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),componentId=_ref4[0],componentValues=_ref4[1];return parseFilterValue(componentId,componentValues);}).join();}return null;}exports.filterComponents=filterComponents;exports.rangeComponents=rangeComponents;exports.rangeObjectComponents=rangeObjectComponents;exports.parseFilterValue=parseFilterValue;exports.parseRangeObject=parseRangeObject;exports.default=getFilterString; | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.parseRangeObject=exports.parseFilterValue=exports.rangeObjectComponents=exports.rangeComponents=exports.filterComponents=undefined;var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[typeof Symbol==='function'?Symbol.iterator:'@@iterator'](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if((typeof Symbol==='function'?Symbol.iterator:'@@iterator')in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var _constants=require('../utils/constants');var filterComponents=[_constants.componentTypes.numberBox,_constants.componentTypes.tagCloud,_constants.componentTypes.toggleButton,_constants.componentTypes.datePicker,_constants.componentTypes.dateRange,_constants.componentTypes.multiDataList,_constants.componentTypes.multiDropdownList,_constants.componentTypes.multiList,_constants.componentTypes.singleDataList,_constants.componentTypes.singleDropdownList,_constants.componentTypes.singleList,_constants.componentTypes.dynamicRangeSlider,_constants.componentTypes.multiDropdownRange,_constants.componentTypes.multiRange,_constants.componentTypes.rangeSlider,_constants.componentTypes.ratingsFilter,_constants.componentTypes.singleDropdownRange,_constants.componentTypes.singleRange];var rangeComponents=[_constants.componentTypes.dateRange,_constants.componentTypes.dynamicRangeSlider,_constants.componentTypes.rangeSlider,_constants.componentTypes.rangeInput,_constants.componentTypes.ratingsFilter];var rangeObjectComponents=[_constants.componentTypes.singleRange,_constants.componentTypes.singleDropdownRange,_constants.componentTypes.multiRange,_constants.componentTypes.multiDropdownRange];function parseRangeObject(filterKey,rangeObject){return filterKey+'='+rangeObject.start+'~'+rangeObject.end;}function parseFilterValue(componentId,componentValues){var label=componentValues.label,value=componentValues.value,componentType=componentValues.componentType;var filterKey=label||componentId;if(rangeComponents.includes(componentType)){return filterKey+'='+value[0]+'~'+value[1];}else if(rangeObjectComponents.includes(componentType)){if(Array.isArray(value)){return value.map(function(item){return parseRangeObject(filterKey,item);}).join();}return parseRangeObject(filterKey,value);}else if(Array.isArray(value)){var isObject=typeof value[0]==='object'&&value[0]!==null;return isObject?value.map(function(item){return filterKey+'='+item.value;}).join():value.map(function(item){return filterKey+'='+item;}).join();}return filterKey+'='+value;}function getFilterString(selectedValues){if(selectedValues&&Object.keys(selectedValues).length){return Object.entries(selectedValues).filter(function(_ref){var _ref2=_slicedToArray(_ref,2),componentValues=_ref2[1];return filterComponents.includes(componentValues.componentType)&&(componentValues.value&&componentValues.value.length||componentValues.value.start||componentValues.value.end);}).map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),componentId=_ref4[0],componentValues=_ref4[1];return parseFilterValue(componentId,componentValues);}).join();}return null;}exports.filterComponents=filterComponents;exports.rangeComponents=rangeComponents;exports.rangeObjectComponents=rangeObjectComponents;exports.parseFilterValue=parseFilterValue;exports.parseRangeObject=parseRangeObject;exports.default=getFilterString; |
{ | ||
"name": "@appbaseio/reactivecore", | ||
"version": "8.1.6", | ||
"version": "8.2.6", | ||
"description": "Core architecture of reactive UI libraries", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
90320
47
35