Files
sigpro-ui/sigpro-ui-full.js
natxocc 2cfa7db221
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
new Bundle ESM IIFE
2026-04-27 20:16:56 +02:00

36 lines
973 B
JavaScript

import { $, $$, watch, h, each, when, mount, batch } from 'sigpro';
import 'sigpro/xss.js';
import 'sigpro/tags.js';
import * as All from './sigpro-ui.js';
import * as Editor from './sigpro-editor.js';
import { Locale, tt } from './sigpro-locale.js';
const Components = { ...All, ...Editor };
const Utils = { Locale, tt };
if (typeof window !== 'undefined') {
const fns = { $, $$, watch, h, each, when, mount, batch };
Object.entries(fns).forEach(([name, fn]) => {
Object.defineProperty(window, name, {
value: fn,
writable: true,
configurable: true,
enumerable: true
});
});
Object.entries({ ...Components, ...Utils }).forEach(([name, value]) => {
Object.defineProperty(window, name, {
value,
writable: false,
configurable: true,
enumerable: true
});
});
console.log("SigProUI DX installed");
}
export { Components, Utils };
export * from './sigpro-ui.js';
export * from './sigpro-editor.js';