@servicetitan/dte-unlayer 0.105.0 → 0.107.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/display-conditions/ConditionRow.d.ts.map +1 -1
- package/dist/display-conditions/ConditionRow.js +1 -0
- package/dist/display-conditions/ConditionRow.js.map +1 -1
- package/dist/display-conditions/schemaDataPoints.d.ts.map +1 -1
- package/dist/display-conditions/schemaDataPoints.js +7 -3
- package/dist/display-conditions/schemaDataPoints.js.map +1 -1
- package/dist/display-conditions/types.d.ts +1 -0
- package/dist/display-conditions/types.d.ts.map +1 -1
- package/dist/display-conditions/types.js.map +1 -1
- package/dist/editor-core-source.d.ts +1 -1
- package/dist/editor-core-source.d.ts.map +1 -1
- package/dist/editor-core-source.js +1 -1
- package/dist/editor-core-source.js.map +1 -1
- package/package.json +1 -1
- package/src/display-conditions/ConditionRow.tsx +1 -0
- package/src/display-conditions/schemaDataPoints.ts +9 -5
- package/src/display-conditions/types.ts +1 -0
- package/src/editor-core-source.ts +1 -1
package/package.json
CHANGED
|
@@ -102,6 +102,7 @@ export function ConditionRow({
|
|
|
102
102
|
<div style={{ flex: '2 1 280px', minWidth: 240 }}>
|
|
103
103
|
<Combobox
|
|
104
104
|
{...({ disableClearSelection: true } as object)}
|
|
105
|
+
groupBy="group"
|
|
105
106
|
itemToKey={(item: DataPointOption | null) => item?.fullKey ?? ''}
|
|
106
107
|
itemToString={(item: DataPointOption | null) => item?.title ?? ''}
|
|
107
108
|
items={dataPointOptions}
|
|
@@ -24,10 +24,14 @@ export function getSchemaDataPointOptions(schema: SchemaObject | undefined): Dat
|
|
|
24
24
|
!f.isArrayed &&
|
|
25
25
|
isUseInConditionals(f.node as { options?: SchemaFieldBaseOptions }),
|
|
26
26
|
)
|
|
27
|
-
.map(f =>
|
|
28
|
-
fieldType
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
.map(f => {
|
|
28
|
+
const fieldType = schemaIsNumber(f.node) ? ('number' as const) : ('string' as const);
|
|
29
|
+
return {
|
|
30
|
+
fieldType,
|
|
31
|
+
fullKey: f.fullKey,
|
|
32
|
+
group: fieldType === 'number' ? 'Numeric Fields' : 'Data Model',
|
|
33
|
+
title: f.fullTitle || f.title || f.fullKey,
|
|
34
|
+
};
|
|
35
|
+
})
|
|
32
36
|
.sort((a, b) => a.title.localeCompare(b.title));
|
|
33
37
|
}
|