@vielzeug/refine 1.5.0 → 1.5.2
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/async.cjs +9 -9
- package/dist/async.cjs.map +1 -1
- package/dist/async.js +30 -31
- package/dist/async.js.map +1 -1
- package/dist/button.cjs +6 -6
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +29 -30
- package/dist/button.js.map +1 -1
- package/dist/calendar.cjs +44 -44
- package/dist/calendar.cjs.map +1 -1
- package/dist/calendar.js +115 -117
- package/dist/calendar.js.map +1 -1
- package/dist/checkbox-group.cjs +7 -7
- package/dist/checkbox-group.cjs.map +1 -1
- package/dist/checkbox-group.js +71 -73
- package/dist/checkbox-group.js.map +1 -1
- package/dist/checkbox.cjs +3 -3
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.js +28 -29
- package/dist/checkbox.js.map +1 -1
- package/dist/code-window.cjs +7 -7
- package/dist/code-window.cjs.map +1 -1
- package/dist/code-window.js +17 -18
- package/dist/code-window.js.map +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.cjs.map +1 -1
- package/dist/combobox.js +11 -12
- package/dist/combobox.js.map +1 -1
- package/dist/custom-elements.json +3581 -3581
- package/dist/datagrid.cjs +66 -66
- package/dist/datagrid.cjs.map +1 -1
- package/dist/datagrid.js +267 -268
- package/dist/datagrid.js.map +1 -1
- package/dist/date-picker.cjs +11 -11
- package/dist/date-picker.cjs.map +1 -1
- package/dist/date-picker.js +8 -9
- package/dist/date-picker.js.map +1 -1
- package/dist/file-input.cjs +6 -6
- package/dist/file-input.cjs.map +1 -1
- package/dist/file-input.js +50 -51
- package/dist/file-input.js.map +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.cjs.map +1 -1
- package/dist/grid.js +47 -48
- package/dist/grid.js.map +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.js +26 -27
- package/dist/icon.js.map +1 -1
- package/dist/input.cjs +20 -20
- package/dist/input.cjs.map +1 -1
- package/dist/input.js +98 -100
- package/dist/input.js.map +1 -1
- package/dist/layout/navbar/navbar.css.cjs +1 -1
- package/dist/layout/navbar/navbar.css.cjs.map +1 -1
- package/dist/layout/navbar/navbar.css.js +1 -1
- package/dist/layout/navbar/navbar.css.js.map +1 -1
- package/dist/layout/navbar/navbar.d.ts +1 -0
- package/dist/layout/navbar/navbar.d.ts.map +1 -1
- package/dist/message-composer.cjs +18 -18
- package/dist/message-composer.cjs.map +1 -1
- package/dist/message-composer.js +113 -115
- package/dist/message-composer.js.map +1 -1
- package/dist/navbar.cjs +16 -13
- package/dist/navbar.cjs.map +1 -1
- package/dist/navbar.js +84 -79
- package/dist/navbar.js.map +1 -1
- package/dist/otp-input.cjs +4 -4
- package/dist/otp-input.cjs.map +1 -1
- package/dist/otp-input.js +31 -32
- package/dist/otp-input.js.map +1 -1
- package/dist/progress.cjs +13 -13
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.js +45 -46
- package/dist/progress.js.map +1 -1
- package/dist/radio-group.cjs +5 -5
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.js +83 -85
- package/dist/radio-group.js.map +1 -1
- package/dist/radio.cjs +3 -3
- package/dist/radio.cjs.map +1 -1
- package/dist/radio.js +27 -28
- package/dist/radio.js.map +1 -1
- package/dist/rating.cjs +4 -4
- package/dist/rating.cjs.map +1 -1
- package/dist/rating.js +30 -31
- package/dist/rating.js.map +1 -1
- package/dist/refine.cjs +8 -5
- package/dist/refine.cjs.map +1 -1
- package/dist/refine.iife.js +8 -5
- package/dist/refine.iife.js.map +1 -1
- package/dist/refine.js +8 -5
- package/dist/refine.js.map +1 -1
- package/dist/select.cjs +4 -4
- package/dist/select.cjs.map +1 -1
- package/dist/select.js +88 -89
- package/dist/select.js.map +1 -1
- package/dist/sidebar.cjs +11 -11
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.js +97 -98
- package/dist/sidebar.js.map +1 -1
- package/dist/skeleton.cjs +3 -3
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +23 -24
- package/dist/skeleton.js.map +1 -1
- package/dist/slider.cjs +3 -3
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.js +65 -66
- package/dist/slider.js.map +1 -1
- package/dist/switch.cjs +3 -3
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.js +23 -24
- package/dist/switch.js.map +1 -1
- package/dist/tab-panel.cjs +7 -7
- package/dist/tab-panel.cjs.map +1 -1
- package/dist/tab-panel.js +21 -23
- package/dist/tab-panel.js.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +4 -5
- package/dist/testing.js.map +1 -1
- package/dist/textarea.cjs +13 -13
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.js +92 -94
- package/dist/textarea.js.map +1 -1
- package/dist/time-picker.cjs +9 -9
- package/dist/time-picker.cjs.map +1 -1
- package/dist/time-picker.js +47 -48
- package/dist/time-picker.js.map +1 -1
- package/package.json +1 -1
- package/dist/ore/dist/_dev.cjs +0 -2
- package/dist/ore/dist/_dev.cjs.map +0 -1
- package/dist/ore/dist/_dev.js +0 -12
- package/dist/ore/dist/_dev.js.map +0 -1
- package/dist/ore/dist/base-element.cjs +0 -2
- package/dist/ore/dist/base-element.cjs.map +0 -1
- package/dist/ore/dist/base-element.js +0 -158
- package/dist/ore/dist/base-element.js.map +0 -1
- package/dist/ore/dist/context.cjs +0 -2
- package/dist/ore/dist/context.cjs.map +0 -1
- package/dist/ore/dist/context.js +0 -11
- package/dist/ore/dist/context.js.map +0 -1
- package/dist/ore/dist/define.cjs +0 -2
- package/dist/ore/dist/define.cjs.map +0 -1
- package/dist/ore/dist/define.js +0 -27
- package/dist/ore/dist/define.js.map +0 -1
- package/dist/ore/dist/directives/classMap.cjs +0 -1
- package/dist/ore/dist/directives/classMap.js +0 -1
- package/dist/ore/dist/directives/each.cjs +0 -1
- package/dist/ore/dist/directives/each.js +0 -5
- package/dist/ore/dist/directives/live.cjs +0 -2
- package/dist/ore/dist/directives/live.cjs.map +0 -1
- package/dist/ore/dist/directives/live.js +0 -6
- package/dist/ore/dist/directives/live.js.map +0 -1
- package/dist/ore/dist/directives/model.cjs +0 -1
- package/dist/ore/dist/directives/model.js +0 -3
- package/dist/ore/dist/directives/raw.cjs +0 -2
- package/dist/ore/dist/directives/raw.cjs.map +0 -1
- package/dist/ore/dist/directives/raw.js +0 -38
- package/dist/ore/dist/directives/raw.js.map +0 -1
- package/dist/ore/dist/directives/styleMap.cjs +0 -2
- package/dist/ore/dist/directives/styleMap.cjs.map +0 -1
- package/dist/ore/dist/directives/styleMap.js +0 -20
- package/dist/ore/dist/directives/styleMap.js.map +0 -1
- package/dist/ore/dist/directives/when.cjs +0 -2
- package/dist/ore/dist/directives/when.cjs.map +0 -1
- package/dist/ore/dist/directives/when.js +0 -38
- package/dist/ore/dist/directives/when.js.map +0 -1
- package/dist/ore/dist/directives.cjs +0 -1
- package/dist/ore/dist/directives.js +0 -8
- package/dist/ore/dist/errors.cjs +0 -3
- package/dist/ore/dist/errors.cjs.map +0 -1
- package/dist/ore/dist/errors.js +0 -50
- package/dist/ore/dist/errors.js.map +0 -1
- package/dist/ore/dist/forms/context.cjs +0 -2
- package/dist/ore/dist/forms/context.cjs.map +0 -1
- package/dist/ore/dist/forms/context.js +0 -6
- package/dist/ore/dist/forms/context.js.map +0 -1
- package/dist/ore/dist/forms/field.cjs +0 -2
- package/dist/ore/dist/forms/field.cjs.map +0 -1
- package/dist/ore/dist/forms/field.js +0 -42
- package/dist/ore/dist/forms/field.js.map +0 -1
- package/dist/ore/dist/forms.cjs +0 -1
- package/dist/ore/dist/forms.js +0 -3
- package/dist/ore/dist/observers/intersection-observe.cjs +0 -2
- package/dist/ore/dist/observers/intersection-observe.cjs.map +0 -1
- package/dist/ore/dist/observers/intersection-observe.js +0 -12
- package/dist/ore/dist/observers/intersection-observe.js.map +0 -1
- package/dist/ore/dist/observers/media-observe.cjs +0 -1
- package/dist/ore/dist/observers/media-observe.js +0 -1
- package/dist/ore/dist/observers/mutation-observe.cjs +0 -1
- package/dist/ore/dist/observers/mutation-observe.js +0 -1
- package/dist/ore/dist/observers/resize-observe.cjs +0 -2
- package/dist/ore/dist/observers/resize-observe.cjs.map +0 -1
- package/dist/ore/dist/observers/resize-observe.js +0 -20
- package/dist/ore/dist/observers/resize-observe.js.map +0 -1
- package/dist/ore/dist/observers.cjs +0 -1
- package/dist/ore/dist/observers.js +0 -5
- package/dist/ore/dist/props.cjs +0 -2
- package/dist/ore/dist/props.cjs.map +0 -1
- package/dist/ore/dist/props.js +0 -56
- package/dist/ore/dist/props.js.map +0 -1
- package/dist/ore/dist/runtime.cjs +0 -2
- package/dist/ore/dist/runtime.cjs.map +0 -1
- package/dist/ore/dist/runtime.js +0 -25
- package/dist/ore/dist/runtime.js.map +0 -1
- package/dist/ore/dist/testing/flush.cjs +0 -2
- package/dist/ore/dist/testing/flush.cjs.map +0 -1
- package/dist/ore/dist/testing/flush.js +0 -11
- package/dist/ore/dist/testing/flush.js.map +0 -1
- package/dist/ore/dist/testing/mount.cjs +0 -2
- package/dist/ore/dist/testing/mount.cjs.map +0 -1
- package/dist/ore/dist/testing/mount.js +0 -94
- package/dist/ore/dist/testing/mount.js.map +0 -1
- package/dist/ore/dist/testing/query.cjs +0 -2
- package/dist/ore/dist/testing/query.cjs.map +0 -1
- package/dist/ore/dist/testing/query.js +0 -12
- package/dist/ore/dist/testing/query.js.map +0 -1
- package/dist/ore/dist/testing/render-hook.cjs +0 -1
- package/dist/ore/dist/testing/render-hook.js +0 -3
- package/dist/ore/dist/testing/testing.cjs +0 -1
- package/dist/ore/dist/testing/testing.js +0 -4
- package/dist/ore/dist/testing/wait.cjs +0 -1
- package/dist/ore/dist/testing/wait.js +0 -1
- package/dist/ore/dist/testing.cjs +0 -1
- package/dist/ore/dist/testing.js +0 -6
- package/dist/ore/dist/types/bindings.cjs +0 -2
- package/dist/ore/dist/types/bindings.cjs.map +0 -1
- package/dist/ore/dist/types/bindings.js +0 -15
- package/dist/ore/dist/types/bindings.js.map +0 -1
- package/dist/ore/dist/types.cjs +0 -2
- package/dist/ore/dist/types.cjs.map +0 -1
- package/dist/ore/dist/types.js +0 -15
- package/dist/ore/dist/types.js.map +0 -1
- package/dist/ore/dist/utils/css.cjs +0 -2
- package/dist/ore/dist/utils/css.cjs.map +0 -1
- package/dist/ore/dist/utils/css.js +0 -18
- package/dist/ore/dist/utils/css.js.map +0 -1
- package/dist/ore/dist/utils/dom.cjs +0 -2
- package/dist/ore/dist/utils/dom.cjs.map +0 -1
- package/dist/ore/dist/utils/dom.js +0 -43
- package/dist/ore/dist/utils/dom.js.map +0 -1
- package/dist/ore/dist/utils/id.cjs +0 -2
- package/dist/ore/dist/utils/id.cjs.map +0 -1
- package/dist/ore/dist/utils/id.js +0 -4
- package/dist/ore/dist/utils/id.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.cjs","names":[],"sources":["../../../../ore/dist/context.js"],"sourcesContent":["import{warn as e}from\"./_dev.js\";import{ORE_ERRORS as t,OreApiError as n}from\"./errors.js\";import{getHost as r,requireSetupContext as i}from\"./runtime.js\";var a=new WeakMap,o=e=>{let t=[],n=e;for(;n;){n instanceof HTMLElement&&t.push(n);let e=n.getRootNode();n=n.parentElement??(e instanceof ShadowRoot?e.host:null)}return t},s=(t,n,r)=>{let i=a.get(t)??new Map;i.has(n)&&e(`provide(): key already provided on <${t.localName}> — overwriting. Provide a Readable to update it instead.`),i.set(n,r),a.set(t,i)},c=(e,t)=>s(r(),e,t),l=Symbol(`inject.not_found`),u=new WeakMap,d=(e,t)=>{let n=o(e);for(let e of n){let n=a.get(e);if(n?.has(t))return n.get(t)}return l};function f(e,...t){let n=i(`inject`),r=u.get(n);r||(r=new Map,u.set(n,r));let a=e;if(r.has(a)){let e=r.get(a);return e===l?t.length>0?t[0]:void 0:e}let o=d(n.element,e);return r.set(a,o),o===l?t.length>0?t[0]:void 0:o}var p=e=>{let i=f(e,l);if(i!==l)return i;let a=r();throw new n(t.injectStrictFailed(String(e),a.localName))};function m(e){return Symbol(e)}export{m as createContext,f as inject,p as injectStrict,c as provide};\n//# sourceMappingURL=context.js.map"],"mappings":"uEAA69B,SAAS,EAAE,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
package/dist/ore/dist/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":[],"sources":["../../../../ore/dist/context.js"],"sourcesContent":["import{warn as e}from\"./_dev.js\";import{ORE_ERRORS as t,OreApiError as n}from\"./errors.js\";import{getHost as r,requireSetupContext as i}from\"./runtime.js\";var a=new WeakMap,o=e=>{let t=[],n=e;for(;n;){n instanceof HTMLElement&&t.push(n);let e=n.getRootNode();n=n.parentElement??(e instanceof ShadowRoot?e.host:null)}return t},s=(t,n,r)=>{let i=a.get(t)??new Map;i.has(n)&&e(`provide(): key already provided on <${t.localName}> — overwriting. Provide a Readable to update it instead.`),i.set(n,r),a.set(t,i)},c=(e,t)=>s(r(),e,t),l=Symbol(`inject.not_found`),u=new WeakMap,d=(e,t)=>{let n=o(e);for(let e of n){let n=a.get(e);if(n?.has(t))return n.get(t)}return l};function f(e,...t){let n=i(`inject`),r=u.get(n);r||(r=new Map,u.set(n,r));let a=e;if(r.has(a)){let e=r.get(a);return e===l?t.length>0?t[0]:void 0:e}let o=d(n.element,e);return r.set(a,o),o===l?t.length>0?t[0]:void 0:o}var p=e=>{let i=f(e,l);if(i!==l)return i;let a=r();throw new n(t.injectStrictFailed(String(e),a.localName))};function m(e){return Symbol(e)}export{m as createContext,f as inject,p as injectStrict,c as provide};\n//# sourceMappingURL=context.js.map"],"mappings":";;;;AAA69B,SAAS,EAAE,GAAE;CAAC,OAAO,OAAO,CAAC;AAAC"}
|
package/dist/ore/dist/define.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("./errors.cjs"),t=require("./utils/dom.cjs"),n=require("./props.cjs"),r=require("./base-element.cjs");function i(i,a){if(!i)throw new e.OreApiError(e.ORE_ERRORS.defineRequiresTag);if(customElements.get(i))throw new e.OreApiError(e.ORE_ERRORS.defineDuplicate(i));let{props:o}=a,s=(()=>{if(!o)return;let t=n.validatePropDefs(o);if(t.length>0)throw new e.OreApiError(e.ORE_ERRORS.validationFailed(i,t));let r={};for(let[e,t]of Object.entries(o))r[e]=n.normalizePropDefinition(t,e);return r})(),c=s?Object.keys(s).map(t.toKebab):[],l=class extends r.BaseElement{static _definition=a;static _normalizedPropDefs=s;static formAssociated=a.formAssociated??!1;static observedAttributes=c};Object.defineProperty(l,"name",{value:i}),customElements.define(i,l)}exports.define=i;
|
|
2
|
-
//# sourceMappingURL=define.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define.cjs","names":["t","e","n","a","r","o"],"sources":["../../../../ore/dist/define.js"],"sourcesContent":["import{ORE_ERRORS as e,OreApiError as t}from\"./errors.js\";import{toKebab as n}from\"./utils/dom.js\";import{normalizePropDefinition as r,prop as i,validatePropDefs as a}from\"./props.js\";import{BaseElement as o}from\"./base-element.js\";function s(i,s){if(!i)throw new t(e.defineRequiresTag);if(customElements.get(i))throw new t(e.defineDuplicate(i));let{props:c}=s,l=(()=>{if(!c)return;let n=a(c);if(n.length>0)throw new t(e.validationFailed(i,n));let o={};for(let[e,t]of Object.entries(c))o[e]=r(t,e);return o})(),u=l?Object.keys(l).map(n):[],d=class extends o{static _definition=s;static _normalizedPropDefs=l;static formAssociated=s.formAssociated??!1;static observedAttributes=u};Object.defineProperty(d,\"name\",{value:i}),customElements.define(i,d)}export{s as define,i as prop};\n//# sourceMappingURL=define.js.map"],"mappings":"sHAAwO,SAAS,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,IAAIA,EAAAA,YAAEC,EAAAA,WAAE,iBAAiB,EAAE,GAAG,eAAe,IAAI,CAAC,EAAE,MAAM,IAAID,EAAAA,YAAEC,EAAAA,WAAE,gBAAgB,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,IAAIC,EAAEC,EAAAA,iBAAE,CAAC,EAAE,GAAGD,EAAE,OAAO,EAAE,MAAM,IAAIF,EAAAA,YAAEC,EAAAA,WAAE,iBAAiB,EAAEC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,OAAO,QAAQ,CAAC,EAAE,EAAE,GAAGE,EAAAA,wBAAE,EAAE,CAAC,EAAE,OAAO,CAAC,EAAA,CAAG,EAAE,EAAE,EAAE,OAAO,KAAK,CAAC,CAAC,CAAC,IAAIF,EAAAA,OAAC,EAAE,CAAC,EAAE,EAAE,cAAcG,EAAAA,WAAC,CAAC,OAAO,YAAY,EAAE,OAAO,oBAAoB,EAAE,OAAO,eAAe,EAAE,gBAAgB,CAAC,EAAE,OAAO,mBAAmB,CAAC,EAAE,OAAO,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,eAAe,OAAO,EAAE,CAAC,CAAC"}
|
package/dist/ore/dist/define.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ORE_ERRORS as e, OreApiError as t } from "./errors.js";
|
|
2
|
-
import { toKebab as n } from "./utils/dom.js";
|
|
3
|
-
import { normalizePropDefinition as r, validatePropDefs as i } from "./props.js";
|
|
4
|
-
import { BaseElement as a } from "./base-element.js";
|
|
5
|
-
//#region ../ore/dist/define.js
|
|
6
|
-
function o(o, s) {
|
|
7
|
-
if (!o) throw new t(e.defineRequiresTag);
|
|
8
|
-
if (customElements.get(o)) throw new t(e.defineDuplicate(o));
|
|
9
|
-
let { props: c } = s, l = (() => {
|
|
10
|
-
if (!c) return;
|
|
11
|
-
let n = i(c);
|
|
12
|
-
if (n.length > 0) throw new t(e.validationFailed(o, n));
|
|
13
|
-
let a = {};
|
|
14
|
-
for (let [e, t] of Object.entries(c)) a[e] = r(t, e);
|
|
15
|
-
return a;
|
|
16
|
-
})(), u = l ? Object.keys(l).map(n) : [], d = class extends a {
|
|
17
|
-
static _definition = s;
|
|
18
|
-
static _normalizedPropDefs = l;
|
|
19
|
-
static formAssociated = s.formAssociated ?? !1;
|
|
20
|
-
static observedAttributes = u;
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(d, "name", { value: o }), customElements.define(o, d);
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { o as define };
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=define.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define.js","names":["t","e","n","a","r","o"],"sources":["../../../../ore/dist/define.js"],"sourcesContent":["import{ORE_ERRORS as e,OreApiError as t}from\"./errors.js\";import{toKebab as n}from\"./utils/dom.js\";import{normalizePropDefinition as r,prop as i,validatePropDefs as a}from\"./props.js\";import{BaseElement as o}from\"./base-element.js\";function s(i,s){if(!i)throw new t(e.defineRequiresTag);if(customElements.get(i))throw new t(e.defineDuplicate(i));let{props:c}=s,l=(()=>{if(!c)return;let n=a(c);if(n.length>0)throw new t(e.validationFailed(i,n));let o={};for(let[e,t]of Object.entries(c))o[e]=r(t,e);return o})(),u=l?Object.keys(l).map(n):[],d=class extends o{static _definition=s;static _normalizedPropDefs=l;static formAssociated=s.formAssociated??!1;static observedAttributes=u};Object.defineProperty(d,\"name\",{value:i}),customElements.define(i,d)}export{s as define,i as prop};\n//# sourceMappingURL=define.js.map"],"mappings":";;;;;AAAwO,SAAS,EAAE,GAAE,GAAE;CAAC,IAAG,CAAC,GAAE,MAAM,IAAIA,EAAEC,EAAE,iBAAiB;CAAE,IAAG,eAAe,IAAI,CAAC,GAAE,MAAM,IAAID,EAAEC,EAAE,gBAAgB,CAAC,CAAC;CAAE,IAAG,EAAC,OAAM,MAAG,GAAE,WAAO;EAAC,IAAG,CAAC,GAAE;EAAO,IAAIC,IAAEC,EAAE,CAAC;EAAE,IAAGD,EAAE,SAAO,GAAE,MAAM,IAAIF,EAAEC,EAAE,iBAAiB,GAAEC,CAAC,CAAC;EAAE,IAAI,IAAE,CAAC;EAAE,KAAI,IAAG,CAAC,GAAE,MAAK,OAAO,QAAQ,CAAC,GAAE,EAAE,KAAGE,EAAE,GAAE,CAAC;EAAE,OAAO;CAAC,EAAA,CAAG,GAAE,IAAE,IAAE,OAAO,KAAK,CAAC,CAAC,CAAC,IAAIF,CAAC,IAAE,CAAC,GAAE,IAAE,cAAcG,EAAC;EAAC,OAAO,cAAY;EAAE,OAAO,sBAAoB;EAAE,OAAO,iBAAe,EAAE,kBAAgB,CAAC;EAAE,OAAO,qBAAmB;CAAC;CAAE,OAAO,eAAe,GAAE,QAAO,EAAC,OAAM,EAAC,CAAC,GAAE,eAAe,OAAO,GAAE,CAAC;AAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("@vielzeug/ripple");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@vielzeug/ripple";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("../_dev.cjs"),require("../errors.cjs"),require("../types/bindings.cjs"),require("../utils/dom.cjs"),require("@vielzeug/ripple");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"live.cjs","names":[],"sources":["../../../../../ore/dist/directives/live.js"],"sourcesContent":["var e=new WeakSet,t=t=>(e.add(t),t),n=t=>typeof t==`object`&&!!t&&e.has(t),r=()=>{e=new WeakSet};export{r as _resetLiveSignals,n as isLiveSignal,t as live};\n//# sourceMappingURL=live.js.map"],"mappings":"AAAA,IAAI,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"live.js","names":[],"sources":["../../../../../ore/dist/directives/live.js"],"sourcesContent":["var e=new WeakSet,t=t=>(e.add(t),t),n=t=>typeof t==`object`&&!!t&&e.has(t),r=()=>{e=new WeakSet};export{r as _resetLiveSignals,n as isLiveSignal,t as live};\n//# sourceMappingURL=live.js.map"],"mappings":";AAAA,IAAI,oBAAE,IAAI,QAAM,GAAE,KAAE,OAAI,EAAE,IAAI,CAAC,GAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("../types/bindings.cjs"),require("../utils/dom.cjs"),require("@vielzeug/ripple");
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../_dev.cjs"),t=require("../errors.cjs"),n=require("../types/bindings.cjs"),r=require("../utils/dom.cjs");let i=require("@vielzeug/ripple");var a=!1,o=t=>(t&&!a&&(a=!0,e.warn(`raw() was called without a sanitizer registered. Passing user-supplied HTML directly to raw() is an XSS risk. Register a sanitizer with setRawSanitizer() — e.g. setRawSanitizer(DOMPURIFY.sanitize).`)),t),s=(e,t,n)=>{let r=document.createElement(`template`);r.innerHTML=e;let i=Array.from(r.content.cloneNode(!0).childNodes);for(let e of i)t.insertBefore(e,n);return i};function c(e){if(typeof e==`function`){let t=(0,i.computed)(e);return n.createDirectiveResult((e,n)=>{n(()=>t.dispose()),c(t).mount(e,n)})}return n.createDirectiveResult((n,a)=>{let c=n.parentNode;t.invariant(c,`raw() anchor comment has no parent node`);let l=document.createComment(`raw/end`);if(c.insertBefore(l,n.nextSibling),(0,i.isReactive)(e)){let t=[],n=e,u=(0,i.effect)(()=>{r.removeNodes(t),t=s(o(n.value),c,l)});a(()=>u.dispose()),a(()=>{r.removeNodes(t),l.remove()})}else s(o(e),c,l),a(()=>l.remove())})}exports.raw=c;
|
|
2
|
-
//# sourceMappingURL=raw.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw.cjs","names":["t","e","n"],"sources":["../../../../../ore/dist/directives/raw.js"],"sourcesContent":["import{warn as e}from\"../_dev.js\";import{invariant as t}from\"../errors.js\";import{createDirectiveResult as n}from\"../types/bindings.js\";import{removeNodes as r}from\"../utils/dom.js\";import{computed as i,effect as a,isReactive as o}from\"@vielzeug/ripple\";var s=null,c=!1,l=e=>{s=e,e||(c=!1)},u=()=>{s=null,c=!1},d=t=>s?s(t):(t&&!c&&(c=!0,e(`raw() was called without a sanitizer registered. Passing user-supplied HTML directly to raw() is an XSS risk. Register a sanitizer with setRawSanitizer() — e.g. setRawSanitizer(DOMPURIFY.sanitize).`)),t),f=(e,t,n)=>{let r=document.createElement(`template`);r.innerHTML=e;let i=Array.from(r.content.cloneNode(!0).childNodes);for(let e of i)t.insertBefore(e,n);return i};function p(e){if(typeof e==`function`){let t=i(e);return n((e,n)=>{n(()=>t.dispose()),p(t).mount(e,n)})}return n((n,i)=>{let s=n.parentNode;t(s,`raw() anchor comment has no parent node`);let c=document.createComment(`raw/end`);if(s.insertBefore(c,n.nextSibling),o(e)){let t=[],n=e,o=a(()=>{r(t),t=f(d(n.value),s,c)});i(()=>o.dispose()),i(()=>{r(t),c.remove()})}else f(d(e),s,c),i(()=>c.remove())})}export{u as _resetRawSanitizer,p as raw,l as setRawSanitizer};\n//# sourceMappingURL=raw.js.map"],"mappings":"6JAA8P,IAAW,EAAE,CAAC,EAA2C,EAAE,IAAWA,GAAG,CAAC,IAAI,EAAE,CAAC,EAAEC,EAAAA,KAAE,uMAAuM,GAAGD,GAAG,GAAG,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,cAAc,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,EAAE,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,IAAI,KAAK,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,OAAO,GAAG,WAAW,CAAC,IAAI,GAAA,EAAA,EAAA,SAAA,CAAI,CAAC,EAAE,OAAOE,EAAAA,uBAAG,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAOA,EAAAA,uBAAG,EAAE,IAAI,CAAC,IAAI,EAAEA,EAAE,WAAW,EAAA,UAAE,EAAE,yCAAyC,EAAE,IAAI,EAAE,SAAS,cAAc,SAAS,EAAE,GAAG,EAAE,aAAa,EAAEA,EAAE,WAAW,GAAA,EAAA,EAAA,WAAA,CAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAEA,EAAE,EAAE,GAAA,EAAA,EAAA,OAAA,KAAQ,CAAC,EAAA,YAAE,CAAC,EAAE,EAAE,EAAE,EAAEA,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAA,YAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { warn as e } from "../_dev.js";
|
|
2
|
-
import { invariant as t } from "../errors.js";
|
|
3
|
-
import { createDirectiveResult as n } from "../types/bindings.js";
|
|
4
|
-
import { removeNodes as r } from "../utils/dom.js";
|
|
5
|
-
import { computed as i, effect as a, isReactive as o } from "@vielzeug/ripple";
|
|
6
|
-
//#region ../ore/dist/directives/raw.js
|
|
7
|
-
var s = !1, c = (t) => (t && !s && (s = !0, e("raw() was called without a sanitizer registered. Passing user-supplied HTML directly to raw() is an XSS risk. Register a sanitizer with setRawSanitizer() — e.g. setRawSanitizer(DOMPURIFY.sanitize).")), t), l = (e, t, n) => {
|
|
8
|
-
let r = document.createElement("template");
|
|
9
|
-
r.innerHTML = e;
|
|
10
|
-
let i = Array.from(r.content.cloneNode(!0).childNodes);
|
|
11
|
-
for (let e of i) t.insertBefore(e, n);
|
|
12
|
-
return i;
|
|
13
|
-
};
|
|
14
|
-
function u(e) {
|
|
15
|
-
if (typeof e == "function") {
|
|
16
|
-
let t = i(e);
|
|
17
|
-
return n((e, n) => {
|
|
18
|
-
n(() => t.dispose()), u(t).mount(e, n);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return n((n, i) => {
|
|
22
|
-
let s = n.parentNode;
|
|
23
|
-
t(s, "raw() anchor comment has no parent node");
|
|
24
|
-
let u = document.createComment("raw/end");
|
|
25
|
-
if (s.insertBefore(u, n.nextSibling), o(e)) {
|
|
26
|
-
let t = [], n = e, o = a(() => {
|
|
27
|
-
r(t), t = l(c(n.value), s, u);
|
|
28
|
-
});
|
|
29
|
-
i(() => o.dispose()), i(() => {
|
|
30
|
-
r(t), u.remove();
|
|
31
|
-
});
|
|
32
|
-
} else l(c(e), s, u), i(() => u.remove());
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { u as raw };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=raw.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw.js","names":["t","e","i","n","o","a"],"sources":["../../../../../ore/dist/directives/raw.js"],"sourcesContent":["import{warn as e}from\"../_dev.js\";import{invariant as t}from\"../errors.js\";import{createDirectiveResult as n}from\"../types/bindings.js\";import{removeNodes as r}from\"../utils/dom.js\";import{computed as i,effect as a,isReactive as o}from\"@vielzeug/ripple\";var s=null,c=!1,l=e=>{s=e,e||(c=!1)},u=()=>{s=null,c=!1},d=t=>s?s(t):(t&&!c&&(c=!0,e(`raw() was called without a sanitizer registered. Passing user-supplied HTML directly to raw() is an XSS risk. Register a sanitizer with setRawSanitizer() — e.g. setRawSanitizer(DOMPURIFY.sanitize).`)),t),f=(e,t,n)=>{let r=document.createElement(`template`);r.innerHTML=e;let i=Array.from(r.content.cloneNode(!0).childNodes);for(let e of i)t.insertBefore(e,n);return i};function p(e){if(typeof e==`function`){let t=i(e);return n((e,n)=>{n(()=>t.dispose()),p(t).mount(e,n)})}return n((n,i)=>{let s=n.parentNode;t(s,`raw() anchor comment has no parent node`);let c=document.createComment(`raw/end`);if(s.insertBefore(c,n.nextSibling),o(e)){let t=[],n=e,o=a(()=>{r(t),t=f(d(n.value),s,c)});i(()=>o.dispose()),i(()=>{r(t),c.remove()})}else f(d(e),s,c),i(()=>c.remove())})}export{u as _resetRawSanitizer,p as raw,l as setRawSanitizer};\n//# sourceMappingURL=raw.js.map"],"mappings":";;;;;;AAA8P,IAAW,IAAE,CAAC,GAA2C,KAAE,OAAWA,KAAG,CAAC,MAAI,IAAE,CAAC,GAAEC,EAAE,uMAAuM,IAAGD,IAAG,KAAG,GAAE,GAAE,MAAI;CAAC,IAAI,IAAE,SAAS,cAAc,UAAU;CAAE,EAAE,YAAU;CAAE,IAAI,IAAE,MAAM,KAAK,EAAE,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU;CAAE,KAAI,IAAI,KAAK,GAAE,EAAE,aAAa,GAAE,CAAC;CAAE,OAAO;AAAC;AAAE,SAAS,EAAE,GAAE;CAAC,IAAG,OAAO,KAAG,YAAW;EAAC,IAAI,IAAEE,EAAE,CAAC;EAAE,OAAOC,GAAG,GAAE,MAAI;GAAC,QAAM,EAAE,QAAQ,CAAC,GAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAE,CAAC;EAAC,CAAC;CAAC;CAAC,OAAOA,GAAG,GAAE,MAAI;EAAC,IAAI,IAAEA,EAAE;EAAW,EAAE,GAAE,yCAAyC;EAAE,IAAI,IAAE,SAAS,cAAc,SAAS;EAAE,IAAG,EAAE,aAAa,GAAEA,EAAE,WAAW,GAAEC,EAAE,CAAC,GAAE;GAAC,IAAI,IAAE,CAAC,GAAED,IAAE,GAAE,IAAEE,QAAM;IAAC,EAAE,CAAC,GAAE,IAAE,EAAE,EAAEF,EAAE,KAAK,GAAE,GAAE,CAAC;GAAC,CAAC;GAAE,QAAM,EAAE,QAAQ,CAAC,GAAE,QAAM;IAAC,EAAE,CAAC,GAAE,EAAE,OAAO;GAAC,CAAC;EAAC,OAAM,EAAE,EAAE,CAAC,GAAE,GAAE,CAAC,GAAE,QAAM,EAAE,OAAO,CAAC;CAAC,CAAC;AAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../utils/dom.cjs");let t=require("@vielzeug/ripple");var n=e=>{let n=typeof e==`function`?e():(0,t.isReactive)(e)?e.value:e;return n==null||n===!1?``:String(n).replace(/[;{}]/g,``)},r=/[;{}]/g,i=i=>(0,t.computed)(()=>{let t=[];for(let[a,o]of Object.entries(i)){let i=n(o);if(!i)continue;let s=e.toKebab(a).replace(r,``);s&&t.push(`${s}:${i}`)}return t.join(`;`)});exports.styleMap=i;
|
|
2
|
-
//# sourceMappingURL=styleMap.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleMap.cjs","names":["s","e"],"sources":["../../../../../ore/dist/directives/styleMap.js"],"sourcesContent":["import{toKebab as e}from\"../utils/dom.js\";import{computed as t,isReactive as n}from\"@vielzeug/ripple\";var r=e=>{let t=typeof e==`function`?e():n(e)?e.value:e;return t==null||t===!1?``:String(t).replace(/[;{}]/g,``)},i=/[;{}]/g,a=n=>t(()=>{let t=[];for(let[a,o]of Object.entries(n)){let n=r(o);if(!n)continue;let s=e(a).replace(i,``);s&&t.push(`${s}:${n}`)}return t.join(`;`)});export{a as styleMap};\n//# sourceMappingURL=styleMap.js.map"],"mappings":"sEAAsG,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,GAAA,EAAA,EAAA,WAAA,CAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,QAAQ,SAAS,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,IAAA,EAAA,EAAA,SAAA,KAAS,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,OAAO,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,SAAS,IAAIA,EAAEC,EAAAA,QAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,GAAGD,EAAE,GAAG,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,GAAG,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { toKebab as e } from "../utils/dom.js";
|
|
2
|
-
import { computed as t, isReactive as n } from "@vielzeug/ripple";
|
|
3
|
-
//#region ../ore/dist/directives/styleMap.js
|
|
4
|
-
var r = (e) => {
|
|
5
|
-
let t = typeof e == "function" ? e() : n(e) ? e.value : e;
|
|
6
|
-
return t == null || t === !1 ? "" : String(t).replace(/[;{}]/g, "");
|
|
7
|
-
}, i = /[;{}]/g, a = (n) => t(() => {
|
|
8
|
-
let t = [];
|
|
9
|
-
for (let [a, o] of Object.entries(n)) {
|
|
10
|
-
let n = r(o);
|
|
11
|
-
if (!n) continue;
|
|
12
|
-
let s = e(a).replace(i, "");
|
|
13
|
-
s && t.push(`${s}:${n}`);
|
|
14
|
-
}
|
|
15
|
-
return t.join(";");
|
|
16
|
-
});
|
|
17
|
-
//#endregion
|
|
18
|
-
export { a as styleMap };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=styleMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleMap.js","names":["n","t","s","e"],"sources":["../../../../../ore/dist/directives/styleMap.js"],"sourcesContent":["import{toKebab as e}from\"../utils/dom.js\";import{computed as t,isReactive as n}from\"@vielzeug/ripple\";var r=e=>{let t=typeof e==`function`?e():n(e)?e.value:e;return t==null||t===!1?``:String(t).replace(/[;{}]/g,``)},i=/[;{}]/g,a=n=>t(()=>{let t=[];for(let[a,o]of Object.entries(n)){let n=r(o);if(!n)continue;let s=e(a).replace(i,``);s&&t.push(`${s}:${n}`)}return t.join(`;`)});export{a as styleMap};\n//# sourceMappingURL=styleMap.js.map"],"mappings":";;;AAAsG,IAAI,KAAE,MAAG;CAAC,IAAI,IAAE,OAAO,KAAG,aAAW,EAAE,IAAEA,EAAE,CAAC,IAAE,EAAE,QAAM;CAAE,OAAO,KAAG,QAAM,MAAI,CAAC,IAAE,KAAG,OAAO,CAAC,CAAC,CAAC,QAAQ,UAAS,EAAE;AAAC,GAAE,IAAE,UAAS,KAAE,MAAGC,QAAM;CAAC,IAAI,IAAE,CAAC;CAAE,KAAI,IAAG,CAAC,GAAE,MAAK,OAAO,QAAQ,CAAC,GAAE;EAAC,IAAI,IAAE,EAAE,CAAC;EAAE,IAAG,CAAC,GAAE;EAAS,IAAIC,IAAEC,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAE,EAAE;EAAE,KAAG,EAAE,KAAK,GAAGD,EAAE,GAAG,GAAG;CAAC;CAAC,OAAO,EAAE,KAAK,GAAG;AAAC,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../errors.cjs"),t=require("../types/bindings.cjs"),n=require("../utils/dom.cjs");let r=require("@vielzeug/ripple");var i=`when() anchor comment has no parent node`,a=(e,t,n,r)=>e.mount(t,n,r);function o(o,s,c){return typeof o!=`function`&&!(0,r.isReactive)(o)?t.createDirectiveResult((r,l)=>{let u=o?s():c?c():null;if(!u||!t.isHtmlResult(u))return;let d=r.parentNode;e.invariant(d,i);let f=a(u,d,r,l);l(()=>n.removeNodes(f))}):t.createDirectiveResult((l,u)=>{let d=typeof o==`function`?(0,r.computed)(o):null,f=d??o;d&&u(()=>d.dispose());let p=l.parentNode;e.invariant(p,i);let m=document.createComment(`when/end`);p.insertBefore(m,l.nextSibling);let h=[],g=[],_=(0,r.effect)(()=>{let e=f.value;n.runAll(g),n.removeNodes(h),g=[],h=[];let i=e?s():c?c():null;if(!i||!t.isHtmlResult(i))return;let o=[];h=(0,r.untrack)(()=>a(i,p,m,e=>o.push(e))),g=o});u(()=>_.dispose()),u(()=>{n.runAll(g),n.removeNodes(h),m.remove()})})}exports.when=o;
|
|
2
|
-
//# sourceMappingURL=when.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"when.cjs","names":["t","n","r"],"sources":["../../../../../ore/dist/directives/when.js"],"sourcesContent":["import{invariant as e}from\"../errors.js\";import{createDirectiveResult as t,isHtmlResult as n}from\"../types/bindings.js\";import{removeNodes as r,runAll as i}from\"../utils/dom.js\";import{computed as a,effect as o,isReactive as s,untrack as c}from\"@vielzeug/ripple\";var l=`when() anchor comment has no parent node`,u=(e,t,n,r)=>e.mount(t,n,r);function d(d,f,p){return typeof d!=`function`&&!s(d)?t((t,i)=>{let a=d?f():p?p():null;if(!a||!n(a))return;let o=t.parentNode;e(o,l);let s=u(a,o,t,i);i(()=>r(s))}):t((t,s)=>{let m=typeof d==`function`?a(d):null,h=m??d;m&&s(()=>m.dispose());let g=t.parentNode;e(g,l);let _=document.createComment(`when/end`);g.insertBefore(_,t.nextSibling);let v=[],y=[],b=o(()=>{let e=h.value;i(y),r(v),y=[],v=[];let t=e?f():p?p():null;if(!t||!n(t))return;let a=[];v=c(()=>u(t,g,_,e=>a.push(e))),y=a});s(()=>b.dispose()),s(()=>{i(y),r(v),_.remove()})})}export{d as when};\n//# sourceMappingURL=when.js.map"],"mappings":"oIAAuQ,IAAI,EAAE,2CAA2C,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,OAAO,OAAO,GAAG,YAAY,EAAA,EAAA,EAAA,WAAA,CAAG,CAAC,EAAEA,EAAAA,uBAAG,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,GAAG,CAAC,GAAG,CAACC,EAAAA,aAAE,CAAC,EAAE,OAAO,IAAI,EAAE,EAAE,WAAW,EAAA,UAAE,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAMC,EAAAA,YAAE,CAAC,CAAC,CAAC,CAAC,EAAEF,EAAAA,uBAAG,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,YAAA,EAAA,EAAA,SAAA,CAAa,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAEA,EAAE,WAAW,EAAA,UAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,cAAc,UAAU,EAAE,EAAE,aAAa,EAAEA,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,GAAA,EAAA,EAAA,OAAA,KAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAA,OAAE,CAAC,EAAEE,EAAAA,YAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,IAAIF,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,GAAG,CAACA,GAAG,CAACC,EAAAA,aAAED,CAAC,EAAE,OAAO,IAAI,EAAE,CAAC,EAAE,GAAA,EAAA,EAAA,QAAA,KAAQ,EAAEA,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAA,OAAE,CAAC,EAAEE,EAAAA,YAAE,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { invariant as e } from "../errors.js";
|
|
2
|
-
import { createDirectiveResult as t, isHtmlResult as n } from "../types/bindings.js";
|
|
3
|
-
import { removeNodes as r, runAll as i } from "../utils/dom.js";
|
|
4
|
-
import { computed as a, effect as o, isReactive as s, untrack as c } from "@vielzeug/ripple";
|
|
5
|
-
//#region ../ore/dist/directives/when.js
|
|
6
|
-
var l = "when() anchor comment has no parent node", u = (e, t, n, r) => e.mount(t, n, r);
|
|
7
|
-
function d(d, f, p) {
|
|
8
|
-
return typeof d != "function" && !s(d) ? t((t, i) => {
|
|
9
|
-
let a = d ? f() : p ? p() : null;
|
|
10
|
-
if (!a || !n(a)) return;
|
|
11
|
-
let o = t.parentNode;
|
|
12
|
-
e(o, l);
|
|
13
|
-
let s = u(a, o, t, i);
|
|
14
|
-
i(() => r(s));
|
|
15
|
-
}) : t((t, s) => {
|
|
16
|
-
let m = typeof d == "function" ? a(d) : null, h = m ?? d;
|
|
17
|
-
m && s(() => m.dispose());
|
|
18
|
-
let g = t.parentNode;
|
|
19
|
-
e(g, l);
|
|
20
|
-
let _ = document.createComment("when/end");
|
|
21
|
-
g.insertBefore(_, t.nextSibling);
|
|
22
|
-
let v = [], y = [], b = o(() => {
|
|
23
|
-
let e = h.value;
|
|
24
|
-
i(y), r(v), y = [], v = [];
|
|
25
|
-
let t = e ? f() : p ? p() : null;
|
|
26
|
-
if (!t || !n(t)) return;
|
|
27
|
-
let a = [];
|
|
28
|
-
v = c(() => u(t, g, _, (e) => a.push(e))), y = a;
|
|
29
|
-
});
|
|
30
|
-
s(() => b.dispose()), s(() => {
|
|
31
|
-
i(y), r(v), _.remove();
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { d as when };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=when.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"when.js","names":["s","t","n","r","a","o","c"],"sources":["../../../../../ore/dist/directives/when.js"],"sourcesContent":["import{invariant as e}from\"../errors.js\";import{createDirectiveResult as t,isHtmlResult as n}from\"../types/bindings.js\";import{removeNodes as r,runAll as i}from\"../utils/dom.js\";import{computed as a,effect as o,isReactive as s,untrack as c}from\"@vielzeug/ripple\";var l=`when() anchor comment has no parent node`,u=(e,t,n,r)=>e.mount(t,n,r);function d(d,f,p){return typeof d!=`function`&&!s(d)?t((t,i)=>{let a=d?f():p?p():null;if(!a||!n(a))return;let o=t.parentNode;e(o,l);let s=u(a,o,t,i);i(()=>r(s))}):t((t,s)=>{let m=typeof d==`function`?a(d):null,h=m??d;m&&s(()=>m.dispose());let g=t.parentNode;e(g,l);let _=document.createComment(`when/end`);g.insertBefore(_,t.nextSibling);let v=[],y=[],b=o(()=>{let e=h.value;i(y),r(v),y=[],v=[];let t=e?f():p?p():null;if(!t||!n(t))return;let a=[];v=c(()=>u(t,g,_,e=>a.push(e))),y=a});s(()=>b.dispose()),s(()=>{i(y),r(v),_.remove()})})}export{d as when};\n//# sourceMappingURL=when.js.map"],"mappings":";;;;;AAAuQ,IAAI,IAAE,4CAA2C,KAAG,GAAE,GAAE,GAAE,MAAI,EAAE,MAAM,GAAE,GAAE,CAAC;AAAE,SAAS,EAAE,GAAE,GAAE,GAAE;CAAC,OAAO,OAAO,KAAG,cAAY,CAACA,EAAE,CAAC,IAAEC,GAAG,GAAE,MAAI;EAAC,IAAI,IAAE,IAAE,EAAE,IAAE,IAAE,EAAE,IAAE;EAAK,IAAG,CAAC,KAAG,CAACC,EAAE,CAAC,GAAE;EAAO,IAAI,IAAE,EAAE;EAAW,EAAE,GAAE,CAAC;EAAE,IAAI,IAAE,EAAE,GAAE,GAAE,GAAE,CAAC;EAAE,QAAMC,EAAE,CAAC,CAAC;CAAC,CAAC,IAAEF,GAAG,GAAE,MAAI;EAAC,IAAI,IAAE,OAAO,KAAG,aAAWG,EAAE,CAAC,IAAE,MAAK,IAAE,KAAG;EAAE,KAAG,QAAM,EAAE,QAAQ,CAAC;EAAE,IAAI,IAAEH,EAAE;EAAW,EAAE,GAAE,CAAC;EAAE,IAAI,IAAE,SAAS,cAAc,UAAU;EAAE,EAAE,aAAa,GAAEA,EAAE,WAAW;EAAE,IAAI,IAAE,CAAC,GAAE,IAAE,CAAC,GAAE,IAAEI,QAAM;GAAC,IAAI,IAAE,EAAE;GAAM,EAAE,CAAC,GAAEF,EAAE,CAAC,GAAE,IAAE,CAAC,GAAE,IAAE,CAAC;GAAE,IAAIF,IAAE,IAAE,EAAE,IAAE,IAAE,EAAE,IAAE;GAAK,IAAG,CAACA,KAAG,CAACC,EAAED,CAAC,GAAE;GAAO,IAAI,IAAE,CAAC;GAAE,IAAEK,QAAM,EAAEL,GAAE,GAAE,IAAE,MAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAE,IAAE;EAAC,CAAC;EAAE,QAAM,EAAE,QAAQ,CAAC,GAAE,QAAM;GAAC,EAAE,CAAC,GAAEE,EAAE,CAAC,GAAE,EAAE,OAAO;EAAC,CAAC;CAAC,CAAC;AAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("./directives/classMap.cjs"),require("./directives/each.cjs");const e=require("./directives/live.cjs");require("./directives/model.cjs");const t=require("./directives/raw.cjs"),n=require("./directives/styleMap.cjs"),r=require("./directives/when.cjs");exports.live=e.live,exports.raw=t.raw,exports.styleMap=n.styleMap,exports.when=r.when;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./directives/classMap.js";
|
|
2
|
-
import "./directives/each.js";
|
|
3
|
-
import { live as e } from "./directives/live.js";
|
|
4
|
-
import "./directives/model.js";
|
|
5
|
-
import { raw as t } from "./directives/raw.js";
|
|
6
|
-
import { styleMap as n } from "./directives/styleMap.js";
|
|
7
|
-
import { when as r } from "./directives/when.js";
|
|
8
|
-
export { e as live, t as raw, n as styleMap, r as when };
|
package/dist/ore/dist/errors.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e=require("./_dev.cjs");var t=class e extends Error{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}static is(t){return t instanceof e}},n=class extends t{constructor(e){super(e)}},r=class extends t{constructor(e){super(e)}},i=class extends t{component;phase;constructor(e,t){super(e,{cause:t.cause}),this.component=t.component,this.phase=t.phase}};function a(t,n){e.error(`<${t.component}> setup error (phase: ${t.phase}):`,t.cause),n.dispatchEvent(new CustomEvent(`ore:error`,{bubbles:!0,composed:!0,detail:t}))}var o={defineDuplicate:e=>`define('${e}') called twice — custom element already registered`,defineFieldRequiresFormAssociated:e=>`useField() requires define('${e}', { formAssociated: true })`,defineRequiresTag:`define() requires a tag name`,eachDuplicateKey:(e,t)=>`each() received duplicate key "${e}" at index ${t}`,injectStrictFailed:(e,t)=>`injectStrict() could not resolve key "${e}" in <${t}>`,invalidDynamicTagName:e=>`html\`...\`: dynamic tag name "${e}" is not a valid HTML element name`,invariantViolated:e=>`invariant violated: ${e}`,lifecycleOutsideSetup:`Lifecycle hooks must be called during component setup`,propInvalidReflect:`Structured props cannot use reflect:true — use prop.json() with reflect:false`,validationFailed:(e,t)=>`Validation failed for <${e}>:\n${t.join(`
|
|
2
|
-
`)}`};function s(e,t){if(!e)throw new r(o.invariantViolated(t))}exports.ORE_ERRORS=o,exports.OreApiError=n,exports.OreError=t,exports.OreInternalError=r,exports.OreLifecycleError=i,exports.invariant=s,exports.reportRuntimeError=a;
|
|
3
|
-
//# sourceMappingURL=errors.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.cjs","names":[],"sources":["../../../../ore/dist/errors.js"],"sourcesContent":["import{error as e}from\"./_dev.js\";var t=class e extends Error{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}static is(t){return t instanceof e}},n=class extends t{constructor(e){super(e)}},r=class extends t{constructor(e){super(e)}},i=class extends t{component;phase;constructor(e,t){super(e,{cause:t.cause}),this.component=t.component,this.phase=t.phase}};function a(t,n){e(`<${t.component}> setup error (phase: ${t.phase}):`,t.cause),n.dispatchEvent(new CustomEvent(`ore:error`,{bubbles:!0,composed:!0,detail:t}))}var o=class extends t{},s={defineDuplicate:e=>`define('${e}') called twice — custom element already registered`,defineFieldRequiresFormAssociated:e=>`useField() requires define('${e}', { formAssociated: true })`,defineRequiresTag:`define() requires a tag name`,eachDuplicateKey:(e,t)=>`each() received duplicate key \"${e}\" at index ${t}`,injectStrictFailed:(e,t)=>`injectStrict() could not resolve key \"${e}\" in <${t}>`,invalidDynamicTagName:e=>`html\\`...\\`: dynamic tag name \"${e}\" is not a valid HTML element name`,invariantViolated:e=>`invariant violated: ${e}`,lifecycleOutsideSetup:`Lifecycle hooks must be called during component setup`,propInvalidReflect:`Structured props cannot use reflect:true — use prop.json() with reflect:false`,validationFailed:(e,t)=>`Validation failed for <${e}>:\\n${t.join(`\n`)}`};function c(e,t){if(!e)throw new r(s.invariantViolated(t))}export{s as ORE_ERRORS,n as OreApiError,t as OreError,r as OreInternalError,i as OreLifecycleError,o as OreTimeoutError,c as invariant,a as reportRuntimeError};\n//# sourceMappingURL=errors.js.map"],"mappings":"8BAAkC,IAAI,EAAE,MAAM,UAAU,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,KAAK,IAAI,OAAO,KAAK,OAAO,eAAe,KAAK,IAAI,OAAO,SAAS,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC,UAAU,MAAM,YAAY,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,UAAU,EAAE,UAAU,KAAK,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,EAAA,MAAE,IAAI,EAAE,UAAU,wBAAwB,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,IAAI,YAAY,YAAY,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAwB,EAAE,CAAC,gBAAgB,GAAG,WAAW,EAAE,qDAAqD,kCAAkC,GAAG,+BAA+B,EAAE,8BAA8B,kBAAkB,+BAA+B,kBAAkB,EAAE,IAAI,kCAAkC,EAAE,aAAa,IAAI,oBAAoB,EAAE,IAAI,yCAAyC,EAAE,QAAQ,EAAE,GAAG,sBAAsB,GAAG,kCAAkC,EAAE,oCAAoC,kBAAkB,GAAG,uBAAuB,IAAI,sBAAsB,wDAAwD,mBAAmB,gFAAgF,kBAAkB,EAAE,IAAI,0BAA0B,EAAE,MAAM,EAAE,KAAK;CACn2C,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC"}
|
package/dist/ore/dist/errors.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { error as e } from "./_dev.js";
|
|
2
|
-
//#region ../ore/dist/errors.js
|
|
3
|
-
var t = class e extends Error {
|
|
4
|
-
constructor(e, t) {
|
|
5
|
-
super(e, t), this.name = new.target.name, Object.setPrototypeOf(this, new.target.prototype);
|
|
6
|
-
}
|
|
7
|
-
static is(t) {
|
|
8
|
-
return t instanceof e;
|
|
9
|
-
}
|
|
10
|
-
}, n = class extends t {
|
|
11
|
-
constructor(e) {
|
|
12
|
-
super(e);
|
|
13
|
-
}
|
|
14
|
-
}, r = class extends t {
|
|
15
|
-
constructor(e) {
|
|
16
|
-
super(e);
|
|
17
|
-
}
|
|
18
|
-
}, i = class extends t {
|
|
19
|
-
component;
|
|
20
|
-
phase;
|
|
21
|
-
constructor(e, t) {
|
|
22
|
-
super(e, { cause: t.cause }), this.component = t.component, this.phase = t.phase;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function a(t, n) {
|
|
26
|
-
e(`<${t.component}> setup error (phase: ${t.phase}):`, t.cause), n.dispatchEvent(new CustomEvent("ore:error", {
|
|
27
|
-
bubbles: !0,
|
|
28
|
-
composed: !0,
|
|
29
|
-
detail: t
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
var o = {
|
|
33
|
-
defineDuplicate: (e) => `define('${e}') called twice — custom element already registered`,
|
|
34
|
-
defineFieldRequiresFormAssociated: (e) => `useField() requires define('${e}', { formAssociated: true })`,
|
|
35
|
-
defineRequiresTag: "define() requires a tag name",
|
|
36
|
-
eachDuplicateKey: (e, t) => `each() received duplicate key "${e}" at index ${t}`,
|
|
37
|
-
injectStrictFailed: (e, t) => `injectStrict() could not resolve key "${e}" in <${t}>`,
|
|
38
|
-
invalidDynamicTagName: (e) => `html\`...\`: dynamic tag name "${e}" is not a valid HTML element name`,
|
|
39
|
-
invariantViolated: (e) => `invariant violated: ${e}`,
|
|
40
|
-
lifecycleOutsideSetup: "Lifecycle hooks must be called during component setup",
|
|
41
|
-
propInvalidReflect: "Structured props cannot use reflect:true — use prop.json() with reflect:false",
|
|
42
|
-
validationFailed: (e, t) => `Validation failed for <${e}>:\n${t.join("\n")}`
|
|
43
|
-
};
|
|
44
|
-
function s(e, t) {
|
|
45
|
-
if (!e) throw new r(o.invariantViolated(t));
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
export { o as ORE_ERRORS, n as OreApiError, t as OreError, r as OreInternalError, i as OreLifecycleError, s as invariant, a as reportRuntimeError };
|
|
49
|
-
|
|
50
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":[],"sources":["../../../../ore/dist/errors.js"],"sourcesContent":["import{error as e}from\"./_dev.js\";var t=class e extends Error{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}static is(t){return t instanceof e}},n=class extends t{constructor(e){super(e)}},r=class extends t{constructor(e){super(e)}},i=class extends t{component;phase;constructor(e,t){super(e,{cause:t.cause}),this.component=t.component,this.phase=t.phase}};function a(t,n){e(`<${t.component}> setup error (phase: ${t.phase}):`,t.cause),n.dispatchEvent(new CustomEvent(`ore:error`,{bubbles:!0,composed:!0,detail:t}))}var o=class extends t{},s={defineDuplicate:e=>`define('${e}') called twice — custom element already registered`,defineFieldRequiresFormAssociated:e=>`useField() requires define('${e}', { formAssociated: true })`,defineRequiresTag:`define() requires a tag name`,eachDuplicateKey:(e,t)=>`each() received duplicate key \"${e}\" at index ${t}`,injectStrictFailed:(e,t)=>`injectStrict() could not resolve key \"${e}\" in <${t}>`,invalidDynamicTagName:e=>`html\\`...\\`: dynamic tag name \"${e}\" is not a valid HTML element name`,invariantViolated:e=>`invariant violated: ${e}`,lifecycleOutsideSetup:`Lifecycle hooks must be called during component setup`,propInvalidReflect:`Structured props cannot use reflect:true — use prop.json() with reflect:false`,validationFailed:(e,t)=>`Validation failed for <${e}>:\\n${t.join(`\n`)}`};function c(e,t){if(!e)throw new r(s.invariantViolated(t))}export{s as ORE_ERRORS,n as OreApiError,t as OreError,r as OreInternalError,i as OreLifecycleError,o as OreTimeoutError,c as invariant,a as reportRuntimeError};\n//# sourceMappingURL=errors.js.map"],"mappings":";;AAAkC,IAAI,IAAE,MAAM,UAAU,MAAK;CAAC,YAAY,GAAE,GAAE;EAAC,MAAM,GAAE,CAAC,GAAE,KAAK,OAAK,IAAI,OAAO,MAAK,OAAO,eAAe,MAAK,IAAI,OAAO,SAAS;CAAC;CAAC,OAAO,GAAG,GAAE;EAAC,OAAO,aAAa;CAAC;AAAC,GAAE,IAAE,cAAc,EAAC;CAAC,YAAY,GAAE;EAAC,MAAM,CAAC;CAAC;AAAC,GAAE,IAAE,cAAc,EAAC;CAAC,YAAY,GAAE;EAAC,MAAM,CAAC;CAAC;AAAC,GAAE,IAAE,cAAc,EAAC;CAAC;CAAU;CAAM,YAAY,GAAE,GAAE;EAAC,MAAM,GAAE,EAAC,OAAM,EAAE,MAAK,CAAC,GAAE,KAAK,YAAU,EAAE,WAAU,KAAK,QAAM,EAAE;CAAK;AAAC;AAAE,SAAS,EAAE,GAAE,GAAE;CAAC,EAAE,IAAI,EAAE,UAAU,wBAAwB,EAAE,MAAM,KAAI,EAAE,KAAK,GAAE,EAAE,cAAc,IAAI,YAAY,aAAY;EAAC,SAAQ,CAAC;EAAE,UAAS,CAAC;EAAE,QAAO;CAAC,CAAC,CAAC;AAAC;AAAC,IAAwB,IAAE;CAAC,kBAAgB,MAAG,WAAW,EAAE;CAAqD,oCAAkC,MAAG,+BAA+B,EAAE;CAA8B,mBAAkB;CAA+B,mBAAkB,GAAE,MAAI,kCAAkC,EAAE,aAAa;CAAI,qBAAoB,GAAE,MAAI,yCAAyC,EAAE,QAAQ,EAAE;CAAG,wBAAsB,MAAG,kCAAkC,EAAE;CAAoC,oBAAkB,MAAG,uBAAuB;CAAI,uBAAsB;CAAwD,oBAAmB;CAAgF,mBAAkB,GAAE,MAAI,0BAA0B,EAAE,MAAM,EAAE,KAAK,IACn2C;AAAG;AAAE,SAAS,EAAE,GAAE,GAAE;CAAC,IAAG,CAAC,GAAE,MAAM,IAAI,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.cjs","names":["e"],"sources":["../../../../../ore/dist/forms/context.js"],"sourcesContent":["import{createContext as e}from\"../context.js\";import{computed as t,signal as n}from\"@vielzeug/ripple\";var r=e(`ore:form-context`);function i(e={}){let r=n([]),i=n(!1),a=n(!1),o=n(null);return{clearStatus:()=>{a.value=!1,o.value=null,e.onReset?.()},dirty:a,error:o,markDirty:()=>{a.value=!0},registerField:e=>(r.value=[...r.value,e],()=>{r.value=r.value.filter(t=>t!==e)}),submit:async t=>{if(t?.preventDefault(),!i.value){i.value=!0,o.value=null;try{await e.onSubmit?.(t),a.value=!1}catch(e){o.value=e}finally{i.value=!1}}},submitting:i,valid:t(()=>r.value.every(e=>e.value))}}export{r as FORM_CONTEXT_KEY,i as createFormContext};\n//# sourceMappingURL=context.js.map"],"mappings":"8DAA4GA,EAAAA,cAAE,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","names":["e"],"sources":["../../../../../ore/dist/forms/context.js"],"sourcesContent":["import{createContext as e}from\"../context.js\";import{computed as t,signal as n}from\"@vielzeug/ripple\";var r=e(`ore:form-context`);function i(e={}){let r=n([]),i=n(!1),a=n(!1),o=n(null);return{clearStatus:()=>{a.value=!1,o.value=null,e.onReset?.()},dirty:a,error:o,markDirty:()=>{a.value=!0},registerField:e=>(r.value=[...r.value,e],()=>{r.value=r.value.filter(t=>t!==e)}),submit:async t=>{if(t?.preventDefault(),!i.value){i.value=!0,o.value=null;try{await e.onSubmit?.(t),a.value=!1}catch(e){o.value=e}finally{i.value=!1}}},submitting:i,valid:t(()=>r.value.every(e=>e.value))}}export{r as FORM_CONTEXT_KEY,i as createFormContext};\n//# sourceMappingURL=context.js.map"],"mappings":";;AAA4GA,EAAE,kBAAkB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../_dev.cjs"),t=require("../errors.cjs"),n=require("../runtime.cjs");require("@vielzeug/ripple");var r=new WeakMap,i=i=>{let a=i.el??n.getHost();if(!a.constructor.formAssociated)throw new t.OreApiError(t.ORE_ERRORS.defineFieldRequiresFormAssociated(a.localName));if(r.has(a))throw new t.OreApiError(`useField() was already called on <${a.localName}>. Call it only once per component.`);let o=a.attachInternals();r.set(a,o),n.onCleanup(()=>r.delete(a));let s=i.toFormValue??(e=>e==null?i.emptyStringForNull?``:null:e instanceof File||e instanceof FormData?e:String(e));n.watchEffect(()=>{o.setFormValue(s(i.value.value))});let c=i.disabled;if(c)if(!(`states`in o))e.warn(`useField(): ElementInternals.states (CustomStateSet) is not available in this environment — disabled state tracking skipped.`);else{let e=o.states;n.watchEffect(()=>{c.value?e.add(`disabled`):e.delete(`disabled`)})}return i.validity&&n.watchEffect(()=>{let t=i.validity?.value??{},n=Object.values(t).some(Boolean),r=i.validationMessage?.value??``;if(n&&!r){e.warn("useField(): `validity` has a truthy flag but `validationMessage` is empty — internals.setValidity() requires a non-empty message whenever any flag is true. Falling back to a generic message; pass `validationMessage` to customize it."),o.setValidity(t,`Invalid value.`);return}o.setValidity(t,r)}),i.onReset&&n.onFormReset(i.onReset),{checkValidity:()=>o.checkValidity(),internals:o,reportValidity:()=>o.reportValidity(),setCustomValidity:e=>e?o.setValidity({customError:!0},e):o.setValidity({}),setValidity:o.setValidity.bind(o)}};exports.useField=i;
|
|
2
|
-
//# sourceMappingURL=field.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.cjs","names":["r","n","t","u","i","f","o","a"],"sources":["../../../../../ore/dist/forms/field.js"],"sourcesContent":["import{warn as e}from\"../_dev.js\";import{ORE_ERRORS as t,OreApiError as n}from\"../errors.js\";import{getHost as r,onCleanup as i,onFormReset as a,watchEffect as o}from\"../runtime.js\";import\"@vielzeug/ripple\";var s=new WeakMap,c=c=>{let l=c.el??r();if(!l.constructor.formAssociated)throw new n(t.defineFieldRequiresFormAssociated(l.localName));if(s.has(l))throw new n(`useField() was already called on <${l.localName}>. Call it only once per component.`);let u=l.attachInternals();s.set(l,u),i(()=>s.delete(l));let d=c.toFormValue??(e=>e==null?c.emptyStringForNull?``:null:e instanceof File||e instanceof FormData?e:String(e));o(()=>{u.setFormValue(d(c.value.value))});let f=c.disabled;if(f)if(!(`states`in u))e(`useField(): ElementInternals.states (CustomStateSet) is not available in this environment — disabled state tracking skipped.`);else{let e=u.states;o(()=>{f.value?e.add(`disabled`):e.delete(`disabled`)})}return c.validity&&o(()=>{let t=c.validity?.value??{},n=Object.values(t).some(Boolean),r=c.validationMessage?.value??``;if(n&&!r){e(\"useField(): `validity` has a truthy flag but `validationMessage` is empty — internals.setValidity() requires a non-empty message whenever any flag is true. Falling back to a generic message; pass `validationMessage` to customize it.\"),u.setValidity(t,`Invalid value.`);return}u.setValidity(t,r)}),c.onReset&&a(c.onReset),{checkValidity:()=>u.checkValidity(),internals:u,reportValidity:()=>u.reportValidity(),setCustomValidity:e=>e?u.setValidity({customError:!0},e):u.setValidity({}),setValidity:u.setValidity.bind(u)}};export{c as useField};\n//# sourceMappingURL=field.js.map"],"mappings":"kHAA+M,IAAI,EAAE,IAAI,QAAQ,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,IAAIA,EAAAA,QAAE,EAAE,GAAG,CAAC,EAAE,YAAY,eAAe,MAAM,IAAIC,EAAAA,YAAEC,EAAAA,WAAE,kCAAkC,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,IAAID,EAAAA,YAAE,qCAAqC,EAAE,UAAU,oCAAoC,EAAE,IAAIE,EAAE,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAEA,CAAC,EAAEC,EAAAA,cAAM,EAAE,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,GAAG,KAAK,EAAE,mBAAmB,GAAG,KAAK,aAAa,MAAM,aAAa,SAAS,EAAE,OAAO,CAAC,GAAG,EAAA,gBAAM,CAAC,EAAE,aAAa,EAAE,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,EAAE,IAAIC,EAAE,EAAE,SAAS,GAAGA,EAAE,GAAG,EAAE,WAAWF,GAAG,EAAA,KAAE,8HAA8H,MAAM,CAAC,IAAI,EAAEA,EAAE,OAAO,EAAA,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,UAAU,EAAE,EAAE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,UAAUG,EAAAA,gBAAM,CAAC,IAAIJ,EAAE,EAAE,UAAU,OAAO,CAAC,EAAE,EAAE,OAAO,OAAOA,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,EAAE,EAAE,mBAAmB,OAAO,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,EAAA,KAAE,0OAA0O,EAAEC,EAAE,YAAYD,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,YAAYA,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,SAASK,EAAAA,YAAE,EAAE,OAAO,EAAE,CAAC,kBAAkBJ,EAAE,cAAc,EAAE,UAAUA,EAAE,mBAAmBA,EAAE,eAAe,EAAE,kBAAkB,GAAG,EAAEA,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAEA,EAAE,YAAY,CAAC,CAAC,EAAE,YAAYA,EAAE,YAAY,KAAKA,CAAC,CAAC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { warn as e } from "../_dev.js";
|
|
2
|
-
import { ORE_ERRORS as t, OreApiError as n } from "../errors.js";
|
|
3
|
-
import { getHost as r, onCleanup as i, onFormReset as a, watchEffect as o } from "../runtime.js";
|
|
4
|
-
import "@vielzeug/ripple";
|
|
5
|
-
//#region ../ore/dist/forms/field.js
|
|
6
|
-
var s = /* @__PURE__ */ new WeakMap(), c = (c) => {
|
|
7
|
-
let l = c.el ?? r();
|
|
8
|
-
if (!l.constructor.formAssociated) throw new n(t.defineFieldRequiresFormAssociated(l.localName));
|
|
9
|
-
if (s.has(l)) throw new n(`useField() was already called on <${l.localName}>. Call it only once per component.`);
|
|
10
|
-
let u = l.attachInternals();
|
|
11
|
-
s.set(l, u), i(() => s.delete(l));
|
|
12
|
-
let d = c.toFormValue ?? ((e) => e == null ? c.emptyStringForNull ? "" : null : e instanceof File || e instanceof FormData ? e : String(e));
|
|
13
|
-
o(() => {
|
|
14
|
-
u.setFormValue(d(c.value.value));
|
|
15
|
-
});
|
|
16
|
-
let f = c.disabled;
|
|
17
|
-
if (f) if (!("states" in u)) e("useField(): ElementInternals.states (CustomStateSet) is not available in this environment — disabled state tracking skipped.");
|
|
18
|
-
else {
|
|
19
|
-
let e = u.states;
|
|
20
|
-
o(() => {
|
|
21
|
-
f.value ? e.add("disabled") : e.delete("disabled");
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return c.validity && o(() => {
|
|
25
|
-
let t = c.validity?.value ?? {}, n = Object.values(t).some(Boolean), r = c.validationMessage?.value ?? "";
|
|
26
|
-
if (n && !r) {
|
|
27
|
-
e("useField(): `validity` has a truthy flag but `validationMessage` is empty — internals.setValidity() requires a non-empty message whenever any flag is true. Falling back to a generic message; pass `validationMessage` to customize it."), u.setValidity(t, "Invalid value.");
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
u.setValidity(t, r);
|
|
31
|
-
}), c.onReset && a(c.onReset), {
|
|
32
|
-
checkValidity: () => u.checkValidity(),
|
|
33
|
-
internals: u,
|
|
34
|
-
reportValidity: () => u.reportValidity(),
|
|
35
|
-
setCustomValidity: (e) => e ? u.setValidity({ customError: !0 }, e) : u.setValidity({}),
|
|
36
|
-
setValidity: u.setValidity.bind(u)
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
40
|
-
export { c as useField };
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","names":["r","t","u","i","f","o","a"],"sources":["../../../../../ore/dist/forms/field.js"],"sourcesContent":["import{warn as e}from\"../_dev.js\";import{ORE_ERRORS as t,OreApiError as n}from\"../errors.js\";import{getHost as r,onCleanup as i,onFormReset as a,watchEffect as o}from\"../runtime.js\";import\"@vielzeug/ripple\";var s=new WeakMap,c=c=>{let l=c.el??r();if(!l.constructor.formAssociated)throw new n(t.defineFieldRequiresFormAssociated(l.localName));if(s.has(l))throw new n(`useField() was already called on <${l.localName}>. Call it only once per component.`);let u=l.attachInternals();s.set(l,u),i(()=>s.delete(l));let d=c.toFormValue??(e=>e==null?c.emptyStringForNull?``:null:e instanceof File||e instanceof FormData?e:String(e));o(()=>{u.setFormValue(d(c.value.value))});let f=c.disabled;if(f)if(!(`states`in u))e(`useField(): ElementInternals.states (CustomStateSet) is not available in this environment — disabled state tracking skipped.`);else{let e=u.states;o(()=>{f.value?e.add(`disabled`):e.delete(`disabled`)})}return c.validity&&o(()=>{let t=c.validity?.value??{},n=Object.values(t).some(Boolean),r=c.validationMessage?.value??``;if(n&&!r){e(\"useField(): `validity` has a truthy flag but `validationMessage` is empty — internals.setValidity() requires a non-empty message whenever any flag is true. Falling back to a generic message; pass `validationMessage` to customize it.\"),u.setValidity(t,`Invalid value.`);return}u.setValidity(t,r)}),c.onReset&&a(c.onReset),{checkValidity:()=>u.checkValidity(),internals:u,reportValidity:()=>u.reportValidity(),setCustomValidity:e=>e?u.setValidity({customError:!0},e):u.setValidity({}),setValidity:u.setValidity.bind(u)}};export{c as useField};\n//# sourceMappingURL=field.js.map"],"mappings":";;;;;AAA+M,IAAI,oBAAE,IAAI,QAAM,GAAE,KAAE,MAAG;CAAC,IAAI,IAAE,EAAE,MAAIA,EAAE;CAAE,IAAG,CAAC,EAAE,YAAY,gBAAe,MAAM,IAAI,EAAEC,EAAE,kCAAkC,EAAE,SAAS,CAAC;CAAE,IAAG,EAAE,IAAI,CAAC,GAAE,MAAM,IAAI,EAAE,qCAAqC,EAAE,UAAU,oCAAoC;CAAE,IAAIC,IAAE,EAAE,gBAAgB;CAAE,EAAE,IAAI,GAAEA,CAAC,GAAEC,QAAM,EAAE,OAAO,CAAC,CAAC;CAAE,IAAI,IAAE,EAAE,iBAAc,MAAG,KAAG,OAAK,EAAE,qBAAmB,KAAG,OAAK,aAAa,QAAM,aAAa,WAAS,IAAE,OAAO,CAAC;CAAG,QAAM;EAAC,EAAE,aAAa,EAAE,EAAE,MAAM,KAAK,CAAC;CAAC,CAAC;CAAE,IAAIC,IAAE,EAAE;CAAS,IAAGA,GAAE,IAAG,EAAE,YAAWF,IAAG,EAAE,8HAA8H;MAAM;EAAC,IAAI,IAAEA,EAAE;EAAO,QAAM;GAAC,EAAE,QAAM,EAAE,IAAI,UAAU,IAAE,EAAE,OAAO,UAAU;EAAC,CAAC;CAAC;CAAC,OAAO,EAAE,YAAUG,QAAM;EAAC,IAAIJ,IAAE,EAAE,UAAU,SAAO,CAAC,GAAE,IAAE,OAAO,OAAOA,CAAC,CAAC,CAAC,KAAK,OAAO,GAAE,IAAE,EAAE,mBAAmB,SAAO;EAAG,IAAG,KAAG,CAAC,GAAE;GAAC,EAAE,0OAA0O,GAAEC,EAAE,YAAYD,GAAE,gBAAgB;GAAE;EAAM;EAAC,EAAE,YAAYA,GAAE,CAAC;CAAC,CAAC,GAAE,EAAE,WAASK,EAAE,EAAE,OAAO,GAAE;EAAC,qBAAkBJ,EAAE,cAAc;EAAE,WAAUA;EAAE,sBAAmBA,EAAE,eAAe;EAAE,oBAAkB,MAAG,IAAEA,EAAE,YAAY,EAAC,aAAY,CAAC,EAAC,GAAE,CAAC,IAAEA,EAAE,YAAY,CAAC,CAAC;EAAE,aAAYA,EAAE,YAAY,KAAKA,CAAC;CAAC;AAAC"}
|
package/dist/ore/dist/forms.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./forms/field.cjs");require("./forms/context.cjs"),exports.useField=e.useField;
|
package/dist/ore/dist/forms.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observe.cjs","names":[],"sources":["../../../../../ore/dist/observers/intersection-observe.js"],"sourcesContent":["import{onCleanup as e,signal as t}from\"@vielzeug/ripple\";var n=(n,r)=>{let i=t(null),a=new IntersectionObserver(([e])=>{e&&(i.value=e)},r);return a.observe(n),e(()=>a.disconnect()),i};export{n as intersectionObserver};\n//# sourceMappingURL=intersection-observe.js.map"],"mappings":"kCAAyD,IAAI,GAAG,EAAE,IAAI,CAAC,IAAI,GAAA,EAAA,EAAA,OAAA,CAAI,IAAI,EAAE,EAAE,IAAI,sBAAsB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAA,EAAA,EAAA,UAAA,KAAQ,EAAE,WAAW,CAAC,EAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { onCleanup as e, signal as t } from "@vielzeug/ripple";
|
|
2
|
-
//#region ../ore/dist/observers/intersection-observe.js
|
|
3
|
-
var n = (n, r) => {
|
|
4
|
-
let i = t(null), a = new IntersectionObserver(([e]) => {
|
|
5
|
-
e && (i.value = e);
|
|
6
|
-
}, r);
|
|
7
|
-
return a.observe(n), e(() => a.disconnect()), i;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { n as intersectionObserver };
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=intersection-observe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observe.js","names":["t","e"],"sources":["../../../../../ore/dist/observers/intersection-observe.js"],"sourcesContent":["import{onCleanup as e,signal as t}from\"@vielzeug/ripple\";var n=(n,r)=>{let i=t(null),a=new IntersectionObserver(([e])=>{e&&(i.value=e)},r);return a.observe(n),e(()=>a.disconnect()),i};export{n as intersectionObserver};\n//# sourceMappingURL=intersection-observe.js.map"],"mappings":";;AAAyD,IAAI,KAAG,GAAE,MAAI;CAAC,IAAI,IAAEA,EAAE,IAAI,GAAE,IAAE,IAAI,sBAAsB,CAAC,OAAK;EAAC,MAAI,EAAE,QAAM;CAAE,GAAE,CAAC;CAAE,OAAO,EAAE,QAAQ,CAAC,GAAEC,QAAM,EAAE,WAAW,CAAC,GAAE;AAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("@vielzeug/ripple");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@vielzeug/ripple";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("@vielzeug/ripple");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@vielzeug/ripple";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e=require("@vielzeug/ripple");var t=t=>{let n=(0,e.signal)({height:0,width:0}),r=new ResizeObserver(([e])=>{if(!e)return;let t=e.contentBoxSize[0];t&&(n.value={height:t.blockSize,width:t.inlineSize})});return r.observe(t),(0,e.onCleanup)(()=>r.disconnect()),n};exports.resizeObserver=t;
|
|
2
|
-
//# sourceMappingURL=resize-observe.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observe.cjs","names":[],"sources":["../../../../../ore/dist/observers/resize-observe.js"],"sourcesContent":["import{onCleanup as e,signal as t}from\"@vielzeug/ripple\";var n=n=>{let r=t({height:0,width:0}),i=new ResizeObserver(([e])=>{if(!e)return;let t=e.contentBoxSize[0];t&&(r.value={height:t.blockSize,width:t.inlineSize})});return i.observe(n),e(()=>i.disconnect()),r};export{n as resizeObserver};\n//# sourceMappingURL=resize-observe.js.map"],"mappings":"kCAAyD,IAAI,EAAE,GAAG,CAAC,IAAI,GAAA,EAAA,EAAA,OAAA,CAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,IAAI,EAAE,EAAE,eAAe,GAAG,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAA,EAAA,EAAA,UAAA,KAAQ,EAAE,WAAW,CAAC,EAAE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { onCleanup as e, signal as t } from "@vielzeug/ripple";
|
|
2
|
-
//#region ../ore/dist/observers/resize-observe.js
|
|
3
|
-
var n = (n) => {
|
|
4
|
-
let r = t({
|
|
5
|
-
height: 0,
|
|
6
|
-
width: 0
|
|
7
|
-
}), i = new ResizeObserver(([e]) => {
|
|
8
|
-
if (!e) return;
|
|
9
|
-
let t = e.contentBoxSize[0];
|
|
10
|
-
t && (r.value = {
|
|
11
|
-
height: t.blockSize,
|
|
12
|
-
width: t.inlineSize
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return i.observe(n), e(() => i.disconnect()), r;
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { n as resizeObserver };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=resize-observe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observe.js","names":["t","e"],"sources":["../../../../../ore/dist/observers/resize-observe.js"],"sourcesContent":["import{onCleanup as e,signal as t}from\"@vielzeug/ripple\";var n=n=>{let r=t({height:0,width:0}),i=new ResizeObserver(([e])=>{if(!e)return;let t=e.contentBoxSize[0];t&&(r.value={height:t.blockSize,width:t.inlineSize})});return i.observe(n),e(()=>i.disconnect()),r};export{n as resizeObserver};\n//# sourceMappingURL=resize-observe.js.map"],"mappings":";;AAAyD,IAAI,KAAE,MAAG;CAAC,IAAI,IAAEA,EAAE;EAAC,QAAO;EAAE,OAAM;CAAC,CAAC,GAAE,IAAE,IAAI,gBAAgB,CAAC,OAAK;EAAC,IAAG,CAAC,GAAE;EAAO,IAAI,IAAE,EAAE,eAAe;EAAG,MAAI,EAAE,QAAM;GAAC,QAAO,EAAE;GAAU,OAAM,EAAE;EAAU;CAAE,CAAC;CAAE,OAAO,EAAE,QAAQ,CAAC,GAAEC,QAAM,EAAE,WAAW,CAAC,GAAE;AAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./observers/intersection-observe.cjs");require("./observers/media-observe.cjs"),require("./observers/mutation-observe.cjs");const t=require("./observers/resize-observe.cjs");exports.intersectionObserver=e.intersectionObserver,exports.resizeObserver=t.resizeObserver;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { intersectionObserver as e } from "./observers/intersection-observe.js";
|
|
2
|
-
import "./observers/media-observe.js";
|
|
3
|
-
import "./observers/mutation-observe.js";
|
|
4
|
-
import { resizeObserver as t } from "./observers/resize-observe.js";
|
|
5
|
-
export { e as intersectionObserver, t as resizeObserver };
|
package/dist/ore/dist/props.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require("./_dev.cjs");const e=require("./errors.cjs"),t=require("./utils/dom.cjs"),n=require("./runtime.cjs");let r=require("@vielzeug/ripple");var i=e=>typeof e==`object`&&!!e&&`default`in e&&`parse`in e;function a(n,r){if(!i(n))throw new e.OreApiError(`Prop "${r}" must use a prop.* helper (string/number/bool/json/oneOf). Received: ${typeof n}`);let a=n;if(!a.parse)throw new e.OreApiError(`Prop "${r}" must have a parse function. Use prop.* helpers.`);let o=a.reflect??!1;if(o&&t.isStructuredValue(a.default))throw new e.OreApiError(`Prop "${r}": ${e.ORE_ERRORS.propInvalidReflect}`);return{...a,reflect:o}}function o(e){let t=[];for(let[n,r]of Object.entries(e))try{a(r,n)}catch(e){t.push(e instanceof Error?e.message:String(e))}return t}var s=new WeakMap,c=(e,t)=>s.get(e)?.get(t),l=(e,t)=>typeof e==`string`?t(e):e,u=(i,a,o,c)=>{s.has(i)||s.set(i,new Map);let{default:u,parse:d,reflect:f=!1}=c,p=(0,r.signal)(u),m=Object.hasOwn(i,a),h=m?i[a]:void 0,g={parse:d,reflect:f,signal:p};m?(delete i[a],p.value=l(h,d)):i.hasAttribute(o)&&(p.value=d(i.getAttribute(o)));let _=s.get(i);return e.invariant(_,`propRegistry entry missing for <${i.localName}> — registerProp() must create it above`),_.set(o,g),Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:()=>p.value,set:e=>{p.value=l(e,d)}}),f&&n.watchEffect(()=>{let e=p.value;e==null?i.removeAttribute(o):typeof e==`boolean`?i.toggleAttribute(o,e):t.setAttr(i,o,e)}),p};function d(e,n){let r={};for(let[i,a]of Object.entries(n))r[i]=u(e,i,t.toKebab(i),a);return r}exports.createProps=d,exports.getPropMeta=c,exports.normalizePropDefinition=a,exports.validatePropDefs=o;
|
|
2
|
-
//# sourceMappingURL=props.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.cjs","names":["t","e","n","i","r","s","a","o"],"sources":["../../../../ore/dist/props.js"],"sourcesContent":["import{warn as e}from\"./_dev.js\";import{ORE_ERRORS as t,OreApiError as n,invariant as r}from\"./errors.js\";import{isStructuredValue as i,setAttr as a,toKebab as o}from\"./utils/dom.js\";import{watchEffect as s}from\"./runtime.js\";import{signal as c}from\"@vielzeug/ripple\";function l(e){return{default:e,parse:()=>e,reflect:!1}}var u={bool(e){return{default:e??!1,parse:e=>e!==null&&e!==`false`,reflect:!0}},data(e){return l(e)},json(e){return{default:e,parse:t=>{if(t==null||t===``)return e;try{return JSON.parse(t)}catch{return e}},reflect:!1}},number(t){let n=t===void 0?void 0:t;return{default:n,parse:t=>{if(t==null)return n;let r=Number(t);return Number.isNaN(r)?(e(`prop.number(): attribute value \"${t}\" is not a valid number, using default (${String(n)})`),n):r},reflect:!0}},oneOf(e,t){return{default:t,parse:n=>n!=null&&e.includes(n)?n:t,reflect:!0}},string(e){let t=e===void 0?void 0:e;return{default:t,parse:e=>e??t,reflect:!0}}},d=e=>typeof e==`object`&&!!e&&`default`in e&&`parse`in e;function f(e,r){if(!d(e))throw new n(`Prop \"${r}\" must use a prop.* helper (string/number/bool/json/oneOf). Received: ${typeof e}`);let a=e;if(!a.parse)throw new n(`Prop \"${r}\" must have a parse function. Use prop.* helpers.`);let o=a.reflect??!1;if(o&&i(a.default))throw new n(`Prop \"${r}\": ${t.propInvalidReflect}`);return{...a,reflect:o}}function p(e){let t=[];for(let[n,r]of Object.entries(e))try{f(r,n)}catch(e){t.push(e instanceof Error?e.message:String(e))}return t}var m=new WeakMap,h=(e,t)=>m.get(e)?.get(t),g=(e,t)=>typeof e==`string`?t(e):e,_=(e,t,n,i)=>{m.has(e)||m.set(e,new Map);let{default:o,parse:l,reflect:u=!1}=i,d=c(o),f=Object.hasOwn(e,t),p=f?e[t]:void 0,h={parse:l,reflect:u,signal:d};f?(delete e[t],d.value=g(p,l)):e.hasAttribute(n)&&(d.value=l(e.getAttribute(n)));let _=m.get(e);return r(_,`propRegistry entry missing for <${e.localName}> — registerProp() must create it above`),_.set(n,h),Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:()=>d.value,set:e=>{d.value=g(e,l)}}),u&&s(()=>{let t=d.value;t==null?e.removeAttribute(n):typeof t==`boolean`?e.toggleAttribute(n,t):a(e,n,t)}),d};function v(e,t){let n={};for(let[r,i]of Object.entries(t))n[r]=_(e,r,o(r),i);return n}export{v as createProps,h as getPropMeta,f as normalizePropDefinition,u as prop,p as validatePropDefs};\n//# sourceMappingURL=props.js.map"],"mappings":"gJAAmU,IAAsmB,EAAE,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,GAAG,YAAY,GAAG,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,IAAIE,EAAAA,YAAE,SAAS,EAAE,wEAAwE,OAAO,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,MAAM,IAAIA,EAAAA,YAAE,SAAS,EAAE,kDAAkD,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,EAAE,GAAG,GAAGC,EAAAA,kBAAE,EAAE,OAAO,EAAE,MAAM,IAAID,EAAAA,YAAE,SAAS,EAAE,KAAKF,EAAAA,WAAE,oBAAoB,EAAE,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,OAAO,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,aAAa,MAAM,EAAE,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,QAAQ,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAA,EAAA,EAAA,OAAA,CAAI,CAAC,EAAE,EAAE,OAAO,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,IAAK,GAAE,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,OAAOI,EAAAA,UAAE,EAAE,mCAAmC,EAAE,UAAU,wCAAwC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,eAAe,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAGC,EAAAA,gBAAM,CAAC,IAAI,EAAE,EAAE,MAAM,GAAG,KAAK,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,EAAE,gBAAgB,EAAE,CAAC,EAAEC,EAAAA,QAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,OAAO,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAEC,EAAAA,QAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC"}
|