@rippling/rippling-sdk 0.2.0-alpha.59 → 0.2.0-alpha.60
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/examples/manifest/dental-practice-management/dental-practice-management.ts +5 -4
- package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +7 -10
- package/examples/manifest/dental-practice-management/functions/operatory-list.ts +7 -10
- package/examples/manifest/dental-practice-management/functions/patient-list.ts +7 -10
- package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +7 -10
- package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +7 -10
- package/examples/manifest/gym-membership-management/functions/member-list.ts +7 -10
- package/examples/manifest/gym-membership-management/functions/today-schedule.ts +7 -10
- package/examples/manifest/gym-membership-management/functions/trainer-list.ts +7 -10
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +5 -4
- package/examples/manifest/simple-todo-app/functions/todo-list.ts +7 -10
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +2 -2
- package/internal/tslib.js +0 -4
- package/lib/manifest/manifest-function.d.mts +3 -3
- package/lib/manifest/manifest-function.d.ts +3 -3
- package/lib/manifest/manifest-function.js +3 -3
- package/lib/manifest/manifest-function.mjs +3 -3
- package/package.json +1 -1
- package/src/lib/manifest/manifest-function.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/examples/sdui/sdui-crud-todo/rippling-function.ts +0 -358
- package/examples/sdui/sdui-showcase/rippling-function.ts +0 -366
- package/examples/sdui/sdui-tab-multi-view/rippling-function.ts +0 -1042
- package/examples/sdui/vote/rippling-function.ts +0 -315
- package/lib/sdui/actions.d.mts +0 -25
- package/lib/sdui/actions.d.mts.map +0 -1
- package/lib/sdui/actions.d.ts +0 -25
- package/lib/sdui/actions.d.ts.map +0 -1
- package/lib/sdui/actions.js +0 -63
- package/lib/sdui/actions.js.map +0 -1
- package/lib/sdui/actions.mjs +0 -52
- package/lib/sdui/actions.mjs.map +0 -1
- package/lib/sdui/component.d.mts +0 -58
- package/lib/sdui/component.d.mts.map +0 -1
- package/lib/sdui/component.d.ts +0 -58
- package/lib/sdui/component.d.ts.map +0 -1
- package/lib/sdui/component.js +0 -128
- package/lib/sdui/component.js.map +0 -1
- package/lib/sdui/component.mjs +0 -124
- package/lib/sdui/component.mjs.map +0 -1
- package/lib/sdui/components.d.mts +0 -1047
- package/lib/sdui/components.d.mts.map +0 -1
- package/lib/sdui/components.d.ts +0 -1047
- package/lib/sdui/components.d.ts.map +0 -1
- package/lib/sdui/components.js +0 -845
- package/lib/sdui/components.js.map +0 -1
- package/lib/sdui/components.mjs +0 -840
- package/lib/sdui/components.mjs.map +0 -1
- package/lib/sdui/conditions.d.mts +0 -25
- package/lib/sdui/conditions.d.mts.map +0 -1
- package/lib/sdui/conditions.d.ts +0 -25
- package/lib/sdui/conditions.d.ts.map +0 -1
- package/lib/sdui/conditions.js +0 -47
- package/lib/sdui/conditions.js.map +0 -1
- package/lib/sdui/conditions.mjs +0 -35
- package/lib/sdui/conditions.mjs.map +0 -1
- package/lib/sdui/directives.d.mts +0 -18
- package/lib/sdui/directives.d.mts.map +0 -1
- package/lib/sdui/directives.d.ts +0 -18
- package/lib/sdui/directives.d.ts.map +0 -1
- package/lib/sdui/directives.js +0 -31
- package/lib/sdui/directives.js.map +0 -1
- package/lib/sdui/directives.mjs +0 -24
- package/lib/sdui/directives.mjs.map +0 -1
- package/lib/sdui/index.d.mts +0 -375
- package/lib/sdui/index.d.mts.map +0 -1
- package/lib/sdui/index.d.ts +0 -375
- package/lib/sdui/index.d.ts.map +0 -1
- package/lib/sdui/index.js +0 -386
- package/lib/sdui/index.js.map +0 -1
- package/lib/sdui/index.mjs +0 -215
- package/lib/sdui/index.mjs.map +0 -1
- package/lib/sdui/propTypes.d.mts +0 -5971
- package/lib/sdui/propTypes.d.mts.map +0 -1
- package/lib/sdui/propTypes.d.ts +0 -5971
- package/lib/sdui/propTypes.d.ts.map +0 -1
- package/lib/sdui/propTypes.js +0 -14
- package/lib/sdui/propTypes.js.map +0 -1
- package/lib/sdui/propTypes.mjs +0 -13
- package/lib/sdui/propTypes.mjs.map +0 -1
- package/lib/sdui/props.d.mts +0 -12
- package/lib/sdui/props.d.mts.map +0 -1
- package/lib/sdui/props.d.ts +0 -12
- package/lib/sdui/props.d.ts.map +0 -1
- package/lib/sdui/props.js +0 -25
- package/lib/sdui/props.js.map +0 -1
- package/lib/sdui/props.mjs +0 -21
- package/lib/sdui/props.mjs.map +0 -1
- package/lib/sdui/render.d.mts +0 -23
- package/lib/sdui/render.d.mts.map +0 -1
- package/lib/sdui/render.d.ts +0 -23
- package/lib/sdui/render.d.ts.map +0 -1
- package/lib/sdui/render.js +0 -48
- package/lib/sdui/render.js.map +0 -1
- package/lib/sdui/render.mjs +0 -45
- package/lib/sdui/render.mjs.map +0 -1
- package/lib/sdui/state.d.mts +0 -22
- package/lib/sdui/state.d.mts.map +0 -1
- package/lib/sdui/state.d.ts +0 -22
- package/lib/sdui/state.d.ts.map +0 -1
- package/lib/sdui/state.js +0 -59
- package/lib/sdui/state.js.map +0 -1
- package/lib/sdui/state.mjs +0 -55
- package/lib/sdui/state.mjs.map +0 -1
- package/lib/sdui.d.mts +0 -3
- package/lib/sdui.d.mts.map +0 -1
- package/lib/sdui.d.ts +0 -3
- package/lib/sdui.d.ts.map +0 -1
- package/lib/sdui.js +0 -8
- package/lib/sdui.js.map +0 -1
- package/lib/sdui.mjs +0 -3
- package/lib/sdui.mjs.map +0 -1
- package/src/lib/sdui/actions.ts +0 -71
- package/src/lib/sdui/component.ts +0 -162
- package/src/lib/sdui/components.ts +0 -1572
- package/src/lib/sdui/conditions.ts +0 -59
- package/src/lib/sdui/directives.ts +0 -45
- package/src/lib/sdui/index.ts +0 -650
- package/src/lib/sdui/propTypes.ts +0 -8087
- package/src/lib/sdui/props.ts +0 -32
- package/src/lib/sdui/render.ts +0 -66
- package/src/lib/sdui/state.ts +0 -66
- package/src/lib/sdui.ts +0 -2
|
@@ -571,6 +571,7 @@ new CustomObjectPageLayout(planObj, {
|
|
|
571
571
|
// ── SDUI object-list tabs ───────────────────────────────────────────────────
|
|
572
572
|
const sduiObjectListDependencies = {
|
|
573
573
|
'@rippling/rippling-sdk': '^0.2.0-alpha.33',
|
|
574
|
+
'@rippling/pebble-sdui-web': '^0.3.0',
|
|
574
575
|
};
|
|
575
576
|
|
|
576
577
|
function loadFunctionCode(filename: string): string {
|
|
@@ -604,7 +605,7 @@ function createObjectListPage(props: {
|
|
|
604
605
|
const patientListPage = createObjectListPage({
|
|
605
606
|
codeFilename: 'patient-list.ts',
|
|
606
607
|
functionApiName: 'dental_patient_list_fn',
|
|
607
|
-
functionName: '
|
|
608
|
+
functionName: 'renderPatients',
|
|
608
609
|
functionDescription: 'SDUI ObjectListView for patient records',
|
|
609
610
|
pageId: 'dental_patients',
|
|
610
611
|
pageName: 'Patients',
|
|
@@ -613,7 +614,7 @@ const patientListPage = createObjectListPage({
|
|
|
613
614
|
const operatoryListPage = createObjectListPage({
|
|
614
615
|
codeFilename: 'operatory-list.ts',
|
|
615
616
|
functionApiName: 'dental_operatory_list_fn',
|
|
616
|
-
functionName: '
|
|
617
|
+
functionName: 'renderOperatories',
|
|
617
618
|
functionDescription: 'SDUI ObjectListView for operatory records',
|
|
618
619
|
pageId: 'dental_operatories',
|
|
619
620
|
pageName: 'Operatories',
|
|
@@ -622,7 +623,7 @@ const operatoryListPage = createObjectListPage({
|
|
|
622
623
|
const chairBoardPage = createObjectListPage({
|
|
623
624
|
codeFilename: 'chair-schedule.ts',
|
|
624
625
|
functionApiName: 'dental_chair_schedule_fn',
|
|
625
|
-
functionName: '
|
|
626
|
+
functionName: 'renderChairSchedule',
|
|
626
627
|
functionDescription: 'SDUI ObjectListView for appointments (init + spec render)',
|
|
627
628
|
pageId: 'dental_chair_schedule',
|
|
628
629
|
pageName: 'Chair schedule',
|
|
@@ -631,7 +632,7 @@ const chairBoardPage = createObjectListPage({
|
|
|
631
632
|
const treatmentPlanListPage = createObjectListPage({
|
|
632
633
|
codeFilename: 'treatment-plan-list.ts',
|
|
633
634
|
functionApiName: 'dental_treatment_plan_list_fn',
|
|
634
|
-
functionName: '
|
|
635
|
+
functionName: 'renderTreatmentPlans',
|
|
635
636
|
functionDescription: 'SDUI ObjectListView for treatment plan records',
|
|
636
637
|
pageId: 'dental_treatment_plans',
|
|
637
638
|
pageName: 'Treatment plans',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'dental_appointment__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'dental_operatory__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'dental_patient__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'dental_treatment_plan__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'gym_class_enrollment__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'gym_member__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'gym_class_session__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'gym_trainer__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -633,6 +633,7 @@ new CustomObjectPageLayout(enrollmentObj, {
|
|
|
633
633
|
// ── SDUI object-list tabs ───────────────────────────────────────────────────
|
|
634
634
|
const sduiObjectListDependencies = {
|
|
635
635
|
'@rippling/rippling-sdk': '^0.2.0-alpha.33',
|
|
636
|
+
'@rippling/pebble-sdui-web': '^0.3.0',
|
|
636
637
|
};
|
|
637
638
|
|
|
638
639
|
function loadFunctionCode(filename: string): string {
|
|
@@ -666,7 +667,7 @@ function createObjectListPage(props: {
|
|
|
666
667
|
const memberListPage = createObjectListPage({
|
|
667
668
|
codeFilename: 'member-list.ts',
|
|
668
669
|
functionApiName: 'gym_member_list_fn',
|
|
669
|
-
functionName: '
|
|
670
|
+
functionName: 'renderMembers',
|
|
670
671
|
functionDescription: 'SDUI ObjectListView for member records',
|
|
671
672
|
pageId: 'gym_members',
|
|
672
673
|
pageName: 'Members',
|
|
@@ -675,7 +676,7 @@ const memberListPage = createObjectListPage({
|
|
|
675
676
|
const trainerListPage = createObjectListPage({
|
|
676
677
|
codeFilename: 'trainer-list.ts',
|
|
677
678
|
functionApiName: 'gym_trainer_list_fn',
|
|
678
|
-
functionName: '
|
|
679
|
+
functionName: 'renderTrainers',
|
|
679
680
|
functionDescription: 'SDUI ObjectListView for trainer records',
|
|
680
681
|
pageId: 'gym_trainers',
|
|
681
682
|
pageName: 'Trainers',
|
|
@@ -684,7 +685,7 @@ const trainerListPage = createObjectListPage({
|
|
|
684
685
|
const todaySchedulePage = createObjectListPage({
|
|
685
686
|
codeFilename: 'today-schedule.ts',
|
|
686
687
|
functionApiName: 'gym_today_schedule_fn',
|
|
687
|
-
functionName: '
|
|
688
|
+
functionName: 'renderTodaySchedule',
|
|
688
689
|
functionDescription:
|
|
689
690
|
'Searchable grid of class sessions — pair with list view “Today’s class sessions” or filter by date',
|
|
690
691
|
pageId: 'gym_today_schedule',
|
|
@@ -694,7 +695,7 @@ const todaySchedulePage = createObjectListPage({
|
|
|
694
695
|
const checkInDeskPage = createObjectListPage({
|
|
695
696
|
codeFilename: 'check-in-desk.ts',
|
|
696
697
|
functionApiName: 'gym_check_in_desk_fn',
|
|
697
|
-
functionName: '
|
|
698
|
+
functionName: 'renderCheckInDesk',
|
|
698
699
|
functionDescription: 'Searchable roster grid — update attendance and checked-in time as members arrive',
|
|
699
700
|
pageId: 'gym_check_in_desk',
|
|
700
701
|
pageName: 'Check-in desk',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionContext, FunctionEvent, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
-
import
|
|
2
|
+
import { ObjectListView, render } from '@rippling/pebble-sdui-web/catalogs/custom-apps';
|
|
3
3
|
|
|
4
4
|
const OBJECT = 'simple_todo__c';
|
|
5
5
|
|
|
@@ -10,17 +10,14 @@ export async function onRipplingEvent(
|
|
|
10
10
|
const action = event['parameters']?.action;
|
|
11
11
|
|
|
12
12
|
if (!action || action === 'init') {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
canSearchInGrid: true,
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
13
|
+
const spec = render({
|
|
14
|
+
root: ObjectListView({
|
|
15
|
+
props: { objectApiName: OBJECT },
|
|
16
|
+
}),
|
|
17
|
+
state: {},
|
|
21
18
|
});
|
|
22
19
|
return new FunctionResponse({
|
|
23
|
-
body: { spec: JSON.stringify(
|
|
20
|
+
body: { spec: JSON.stringify(spec) },
|
|
24
21
|
statusCode: 200,
|
|
25
22
|
headers: {},
|
|
26
23
|
message: '',
|
|
@@ -131,10 +131,10 @@ new CustomObjectPageLayout(todoObj, {
|
|
|
131
131
|
// ── SDUI page (ObjectListView) ──────────────────────────────────────────────
|
|
132
132
|
const todoListFn = new ManifestFunction(manifest, {
|
|
133
133
|
apiName: 'simple_todo_list_fn',
|
|
134
|
-
name: '
|
|
134
|
+
name: 'renderTodos',
|
|
135
135
|
description: 'SDUI ObjectListView for todo records',
|
|
136
136
|
code: fs.readFileSync(path.join(__dirname, 'functions', 'todo-list.ts'), 'utf-8'),
|
|
137
|
-
dependencies: { '@rippling/rippling-sdk': '^0.2.0-alpha.33' },
|
|
137
|
+
dependencies: { '@rippling/rippling-sdk': '^0.2.0-alpha.33', '@rippling/pebble-sdui-web': '^0.3.0' },
|
|
138
138
|
isAsync: false,
|
|
139
139
|
});
|
|
140
140
|
|
package/internal/tslib.js
CHANGED
|
@@ -5,7 +5,6 @@ exports.__classPrivateFieldSet = __classPrivateFieldSet;
|
|
|
5
5
|
exports.__classPrivateFieldGet = __classPrivateFieldGet;
|
|
6
6
|
exports.__importStar = __importStar;
|
|
7
7
|
exports.__exportStar = __exportStar;
|
|
8
|
-
exports.__importDefault = __importDefault;
|
|
9
8
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
10
9
|
if (kind === "m")
|
|
11
10
|
throw new TypeError("Private method is not writable");
|
|
@@ -80,6 +79,3 @@ function __exportStar(m, o) {
|
|
|
80
79
|
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
81
80
|
__createBinding(o, m, p);
|
|
82
81
|
}
|
|
83
|
-
function __importDefault(mod) {
|
|
84
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
85
|
-
}
|
|
@@ -61,9 +61,9 @@ export interface ManifestFunctionProps {
|
|
|
61
61
|
* serverless infrastructure. The handler must export `onRipplingEvent`.
|
|
62
62
|
*
|
|
63
63
|
* Functions have two primary uses:
|
|
64
|
-
* 1. **
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* 1. **Rendering SDUI for Custom Apps** — the function returns an SDUI spec
|
|
65
|
+
* payload that renders as a page tab. Wrap the function in an {@link SduiPage}
|
|
66
|
+
* and reference it from an {@link App}.
|
|
67
67
|
* 2. **Workflow / event handlers** — functions invoked from rules, automations,
|
|
68
68
|
* or callbacks that do not render UI.
|
|
69
69
|
*
|
|
@@ -61,9 +61,9 @@ export interface ManifestFunctionProps {
|
|
|
61
61
|
* serverless infrastructure. The handler must export `onRipplingEvent`.
|
|
62
62
|
*
|
|
63
63
|
* Functions have two primary uses:
|
|
64
|
-
* 1. **
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* 1. **Rendering SDUI for Custom Apps** — the function returns an SDUI spec
|
|
65
|
+
* payload that renders as a page tab. Wrap the function in an {@link SduiPage}
|
|
66
|
+
* and reference it from an {@link App}.
|
|
67
67
|
* 2. **Workflow / event handlers** — functions invoked from rules, automations,
|
|
68
68
|
* or callbacks that do not render UI.
|
|
69
69
|
*
|
|
@@ -10,9 +10,9 @@ const _existing_component_fields_1 = require("./_existing-component-fields.js");
|
|
|
10
10
|
* serverless infrastructure. The handler must export `onRipplingEvent`.
|
|
11
11
|
*
|
|
12
12
|
* Functions have two primary uses:
|
|
13
|
-
* 1. **
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* 1. **Rendering SDUI for Custom Apps** — the function returns an SDUI spec
|
|
14
|
+
* payload that renders as a page tab. Wrap the function in an {@link SduiPage}
|
|
15
|
+
* and reference it from an {@link App}.
|
|
16
16
|
* 2. **Workflow / event handlers** — functions invoked from rules, automations,
|
|
17
17
|
* or callbacks that do not render UI.
|
|
18
18
|
*
|
|
@@ -7,9 +7,9 @@ import { optionalStringComponentField, requireStringComponentField } from "./_ex
|
|
|
7
7
|
* serverless infrastructure. The handler must export `onRipplingEvent`.
|
|
8
8
|
*
|
|
9
9
|
* Functions have two primary uses:
|
|
10
|
-
* 1. **
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* 1. **Rendering SDUI for Custom Apps** — the function returns an SDUI spec
|
|
11
|
+
* payload that renders as a page tab. Wrap the function in an {@link SduiPage}
|
|
12
|
+
* and reference it from an {@link App}.
|
|
13
13
|
* 2. **Workflow / event handlers** — functions invoked from rules, automations,
|
|
14
14
|
* or callbacks that do not render UI.
|
|
15
15
|
*
|
package/package.json
CHANGED
|
@@ -64,9 +64,9 @@ export interface ManifestFunctionProps {
|
|
|
64
64
|
* serverless infrastructure. The handler must export `onRipplingEvent`.
|
|
65
65
|
*
|
|
66
66
|
* Functions have two primary uses:
|
|
67
|
-
* 1. **
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* 1. **Rendering SDUI for Custom Apps** — the function returns an SDUI spec
|
|
68
|
+
* payload that renders as a page tab. Wrap the function in an {@link SduiPage}
|
|
69
|
+
* and reference it from an {@link App}.
|
|
70
70
|
* 2. **Workflow / event handlers** — functions invoked from rules, automations,
|
|
71
71
|
* or callbacks that do not render UI.
|
|
72
72
|
*
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.60'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.60";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.60";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.60'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.60'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|