@laserfiche/types-lf-ui-components 14.0.0 → 14.0.1--preview-4533248281
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/index.d.ts +96 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
27
32
|
|
|
28
33
|
|
|
29
34
|
|
|
@@ -79,6 +84,20 @@ export declare interface ChecklistOption {
|
|
|
79
84
|
disabled: boolean;
|
|
80
85
|
}
|
|
81
86
|
|
|
87
|
+
declare interface ColumnDef {
|
|
88
|
+
id: string;
|
|
89
|
+
displayName: string;
|
|
90
|
+
defaultWidth: string;
|
|
91
|
+
minWidthPx?: number;
|
|
92
|
+
sortable?: boolean;
|
|
93
|
+
resizable?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare interface ColumnOrderBy {
|
|
97
|
+
columnId: string;
|
|
98
|
+
isDesc: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
82
101
|
/** FieldFormat copied from Web Access */
|
|
83
102
|
declare enum FieldFormat {
|
|
84
103
|
None = "None",
|
|
@@ -627,30 +646,83 @@ export declare class LfRepositoryBrowserComponent {
|
|
|
627
646
|
|
|
628
647
|
|
|
629
648
|
|
|
630
|
-
|
|
631
|
-
|
|
649
|
+
/**
|
|
650
|
+
* read-only property to get current breadcrumbs
|
|
651
|
+
*/
|
|
632
652
|
get breadcrumbs(): LfTreeNode[];
|
|
653
|
+
/**
|
|
654
|
+
* read-only property to retrieve currently opened LfTreeNode
|
|
655
|
+
*/
|
|
633
656
|
get currentFolder(): LfTreeNode | undefined;
|
|
634
|
-
itemSize: number;
|
|
635
657
|
/**
|
|
636
|
-
*
|
|
658
|
+
* Property to set height in pixels of each item in lf-repository-browser
|
|
659
|
+
*/
|
|
660
|
+
set item_size(value: number | string);
|
|
661
|
+
get item_size(): number;
|
|
662
|
+
/**
|
|
663
|
+
* Property to set number of items rendered, should be set to more than the number of visible nodes
|
|
664
|
+
*/
|
|
665
|
+
set page_size(value: number | string);
|
|
666
|
+
get page_size(): number;
|
|
667
|
+
/**
|
|
668
|
+
* Property to get and set the current column to order by
|
|
669
|
+
*/
|
|
670
|
+
get column_order_by(): ColumnOrderBy | undefined;
|
|
671
|
+
set column_order_by(orderBy: ColumnOrderBy | undefined);
|
|
672
|
+
/**
|
|
673
|
+
* Property to set whether or not to always show header. By default will only show header if there is more than one column
|
|
674
|
+
*/
|
|
675
|
+
set always_show_header(showHeader: boolean | undefined | string);
|
|
676
|
+
/**
|
|
677
|
+
* Function to set additional columns to display. You can use this to set a specific name column as well, or accept the default.
|
|
678
|
+
*/
|
|
679
|
+
setAdditionalColumnsToDisplay: (cols: ColumnDef[]) => void;
|
|
680
|
+
/**
|
|
681
|
+
* Function to initialize the lf-repository-browser component
|
|
637
682
|
* @param provider LfRepositoryService service
|
|
638
683
|
* @param selectedNode the id of the node to select, or a Entry starting from the selected entry
|
|
639
684
|
*/
|
|
640
685
|
initAsync: (treeNodeService: LfTreeNodeService, selectedNode?: LfTreeNode) => Promise<void>;
|
|
686
|
+
/**
|
|
687
|
+
* This function will be called for each LfTreeNode to determine if it is selectable, when it is rendered
|
|
688
|
+
*/
|
|
641
689
|
isSelectable?: (treeNode: LfTreeNode) => Promise<boolean>;
|
|
642
|
-
|
|
690
|
+
/**
|
|
691
|
+
* Property to get and set whether multiple select is enabled on the component
|
|
692
|
+
*/
|
|
693
|
+
set multiple(value: boolean | string);
|
|
694
|
+
get multiple(): boolean;
|
|
695
|
+
/**
|
|
696
|
+
* Function to set selectedNodes. If current data does not include all the requested node, it will call getFolderChildren until there are no more, or maxFetchIterations is reached.
|
|
697
|
+
* @param nodesToSelect array of LfTreeNodes to select by id
|
|
698
|
+
* @param maxFetchIterations Max number of times to get data if the current data doesn't contain all of the requested nodes. Default is 5.
|
|
699
|
+
* @returns void
|
|
700
|
+
*/
|
|
643
701
|
setSelectedNodesAsync: (nodesToSelect: LfTreeNode[], maxFetchIterations?: number) => Promise<void>;
|
|
644
|
-
|
|
702
|
+
/**
|
|
703
|
+
* Function to refresh data in folder (get first page)
|
|
704
|
+
* @param clearSelectedValues Optional parameter to clear all the currently selected values. Default is true.
|
|
705
|
+
*/
|
|
706
|
+
refreshAsync: (clearSelectedValues?: boolean) => Promise<void>;
|
|
707
|
+
/**
|
|
708
|
+
* Function to open selected node(s). If there is just one container node it will open the container in the UI and emit the entryDblClicked event,
|
|
709
|
+
* if there is more than one node or it is not a container, it will just emit the entryDblClicked event
|
|
710
|
+
*/
|
|
645
711
|
openSelectedNodesAsync: () => Promise<void>;
|
|
712
|
+
/**
|
|
713
|
+
* Function to open focused node. If there is just one container node it will open the container in the UI and emit the entryDblClicked event
|
|
714
|
+
*/
|
|
646
715
|
openFocusedNodeAsync: () => Promise<void>;
|
|
647
716
|
/**
|
|
648
717
|
* Focuses the first item in the repository browser list
|
|
649
718
|
* TODO: Add an optional parameter to allow for focusing a specific node
|
|
650
719
|
*/
|
|
651
720
|
focus: () => void;
|
|
721
|
+
/** Event triggered on double click (open) of a node. This can be accompanied by the UI opening a single container */
|
|
652
722
|
entryDblClicked: CustomEvent<LfTreeNode[]>;
|
|
723
|
+
/** Event triggered on selection (click/space bar) of a node.*/
|
|
653
724
|
entrySelected: CustomEvent<LfTreeNode[] | undefined>;
|
|
725
|
+
/** Event triggered on focus of a node.*/
|
|
654
726
|
entryFocused: CustomEvent<LfTreeNode | undefined>;
|
|
655
727
|
|
|
656
728
|
|
|
@@ -687,16 +759,23 @@ export declare class LfRepositoryBrowserComponent {
|
|
|
687
759
|
|
|
688
760
|
|
|
689
761
|
|
|
690
|
-
private makeDataCall;
|
|
691
762
|
|
|
692
763
|
|
|
693
|
-
}
|
|
694
764
|
|
|
695
|
-
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
696
774
|
|
|
697
775
|
}
|
|
698
776
|
|
|
699
|
-
export declare class
|
|
777
|
+
export declare class LfRepositoryBrowserModule {
|
|
778
|
+
|
|
700
779
|
}
|
|
701
780
|
|
|
702
781
|
export declare class LfToolbarComponent {
|
|
@@ -719,6 +798,7 @@ export declare interface LfTreeNode {
|
|
|
719
798
|
isLeaf: boolean;
|
|
720
799
|
name: string;
|
|
721
800
|
path: string;
|
|
801
|
+
attributes?: Map<string, PropertyValue>;
|
|
722
802
|
}
|
|
723
803
|
|
|
724
804
|
export declare interface LfTreeNodePage {
|
|
@@ -735,7 +815,7 @@ export declare interface LfTreeNodeService {
|
|
|
735
815
|
* @param folder: string that represents the ID of the folder to get data from
|
|
736
816
|
* @param nextPage: string representing the next page requested. If undefined, the first page is returned
|
|
737
817
|
**/
|
|
738
|
-
getFolderChildrenAsync(folder: LfTreeNode, nextPage?: string): Promise<LfTreeNodePage>;
|
|
818
|
+
getFolderChildrenAsync(folder: LfTreeNode, nextPage?: string, orderBy?: ColumnOrderBy): Promise<LfTreeNodePage>;
|
|
739
819
|
/**
|
|
740
820
|
* Returns the root LfTreeNode
|
|
741
821
|
*/
|
|
@@ -782,6 +862,11 @@ declare enum LoginState {
|
|
|
782
862
|
LoggedOut = "LoggedOut"
|
|
783
863
|
}
|
|
784
864
|
|
|
865
|
+
declare interface PropertyValue {
|
|
866
|
+
value?: string | Date | number;
|
|
867
|
+
displayValue?: string;
|
|
868
|
+
}
|
|
869
|
+
|
|
785
870
|
declare enum RedirectBehavior {
|
|
786
871
|
Replace = "Replace",
|
|
787
872
|
Popup = "Popup",
|