MCPcopy Create free account
hub / github.com/tinyplex/tinybase / Details

Function Details

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-inspector/index.js:4198–4238  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4196 return (valueId) => store()?.hasValue(valueId) ?? false;
4197};
4198var Details = (props) => {
4199 const open2 = useCell(STATE_TABLE, props.uniqueId, OPEN_CELL, props.s);
4200 const handleToggle = (event) => props.s.setCell(
4201 STATE_TABLE,
4202 props.uniqueId,
4203 OPEN_CELL,
4204 event.currentTarget.open
4205 );
4206 return (() => {
4207 var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
4208 _el$.addEventListener("toggle", handleToggle);
4209 insert(_el$3, () => props.title);
4210 insert(
4211 _el$2,
4212 (() => {
4213 var _c$ = memo2(() => !!props.handleEditable);
4214 return () => _c$() ? (() => {
4215 var _el$5 = _tmpl$2();
4216 addEventListener(_el$5, "click", props.handleEditable);
4217 effect(
4218 (_p$) => {
4219 var _v$ = props.editable?.() ? "done" : "edit", _v$2 = props.editable?.() ? "Done editing" : "Edit";
4220 _v$ !== _p$.e && className(_el$5, _p$.e = _v$);
4221 _v$2 !== _p$.t && setAttribute(_el$5, "title", _p$.t = _v$2);
4222 return _p$;
4223 },
4224 {
4225 e: void 0,
4226 t: void 0
4227 }
4228 );
4229 return _el$5;
4230 })() : EMPTY_STRING2;
4231 })(),
4232 null
4233 );
4234 insert(_el$4, () => props.children);
4235 effect(() => _el$.open = !!open2());
4236 return _el$;
4237 })();
4238};
4239var ConfirmableActions = (props) => {
4240 const [confirming, setConfirming] = createSignal2();
4241 const handleDone = () => setConfirming(void 0);

Callers 5

ValuesViewFunction · 0.70
TableViewFunction · 0.70
TablesViewFunction · 0.70
SliceViewFunction · 0.70
RelationshipViewFunction · 0.70

Calls 4

addEventListenerMethod · 0.80
useCellFunction · 0.70
addEventListenerFunction · 0.50
classNameFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…