@endorphinjs/template-runtime
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -90,2 +90,11 @@ import { Component } from './component'; | ||
export declare function classNames(str: string): string; | ||
/** | ||
* Returns value for <input> element | ||
*/ | ||
export declare function inputValue(value: any): any; | ||
/** | ||
* Updates element’s `name` property value only if it differs from previous value, | ||
* defined in `prev` | ||
*/ | ||
export declare function updateProperty(elem: Element, prev: ValueMap, name: string, value: any): number; | ||
export {}; |
@@ -451,2 +451,20 @@ /** | ||
/** | ||
* Returns value for <input> element | ||
*/ | ||
function inputValue(value) { | ||
return value != null ? value : ''; | ||
} | ||
/** | ||
* Updates element’s `name` property value only if it differs from previous value, | ||
* defined in `prev` | ||
*/ | ||
function updateProperty(elem, prev, name, value) { | ||
if (value !== prev[name]) { | ||
elem[name] = name === 'value' ? inputValue(value) : value; | ||
prev[name] = value; | ||
return 1; | ||
} | ||
return 0; | ||
} | ||
/** | ||
* Returns represented attribute value for given data | ||
@@ -2152,3 +2170,3 @@ */ | ||
export default endorphin; | ||
export { Store, addEvent, addPendingClass, addPendingClassIf, animate, appendChild, assign, call, classNames, clearBlock, clearInnerHTML, clearIterator, clearKeyIterator, clearPartial, composeTween, createAnimation, createComponent, createComponentFromElement, createInjector, createScope, createSlot, cssAnimate, detachPendingEvents, disposeBlock, domInsert, domRemove, elem, elemNS, elemNSWithText, elemWithText, emptyBlockContent, enterScope, exitScope, filter, finalizeAttributes, finalizePendingEvents, finalizePendingRefs, find, get, getPartial, getProp, getScope, getSlotContext, getState, getVar, injectBlock, insert, isolateElement, mountBlock, mountComponent, mountInnerHTML, mountIterator, mountKeyIterator, mountPartial, mountSlot, move, notifySlotUpdate, obj, pendingEvents, prepareScope, propsSet, removeEvent, removeRef, renderComponent, safeEventListener, scheduleRender, setAttribute, setAttributeExpression, setAttributeExpressionNS, setAttributeNS, setClass, setPendingAttributeNS, setPendingEvent, setPendingRef, setRef, setScope, setVar, stopAnimation, subscribeStore, text, tweenAnimate, unmountBlock, unmountComponent, unmountInnerHTML, unmountIterator, unmountKeyIterator, unmountPartial, unmountSlot, updateAttribute, updateAttributeNS, updateBlock, updateClass, updateComponent, updateDefaultSlot, updateIncomingSlot, updateInnerHTML, updateIterator, updateKeyIterator, updatePartial, updatePendingAttribute, updatePendingAttributeNS, updateText }; | ||
export { Store, addEvent, addPendingClass, addPendingClassIf, animate, appendChild, assign, call, classNames, clearBlock, clearInnerHTML, clearIterator, clearKeyIterator, clearPartial, composeTween, createAnimation, createComponent, createComponentFromElement, createInjector, createScope, createSlot, cssAnimate, detachPendingEvents, disposeBlock, domInsert, domRemove, elem, elemNS, elemNSWithText, elemWithText, emptyBlockContent, enterScope, exitScope, filter, finalizeAttributes, finalizePendingEvents, finalizePendingRefs, find, get, getPartial, getProp, getScope, getSlotContext, getState, getVar, injectBlock, inputValue, insert, isolateElement, mountBlock, mountComponent, mountInnerHTML, mountIterator, mountKeyIterator, mountPartial, mountSlot, move, notifySlotUpdate, obj, pendingEvents, prepareScope, propsSet, removeEvent, removeRef, renderComponent, safeEventListener, scheduleRender, setAttribute, setAttributeExpression, setAttributeExpressionNS, setAttributeNS, setClass, setPendingAttributeNS, setPendingEvent, setPendingRef, setRef, setScope, setVar, stopAnimation, subscribeStore, text, tweenAnimate, unmountBlock, unmountComponent, unmountInnerHTML, unmountIterator, unmountKeyIterator, unmountPartial, unmountSlot, updateAttribute, updateAttributeNS, updateBlock, updateClass, updateComponent, updateDefaultSlot, updateIncomingSlot, updateInnerHTML, updateIterator, updateKeyIterator, updatePartial, updatePendingAttribute, updatePendingAttributeNS, updateProperty, updateText }; | ||
//# sourceMappingURL=runtime.es.js.map |
{ | ||
"name": "@endorphinjs/template-runtime", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "EndorphinJS template runtime, embedded with template bundles", | ||
@@ -26,3 +26,3 @@ "main": "./dist/runtime.cjs.js", | ||
"devDependencies": { | ||
"@endorphinjs/template-compiler": "^0.7.0", | ||
"@endorphinjs/template-compiler": "^0.7.1", | ||
"@types/mocha": "^5.2.7", | ||
@@ -53,3 +53,3 @@ "@types/node": "^12.11.1", | ||
}, | ||
"gitHead": "78de2f2851613b66944f2c3227fa4626496242f3" | ||
"gitHead": "3c022302048723b5cfd155e11cba81382db29700" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
451154
5319