@pacem/pacem-core 1.0.6-ricci → 2.0.0-abel
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/browser/pacem-core.js +289 -161
- package/dist/browser/pacem-core.js.map +1 -1
- package/dist/browser/pacem-core.min.js +2 -2
- package/dist/bundle/pacem-core.min.mjs +6 -6
- package/dist/bundle/pacem-core.mjs +276 -104
- package/dist/bundle/pacem-core.mjs.map +4 -4
- package/dist/docs/pacem-core.json +1 -1
- package/dist/esm/adapter.js +1 -1
- package/dist/esm/binding-parser.js +259 -0
- package/dist/esm/command.js +1 -1
- package/dist/esm/comparers.js +1 -1
- package/dist/esm/converters.js +1 -1
- package/dist/esm/decorators-next.js +1 -1
- package/dist/esm/decorators.js +1 -1
- package/dist/esm/defaults.js +1 -1
- package/dist/esm/events.js +1 -1
- package/dist/esm/eventtarget.js +1 -1
- package/dist/esm/expression.js +36 -161
- package/dist/esm/index-animations.js +1 -1
- package/dist/esm/index-behaviors.js +1 -1
- package/dist/esm/index-components.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index-logging.js +1 -1
- package/dist/esm/index-net.js +1 -1
- package/dist/esm/index-root.js +1 -1
- package/dist/esm/index-ui.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/logger.js +1 -1
- package/dist/esm/prefix.js +1 -1
- package/dist/esm/promise.js +1 -1
- package/dist/esm/regex.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/template.js +1 -1
- package/dist/esm/transforms.js +1 -1
- package/dist/esm/types.js +1 -1
- package/dist/esm/utils-customelement.js +1 -1
- package/dist/esm/utils-customevent.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +6 -2
package/dist/esm/prefix.js
CHANGED
package/dist/esm/promise.js
CHANGED
package/dist/esm/regex.js
CHANGED
package/dist/esm/storage.js
CHANGED
package/dist/esm/template.js
CHANGED
package/dist/esm/transforms.js
CHANGED
package/dist/esm/types.js
CHANGED
package/dist/esm/utils.js
CHANGED
package/package.json
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -942,12 +942,16 @@ export declare class Expression {
|
|
|
942
942
|
* Parses a binding expression's source text (the bare content of a `{{ ... }}` attribute, without the
|
|
943
943
|
* delimiters - see {@link CustomElementUtils.extractBindingAttributeExpression}) into an {@link Expression},
|
|
944
944
|
* resolving its special tokens against `element`'s scope (see {@link CustomElementUtils.findScopeContext}).
|
|
945
|
-
*
|
|
945
|
+
* Tokenization and rewriting are delegated to {@link BindingParser} (cached per expression text).
|
|
946
|
+
* Throws if the expression uses an unsafe construct (`new`, members of `window`/`document`, `eval(`).
|
|
946
947
|
* @param expression Bare expression source text.
|
|
947
948
|
* @param element Element the expression is bound to; provides the scope special tokens (`:host.`, `#id`, `^item`, ...) resolve against.
|
|
948
|
-
* @returns A constant expression if it has no
|
|
949
|
+
* @returns A constant expression if it has no special tokens; a shared pending placeholder if `element` isn't attached to a scope yet; otherwise a fully resolved expression.
|
|
949
950
|
*/
|
|
950
951
|
static parse(expression: string, element: HTMLElement): Expression;
|
|
952
|
+
/** The DOM surroundings of `element` the special tokens resolve against (lazily, except for the scope context). */
|
|
953
|
+
private static _scopeOf;
|
|
954
|
+
private static _fromParsed;
|
|
951
955
|
}
|
|
952
956
|
|
|
953
957
|
/** Describes an element capable of issuing an HTTP request and exposing its outcome (e.g. `PacemFetchElement`); dispatches {@link FetchResultEventName}/{@link FetchSuccessEventName}/{@link FetchErrorEventName} as appropriate and notifies property changes for `result`. */
|