@whitesev/pops 3.0.0 → 3.0.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/dist/index.amd.js +1964 -719
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +1964 -719
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +1964 -719
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +1964 -719
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +1964 -719
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +1964 -719
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/Pops.d.ts +413 -22
- package/dist/types/src/PopsCSS.d.ts +3 -1
- package/dist/types/src/PopsIcon.d.ts +1 -1
- package/dist/types/src/components/panel/handlerComponents.d.ts +1103 -21
- package/dist/types/src/components/panel/index.d.ts +2 -2
- package/dist/types/src/components/panel/types/components-button.d.ts +1 -1
- package/dist/types/src/components/panel/types/components-container.d.ts +1 -1
- package/dist/types/src/components/panel/types/components-deepMenu.d.ts +1 -1
- package/dist/types/src/components/panel/types/components-input.d.ts +41 -16
- package/dist/types/src/components/panel/types/components-own.d.ts +3 -3
- package/dist/types/src/components/panel/types/components-select.d.ts +126 -30
- package/dist/types/src/components/panel/types/components-selectMultiple.d.ts +10 -15
- package/dist/types/src/components/panel/types/components-slider.d.ts +2 -3
- package/dist/types/src/components/panel/types/components-switch.d.ts +1 -1
- package/dist/types/src/components/panel/types/components-textarea.d.ts +1 -1
- package/dist/types/src/components/searchSuggestion/index.d.ts +3 -3
- package/dist/types/src/types/global.d.ts +3 -1
- package/package.json +8 -8
- package/src/PopsCSS.ts +4 -1
- package/src/components/panel/css/components-select.css +84 -0
- package/src/components/panel/defaultConfig.ts +473 -213
- package/src/components/panel/handlerComponents.ts +1504 -499
- package/src/components/panel/index.css +149 -14
- package/src/components/panel/types/components-button.ts +1 -1
- package/src/components/panel/types/components-container.ts +1 -1
- package/src/components/panel/types/components-deepMenu.ts +1 -1
- package/src/components/panel/types/components-input.ts +51 -16
- package/src/components/panel/types/components-own.ts +3 -3
- package/src/components/panel/types/components-select.ts +131 -32
- package/src/components/panel/types/components-selectMultiple.ts +11 -16
- package/src/components/panel/types/components-slider.ts +2 -3
- package/src/components/panel/types/components-switch.ts +1 -1
- package/src/components/panel/types/components-textarea.ts +1 -1
- package/src/components/rightClickMenu/index.css +1 -1
- package/src/components/searchSuggestion/index.ts +20 -65
- package/src/css/common.css +4 -4
- package/src/types/global.d.ts +3 -1
package/dist/types/src/Pops.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ import type { PopsPanelConfig } from "./components/panel/types";
|
|
|
8
8
|
import type { PopsPromptConfig } from "./components/prompt/types/index";
|
|
9
9
|
import type { PopsRightClickMenuConfig } from "./components/rightClickMenu/types";
|
|
10
10
|
import type { PopsSearchSuggestionConfig } from "./components/searchSuggestion/types/index";
|
|
11
|
+
import { PopsTooltip } from "./components/tooltip";
|
|
11
12
|
import type { PopsToolTipConfig } from "./components/tooltip/types/index";
|
|
13
|
+
import { popsUtils } from "./utils/PopsUtils";
|
|
12
14
|
declare class Pops {
|
|
13
15
|
/** 配置 */
|
|
14
16
|
config: {
|
|
@@ -31,20 +33,20 @@ declare class Pops {
|
|
|
31
33
|
folderCSS: string;
|
|
32
34
|
panelCSS: string;
|
|
33
35
|
rightClickMenu: string;
|
|
36
|
+
panelComponents_Select: string;
|
|
34
37
|
};
|
|
35
38
|
/** icon图标的svg代码 */
|
|
36
39
|
iconSVG: {
|
|
37
|
-
|
|
38
|
-
search: string;
|
|
40
|
+
loading: string;
|
|
39
41
|
min: string;
|
|
40
|
-
mise: string;
|
|
41
42
|
max: string;
|
|
43
|
+
search: string;
|
|
44
|
+
mise: string;
|
|
42
45
|
close: string;
|
|
43
46
|
edit: string;
|
|
44
47
|
share: string;
|
|
45
48
|
delete: string;
|
|
46
49
|
upload: string;
|
|
47
|
-
loading: string;
|
|
48
50
|
next: string;
|
|
49
51
|
prev: string;
|
|
50
52
|
eleme: string;
|
|
@@ -56,6 +58,7 @@ declare class Pops {
|
|
|
56
58
|
headset: string;
|
|
57
59
|
monitor: string;
|
|
58
60
|
documentCopy: string;
|
|
61
|
+
picture: string;
|
|
59
62
|
circleClose: string;
|
|
60
63
|
view: string;
|
|
61
64
|
hide: string;
|
|
@@ -70,13 +73,13 @@ declare class Pops {
|
|
|
70
73
|
/** 存储已创建的元素 */
|
|
71
74
|
instData: {
|
|
72
75
|
iframe: import("./types/inst").PopsInstGeneralConfig[];
|
|
76
|
+
folder: import("./types/inst").PopsInstGeneralConfig[];
|
|
73
77
|
loading: import("./types/inst").PopsInstGeneralConfig[];
|
|
74
78
|
alert: import("./types/inst").PopsInstGeneralConfig[];
|
|
75
79
|
confirm: import("./types/inst").PopsInstGeneralConfig[];
|
|
76
80
|
prompt: import("./types/inst").PopsInstGeneralConfig[];
|
|
77
81
|
tooltip: import("./types/inst").PopsInstGeneralConfig[];
|
|
78
82
|
drawer: import("./types/inst").PopsInstGeneralConfig[];
|
|
79
|
-
folder: import("./types/inst").PopsInstGeneralConfig[];
|
|
80
83
|
panel: import("./types/inst").PopsInstGeneralConfig[];
|
|
81
84
|
rightClickMenu: import("./types/inst").PopsInstGeneralConfig[];
|
|
82
85
|
};
|
|
@@ -263,23 +266,411 @@ declare class Pops {
|
|
|
263
266
|
setElementProps($el: HTMLElement, props?: any): void;
|
|
264
267
|
setElementClassName($el: HTMLElement, className?: import("./components/panel/types/components-common").PopsPanelGeneralConfig<any>["className"]): void;
|
|
265
268
|
createBottomItem(bottomItemConfig: import("./components/panel/types").PopsPanelBottomContentConfig): HTMLLIElement;
|
|
266
|
-
|
|
269
|
+
onBottomItemClick($bottomItem: HTMLElement, bottomItemConfig: import("./components/panel/types").PopsPanelBottomContentConfig): void;
|
|
267
270
|
createAsideItem(asideConfig: import("./components/panel/types").PopsPanelContentConfig): HTMLLIElement;
|
|
268
|
-
createSectionContainerItem_switch(viewConfig: import("./components/panel/types/components-switch").PopsPanelSwitchConfig):
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
271
|
+
createSectionContainerItem_switch(viewConfig: import("./components/panel/types/components-switch").PopsPanelSwitchConfig): {
|
|
272
|
+
$el: HTMLLIElement;
|
|
273
|
+
handler: {
|
|
274
|
+
[Symbol.toStringTag]: string;
|
|
275
|
+
$data: {
|
|
276
|
+
value: boolean;
|
|
277
|
+
};
|
|
278
|
+
$ele: {
|
|
279
|
+
itemLeftTextContainer: HTMLElement | null;
|
|
280
|
+
switch: HTMLDivElement;
|
|
281
|
+
input: HTMLInputElement;
|
|
282
|
+
core: HTMLSpanElement;
|
|
283
|
+
};
|
|
284
|
+
init(): void;
|
|
285
|
+
onClick(): void;
|
|
286
|
+
setStatus(isChecked?: boolean): void;
|
|
287
|
+
getStatus(): boolean;
|
|
288
|
+
disable(): void;
|
|
289
|
+
notDisable(): void;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
createSectionContainerItem_slider(viewConfig: import("./components/panel/types/components-slider").PopsPanelSliderConfig): {
|
|
293
|
+
$el: HTMLLIElement;
|
|
294
|
+
handler: {
|
|
295
|
+
[Symbol.toStringTag]: string;
|
|
296
|
+
value: number;
|
|
297
|
+
min: number;
|
|
298
|
+
max: number;
|
|
299
|
+
step: number;
|
|
300
|
+
$data: {
|
|
301
|
+
isMove: boolean;
|
|
302
|
+
isInitDragPosition: boolean;
|
|
303
|
+
isCheckingStopDragMove: boolean;
|
|
304
|
+
totalWidth: number;
|
|
305
|
+
stepPx: number;
|
|
306
|
+
dragWidth: number;
|
|
307
|
+
dragPercent: number;
|
|
308
|
+
stepBlockMap: Map<number, {
|
|
309
|
+
value: number;
|
|
310
|
+
px: number;
|
|
311
|
+
pxLeft: number;
|
|
312
|
+
pxRight: number;
|
|
313
|
+
percent: number;
|
|
314
|
+
}>;
|
|
315
|
+
tooltip: ReturnType<typeof PopsTooltip.init>;
|
|
316
|
+
};
|
|
317
|
+
$ele: {
|
|
318
|
+
itemLeftTextContainer: HTMLElement | null;
|
|
319
|
+
slider: HTMLElement;
|
|
320
|
+
runAway: HTMLElement;
|
|
321
|
+
bar: HTMLElement;
|
|
322
|
+
buttonWrapper: HTMLElement;
|
|
323
|
+
button: HTMLElement;
|
|
324
|
+
};
|
|
325
|
+
$interval: {
|
|
326
|
+
isCheck: boolean;
|
|
327
|
+
};
|
|
328
|
+
$tooltip: ReturnType<typeof popsUtils.AnyTouch>["prototype"];
|
|
329
|
+
init(): void;
|
|
330
|
+
intervalInit(checkStepTime?: number, maxTime?: number): void;
|
|
331
|
+
initEleData(): void;
|
|
332
|
+
initTotalWidth(): void;
|
|
333
|
+
initStepMap(): void;
|
|
334
|
+
initFloatStepMap(): void;
|
|
335
|
+
initSliderPosition(): void;
|
|
336
|
+
isFloat(num: number): boolean;
|
|
337
|
+
valueChangeCallBack(event: any, value: number): void;
|
|
338
|
+
getDragInfo(dragX: number): {
|
|
339
|
+
value: number;
|
|
340
|
+
px: number;
|
|
341
|
+
pxLeft: number;
|
|
342
|
+
pxRight: number;
|
|
343
|
+
percent: number;
|
|
344
|
+
} | undefined;
|
|
345
|
+
getSliderPositonPercent(dragWidth: number): number;
|
|
346
|
+
formatValue(num: number): number;
|
|
347
|
+
setSliderPosition(percent: number): void;
|
|
348
|
+
disableDrag(): void;
|
|
349
|
+
allowDrag(): void;
|
|
350
|
+
isDisabledDrag(): boolean;
|
|
351
|
+
isDisabledDragWithConfig(): boolean;
|
|
352
|
+
onRunAwayClick(): void;
|
|
353
|
+
dragStartCallBack(): boolean;
|
|
354
|
+
dragMoveCallBack(event: any, dragX: number, oldValue: number): void;
|
|
355
|
+
dragEndCallBack(dragX: number): void;
|
|
356
|
+
setPanEvent(): void;
|
|
357
|
+
showToolTip(): void;
|
|
358
|
+
closeToolTip(): void;
|
|
359
|
+
checkStopDragMove(): void;
|
|
360
|
+
setToolTipEvent(): void;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
createSectionContainerItem_input(viewConfig: import("./components/panel/types/components-input").PopsPanelInputConfig): {
|
|
364
|
+
$el: HTMLLIElement;
|
|
365
|
+
handler: {
|
|
366
|
+
[Symbol.toStringTag]: string;
|
|
367
|
+
$el: {
|
|
368
|
+
itemLeftTextContainer: HTMLElement | null;
|
|
369
|
+
panelInput: HTMLDivElement;
|
|
370
|
+
panelInputInner: HTMLDivElement;
|
|
371
|
+
input: HTMLInputElement;
|
|
372
|
+
suffix: HTMLSpanElement;
|
|
373
|
+
suffixInner: HTMLSpanElement;
|
|
374
|
+
icon: HTMLElement;
|
|
375
|
+
};
|
|
376
|
+
$data: {
|
|
377
|
+
value: string | number | Date;
|
|
378
|
+
isVisible: boolean;
|
|
379
|
+
};
|
|
380
|
+
init(): void;
|
|
381
|
+
initEle(): void;
|
|
382
|
+
isTextInputType(): boolean;
|
|
383
|
+
isDateInputType(): boolean;
|
|
384
|
+
isNumberInputType(): boolean;
|
|
385
|
+
disable(): void;
|
|
386
|
+
notDisable(): void;
|
|
387
|
+
isDisabled(): boolean;
|
|
388
|
+
setInputValue(value?: string | number | Date): void;
|
|
389
|
+
setInputType(typeValue?: import("./components/panel/types/components-input").PopsPanelInputType): void;
|
|
390
|
+
removeCircleIcon(): void;
|
|
391
|
+
setCircleIcon(svgHTML?: string): void;
|
|
392
|
+
hideCircleIconWrapper(): void;
|
|
393
|
+
showCircleIconWrapper(): void;
|
|
394
|
+
onIconClick(): void;
|
|
395
|
+
onValueChange(): void;
|
|
396
|
+
triggerValueChange(): void;
|
|
397
|
+
addValidErrorMsg(msg?: string): void;
|
|
398
|
+
removeValidErrorMsg(): void;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
createSectionContainerItem_textarea(viewConfig: import("./components/panel/types/components-textarea").PopsPanelTextAreaConfig): {
|
|
402
|
+
$el: HTMLLIElement;
|
|
403
|
+
handler: {
|
|
404
|
+
[Symbol.toStringTag]: string;
|
|
405
|
+
$ele: {
|
|
406
|
+
itemLeftTextContainer: HTMLElement | null;
|
|
407
|
+
panelTextarea: HTMLDivElement;
|
|
408
|
+
textarea: HTMLTextAreaElement;
|
|
409
|
+
};
|
|
410
|
+
$data: {
|
|
411
|
+
value: string;
|
|
412
|
+
};
|
|
413
|
+
init(): void;
|
|
414
|
+
disable(): void;
|
|
415
|
+
notDisable(): void;
|
|
416
|
+
isDisabled(): boolean;
|
|
417
|
+
setValue(value: string): void;
|
|
418
|
+
onValueChange(): void;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
createSectionContainerItem_select(viewConfig: import("./components/panel/types/components-select").PopsPanelSelectConfig<any>): {
|
|
422
|
+
$el: HTMLLIElement;
|
|
423
|
+
handler: {
|
|
424
|
+
[Symbol.toStringTag]: string;
|
|
425
|
+
$el: {
|
|
426
|
+
itemLeftTextContainer: HTMLElement;
|
|
427
|
+
$container: HTMLElement;
|
|
428
|
+
$select: HTMLSelectElement;
|
|
429
|
+
};
|
|
430
|
+
$eleKey: {
|
|
431
|
+
disable: string;
|
|
432
|
+
value: string;
|
|
433
|
+
viewConfig: string;
|
|
434
|
+
};
|
|
435
|
+
$data: {
|
|
436
|
+
data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>[];
|
|
437
|
+
defaultValue: any;
|
|
438
|
+
};
|
|
439
|
+
init(): void;
|
|
440
|
+
setNodeValue($ele: HTMLElement, key: string, value: any): void;
|
|
441
|
+
getNodeValue($ele: HTMLElement, key: string): any;
|
|
442
|
+
disable(): void;
|
|
443
|
+
notDisable(): void;
|
|
444
|
+
isDisabled(): boolean;
|
|
445
|
+
initOption(): void;
|
|
446
|
+
setOptionSelected($option: HTMLOptionElement): void;
|
|
447
|
+
setSelectOptionsDisableStatus(): void;
|
|
448
|
+
setOptionDisableStatus($option: HTMLOptionElement): void;
|
|
449
|
+
getSelectOptionInfo($option: HTMLOptionElement): {
|
|
450
|
+
value: any;
|
|
451
|
+
text: string;
|
|
452
|
+
views: NonNullable<IFunction<(import("./components/panel/types").PopsPanelViewConfig | import("./components/panel/types/components-container").PopsPanelContainerConfig)[]> | undefined>;
|
|
453
|
+
$option: HTMLOptionElement;
|
|
454
|
+
};
|
|
455
|
+
onValueChange(): void;
|
|
456
|
+
onClick(): void;
|
|
457
|
+
} | {
|
|
458
|
+
[Symbol.toStringTag]: string;
|
|
459
|
+
$el: {
|
|
460
|
+
$itemLeftContainer: HTMLElement;
|
|
461
|
+
$container: HTMLElement;
|
|
462
|
+
$wrapper: HTMLElement;
|
|
463
|
+
$section: HTMLElement;
|
|
464
|
+
$selectedInputWrapper: HTMLElement;
|
|
465
|
+
$selectedPlaceHolderWrapper: HTMLElement;
|
|
466
|
+
$suffix: HTMLElement;
|
|
467
|
+
$suffixIcon: HTMLElement;
|
|
468
|
+
$selectDialogContainer: HTMLElement | null;
|
|
469
|
+
};
|
|
470
|
+
$data: {
|
|
471
|
+
data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>[];
|
|
472
|
+
defaultValue: any;
|
|
473
|
+
selectedData: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any> | undefined;
|
|
474
|
+
isValidSuccess: boolean;
|
|
475
|
+
rotateKey: string;
|
|
476
|
+
};
|
|
477
|
+
init(): void;
|
|
478
|
+
initDefault(): void;
|
|
479
|
+
initEl(): void;
|
|
480
|
+
initPlaceHolder(): void;
|
|
481
|
+
renderSelectText(): void;
|
|
482
|
+
disable(): void;
|
|
483
|
+
cancleDisable(): void;
|
|
484
|
+
isDisabled(): boolean;
|
|
485
|
+
onShowSelectDialogClick(): void;
|
|
486
|
+
onValueChangeCallback(data?: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>, isUpdateSelectItem?: boolean): void;
|
|
487
|
+
updateAllSelectItemStatus(): void;
|
|
488
|
+
resetAllSelectedItemStatus(): void;
|
|
489
|
+
setItemSelected($el: HTMLElement): void;
|
|
490
|
+
removeItemSelected($el: HTMLElement): void;
|
|
491
|
+
isItemSelected($el: HTMLElement): boolean;
|
|
492
|
+
getItemDataOption($el: HTMLElement): import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>;
|
|
493
|
+
addSelectedItemInfo(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): void;
|
|
494
|
+
removeSelectedItemInfo(): void;
|
|
495
|
+
updateSelectedInfo(data?: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): void;
|
|
496
|
+
resetCurrentSelectedInfo(): void;
|
|
497
|
+
getAllSelectItems(onlySelected?: boolean): {
|
|
498
|
+
data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>;
|
|
499
|
+
$select: HTMLElement;
|
|
500
|
+
}[];
|
|
501
|
+
createSelectItemElement(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): HTMLLIElement;
|
|
502
|
+
setSelectItemText(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>, $select: HTMLElement): void;
|
|
503
|
+
setSelectItemDisabled($select: HTMLElement): void;
|
|
504
|
+
removeSelectItemDisabled($select: HTMLElement): void;
|
|
505
|
+
isSelectItemDisabled($select: HTMLElement): string | true | null;
|
|
506
|
+
onSelectItemClick(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any> | undefined, $select: HTMLElement): void;
|
|
507
|
+
showInputWrapper(): void;
|
|
508
|
+
hideInputWrapper(): void;
|
|
509
|
+
showPlaceHolderWrapper(): void;
|
|
510
|
+
hidePlaceHolderWrapper(): void;
|
|
511
|
+
} | {
|
|
512
|
+
[Symbol.toStringTag]: string;
|
|
513
|
+
$el: {
|
|
514
|
+
$itemLeftContainer: HTMLElement;
|
|
515
|
+
$container: HTMLElement;
|
|
516
|
+
$wrapper: HTMLElement;
|
|
517
|
+
};
|
|
518
|
+
$data: {
|
|
519
|
+
data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>[];
|
|
520
|
+
defaultValue: any;
|
|
521
|
+
selectedData: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any> | undefined;
|
|
522
|
+
rotateKey: string;
|
|
523
|
+
};
|
|
524
|
+
init(): void;
|
|
525
|
+
initDefault(): void;
|
|
526
|
+
initEl(): void;
|
|
527
|
+
disable(): void;
|
|
528
|
+
cancleDisable(): void;
|
|
529
|
+
isDisabled(): boolean;
|
|
530
|
+
createSelectItemElement(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): HTMLDivElement;
|
|
531
|
+
setSelectItemText(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>, $select: HTMLElement): void;
|
|
532
|
+
onSelectItemClick(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any> | undefined, $el: HTMLElement): void;
|
|
533
|
+
onValueChangeCallback(data?: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>, isUpdateSelectItem?: boolean): void;
|
|
534
|
+
updateAllSelectItemStatus(): void;
|
|
535
|
+
resetAllSelectedItemStatus(): void;
|
|
536
|
+
addSelectedItemInfo(data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): void;
|
|
537
|
+
removeSelectedItemInfo(): void;
|
|
538
|
+
updateSelectedInfo(data?: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>): void;
|
|
539
|
+
resetCurrentSelectedInfo(): void;
|
|
540
|
+
setSelectItemDisabled($select: HTMLElement): void;
|
|
541
|
+
removeSelectItemDisabled($select: HTMLElement): void;
|
|
542
|
+
isSelectItemDisabled($select: HTMLElement): string | true | null;
|
|
543
|
+
setItemSelected($select: HTMLElement): void;
|
|
544
|
+
removeItemSelected($select: HTMLElement): void;
|
|
545
|
+
isItemSelected($select: HTMLElement): boolean;
|
|
546
|
+
getAllSelectItems(onlySelected?: boolean): {
|
|
547
|
+
data: import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>;
|
|
548
|
+
$select: HTMLElement;
|
|
549
|
+
}[];
|
|
550
|
+
getItemDataOption($el: HTMLElement): import("./components/panel/types/components-select").PopsPanelSelectDataOption<any>;
|
|
551
|
+
} | undefined;
|
|
552
|
+
};
|
|
553
|
+
createSectionContainerItem_select_multiple(viewConfig: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleConfig<any>): {
|
|
554
|
+
$el: HTMLLIElement;
|
|
555
|
+
handler: {
|
|
556
|
+
[Symbol.toStringTag]: string;
|
|
557
|
+
$el: {
|
|
558
|
+
$itemLeftContainer: HTMLElement | null;
|
|
559
|
+
$container: HTMLElement;
|
|
560
|
+
$wrapper: HTMLElement;
|
|
561
|
+
$section: HTMLElement;
|
|
562
|
+
$selectedInputWrapper: HTMLElement;
|
|
563
|
+
$selectedPlaceHolderWrapper: HTMLElement;
|
|
564
|
+
$suffix: HTMLElement;
|
|
565
|
+
$suffixIcon: HTMLElement;
|
|
566
|
+
$selectContainer: HTMLElement | null;
|
|
567
|
+
};
|
|
568
|
+
$data: {
|
|
569
|
+
defaultValue: any[];
|
|
570
|
+
selectedDataList: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>[];
|
|
571
|
+
rotateKey: string;
|
|
572
|
+
};
|
|
573
|
+
init(): void;
|
|
574
|
+
initDefault(): void;
|
|
575
|
+
inintEl(): void;
|
|
576
|
+
initPlaceHolder(): void;
|
|
577
|
+
initTagElement(): void;
|
|
578
|
+
createTagItem(data: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>): {
|
|
579
|
+
$tag: HTMLDivElement;
|
|
580
|
+
$tagText: HTMLSpanElement;
|
|
581
|
+
$closeIcon: HTMLElement;
|
|
582
|
+
};
|
|
583
|
+
addTagItem($tag: HTMLElement): void;
|
|
584
|
+
updateTagItem(): void;
|
|
585
|
+
onValueChange(selectedDataList?: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>[]): void;
|
|
586
|
+
updateAllSelectItems(): void;
|
|
587
|
+
setItemSelected($select: HTMLElement): void;
|
|
588
|
+
removeItemSelected($select: HTMLElement): void;
|
|
589
|
+
isItemSelected($select: HTMLElement): boolean;
|
|
590
|
+
addItemSelected(dataList: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>[], $select: HTMLElement): void;
|
|
591
|
+
getSelectedItemInfo($select: HTMLElement): import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>;
|
|
592
|
+
removeSelectedItemInfo(dataList: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>[], $select: HTMLElement): void;
|
|
593
|
+
getAllSelectItemInfo(onlySelected?: boolean): {
|
|
594
|
+
data: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>;
|
|
595
|
+
$select: HTMLElement;
|
|
596
|
+
}[];
|
|
597
|
+
createSelectItemElement(data: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>): HTMLLIElement;
|
|
598
|
+
setSelectItemText(data: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>, $select: HTMLElement): void;
|
|
599
|
+
disableSelectItem($select: HTMLElement): void;
|
|
600
|
+
cancleDisableSelectItem($select: HTMLElement): void;
|
|
601
|
+
isSelectItemDisabled($select: HTMLElement): string | true | null;
|
|
602
|
+
onSelectItemClick(dataList: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>[], $select: HTMLElement): void;
|
|
603
|
+
onShowSelectDialogClick(): void;
|
|
604
|
+
onSelectItemCloseIconClick(data: {
|
|
605
|
+
$closeIcon: HTMLElement;
|
|
606
|
+
$tag: HTMLElement;
|
|
607
|
+
value: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>["value"];
|
|
608
|
+
text: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>["text"];
|
|
609
|
+
}): void;
|
|
610
|
+
checkTagEmpty(): void;
|
|
611
|
+
removeSelectedTagItem($tag: HTMLElement): void;
|
|
612
|
+
removeSelectedInfo(data: import("./components/panel/types/components-selectMultiple").PopsPanelSelectMultipleDataOption<any>, triggerValueChangeCallBack?: boolean): void;
|
|
613
|
+
showInputWrapper(): void;
|
|
614
|
+
hideInputWrapper(): void;
|
|
615
|
+
showPlaceHolderWrapper(): void;
|
|
616
|
+
hidePlaceHolderWrapper(): void;
|
|
617
|
+
setSectionIsNear(): void;
|
|
618
|
+
removeSectionIsNear(): void;
|
|
619
|
+
disable(): void;
|
|
620
|
+
isDisabled(): boolean;
|
|
621
|
+
cancleDisable(): void;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
createSectionContainerItem_button(viewConfig: import("./components/panel/types/components-button").PopsPanelButtonConfig): {
|
|
625
|
+
$el: HTMLLIElement;
|
|
626
|
+
handler: {
|
|
627
|
+
[Symbol.toStringTag]: string;
|
|
628
|
+
$ele: {
|
|
629
|
+
panelButton: HTMLDivElement;
|
|
630
|
+
button: HTMLDivElement;
|
|
631
|
+
icon: HTMLDivElement;
|
|
632
|
+
spanText: HTMLDivElement;
|
|
633
|
+
};
|
|
634
|
+
$data: {};
|
|
635
|
+
init(): void;
|
|
636
|
+
initButton(): void;
|
|
637
|
+
disable(): void;
|
|
638
|
+
notDisable(): void;
|
|
639
|
+
hideIcon(): void;
|
|
640
|
+
showIcon(): void;
|
|
641
|
+
setIconSVG(svgHTML: string): void;
|
|
642
|
+
setIconLoadingStatus(status: any): void;
|
|
643
|
+
setHasIcon(value: any): void;
|
|
644
|
+
setButtonType(typeValue: string): void;
|
|
645
|
+
setIconRight(): void;
|
|
646
|
+
setIconLeft(): void;
|
|
647
|
+
setButtonText(text: string): void;
|
|
648
|
+
onButtonClick(): void;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
createSectionContainerItem_deepMenu(viewConfig: import("./components/panel/types/components-deepMenu").PopsPanelDeepViewConfig): {
|
|
652
|
+
$el: HTMLLIElement;
|
|
653
|
+
handler: {
|
|
654
|
+
[Symbol.toStringTag]: string;
|
|
655
|
+
$ele: {
|
|
656
|
+
readonly parentSection: HTMLElement;
|
|
657
|
+
};
|
|
658
|
+
init(): void;
|
|
659
|
+
initContainerItem($container: HTMLElement, formItemConfig: import("./components/panel/types").PopsPanelViewConfig | import("./components/panel/types/components-container").PopsPanelContainerConfig): void;
|
|
660
|
+
gotoDeepMenu(event: Event, liElement: HTMLLIElement): Promise<void>;
|
|
661
|
+
onLiClick(): void;
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
createSectionContainerItem_own(viewConfig: import("./components/panel/types/components-own").PopsPanelOwnConfig): {
|
|
665
|
+
$el: HTMLLIElement;
|
|
666
|
+
};
|
|
667
|
+
createSectionContainerItem(viewConfig: import("./components/panel/types").PopsPanelViewConfig): {
|
|
668
|
+
$el: HTMLLIElement;
|
|
669
|
+
} | undefined;
|
|
279
670
|
createSectionContainerItem_forms(viewConfig: import("./components/panel/types").PopsPanelContentConfig | import("./components/panel/types/components-container").PopsPanelContainerConfig): void;
|
|
280
671
|
triggerRenderRightContainer($container: HTMLElement): void;
|
|
281
672
|
uListContainerAddItem(viewConfig: import("./components/panel/types").PopsPanelViewConfig, containerOptions: Omit<import("./components/panel/types/components-common").PopsPanelRightAsideContainerConfig, "target">): void;
|
|
282
|
-
|
|
673
|
+
onAsideItemClick($asideItem: HTMLElement, asideConfig: import("./components/panel/types").PopsPanelContentConfig): void;
|
|
283
674
|
};
|
|
284
675
|
};
|
|
285
676
|
init(): void;
|
|
@@ -407,17 +798,17 @@ declare class Pops {
|
|
|
407
798
|
panel: (config: PopsPanelConfig) => {
|
|
408
799
|
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;
|
|
409
800
|
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;
|
|
801
|
+
mode: import("./types/main").PopsType;
|
|
410
802
|
close: () => Promise<void>;
|
|
411
803
|
hide: () => Promise<void>;
|
|
412
804
|
show: () => Promise<void>;
|
|
805
|
+
guid: string;
|
|
413
806
|
$shadowContainer: HTMLDivElement;
|
|
414
807
|
$shadowRoot: ShadowRoot | HTMLElement;
|
|
415
808
|
$el: HTMLDivElement;
|
|
416
809
|
$anim: HTMLDivElement;
|
|
417
810
|
$pops: HTMLDivElement;
|
|
418
811
|
$mask?: HTMLDivElement | undefined;
|
|
419
|
-
mode: import("./types/main").PopsType;
|
|
420
|
-
guid: string;
|
|
421
812
|
};
|
|
422
813
|
/**
|
|
423
814
|
* 右键菜单
|
|
@@ -521,9 +912,9 @@ declare class Pops {
|
|
|
521
912
|
getItemDataValue(data: import("./components/searchSuggestion/types/index").PopsSearchSuggestionData<T>): import("./components/searchSuggestion/types/index").PopsSearchSuggestionData<T>;
|
|
522
913
|
createSearchItemLiElement(dataItem: import("./components/searchSuggestion/types/index").PopsSearchSuggestionData<T>, dateItemIndex: number): HTMLLIElement;
|
|
523
914
|
setSearchItemClickEvent($searchItem: HTMLLIElement): void;
|
|
524
|
-
setSearchItemSelectEvent(
|
|
915
|
+
setSearchItemSelectEvent($li: HTMLLIElement): void;
|
|
525
916
|
setInputChangeEvent(option?: AddEventListenerOptions): void;
|
|
526
|
-
removeInputChangeEvent(
|
|
917
|
+
removeInputChangeEvent(): void;
|
|
527
918
|
showEvent(): void;
|
|
528
919
|
setShowEvent(option?: AddEventListenerOptions): void;
|
|
529
920
|
removeShowEvent(option?: AddEventListenerOptions): void;
|
|
@@ -27,8 +27,10 @@ export declare const PopsCSS: {
|
|
|
27
27
|
drawerCSS: string;
|
|
28
28
|
/** pops.folder */
|
|
29
29
|
folderCSS: string;
|
|
30
|
-
/** pops.
|
|
30
|
+
/** pops.panel */
|
|
31
31
|
panelCSS: string;
|
|
32
32
|
/** pops.rightClickMenu */
|
|
33
33
|
rightClickMenu: string;
|
|
34
|
+
/** pops.panel的select组件 */
|
|
35
|
+
panelComponents_Select: string;
|
|
34
36
|
};
|
|
@@ -3,12 +3,12 @@ export declare const PopsIcon: {
|
|
|
3
3
|
loading: string;
|
|
4
4
|
min: string;
|
|
5
5
|
max: string;
|
|
6
|
+
search: string;
|
|
6
7
|
mise: string;
|
|
7
8
|
close: string;
|
|
8
9
|
edit: string;
|
|
9
10
|
share: string;
|
|
10
11
|
delete: string;
|
|
11
|
-
search: string;
|
|
12
12
|
upload: string;
|
|
13
13
|
next: string;
|
|
14
14
|
prev: string;
|