ux4g-components-web 1.1.0 → 1.1.2
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/README.md +1031 -25
- package/dist/runtime/bootstrap.cjs +1091 -2
- package/dist/runtime/bootstrap.mjs +1090 -1
- package/dist/runtime/index.cjs +1056 -241
- package/dist/runtime/index.d.ts +4 -27
- package/dist/runtime/index.mjs +1056 -241
- package/package.json +2 -2
- package/styles/ux4g.css +1 -1
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,40 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* UX4G Runtime Module
|
|
3
3
|
*
|
|
4
|
-
* Framework-agnostic runtime that encapsulates
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Behaviors: dropdown toggling, modal management, tooltip positioning,
|
|
8
|
-
* accordion expand/collapse, carousel sliding, drawer open/close.
|
|
4
|
+
* Framework-agnostic runtime that encapsulates ALL interactive behaviors
|
|
5
|
+
* from the vendor CDN scripts (ux4g.js + ux4g-custom.js).
|
|
9
6
|
*
|
|
10
7
|
* Uses a singleton guard (window.__UX4G_RUNTIME_INITIALIZED__) to ensure
|
|
11
|
-
* initialization happens exactly once
|
|
12
|
-
* the bootstrap module.
|
|
8
|
+
* initialization happens exactly once.
|
|
13
9
|
*/
|
|
14
10
|
declare global {
|
|
15
11
|
interface Window {
|
|
16
12
|
__UX4G_RUNTIME_INITIALIZED__?: boolean;
|
|
13
|
+
__ux4gInitRaf?: number;
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Initialize the UX4G runtime.
|
|
21
|
-
*
|
|
22
|
-
* Encapsulates all interactive behaviors from the CDN scripts (ux4g.js, ux4g-custom.js):
|
|
23
|
-
* - Dropdown toggling
|
|
24
|
-
* - Modal management (open/close/escape/backdrop click)
|
|
25
|
-
* - Tooltip positioning (show/hide on hover/focus)
|
|
26
|
-
* - Accordion expand/collapse
|
|
27
|
-
* - Carousel sliding (next/prev)
|
|
28
|
-
* - Drawer open/close
|
|
29
|
-
*
|
|
30
|
-
* Uses a singleton guard to ensure initialization happens exactly once.
|
|
31
|
-
* Safe for SSR — no-ops when window/document are unavailable.
|
|
32
|
-
*/
|
|
33
16
|
export declare function initRuntime(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Destroy the UX4G runtime.
|
|
36
|
-
*
|
|
37
|
-
* Resets the singleton guard and removes all event listeners.
|
|
38
|
-
* Useful for testing and SSR cleanup.
|
|
39
|
-
*/
|
|
40
17
|
export declare function destroyRuntime(): void;
|