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

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 +111 -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,75 @@ 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
+
754
+ }
755
+
756
+ export declare class LfRepositoryBrowserModule {
757
+
758
+ }
759
+
760
+ export declare class LfSelectionListModule {
761
+ }
762
+
698
763
  export declare class LfToolbarComponent {
699
764
  displayed_options: ToolbarOption[];
700
765
  dropdown_options: ToolbarOption[];
@@ -748,6 +813,45 @@ declare abstract class LfTreeKeysDirective {
748
813
 
749
814
 
750
815
 
816
+ }
817
+
818
+ export declare interface LfTreeNode {
819
+ id: string;
820
+ icon: string | string[];
821
+ isContainer: boolean;
822
+ isLeaf: boolean;
823
+ name: string;
824
+ path: string;
825
+ }
826
+
827
+ export declare interface LfTreeNodePage {
828
+ page: LfTreeNode[];
829
+ nextPage: string | undefined;
830
+ }
831
+
832
+ export declare interface LfTreeNodeService {
833
+ /**
834
+ * Gets entry data for the lf-repository-browser to display
835
+ * @param folder: string that represents the ID of the folder to get data from
836
+ * @param nextPage: string representing the next page requested
837
+ **/
838
+ getFolderChildrenAsync(folder: LfTreeNode, nextPage?: string): Promise<LfTreeNodePage>;
839
+ /**
840
+ * Returns the root entry
841
+ */
842
+ getRootTreeNodeAsync(): Promise<LfTreeNode | undefined>;
843
+ /**
844
+ * Gets the parent Entry of the passed in node
845
+ * @param treeNode: Entry object to get the parent of
846
+ * returns - Promise with the parent of the parameter entry or undefined if its the root of the entry does not have a parent
847
+ */
848
+ getParentTreeNodeAsync(treeNode: LfTreeNode): Promise<LfTreeNode | undefined>;
849
+ /**
850
+ * Gets the full Entry data of an entry id
851
+ * @param id: string that represents the id of an Entry to get
852
+ * returns - Entry associated with the id parameter or undefined if the entry does not exist
853
+ */
854
+ getTreeNodeByIdAsync(id: string): Promise<LfTreeNode | undefined>;
751
855
  }
752
856
 
753
857
  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-2920922867",
4
4
  "scripts": {},
5
5
  "dependencies": {},
6
6
  "devDependencies": {},