1.2.11
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-05-02 23:49:41 +02:00
parent 17b7e52063
commit 46d80d3014
5 changed files with 33 additions and 45 deletions

39
dist/sigpro-ui.js vendored
View File

@@ -1,28 +1,5 @@
(() => {
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __hasOwnProp = Object.prototype.hasOwnProperty;
function __accessProp(key) {
return this[key];
}
var __toCommonJS = (from) => {
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
if (entry)
return entry;
entry = __defProp({}, "__esModule", { value: true });
if (from && typeof from === "object" || typeof from === "function") {
for (var key of __getOwnPropNames(from))
if (!__hasOwnProp.call(entry, key))
__defProp(entry, key, {
get: __accessProp.bind(from, key),
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
});
}
__moduleCache.set(from, entry);
return entry;
};
var __moduleCache;
var __returnValue = (v) => v;
function __exportSetter(name, newValue) {
this[name] = __returnValue.bind(null, newValue);
@@ -37,12 +14,6 @@
});
};
// sigpro-ui_IIFE.js
var exports_sigpro_ui_IIFE = {};
__export(exports_sigpro_ui_IIFE, {
Components: () => Components
});
// sigpro-ui.js
var exports_sigpro_ui = {};
__export(exports_sigpro_ui, {
@@ -1566,9 +1537,12 @@
};
// sigpro-ui_IIFE.js
var Components = { ...exports_sigpro_ui };
if (typeof window !== "undefined") {
Object.entries({ ...Components }).forEach(([name, value]) => {
Object.assign(window, { $, $$, watch, h, Fragment, when, each, router, mount, batch, onUnmount, isArr, isFunc, isObj });
"a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video".split(" ").forEach((tag) => {
window[tag] = (props, children) => h(tag, props, children);
});
Object.entries(exports_sigpro_ui).forEach(([name, value]) => {
Object.defineProperty(window, name, {
value,
writable: false,
@@ -1577,4 +1551,7 @@
});
});
}
if (typeof window !== "undefined") {
window.Components = { ...exports_sigpro_ui };
}
})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "sigpro-ui",
"version": "1.2.10",
"version": "1.2.11",
"type": "module",
"license": "MIT",
"author": {

View File

@@ -1,9 +1,15 @@
import * as All from './sigpro-ui.js';
export const Components = { ...All };
import { $, $$, watch, batch, h, Fragment, mount, when, each, router, onUnmount, isArr, isFunc, isObj } from "./sigpro.js"
if (typeof window !== 'undefined') {
Object.entries({ ...Components}).forEach(([name, value]) => {
if (typeof window !== "undefined") {
Object.assign(window, { $, $$, watch, h, Fragment, when, each, router, mount, batch, onUnmount, isArr, isFunc, isObj })
"a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video"
.split(" ")
.forEach(tag => { window[tag] = (props, children) => h(tag, props, children) })
// Asignar todos los componentes al scope global
Object.entries(All).forEach(([name, value]) => {
Object.defineProperty(window, name, {
value,
writable: false,
@@ -12,3 +18,8 @@ if (typeof window !== 'undefined') {
});
});
}
// También asignar Components como respaldo
if (typeof window !== 'undefined') {
window.Components = { ...All };
}