@drfed/web 0.0.0-stage → 0.1.0-dev.0
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/.output/nitro.json +17 -0
- package/.output/public/.vite/manifest.json +493 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-D96mwq1k.js +60 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-DrxSNh1X.js +60 -0
- package/.output/public/_build/assets/CompleteLoginChallenge.graphql-C5Zq3wNh.js +10 -0
- package/.output/public/_build/assets/CopyButton-B2l484wE.js +1 -0
- package/.output/public/_build/assets/CopyButton-Bi-ZR8x9.css +1 -0
- package/.output/public/_build/assets/CreateInstanceMutation.graphql-B4CRy6cl.js +19 -0
- package/.output/public/_build/assets/CreateObjectMutation.graphql-B4A01dgV.js +23 -0
- package/.output/public/_build/assets/GenerateActorsMutation.graphql-mlHJNIbe.js +23 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-CuzDdOdW.js +17 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-o9K0Qkg0.js +17 -0
- package/.output/public/_build/assets/HomeViewerQuery.graphql-B903WWKs.js +8 -0
- package/.output/public/_build/assets/HttpStatusCode-bgaVzuLy.js +1 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-DmNwiEhM.js +24 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-paa7teUO.js +24 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-B52nR132.js +66 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-DSA2BcAV.js +66 -0
- package/.output/public/_build/assets/InstanceSummary_instance.graphql-BoQAa5Od.js +1 -0
- package/.output/public/_build/assets/JNCCF6MP-CNMywyiC.js +1 -0
- package/.output/public/_build/assets/LP6E37CW-Cwv6G3n1.js +1 -0
- package/.output/public/_build/assets/SignInMutation.graphql-BalZYNFu.js +9 -0
- package/.output/public/_build/assets/TSB6MOZK-CpiH97G1.js +1 -0
- package/.output/public/_build/assets/Toast-3-eXCAKc.css +1 -0
- package/.output/public/_build/assets/Toast-C1zr9crB.js +1 -0
- package/.output/public/_build/assets/WorkspaceQuery.graphql-UoI7QDs4.js +23 -0
- package/.output/public/_build/assets/_...404_-WZ8kAljY.js +1 -0
- package/.output/public/_build/assets/_challengeId_-BgL-Berz.js +1 -0
- package/.output/public/_build/assets/_id_-YcZZShAv.css +1 -0
- package/.output/public/_build/assets/_id_-bpxdclBj.js +1 -0
- package/.output/public/_build/assets/_slug_-CyTA2aW7.css +1 -0
- package/.output/public/_build/assets/_slug_-DXfRknzJ.js +200 -0
- package/.output/public/_build/assets/about-DIrbzRsi.js +1 -0
- package/.output/public/_build/assets/actors-HfZh_afh.js +24 -0
- package/.output/public/_build/assets/client-CGFoRcqH.js +3 -0
- package/.output/public/_build/assets/components-5MVu7IcD.js +1 -0
- package/.output/public/_build/assets/dist-BrJ_B8nU.js +1 -0
- package/.output/public/_build/assets/dist-DVo0HS5G.js +1 -0
- package/.output/public/_build/assets/dist-WrlGlK67.js +1 -0
- package/.output/public/_build/assets/entry-client-BurSTYr9.css +1 -0
- package/.output/public/_build/assets/entry-client-RIC5nXxX.js +8 -0
- package/.output/public/_build/assets/form-BxigYd7J.css +1 -0
- package/.output/public/_build/assets/form.module-BecmEfV_.js +1 -0
- package/.output/public/_build/assets/index-BHn6sAgH.js +23 -0
- package/.output/public/_build/assets/index-BSLqnqN7.js +8 -0
- package/.output/public/_build/assets/index-B_xLBDOo.css +1 -0
- package/.output/public/_build/assets/instance-tpMrvJNZ.js +35 -0
- package/.output/public/_build/assets/label-Mv8GZ4jc.js +1 -0
- package/.output/public/_build/assets/objects-DPb8DI8A.css +1 -0
- package/.output/public/_build/assets/objects-DR9TfL-V.js +25 -0
- package/.output/public/_build/assets/relay-runtime-BX3uubtA.js +7 -0
- package/.output/public/_build/assets/routing-DMN2NHu6.js +1 -0
- package/.output/public/_build/assets/sign-in-B67sv7z8.js +10 -0
- package/.output/public/_build/assets/web-DB_Nkq2D.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/icon-mask.png +0 -0
- package/.output/public/icon.svg +395 -0
- package/.output/public/manifest.webmanifest +13 -0
- package/.output/server/_...404_-DDEH5apf.mjs +16 -0
- package/.output/server/_challengeId_-C7BBdG0r.mjs +100 -0
- package/.output/server/_chunks/ssr-renderer.mjs +26 -0
- package/.output/server/_id_-DqytvZEf.mjs +505 -0
- package/.output/server/_libs/@shikijs/core+[...].mjs +7173 -0
- package/.output/server/_libs/@shikijs/engine-javascript+[...].mjs +3110 -0
- package/.output/server/_libs/babel__runtime.mjs +243 -0
- package/.output/server/_libs/dequal.mjs +25 -0
- package/.output/server/_libs/faker-js__faker.mjs +13150 -0
- package/.output/server/_libs/fbjs.mjs +115 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +650 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/invariant.mjs +36 -0
- package/.output/server/_libs/relay-runtime.mjs +9704 -0
- package/.output/server/_libs/seroval-plugins.mjs +563 -0
- package/.output/server/_libs/seroval.mjs +2956 -0
- package/.output/server/_libs/shikijs__langs.mjs +3 -0
- package/.output/server/_libs/shikijs__themes.mjs +7 -0
- package/.output/server/_libs/solid-js.mjs +1248 -0
- package/.output/server/_libs/solid-relay+tiny-invariant.mjs +1029 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_libs/valibot.mjs +711 -0
- package/.output/server/_runtime.mjs +33 -0
- package/.output/server/_slug_-CBOaSqoF.mjs +978 -0
- package/.output/server/_ssr/ActorDetailQuery.graphql-C1mWRP1B.mjs +283 -0
- package/.output/server/_ssr/CompleteLoginChallenge.graphql-CM7o_Md1.mjs +78 -0
- package/.output/server/_ssr/CopyButton-CQNR5D1y.mjs +43 -0
- package/.output/server/_ssr/CreateInstanceMutation.graphql-C-h2lGxz.mjs +116 -0
- package/.output/server/_ssr/CreateObjectMutation.graphql-C393Hp7q.mjs +166 -0
- package/.output/server/_ssr/GenerateActorsMutation.graphql-D2ADtn1j.mjs +163 -0
- package/.output/server/_ssr/GetHostQuery.graphql-C45XQo1i.mjs +127 -0
- package/.output/server/_ssr/HomeViewerQuery.graphql-Dote4Pkz.mjs +81 -0
- package/.output/server/_ssr/InstanceActorListQuery.graphql-DgItgN5t.mjs +167 -0
- package/.output/server/_ssr/InstanceDetailQuery.graphql-DP5wWWjX.mjs +367 -0
- package/.output/server/_ssr/InstanceSummary_instance.graphql-10tilF-Z.mjs +34 -0
- package/.output/server/_ssr/JNCCF6MP-BAZlBnvx.mjs +419 -0
- package/.output/server/_ssr/LP6E37CW-D2Ih_b_K.mjs +163 -0
- package/.output/server/_ssr/SignInMutation.graphql-BBXmiay6.mjs +72 -0
- package/.output/server/_ssr/TSB6MOZK-D06WZb6o.mjs +166 -0
- package/.output/server/_ssr/Toast-Bb1gcxED.mjs +947 -0
- package/.output/server/_ssr/WorkspaceQuery.graphql-DnCO8t-4.mjs +153 -0
- package/.output/server/_ssr/about-CD3QIgf_.mjs +14 -0
- package/.output/server/_ssr/actors-CMWf-xQU.mjs +1160 -0
- package/.output/server/_ssr/dist-D6rgyh-L.mjs +81 -0
- package/.output/server/_ssr/dist-I7KRMRbA.mjs +432 -0
- package/.output/server/_ssr/form.module-CTvIl1lm.mjs +192 -0
- package/.output/server/_ssr/index-C4crD6q-.mjs +347 -0
- package/.output/server/_ssr/index-yuhuc6-X.mjs +111 -0
- package/.output/server/_ssr/instance-ZYWGeWd3.mjs +280 -0
- package/.output/server/_ssr/label-DAXzanI9.mjs +9 -0
- package/.output/server/_ssr/objects-D5MVukzB.mjs +4316 -0
- package/.output/server/_ssr/routing-DKTLkkbY.mjs +620 -0
- package/.output/server/_ssr/sign-in-CNHZb_zL.mjs +264 -0
- package/.output/server/_ssr/ssr.mjs +6138 -0
- package/.output/server/index.mjs +691 -0
- package/LICENSE +661 -0
- package/README.md +143 -2
- package/dist/bridge.d.mts +39 -0
- package/dist/bridge.mjs +104 -0
- package/dist/bridge.mjs.map +1 -0
- package/dist/request-policy.d.mts +8 -0
- package/dist/request-policy.mjs +94 -0
- package/dist/request-policy.mjs.map +1 -0
- package/dist/runtime.d.mts +14 -0
- package/dist/runtime.mjs +44 -0
- package/dist/runtime.mjs.map +1 -0
- package/package.json +111 -3
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { $ as splitProps, F as createContext, H as createUniqueId, I as createEffect, K as mergeProps, N as createComponent, nt as useContext, q as on } from "../_libs/solid-js.mjs";
|
|
2
|
+
import { D as mergeDefaultProps, a as __export, i as Polymorphic, l as createGenerateId, s as composeEventHandlers } from "./JNCCF6MP-BAZlBnvx.mjs";
|
|
3
|
+
import { a as FormControlErrorMessage, d as createFormControl, f as createFormControlField, g as useFormControlContext, i as FormControlDescription, n as FORM_CONTROL_PROP_NAMES, o as FormControlLabel, p as createFormResetListener, r as FormControlContext, s as access, t as FORM_CONTROL_FIELD_PROP_NAMES, u as createControllableSignal } from "./form.module-CTvIl1lm.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/TSB6MOZK-D06WZb6o.js
|
|
5
|
+
__export({}, {
|
|
6
|
+
Description: () => FormControlDescription,
|
|
7
|
+
ErrorMessage: () => FormControlErrorMessage,
|
|
8
|
+
Input: () => TextFieldInput,
|
|
9
|
+
Label: () => FormControlLabel,
|
|
10
|
+
Root: () => TextFieldRoot,
|
|
11
|
+
TextArea: () => TextFieldTextArea,
|
|
12
|
+
TextField: () => TextField,
|
|
13
|
+
useTextFieldContext: () => useTextFieldContext
|
|
14
|
+
});
|
|
15
|
+
var TextFieldContext = createContext();
|
|
16
|
+
function useTextFieldContext() {
|
|
17
|
+
const context = useContext(TextFieldContext);
|
|
18
|
+
if (context === void 0) throw new Error("[kobalte]: `useTextFieldContext` must be used within a `TextField` component");
|
|
19
|
+
return context;
|
|
20
|
+
}
|
|
21
|
+
function TextFieldInput(props) {
|
|
22
|
+
return createComponent(TextFieldInputBase, mergeProps({ type: "text" }, props));
|
|
23
|
+
}
|
|
24
|
+
function TextFieldInputBase(props) {
|
|
25
|
+
const formControlContext = useFormControlContext();
|
|
26
|
+
const context = useTextFieldContext();
|
|
27
|
+
const [local, formControlFieldProps, others] = splitProps(mergeDefaultProps({ id: context.generateId("input") }, props), ["onInput"], FORM_CONTROL_FIELD_PROP_NAMES);
|
|
28
|
+
const { fieldProps } = createFormControlField(formControlFieldProps);
|
|
29
|
+
return createComponent(Polymorphic, mergeProps({
|
|
30
|
+
as: "input",
|
|
31
|
+
get id() {
|
|
32
|
+
return fieldProps.id();
|
|
33
|
+
},
|
|
34
|
+
get name() {
|
|
35
|
+
return formControlContext.name();
|
|
36
|
+
},
|
|
37
|
+
get value() {
|
|
38
|
+
return context.value();
|
|
39
|
+
},
|
|
40
|
+
get required() {
|
|
41
|
+
return formControlContext.isRequired();
|
|
42
|
+
},
|
|
43
|
+
get disabled() {
|
|
44
|
+
return formControlContext.isDisabled();
|
|
45
|
+
},
|
|
46
|
+
get readonly() {
|
|
47
|
+
return formControlContext.isReadOnly();
|
|
48
|
+
},
|
|
49
|
+
get ["aria-label"]() {
|
|
50
|
+
return fieldProps.ariaLabel();
|
|
51
|
+
},
|
|
52
|
+
get ["aria-labelledby"]() {
|
|
53
|
+
return fieldProps.ariaLabelledBy();
|
|
54
|
+
},
|
|
55
|
+
get ["aria-describedby"]() {
|
|
56
|
+
return fieldProps.ariaDescribedBy();
|
|
57
|
+
},
|
|
58
|
+
get ["aria-invalid"]() {
|
|
59
|
+
return formControlContext.validationState() === "invalid" || void 0;
|
|
60
|
+
},
|
|
61
|
+
get ["aria-required"]() {
|
|
62
|
+
return formControlContext.isRequired() || void 0;
|
|
63
|
+
},
|
|
64
|
+
get ["aria-disabled"]() {
|
|
65
|
+
return formControlContext.isDisabled() || void 0;
|
|
66
|
+
},
|
|
67
|
+
get ["aria-readonly"]() {
|
|
68
|
+
return formControlContext.isReadOnly() || void 0;
|
|
69
|
+
},
|
|
70
|
+
get onInput() {
|
|
71
|
+
return composeEventHandlers([local.onInput, context.onInput]);
|
|
72
|
+
}
|
|
73
|
+
}, () => formControlContext.dataset(), others));
|
|
74
|
+
}
|
|
75
|
+
function TextFieldRoot(props) {
|
|
76
|
+
let ref;
|
|
77
|
+
const [local, formControlProps, others] = splitProps(mergeDefaultProps({ id: `textfield-${createUniqueId()}` }, props), [
|
|
78
|
+
"ref",
|
|
79
|
+
"value",
|
|
80
|
+
"defaultValue",
|
|
81
|
+
"onChange"
|
|
82
|
+
], FORM_CONTROL_PROP_NAMES);
|
|
83
|
+
const initialValue = local.value;
|
|
84
|
+
const [value, setValue] = createControllableSignal({
|
|
85
|
+
value: () => initialValue === void 0 ? void 0 : local.value ?? "",
|
|
86
|
+
defaultValue: () => local.defaultValue,
|
|
87
|
+
onChange: (value2) => local.onChange?.(value2)
|
|
88
|
+
});
|
|
89
|
+
const { formControlContext } = createFormControl(formControlProps);
|
|
90
|
+
createFormResetListener(() => ref, () => setValue(local.defaultValue ?? ""));
|
|
91
|
+
const onInput = (e) => {
|
|
92
|
+
if (formControlContext.isReadOnly() || formControlContext.isDisabled()) return;
|
|
93
|
+
const target = e.target;
|
|
94
|
+
setValue(target.value);
|
|
95
|
+
target.value = value() ?? "";
|
|
96
|
+
};
|
|
97
|
+
const context = {
|
|
98
|
+
value,
|
|
99
|
+
generateId: createGenerateId(() => access(formControlProps.id)),
|
|
100
|
+
onInput
|
|
101
|
+
};
|
|
102
|
+
return createComponent(FormControlContext.Provider, {
|
|
103
|
+
value: formControlContext,
|
|
104
|
+
get children() {
|
|
105
|
+
return createComponent(TextFieldContext.Provider, {
|
|
106
|
+
value: context,
|
|
107
|
+
get children() {
|
|
108
|
+
return createComponent(Polymorphic, mergeProps({
|
|
109
|
+
as: "div",
|
|
110
|
+
role: "group",
|
|
111
|
+
get id() {
|
|
112
|
+
return access(formControlProps.id);
|
|
113
|
+
}
|
|
114
|
+
}, () => formControlContext.dataset(), others));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function TextFieldTextArea(props) {
|
|
121
|
+
let ref;
|
|
122
|
+
const context = useTextFieldContext();
|
|
123
|
+
const [local, others] = splitProps(mergeDefaultProps({ id: context.generateId("textarea") }, props), [
|
|
124
|
+
"ref",
|
|
125
|
+
"autoResize",
|
|
126
|
+
"submitOnEnter",
|
|
127
|
+
"onKeyPress"
|
|
128
|
+
]);
|
|
129
|
+
createEffect(on([
|
|
130
|
+
() => ref,
|
|
131
|
+
() => local.autoResize,
|
|
132
|
+
() => context.value()
|
|
133
|
+
], ([ref2, autoResize]) => {
|
|
134
|
+
if (!ref2 || !autoResize) return;
|
|
135
|
+
adjustHeight(ref2);
|
|
136
|
+
}));
|
|
137
|
+
const onKeyPress = (event) => {};
|
|
138
|
+
return createComponent(TextFieldInputBase, mergeProps({
|
|
139
|
+
as: "textarea",
|
|
140
|
+
get ["aria-multiline"]() {
|
|
141
|
+
return local.submitOnEnter ? "false" : void 0;
|
|
142
|
+
},
|
|
143
|
+
get onKeyPress() {
|
|
144
|
+
return composeEventHandlers([local.onKeyPress, onKeyPress]);
|
|
145
|
+
}
|
|
146
|
+
}, others));
|
|
147
|
+
}
|
|
148
|
+
function adjustHeight(el) {
|
|
149
|
+
const prevAlignment = el.style.alignSelf;
|
|
150
|
+
const prevOverflow = el.style.overflow;
|
|
151
|
+
if (!("MozAppearance" in el.style)) el.style.overflow = "hidden";
|
|
152
|
+
el.style.alignSelf = "start";
|
|
153
|
+
el.style.height = "auto";
|
|
154
|
+
el.style.height = `${el.scrollHeight + (el.offsetHeight - el.clientHeight)}px`;
|
|
155
|
+
el.style.overflow = prevOverflow;
|
|
156
|
+
el.style.alignSelf = prevAlignment;
|
|
157
|
+
}
|
|
158
|
+
var TextField = Object.assign(TextFieldRoot, {
|
|
159
|
+
Description: FormControlDescription,
|
|
160
|
+
ErrorMessage: FormControlErrorMessage,
|
|
161
|
+
Input: TextFieldInput,
|
|
162
|
+
Label: FormControlLabel,
|
|
163
|
+
TextArea: TextFieldTextArea
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { TextField as t };
|