@t007/input 0.0.7 → 0.0.8
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/dist/index.d.ts +1 -0
- package/dist/index.global.js +2 -2
- package/dist/index.js +1 -1
- package/dist/standalone.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export const handleFormValidation = FormManager["handleFormValidation"];
|
|
|
54
54
|
declare global {
|
|
55
55
|
interface T007Namespace {
|
|
56
56
|
FM: FormManager;
|
|
57
|
+
formManager: FormManager;
|
|
57
58
|
field?: FormManager["field"];
|
|
58
59
|
handleFormValidation?: FormManager["handleFormValidation"];
|
|
59
60
|
}
|
package/dist/index.global.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
29
29
|
function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
|
|
30
|
-
w.t007._resourceCache ??= {};
|
|
30
|
+
w.t007 ??= {}, w.t007._resourceCache ??= {};
|
|
31
31
|
if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
|
|
32
32
|
const src = req;
|
|
33
33
|
if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
};
|
|
432
432
|
var { field, handleFormValidation } = formManager;
|
|
433
433
|
if (typeof window !== "undefined") {
|
|
434
|
-
t007.FM = formManager;
|
|
434
|
+
t007.FM = t007.formManager = formManager;
|
|
435
435
|
t007.field = field;
|
|
436
436
|
t007.handleFormValidation = handleFormValidation;
|
|
437
437
|
window.field ??= t007.field;
|
package/dist/index.js
CHANGED
|
@@ -295,7 +295,7 @@ var formManager = {
|
|
|
295
295
|
};
|
|
296
296
|
var { field, handleFormValidation } = formManager;
|
|
297
297
|
if (typeof window !== "undefined") {
|
|
298
|
-
t007.FM = formManager;
|
|
298
|
+
t007.FM = t007.formManager = formManager;
|
|
299
299
|
t007.field = field;
|
|
300
300
|
t007.handleFormValidation = handleFormValidation;
|
|
301
301
|
window.field ??= t007.field;
|
package/dist/standalone.js
CHANGED
|
@@ -25,7 +25,7 @@ function assignEl(el, props, dataset, styles) {
|
|
|
25
25
|
}
|
|
26
26
|
var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
|
|
27
27
|
function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
|
|
28
|
-
w.t007._resourceCache ??= {};
|
|
28
|
+
w.t007 ??= {}, w.t007._resourceCache ??= {};
|
|
29
29
|
if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
|
|
30
30
|
const src = req;
|
|
31
31
|
if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
|
|
@@ -429,7 +429,7 @@ var formManager = {
|
|
|
429
429
|
};
|
|
430
430
|
var { field, handleFormValidation } = formManager;
|
|
431
431
|
if (typeof window !== "undefined") {
|
|
432
|
-
t007.FM = formManager;
|
|
432
|
+
t007.FM = t007.formManager = formManager;
|
|
433
433
|
t007.field = field;
|
|
434
434
|
t007.handleFormValidation = handleFormValidation;
|
|
435
435
|
window.field ??= t007.field;
|