dasar-ui 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -3327,6 +3327,7 @@ export interface DasarCheckboxConfig {
3327
3327
  error?: boolean;
3328
3328
  hint?: string;
3329
3329
  label?: string;
3330
+ indeterminate?: boolean;
3330
3331
  checkedValue?: any;
3331
3332
  uncheckedValue?: any;
3332
3333
  containerClass?: ClassType;
@@ -3354,6 +3355,7 @@ export declare class DasarCheckbox implements ControlValueAccessor {
3354
3355
  error: NonNullable<boolean | undefined>;
3355
3356
  set disabled(value: boolean);
3356
3357
  get disabled(): boolean;
3358
+ indeterminate: NonNullable<boolean | undefined>;
3357
3359
  checkedValue: any;
3358
3360
  uncheckedValue: any;
3359
3361
  set value(val: any);
@@ -3406,6 +3408,10 @@ export declare class DasarCheckbox implements ControlValueAccessor {
3406
3408
  "alias": "disabled";
3407
3409
  "required": false;
3408
3410
  };
3411
+ "indeterminate": {
3412
+ "alias": "indeterminate";
3413
+ "required": false;
3414
+ };
3409
3415
  "checkedValue": {
3410
3416
  "alias": "checked-value";
3411
3417
  "required": false;
@@ -3456,6 +3462,7 @@ export declare class DasarCheckbox implements ControlValueAccessor {
3456
3462
  }, never, ["*"], true, never>;
3457
3463
  static ngAcceptInputType_error: unknown;
3458
3464
  static ngAcceptInputType_disabled: unknown;
3465
+ static ngAcceptInputType_indeterminate: unknown;
3459
3466
  }
3460
3467
  export declare const DasarCheckboxComponent: readonly [typeof DasarCheckbox];
3461
3468
  export type DasarSwitchSizeType = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
@@ -4495,6 +4502,682 @@ export declare class DasarModal implements OnChanges, OnDestroy {
4495
4502
  static ngAcceptInputType_closeOnEscape: unknown;
4496
4503
  }
4497
4504
  export declare const DasarModalComponent: readonly [typeof DasarModalHeaderSlot, typeof DasarModalCloseSlot, typeof DasarModalActionSlot, typeof DasarModal];
4505
+ export type DasarDrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
4506
+ export type DasarDrawerLength = string | number;
4507
+ export interface DasarDrawerConfig {
4508
+ placement?: DasarDrawerPlacement;
4509
+ label?: string;
4510
+ closable?: boolean;
4511
+ resizable?: boolean;
4512
+ width?: DasarDrawerLength;
4513
+ height?: DasarDrawerLength;
4514
+ minWidth?: DasarDrawerLength;
4515
+ maxWidth?: DasarDrawerLength;
4516
+ minHeight?: DasarDrawerLength;
4517
+ maxHeight?: DasarDrawerLength;
4518
+ zIndex?: number;
4519
+ closeOnOverlay?: boolean;
4520
+ closeOnEscape?: boolean;
4521
+ overlayBlur?: string;
4522
+ overlayBackground?: string;
4523
+ headerFluid?: boolean;
4524
+ bodyFluid?: boolean;
4525
+ actionFluid?: boolean;
4526
+ containerStyle?: StyleType;
4527
+ headerStyle?: StyleType;
4528
+ bodyStyle?: StyleType;
4529
+ actionStyle?: StyleType;
4530
+ containerClass?: ClassType;
4531
+ headerClass?: ClassType;
4532
+ bodyClass?: ClassType;
4533
+ actionClass?: ClassType;
4534
+ }
4535
+ export declare class DasarDrawerHeaderSlot {
4536
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerHeaderSlot, never>;
4537
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerHeaderSlot, "[header-slot]", never, {}, {}, never, never, true, never>;
4538
+ }
4539
+ export declare class DasarDrawerCloseableSlot {
4540
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerCloseableSlot, never>;
4541
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerCloseableSlot, "[closeable-slot]", never, {}, {}, never, never, true, never>;
4542
+ }
4543
+ export declare class DasarDrawerActionSlot {
4544
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawerActionSlot, never>;
4545
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarDrawerActionSlot, "[action-slot]", never, {}, {}, never, never, true, never>;
4546
+ }
4547
+ export declare class DasarDrawer implements ControlValueAccessor, OnDestroy {
4548
+ providedHeader?: DasarDrawerHeaderSlot;
4549
+ providedCloseable?: DasarDrawerCloseableSlot;
4550
+ providedAction?: DasarDrawerActionSlot;
4551
+ private panelRef?;
4552
+ private themeProvider;
4553
+ private themeService;
4554
+ private platformId;
4555
+ private document;
4556
+ private injector;
4557
+ private animationTimer;
4558
+ private previousOverflow;
4559
+ private previousFocus;
4560
+ private entered;
4561
+ private resizeStart;
4562
+ private _show;
4563
+ protected readonly rendered: import("@angular/core").WritableSignal<boolean>;
4564
+ protected readonly leaving: import("@angular/core").WritableSignal<boolean>;
4565
+ protected readonly resizing: import("@angular/core").WritableSignal<boolean>;
4566
+ protected readonly resizedWidth: import("@angular/core").WritableSignal<number | null>;
4567
+ protected readonly resizedHeight: import("@angular/core").WritableSignal<number | null>;
4568
+ placement: NonNullable<DasarDrawerPlacement | undefined>;
4569
+ label: string | undefined;
4570
+ closable: NonNullable<boolean | undefined>;
4571
+ resizable: NonNullable<boolean | undefined>;
4572
+ set width(value: DasarDrawerLength);
4573
+ get width(): DasarDrawerLength;
4574
+ private _width;
4575
+ set height(value: DasarDrawerLength);
4576
+ get height(): DasarDrawerLength;
4577
+ private _height;
4578
+ minWidth: NonNullable<DasarDrawerLength | undefined>;
4579
+ maxWidth: NonNullable<DasarDrawerLength | undefined>;
4580
+ minHeight: NonNullable<DasarDrawerLength | undefined>;
4581
+ maxHeight: NonNullable<DasarDrawerLength | undefined>;
4582
+ zIndex: number;
4583
+ closeOnOverlay: NonNullable<boolean | undefined>;
4584
+ closeOnEscape: NonNullable<boolean | undefined>;
4585
+ overlayBlur: string | null;
4586
+ overlayBackground: string | null;
4587
+ headerFluid: NonNullable<boolean | undefined>;
4588
+ bodyFluid: NonNullable<boolean | undefined>;
4589
+ actionFluid: NonNullable<boolean | undefined>;
4590
+ containerStyle: NonNullable<StyleType | undefined> | null;
4591
+ headerStyle: NonNullable<StyleType | undefined> | null;
4592
+ bodyStyle: NonNullable<StyleType | undefined> | null;
4593
+ actionStyle: NonNullable<StyleType | undefined> | null;
4594
+ containerClass: NonNullable<ClassType> | null;
4595
+ headerClass: NonNullable<ClassType> | null;
4596
+ bodyClass: NonNullable<ClassType> | null;
4597
+ actionClass: NonNullable<ClassType> | null;
4598
+ set show(value: boolean);
4599
+ get show(): boolean;
4600
+ showChange: EventEmitter<boolean>;
4601
+ onUpdateValue: EventEmitter<boolean>;
4602
+ onWidthUpdate: EventEmitter<number>;
4603
+ onHeightUpdate: EventEmitter<number>;
4604
+ onAfterEnter: EventEmitter<void>;
4605
+ onAfterLeave: EventEmitter<void>;
4606
+ readonly baseClass = true;
4607
+ get isOpen(): boolean;
4608
+ private onChange;
4609
+ private onTouched;
4610
+ get hasHeader(): boolean;
4611
+ get hasCloseable(): boolean;
4612
+ get hasAction(): boolean;
4613
+ get isHorizontal(): boolean;
4614
+ get overlayClasses(): Record<string, boolean>;
4615
+ get panelWidth(): string | null;
4616
+ get panelHeight(): string | null;
4617
+ get panelMinWidth(): string | null;
4618
+ get panelMaxWidth(): string | null;
4619
+ get panelMinHeight(): string | null;
4620
+ get panelMaxHeight(): string | null;
4621
+ writeValue(value: boolean | null): void;
4622
+ registerOnChange(fn: (value: boolean) => void): void;
4623
+ registerOnTouched(fn: () => void): void;
4624
+ close(): void;
4625
+ handleOverlayClick(): void;
4626
+ handleEscape(): void;
4627
+ onAnimationEnd(event: AnimationEvent): void;
4628
+ onResizeStart(event: PointerEvent): void;
4629
+ onResizeMove(event: PointerEvent): void;
4630
+ onResizeEnd(event: PointerEvent): void;
4631
+ onResizeKeydown(event: KeyboardEvent): void;
4632
+ ngOnDestroy(): void;
4633
+ private setSize;
4634
+ private emitSize;
4635
+ private viewportSize;
4636
+ private toPixels;
4637
+ private applyShow;
4638
+ private finishEnter;
4639
+ private finishLeave;
4640
+ private clearTimer;
4641
+ private lockScroll;
4642
+ private unlockScroll;
4643
+ private rememberFocus;
4644
+ private restoreFocus;
4645
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarDrawer, never>;
4646
+ static ɵcmp: i0.ɵɵComponentDeclaration<DasarDrawer, "dasar-drawer", never, {
4647
+ "placement": {
4648
+ "alias": "placement";
4649
+ "required": false;
4650
+ };
4651
+ "label": {
4652
+ "alias": "label";
4653
+ "required": false;
4654
+ };
4655
+ "closable": {
4656
+ "alias": "closable";
4657
+ "required": false;
4658
+ };
4659
+ "resizable": {
4660
+ "alias": "resizable";
4661
+ "required": false;
4662
+ };
4663
+ "width": {
4664
+ "alias": "width";
4665
+ "required": false;
4666
+ };
4667
+ "height": {
4668
+ "alias": "height";
4669
+ "required": false;
4670
+ };
4671
+ "minWidth": {
4672
+ "alias": "min-width";
4673
+ "required": false;
4674
+ };
4675
+ "maxWidth": {
4676
+ "alias": "max-width";
4677
+ "required": false;
4678
+ };
4679
+ "minHeight": {
4680
+ "alias": "min-height";
4681
+ "required": false;
4682
+ };
4683
+ "maxHeight": {
4684
+ "alias": "max-height";
4685
+ "required": false;
4686
+ };
4687
+ "zIndex": {
4688
+ "alias": "z-index";
4689
+ "required": false;
4690
+ };
4691
+ "closeOnOverlay": {
4692
+ "alias": "close-on-overlay";
4693
+ "required": false;
4694
+ };
4695
+ "closeOnEscape": {
4696
+ "alias": "close-on-escape";
4697
+ "required": false;
4698
+ };
4699
+ "overlayBlur": {
4700
+ "alias": "overlay-blur";
4701
+ "required": false;
4702
+ };
4703
+ "overlayBackground": {
4704
+ "alias": "overlay-background";
4705
+ "required": false;
4706
+ };
4707
+ "headerFluid": {
4708
+ "alias": "header-fluid";
4709
+ "required": false;
4710
+ };
4711
+ "bodyFluid": {
4712
+ "alias": "body-fluid";
4713
+ "required": false;
4714
+ };
4715
+ "actionFluid": {
4716
+ "alias": "action-fluid";
4717
+ "required": false;
4718
+ };
4719
+ "containerStyle": {
4720
+ "alias": "container-style";
4721
+ "required": false;
4722
+ };
4723
+ "headerStyle": {
4724
+ "alias": "header-style";
4725
+ "required": false;
4726
+ };
4727
+ "bodyStyle": {
4728
+ "alias": "body-style";
4729
+ "required": false;
4730
+ };
4731
+ "actionStyle": {
4732
+ "alias": "action-style";
4733
+ "required": false;
4734
+ };
4735
+ "containerClass": {
4736
+ "alias": "container-class";
4737
+ "required": false;
4738
+ };
4739
+ "headerClass": {
4740
+ "alias": "header-class";
4741
+ "required": false;
4742
+ };
4743
+ "bodyClass": {
4744
+ "alias": "body-class";
4745
+ "required": false;
4746
+ };
4747
+ "actionClass": {
4748
+ "alias": "action-class";
4749
+ "required": false;
4750
+ };
4751
+ "show": {
4752
+ "alias": "show";
4753
+ "required": false;
4754
+ };
4755
+ }, {
4756
+ "showChange": "showChange";
4757
+ "onUpdateValue": "onUpdateValue";
4758
+ "onWidthUpdate": "onWidthUpdate";
4759
+ "onHeightUpdate": "onHeightUpdate";
4760
+ "onAfterEnter": "onAfterEnter";
4761
+ "onAfterLeave": "onAfterLeave";
4762
+ }, ["providedHeader", "providedCloseable", "providedAction"], ["[header-slot]", "[closeable-slot]", "*", "[action-slot]"], true, never>;
4763
+ static ngAcceptInputType_closable: unknown;
4764
+ static ngAcceptInputType_resizable: unknown;
4765
+ static ngAcceptInputType_closeOnOverlay: unknown;
4766
+ static ngAcceptInputType_closeOnEscape: unknown;
4767
+ static ngAcceptInputType_headerFluid: unknown;
4768
+ static ngAcceptInputType_bodyFluid: unknown;
4769
+ static ngAcceptInputType_actionFluid: unknown;
4770
+ static ngAcceptInputType_show: unknown;
4771
+ }
4772
+ export declare const DasarDrawerComponent: readonly [typeof DasarDrawerHeaderSlot, typeof DasarDrawerCloseableSlot, typeof DasarDrawerActionSlot, typeof DasarDrawer];
4773
+ type DasarTreeKey = string | number;
4774
+ type DasarTreeDropPosition = 'before' | 'inside' | 'after';
4775
+ type DasarTreeCheckState = 'checked' | 'unchecked' | 'indeterminate';
4776
+ interface DasarTreeItem {
4777
+ key: DasarTreeKey;
4778
+ label: string;
4779
+ children?: DasarTreeItem[];
4780
+ disabled?: boolean;
4781
+ iconName?: string;
4782
+ data?: unknown;
4783
+ }
4784
+ interface DasarTreeMeta {
4785
+ item: DasarTreeItem;
4786
+ parentKey: DasarTreeKey | null;
4787
+ level: number;
4788
+ }
4789
+ declare const hasChildren: (item: DasarTreeItem) => boolean;
4790
+ declare function buildIndex(items: DasarTreeItem[]): Map<DasarTreeKey, DasarTreeMeta>;
4791
+ declare function collectKeys(items: DasarTreeItem[]): DasarTreeKey[];
4792
+ /** Keys of the nodes that have children, used for expand all. */
4793
+ declare function collectParentKeys(items: DasarTreeItem[]): DasarTreeKey[];
4794
+ declare function isDescendant(index: Map<DasarTreeKey, DasarTreeMeta>, ancestorKey: DasarTreeKey, key: DasarTreeKey): boolean;
4795
+ /** The node itself when it is a leaf, otherwise every leaf below it. */
4796
+ declare function leafKeysOf(item: DasarTreeItem): DasarTreeKey[];
4797
+ declare function checkStateOf(item: DasarTreeItem, leaves: ReadonlySet<DasarTreeKey>): DasarTreeCheckState;
4798
+ /** Turns a list of checked keys (leaves and/or parents) into the set of checked leaves. */
4799
+ declare function normalizeChecked(index: Map<DasarTreeKey, DasarTreeMeta>, keys: readonly DasarTreeKey[]): Set<DasarTreeKey>;
4800
+ declare function toggleChecked(index: Map<DasarTreeKey, DasarTreeMeta>, leaves: ReadonlySet<DasarTreeKey>, key: DasarTreeKey): Set<DasarTreeKey>;
4801
+ /** Keys of every node that is fully checked, in tree order (parents included). */
4802
+ declare function checkedKeysFrom(items: DasarTreeItem[], leaves: ReadonlySet<DasarTreeKey>): DasarTreeKey[];
4803
+ /** Keys that match the query plus all of their ancestors, so matches stay reachable. */
4804
+ declare function filterTree(items: DasarTreeItem[], matches: (item: DasarTreeItem) => boolean): {
4805
+ visible: Set<DasarTreeKey>;
4806
+ parentsOfMatches: Set<DasarTreeKey>;
4807
+ };
4808
+ /** Moves a node next to or into another one without changing the input. */
4809
+ declare function moveItem(items: DasarTreeItem[], dragKey: DasarTreeKey, targetKey: DasarTreeKey, position: DasarTreeDropPosition): DasarTreeItem[] | null;
4810
+ export type DasarTreeType = 'file' | 'selectable' | 'multiple' | null;
4811
+ export type DasarTreeSize = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
4812
+ export type DasarTreeFilterMethod = (item: DasarTreeItem, query: string) => boolean;
4813
+ export interface DasarTreeConfig {
4814
+ type?: DasarTreeType;
4815
+ size?: DasarTreeSize;
4816
+ disabled?: boolean;
4817
+ label?: string;
4818
+ hint?: string;
4819
+ draggable?: boolean;
4820
+ showLine?: boolean;
4821
+ search?: boolean;
4822
+ searchPlaceholder?: string;
4823
+ selectable?: boolean;
4824
+ multiple?: boolean;
4825
+ defaultExpandAll?: boolean;
4826
+ containerClass?: ClassType;
4827
+ containerStyle?: StyleType;
4828
+ itemClass?: ClassType;
4829
+ itemStyle?: StyleType;
4830
+ hintClass?: ClassType;
4831
+ hintStyle?: StyleType;
4832
+ }
4833
+ export interface DasarTreeRow {
4834
+ item: DasarTreeItem;
4835
+ level: number;
4836
+ parentKey: DasarTreeKey | null;
4837
+ hasChildren: boolean;
4838
+ isFolder: boolean;
4839
+ expanded: boolean;
4840
+ isLast: boolean;
4841
+ /** One entry per indent column before the row; each carries a vertical guide line. */
4842
+ guides: boolean[];
4843
+ disabled: boolean;
4844
+ selected: boolean;
4845
+ checked: boolean;
4846
+ indeterminate: boolean;
4847
+ }
4848
+ export interface DasarTreeSlotContext {
4849
+ $implicit: DasarTreeItem;
4850
+ level: number;
4851
+ expanded: boolean;
4852
+ selected: boolean;
4853
+ checked: boolean;
4854
+ toggle: () => void;
4855
+ }
4856
+ export interface DasarTreeDragEvent {
4857
+ node: DasarTreeItem;
4858
+ dragNode: DasarTreeItem | null;
4859
+ position: DasarTreeDropPosition | null;
4860
+ event: DragEvent;
4861
+ }
4862
+ export interface DasarTreeDropEvent {
4863
+ dragNode: DasarTreeItem;
4864
+ dropNode: DasarTreeItem;
4865
+ position: DasarTreeDropPosition;
4866
+ items: DasarTreeItem[];
4867
+ event: DragEvent;
4868
+ }
4869
+ export declare class DasarTreeSearchSlot {
4870
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeSearchSlot, never>;
4871
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeSearchSlot, "[search-slot]", never, {}, {}, never, never, true, never>;
4872
+ }
4873
+ export declare class DasarTreeHintSlot {
4874
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeHintSlot, never>;
4875
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeHintSlot, "[hint-slot]", never, {}, {}, never, never, true, never>;
4876
+ }
4877
+ export declare class DasarTreeLabelSlot {
4878
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeLabelSlot, never>;
4879
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeLabelSlot, "[label-slot]", never, {}, {}, never, never, true, never>;
4880
+ }
4881
+ export declare class DasarTreeExtraHeaderSlot {
4882
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeExtraHeaderSlot, never>;
4883
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeExtraHeaderSlot, "[extra-header-slot]", never, {}, {}, never, never, true, never>;
4884
+ }
4885
+ export declare class DasarTreePrefixSlot {
4886
+ templateRef: TemplateRef<DasarTreeSlotContext>;
4887
+ constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
4888
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreePrefixSlot, never>;
4889
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreePrefixSlot, "[tree-prefix-slot]", never, {}, {}, never, never, true, never>;
4890
+ }
4891
+ export declare class DasarTreeSuffixSlot {
4892
+ templateRef: TemplateRef<DasarTreeSlotContext>;
4893
+ constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
4894
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeSuffixSlot, never>;
4895
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeSuffixSlot, "[tree-suffix-slot]", never, {}, {}, never, never, true, never>;
4896
+ }
4897
+ export declare class DasarTreeIconSlot {
4898
+ templateRef: TemplateRef<DasarTreeSlotContext>;
4899
+ constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
4900
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeIconSlot, never>;
4901
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeIconSlot, "[tree-icon-slot]", never, {}, {}, never, never, true, never>;
4902
+ }
4903
+ export declare class DasarTreeLeafSlot {
4904
+ templateRef: TemplateRef<DasarTreeSlotContext>;
4905
+ constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
4906
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeLeafSlot, never>;
4907
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeLeafSlot, "[tree-leaf-slot]", never, {}, {}, never, never, true, never>;
4908
+ }
4909
+ export declare class DasarTreeChildrenSlot {
4910
+ templateRef: TemplateRef<DasarTreeSlotContext>;
4911
+ key: DasarTreeKey | '';
4912
+ constructor(templateRef: TemplateRef<DasarTreeSlotContext>);
4913
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTreeChildrenSlot, never>;
4914
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DasarTreeChildrenSlot, "[tree-children-slot]", never, {
4915
+ "key": {
4916
+ "alias": "tree-children-slot";
4917
+ "required": false;
4918
+ };
4919
+ }, {}, never, never, true, never>;
4920
+ }
4921
+ export declare class DasarTree implements ControlValueAccessor, OnInit, OnChanges {
4922
+ providedSearch?: DasarTreeSearchSlot;
4923
+ providedHint?: DasarTreeHintSlot;
4924
+ providedLabel?: DasarTreeLabelSlot;
4925
+ providedExtraHeader?: DasarTreeExtraHeaderSlot;
4926
+ prefixSlot?: DasarTreePrefixSlot;
4927
+ suffixSlot?: DasarTreeSuffixSlot;
4928
+ iconSlot?: DasarTreeIconSlot;
4929
+ leafSlot?: DasarTreeLeafSlot;
4930
+ childrenSlots?: QueryList<DasarTreeChildrenSlot>;
4931
+ private rowEls?;
4932
+ private themeProvider;
4933
+ private themeService;
4934
+ private injector;
4935
+ readonly labelId: string;
4936
+ readonly hintId: string;
4937
+ private readonly itemsSig;
4938
+ private readonly expandedSig;
4939
+ private readonly selectedSig;
4940
+ private readonly leavesSig;
4941
+ private readonly querySig;
4942
+ private readonly disabledSig;
4943
+ private readonly filterFnSig;
4944
+ private expandedControlled;
4945
+ private defaultExpandApplied;
4946
+ private rawChecked;
4947
+ private rawValue;
4948
+ protected readonly focusedKey: import("@angular/core").WritableSignal<DasarTreeKey | null>;
4949
+ protected readonly dragKey: import("@angular/core").WritableSignal<DasarTreeKey | null>;
4950
+ protected readonly dropTarget: import("@angular/core").WritableSignal<{
4951
+ key: DasarTreeKey;
4952
+ position: DasarTreeDropPosition;
4953
+ } | null>;
4954
+ private readonly index;
4955
+ private readonly filter;
4956
+ protected readonly rows: import("@angular/core").Signal<DasarTreeRow[]>;
4957
+ type: NonNullable<DasarTreeType | undefined> | null;
4958
+ size: NonNullable<DasarTreeSize | undefined>;
4959
+ label: string;
4960
+ hint: string;
4961
+ set disabled(value: boolean);
4962
+ get disabled(): boolean;
4963
+ draggable: NonNullable<boolean | undefined>;
4964
+ showLine: NonNullable<boolean | undefined>;
4965
+ search: NonNullable<boolean | undefined>;
4966
+ searchPlaceholder: string;
4967
+ selectable: NonNullable<boolean | undefined>;
4968
+ multiple: NonNullable<boolean | undefined>;
4969
+ set defaultExpandAll(value: boolean);
4970
+ get defaultExpandAll(): boolean;
4971
+ private _defaultExpandAll;
4972
+ containerClass: NonNullable<ClassType> | null;
4973
+ containerStyle: NonNullable<StyleType | undefined> | null;
4974
+ itemClass: NonNullable<ClassType> | null;
4975
+ itemStyle: NonNullable<StyleType | undefined> | null;
4976
+ hintClass: NonNullable<ClassType> | null;
4977
+ hintStyle: NonNullable<StyleType | undefined> | null;
4978
+ set items(value: DasarTreeItem[] | null);
4979
+ get items(): DasarTreeItem[];
4980
+ set expandedKeys(keys: DasarTreeKey[] | null);
4981
+ get expandedKeys(): DasarTreeKey[];
4982
+ set selectedKeys(keys: DasarTreeKey[] | null);
4983
+ get selectedKeys(): DasarTreeKey[];
4984
+ set checkedKeys(keys: DasarTreeKey[] | null);
4985
+ get checkedKeys(): DasarTreeKey[];
4986
+ set filterMethod(fn: DasarTreeFilterMethod | null);
4987
+ set searchValue(value: string | null);
4988
+ get searchValue(): string;
4989
+ /** Selected key for selectable trees, checked keys for multiple trees. */
4990
+ set value(value: unknown);
4991
+ get value(): unknown;
4992
+ valueChange: EventEmitter<unknown>;
4993
+ itemsChange: EventEmitter<DasarTreeItem[]>;
4994
+ expandedKeysChange: EventEmitter<DasarTreeKey[]>;
4995
+ selectedKeysChange: EventEmitter<DasarTreeKey[]>;
4996
+ checkedKeysChange: EventEmitter<DasarTreeKey[]>;
4997
+ searchValueChange: EventEmitter<string>;
4998
+ onUpdateExpandedKeys: EventEmitter<DasarTreeKey[]>;
4999
+ onUpdateSelectedKeys: EventEmitter<DasarTreeKey[]>;
5000
+ onUpdateCheckedKeys: EventEmitter<DasarTreeKey[]>;
5001
+ onDragStart: EventEmitter<DasarTreeDragEvent>;
5002
+ onDragEnter: EventEmitter<DasarTreeDragEvent>;
5003
+ onDragLeave: EventEmitter<DasarTreeDragEvent>;
5004
+ onDrop: EventEmitter<DasarTreeDropEvent>;
5005
+ readonly baseClass = true;
5006
+ get hostDisabled(): boolean;
5007
+ private onChange;
5008
+ private onTouched;
5009
+ get isFile(): boolean;
5010
+ get isSelectable(): boolean;
5011
+ get isMultiple(): boolean;
5012
+ get hasSearchSlot(): boolean;
5013
+ get hasHintSlot(): boolean;
5014
+ get hasLabelSlot(): boolean;
5015
+ get hasExtraHeaderSlot(): boolean;
5016
+ get iconSize(): number;
5017
+ get isDisabled(): boolean;
5018
+ get isSearching(): boolean;
5019
+ get visibleRows(): DasarTreeRow[];
5020
+ ngOnInit(): void;
5021
+ ngOnChanges(changes: SimpleChanges): void;
5022
+ private applyDefaultExpand;
5023
+ get containerClasses(): Record<string, boolean>;
5024
+ rowClasses(row: DasarTreeRow): Record<string, boolean>;
5025
+ childrenSlotFor(key: DasarTreeKey): DasarTreeChildrenSlot | undefined;
5026
+ slotContext(row: DasarTreeRow): DasarTreeSlotContext;
5027
+ tabIndexFor(row: DasarTreeRow, position: number): number;
5028
+ get arrowSize(): number;
5029
+ nodeIcon(row: DasarTreeRow): string;
5030
+ writeValue(value: unknown): void;
5031
+ registerOnChange(fn: (value: unknown) => void): void;
5032
+ registerOnTouched(fn: () => void): void;
5033
+ setDisabledState(isDisabled: boolean): void;
5034
+ private emitValue;
5035
+ onSearch(value: string): void;
5036
+ toggleExpand(row: DasarTreeRow, event?: Event): void;
5037
+ select(row: DasarTreeRow): void;
5038
+ toggleCheck(row: DasarTreeRow): void;
5039
+ activate(row: DasarTreeRow): void;
5040
+ onRowClick(row: DasarTreeRow): void;
5041
+ onTreeKeydown(event: KeyboardEvent): void;
5042
+ isDragAllowed(row: DasarTreeRow): boolean;
5043
+ onDragStartRow(row: DasarTreeRow, event: DragEvent): void;
5044
+ onDragEnterRow(row: DasarTreeRow, event: DragEvent): void;
5045
+ onDragOverRow(row: DasarTreeRow, event: DragEvent): void;
5046
+ onDragLeaveRow(row: DasarTreeRow, event: DragEvent): void;
5047
+ onDropRow(row: DasarTreeRow, event: DragEvent): void;
5048
+ onDragEndRow(): void;
5049
+ private dragNode;
5050
+ private clearDrag;
5051
+ /** Where a dragged node would land on this row, or null when the drop is not allowed. */
5052
+ private resolveDrop;
5053
+ private emitExpanded;
5054
+ private focusRow;
5055
+ static ɵfac: i0.ɵɵFactoryDeclaration<DasarTree, never>;
5056
+ static ɵcmp: i0.ɵɵComponentDeclaration<DasarTree, "dasar-tree", never, {
5057
+ "type": {
5058
+ "alias": "type";
5059
+ "required": false;
5060
+ };
5061
+ "size": {
5062
+ "alias": "size";
5063
+ "required": false;
5064
+ };
5065
+ "label": {
5066
+ "alias": "label";
5067
+ "required": false;
5068
+ };
5069
+ "hint": {
5070
+ "alias": "hint";
5071
+ "required": false;
5072
+ };
5073
+ "disabled": {
5074
+ "alias": "disabled";
5075
+ "required": false;
5076
+ };
5077
+ "draggable": {
5078
+ "alias": "draggable";
5079
+ "required": false;
5080
+ };
5081
+ "showLine": {
5082
+ "alias": "show-line";
5083
+ "required": false;
5084
+ };
5085
+ "search": {
5086
+ "alias": "search";
5087
+ "required": false;
5088
+ };
5089
+ "searchPlaceholder": {
5090
+ "alias": "search-placeholder";
5091
+ "required": false;
5092
+ };
5093
+ "selectable": {
5094
+ "alias": "selectable";
5095
+ "required": false;
5096
+ };
5097
+ "multiple": {
5098
+ "alias": "multiple";
5099
+ "required": false;
5100
+ };
5101
+ "defaultExpandAll": {
5102
+ "alias": "default-expand-all";
5103
+ "required": false;
5104
+ };
5105
+ "containerClass": {
5106
+ "alias": "container-class";
5107
+ "required": false;
5108
+ };
5109
+ "containerStyle": {
5110
+ "alias": "container-style";
5111
+ "required": false;
5112
+ };
5113
+ "itemClass": {
5114
+ "alias": "item-class";
5115
+ "required": false;
5116
+ };
5117
+ "itemStyle": {
5118
+ "alias": "item-style";
5119
+ "required": false;
5120
+ };
5121
+ "hintClass": {
5122
+ "alias": "hint-class";
5123
+ "required": false;
5124
+ };
5125
+ "hintStyle": {
5126
+ "alias": "hint-style";
5127
+ "required": false;
5128
+ };
5129
+ "items": {
5130
+ "alias": "items";
5131
+ "required": false;
5132
+ };
5133
+ "expandedKeys": {
5134
+ "alias": "expanded-keys";
5135
+ "required": false;
5136
+ };
5137
+ "selectedKeys": {
5138
+ "alias": "selected-keys";
5139
+ "required": false;
5140
+ };
5141
+ "checkedKeys": {
5142
+ "alias": "checked-keys";
5143
+ "required": false;
5144
+ };
5145
+ "filterMethod": {
5146
+ "alias": "filter-method";
5147
+ "required": false;
5148
+ };
5149
+ "searchValue": {
5150
+ "alias": "search-value";
5151
+ "required": false;
5152
+ };
5153
+ "value": {
5154
+ "alias": "value";
5155
+ "required": false;
5156
+ };
5157
+ }, {
5158
+ "valueChange": "valueChange";
5159
+ "itemsChange": "itemsChange";
5160
+ "expandedKeysChange": "expandedKeysChange";
5161
+ "selectedKeysChange": "selectedKeysChange";
5162
+ "checkedKeysChange": "checkedKeysChange";
5163
+ "searchValueChange": "searchValueChange";
5164
+ "onUpdateExpandedKeys": "onUpdateExpandedKeys";
5165
+ "onUpdateSelectedKeys": "onUpdateSelectedKeys";
5166
+ "onUpdateCheckedKeys": "onUpdateCheckedKeys";
5167
+ "onDragStart": "onDragStart";
5168
+ "onDragEnter": "onDragEnter";
5169
+ "onDragLeave": "onDragLeave";
5170
+ "onDrop": "onDrop";
5171
+ }, ["providedSearch", "providedHint", "providedLabel", "providedExtraHeader", "prefixSlot", "suffixSlot", "iconSlot", "leafSlot", "childrenSlots"], ["[label-slot]", "[extra-header-slot]", "[search-slot]", "[hint-slot]"], true, never>;
5172
+ static ngAcceptInputType_disabled: unknown;
5173
+ static ngAcceptInputType_draggable: unknown;
5174
+ static ngAcceptInputType_showLine: unknown;
5175
+ static ngAcceptInputType_search: unknown;
5176
+ static ngAcceptInputType_selectable: unknown;
5177
+ static ngAcceptInputType_multiple: unknown;
5178
+ static ngAcceptInputType_defaultExpandAll: unknown;
5179
+ }
5180
+ 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
5181
  export interface DasarOverlayConfig {
4499
5182
  blur?: string;
4500
5183
  background?: string;
@@ -5323,6 +6006,57 @@ export interface DasarThemeOverlay {
5323
6006
  background?: string;
5324
6007
  blur?: string;
5325
6008
  }
6009
+ export interface DasarThemeTree {
6010
+ color?: string;
6011
+ fontSizeSm?: string;
6012
+ fontSizeMd?: string;
6013
+ fontSizeLg?: string;
6014
+ rowHeightSm?: string;
6015
+ rowHeightMd?: string;
6016
+ rowHeightLg?: string;
6017
+ rowRadius?: string;
6018
+ rowGap?: string;
6019
+ rowPaddingX?: string;
6020
+ indent?: string;
6021
+ expanderSize?: string;
6022
+ hoverBg?: string;
6023
+ selectedBg?: string;
6024
+ selectedColor?: string;
6025
+ selectedFontWeight?: string;
6026
+ focusColor?: string;
6027
+ lineColor?: string;
6028
+ iconColor?: string;
6029
+ folderColor?: string;
6030
+ dropColor?: string;
6031
+ draggingOpacity?: string;
6032
+ disabledOpacity?: string;
6033
+ disabledColor?: string;
6034
+ labelColor?: string;
6035
+ labelFontWeight?: string;
6036
+ hintColor?: string;
6037
+ hintFontSize?: string;
6038
+ emptyColor?: string;
6039
+ gap?: string;
6040
+ }
6041
+ export interface DasarThemeDrawer {
6042
+ background?: string;
6043
+ bodyColor?: string;
6044
+ titleColor?: string;
6045
+ titleFontWeight?: string;
6046
+ fontSize?: string;
6047
+ border?: string;
6048
+ shadow?: string;
6049
+ headerBorder?: string;
6050
+ headerPadding?: string;
6051
+ bodyPadding?: string;
6052
+ actionsBackground?: string;
6053
+ actionsBorder?: string;
6054
+ actionsPadding?: string;
6055
+ actionsGap?: string;
6056
+ animationDuration?: string;
6057
+ resizeHandleSize?: string;
6058
+ resizeHandleHoverColor?: string;
6059
+ }
5326
6060
  export interface DasarThemeModal {
5327
6061
  background?: string;
5328
6062
  bodyColor?: string;
@@ -5383,6 +6117,8 @@ export type DasarComponentConfig = {
5383
6117
  radioGroup?: DasarRadioGroupConfig;
5384
6118
  breakpoint?: DasarBreakpointConfig;
5385
6119
  modal?: DasarModalConfig;
6120
+ drawer?: DasarDrawerConfig;
6121
+ tree?: DasarTreeConfig;
5386
6122
  overlay?: DasarOverlayConfig;
5387
6123
  icon?: DasarIconConfig;
5388
6124
  menu?: DasarMenuConfig;
@@ -5423,6 +6159,8 @@ export interface DasarThemeConfig {
5423
6159
  tabs?: DasarThemeTabs;
5424
6160
  overlay?: DasarThemeOverlay;
5425
6161
  modal?: DasarThemeModal;
6162
+ drawer?: DasarThemeDrawer;
6163
+ tree?: DasarThemeTree;
5426
6164
  };
5427
6165
  dark?: {
5428
6166
  common?: DasarThemeCommon;
@@ -5447,6 +6185,8 @@ export interface DasarThemeConfig {
5447
6185
  tabs?: DasarThemeTabs;
5448
6186
  overlay?: DasarThemeOverlay;
5449
6187
  modal?: DasarThemeModal;
6188
+ drawer?: DasarThemeDrawer;
6189
+ tree?: DasarThemeTree;
5450
6190
  };
5451
6191
  };
5452
6192
  }
@@ -5612,6 +6352,8 @@ export declare const switchMap: Record<string, string>;
5612
6352
  export declare const skeletonMap: Record<keyof DasarThemeSkeleton$1, string>;
5613
6353
  export declare const tabsMap: Record<keyof DasarThemeTabs$1, string>;
5614
6354
  export declare const overlayMap: Record<keyof DasarThemeOverlay$1, string>;
6355
+ export declare const treeMap: Record<keyof DasarThemeTree$1, string>;
6356
+ export declare const drawerMap: Record<keyof DasarThemeDrawer$1, string>;
5615
6357
  export declare const modalMap: Record<keyof DasarThemeModal$1, string>;
5616
6358
  export declare class DasarThemeService {
5617
6359
  private themeState;
@@ -5630,4 +6372,4 @@ export declare class DasarThemeService {
5630
6372
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
5631
6373
  }
5632
6374
  export declare function fieldIconSize(size: string | number | null | undefined): number;
5633
- export {};
6375
+ export type { DasarTreeCheckState, DasarTreeDropPosition, DasarTreeItem, DasarTreeKey };