@finsys/core 1.2.0 → 1.3.0
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/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -370,6 +370,11 @@ declare const FIELD_TYPE_DEFINITIONS: FormFieldTypeDefinitions;
|
|
|
370
370
|
declare const DEFAULT_VALIDATOR_DEFINITIONS: FormValidatorDefinitions;
|
|
371
371
|
declare function getBaseFieldSpecs(): FieldData[];
|
|
372
372
|
declare function getBaseCategories(): Category[];
|
|
373
|
+
/**
|
|
374
|
+
* Returns a cached Map of base field name → FieldData.
|
|
375
|
+
* Keyed by each field's `name` property from the base specs.
|
|
376
|
+
*/
|
|
377
|
+
declare function getBaseFieldSpecMap(): Map<string, FieldData>;
|
|
373
378
|
declare function getBaseFieldNames(): string[];
|
|
374
379
|
|
|
375
|
-
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, evaluateExpression, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecs, getCategoryName, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupFieldsByCategory, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
|
380
|
+
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, evaluateExpression, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecMap, getBaseFieldSpecs, getCategoryName, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupFieldsByCategory, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -370,6 +370,11 @@ declare const FIELD_TYPE_DEFINITIONS: FormFieldTypeDefinitions;
|
|
|
370
370
|
declare const DEFAULT_VALIDATOR_DEFINITIONS: FormValidatorDefinitions;
|
|
371
371
|
declare function getBaseFieldSpecs(): FieldData[];
|
|
372
372
|
declare function getBaseCategories(): Category[];
|
|
373
|
+
/**
|
|
374
|
+
* Returns a cached Map of base field name → FieldData.
|
|
375
|
+
* Keyed by each field's `name` property from the base specs.
|
|
376
|
+
*/
|
|
377
|
+
declare function getBaseFieldSpecMap(): Map<string, FieldData>;
|
|
373
378
|
declare function getBaseFieldNames(): string[];
|
|
374
379
|
|
|
375
|
-
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, evaluateExpression, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecs, getCategoryName, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupFieldsByCategory, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
|
380
|
+
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, evaluateExpression, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecMap, getBaseFieldSpecs, getCategoryName, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupFieldsByCategory, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
package/dist/index.js
CHANGED
|
@@ -8989,6 +8989,20 @@ function getBaseFieldSpecs() {
|
|
|
8989
8989
|
function getBaseCategories() {
|
|
8990
8990
|
return BASE_FIELD_SPECS.categories;
|
|
8991
8991
|
}
|
|
8992
|
+
var cachedFieldSpecMap = null;
|
|
8993
|
+
function getBaseFieldSpecMap() {
|
|
8994
|
+
if (cachedFieldSpecMap) {
|
|
8995
|
+
return cachedFieldSpecMap;
|
|
8996
|
+
}
|
|
8997
|
+
const map = /* @__PURE__ */ new Map();
|
|
8998
|
+
for (const field of BASE_FIELD_SPECS.fields) {
|
|
8999
|
+
if (field.name) {
|
|
9000
|
+
map.set(field.name, field);
|
|
9001
|
+
}
|
|
9002
|
+
}
|
|
9003
|
+
cachedFieldSpecMap = map;
|
|
9004
|
+
return cachedFieldSpecMap;
|
|
9005
|
+
}
|
|
8992
9006
|
var cachedFieldNames = null;
|
|
8993
9007
|
function getBaseFieldNames() {
|
|
8994
9008
|
if (cachedFieldNames) {
|
|
@@ -9023,6 +9037,7 @@ export {
|
|
|
9023
9037
|
generateSurveyJson,
|
|
9024
9038
|
getBaseCategories,
|
|
9025
9039
|
getBaseFieldNames,
|
|
9040
|
+
getBaseFieldSpecMap,
|
|
9026
9041
|
getBaseFieldSpecs,
|
|
9027
9042
|
getCategoryName,
|
|
9028
9043
|
getPastMonthLabel,
|