@nebularstreams/libmui 4.3.36 → 4.3.37
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 +18 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface MuiAttrs {
|
|
|
7
7
|
export type MuiWidget<A extends MuiAttrs = MuiAttrs> = any;
|
|
8
8
|
|
|
9
9
|
export const Button: MuiWidget;
|
|
10
|
+
export const JSONWidget: MuiWidget;
|
|
10
11
|
export const ButtonChoiceWidget: MuiWidget;
|
|
11
12
|
export const ButtonMultipleChoiceWidget: MuiWidget;
|
|
12
13
|
export const ButtonNew: MuiWidget;
|
|
@@ -48,6 +49,7 @@ export const GenericButtonTicker: MuiWidget;
|
|
|
48
49
|
|
|
49
50
|
export interface NotificationQueue {
|
|
50
51
|
add(text: string, type?: "info" | "success" | "error" | string): void;
|
|
52
|
+
|
|
51
53
|
clear(): void;
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -78,10 +80,13 @@ export function optionsPrompt(
|
|
|
78
80
|
|
|
79
81
|
export const Tokenizer: unknown;
|
|
80
82
|
export const MainState: Record<string, unknown>;
|
|
83
|
+
|
|
81
84
|
export function MainStateImplement(implementation: Record<string, unknown>): void;
|
|
82
85
|
|
|
83
86
|
export function clearModal(): boolean;
|
|
87
|
+
|
|
84
88
|
export function clone<T>(value: T): T;
|
|
89
|
+
|
|
85
90
|
export function confirm(
|
|
86
91
|
message: string,
|
|
87
92
|
onconfirm: (index: number) => unknown,
|
|
@@ -89,13 +94,15 @@ export function confirm(
|
|
|
89
94
|
optionYes?: string,
|
|
90
95
|
optionNo?: string
|
|
91
96
|
): void;
|
|
97
|
+
|
|
92
98
|
export function confirmPromise(text: string, options?: string[], cancelError?: string): Promise<number>;
|
|
99
|
+
|
|
93
100
|
export function ConfirmPromise(
|
|
94
101
|
title: string,
|
|
95
102
|
message: string,
|
|
96
103
|
actions: string[],
|
|
97
104
|
isModal?: boolean | (() => unknown)
|
|
98
|
-
): Promise<{idx: number; name: string}>;
|
|
105
|
+
): Promise<{ idx: number; name: string }>;
|
|
99
106
|
|
|
100
107
|
export function defineWidget(
|
|
101
108
|
view?: (...args: Object[]) => unknown,
|
|
@@ -106,13 +113,22 @@ export function defineWidget(
|
|
|
106
113
|
): MuiWidget;
|
|
107
114
|
|
|
108
115
|
export function makeLocalPath(path: string[]): string;
|
|
116
|
+
|
|
109
117
|
export function makeLocalUrl(base: string, path: string[]): string;
|
|
118
|
+
|
|
110
119
|
export function processImage(file: File): Promise<HTMLImageElement>;
|
|
120
|
+
|
|
111
121
|
export function popupMessage(message?: unknown, cancelable?: boolean | (() => unknown), contentClass?: string): void;
|
|
112
|
-
|
|
122
|
+
|
|
123
|
+
export function startApp(target: string, appMetadata: { default?: string; routes: Record<string, unknown> }): void;
|
|
124
|
+
|
|
113
125
|
export const tainter: {
|
|
114
126
|
taint(): void;
|
|
115
127
|
taintRedraw(): void;
|
|
116
128
|
isTainted(): boolean;
|
|
117
129
|
untaint(): void;
|
|
118
130
|
};
|
|
131
|
+
|
|
132
|
+
export function packClassStrings(initials: string, clases?: Record<string, boolean>): string;
|
|
133
|
+
|
|
134
|
+
export function packClass(initials: string, clases?: Record<string, boolean>): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebularstreams/libmui",
|
|
3
3
|
"description": "Lightweight, high-performance Mithril widget library for modern websites and JavaScript applications.",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.37",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|