@laserfiche/types-lf-ui-components 13.0.1 → 13.1.0--preview-2928608997

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.
Files changed (2) hide show
  1. package/index.d.ts +113 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -31,6 +31,9 @@
31
31
 
32
32
 
33
33
 
34
+
35
+
36
+
34
37
 
35
38
 
36
39
 
@@ -198,13 +201,6 @@ declare interface IUserTrackingEvent {
198
201
  userId: string;
199
202
  }
200
203
 
201
- export declare class LfBreadcrumbsComponent {
202
- breadcrumbs: TreeNode[];
203
- breadcrumbSelected: CustomEvent<TreeNode | undefined>;
204
-
205
-
206
- }
207
-
208
204
  export declare class LfChecklistComponent {
209
205
 
210
206
  action_button_text: string | undefined;
@@ -695,6 +691,77 @@ export declare class LfMetadataModule {
695
691
 
696
692
  }
697
693
 
694
+ export declare class LfRepositoryBrowserComponent {
695
+
696
+
697
+
698
+
699
+
700
+ get breadcrumbs(): LfTreeNode[];
701
+ get currentFolder(): LfTreeNode | undefined;
702
+ itemSize: number;
703
+ /**
704
+ * function to initialize the lf-file-explorer component
705
+ * @param provider LfRepositoryService service
706
+ * @param selectedNode the id of the node to select, or a Entry starting from the selected entry
707
+ */
708
+ initAsync: (treeNodeService: LfTreeNodeService, selectedNode?: string | LfTreeNode | undefined) => Promise<void>;
709
+ isSelectable?: (treeNode: LfTreeNode) => Promise<boolean>;
710
+ multiple: boolean;
711
+ setSelectedValuesAsync: (valuesToSelect: LfTreeNode[]) => Promise<void>;
712
+ refreshAsync: () => Promise<void>;
713
+ /**
714
+ * Focuses the first item in the repository browser list
715
+ * TODO: Add an optional parameter to allow for focusing a specific node
716
+ */
717
+ focus: () => void;
718
+ entrySelected: CustomEvent<LfTreeNode[] | undefined>;
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+ private makeDataCall;
754
+
755
+
756
+ }
757
+
758
+ export declare class LfRepositoryBrowserModule {
759
+
760
+ }
761
+
762
+ export declare class LfSelectionListModule {
763
+ }
764
+
698
765
  export declare class LfToolbarComponent {
699
766
  displayed_options: ToolbarOption[];
700
767
  dropdown_options: ToolbarOption[];
@@ -748,6 +815,45 @@ declare abstract class LfTreeKeysDirective {
748
815
 
749
816
 
750
817
 
818
+ }
819
+
820
+ export declare interface LfTreeNode {
821
+ id: string;
822
+ icon: string | string[];
823
+ isContainer: boolean;
824
+ isLeaf: boolean;
825
+ name: string;
826
+ path: string;
827
+ }
828
+
829
+ export declare interface LfTreeNodePage {
830
+ page: LfTreeNode[];
831
+ nextPage: string | undefined;
832
+ }
833
+
834
+ export declare interface LfTreeNodeService {
835
+ /**
836
+ * Gets entry data for the lf-repository-browser to display
837
+ * @param folder: string that represents the ID of the folder to get data from
838
+ * @param nextPage: string representing the next page requested
839
+ **/
840
+ getFolderChildrenAsync(folder: LfTreeNode, nextPage?: string): Promise<LfTreeNodePage>;
841
+ /**
842
+ * Returns the root entry
843
+ */
844
+ getRootTreeNodeAsync(): Promise<LfTreeNode | undefined>;
845
+ /**
846
+ * Gets the parent Entry of the passed in node
847
+ * @param treeNode: Entry object to get the parent of
848
+ * returns - Promise with the parent of the parameter entry or undefined if its the root of the entry does not have a parent
849
+ */
850
+ getParentTreeNodeAsync(treeNode: LfTreeNode): Promise<LfTreeNode | undefined>;
851
+ /**
852
+ * Gets the full Entry data of an entry id
853
+ * @param id: string that represents the id of an Entry to get
854
+ * returns - Entry associated with the id parameter or undefined if the entry does not exist
855
+ */
856
+ getTreeNodeByIdAsync(id: string): Promise<LfTreeNode | undefined>;
751
857
  }
752
858
 
753
859
  export declare interface LfTreeProviders {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laserfiche/types-lf-ui-components",
3
- "version": "13.0.1",
3
+ "version": "13.1.0--preview-2928608997",
4
4
  "scripts": {},
5
5
  "dependencies": {},
6
6
  "devDependencies": {},