@whitesev/pops 2.1.4 → 2.1.5
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.amd.js +72 -64
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +72 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +72 -64
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +72 -64
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +72 -64
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +72 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/GlobalConfig.d.ts +7 -2
- package/dist/types/src/Pops.d.ts +39 -34
- package/dist/types/src/{Core.d.ts → PopsCore.d.ts} +4 -3
- package/dist/types/src/PopsIcon.d.ts +30 -2
- package/dist/types/src/PopsLayer.d.ts +3 -1
- package/dist/types/src/components/alert/config.d.ts +1 -1
- package/dist/types/src/components/alert/index.d.ts +1 -1
- package/dist/types/src/components/alert/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/confirm/config.d.ts +1 -1
- package/dist/types/src/components/confirm/index.d.ts +1 -1
- package/dist/types/src/components/confirm/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/drawer/config.d.ts +1 -1
- package/dist/types/src/components/drawer/index.d.ts +1 -1
- package/dist/types/src/components/drawer/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/folder/config.d.ts +1 -1
- package/dist/types/src/components/folder/index.d.ts +1 -1
- package/dist/types/src/components/folder/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/iframe/config.d.ts +1 -1
- package/dist/types/src/components/iframe/index.d.ts +1 -1
- package/dist/types/src/components/iframe/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/loading/config.d.ts +1 -1
- package/dist/types/src/components/loading/index.d.ts +1 -1
- package/dist/types/src/components/loading/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/panel/config.d.ts +1 -1
- package/dist/types/src/components/panel/{PanelHandleContentDetails.d.ts → handlerComponents.d.ts} +16 -13
- package/dist/types/src/components/panel/index.d.ts +1 -1
- package/dist/types/src/components/panel/{buttonType.d.ts → types/components-button.d.ts} +3 -3
- package/dist/types/src/components/panel/{commonType.d.ts → types/components-common.d.ts} +2 -2
- package/dist/types/src/components/panel/{deepMenuType.d.ts → types/components-deepMenu.d.ts} +3 -3
- package/dist/types/src/components/panel/{formsType.d.ts → types/components-forms.d.ts} +2 -2
- package/dist/types/src/components/panel/{inputType.d.ts → types/components-input.d.ts} +1 -1
- package/dist/types/src/components/panel/{ownType.d.ts → types/components-own.d.ts} +1 -1
- package/dist/types/src/components/panel/{selectType.d.ts → types/components-select.d.ts} +3 -3
- package/dist/types/src/components/panel/{selectMultipleType.d.ts → types/components-selectMultiple.d.ts} +2 -2
- package/dist/types/src/components/panel/{sliderType.d.ts → types/components-slider.d.ts} +1 -1
- package/dist/types/src/components/panel/{switchType.d.ts → types/components-switch.d.ts} +1 -1
- package/dist/types/src/components/panel/{textareaType.d.ts → types/components-textarea.d.ts} +1 -1
- package/dist/types/src/components/panel/{indexType.d.ts → types/index.d.ts} +12 -12
- package/dist/types/src/components/prompt/config.d.ts +1 -1
- package/dist/types/src/components/prompt/index.d.ts +1 -1
- package/dist/types/src/components/prompt/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/rightClickMenu/config.d.ts +1 -1
- package/dist/types/src/components/rightClickMenu/index.d.ts +2 -2
- package/dist/types/src/components/rightClickMenu/{indexType.d.ts → types/index.d.ts} +2 -2
- package/dist/types/src/components/searchSuggestion/config.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/index.d.ts +2 -2
- package/dist/types/src/components/searchSuggestion/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/components/tooltip/config.d.ts +1 -1
- package/dist/types/src/components/tooltip/index.d.ts +2 -2
- package/dist/types/src/components/tooltip/{indexType.d.ts → types/index.d.ts} +1 -1
- package/dist/types/src/handler/PopsHandler.d.ts +8 -8
- package/dist/types/src/types/event.d.ts +1 -1
- package/dist/types/src/types/main.d.ts +18 -18
- package/dist/types/src/types/mask.d.ts +7 -7
- package/dist/types/src/{Config.d.ts → utils/PopsDOMUtilsEventsConfig.d.ts} +3 -0
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
- package/package.json +1 -1
- package/src/GlobalConfig.ts +6 -5
- package/src/Pops.ts +17 -17
- package/src/{Core.ts → PopsCore.ts} +13 -14
- package/src/PopsIcon.ts +34 -32
- package/src/PopsLayer.ts +8 -7
- package/src/components/alert/config.ts +1 -1
- package/src/components/alert/index.ts +1 -1
- package/src/components/alert/{indexType.ts → types/index.ts} +2 -2
- package/src/components/confirm/config.ts +1 -1
- package/src/components/confirm/index.ts +1 -1
- package/src/components/confirm/{indexType.ts → types/index.ts} +1 -1
- package/src/components/drawer/config.ts +1 -1
- package/src/components/drawer/index.ts +1 -1
- package/src/components/drawer/{indexType.ts → types/index.ts} +1 -1
- package/src/components/folder/config.ts +1 -1
- package/src/components/folder/index.ts +1 -1
- package/src/components/folder/{indexType.ts → types/index.ts} +1 -1
- package/src/components/iframe/config.ts +1 -1
- package/src/components/iframe/index.ts +4 -4
- package/src/components/iframe/{indexType.ts → types/index.ts} +2 -2
- package/src/components/loading/config.ts +1 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/{indexType.ts → types/index.ts} +1 -1
- package/src/components/panel/config.ts +1 -1
- package/src/components/panel/{PanelHandleContentDetails.ts → handlerComponents.ts} +17 -14
- package/src/components/panel/index.ts +4 -4
- package/src/components/panel/{buttonType.ts → types/components-button.ts} +5 -4
- package/src/components/panel/{commonType.ts → types/components-common.ts} +2 -2
- package/src/components/panel/{deepMenuType.ts → types/components-deepMenu.ts} +3 -3
- package/src/components/panel/{formsType.ts → types/components-forms.ts} +2 -2
- package/src/components/panel/{inputType.ts → types/components-input.ts} +1 -1
- package/src/components/panel/{ownType.ts → types/components-own.ts} +1 -1
- package/src/components/panel/{selectType.ts → types/components-select.ts} +3 -3
- package/src/components/panel/{selectMultipleType.ts → types/components-selectMultiple.ts} +2 -2
- package/src/components/panel/{sliderType.ts → types/components-slider.ts} +1 -1
- package/src/components/panel/{switchType.ts → types/components-switch.ts} +1 -1
- package/src/components/panel/{textareaType.ts → types/components-textarea.ts} +1 -1
- package/src/components/panel/{indexType.ts → types/index.ts} +12 -12
- package/src/components/prompt/config.ts +1 -1
- package/src/components/prompt/index.ts +1 -1
- package/src/components/prompt/{indexType.ts → types/index.ts} +1 -1
- package/src/components/rightClickMenu/config.ts +1 -1
- package/src/components/rightClickMenu/index.ts +2 -2
- package/src/components/rightClickMenu/{indexType.ts → types/index.ts} +2 -2
- package/src/components/searchSuggestion/config.ts +1 -1
- package/src/components/searchSuggestion/index.ts +1 -1
- package/src/components/searchSuggestion/{indexType.ts → types/index.ts} +1 -1
- package/src/components/tooltip/config.ts +1 -1
- package/src/components/tooltip/index.ts +1 -1
- package/src/components/tooltip/{indexType.ts → types/index.ts} +1 -1
- package/src/handler/PopsElementHandler.ts +3 -3
- package/src/handler/PopsHandler.ts +26 -26
- package/src/types/event.d.ts +1 -1
- package/src/types/main.d.ts +18 -18
- package/src/types/mask.d.ts +7 -7
- package/src/utils/PopsDOMUtils.ts +2 -2
- package/src/{Config.ts → utils/PopsDOMUtilsEventsConfig.ts} +3 -0
- package/src/utils/PopsInstanceUtils.ts +12 -12
- package/src/utils/PopsUtils.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PopsCommonConfig } from "./types/components";
|
|
1
|
+
import type { PopsCommonConfig, PopsDragConfig } from "./types/components";
|
|
2
2
|
type EnterReturnType<T> = null | T | (() => T);
|
|
3
3
|
type GlobalConfigOption = {
|
|
4
4
|
style?: EnterReturnType<string>;
|
|
5
5
|
zIndex?: EnterReturnType<number> | EnterReturnType<string>;
|
|
6
|
-
} & Partial<PopsCommonConfig>;
|
|
6
|
+
} & Partial<PopsCommonConfig> & Partial<PopsDragConfig>;
|
|
7
7
|
export declare const GlobalConfig: {
|
|
8
8
|
config: GlobalConfigOption;
|
|
9
9
|
/**
|
|
@@ -26,6 +26,11 @@ export declare const GlobalConfig: {
|
|
|
26
26
|
mask?: import("./types/mask").PopsMaskDetails | undefined;
|
|
27
27
|
forbiddenScroll?: boolean | undefined;
|
|
28
28
|
beforeAppendToPageCallBack?: void;
|
|
29
|
+
drag?: boolean | undefined;
|
|
30
|
+
dragLimit?: boolean | undefined;
|
|
31
|
+
dragExtraDistance?: number | undefined;
|
|
32
|
+
dragMoveCallBack?: void;
|
|
33
|
+
dragEndCallBack?: void;
|
|
29
34
|
};
|
|
30
35
|
};
|
|
31
36
|
export {};
|
package/dist/types/src/Pops.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { PopsAlertDetails } from "./components/alert/
|
|
2
|
-
import type { PopsConfirmDetails } from "./components/confirm/
|
|
3
|
-
import type { PopsPromptDetails } from "./components/prompt/
|
|
4
|
-
import type { PopsLoadingDetails } from "./components/loading/
|
|
5
|
-
import type { PopsIframeDetails } from "./components/iframe/
|
|
6
|
-
import type { PopsToolTipDetails } from "./components/tooltip/
|
|
7
|
-
import type { PopsDrawerDetails } from "./components/drawer/
|
|
8
|
-
import type { PopsFolderDetails } from "./components/folder/
|
|
9
|
-
import type { PopsPanelDetails } from "./components/panel/
|
|
10
|
-
import type { PopsRightClickMenuDetails } from "./components/rightClickMenu/
|
|
11
|
-
import type { PopsSearchSuggestionDetails } from "./components/searchSuggestion/
|
|
1
|
+
import type { PopsAlertDetails } from "./components/alert/types";
|
|
2
|
+
import type { PopsConfirmDetails } from "./components/confirm/types";
|
|
3
|
+
import type { PopsPromptDetails } from "./components/prompt/types/index";
|
|
4
|
+
import type { PopsLoadingDetails } from "./components/loading/types";
|
|
5
|
+
import type { PopsIframeDetails } from "./components/iframe/types";
|
|
6
|
+
import type { PopsToolTipDetails } from "./components/tooltip/types/index";
|
|
7
|
+
import type { PopsDrawerDetails } from "./components/drawer/types";
|
|
8
|
+
import type { PopsFolderDetails } from "./components/folder/types";
|
|
9
|
+
import type { PopsPanelDetails } from "./components/panel/types";
|
|
10
|
+
import type { PopsRightClickMenuDetails } from "./components/rightClickMenu/types";
|
|
11
|
+
import type { PopsSearchSuggestionDetails } from "./components/searchSuggestion/types/index";
|
|
12
12
|
declare class Pops {
|
|
13
13
|
/** 配置 */
|
|
14
14
|
config: {
|
|
@@ -207,7 +207,7 @@ declare class Pops {
|
|
|
207
207
|
division(number1: number, number2: number): number;
|
|
208
208
|
};
|
|
209
209
|
/** pops.panel中用于处理各个类型的工具 */
|
|
210
|
-
|
|
210
|
+
PanelHandlerComponents: () => {
|
|
211
211
|
asideULElement: HTMLUListElement;
|
|
212
212
|
sectionContainerHeaderULElement: HTMLUListElement;
|
|
213
213
|
sectionContainerULElement: HTMLUListElement;
|
|
@@ -232,22 +232,22 @@ declare class Pops {
|
|
|
232
232
|
setElementAttributes(element: HTMLElement, attributes?: any): void;
|
|
233
233
|
setElementProps(element: HTMLElement, props?: any): void;
|
|
234
234
|
setElementClassName(element: HTMLElement, className?: string | string[] | (() => string | string[])): void;
|
|
235
|
-
createAsideItem(asideConfig: import("./components/panel/
|
|
236
|
-
createSectionContainerItem_switch(formConfig: import("./components/panel/
|
|
237
|
-
createSectionContainerItem_slider(formConfig: import("./components/panel/
|
|
238
|
-
createSectionContainerItem_slider_new(formConfig: import("./components/panel/
|
|
239
|
-
createSectionContainerItem_input(formConfig: import("./components/panel/
|
|
240
|
-
createSectionContainerItem_textarea(formConfig: import("./components/panel/
|
|
241
|
-
createSectionContainerItem_select(formConfig: import("./components/panel/
|
|
242
|
-
createSectionContainerItem_select_multiple_new(formConfig: import("./components/panel/
|
|
243
|
-
createSectionContainerItem_button(formConfig: import("./components/panel/
|
|
244
|
-
createSectionContainerItem_deepMenu(formConfig: import("./components/panel/
|
|
245
|
-
createSectionContainerItem_own(formConfig: import("./components/panel/
|
|
246
|
-
createSectionContainerItem(formConfig: import("./components/panel/
|
|
247
|
-
createSectionContainerItem_forms(formConfig: import("./components/panel/
|
|
235
|
+
createAsideItem(asideConfig: import("./components/panel/types").PopsPanelContentConfig): HTMLLIElement;
|
|
236
|
+
createSectionContainerItem_switch(formConfig: import("./components/panel/types/components-switch").PopsPanelSwitchDetails): HTMLLIElement;
|
|
237
|
+
createSectionContainerItem_slider(formConfig: import("./components/panel/types/components-slider").PopsPanelSliderDetails): HTMLLIElement;
|
|
238
|
+
createSectionContainerItem_slider_new(formConfig: import("./components/panel/types/components-slider").PopsPanelSliderDetails): HTMLLIElement;
|
|
239
|
+
createSectionContainerItem_input(formConfig: import("./components/panel/types/components-input").PopsPanelInputDetails): HTMLLIElement;
|
|
240
|
+
createSectionContainerItem_textarea(formConfig: import("./components/panel/types/components-textarea").PopsPanelTextAreaDetails): HTMLLIElement;
|
|
241
|
+
createSectionContainerItem_select(formConfig: import("./components/panel/types/components-select").PopsPanelSelectDetails<any>): HTMLLIElement;
|
|
242
|
+
createSectionContainerItem_select_multiple_new(formConfig: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDetails<any>): HTMLLIElement;
|
|
243
|
+
createSectionContainerItem_button(formConfig: import("./components/panel/types/components-button").PopsPanelButtonDetails): HTMLLIElement;
|
|
244
|
+
createSectionContainerItem_deepMenu(formConfig: import("./components/panel/types/components-deepMenu").PopsPanelDeepMenuDetails): HTMLLIElement;
|
|
245
|
+
createSectionContainerItem_own(formConfig: import("./components/panel/types/components-own").PopsPanelOwnDetails): HTMLLIElement;
|
|
246
|
+
createSectionContainerItem(formConfig: import("./components/panel/types").PopsPanelFormsTotalDetails): HTMLLIElement | undefined;
|
|
247
|
+
createSectionContainerItem_forms(formConfig: import("./components/panel/types").PopsPanelContentConfig | import("./components/panel/types/components-forms").PopsPanelFormsDetails): void;
|
|
248
248
|
triggerRenderRightContainer($container: HTMLElement): void;
|
|
249
|
-
uListContainerAddItem(formConfig: import("./components/panel/
|
|
250
|
-
setAsideItemClickEvent(asideLiElement: HTMLElement, asideConfig: import("./components/panel/
|
|
249
|
+
uListContainerAddItem(formConfig: import("./components/panel/types").PopsPanelFormsTotalDetails, containerOptions: Omit<import("./components/panel/types/components-common").PopsPanelRightAsideContainerOptions, "target">): void;
|
|
250
|
+
setAsideItemClickEvent(asideLiElement: HTMLElement, asideConfig: import("./components/panel/types").PopsPanelContentConfig): void;
|
|
251
251
|
};
|
|
252
252
|
};
|
|
253
253
|
init(): void;
|
|
@@ -269,11 +269,11 @@ declare class Pops {
|
|
|
269
269
|
config: {
|
|
270
270
|
style?: string | (() => string) | null;
|
|
271
271
|
zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
|
|
272
|
-
} & Partial<import("./types/components").PopsCommonConfig>;
|
|
272
|
+
} & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>;
|
|
273
273
|
setGlobalConfig(config: {
|
|
274
274
|
style?: string | (() => string) | null;
|
|
275
275
|
zIndex?: (number | (() => number) | null) | (string | (() => string) | null);
|
|
276
|
-
} & Partial<import("./types/components").PopsCommonConfig>): void;
|
|
276
|
+
} & Partial<import("./types/components").PopsCommonConfig> & Partial<import("./types/components").PopsDragConfig>): void;
|
|
277
277
|
getGlobalConfig(): {
|
|
278
278
|
style?: string | undefined;
|
|
279
279
|
zIndex?: string | number | undefined;
|
|
@@ -287,6 +287,11 @@ declare class Pops {
|
|
|
287
287
|
mask?: import("./types/mask").PopsMaskDetails | undefined;
|
|
288
288
|
forbiddenScroll?: boolean | undefined;
|
|
289
289
|
beforeAppendToPageCallBack?: void;
|
|
290
|
+
drag?: boolean | undefined;
|
|
291
|
+
dragLimit?: boolean | undefined;
|
|
292
|
+
dragExtraDistance?: number | undefined;
|
|
293
|
+
dragMoveCallBack?: void;
|
|
294
|
+
dragEndCallBack?: void;
|
|
290
295
|
};
|
|
291
296
|
};
|
|
292
297
|
/**
|
|
@@ -326,7 +331,7 @@ declare class Pops {
|
|
|
326
331
|
target: HTMLElement;
|
|
327
332
|
content: string | (() => string);
|
|
328
333
|
isDiffContent: boolean;
|
|
329
|
-
position: import("./components/tooltip/
|
|
334
|
+
position: import("./components/tooltip/types/index").PopsTooltipPosition;
|
|
330
335
|
className: string;
|
|
331
336
|
isFixed: boolean;
|
|
332
337
|
alwaysShow: boolean;
|
|
@@ -385,8 +390,8 @@ declare class Pops {
|
|
|
385
390
|
* @param details 配置
|
|
386
391
|
*/
|
|
387
392
|
panel: (details: PopsPanelDetails) => {
|
|
388
|
-
addEventListener: <K extends keyof import("./components/panel/
|
|
389
|
-
removeEventListener: <K extends keyof import("./components/panel/
|
|
393
|
+
addEventListener: <K extends keyof import("./components/panel/types").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/types").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
|
|
394
|
+
removeEventListener: <K extends keyof import("./components/panel/types").PopsPanelEventType>(event: K, listener: (evt: CustomEvent<import("./components/panel/types").PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
|
|
390
395
|
close: () => Promise<void>;
|
|
391
396
|
hide: () => Promise<void>;
|
|
392
397
|
show: () => Promise<void>;
|
|
@@ -406,7 +411,7 @@ declare class Pops {
|
|
|
406
411
|
rightClickMenu: (details: PopsRightClickMenuDetails) => {
|
|
407
412
|
guid: string;
|
|
408
413
|
config: {
|
|
409
|
-
target:
|
|
414
|
+
target: HTMLElement | Node | {
|
|
410
415
|
addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void;
|
|
411
416
|
dispatchEvent: (event: Event) => boolean;
|
|
412
417
|
removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
|
|
@@ -21068,7 +21073,7 @@ declare class Pops {
|
|
|
21068
21073
|
* @param details 配置
|
|
21069
21074
|
*/
|
|
21070
21075
|
searchSuggestion: <T = any>(details: PopsSearchSuggestionDetails<T>) => {
|
|
21071
|
-
selfDocument:
|
|
21076
|
+
selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
|
|
21072
21077
|
$el: {
|
|
21073
21078
|
root: HTMLElement;
|
|
21074
21079
|
$hintULContainer: HTMLUListElement;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
interface PopsCoreOption {
|
|
2
2
|
document: Document;
|
|
3
3
|
window: Window;
|
|
4
4
|
globalThis: typeof globalThis;
|
|
5
5
|
self: typeof globalThis;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
declare const PopsCore: {
|
|
8
8
|
init(option?: PopsCoreOption): void;
|
|
9
9
|
readonly document: Document;
|
|
10
10
|
readonly window: Window;
|
|
11
11
|
readonly globalThis: typeof globalThis;
|
|
12
12
|
readonly self: typeof globalThis;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
declare const OriginPrototype: {
|
|
15
15
|
Object: {
|
|
16
16
|
defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
export { PopsCoreOption, PopsCore, OriginPrototype };
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
import type { PopsIconType } from "./types/icon";
|
|
2
1
|
export declare const PopsIcon: {
|
|
3
|
-
$data: {
|
|
2
|
+
$data: {
|
|
3
|
+
loading: string;
|
|
4
|
+
min: string;
|
|
5
|
+
max: string;
|
|
6
|
+
mise: string;
|
|
7
|
+
close: string;
|
|
8
|
+
edit: string;
|
|
9
|
+
share: string;
|
|
10
|
+
delete: string;
|
|
11
|
+
search: string;
|
|
12
|
+
upload: string;
|
|
13
|
+
next: string;
|
|
14
|
+
prev: string;
|
|
15
|
+
eleme: string;
|
|
16
|
+
elemePlus: string;
|
|
17
|
+
chromeFilled: string;
|
|
18
|
+
cpu: string;
|
|
19
|
+
videoPlay: string;
|
|
20
|
+
videoPause: string;
|
|
21
|
+
headset: string;
|
|
22
|
+
monitor: string;
|
|
23
|
+
documentCopy: string;
|
|
24
|
+
picture: string;
|
|
25
|
+
circleClose: string;
|
|
26
|
+
view: string;
|
|
27
|
+
hide: string;
|
|
28
|
+
keyboard: string;
|
|
29
|
+
arrowRight: string;
|
|
30
|
+
arrowLeft: string;
|
|
31
|
+
};
|
|
4
32
|
/**
|
|
5
33
|
* 判断是否存在某个icon
|
|
6
34
|
* @param iconName 图标名
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { PopsLayerCommonConfig } from "./types/layer";
|
|
2
2
|
import type { PopsLayerMode } from "./types/main";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const PopsLayerData: {
|
|
4
|
+
[key in PopsLayerMode]: PopsLayerCommonConfig[];
|
|
5
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsAlertDetails } from "./
|
|
1
|
+
import type { PopsAlertDetails } from "./types";
|
|
2
2
|
export declare const PopsAlertConfig: () => DeepRequired<PopsAlertDetails>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsButtonConfig } from "
|
|
2
|
-
import type { PopsButtonDetails, PopsButtonDetailsAnyType } from "
|
|
1
|
+
import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsButtonConfig } from "../../../types/components";
|
|
2
|
+
import type { PopsButtonDetails, PopsButtonDetailsAnyType } from "../../../types/button";
|
|
3
3
|
/**
|
|
4
4
|
* pops.alert
|
|
5
5
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsConfirmDetails } from "./
|
|
1
|
+
import type { PopsConfirmDetails } from "./types";
|
|
2
2
|
export declare const PopsConfirmConfig: () => DeepRequired<PopsConfirmDetails>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "
|
|
1
|
+
import type { PopsTitleConfig, PopsContentConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
|
|
2
2
|
/**
|
|
3
3
|
* pops.confirm
|
|
4
4
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsDrawerDetails } from "./
|
|
1
|
+
import type { PopsDrawerDetails } from "./types";
|
|
2
2
|
export declare const PopsDrawerConfig: () => DeepRequired<PopsDrawerDetails>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsContentConfig, PopsCommonConfig, PopsMoreButtonConfig } from "
|
|
1
|
+
import type { PopsTitleConfig, PopsContentConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
|
|
2
2
|
/**
|
|
3
3
|
* pops.drawer
|
|
4
4
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsFolderDetails } from "./
|
|
1
|
+
import type { PopsFolderDetails } from "./types";
|
|
2
2
|
export declare const PopsFolderConfig: () => DeepRequired<PopsFolderDetails>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "
|
|
1
|
+
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig, PopsMoreButtonConfig } from "../../../types/components";
|
|
2
2
|
/**
|
|
3
3
|
* pops.folder的folder配置信息
|
|
4
4
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsIframeDetails } from "./
|
|
1
|
+
import type { PopsIframeDetails } from "./types";
|
|
2
2
|
export declare const PopsIframeConfig: () => DeepRequired<PopsIframeDetails>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PopsEventDetails } from "../../types/event";
|
|
2
|
-
import type { PopsIframeDetails } from "./
|
|
2
|
+
import type { PopsIframeDetails } from "./types";
|
|
3
3
|
export declare const PopsIframe: {
|
|
4
4
|
init(details: PopsIframeDetails): Omit<PopsEventDetails & {
|
|
5
5
|
iframeElement: HTMLIFrameElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "
|
|
2
|
-
import type { PopsEventDetails } from "
|
|
1
|
+
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../../types/components";
|
|
2
|
+
import type { PopsEventDetails } from "../../../types/event";
|
|
3
3
|
/**
|
|
4
4
|
* pops.iframe的按钮的点击回调参数event
|
|
5
5
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsLoadingDetails } from "./
|
|
1
|
+
import type { PopsLoadingDetails } from "./types";
|
|
2
2
|
export declare const PopsLoadingConfig: () => DeepRequired<PopsLoadingDetails>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopsLoadingDetails } from "./
|
|
1
|
+
import type { PopsLoadingDetails } from "./types";
|
|
2
2
|
export declare const PopsLoading: {
|
|
3
3
|
init(details: PopsLoadingDetails): Omit<Omit<import("../../types/event").PopsEventDetails, "$shadowContainer" | "$shadowRoot">, "function" | "type">;
|
|
4
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsPanelDetails } from "./
|
|
1
|
+
import type { PopsPanelDetails } from "./types";
|
|
2
2
|
export declare const PopsPanelConfig: () => DeepRequired<PopsPanelDetails>;
|
package/dist/types/src/components/panel/{PanelHandleContentDetails.d.ts → handlerComponents.d.ts}
RENAMED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import type { PopsPanelButtonDetails } from "./
|
|
2
|
-
import type { PopsPanelRightAsideContainerOptions } from "./
|
|
3
|
-
import type { PopsPanelDeepMenuDetails } from "./
|
|
4
|
-
import type { PopsPanelFormsDetails } from "./
|
|
5
|
-
import type { PopsPanelContentConfig, PopsPanelDetails, PopsPanelFormsTotalDetails } from "./
|
|
6
|
-
import type { PopsPanelInputDetails } from "./
|
|
7
|
-
import type { PopsPanelOwnDetails } from "./
|
|
8
|
-
import type { PopsPanelSelectMultipleDetails } from "./
|
|
9
|
-
import type { PopsPanelSelectDetails } from "./
|
|
10
|
-
import type { PopsPanelSliderDetails } from "./
|
|
11
|
-
import type { PopsPanelSwitchDetails } from "./
|
|
12
|
-
import type { PopsPanelTextAreaDetails } from "./
|
|
13
|
-
|
|
1
|
+
import type { PopsPanelButtonDetails } from "./types/components-button";
|
|
2
|
+
import type { PopsPanelRightAsideContainerOptions } from "./types/components-common";
|
|
3
|
+
import type { PopsPanelDeepMenuDetails } from "./types/components-deepMenu";
|
|
4
|
+
import type { PopsPanelFormsDetails } from "./types/components-forms";
|
|
5
|
+
import type { PopsPanelContentConfig, PopsPanelDetails, PopsPanelFormsTotalDetails } from "./types";
|
|
6
|
+
import type { PopsPanelInputDetails } from "./types/components-input";
|
|
7
|
+
import type { PopsPanelOwnDetails } from "./types/components-own";
|
|
8
|
+
import type { PopsPanelSelectMultipleDetails } from "./types/components-selectMultiple";
|
|
9
|
+
import type { PopsPanelSelectDetails } from "./types/components-select";
|
|
10
|
+
import type { PopsPanelSliderDetails } from "./types/components-slider";
|
|
11
|
+
import type { PopsPanelSwitchDetails } from "./types/components-switch";
|
|
12
|
+
import type { PopsPanelTextAreaDetails } from "./types/components-textarea";
|
|
13
|
+
/**
|
|
14
|
+
* 处理组件(把组件配置转为组件元素)
|
|
15
|
+
*/
|
|
16
|
+
export declare const PanelHandlerComponents: () => {
|
|
14
17
|
/**
|
|
15
18
|
* 左侧的ul容器
|
|
16
19
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopsPanelDetails, PopsPanelEventType } from "./
|
|
1
|
+
import type { PopsPanelDetails, PopsPanelEventType } from "./types";
|
|
2
2
|
export declare const PopsPanel: {
|
|
3
3
|
init(details: PopsPanelDetails): {
|
|
4
4
|
addEventListener: <K extends keyof PopsPanelEventType>(event: K, listener: (evt: CustomEvent<PopsPanelEventType[K]>) => void, options?: boolean | EventListenerOptions) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PopsPanelCommonDetails } from "./
|
|
2
|
-
import type { PopsButtonStyleType } from "
|
|
3
|
-
import type { PopsIconType } from "
|
|
1
|
+
import type { PopsPanelCommonDetails } from "./components-common";
|
|
2
|
+
import type { PopsButtonStyleType } from "../../../types/button";
|
|
3
|
+
import type { PopsIconType } from "../../../types/icon";
|
|
4
4
|
/**
|
|
5
5
|
* pops.panel的 button
|
|
6
6
|
*/
|
package/dist/types/src/components/panel/{deepMenuType.d.ts → types/components-deepMenu.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PopsPanelFormsTotalDetails } from "
|
|
2
|
-
import type { PopsPanelFormsDetails } from "./
|
|
3
|
-
import type { PopsPanelCommonDetails } from "./
|
|
1
|
+
import type { PopsPanelFormsTotalDetails } from ".";
|
|
2
|
+
import type { PopsPanelFormsDetails } from "./components-forms";
|
|
3
|
+
import type { PopsPanelCommonDetails } from "./components-common";
|
|
4
4
|
/**
|
|
5
5
|
* pops.panel的 深层菜单
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopsPanelCommonDetails } from "./
|
|
2
|
-
import type { PopsPanelFormsTotalDetails } from "
|
|
1
|
+
import type { PopsPanelCommonDetails } from "./components-common";
|
|
2
|
+
import type { PopsPanelFormsTotalDetails } from ".";
|
|
3
3
|
/**
|
|
4
4
|
* pops.panel的 forms
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PopsPanelCommonDetails } from "./
|
|
2
|
-
import type { PopsPanelFormsDetails } from "./
|
|
3
|
-
import type { PopsPanelFormsTotalDetails } from "
|
|
1
|
+
import type { PopsPanelCommonDetails } from "./components-common";
|
|
2
|
+
import type { PopsPanelFormsDetails } from "./components-forms";
|
|
3
|
+
import type { PopsPanelFormsTotalDetails } from ".";
|
|
4
4
|
/**
|
|
5
5
|
* pops.panel的 select
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopsAlertDetails } from "
|
|
2
|
-
import type { PopsPanelCommonDetails } from "./
|
|
1
|
+
import type { PopsAlertDetails } from "../../alert/types";
|
|
2
|
+
import type { PopsPanelCommonDetails } from "./components-common";
|
|
3
3
|
export interface PopsPanelSelectMultipleDataOption<T> {
|
|
4
4
|
/**
|
|
5
5
|
* 真正的值
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "
|
|
2
|
-
import type { PopsPanelFormsDetails } from "./
|
|
3
|
-
import type { PopsPanelSwitchDetails } from "./
|
|
4
|
-
import type { PopsPanelSliderDetails } from "./
|
|
5
|
-
import type { PopsPanelInputDetails } from "./
|
|
6
|
-
import type { PopsPanelTextAreaDetails } from "./
|
|
7
|
-
import type { PopsPanelSelectDetails } from "./
|
|
8
|
-
import type { PopsPanelButtonDetails } from "./
|
|
9
|
-
import type { PopsPanelDeepMenuDetails } from "./
|
|
10
|
-
import type { PopsPanelOwnDetails } from "./
|
|
11
|
-
import type { PopsHeaderCloseButtonDetails } from "
|
|
12
|
-
import { PopsPanelSelectMultipleDetails } from "./
|
|
1
|
+
import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../../types/components";
|
|
2
|
+
import type { PopsPanelFormsDetails } from "./components-forms";
|
|
3
|
+
import type { PopsPanelSwitchDetails } from "./components-switch";
|
|
4
|
+
import type { PopsPanelSliderDetails } from "./components-slider";
|
|
5
|
+
import type { PopsPanelInputDetails } from "./components-input";
|
|
6
|
+
import type { PopsPanelTextAreaDetails } from "./components-textarea";
|
|
7
|
+
import type { PopsPanelSelectDetails } from "./components-select";
|
|
8
|
+
import type { PopsPanelButtonDetails } from "./components-button";
|
|
9
|
+
import type { PopsPanelDeepMenuDetails } from "./components-deepMenu";
|
|
10
|
+
import type { PopsPanelOwnDetails } from "./components-own";
|
|
11
|
+
import type { PopsHeaderCloseButtonDetails } from "../../../types/button";
|
|
12
|
+
import { PopsPanelSelectMultipleDetails } from "./components-selectMultiple";
|
|
13
13
|
/** panel的各种类型的配置项 */
|
|
14
14
|
export type PopsPanelFormsTotalDetails = PopsPanelSwitchDetails | PopsPanelSliderDetails | PopsPanelInputDetails | PopsPanelTextAreaDetails | PopsPanelSelectDetails<any> | PopsPanelSelectMultipleDetails<any> | PopsPanelButtonDetails | PopsPanelDeepMenuDetails | PopsPanelOwnDetails;
|
|
15
15
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsPromptDetails } from "./
|
|
1
|
+
import type { PopsPromptDetails } from "./types/index";
|
|
2
2
|
export declare const PopsPromptConfig: () => DeepRequired<PopsPromptDetails>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsRightClickMenuDetails } from "./
|
|
1
|
+
import type { PopsRightClickMenuDetails } from "./types";
|
|
2
2
|
export declare const rightClickMenuConfig: () => DeepRequired<PopsRightClickMenuDetails>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PopsRightClickMenuDetails } from "./
|
|
1
|
+
import type { PopsRightClickMenuDetails } from "./types";
|
|
2
2
|
export declare const PopsRightClickMenu: {
|
|
3
3
|
init(details: PopsRightClickMenuDetails): {
|
|
4
4
|
guid: string;
|
|
5
5
|
config: {
|
|
6
|
-
target:
|
|
6
|
+
target: HTMLElement | Node | {
|
|
7
7
|
addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean) => void;
|
|
8
8
|
dispatchEvent: (event: Event) => boolean;
|
|
9
9
|
removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopsCommonConfig } from "
|
|
2
|
-
import type { PopsIconType } from "
|
|
1
|
+
import type { PopsCommonConfig } from "../../../types/components";
|
|
2
|
+
import type { PopsIconType } from "../../../types/icon";
|
|
3
3
|
/**
|
|
4
4
|
* pops.rightClickMenu的右键菜单配置
|
|
5
5
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PopsSearchSuggestionDetails } from "./
|
|
1
|
+
import type { PopsSearchSuggestionDetails } from "./types/index";
|
|
2
2
|
export declare const searchSuggestionConfig: () => DeepRequired<PopsSearchSuggestionDetails>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { PopsSearchSuggestionDetails } from "./
|
|
1
|
+
import type { PopsSearchSuggestionDetails } from "./types/index";
|
|
2
2
|
export declare const PopsSearchSuggestion: {
|
|
3
3
|
init(details: PopsSearchSuggestionDetails): {
|
|
4
4
|
/**
|
|
5
5
|
* 当前的环境,可以是document,可以是shadowroot,默认是document
|
|
6
6
|
*/
|
|
7
|
-
selfDocument:
|
|
7
|
+
selfDocument: ShadowRoot | Document | (ShadowRoot | Document)[];
|
|
8
8
|
$el: {
|
|
9
9
|
/** 根元素 */
|
|
10
10
|
root: HTMLElement;
|