@pacem/pacem-core 2.0.0-goldbach → 2.0.0-hadamard

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.
Files changed (40) hide show
  1. package/dist/browser/pacem-core.js +308 -89
  2. package/dist/browser/pacem-core.js.map +1 -1
  3. package/dist/browser/pacem-core.min.js +2 -2
  4. package/dist/bundle/pacem-core.min.mjs +5 -5
  5. package/dist/bundle/pacem-core.mjs +193 -67
  6. package/dist/bundle/pacem-core.mjs.map +3 -3
  7. package/dist/docs/pacem-core.json +54 -24
  8. package/dist/esm/adapter.js +1 -1
  9. package/dist/esm/binding-parser.js +3 -3
  10. package/dist/esm/command.js +1 -1
  11. package/dist/esm/comparers.js +1 -1
  12. package/dist/esm/converters.js +1 -1
  13. package/dist/esm/decorators-next.js +1 -1
  14. package/dist/esm/decorators.js +1 -1
  15. package/dist/esm/defaults.js +1 -1
  16. package/dist/esm/events.js +1 -1
  17. package/dist/esm/eventtarget.js +1 -1
  18. package/dist/esm/expression.js +1 -1
  19. package/dist/esm/index-animations.js +1 -1
  20. package/dist/esm/index-behaviors.js +1 -1
  21. package/dist/esm/index-components.js +1 -1
  22. package/dist/esm/index-iife.js +1 -1
  23. package/dist/esm/index-logging.js +1 -1
  24. package/dist/esm/index-net.js +1 -1
  25. package/dist/esm/index-root.js +1 -1
  26. package/dist/esm/index-ui.js +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/logger.js +1 -1
  29. package/dist/esm/prefix.js +1 -1
  30. package/dist/esm/promise.js +1 -1
  31. package/dist/esm/regex.js +1 -1
  32. package/dist/esm/storage.js +1 -1
  33. package/dist/esm/template.js +1 -1
  34. package/dist/esm/transforms.js +1 -1
  35. package/dist/esm/types.js +1 -1
  36. package/dist/esm/utils-customelement.js +1 -1
  37. package/dist/esm/utils-customevent.js +1 -1
  38. package/dist/esm/utils.js +2 -2
  39. package/package.json +1 -1
  40. package/typings/index.d.ts +114 -20
