dasar-ui 2.3.0 → 2.4.1
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 +1 -1
- package/fesm2022/dasar-ui.mjs +3079 -784
- package/fesm2022/dasar-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/theme.scss +106 -106
- package/types/dasar-ui.d.ts +771 -2
package/types/dasar-ui.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { DasarListConfig as DasarListConfig$1, DasarListItemConfig as DasarListI
|
|
|
7
7
|
import { DasarPaginationConfig as DasarPaginationConfig$1 } from "@components/dasar-pagination/dasar-pagination";
|
|
8
8
|
import { DasarSwitchConfig as DasarSwitchConfig$1 } from "@components/dasar-switch/dasar-switch";
|
|
9
9
|
import { DasarSkeletonConfig as DasarSkeletonConfig$1 } from "@components/dasar-skeleton/dasar-skeleton";
|
|
10
|
-
import { DasarComponentConfig as DasarComponentConfig$1, DasarThemeAlert as DasarThemeAlert$1, DasarThemeButton as DasarThemeButton$1, DasarThemeButtonGroup as DasarThemeButtonGroup$1, DasarThemeCalendar as DasarThemeCalendar$1, DasarThemeCard as DasarThemeCard$1, DasarThemeCheckbox as DasarThemeCheckbox$1, DasarThemeChip as DasarThemeChip$1, DasarThemeCommon as DasarThemeCommon$1, DasarThemeConfig as DasarThemeConfig$1, DasarThemeDatepicker as DasarThemeDatepicker$1, DasarThemeDivider as DasarThemeDivider$1, DasarThemeInput as DasarThemeInput$1, DasarThemeMenu as DasarThemeMenu$1, DasarThemeModal as DasarThemeModal$1, DasarThemeMode as DasarThemeMode$1, DasarThemeOverlay as DasarThemeOverlay$1, DasarThemeRadio as DasarThemeRadio$1, DasarThemeSelect as DasarThemeSelect$1, DasarThemeSkeleton as DasarThemeSkeleton$1, DasarThemeTabs as DasarThemeTabs$1 } from "@models/theme.model";
|
|
10
|
+
import { DasarComponentConfig as DasarComponentConfig$1, DasarThemeAlert as DasarThemeAlert$1, DasarThemeButton as DasarThemeButton$1, DasarThemeButtonGroup as DasarThemeButtonGroup$1, DasarThemeCalendar as DasarThemeCalendar$1, DasarThemeCard as DasarThemeCard$1, DasarThemeCheckbox as DasarThemeCheckbox$1, DasarThemeChip as DasarThemeChip$1, DasarThemeCommon as DasarThemeCommon$1, DasarThemeConfig as DasarThemeConfig$1, DasarThemeDatepicker as DasarThemeDatepicker$1, DasarThemeDivider as DasarThemeDivider$1, DasarThemeDrawer as DasarThemeDrawer$1, DasarThemeInput as DasarThemeInput$1, DasarThemeMenu as DasarThemeMenu$1, DasarThemeModal as DasarThemeModal$1, DasarThemeMode as DasarThemeMode$1, DasarThemeOverlay as DasarThemeOverlay$1, DasarThemeRadio as DasarThemeRadio$1, DasarThemeSelect as DasarThemeSelect$1, DasarThemeSkeleton as DasarThemeSkeleton$1, DasarThemeTabs as DasarThemeTabs$1, DasarThemeTree as DasarThemeTree$1 } from "@models/theme.model";
|
|
11
11
|
import { Observable } from "rxjs";
|
|
12
12
|
type ClassType = string | string[] | Set<string> | {
|
|
13
13
|
[klass: string]: any;
|
|
@@ -533,6 +533,11 @@ export interface DasarPlacementTarget {
|
|
|
533
533
|
getBoundingClientRect(): DasarPlacementRect;
|
|
534
534
|
}
|
|
535
535
|
export declare function computeSmartPlacement(trigger: DasarPlacementTarget, panel: DasarPlacementTarget, preferred: DasarPanelPlacement, margin?: number): DasarPanelPlacement;
|
|
536
|
+
/**
|
|
537
|
+
* Gives a fixed panel the width of its trigger. Do it before measuring the panel, because a fixed
|
|
538
|
+
* panel is as wide as the viewport until it has a width.
|
|
539
|
+
*/
|
|
540
|
+
export declare function matchTriggerWidth(trigger: HTMLElement, panel: HTMLElement): void;
|
|
536
541
|
/**
|
|
537
542
|
* Positions a panel with `position: fixed` using viewport coordinates, so it is not
|
|
538
543
|
* clipped by ancestors with `overflow: hidden` (e.g. a card with `hide-overflow`).
|
|
@@ -547,6 +552,13 @@ export declare function applyFixedPanelPosition(trigger: HTMLElement, panel: HTM
|
|
|
547
552
|
* until the owning component is destroyed.
|
|
548
553
|
*/
|
|
549
554
|
export declare function listenViewportChanges(callback: () => void, destroyRef: DestroyRef): void;
|
|
555
|
+
/**
|
|
556
|
+
* Keeps a fixed panel positioned while it exists. The first update runs in a microtask, right
|
|
557
|
+
* after the render that created the panel, so it never depends on a timer racing change detection.
|
|
558
|
+
* It repeats when the panel changes size and once more on the next frame if the panel is still
|
|
559
|
+
* hidden. Returns a function that stops watching.
|
|
560
|
+
*/
|
|
561
|
+
export declare function watchPanel(panel: HTMLElement, update: () => void): () => void;
|
|
550
562
|
export type DasarSelectSizeType = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
551
563
|
export type DasarSelectPlacementType = DasarPanelPlacement;
|
|
552
564
|
export type DasarSelectChipSizeType = Extract<ScaleAttributeType$1, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
|
|
@@ -632,6 +644,9 @@ export declare class DasarSelect implements ControlValueAccessor {
|
|
|
632
644
|
searchInput?: ElementRef<HTMLInputElement>;
|
|
633
645
|
triggerEl?: ElementRef<HTMLElement>;
|
|
634
646
|
panelEl?: ElementRef<HTMLElement>;
|
|
647
|
+
private stopWatchingPanel;
|
|
648
|
+
private readonly watchPanelCleanup;
|
|
649
|
+
set panelElRef(ref: ElementRef<HTMLElement> | undefined);
|
|
635
650
|
optionLoadingSlot?: DasarSelectOptionLoadingSlot;
|
|
636
651
|
optionEmptySlot?: DasarSelectOptionEmptySlot;
|
|
637
652
|
optionTemplate?: DasarSelectOptionTemplate;
|
|
@@ -908,6 +923,9 @@ export declare class DasarMenu {
|
|
|
908
923
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
909
924
|
triggerEl?: ElementRef<HTMLElement>;
|
|
910
925
|
panelEl?: ElementRef<HTMLElement>;
|
|
926
|
+
private stopWatchingPanel;
|
|
927
|
+
private readonly watchPanelCleanup;
|
|
928
|
+
set panelElRef(ref: ElementRef<HTMLElement> | undefined);
|
|
911
929
|
private _placement;
|
|
912
930
|
set placement(value: DasarMenuPlacementType);
|
|
913
931
|
get placement(): DasarMenuPlacementType;
|
|
@@ -2355,6 +2373,9 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2355
2373
|
prefixSlot?: DasarDatepickerPrefixSlot;
|
|
2356
2374
|
triggerEl?: ElementRef<HTMLElement>;
|
|
2357
2375
|
dropdownEl?: ElementRef<HTMLElement>;
|
|
2376
|
+
private stopWatchingPanel;
|
|
2377
|
+
private readonly watchPanelCleanup;
|
|
2378
|
+
set dropdownElRef(ref: ElementRef<HTMLElement> | undefined);
|
|
2358
2379
|
displayFormat: string;
|
|
2359
2380
|
valueFormat: string;
|
|
2360
2381
|
locale: string;
|
|
@@ -3327,6 +3348,7 @@ export interface DasarCheckboxConfig {
|
|
|
3327
3348
|
error?: boolean;
|
|
3328
3349
|
hint?: string;
|
|
3329
3350
|
label?: string;
|
|
3351
|
+
indeterminate?: boolean;
|
|
3330
3352
|
checkedValue?: any;
|
|
3331
3353
|
uncheckedValue?: any;
|
|
3332
3354
|
containerClass?: ClassType;
|
|
@@ -3354,6 +3376,7 @@ export declare class DasarCheckbox implements ControlValueAccessor {
|
|
|
3354
3376
|
error: NonNullable<boolean | undefined>;
|
|
3355
3377
|
set disabled(value: boolean);
|
|
3356
3378
|
get disabled(): boolean;
|
|
3379
|
+
indeterminate: NonNullable<boolean | undefined>;
|
|
3357
3380
|
checkedValue: any;
|
|
3358
3381
|
uncheckedValue: any;
|
|
3359
3382
|
set value(val: any);
|
|
@@ -3406,6 +3429,10 @@ export declare class DasarCheckbox implements ControlValueAccessor {
|
|
|
3406
3429
|
"alias": "disabled";
|
|
3407
3430
|
"required": false;
|
|
3408
3431
|
};
|
|
3432
|
+
"indeterminate": {
|
|
3433
|
+
"alias": "indeterminate";
|
|
3434
|
+
"required": false;
|
|
3435
|
+
};
|
|
3409
3436
|
"checkedValue": {
|
|
3410
3437
|
"alias": "checked-value";
|
|
3411
3438
|
"required": false;
|
|
@@ -3456,6 +3483,7 @@ export declare class DasarCheckbox implements ControlValueAccessor {
|
|
|
3456
3483
|
}, never, ["*"], true, never>;
|
|
3457
3484
|
static ngAcceptInputType_error: unknown;
|
|
3458
3485
|
static ngAcceptInputType_disabled: unknown;
|
|
3486
|
+
static ngAcceptInputType_indeterminate: unknown;
|
|
3459
3487
|
}
|
|
3460
3488
|
export declare const DasarCheckboxComponent: readonly [typeof DasarCheckbox];
|
|
3461
3489
|
export type DasarSwitchSizeType = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
@@ -4495,6 +4523,682 @@ export declare class DasarModal implements OnChanges, OnDestroy {
|
|
|
4495
4523
|
static ngAcceptInputType_closeOnEscape: unknown;
|
|
4496
4524
|
}
|
|
4497
4525
|
export declare const DasarModalComponent: readonly [typeof DasarModalHeaderSlot, typeof DasarModalCloseSlot, typeof DasarModalActionSlot, typeof DasarModal];
|
|
4526
|
+
export type DasarDrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
4527
|
+
export type DasarDrawerLength = string | number;
|
|
4528
|
+
export interface DasarDrawerConfig {
|
|
4529
|
+
placement?: DasarDrawerPlacement;
|
|
4530
|
+
label?: string;
|
|
4531
|
+
closable?: boolean;
|
|
4532
|
+
resizable?: boolean;
|
|
4533
|
+
width?: DasarDrawerLength;
|
|
4534
|
+
height?: DasarDrawerLength;
|
|
4535
|
+
minWidth?: DasarDrawerLength;
|
|
4536
|
+
maxWidth?: DasarDrawerLength;
|
|
4537
|
+
minHeight?: DasarDrawerLength;
|
|
4538
|
+
maxHeight?: DasarDrawerLength;
|
|
4539
|
+
zIndex?: number;
|
|
4540
|
+
closeOnOverlay?: boolean;
|
|
4541
|
+
closeOnEscape?: boolean;
|
|
4542
|
+
overlayBlur?: string;
|
|
4543
|
+
overlayBackground?: string;
|
|
4544
|
+
headerFluid?: boolean;
|
|
4545
|
+
bodyFluid?: boolean;
|
|
4546
|
+
actionFluid?: boolean;
|
|
4547
|
+
containerStyle?: StyleType;
|
|
4548
|
+
headerStyle?: StyleType;
|
|
4549
|
+
bodyStyle?: StyleType;
|
|
4550
|
+
actionStyle?: StyleType;
|
|
4551
|
+
containerClass?: ClassType;
|
|
4552
|
+
headerClass?: ClassType;
|
|
4553
|
+
bodyClass?: ClassType;
|
|
4554
|
+
actionClass?: ClassType;
|
|
4555
|
+
}
|
|
4556
|
+
export declare class DasarDrawerHeaderSlot {
|
|
4557
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerHeaderSlot, never>;
|
|
4558
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerHeaderSlot, "[header-slot]", never, {}, {}, never, never, true, never>;
|
|
4559
|
+
}
|
|
4560
|
+
export declare class DasarDrawerCloseableSlot {
|
|
4561
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerCloseableSlot, never>;
|
|
4562
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerCloseableSlot, "[closeable-slot]", never, {}, {}, never, never, true, never>;
|
|
4563
|
+
}
|
|
4564
|
+
export declare class DasarDrawerActionSlot {
|
|
4565
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerActionSlot, never>;
|
|
4566
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerActionSlot, "[action-slot]", never, {}, {}, never, never, true, never>;
|
|
4567
|
+
}
|
|
4568
|
+
export declare class DasarDrawer implements ControlValueAccessor, OnDestroy {
|
|
4569
|
+
providedHeader?: DasarDrawerHeaderSlot;
|
|
4570
|
+
providedCloseable?: DasarDrawerCloseableSlot;
|
|
4571
|
+
providedAction?: DasarDrawerActionSlot;
|
|
4572
|
+
private panelRef?;
|
|
4573
|
+
private themeProvider;
|
|
4574
|
+
private themeService;
|
|
4575
|
+
private platformId;
|
|
4576
|
+
private document;
|
|
4577
|
+
private injector;
|
|
4578
|
+
private animationTimer;
|
|
4579
|
+
private previousOverflow;
|
|
4580
|
+
private previousFocus;
|
|
4581
|
+
private entered;
|
|
4582
|
+
private resizeStart;
|
|
4583
|
+
private _show;
|
|
4584
|
+
protected readonly rendered: import("@angular/core").WritableSignal<boolean>;
|
|
4585
|
+
protected readonly leaving: import("@angular/core").WritableSignal<boolean>;
|
|
4586
|
+
protected readonly resizing: import("@angular/core").WritableSignal<boolean>;
|
|
4587
|
+
protected readonly resizedWidth: import("@angular/core").WritableSignal<number | null>;
|
|
4588
|
+
protected readonly resizedHeight: import("@angular/core").WritableSignal<number | null>;
|
|
4589
|
+
placement: NonNullable<DasarDrawerPlacement | undefined>;
|
|
4590
|
+
label: string | undefined;
|
|
4591
|
+
closable: NonNullable<boolean | undefined>;
|
|
4592
|
+
resizable: NonNullable<boolean | undefined>;
|
|
4593
|
+
set width(value: DasarDrawerLength);
|
|
4594
|
+
get width(): DasarDrawerLength;
|
|
4595
|
+
private _width;
|
|
4596
|
+
set height(value: DasarDrawerLength);
|
|
4597
|
+
get height(): DasarDrawerLength;
|
|
4598
|
+
private _height;
|
|
4599
|
+
minWidth: NonNullable<DasarDrawerLength | undefined>;
|
|
4600
|
+
maxWidth: NonNullable<DasarDrawerLength | undefined>;
|
|
4601
|
+
minHeight: NonNullable<DasarDrawerLength | undefined>;
|
|
4602
|
+
maxHeight: NonNullable<DasarDrawerLength | undefined>;
|
|
4603
|
+
zIndex: number;
|
|
4604
|
+
closeOnOverlay: NonNullable<boolean | undefined>;
|
|
4605
|
+
closeOnEscape: NonNullable<boolean | undefined>;
|
|
4606
|
+
overlayBlur: string | null;
|
|
4607
|
+
overlayBackground: string | null;
|
|
4608
|
+
headerFluid: NonNullable<boolean | undefined>;
|
|
4609
|
+
bodyFluid: NonNullable<boolean | undefined>;
|
|
4610
|
+
actionFluid: NonNullable<boolean | undefined>;
|
|
4611
|
+
containerStyle: NonNullable<StyleType | undefined> | null;
|
|
4612
|
+
headerStyle: NonNullable<StyleType | undefined> | null;
|
|
4613
|
+
bodyStyle: NonNullable<StyleType | undefined> | null;
|
|
4614
|
+
actionStyle: NonNullable<StyleType | undefined> | null;
|
|
4615
|
+
containerClass: NonNullable<ClassType> | null;
|
|
4616
|
+
headerClass: NonNullable<ClassType> | null;
|
|
4617
|
+
bodyClass: NonNullable<ClassType> | null;
|
|
4618
|
+
actionClass: NonNullable<ClassType> | null;
|
|
4619
|
+
set show(value: boolean);
|
|
4620
|
+
get show(): boolean;
|
|
4621
|
+
showChange: EventEmitter<boolean>;
|
|
4622
|
+
onUpdateValue: EventEmitter<boolean>;
|
|
4623
|
+
onWidthUpdate: EventEmitter<number>;
|
|
4624
|
+
onHeightUpdate: EventEmitter<number>;
|
|
4625
|
+
onAfterEnter: EventEmitter<void>;
|
|
4626
|
+
onAfterLeave: EventEmitter<void>;
|
|
4627
|
+
readonly baseClass = true;
|
|
4628
|
+
get isOpen(): boolean;
|
|
4629
|
+
private onChange;
|
|
4630
|
+
private onTouched;
|
|
4631
|
+
get hasHeader(): boolean;
|
|
4632
|
+
get hasCloseable(): boolean;
|
|
4633
|
+
get hasAction(): boolean;
|
|
4634
|
+
get isHorizontal(): boolean;
|
|
4635
|
+
get overlayClasses(): Record<string, boolean>;
|
|
4636
|
+
get panelWidth(): string | null;
|
|
4637
|
+
get panelHeight(): string | null;
|
|
4638
|
+
get panelMinWidth(): string | null;
|
|
4639
|
+
get panelMaxWidth(): string | null;
|
|
4640
|
+
get panelMinHeight(): string | null;
|
|
4641
|
+
get panelMaxHeight(): string | null;
|
|
4642
|
+
writeValue(value: boolean | null): void;
|
|
4643
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
4644
|
+
registerOnTouched(fn: () => void): void;
|
|
4645
|
+
close(): void;
|
|
4646
|
+
handleOverlayClick(): void;
|
|
4647
|
+
handleEscape(): void;
|
|
4648
|
+
onAnimationEnd(event: AnimationEvent): void;
|
|
4649
|
+
onResizeStart(event: PointerEvent): void;
|
|
4650
|
+
onResizeMove(event: PointerEvent): void;
|
|
4651
|
+
onResizeEnd(event: PointerEvent): void;
|
|
4652
|
+
onResizeKeydown(event: KeyboardEvent): void;
|
|
4653
|
+
ngOnDestroy(): void;
|
|
4654
|
+
private setSize;
|
|
4655
|
+
private emitSize;
|
|
4656
|
+
private viewportSize;
|
|
4657
|
+
private toPixels;
|
|
4658
|
+
private applyShow;
|
|
4659
|
+
private finishEnter;
|
|
4660
|
+
private finishLeave;
|
|
4661
|
+
private clearTimer;
|
|
4662
|
+
private lockScroll;
|
|
4663
|
+
private unlockScroll;
|
|
4664
|
+
private rememberFocus;
|
|
4665
|
+
private restoreFocus;
|
|
4666
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawer, never>;
|
|
4667
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DasarDrawer, "dasar-drawer", never, {
|
|
4668
|
+
"placement": {
|
|
4669
|
+
"alias": "placement";
|
|
4670
|
+
"required": false;
|
|
4671
|
+
};
|
|
4672
|
+
"label": {
|
|
4673
|
+
"alias": "label";
|
|
4674
|
+
"required": false;
|
|
4675
|
+
};
|
|
4676
|
+
"closable": {
|
|
4677
|
+
"alias": "closable";
|
|
4678
|
+
"required": false;
|
|
4679
|
+
};
|
|
4680
|
+
"resizable": {
|
|
4681
|
+
"alias": "resizable";
|
|
4682
|
+
"required": false;
|
|
4683
|
+
};
|
|
4684
|
+
"width": {
|
|
4685
|
+
"alias": "width";
|
|
4686
|
+
"required": false;
|
|
4687
|
+
};
|
|
4688
|
+
"height": {
|
|
4689
|
+
"alias": "height";
|
|
4690
|
+
"required": false;
|
|
4691
|
+
};
|
|
4692
|
+
"minWidth": {
|
|
4693
|
+
"alias": "min-width";
|
|
4694
|
+
"required": false;
|
|
4695
|
+
};
|
|
4696
|
+
"maxWidth": {
|
|
4697
|
+
"alias": "max-width";
|
|
4698
|
+
"required": false;
|
|
4699
|
+
};
|
|
4700
|
+
"minHeight": {
|
|
4701
|
+
"alias": "min-height";
|
|
4702
|
+
"required": false;
|
|
4703
|
+
};
|
|
4704
|
+
"maxHeight": {
|
|
4705
|
+
"alias": "max-height";
|
|
4706
|
+
"required": false;
|
|
4707
|
+
};
|
|
4708
|
+
"zIndex": {
|
|
4709
|
+
"alias": "z-index";
|
|
4710
|
+
"required": false;
|
|
4711
|
+
};
|
|
4712
|
+
"closeOnOverlay": {
|
|
4713
|
+
"alias": "close-on-overlay";
|
|
4714
|
+
"required": false;
|
|
4715
|
+
};
|
|
4716
|
+
"closeOnEscape": {
|
|
4717
|
+
"alias": "close-on-escape";
|
|
4718
|
+
"required": false;
|
|
4719
|
+
};
|
|
4720
|
+
"overlayBlur": {
|
|
4721
|
+
"alias": "overlay-blur";
|
|
4722
|
+
"required": false;
|
|
4723
|
+
};
|
|
4724
|
+
"overlayBackground": {
|
|
4725
|
+
"alias": "overlay-background";
|
|
4726
|
+
"required": false;
|
|
4727
|
+
};
|
|
4728
|
+
"headerFluid": {
|
|
4729
|
+
"alias": "header-fluid";
|
|
4730
|
+
"required": false;
|
|
4731
|
+
};
|
|
4732
|
+
"bodyFluid": {
|
|
4733
|
+
"alias": "body-fluid";
|
|
4734
|
+
"required": false;
|
|
4735
|
+
};
|
|
4736
|
+
"actionFluid": {
|
|
4737
|
+
"alias": "action-fluid";
|
|
4738
|
+
"required": false;
|
|
4739
|
+
};
|
|
4740
|
+
"containerStyle": {
|
|
4741
|
+
"alias": "container-style";
|
|
4742
|
+
"required": false;
|
|
4743
|
+
};
|
|
4744
|
+
"headerStyle": {
|
|
4745
|
+
"alias": "header-style";
|
|
4746
|
+
"required": false;
|
|
4747
|
+
};
|
|
4748
|
+
"bodyStyle": {
|
|
4749
|
+
"alias": "body-style";
|
|
4750
|
+
"required": false;
|
|
4751
|
+
};
|
|
4752
|
+
"actionStyle": {
|
|
4753
|
+
"alias": "action-style";
|
|
4754
|
+
"required": false;
|
|
4755
|
+
};
|
|
4756
|
+
"containerClass": {
|
|
4757
|
+
"alias": "container-class";
|
|
4758
|
+
"required": false;
|
|
4759
|
+
};
|
|
4760
|
+
"headerClass": {
|
|
4761
|
+
"alias": "header-class";
|
|
4762
|
+
"required": false;
|
|
4763
|
+
};
|
|
4764
|
+
"bodyClass": {
|
|
4765
|
+
"alias": "body-class";
|
|
4766
|
+
"required": false;
|
|
4767
|
+
};
|
|
4768
|
+
"actionClass": {
|
|
4769
|
+
"alias": "action-class";
|
|
4770
|
+
"required": false;
|
|
4771
|
+
};
|
|
4772
|
+
"show": {
|
|
4773
|
+
"alias": "show";
|
|
4774
|
+
"required": false;
|
|
4775
|
+
};
|
|
4776
|
+
}, {
|
|
4777
|
+
"showChange": "showChange";
|
|
4778
|
+
"onUpdateValue": "onUpdateValue";
|
|
4779
|
+
"onWidthUpdate": "onWidthUpdate";
|
|
4780
|
+
"onHeightUpdate": "onHeightUpdate";
|
|
4781
|
+
"onAfterEnter": "onAfterEnter";
|
|
4782
|
+
"onAfterLeave": "onAfterLeave";
|
|
4783
|
+
}, ["providedHeader", "providedCloseable", "providedAction"], ["[header-slot]", "[closeable-slot]", "*", "[action-slot]"], true, never>;
|
|
4784
|
+
static ngAcceptInputType_closable: unknown;
|
|
4785
|
+
static ngAcceptInputType_resizable: unknown;
|
|
4786
|
+
static ngAcceptInputType_closeOnOverlay: unknown;
|
|
4787
|
+
static ngAcceptInputType_closeOnEscape: unknown;
|
|
4788
|
+
static ngAcceptInputType_headerFluid: unknown;
|
|
4789
|
+
static ngAcceptInputType_bodyFluid: unknown;
|
|
4790
|
+
static ngAcceptInputType_actionFluid: unknown;
|
|
4791
|
+
static ngAcceptInputType_show: unknown;
|
|
4792
|
+
}
|
|
4793
|
+
export declare const DasarDrawerComponent: readonly [typeof DasarDrawerHeaderSlot, typeof DasarDrawerCloseableSlot, typeof DasarDrawerActionSlot, typeof DasarDrawer];
|
|
4794
|
+
type DasarTreeKey = string | number;
|
|
4795
|
+
type DasarTreeDropPosition = 'before' | 'inside' | 'after';
|
|
4796
|
+
type DasarTreeCheckState = 'checked' | 'unchecked' | 'indeterminate';
|
|
4797
|
+
interface DasarTreeItem {
|
|
4798
|
+
key: DasarTreeKey;
|
|
4799
|
+
label: string;
|
|
4800
|
+
children?: DasarTreeItem[];
|
|
4801
|
+
disabled?: boolean;
|
|
4802
|
+
iconName?: string;
|
|
4803
|
+
data?: unknown;
|
|
4804
|
+
}
|
|
4805
|
+
interface DasarTreeMeta {
|
|
4806
|
+
item: DasarTreeItem;
|
|
4807
|
+
parentKey: DasarTreeKey | null;
|
|
4808
|
+
level: number;
|
|
4809
|
+
}
|
|
4810
|
+
declare const hasChildren: (item: DasarTreeItem) => boolean;
|
|
4811
|
+
declare function buildIndex(items: DasarTreeItem[]): Map<DasarTreeKey, DasarTreeMeta>;
|
|
4812
|
+
declare function collectKeys(items: DasarTreeItem[]): DasarTreeKey[];
|
|
4813
|
+
/** Keys of the nodes that have children, used for expand all. */
|
|
4814
|
+
declare function collectParentKeys(items: DasarTreeItem[]): DasarTreeKey[];
|
|
4815
|
+
declare function isDescendant(index: Map<DasarTreeKey, DasarTreeMeta>, ancestorKey: DasarTreeKey, key: DasarTreeKey): boolean;
|
|
4816
|
+
/** The node itself when it is a leaf, otherwise every leaf below it. */
|
|
4817
|
+
declare function leafKeysOf(item: DasarTreeItem): DasarTreeKey[];
|
|
4818
|
+
declare function checkStateOf(item: DasarTreeItem, leaves: ReadonlySet<DasarTreeKey>): DasarTreeCheckState;
|
|
4819
|
+
/** Turns a list of checked keys (leaves and/or parents) into the set of checked leaves. */
|
|
4820
|
+
declare function normalizeChecked(index: Map<DasarTreeKey, DasarTreeMeta>, keys: readonly DasarTreeKey[]): Set<DasarTreeKey>;
|
|
4821
|
+
declare function toggleChecked(index: Map<DasarTreeKey, DasarTreeMeta>, leaves: ReadonlySet<DasarTreeKey>, key: DasarTreeKey): Set<DasarTreeKey>;
|
|
4822
|
+
/** Keys of every node that is fully checked, in tree order (parents included). */
|
|
4823
|
+
declare function checkedKeysFrom(items: DasarTreeItem[], leaves: ReadonlySet<DasarTreeKey>): DasarTreeKey[];
|
|
4824
|
+
/** Keys that match the query plus all of their ancestors, so matches stay reachable. */
|
|
4825
|
+
declare function filterTree(items: DasarTreeItem[], matches: (item: DasarTreeItem) => boolean): {
|
|
4826
|
+
visible: Set<DasarTreeKey>;
|
|
4827
|
+
parentsOfMatches: Set<DasarTreeKey>;
|
|
4828
|
+
};
|
|
4829
|
+
/** Moves a node next to or into another one without changing the input. */
|
|
4830
|
+
declare function moveItem(items: DasarTreeItem[], dragKey: DasarTreeKey, targetKey: DasarTreeKey, position: DasarTreeDropPosition): DasarTreeItem[] | null;
|
|
4831
|
+
export type DasarTreeType = 'file' | 'selectable' | 'multiple' | null;
|
|
4832
|
+
export type DasarTreeSize = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
4833
|
+
export type DasarTreeFilterMethod = (item: DasarTreeItem, query: string) => boolean;
|
|
4834
|
+
export interface DasarTreeConfig {
|
|
4835
|
+
type?: DasarTreeType;
|
|
4836
|
+
size?: DasarTreeSize;
|
|
4837
|
+
disabled?: boolean;
|
|
4838
|
+
label?: string;
|
|
4839
|
+
hint?: string;
|
|
4840
|
+
draggable?: boolean;
|
|
4841
|
+
showLine?: boolean;
|
|
4842
|
+
search?: boolean;
|
|
4843
|
+
searchPlaceholder?: string;
|
|
4844
|
+
selectable?: boolean;
|
|
4845
|
+
multiple?: boolean;
|
|
4846
|
+
defaultExpandAll?: boolean;
|
|
4847
|
+
containerClass?: ClassType;
|
|
4848
|
+
containerStyle?: StyleType;
|
|
4849
|
+
itemClass?: ClassType;
|
|
4850
|
+
itemStyle?: StyleType;
|
|
4851
|
+
hintClass?: ClassType;
|
|
4852
|
+
hintStyle?: StyleType;
|
|
4853
|
+
}
|
|
4854
|
+
export interface DasarTreeRow {
|
|
4855
|
+
item: DasarTreeItem;
|
|
4856
|
+
level: number;
|
|
4857
|
+
parentKey: DasarTreeKey | null;
|
|
4858
|
+
hasChildren: boolean;
|
|
4859
|
+
isFolder: boolean;
|
|
4860
|
+
expanded: boolean;
|
|
4861
|
+
isLast: boolean;
|
|
4862
|
+
/** One entry per indent column before the row; each carries a vertical guide line. */
|
|
4863
|
+
guides: boolean[];
|
|
4864
|
+
disabled: boolean;
|
|
4865
|
+
selected: boolean;
|
|
4866
|
+
checked: boolean;
|
|
4867
|
+
indeterminate: boolean;
|
|
4868
|
+
}
|
|
4869
|
+
export interface DasarTreeSlotContext {
|
|
4870
|
+
$implicit: DasarTreeItem;
|
|
4871
|
+
level: number;
|
|
4872
|
+
expanded: boolean;
|
|
4873
|
+
selected: boolean;
|
|
4874
|
+
checked: boolean;
|
|
4875
|
+
toggle: () => void;
|
|
4876
|
+
}
|
|
4877
|
+
export interface DasarTreeDragEvent {
|
|
4878
|
+
node: DasarTreeItem;
|
|
4879
|
+
dragNode: DasarTreeItem | null;
|
|
4880
|
+
position: DasarTreeDropPosition | null;
|
|
4881
|
+
event: DragEvent;
|
|
4882
|
+
}
|
|
4883
|
+
export interface DasarTreeDropEvent {
|
|
4884
|
+
dragNode: DasarTreeItem;
|
|
4885
|
+
dropNode: DasarTreeItem;
|
|
4886
|
+
position: DasarTreeDropPosition;
|
|
4887
|
+
items: DasarTreeItem[];
|
|
4888
|
+
event: DragEvent;
|
|
4889
|
+
}
|
|
4890
|
+
export declare class DasarTreeSearchSlot {
|
|
4891
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeSearchSlot, never>;
|
|
4892
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeSearchSlot, "[search-slot]", never, {}, {}, never, never, true, never>;
|
|
4893
|
+
}
|
|
4894
|
+
export declare class DasarTreeHintSlot {
|
|
4895
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeHintSlot, never>;
|
|
4896
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeHintSlot, "[hint-slot]", never, {}, {}, never, never, true, never>;
|
|
4897
|
+
}
|
|
4898
|
+
export declare class DasarTreeLabelSlot {
|
|
4899
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeLabelSlot, never>;
|
|
4900
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeLabelSlot, "[label-slot]", never, {}, {}, never, never, true, never>;
|
|
4901
|
+
}
|
|
4902
|
+
export declare class DasarTreeExtraHeaderSlot {
|
|
4903
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeExtraHeaderSlot, never>;
|
|
4904
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeExtraHeaderSlot, "[extra-header-slot]", never, {}, {}, never, never, true, never>;
|
|
4905
|
+
}
|
|
4906
|
+
export declare class DasarTreePrefixSlot {
|
|
4907
|
+
templateRef: TemplateRef<DasarTreeSlotContext>;
|
|
4908
|
+
constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
|
|
4909
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreePrefixSlot, never>;
|
|
4910
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreePrefixSlot, "[tree-prefix-slot]", never, {}, {}, never, never, true, never>;
|
|
4911
|
+
}
|
|
4912
|
+
export declare class DasarTreeSuffixSlot {
|
|
4913
|
+
templateRef: TemplateRef<DasarTreeSlotContext>;
|
|
4914
|
+
constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
|
|
4915
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeSuffixSlot, never>;
|
|
4916
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeSuffixSlot, "[tree-suffix-slot]", never, {}, {}, never, never, true, never>;
|
|
4917
|
+
}
|
|
4918
|
+
export declare class DasarTreeIconSlot {
|
|
4919
|
+
templateRef: TemplateRef<DasarTreeSlotContext>;
|
|
4920
|
+
constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
|
|
4921
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeIconSlot, never>;
|
|
4922
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeIconSlot, "[tree-icon-slot]", never, {}, {}, never, never, true, never>;
|
|
4923
|
+
}
|
|
4924
|
+
export declare class DasarTreeLeafSlot {
|
|
4925
|
+
templateRef: TemplateRef<DasarTreeSlotContext>;
|
|
4926
|
+
constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
|
|
4927
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeLeafSlot, never>;
|
|
4928
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeLeafSlot, "[tree-leaf-slot]", never, {}, {}, never, never, true, never>;
|
|
4929
|
+
}
|
|
4930
|
+
export declare class DasarTreeChildrenSlot {
|
|
4931
|
+
templateRef: TemplateRef<DasarTreeSlotContext>;
|
|
4932
|
+
key: DasarTreeKey | '';
|
|
4933
|
+
constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
|
|
4934
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeChildrenSlot, never>;
|
|
4935
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeChildrenSlot, "[tree-children-slot]", never, {
|
|
4936
|
+
"key": {
|
|
4937
|
+
"alias": "tree-children-slot";
|
|
4938
|
+
"required": false;
|
|
4939
|
+
};
|
|
4940
|
+
}, {}, never, never, true, never>;
|
|
4941
|
+
}
|
|
4942
|
+
export declare class DasarTree implements ControlValueAccessor, OnInit, OnChanges {
|
|
4943
|
+
providedSearch?: DasarTreeSearchSlot;
|
|
4944
|
+
providedHint?: DasarTreeHintSlot;
|
|
4945
|
+
providedLabel?: DasarTreeLabelSlot;
|
|
4946
|
+
providedExtraHeader?: DasarTreeExtraHeaderSlot;
|
|
4947
|
+
prefixSlot?: DasarTreePrefixSlot;
|
|
4948
|
+
suffixSlot?: DasarTreeSuffixSlot;
|
|
4949
|
+
iconSlot?: DasarTreeIconSlot;
|
|
4950
|
+
leafSlot?: DasarTreeLeafSlot;
|
|
4951
|
+
childrenSlots?: QueryList<DasarTreeChildrenSlot>;
|
|
4952
|
+
private rowEls?;
|
|
4953
|
+
private themeProvider;
|
|
4954
|
+
private themeService;
|
|
4955
|
+
private injector;
|
|
4956
|
+
readonly labelId: string;
|
|
4957
|
+
readonly hintId: string;
|
|
4958
|
+
private readonly itemsSig;
|
|
4959
|
+
private readonly expandedSig;
|
|
4960
|
+
private readonly selectedSig;
|
|
4961
|
+
private readonly leavesSig;
|
|
4962
|
+
private readonly querySig;
|
|
4963
|
+
private readonly disabledSig;
|
|
4964
|
+
private readonly filterFnSig;
|
|
4965
|
+
private expandedControlled;
|
|
4966
|
+
private defaultExpandApplied;
|
|
4967
|
+
private rawChecked;
|
|
4968
|
+
private rawValue;
|
|
4969
|
+
protected readonly focusedKey: import("@angular/core").WritableSignal<DasarTreeKey | null>;
|
|
4970
|
+
protected readonly dragKey: import("@angular/core").WritableSignal<DasarTreeKey | null>;
|
|
4971
|
+
protected readonly dropTarget: import("@angular/core").WritableSignal<{
|
|
4972
|
+
key: DasarTreeKey;
|
|
4973
|
+
position: DasarTreeDropPosition;
|
|
4974
|
+
} | null>;
|
|
4975
|
+
private readonly index;
|
|
4976
|
+
private readonly filter;
|
|
4977
|
+
protected readonly rows: import("@angular/core").Signal<DasarTreeRow[]>;
|
|
4978
|
+
type: NonNullable<DasarTreeType | undefined> | null;
|
|
4979
|
+
size: NonNullable<DasarTreeSize | undefined>;
|
|
4980
|
+
label: string;
|
|
4981
|
+
hint: string;
|
|
4982
|
+
set disabled(value: boolean);
|
|
4983
|
+
get disabled(): boolean;
|
|
4984
|
+
draggable: NonNullable<boolean | undefined>;
|
|
4985
|
+
showLine: NonNullable<boolean | undefined>;
|
|
4986
|
+
search: NonNullable<boolean | undefined>;
|
|
4987
|
+
searchPlaceholder: string;
|
|
4988
|
+
selectable: NonNullable<boolean | undefined>;
|
|
4989
|
+
multiple: NonNullable<boolean | undefined>;
|
|
4990
|
+
set defaultExpandAll(value: boolean);
|
|
4991
|
+
get defaultExpandAll(): boolean;
|
|
4992
|
+
private _defaultExpandAll;
|
|
4993
|
+
containerClass: NonNullable<ClassType> | null;
|
|
4994
|
+
containerStyle: NonNullable<StyleType | undefined> | null;
|
|
4995
|
+
itemClass: NonNullable<ClassType> | null;
|
|
4996
|
+
itemStyle: NonNullable<StyleType | undefined> | null;
|
|
4997
|
+
hintClass: NonNullable<ClassType> | null;
|
|
4998
|
+
hintStyle: NonNullable<StyleType | undefined> | null;
|
|
4999
|
+
set items(value: DasarTreeItem[] | null);
|
|
5000
|
+
get items(): DasarTreeItem[];
|
|
5001
|
+
set expandedKeys(keys: DasarTreeKey[] | null);
|
|
5002
|
+
get expandedKeys(): DasarTreeKey[];
|
|
5003
|
+
set selectedKeys(keys: DasarTreeKey[] | null);
|
|
5004
|
+
get selectedKeys(): DasarTreeKey[];
|
|
5005
|
+
set checkedKeys(keys: DasarTreeKey[] | null);
|
|
5006
|
+
get checkedKeys(): DasarTreeKey[];
|
|
5007
|
+
set filterMethod(fn: DasarTreeFilterMethod | null);
|
|
5008
|
+
set searchValue(value: string | null);
|
|
5009
|
+
get searchValue(): string;
|
|
5010
|
+
/** Selected key for selectable trees, checked keys for multiple trees. */
|
|
5011
|
+
set value(value: unknown);
|
|
5012
|
+
get value(): unknown;
|
|
5013
|
+
valueChange: EventEmitter<unknown>;
|
|
5014
|
+
itemsChange: EventEmitter<DasarTreeItem[]>;
|
|
5015
|
+
expandedKeysChange: EventEmitter<DasarTreeKey[]>;
|
|
5016
|
+
selectedKeysChange: EventEmitter<DasarTreeKey[]>;
|
|
5017
|
+
checkedKeysChange: EventEmitter<DasarTreeKey[]>;
|
|
5018
|
+
searchValueChange: EventEmitter<string>;
|
|
5019
|
+
onUpdateExpandedKeys: EventEmitter<DasarTreeKey[]>;
|
|
5020
|
+
onUpdateSelectedKeys: EventEmitter<DasarTreeKey[]>;
|
|
5021
|
+
onUpdateCheckedKeys: EventEmitter<DasarTreeKey[]>;
|
|
5022
|
+
onDragStart: EventEmitter<DasarTreeDragEvent>;
|
|
5023
|
+
onDragEnter: EventEmitter<DasarTreeDragEvent>;
|
|
5024
|
+
onDragLeave: EventEmitter<DasarTreeDragEvent>;
|
|
5025
|
+
onDrop: EventEmitter<DasarTreeDropEvent>;
|
|
5026
|
+
readonly baseClass = true;
|
|
5027
|
+
get hostDisabled(): boolean;
|
|
5028
|
+
private onChange;
|
|
5029
|
+
private onTouched;
|
|
5030
|
+
get isFile(): boolean;
|
|
5031
|
+
get isSelectable(): boolean;
|
|
5032
|
+
get isMultiple(): boolean;
|
|
5033
|
+
get hasSearchSlot(): boolean;
|
|
5034
|
+
get hasHintSlot(): boolean;
|
|
5035
|
+
get hasLabelSlot(): boolean;
|
|
5036
|
+
get hasExtraHeaderSlot(): boolean;
|
|
5037
|
+
get iconSize(): number;
|
|
5038
|
+
get isDisabled(): boolean;
|
|
5039
|
+
get isSearching(): boolean;
|
|
5040
|
+
get visibleRows(): DasarTreeRow[];
|
|
5041
|
+
ngOnInit(): void;
|
|
5042
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
5043
|
+
private applyDefaultExpand;
|
|
5044
|
+
get containerClasses(): Record<string, boolean>;
|
|
5045
|
+
rowClasses(row: DasarTreeRow): Record<string, boolean>;
|
|
5046
|
+
childrenSlotFor(key: DasarTreeKey): DasarTreeChildrenSlot | undefined;
|
|
5047
|
+
slotContext(row: DasarTreeRow): DasarTreeSlotContext;
|
|
5048
|
+
tabIndexFor(row: DasarTreeRow, position: number): number;
|
|
5049
|
+
get arrowSize(): number;
|
|
5050
|
+
nodeIcon(row: DasarTreeRow): string;
|
|
5051
|
+
writeValue(value: unknown): void;
|
|
5052
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
5053
|
+
registerOnTouched(fn: () => void): void;
|
|
5054
|
+
setDisabledState(isDisabled: boolean): void;
|
|
5055
|
+
private emitValue;
|
|
5056
|
+
onSearch(value: string): void;
|
|
5057
|
+
toggleExpand(row: DasarTreeRow, event?: Event): void;
|
|
5058
|
+
select(row: DasarTreeRow): void;
|
|
5059
|
+
toggleCheck(row: DasarTreeRow): void;
|
|
5060
|
+
activate(row: DasarTreeRow): void;
|
|
5061
|
+
onRowClick(row: DasarTreeRow): void;
|
|
5062
|
+
onTreeKeydown(event: KeyboardEvent): void;
|
|
5063
|
+
isDragAllowed(row: DasarTreeRow): boolean;
|
|
5064
|
+
onDragStartRow(row: DasarTreeRow, event: DragEvent): void;
|
|
5065
|
+
onDragEnterRow(row: DasarTreeRow, event: DragEvent): void;
|
|
5066
|
+
onDragOverRow(row: DasarTreeRow, event: DragEvent): void;
|
|
5067
|
+
onDragLeaveRow(row: DasarTreeRow, event: DragEvent): void;
|
|
5068
|
+
onDropRow(row: DasarTreeRow, event: DragEvent): void;
|
|
5069
|
+
onDragEndRow(): void;
|
|
5070
|
+
private dragNode;
|
|
5071
|
+
private clearDrag;
|
|
5072
|
+
/** Where a dragged node would land on this row, or null when the drop is not allowed. */
|
|
5073
|
+
private resolveDrop;
|
|
5074
|
+
private emitExpanded;
|
|
5075
|
+
private focusRow;
|
|
5076
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarTree, never>;
|
|
5077
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DasarTree, "dasar-tree", never, {
|
|
5078
|
+
"type": {
|
|
5079
|
+
"alias": "type";
|
|
5080
|
+
"required": false;
|
|
5081
|
+
};
|
|
5082
|
+
"size": {
|
|
5083
|
+
"alias": "size";
|
|
5084
|
+
"required": false;
|
|
5085
|
+
};
|
|
5086
|
+
"label": {
|
|
5087
|
+
"alias": "label";
|
|
5088
|
+
"required": false;
|
|
5089
|
+
};
|
|
5090
|
+
"hint": {
|
|
5091
|
+
"alias": "hint";
|
|
5092
|
+
"required": false;
|
|
5093
|
+
};
|
|
5094
|
+
"disabled": {
|
|
5095
|
+
"alias": "disabled";
|
|
5096
|
+
"required": false;
|
|
5097
|
+
};
|
|
5098
|
+
"draggable": {
|
|
5099
|
+
"alias": "draggable";
|
|
5100
|
+
"required": false;
|
|
5101
|
+
};
|
|
5102
|
+
"showLine": {
|
|
5103
|
+
"alias": "show-line";
|
|
5104
|
+
"required": false;
|
|
5105
|
+
};
|
|
5106
|
+
"search": {
|
|
5107
|
+
"alias": "search";
|
|
5108
|
+
"required": false;
|
|
5109
|
+
};
|
|
5110
|
+
"searchPlaceholder": {
|
|
5111
|
+
"alias": "search-placeholder";
|
|
5112
|
+
"required": false;
|
|
5113
|
+
};
|
|
5114
|
+
"selectable": {
|
|
5115
|
+
"alias": "selectable";
|
|
5116
|
+
"required": false;
|
|
5117
|
+
};
|
|
5118
|
+
"multiple": {
|
|
5119
|
+
"alias": "multiple";
|
|
5120
|
+
"required": false;
|
|
5121
|
+
};
|
|
5122
|
+
"defaultExpandAll": {
|
|
5123
|
+
"alias": "default-expand-all";
|
|
5124
|
+
"required": false;
|
|
5125
|
+
};
|
|
5126
|
+
"containerClass": {
|
|
5127
|
+
"alias": "container-class";
|
|
5128
|
+
"required": false;
|
|
5129
|
+
};
|
|
5130
|
+
"containerStyle": {
|
|
5131
|
+
"alias": "container-style";
|
|
5132
|
+
"required": false;
|
|
5133
|
+
};
|
|
5134
|
+
"itemClass": {
|
|
5135
|
+
"alias": "item-class";
|
|
5136
|
+
"required": false;
|
|
5137
|
+
};
|
|
5138
|
+
"itemStyle": {
|
|
5139
|
+
"alias": "item-style";
|
|
5140
|
+
"required": false;
|
|
5141
|
+
};
|
|
5142
|
+
"hintClass": {
|
|
5143
|
+
"alias": "hint-class";
|
|
5144
|
+
"required": false;
|
|
5145
|
+
};
|
|
5146
|
+
"hintStyle": {
|
|
5147
|
+
"alias": "hint-style";
|
|
5148
|
+
"required": false;
|
|
5149
|
+
};
|
|
5150
|
+
"items": {
|
|
5151
|
+
"alias": "items";
|
|
5152
|
+
"required": false;
|
|
5153
|
+
};
|
|
5154
|
+
"expandedKeys": {
|
|
5155
|
+
"alias": "expanded-keys";
|
|
5156
|
+
"required": false;
|
|
5157
|
+
};
|
|
5158
|
+
"selectedKeys": {
|
|
5159
|
+
"alias": "selected-keys";
|
|
5160
|
+
"required": false;
|
|
5161
|
+
};
|
|
5162
|
+
"checkedKeys": {
|
|
5163
|
+
"alias": "checked-keys";
|
|
5164
|
+
"required": false;
|
|
5165
|
+
};
|
|
5166
|
+
"filterMethod": {
|
|
5167
|
+
"alias": "filter-method";
|
|
5168
|
+
"required": false;
|
|
5169
|
+
};
|
|
5170
|
+
"searchValue": {
|
|
5171
|
+
"alias": "search-value";
|
|
5172
|
+
"required": false;
|
|
5173
|
+
};
|
|
5174
|
+
"value": {
|
|
5175
|
+
"alias": "value";
|
|
5176
|
+
"required": false;
|
|
5177
|
+
};
|
|
5178
|
+
}, {
|
|
5179
|
+
"valueChange": "valueChange";
|
|
5180
|
+
"itemsChange": "itemsChange";
|
|
5181
|
+
"expandedKeysChange": "expandedKeysChange";
|
|
5182
|
+
"selectedKeysChange": "selectedKeysChange";
|
|
5183
|
+
"checkedKeysChange": "checkedKeysChange";
|
|
5184
|
+
"searchValueChange": "searchValueChange";
|
|
5185
|
+
"onUpdateExpandedKeys": "onUpdateExpandedKeys";
|
|
5186
|
+
"onUpdateSelectedKeys": "onUpdateSelectedKeys";
|
|
5187
|
+
"onUpdateCheckedKeys": "onUpdateCheckedKeys";
|
|
5188
|
+
"onDragStart": "onDragStart";
|
|
5189
|
+
"onDragEnter": "onDragEnter";
|
|
5190
|
+
"onDragLeave": "onDragLeave";
|
|
5191
|
+
"onDrop": "onDrop";
|
|
5192
|
+
}, ["providedSearch", "providedHint", "providedLabel", "providedExtraHeader", "prefixSlot", "suffixSlot", "iconSlot", "leafSlot", "childrenSlots"], ["[label-slot]", "[extra-header-slot]", "[search-slot]", "[hint-slot]"], true, never>;
|
|
5193
|
+
static ngAcceptInputType_disabled: unknown;
|
|
5194
|
+
static ngAcceptInputType_draggable: unknown;
|
|
5195
|
+
static ngAcceptInputType_showLine: unknown;
|
|
5196
|
+
static ngAcceptInputType_search: unknown;
|
|
5197
|
+
static ngAcceptInputType_selectable: unknown;
|
|
5198
|
+
static ngAcceptInputType_multiple: unknown;
|
|
5199
|
+
static ngAcceptInputType_defaultExpandAll: unknown;
|
|
5200
|
+
}
|
|
5201
|
+
export declare const DasarTreeComponent: readonly [typeof DasarTreeSearchSlot, typeof DasarTreeHintSlot, typeof DasarTreeLabelSlot, typeof DasarTreeExtraHeaderSlot, typeof DasarTreePrefixSlot, typeof DasarTreeSuffixSlot, typeof DasarTreeIconSlot, typeof DasarTreeLeafSlot, typeof DasarTreeChildrenSlot, typeof DasarTree];
|
|
4498
5202
|
export interface DasarOverlayConfig {
|
|
4499
5203
|
blur?: string;
|
|
4500
5204
|
background?: string;
|
|
@@ -4791,6 +5495,9 @@ export interface DasarThemeCheckbox {
|
|
|
4791
5495
|
hintColor?: string;
|
|
4792
5496
|
hintFontSize?: string;
|
|
4793
5497
|
groupGap?: string;
|
|
5498
|
+
labelFontSizeSm?: string;
|
|
5499
|
+
labelFontSizeMd?: string;
|
|
5500
|
+
labelFontSizeLg?: string;
|
|
4794
5501
|
}
|
|
4795
5502
|
export interface DasarThemeRadio {
|
|
4796
5503
|
gap?: string;
|
|
@@ -4810,6 +5517,9 @@ export interface DasarThemeRadio {
|
|
|
4810
5517
|
hintColor?: string;
|
|
4811
5518
|
hintFontSize?: string;
|
|
4812
5519
|
groupGap?: string;
|
|
5520
|
+
labelFontSizeSm?: string;
|
|
5521
|
+
labelFontSizeMd?: string;
|
|
5522
|
+
labelFontSizeLg?: string;
|
|
4813
5523
|
}
|
|
4814
5524
|
export interface DasarThemeDivider {
|
|
4815
5525
|
color?: string;
|
|
@@ -5323,6 +6033,57 @@ export interface DasarThemeOverlay {
|
|
|
5323
6033
|
background?: string;
|
|
5324
6034
|
blur?: string;
|
|
5325
6035
|
}
|
|
6036
|
+
export interface DasarThemeTree {
|
|
6037
|
+
color?: string;
|
|
6038
|
+
fontSizeSm?: string;
|
|
6039
|
+
fontSizeMd?: string;
|
|
6040
|
+
fontSizeLg?: string;
|
|
6041
|
+
rowHeightSm?: string;
|
|
6042
|
+
rowHeightMd?: string;
|
|
6043
|
+
rowHeightLg?: string;
|
|
6044
|
+
rowRadius?: string;
|
|
6045
|
+
rowGap?: string;
|
|
6046
|
+
rowPaddingX?: string;
|
|
6047
|
+
indent?: string;
|
|
6048
|
+
expanderSize?: string;
|
|
6049
|
+
hoverBg?: string;
|
|
6050
|
+
selectedBg?: string;
|
|
6051
|
+
selectedColor?: string;
|
|
6052
|
+
selectedFontWeight?: string;
|
|
6053
|
+
focusColor?: string;
|
|
6054
|
+
lineColor?: string;
|
|
6055
|
+
iconColor?: string;
|
|
6056
|
+
folderColor?: string;
|
|
6057
|
+
dropColor?: string;
|
|
6058
|
+
draggingOpacity?: string;
|
|
6059
|
+
disabledOpacity?: string;
|
|
6060
|
+
disabledColor?: string;
|
|
6061
|
+
labelColor?: string;
|
|
6062
|
+
labelFontWeight?: string;
|
|
6063
|
+
hintColor?: string;
|
|
6064
|
+
hintFontSize?: string;
|
|
6065
|
+
emptyColor?: string;
|
|
6066
|
+
gap?: string;
|
|
6067
|
+
}
|
|
6068
|
+
export interface DasarThemeDrawer {
|
|
6069
|
+
background?: string;
|
|
6070
|
+
bodyColor?: string;
|
|
6071
|
+
titleColor?: string;
|
|
6072
|
+
titleFontWeight?: string;
|
|
6073
|
+
fontSize?: string;
|
|
6074
|
+
border?: string;
|
|
6075
|
+
shadow?: string;
|
|
6076
|
+
headerBorder?: string;
|
|
6077
|
+
headerPadding?: string;
|
|
6078
|
+
bodyPadding?: string;
|
|
6079
|
+
actionsBackground?: string;
|
|
6080
|
+
actionsBorder?: string;
|
|
6081
|
+
actionsPadding?: string;
|
|
6082
|
+
actionsGap?: string;
|
|
6083
|
+
animationDuration?: string;
|
|
6084
|
+
resizeHandleSize?: string;
|
|
6085
|
+
resizeHandleHoverColor?: string;
|
|
6086
|
+
}
|
|
5326
6087
|
export interface DasarThemeModal {
|
|
5327
6088
|
background?: string;
|
|
5328
6089
|
bodyColor?: string;
|
|
@@ -5383,6 +6144,8 @@ export type DasarComponentConfig = {
|
|
|
5383
6144
|
radioGroup?: DasarRadioGroupConfig;
|
|
5384
6145
|
breakpoint?: DasarBreakpointConfig;
|
|
5385
6146
|
modal?: DasarModalConfig;
|
|
6147
|
+
drawer?: DasarDrawerConfig;
|
|
6148
|
+
tree?: DasarTreeConfig;
|
|
5386
6149
|
overlay?: DasarOverlayConfig;
|
|
5387
6150
|
icon?: DasarIconConfig;
|
|
5388
6151
|
menu?: DasarMenuConfig;
|
|
@@ -5423,6 +6186,8 @@ export interface DasarThemeConfig {
|
|
|
5423
6186
|
tabs?: DasarThemeTabs;
|
|
5424
6187
|
overlay?: DasarThemeOverlay;
|
|
5425
6188
|
modal?: DasarThemeModal;
|
|
6189
|
+
drawer?: DasarThemeDrawer;
|
|
6190
|
+
tree?: DasarThemeTree;
|
|
5426
6191
|
};
|
|
5427
6192
|
dark?: {
|
|
5428
6193
|
common?: DasarThemeCommon;
|
|
@@ -5447,6 +6212,8 @@ export interface DasarThemeConfig {
|
|
|
5447
6212
|
tabs?: DasarThemeTabs;
|
|
5448
6213
|
overlay?: DasarThemeOverlay;
|
|
5449
6214
|
modal?: DasarThemeModal;
|
|
6215
|
+
drawer?: DasarThemeDrawer;
|
|
6216
|
+
tree?: DasarThemeTree;
|
|
5450
6217
|
};
|
|
5451
6218
|
};
|
|
5452
6219
|
}
|
|
@@ -5612,6 +6379,8 @@ export declare const switchMap: Record<string, string>;
|
|
|
5612
6379
|
export declare const skeletonMap: Record<keyof DasarThemeSkeleton$1, string>;
|
|
5613
6380
|
export declare const tabsMap: Record<keyof DasarThemeTabs$1, string>;
|
|
5614
6381
|
export declare const overlayMap: Record<keyof DasarThemeOverlay$1, string>;
|
|
6382
|
+
export declare const treeMap: Record<keyof DasarThemeTree$1, string>;
|
|
6383
|
+
export declare const drawerMap: Record<keyof DasarThemeDrawer$1, string>;
|
|
5615
6384
|
export declare const modalMap: Record<keyof DasarThemeModal$1, string>;
|
|
5616
6385
|
export declare class DasarThemeService {
|
|
5617
6386
|
private themeState;
|
|
@@ -5630,4 +6399,4 @@ export declare class DasarThemeService {
|
|
|
5630
6399
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
5631
6400
|
}
|
|
5632
6401
|
export declare function fieldIconSize(size: string | number | null | undefined): number;
|
|
5633
|
-
export {};
|
|
6402
|
+
export type { DasarTreeCheckState, DasarTreeDropPosition, DasarTreeItem, DasarTreeKey };
|