@sprucelabs/spruce-organization-utils 3.0.31 → 3.0.32
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AbstractViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
2
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
|
+
type Organization = SpruceSchemas.Spruce.v2020_07_22.Organization;
|
|
4
|
+
type Button = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Button;
|
|
5
|
+
type Row = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ListRow;
|
|
6
|
+
type OnDeleteHandler = (organization: Organization) => void | Promise<void>;
|
|
7
|
+
type OnEditHandler = (organization: Organization) => void | Promise<void>;
|
|
8
|
+
export type OrganizationListCardViewControllerOptions = {
|
|
9
9
|
onDelete?: OnDeleteHandler;
|
|
10
10
|
onEdit?: OnEditHandler;
|
|
11
11
|
footerButtons?: Button[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AbstractViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
2
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
|
+
type Organization = SpruceSchemas.Spruce.v2020_07_22.Organization;
|
|
4
|
+
type Button = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Button;
|
|
5
|
+
type Row = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ListRow;
|
|
6
|
+
type OnDeleteHandler = (organization: Organization) => void | Promise<void>;
|
|
7
|
+
type OnEditHandler = (organization: Organization) => void | Promise<void>;
|
|
8
|
+
export type OrganizationListCardViewControllerOptions = {
|
|
9
9
|
onDelete?: OnDeleteHandler;
|
|
10
10
|
onEdit?: OnEditHandler;
|
|
11
11
|
footerButtons?: Button[];
|