@flamingo-stack/openframe-frontend-core 0.0.665-2372.7061.1 → 0.0.665-2372.7066.1
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/dist/components/meeting-scheduler/index.cjs +3 -0
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +3 -0
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/schemas/meeting-booking-schema.cjs +9 -0
- package/dist/schemas/meeting-booking-schema.cjs.map +1 -1
- package/dist/schemas/meeting-booking-schema.d.ts +10 -0
- package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
- package/dist/schemas/meeting-booking-schema.js +8 -1
- package/dist/schemas/meeting-booking-schema.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/meeting-form-field-types.test.tsx +62 -0
- package/src/__tests__/meeting-scheduler-details-first.test.tsx +33 -0
- package/src/schemas/meeting-booking-schema.ts +17 -0
|
@@ -193,6 +193,9 @@ function resolveFormFieldControl(field) {
|
|
|
193
193
|
const asControl = Object.prototype.hasOwnProperty.call(FORM_FIELD_TYPES, fieldType) ? fieldType : void 0;
|
|
194
194
|
return _nullishCoalesce(_nullishCoalesce(usable(_nullishCoalesce(FIELD_TYPE_CONTROLS[fieldType], () => ( asControl))), () => ( usable(DATA_TYPE_CONTROLS[(_nullishCoalesce(field.dataType, () => ( ""))).toLowerCase()]))), () => ( (withOptions ? "select" : "text")));
|
|
195
195
|
}
|
|
196
|
+
var FORM_FIELD_TYPES_WITH_OPTIONS = SUPPORTED_FORM_FIELD_TYPES.filter(
|
|
197
|
+
(type) => FORM_FIELD_TYPES[type].hasOptions
|
|
198
|
+
);
|
|
196
199
|
function normalizeFormField(field) {
|
|
197
200
|
const control = resolveFormFieldControl(field);
|
|
198
201
|
if (control === "display" || control === "unanswerable") return null;
|