@sprucelabs/spruce-appointment-utils 14.0.150 → 14.0.151
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/build/esm/viewControllers/AbstractCapabilityCardViewController.d.ts +4 -4
- package/build/esm/viewControllers/AbstractCapabilityCardViewController.js +4 -2
- package/build/viewControllers/AbstractCapabilityCardViewController.d.ts +4 -4
- package/build/viewControllers/AbstractCapabilityCardViewController.js +4 -2
- package/package.json +1 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import EditOverrideDetailsCardViewController from '../addingServices/EditOverrideDetailsCard.vc';
|
|
3
|
-
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
4
|
-
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
-
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
6
|
-
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
7
3
|
export default abstract class AbstractCapabilityCardViewController extends AbstractViewController<Card> {
|
|
8
4
|
protected activeRecordCardVc: ActiveRecordCardViewController;
|
|
9
5
|
protected toggleDoesOfferHandler?: ToggleDoesOfferHandler;
|
|
@@ -37,4 +33,8 @@ export default abstract class AbstractCapabilityCardViewController extends Abstr
|
|
|
37
33
|
getLocationId(): string;
|
|
38
34
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
39
35
|
}
|
|
36
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
37
|
+
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
38
|
+
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
39
|
+
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
40
40
|
export {};
|
|
@@ -19,8 +19,10 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
|
|
|
19
19
|
id: row.id,
|
|
20
20
|
columnWidths: ['content', 'fill'],
|
|
21
21
|
shouldRenderRowDividers: true,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
search: {
|
|
23
|
+
placeholder: 'Search services...',
|
|
24
|
+
shouldSearchClientSide: true,
|
|
25
|
+
},
|
|
24
26
|
header: {
|
|
25
27
|
title: row.name,
|
|
26
28
|
},
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import EditOverrideDetailsCardViewController from '../addingServices/EditOverrideDetailsCard.vc';
|
|
3
|
-
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
4
|
-
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
-
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
6
|
-
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
7
3
|
export default abstract class AbstractCapabilityCardViewController extends AbstractViewController<Card> {
|
|
8
4
|
protected activeRecordCardVc: ActiveRecordCardViewController;
|
|
9
5
|
protected toggleDoesOfferHandler?: ToggleDoesOfferHandler;
|
|
@@ -37,4 +33,8 @@ export default abstract class AbstractCapabilityCardViewController extends Abstr
|
|
|
37
33
|
getLocationId(): string;
|
|
38
34
|
render(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
39
35
|
}
|
|
36
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
37
|
+
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
38
|
+
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
39
|
+
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
40
40
|
export {};
|
|
@@ -12,8 +12,10 @@ class AbstractCapabilityCardViewController extends heartwood_view_controllers_1.
|
|
|
12
12
|
id: row.id,
|
|
13
13
|
columnWidths: ['content', 'fill'],
|
|
14
14
|
shouldRenderRowDividers: true,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
search: {
|
|
16
|
+
placeholder: 'Search services...',
|
|
17
|
+
shouldSearchClientSide: true,
|
|
18
|
+
},
|
|
17
19
|
header: {
|
|
18
20
|
title: row.name,
|
|
19
21
|
},
|