form-builder-pro 1.4.1 → 1.4.3
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.css +65 -3
- package/dist/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +950 -130
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +950 -130
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -530,6 +530,36 @@ video {
|
|
|
530
530
|
|
|
531
531
|
--radius: 0.5rem;
|
|
532
532
|
}
|
|
533
|
+
|
|
534
|
+
.dark {
|
|
535
|
+
--background: 222.2 84% 4.9%;
|
|
536
|
+
--foreground: 210 40% 98%;
|
|
537
|
+
|
|
538
|
+
--card: 222.2 84% 4.9%;
|
|
539
|
+
--card-foreground: 210 40% 98%;
|
|
540
|
+
|
|
541
|
+
--popover: 222.2 84% 4.9%;
|
|
542
|
+
--popover-foreground: 210 40% 98%;
|
|
543
|
+
|
|
544
|
+
--primary: 210 40% 98%;
|
|
545
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
546
|
+
|
|
547
|
+
--secondary: 019FA2;
|
|
548
|
+
--secondary-foreground: 210 40% 98%;
|
|
549
|
+
|
|
550
|
+
--muted: 217.2 32.6% 17.5%;
|
|
551
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
552
|
+
|
|
553
|
+
--accent: 217.2 32.6% 17.5%;
|
|
554
|
+
--accent-foreground: 210 40% 98%;
|
|
555
|
+
|
|
556
|
+
--destructive: 0 62.8% 30.6%;
|
|
557
|
+
--destructive-foreground: 210 40% 98%;
|
|
558
|
+
|
|
559
|
+
--border: 217.2 32.6% 17.5%;
|
|
560
|
+
--input: 217.2 32.6% 17.5%;
|
|
561
|
+
--ring: 212.7 26.8% 83.9%;
|
|
562
|
+
}
|
|
533
563
|
* {
|
|
534
564
|
border-color: hsl(var(--border));
|
|
535
565
|
}
|
|
@@ -740,9 +770,15 @@ body {
|
|
|
740
770
|
}
|
|
741
771
|
/* ===== WIDTH SLIDER STYLES ===== */
|
|
742
772
|
/* Custom range slider styling */
|
|
773
|
+
.dark .width-slider {
|
|
774
|
+
background: linear-gradient(to right, #019FA2 0%, #019FA2 var(--slider-progress, 50%), #374151 var(--slider-progress, 50%), #374151 100%);
|
|
775
|
+
}
|
|
743
776
|
/* Slider thumb (WebKit - Chrome, Safari, Edge) */
|
|
744
777
|
/* Slider thumb (Firefox) */
|
|
745
778
|
/* Slider track (Firefox) */
|
|
779
|
+
.dark .width-slider::-moz-range-track {
|
|
780
|
+
background: #374151;
|
|
781
|
+
}
|
|
746
782
|
/* Width value badge animation */
|
|
747
783
|
/* Preset buttons */
|
|
748
784
|
/* Breakpoint markers */
|
|
@@ -843,6 +879,9 @@ body {
|
|
|
843
879
|
.visible {
|
|
844
880
|
visibility: visible;
|
|
845
881
|
}
|
|
882
|
+
.collapse {
|
|
883
|
+
visibility: collapse;
|
|
884
|
+
}
|
|
846
885
|
.static {
|
|
847
886
|
position: static;
|
|
848
887
|
}
|
|
@@ -994,6 +1033,9 @@ body {
|
|
|
994
1033
|
.max-h-32 {
|
|
995
1034
|
max-height: 8rem;
|
|
996
1035
|
}
|
|
1036
|
+
.max-h-40 {
|
|
1037
|
+
max-height: 10rem;
|
|
1038
|
+
}
|
|
997
1039
|
.max-h-48 {
|
|
998
1040
|
max-height: 12rem;
|
|
999
1041
|
}
|
|
@@ -1057,6 +1099,9 @@ body {
|
|
|
1057
1099
|
.flex-shrink-0 {
|
|
1058
1100
|
flex-shrink: 0;
|
|
1059
1101
|
}
|
|
1102
|
+
.transform {
|
|
1103
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1104
|
+
}
|
|
1060
1105
|
.cursor-move {
|
|
1061
1106
|
cursor: move;
|
|
1062
1107
|
}
|
|
@@ -1071,9 +1116,6 @@ body {
|
|
|
1071
1116
|
-moz-user-select: none;
|
|
1072
1117
|
user-select: none;
|
|
1073
1118
|
}
|
|
1074
|
-
.resize-none {
|
|
1075
|
-
resize: none;
|
|
1076
|
-
}
|
|
1077
1119
|
.resize-y {
|
|
1078
1120
|
resize: vertical;
|
|
1079
1121
|
}
|
|
@@ -1158,6 +1200,15 @@ body {
|
|
|
1158
1200
|
margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1159
1201
|
margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
|
|
1160
1202
|
}
|
|
1203
|
+
.divide-y > :not([hidden]) ~ :not([hidden]) {
|
|
1204
|
+
--tw-divide-y-reverse: 0;
|
|
1205
|
+
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
|
|
1206
|
+
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
|
|
1207
|
+
}
|
|
1208
|
+
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
|
|
1209
|
+
--tw-divide-opacity: 1;
|
|
1210
|
+
border-color: rgb(243 244 246 / var(--tw-divide-opacity, 1));
|
|
1211
|
+
}
|
|
1161
1212
|
.overflow-hidden {
|
|
1162
1213
|
overflow: hidden;
|
|
1163
1214
|
}
|
|
@@ -1558,6 +1609,9 @@ body {
|
|
|
1558
1609
|
--tw-text-opacity: 1;
|
|
1559
1610
|
color: rgb(202 138 4 / var(--tw-text-opacity, 1));
|
|
1560
1611
|
}
|
|
1612
|
+
.accent-blue-600 {
|
|
1613
|
+
accent-color: #2563eb;
|
|
1614
|
+
}
|
|
1561
1615
|
.opacity-100 {
|
|
1562
1616
|
opacity: 1;
|
|
1563
1617
|
}
|
|
@@ -1584,6 +1638,9 @@ body {
|
|
|
1584
1638
|
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
|
|
1585
1639
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1586
1640
|
}
|
|
1641
|
+
.outline {
|
|
1642
|
+
outline-style: solid;
|
|
1643
|
+
}
|
|
1587
1644
|
.ring-2 {
|
|
1588
1645
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1589
1646
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -2008,6 +2065,11 @@ input[type="radio"]:checked::after {
|
|
|
2008
2065
|
opacity: 0.7;
|
|
2009
2066
|
}
|
|
2010
2067
|
|
|
2068
|
+
.dark\:divide-gray-700:is(.dark *) > :not([hidden]) ~ :not([hidden]) {
|
|
2069
|
+
--tw-divide-opacity: 1;
|
|
2070
|
+
border-color: rgb(55 65 81 / var(--tw-divide-opacity, 1));
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2011
2073
|
.dark\:border-\[\#019FA2\]:is(.dark *) {
|
|
2012
2074
|
--tw-border-opacity: 1;
|
|
2013
2075
|
border-color: rgb(1 159 162 / var(--tw-border-opacity, 1));
|
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,23 @@ interface AsyncOptionSource {
|
|
|
66
66
|
}
|
|
67
67
|
/** Lookup (Entity Fields) — source category for optionSource LOOKUP */
|
|
68
68
|
type LookupSourceType = 'MODULE' | 'MASTER_TYPE' | 'SETTINGS';
|
|
69
|
+
/**
|
|
70
|
+
* Configuration for the auto-populate fields feature on LOOKUP dropdowns.
|
|
71
|
+
* When `enabled` is true and a user selects a lookup record, the fields listed
|
|
72
|
+
* in `fields` are automatically populated from the corresponding lookup record data.
|
|
73
|
+
*
|
|
74
|
+
* `fields` contains the field keys (e.g. column/property names) that are present
|
|
75
|
+
* in both the Lookup Value Field and the Lookup Label Field response objects.
|
|
76
|
+
*/
|
|
77
|
+
interface AutoPopulateFieldsConfig {
|
|
78
|
+
/** Whether auto-population is active for this dropdown */
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* List of field keys from the lookup response that should be auto-populated
|
|
82
|
+
* into other form fields when the user selects a value.
|
|
83
|
+
*/
|
|
84
|
+
fields: string[];
|
|
85
|
+
}
|
|
69
86
|
interface FormField {
|
|
70
87
|
id: string;
|
|
71
88
|
type: FieldType;
|
|
@@ -136,6 +153,7 @@ interface FormField {
|
|
|
136
153
|
nameGeneratorSuffix?: string;
|
|
137
154
|
nameGeneratorIdPadding?: number;
|
|
138
155
|
formulaConfig?: FormulaConfig;
|
|
156
|
+
autoPopulateFields?: AutoPopulateFieldsConfig;
|
|
139
157
|
}
|
|
140
158
|
/**
|
|
141
159
|
* Conditional date constraint — evaluated at runtime against the current date or another field's value.
|
|
@@ -596,4 +614,4 @@ declare const initFormBuilder: (options: FormBuilderOptions & {
|
|
|
596
614
|
containerId: string;
|
|
597
615
|
}) => FormBuilder;
|
|
598
616
|
|
|
599
|
-
export { type AsyncOptionSource, type DateConstraint, type FieldType, type FieldValidations, type FieldWidth, FormBuilder, type FormBuilderOptions, type FormField, FormRenderer, type FormSchema, FormSchemaValidation, type FormSection, type FormulaCondition, type FormulaConfig, type GroupPosition, type ISDConfig, LOOKUP_SOURCE_TYPE_OPTIONS, type LookupSourceType, type MasterType, type NameGeneratorFormat, type ValidationObject, type ValidationRule, builderToPlatform, cleanFormSchema, convertValidationObjectToArray, detectCircularDependency, detectFormulaFieldCircularDependency, evaluateFormula, evaluateFormulaConfig, evaluateFormulaExpression, extractBracketFields, formStore, generateName, getColSpanFromWidth, getFieldsForFormula, getNumericFieldsForFormula, getValidationConfigForAngular, initFormBuilder, parseFormulaDependencies, parseWidth, platformToBuilder, resetNameGeneratorCounter, validateFormula, validateFormulaExpression };
|
|
617
|
+
export { type AsyncOptionSource, type AutoPopulateFieldsConfig, type DateConstraint, type FieldType, type FieldValidations, type FieldWidth, FormBuilder, type FormBuilderOptions, type FormField, FormRenderer, type FormSchema, FormSchemaValidation, type FormSection, type FormulaCondition, type FormulaConfig, type GroupPosition, type ISDConfig, LOOKUP_SOURCE_TYPE_OPTIONS, type LookupSourceType, type MasterType, type NameGeneratorFormat, type ValidationObject, type ValidationRule, builderToPlatform, cleanFormSchema, convertValidationObjectToArray, detectCircularDependency, detectFormulaFieldCircularDependency, evaluateFormula, evaluateFormulaConfig, evaluateFormulaExpression, extractBracketFields, formStore, generateName, getColSpanFromWidth, getFieldsForFormula, getNumericFieldsForFormula, getValidationConfigForAngular, initFormBuilder, parseFormulaDependencies, parseWidth, platformToBuilder, resetNameGeneratorCounter, validateFormula, validateFormulaExpression };
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,23 @@ interface AsyncOptionSource {
|
|
|
66
66
|
}
|
|
67
67
|
/** Lookup (Entity Fields) — source category for optionSource LOOKUP */
|
|
68
68
|
type LookupSourceType = 'MODULE' | 'MASTER_TYPE' | 'SETTINGS';
|
|
69
|
+
/**
|
|
70
|
+
* Configuration for the auto-populate fields feature on LOOKUP dropdowns.
|
|
71
|
+
* When `enabled` is true and a user selects a lookup record, the fields listed
|
|
72
|
+
* in `fields` are automatically populated from the corresponding lookup record data.
|
|
73
|
+
*
|
|
74
|
+
* `fields` contains the field keys (e.g. column/property names) that are present
|
|
75
|
+
* in both the Lookup Value Field and the Lookup Label Field response objects.
|
|
76
|
+
*/
|
|
77
|
+
interface AutoPopulateFieldsConfig {
|
|
78
|
+
/** Whether auto-population is active for this dropdown */
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* List of field keys from the lookup response that should be auto-populated
|
|
82
|
+
* into other form fields when the user selects a value.
|
|
83
|
+
*/
|
|
84
|
+
fields: string[];
|
|
85
|
+
}
|
|
69
86
|
interface FormField {
|
|
70
87
|
id: string;
|
|
71
88
|
type: FieldType;
|
|
@@ -136,6 +153,7 @@ interface FormField {
|
|
|
136
153
|
nameGeneratorSuffix?: string;
|
|
137
154
|
nameGeneratorIdPadding?: number;
|
|
138
155
|
formulaConfig?: FormulaConfig;
|
|
156
|
+
autoPopulateFields?: AutoPopulateFieldsConfig;
|
|
139
157
|
}
|
|
140
158
|
/**
|
|
141
159
|
* Conditional date constraint — evaluated at runtime against the current date or another field's value.
|
|
@@ -596,4 +614,4 @@ declare const initFormBuilder: (options: FormBuilderOptions & {
|
|
|
596
614
|
containerId: string;
|
|
597
615
|
}) => FormBuilder;
|
|
598
616
|
|
|
599
|
-
export { type AsyncOptionSource, type DateConstraint, type FieldType, type FieldValidations, type FieldWidth, FormBuilder, type FormBuilderOptions, type FormField, FormRenderer, type FormSchema, FormSchemaValidation, type FormSection, type FormulaCondition, type FormulaConfig, type GroupPosition, type ISDConfig, LOOKUP_SOURCE_TYPE_OPTIONS, type LookupSourceType, type MasterType, type NameGeneratorFormat, type ValidationObject, type ValidationRule, builderToPlatform, cleanFormSchema, convertValidationObjectToArray, detectCircularDependency, detectFormulaFieldCircularDependency, evaluateFormula, evaluateFormulaConfig, evaluateFormulaExpression, extractBracketFields, formStore, generateName, getColSpanFromWidth, getFieldsForFormula, getNumericFieldsForFormula, getValidationConfigForAngular, initFormBuilder, parseFormulaDependencies, parseWidth, platformToBuilder, resetNameGeneratorCounter, validateFormula, validateFormulaExpression };
|
|
617
|
+
export { type AsyncOptionSource, type AutoPopulateFieldsConfig, type DateConstraint, type FieldType, type FieldValidations, type FieldWidth, FormBuilder, type FormBuilderOptions, type FormField, FormRenderer, type FormSchema, FormSchemaValidation, type FormSection, type FormulaCondition, type FormulaConfig, type GroupPosition, type ISDConfig, LOOKUP_SOURCE_TYPE_OPTIONS, type LookupSourceType, type MasterType, type NameGeneratorFormat, type ValidationObject, type ValidationRule, builderToPlatform, cleanFormSchema, convertValidationObjectToArray, detectCircularDependency, detectFormulaFieldCircularDependency, evaluateFormula, evaluateFormulaConfig, evaluateFormulaExpression, extractBracketFields, formStore, generateName, getColSpanFromWidth, getFieldsForFormula, getNumericFieldsForFormula, getValidationConfigForAngular, initFormBuilder, parseFormulaDependencies, parseWidth, platformToBuilder, resetNameGeneratorCounter, validateFormula, validateFormulaExpression };
|