@gzmjs/ui-basic 0.1.0 → 0.2.0
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/ui-basic.d.ts +48 -0
- package/dist/ui-basic.es.js +611 -140
- package/dist/ui-basic.es.js.map +1 -1
- package/package.json +2 -1
package/dist/ui-basic.d.ts
CHANGED
|
@@ -77,6 +77,24 @@ export declare class CenterHelper {
|
|
|
77
77
|
pos($tt?: HTMLElement & TransitionPopup): void;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* https://www.bilibili.com/video/BV17w4m1D7xi
|
|
82
|
+
* https://devdocs.io/svg/attribute/stroke-dasharray
|
|
83
|
+
* https://devdocs.io/svg/attribute/stroke-dashoffset
|
|
84
|
+
*/
|
|
85
|
+
export declare class CheckCircle extends HTMLElement implements ELE.AttributeHandlers<typeof mutableAttributes_4[number]> {
|
|
86
|
+
#private;
|
|
87
|
+
connectedCallback(): void;
|
|
88
|
+
$circle?: SVGCircleElement;
|
|
89
|
+
$polyline?: SVGPolylineElement;
|
|
90
|
+
play(): Promise<unknown>;
|
|
91
|
+
accessor size: string | undefined;
|
|
92
|
+
accessor duration: number | undefined;
|
|
93
|
+
_size_set(nv: string | null): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare const checkCircleTagName = "GZM-CHECK-CIRCLE";
|
|
97
|
+
|
|
80
98
|
export declare class CloseBtn extends HTMLElement implements ELE.AttributeHandlers<typeof mutableAttributes_2[number]> {
|
|
81
99
|
constructor();
|
|
82
100
|
readonly shadowRoot: ShadowRoot;
|
|
@@ -96,6 +114,8 @@ export declare class CornerHelper {
|
|
|
96
114
|
pos(): void;
|
|
97
115
|
}
|
|
98
116
|
|
|
117
|
+
export declare function createDialog(options: DialogOptions): HTMLDialogElement;
|
|
118
|
+
|
|
99
119
|
export declare function createStyleSheet(style: Style): CSSStyleSheet;
|
|
100
120
|
|
|
101
121
|
export declare function createText<T extends Record<string, unknown>[]>(this: unknown, ...txts: T): JoinedText<T> & BindableTextProxy;
|
|
@@ -123,6 +143,17 @@ export declare function debounce<T extends (...args: unknown[]) => unknown>(func
|
|
|
123
143
|
|
|
124
144
|
export declare function defineElement(ele: CustomElement): (constructor: CustomElementConstructor, ctx: ClassDecoratorContext) => void;
|
|
125
145
|
|
|
146
|
+
export declare interface DialogOptions {
|
|
147
|
+
reusable?: boolean;
|
|
148
|
+
resizable?: boolean;
|
|
149
|
+
title?: string;
|
|
150
|
+
movable?: boolean;
|
|
151
|
+
$body?: HTMLElement;
|
|
152
|
+
width?: string;
|
|
153
|
+
height?: string;
|
|
154
|
+
okHandler?: ($dlg: HTMLDialogElement) => void;
|
|
155
|
+
}
|
|
156
|
+
|
|
126
157
|
declare namespace ELE {
|
|
127
158
|
export {
|
|
128
159
|
defineElement,
|
|
@@ -259,6 +290,8 @@ declare const mutableAttributes_2: readonly ["corner"];
|
|
|
259
290
|
|
|
260
291
|
declare const mutableAttributes_3: readonly ["icon"];
|
|
261
292
|
|
|
293
|
+
declare const mutableAttributes_4: readonly ["size"];
|
|
294
|
+
|
|
262
295
|
declare type NumOrUndef = number | undefined;
|
|
263
296
|
|
|
264
297
|
declare type NumType = number | NumOrUndef;
|
|
@@ -280,6 +313,21 @@ export declare function saAttr<This extends HTMLElement, V extends StrArrayType>
|
|
|
280
313
|
|
|
281
314
|
export declare function setCurrentTheme(themeName: string): boolean;
|
|
282
315
|
|
|
316
|
+
export declare function showAlert(msg: string): HTMLDialogElement;
|
|
317
|
+
|
|
318
|
+
export declare function showDockRightModalDlg(options: DialogOptions): HTMLDialogElement;
|
|
319
|
+
|
|
320
|
+
export declare function showError(errMsg: string): HTMLDialogElement;
|
|
321
|
+
|
|
322
|
+
export declare function showWaiting(title: string, msg?: string): {
|
|
323
|
+
$dlg: HTMLDialogElement;
|
|
324
|
+
complete(msg?: string): Promise<void>;
|
|
325
|
+
error(e?: object | string): void;
|
|
326
|
+
alert(msg: string): void;
|
|
327
|
+
close(): void;
|
|
328
|
+
setTitle(title: string): void;
|
|
329
|
+
};
|
|
330
|
+
|
|
283
331
|
declare type StrArrayOrUndef = string[] | undefined;
|
|
284
332
|
|
|
285
333
|
declare type StrArrayType = string[] | StrArrayOrUndef;
|