This commit is contained in:
39
dist/sigpro-ui.js
vendored
39
dist/sigpro-ui.js
vendored
@@ -1,28 +1,5 @@
|
|||||||
(() => {
|
(() => {
|
||||||
var __defProp = Object.defineProperty;
|
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;
|
var __returnValue = (v) => v;
|
||||||
function __exportSetter(name, newValue) {
|
function __exportSetter(name, newValue) {
|
||||||
this[name] = __returnValue.bind(null, 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
|
// sigpro-ui.js
|
||||||
var exports_sigpro_ui = {};
|
var exports_sigpro_ui = {};
|
||||||
__export(exports_sigpro_ui, {
|
__export(exports_sigpro_ui, {
|
||||||
@@ -1566,9 +1537,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// sigpro-ui_IIFE.js
|
// sigpro-ui_IIFE.js
|
||||||
var Components = { ...exports_sigpro_ui };
|
|
||||||
if (typeof window !== "undefined") {
|
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, {
|
Object.defineProperty(window, name, {
|
||||||
value,
|
value,
|
||||||
writable: false,
|
writable: false,
|
||||||
@@ -1577,4 +1551,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
window.Components = { ...exports_sigpro_ui };
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
4
dist/sigpro-ui.min.js
vendored
4
dist/sigpro-ui.min.js
vendored
File diff suppressed because one or more lines are too long
4
docs/sigpro-ui.min.js
vendored
4
docs/sigpro-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sigpro-ui",
|
"name": "sigpro-ui",
|
||||||
"version": "1.2.10",
|
"version": "1.2.11",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
@@ -1,14 +1,25 @@
|
|||||||
import * as All from './sigpro-ui.js';
|
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') {
|
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 })
|
||||||
Object.defineProperty(window, name, {
|
"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"
|
||||||
value,
|
.split(" ")
|
||||||
writable: false,
|
.forEach(tag => { window[tag] = (props, children) => h(tag, props, children) })
|
||||||
configurable: true,
|
|
||||||
enumerable: true
|
// Asignar todos los componentes al scope global
|
||||||
|
Object.entries(All).forEach(([name, value]) => {
|
||||||
|
Object.defineProperty(window, name, {
|
||||||
|
value,
|
||||||
|
writable: false,
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
|
// También asignar Components como respaldo
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window.Components = { ...All };
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user