@@ -4130,7 +4130,7 @@
4130
4130
  {
4131
4131
  "kind": "Class",
4132
4132
  "canonicalReference": "@pacem/pacem-core!Components.PacemBroadcastChannelProxyElement:class",
4133
- "docComment": "/**\n * Wraps a {@link BroadcastChannel}, sending/receiving messages to/from other same-origin browsing contexts.\n */\n",
4133
+ "docComment": "/**\n * Wraps a {@link BroadcastChannel}, sending/receiving messages to/from other same-origin browsing contexts. @fires receive {@link CustomEvent} - when a message arrives from another channel of the same name: `detail` is the message (also in `result`). @fires error {@link CustomEvent} - when an arrived message couldn't be deserialized.\n */\n",
4134
4134
  "excerptTokens": [
4135
4135
  {
4136
4136
  "kind": "Content",
@@ -5601,7 +5601,7 @@
5601
5601
  {
5602
5602
  "kind": "Class",
5603
5603
  "canonicalReference": "@pacem/pacem-core!Components.PacemDataElement:class",
5604
- "docComment": "/**\n * Holds an arbitrary data model, optionally persisting it to local storage and debouncing/throttling change notifications.\n */\n",
5604
+ "docComment": "/**\n * Holds an arbitrary data model, optionally persisting it to local storage and debouncing/throttling change notifications. @fires propertychange {@link PropertyChangeEvent} - when `model` changes (debounced or throttled as set by `debounce` and `throttle`).\n */\n",
5605
5605
  "excerptTokens": [
5606
5606
  {
5607
5607
  "kind": "Content",
@@ -5659,7 +5659,7 @@
5659
5659
  {
5660
5660
  "kind": "Property",
5661
5661
  "canonicalReference": "@pacem/pacem-core!Components.PacemDataElement#debounce:member",
5662
- "docComment": "/**\n * Debounces the model change\n */\n",
5662
+ "docComment": "/**\n * Gets or sets how the model change notifications get debounced: a number of milliseconds, `true` (once per animation frame), or `false`/`0` (right away, the default).\n */\n",
5663
5663
  "excerptTokens": [
5664
5664
  {
5665
5665
  "kind": "Content",
@@ -5667,7 +5667,7 @@
5667
5667
  },
5668
5668
  {
5669
5669
  "kind": "Content",
5670
- "text": "number"
5670
+ "text": "number | boolean"
5671
5671
  },
5672
5672
  {
5673
5673
  "kind": "Content",
@@ -5689,7 +5689,7 @@
5689
5689
  {
5690
5690
  "kind": "Property",
5691
5691
  "canonicalReference": "@pacem/pacem-core!Components.PacemDataElement#model:member",
5692
- "docComment": "/**\n * Gets or sets the data model held by this element.\n */\n",
5692
+ "docComment": "/**\n * Gets or sets the data model held by this element. As an attribute, it gets evaluated as a JavaScript expression (`\"0\"`, `\"[1, 2]\"`, `\"{ a: 1 }\"`).\n */\n",
5693
5693
  "excerptTokens": [
5694
5694
  {
5695
5695
  "kind": "Content",
@@ -5719,7 +5719,7 @@
5719
5719
  {
5720
5720
  "kind": "Property",
5721
5721
  "canonicalReference": "@pacem/pacem-core!Components.PacemDataElement#persistAs:member",
5722
- "docComment": "/**\n * Gets or sets the storage key under which `model` is persisted.\n */\n",
5722
+ "docComment": "/**\n * Gets or sets the storage key under which `model` is persisted (local storage): restored on load, removed when the key changes.\n */\n",
5723
5723
  "excerptTokens": [
5724
5724
  {
5725
5725
  "kind": "Content",
@@ -5845,7 +5845,7 @@
5845
5845
  {
5846
5846
  "kind": "Property",
5847
5847
  "canonicalReference": "@pacem/pacem-core!Components.PacemDataElement#throttle:member",
5848
- "docComment": "/**\n * Throttles the model change if debounce is > 0\n */\n",
5848
+ "docComment": "/**\n * Gets or sets whether the notifications get throttled rather than debounced (the first change of each `debounce` window is notified, the others are dropped).\n */\n",
5849
5849
  "excerptTokens": [
5850
5850
  {
5851
5851
  "kind": "Content",
@@ -6195,7 +6195,7 @@
6195
6195
  {
6196
6196
  "kind": "Class",
6197
6197
  "canonicalReference": "@pacem/pacem-core!Components.PacemDragDropElement:class",
6198
- "docComment": "/**\n * Pacem Drag & Drop element adapter: implements {@link DragDropper} on top of {@link PacemBehavior} to make registered elements draggable and, optionally, sortable/droppable onto {@link dropTargets}.\n */\n",
6198
+ "docComment": "/**\n * Pacem Drag & Drop element adapter: implements {@link DragDropper} on top of {@link PacemBehavior} to make registered elements draggable and, optionally, sortable/droppable onto {@link dropTargets}. @fires draginit {@link DragDropEvent} - on press, before anything moves: cancelable (`preventDefault()` refuses the drag). @fires dragstart {@link DragDropEvent} - when the drag actually starts (the press lasted `lockTimeout`). @fires drag {@link DragDropEvent} - on every move: cancelable. @fires dragover {@link DragDropEvent} - when hovering one of the `dropTargets`: cancelable (`preventDefault()` refuses that target). @fires dragout {@link DragDropEvent} - when leaving a drop target. @fires drop {@link DragDropEvent} - on release over a drop target: `detail.target` is the target, `detail.element` the dragged element. @fires dragend {@link DragDropEvent} - when it's all over (dropped or not).\n */\n",
6199
6199
  "excerptTokens": [
6200
6200
  {
6201
6201
  "kind": "Content",
@@ -7571,7 +7571,7 @@
7571
7571
  {
7572
7572
  "kind": "Class",
7573
7573
  "canonicalReference": "@pacem/pacem-core!Components.PacemEventProxyElement:class",
7574
- "docComment": "/**\n * Listens for an arbitrary DOM event on a `target` element (or `window`) and re-dispatches it as its own `emit` event.\n */\n",
7574
+ "docComment": "/**\n * Listens for an arbitrary DOM event on a `target` element (or `window`) and re-dispatches it as its own `emit` event. @fires emit {@link Event} - for every `event` caught on `target`: the caught one is `originalEvent`.\n */\n",
7575
7575
  "excerptTokens": [
7576
7576
  {
7577
7577
  "kind": "Content",
@@ -7861,7 +7861,7 @@
7861
7861
  {
7862
7862
  "kind": "Class",
7863
7863
  "canonicalReference": "@pacem/pacem-core!Components.PacemFetchElement:class",
7864
- "docComment": "/**\n * Declarative wrapper around the `fetch()` API, debouncing/aborting requests as its properties change and exposing the parsed `result`.\n */\n",
7864
+ "docComment": "/**\n * Declarative wrapper around the `fetch()` API, debouncing/aborting requests as its properties change and exposing the parsed `result`. @fires success {@link CustomEvent} - when a response is OK (2xx), before its body gets parsed: `detail` is the `Response`. @fires fetchresult {@link CustomEvent} - when the body got parsed (as set by `as`): `detail` is the new `result`. @fires error {@link CustomEvent} - when a response is not OK: `detail` is the `Response` (network failures reject `fetch()` instead).\n */\n",
7865
7865
  "excerptTokens": [
7866
7866
  {
7867
7867
  "kind": "Content",
@@ -8398,7 +8398,7 @@
8398
8398
  {
8399
8399
  "kind": "Property",
8400
8400
  "canonicalReference": "@pacem/pacem-core!Components.PacemFetchElement#throttle:member",
8401
- "docComment": "/**\n * Gets or sets whether to throttle (rather than debounce) auto-triggered fetches.\n */\n",
8401
+ "docComment": "/**\n * Gets or sets whether a fetch requested while another one is in flight is skipped (it gets the ongoing request) rather than aborting it (default false).\n */\n",
8402
8402
  "excerptTokens": [
8403
8403
  {
8404
8404
  "kind": "Content",
@@ -8531,7 +8531,7 @@
8531
8531
  {
8532
8532
  "kind": "Class",
8533
8533
  "canonicalReference": "@pacem/pacem-core!Components.PacemHistoryElement:class",
8534
- "docComment": "/**\n * Keeps track of an undo/redo-capable history of an arbitrary state.\n */\n",
8534
+ "docComment": "/**\n * Keeps track of an undo/redo-capable history of an arbitrary state. @fires push {@link StateEvent} - when a new state got recorded: `detail` has `state`, `canUndo` and `canRedo`. @fires undo {@link StateEvent} - after a step back. @fires redo {@link StateEvent} - after a step forward. @fires reset {@link StateEvent} - when the history got cleared (the current state stays).\n */\n",
8535
8535
  "excerptTokens": [
8536
8536
  {
8537
8537
  "kind": "Content",
@@ -10834,7 +10834,7 @@
10834
10834
  {
10835
10835
  "kind": "Class",
10836
10836
  "canonicalReference": "@pacem/pacem-core!Components.PacemOnlineStatusElement:class",
10837
- "docComment": "/**\n * Tracks the browser's network connectivity (`navigator.onLine`), updating `online` on `online`/`offline` events.\n */\n",
10837
+ "docComment": "/**\n * Tracks the browser's network connectivity (`navigator.onLine`), updating `online` on `online`/`offline` events. @fires propertychange {@link PropertyChangeEvent} - when `online` changes (the connection dropped or came back).\n */\n",
10838
10838
  "excerptTokens": [
10839
10839
  {
10840
10840
  "kind": "Content",
@@ -11192,7 +11192,7 @@
11192
11192
  {
11193
11193
  "kind": "Class",
11194
11194
  "canonicalReference": "@pacem/pacem-core!Components.PacemRepeaterElement:class",
11195
- "docComment": "/**\n * Repeats its `<template>` content once per `datasource` item, keeping the rendered items in sync as the datasource changes.\n *\n * @example\n *\n * <pacem-repeater datasource=\"[{id:'first', items:['a','b','c']}, ...]\"> <ol> <li> <template> <pacem-repeater datasource={{ ^item.items }}> <template> <pacem-span text=\"{{ ^^item.id+': ': ^item.toUpperCase() }}\"></pacem-span> </template> </pacem-repeater> </template> </li> </ol> </pacem-repeater>\n */\n",
11195
+ "docComment": "/**\n * Repeats its `<template>` content once per `datasource` item, keeping the rendered items in sync as the datasource changes. @fires repeateritemcreate {@link RepeaterItemCreateEvent} - when an item got rendered (and is in the DOM): `detail` has its `index`, `item` and `dom`. @fires repeateritemremove {@link RepeaterItemRemoveEvent} - when an item got removed (the datasource shrank). @fires itemcommand {@link CustomEvent} - when an element of an item dispatches a command (e.g. a `<pacem-button command-name>`): `detail` has `commandName` and `commandArgument`. @fires item{command} {@link CustomEvent} - right after `itemcommand`, named after the command (e.g. `itemdelete` for `command-name=\"delete\"`): `detail` is the `commandArgument`.\n *\n * @example\n *\n * <pacem-repeater datasource=\"[{id:'first', items:['a','b','c']}, ...]\"> <ol> <li> <template> <pacem-repeater datasource={{ ^item.items }}> <template> <pacem-span text=\"{{ ^^item.id+': ': ^item.toUpperCase() }}\"></pacem-span> </template> </pacem-repeater> </template> </li> </ol> </pacem-repeater>\n */\n",
11196
11196
  "excerptTokens": [
11197
11197
  {
11198
11198
  "kind": "Content",
@@ -11505,7 +11505,7 @@
11505
11505
  {
11506
11506
  "kind": "Class",
11507
11507
  "canonicalReference": "@pacem/pacem-core!Components.PacemRescaleElement:class",
11508
- "docComment": "/**\n * Pacem Rescale element adapter: implements {@link Rescaler} on top of {@link PacemBehavior}, decorating registered elements with draggable resize handles (see {@link RescaleHandle}).\n */\n",
11508
+ "docComment": "/**\n * Pacem Rescale element adapter: implements {@link Rescaler} on top of {@link PacemBehavior}, decorating registered elements with draggable resize handles (see {@link RescaleHandle}). A move beyond the size constraints (`minWidth`, `maxWidth`, `minHeight`, `maxHeight`) is clamped to them; with `keepProportions`, such a move is ignored instead (clamping one side would break the ratio). @fires rescalestart {@link RescaleEvent} - when a handle gets grabbed: `detail.handle` tells which. @fires rescale {@link RescaleEvent} - on every move: `detail.targetRect` is the size about to be applied; cancelable (`preventDefault()` applies nothing, e.g. to apply it your way). @fires rescaleend {@link RescaleEvent} - when the handle gets released: `detail.targetRect` is the final size.\n */\n",
11509
11509
  "excerptTokens": [
11510
11510
  {
11511
11511
  "kind": "Content",
@@ -12243,7 +12243,7 @@
12243
12243
  {
12244
12244
  "kind": "Class",
12245
12245
  "canonicalReference": "@pacem/pacem-core!Components.PacemRotateElement:class",
12246
- "docComment": "/**\n * Pacem Rotate element adapter: implements {@link Rotator} on top of {@link PacemBehavior} to make registered elements rotatable around a pivot point via mouse/touch drag.\n */\n",
12246
+ "docComment": "/**\n * Pacem Rotate element adapter: implements {@link Rotator} on top of {@link PacemBehavior} to make registered elements rotatable around a pivot point via mouse/touch drag. @fires rotatestart {@link RotateEvent} - on press: cancelable (`preventDefault()` refuses the gesture). @fires rotate {@link RotateEvent} - whenever the (stepped) angle changes: `detail.rotation`, in radians; cancelable (nothing gets rendered). @fires rotateend {@link RotateEvent} - on release: `detail.rotation` is the final angle.\n */\n",
12247
12247
  "excerptTokens": [
12248
12248
  {
12249
12249
  "kind": "Content",
@@ -12508,7 +12508,7 @@
12508
12508
  {
12509
12509
  "kind": "Class",
12510
12510
  "canonicalReference": "@pacem/pacem-core!Components.PacemRouterElement:class",
12511
- "docComment": "/**\n * Client-side router: parses/generates paths against a template and drives the browser History API.\n */\n",
12511
+ "docComment": "/**\n * Client-side router: parses/generates paths against a template and drives the browser History API. @fires propertychange {@link PropertyChangeEvent} - when `state` changes (every committed navigation). @fires navigating {@link RouterNavigatingEvent} - on `window`, right before a navigation: cancelable (`preventDefault()` aborts it), `detail` is the target path. @fires navigate {@link RouterNavigateEvent} - on `window`, once a navigation is committed: `detail` has `path`, `referrer` and `title`.\n */\n",
12512
12512
  "excerptTokens": [
12513
12513
  {
12514
12514
  "kind": "Content",
@@ -13027,7 +13027,7 @@
13027
13027
  {
13028
13028
  "kind": "Class",
13029
13029
  "canonicalReference": "@pacem/pacem-core!Components.PacemSafeContentElement:class",
13030
- "docComment": "/**\n * {@link PacemContentElement} variant that strips out `<script>` blocks (and, for `Node` content, `<script>` elements) before rendering `content`.\n */\n",
13030
+ "docComment": "/**\n * {@link PacemContentElement} variant that renders `content` without what could run script: `<script>` elements, `on*` event-handler attributes and `javascript:` URLs get removed (HTML strings are parsed, never executed, first).\n */\n",
13031
13031
  "excerptTokens": [
13032
13032
  {
13033
13033
  "kind": "Content",
@@ -13281,7 +13281,7 @@
13281
13281
  {
13282
13282
  "kind": "Class",
13283
13283
  "canonicalReference": "@pacem/pacem-core!Components.PacemServiceWorkerProxyElement:class",
13284
- "docComment": "/**\n * Registers a service worker and manages its (optional) Push API subscription.\n */\n",
13284
+ "docComment": "/**\n * Registers a service worker and manages its (optional) Push API subscription. @fires register {@link CustomEvent} - once the service worker got registered: `detail` is the `ServiceWorkerRegistration`. @fires unregister {@link CustomEvent} - when a previous registration got replaced: `detail` is the old one. @fires subscribe {@link CustomEvent} - when a push subscription is in place (found at start, or just made): `detail` is the `PushSubscription`. @fires unsubscribe {@link CustomEvent} - when the push subscription went away: `detail` is the old `PushSubscription`.\n */\n",
13285
13285
  "excerptTokens": [
13286
13286
  {
13287
13287
  "kind": "Content",
@@ -13555,7 +13555,7 @@
13555
13555
  {
13556
13556
  "kind": "Method",
13557
13557
  "canonicalReference": "@pacem/pacem-core!Components.PacemServiceWorkerProxyElement#subscribe:member(1)",
13558
- "docComment": "/**\n * Subscribes to push notifications through the registered service worker.\n *\n * @param publicKey - VAPID public key (base64url or raw bytes); defaults to `publicKey`\n */\n",
13558
+ "docComment": "/**\n * Subscribes to push notifications through the registered service worker.\n *\n * @param publicKey - VAPID public key (base64url or raw bytes); defaults to `publicKey`\n *\n * @returns The subscription (`null` without a push manager, or when notifications are denied); rejects when the browser refuses to subscribe (no push service, an invalid key…).\n */\n",
13559
13559
  "excerptTokens": [
13560
13560
  {
13561
13561
  "kind": "Content",
@@ -13790,7 +13790,7 @@
13790
13790
  {
13791
13791
  "kind": "Class",
13792
13792
  "canonicalReference": "@pacem/pacem-core!Components.PacemShortcutElement:class",
13793
- "docComment": "/**\n * Listens for a keyboard shortcut (optionally chorded, e.g. `\"ctrl+k, s\"`) on a target and fires an `execute` event when matched.\n */\n",
13793
+ "docComment": "/**\n * Listens for a keyboard shortcut (optionally chorded, e.g. `\"ctrl+k, s\"`) on a target and fires an `execute` event when matched. @fires execute {@link Event} - when the whole combination got typed (the matching key's default action is prevented).\n */\n",
13794
13794
  "excerptTokens": [
13795
13795
  {
13796
13796
  "kind": "Content",
@@ -14893,7 +14893,7 @@
14893
14893
  {
14894
14894
  "kind": "Class",
14895
14895
  "canonicalReference": "@pacem/pacem-core!Components.PacemSwipeElement:class",
14896
- "docComment": "/**\n * Pacem Swipe element adapter: implements {@link Swiper} on top of {@link PacemBehavior} to make registered elements draggable along one axis, with snap points and fling/bounce-back detection.\n */\n",
14896
+ "docComment": "/**\n * Pacem Swipe element adapter: implements {@link Swiper} on top of {@link PacemBehavior} to make registered elements draggable along one axis, with snap points and fling/bounce-back detection. @fires pan {@link SwipeEvent} - while the element follows the pointer: cancelable. @fires swipe {@link SwipeEvent} - on release, once a swipe is detected (dragged past a snap, or flung): cancelable (stops the chain). @fires swipe{direction} {@link SwipeEvent} - right after `swipe`, named after the direction (`swipeleft`, `swiperight`, `swipeup`, `swipedown`): cancelable. @fires swipeanimationend {@link SwipeEvent} - when the element reached its snap: cancelable (`preventDefault()` keeps it there instead of returning). @fires swipe{direction}animationend {@link SwipeEvent} - right after `swipeanimationend`, named after the direction.\n */\n",
14897
14897
  "excerptTokens": [
14898
14898
  {
14899
14899
  "kind": "Content",
@@ -17179,7 +17179,7 @@
17179
17179
  {
17180
17180
  "kind": "Class",
17181
17181
  "canonicalReference": "@pacem/pacem-core!Components.PacemWebWorkerProxyElement:class",
17182
- "docComment": "/**\n * Wraps a {@link Worker}, sending/receiving messages to/from a web worker script.\n */\n",
17182
+ "docComment": "/**\n * Wraps a {@link Worker}, sending/receiving messages to/from a web worker script. @fires receive {@link CustomEvent} - when the worker posts a message back: `detail` is the message (also in `result`). @fires error {@link CustomEvent} - when the worker script fails: `detail` is the error, when the browser can pass it over.\n */\n",
17183
17183
  "excerptTokens": [
17184
17184
  {
17185
17185
  "kind": "Content",
@@ -33972,7 +33972,7 @@
33972
33972
  },
33973
33973
  {
33974
33974
  "kind": "Content",
33975
- "text": ";\n };\n vertical?: boolean;\n}"
33975
+ "text": ";\n };\n vertical?: boolean;\n snap?: number;\n}"
33976
33976
  },
33977
33977
  {
33978
33978
  "kind": "Content",
@@ -34243,6 +34243,36 @@
34243
34243
  "isProtected": false,
34244
34244
  "isAbstract": false
34245
34245
  },
34246
+ {
34247
+ "kind": "Property",
34248
+ "canonicalReference": "@pacem/pacem-core!UI.SwipeEventArgsClass#snap:member",
34249
+ "docComment": "/**\n * Gets the snap the element is going to rest at, relative to where the gesture started: `0` means it bounces back home (the release didn't make it). Known on release (`swipe`, `swipe<direction>` and the animation-end events); `undefined` while panning.\n *\n * @readonly\n */\n",
34250
+ "excerptTokens": [
34251
+ {
34252
+ "kind": "Content",
34253
+ "text": "get snap(): "
34254
+ },
34255
+ {
34256
+ "kind": "Content",
34257
+ "text": "number | undefined"
34258
+ },
34259
+ {
34260
+ "kind": "Content",
34261
+ "text": ";"
34262
+ }
34263
+ ],
34264
+ "isReadonly": true,
34265
+ "isOptional": false,
34266
+ "releaseTag": "Public",
34267
+ "name": "snap",
34268
+ "propertyTypeTokenRange": {
34269
+ "startIndex": 1,
34270
+ "endIndex": 2
34271
+ },
34272
+ "isStatic": false,
34273
+ "isProtected": false,
34274
+ "isAbstract": false
34275
+ },
34246
34276
  {
34247
34277
  "kind": "Property",
34248
34278
  "canonicalReference": "@pacem/pacem-core!UI.SwipeEventArgsClass#speed:member",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -96,12 +96,12 @@ export class BindingParser {
96
96
  * Parses a binding expression against a scope.
97
97
  * @param expression The bare expression text (no `{{ }}` delimiters, no `, twoway`/`, once` modifier).
98
98
  * @param scope What the references resolve to.
99
- * @throws When the expression is unsafe (see {@link analyze}).
99
+ * @throws An `Error` when the expression is unsafe (see {@link analyze}).
100
100
  */
101
101
  static parse(expression, scope) {
102
102
  const analysis = BindingParser.analyze(expression);
103
103
  if (analysis.unsafe != null) {
104
- throw `Unsafe expression detected: "${analysis.unsafe}" in "${expression}".`;
104
+ throw new Error(`Unsafe expression detected: "${analysis.unsafe}" in "${expression}".`);
105
105
  }
106
106
  if (!analysis.hasReferences) {
107
107
  return { kind: 'constant', functionBody: `return ${expression};`, voidBody: expression, dependencies: [] };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/regex.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v2.0.0-goldbach (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-hadamard (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -141,7 +141,7 @@ export class Utils {
141
141
  },
142
142
  /** Sets a CSS custom property's value on the document root (`:root`/`html`). */
143
143
  setVariable(name, value) {
144
- getComputedStyle(document.documentElement).setProperty(name, value);
144
+ document.documentElement.style.setProperty(name, value);
145
145
  },
146
146
  /**
147
147
  * Naive O(n^2) implementation for an actual css class presence (definition) in the current DOM.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "types": "./typings/index.d.ts"
25
25
  }
26
26
  },
27
- "version": "2.0.0-goldbach",
27
+ "version": "2.0.0-hadamard",
28
28
  "author": {
29
29
  "name": "Pacem",
30
30
  "url": "https://pacem.it"