@firecms/core 3.0.0-canary.150 → 3.0.0-canary.152
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.es.js +65 -61
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +65 -61
- package/dist/index.umd.js.map +1 -1
- package/dist/preview/PropertyPreviewProps.d.ts +1 -1
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/util.d.ts +3 -3
- package/dist/types/fields.d.ts +2 -2
- package/package.json +5 -5
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +1 -1
- package/src/components/EntityPreview.tsx +14 -14
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +2 -1
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +1 -0
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +1 -0
- package/src/form/components/CustomIdField.tsx +1 -0
- package/src/form/field_bindings/BlockFieldBinding.tsx +1 -1
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +1 -1
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +6 -6
- package/src/form/field_bindings/MapFieldBinding.tsx +1 -0
- package/src/form/field_bindings/SelectFieldBinding.tsx +2 -2
- package/src/form/field_bindings/TextFieldBinding.tsx +1 -1
- package/src/preview/PropertyPreviewProps.tsx +1 -1
- package/src/preview/components/BooleanPreview.tsx +1 -1
- package/src/preview/components/EnumValuesChip.tsx +1 -1
- package/src/preview/components/ImagePreview.tsx +1 -1
- package/src/preview/components/UrlComponentPreview.tsx +3 -3
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +1 -1
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +1 -1
- package/src/preview/property_previews/MapPropertyPreview.tsx +1 -1
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +12 -12
- package/src/preview/property_previews/StringPropertyPreview.tsx +2 -2
- package/src/preview/util.ts +10 -10
- package/src/types/fields.tsx +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -4263,6 +4263,7 @@
|
|
|
4263
4263
|
ui.Select,
|
|
4264
4264
|
{
|
|
4265
4265
|
inputRef: ref,
|
|
4266
|
+
size: "large",
|
|
4266
4267
|
className: "w-full h-full p-0 bg-transparent",
|
|
4267
4268
|
position: "item-aligned",
|
|
4268
4269
|
disabled,
|
|
@@ -4386,7 +4387,7 @@
|
|
|
4386
4387
|
{
|
|
4387
4388
|
value: internalValue ?? void 0,
|
|
4388
4389
|
onChange: (dateValue) => updateValue(dateValue ?? null),
|
|
4389
|
-
size: "
|
|
4390
|
+
size: "large",
|
|
4390
4391
|
invisible: true,
|
|
4391
4392
|
inputClassName: ui.cls("w-full h-full", ui.focusedDisabled),
|
|
4392
4393
|
className: ui.cls("w-full h-full", ui.focusedDisabled),
|
|
@@ -4420,28 +4421,28 @@
|
|
|
4420
4421
|
return this.props.children;
|
|
4421
4422
|
}
|
|
4422
4423
|
}
|
|
4423
|
-
const
|
|
4424
|
-
const
|
|
4425
|
-
const
|
|
4424
|
+
const SMALL_THUMBNAIL = 40;
|
|
4425
|
+
const MEDIUM_THUMBNAIL = 100;
|
|
4426
|
+
const LARGE_THUMBNAIL = 200;
|
|
4426
4427
|
function getThumbnailMeasure(size) {
|
|
4427
|
-
if (size === "
|
|
4428
|
-
return TINY_THUMBNAIL;
|
|
4429
|
-
else if (size === "small")
|
|
4428
|
+
if (size === "small")
|
|
4430
4429
|
return SMALL_THUMBNAIL;
|
|
4431
4430
|
else if (size === "medium")
|
|
4432
|
-
return
|
|
4431
|
+
return MEDIUM_THUMBNAIL;
|
|
4432
|
+
else if (size === "large")
|
|
4433
|
+
return LARGE_THUMBNAIL;
|
|
4433
4434
|
else throw Error("Thumbnail size not mapped");
|
|
4434
4435
|
}
|
|
4435
4436
|
function getPreviewSizeFrom(size) {
|
|
4436
4437
|
switch (size) {
|
|
4437
4438
|
case "xs":
|
|
4438
4439
|
case "s":
|
|
4439
|
-
return "smallest";
|
|
4440
|
-
case "m":
|
|
4441
4440
|
return "small";
|
|
4441
|
+
case "m":
|
|
4442
|
+
return "medium";
|
|
4442
4443
|
case "l":
|
|
4443
4444
|
case "xl":
|
|
4444
|
-
return "
|
|
4445
|
+
return "large";
|
|
4445
4446
|
default:
|
|
4446
4447
|
throw Error("Missing mapping value in getPreviewSizeFrom: " + size);
|
|
4447
4448
|
}
|
|
@@ -5045,7 +5046,7 @@
|
|
|
5045
5046
|
propertyConfigs: customizationController.propertyConfigs
|
|
5046
5047
|
}), [collection]);
|
|
5047
5048
|
const listProperties = React.useMemo(
|
|
5048
|
-
() => getEntityPreviewKeys(resolvedCollection, customizationController.propertyConfigs, previewProperties, size === "
|
|
5049
|
+
() => getEntityPreviewKeys(resolvedCollection, customizationController.propertyConfigs, previewProperties, size === "medium" || size === "large" ? 3 : 1),
|
|
5049
5050
|
[previewProperties, resolvedCollection, size]
|
|
5050
5051
|
);
|
|
5051
5052
|
const titleProperty = getEntityTitlePropertyKey(resolvedCollection, customizationController.propertyConfigs);
|
|
@@ -5059,13 +5060,13 @@
|
|
|
5059
5060
|
hover: disabled ? void 0 : hover,
|
|
5060
5061
|
size,
|
|
5061
5062
|
children: [
|
|
5062
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 ml-1 mr-2 shrink-0", size === "
|
|
5063
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 ml-1 mr-2 shrink-0", size === "small" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5063
5064
|
imageProperty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5064
5065
|
PropertyPreview,
|
|
5065
5066
|
{
|
|
5066
5067
|
property: imageProperty,
|
|
5067
5068
|
propertyKey: imagePropertyKey,
|
|
5068
|
-
size: "
|
|
5069
|
+
size: "small",
|
|
5069
5070
|
value: getValueInPath(entity.values, imagePropertyKey)
|
|
5070
5071
|
}
|
|
5071
5072
|
),
|
|
@@ -5080,7 +5081,7 @@
|
|
|
5080
5081
|
)
|
|
5081
5082
|
] }),
|
|
5082
5083
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full max-w-full m-1", children: [
|
|
5083
|
-
size !== "
|
|
5084
|
+
size !== "small" && includeId && (entity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${size !== "large" ? "block whitespace-nowrap overflow-hidden truncate" : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5084
5085
|
ui.Typography,
|
|
5085
5086
|
{
|
|
5086
5087
|
variant: "caption",
|
|
@@ -5089,19 +5090,19 @@
|
|
|
5089
5090
|
children: entity.id
|
|
5090
5091
|
}
|
|
5091
5092
|
) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, {})),
|
|
5092
|
-
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-0.5 text-sm font-
|
|
5093
|
+
titleProperty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-0.5 text-sm font-large", children: entity ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5093
5094
|
PropertyPreview,
|
|
5094
5095
|
{
|
|
5095
5096
|
propertyKey: titleProperty,
|
|
5096
5097
|
value: getValueInPath(entity.values, titleProperty),
|
|
5097
5098
|
property: resolvedCollection.properties[titleProperty],
|
|
5098
|
-
size: "
|
|
5099
|
+
size: "large"
|
|
5099
5100
|
}
|
|
5100
5101
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5101
5102
|
SkeletonPropertyComponent,
|
|
5102
5103
|
{
|
|
5103
5104
|
property: resolvedCollection.properties[titleProperty],
|
|
5104
|
-
size: "
|
|
5105
|
+
size: "large"
|
|
5105
5106
|
}
|
|
5106
5107
|
) }),
|
|
5107
5108
|
restProperties && restProperties.map((key) => {
|
|
@@ -5117,13 +5118,13 @@
|
|
|
5117
5118
|
propertyKey: key,
|
|
5118
5119
|
value: getValueInPath(entity.values, key),
|
|
5119
5120
|
property: childProperty,
|
|
5120
|
-
size: "
|
|
5121
|
+
size: "small"
|
|
5121
5122
|
}
|
|
5122
5123
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5123
5124
|
SkeletonPropertyComponent,
|
|
5124
5125
|
{
|
|
5125
5126
|
property: childProperty,
|
|
5126
|
-
size: "
|
|
5127
|
+
size: "small"
|
|
5127
5128
|
}
|
|
5128
5129
|
)
|
|
5129
5130
|
},
|
|
@@ -5135,8 +5136,8 @@
|
|
|
5135
5136
|
ui.IconButton,
|
|
5136
5137
|
{
|
|
5137
5138
|
color: "inherit",
|
|
5138
|
-
size: "
|
|
5139
|
-
className: size !== "
|
|
5139
|
+
size: "medium",
|
|
5140
|
+
className: size !== "small" ? "self-start" : "",
|
|
5140
5141
|
onClick: (e) => {
|
|
5141
5142
|
e.stopPropagation();
|
|
5142
5143
|
analyticsController.onAnalyticsEvent?.("entity_click_from_reference", {
|
|
@@ -5150,7 +5151,7 @@
|
|
|
5150
5151
|
updateUrl: true
|
|
5151
5152
|
});
|
|
5152
5153
|
},
|
|
5153
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.KeyboardTabIcon, { size: "
|
|
5154
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.KeyboardTabIcon, { size: "medium" })
|
|
5154
5155
|
}
|
|
5155
5156
|
) }),
|
|
5156
5157
|
actions
|
|
@@ -5183,7 +5184,7 @@
|
|
|
5183
5184
|
fullwidth ? "w-full" : "",
|
|
5184
5185
|
"items-center",
|
|
5185
5186
|
hover ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 group-hover:bg-surface-accent-50 dark:group-hover:bg-surface-800" : "",
|
|
5186
|
-
size === "
|
|
5187
|
+
size === "small" ? "p-1" : "px-2 py-1",
|
|
5187
5188
|
"flex border rounded-lg",
|
|
5188
5189
|
onClick ? "cursor-pointer" : "",
|
|
5189
5190
|
ui.defaultBorderMixin,
|
|
@@ -5291,7 +5292,7 @@
|
|
|
5291
5292
|
ReferencePreview,
|
|
5292
5293
|
{
|
|
5293
5294
|
onClick: disabled ? void 0 : handleOpen,
|
|
5294
|
-
size: "
|
|
5295
|
+
size: "small",
|
|
5295
5296
|
reference,
|
|
5296
5297
|
hover: !disabled,
|
|
5297
5298
|
disabled: !path,
|
|
@@ -6458,7 +6459,7 @@
|
|
|
6458
6459
|
{
|
|
6459
6460
|
value: size,
|
|
6460
6461
|
className: "w-16 h-10",
|
|
6461
|
-
size: "
|
|
6462
|
+
size: "medium",
|
|
6462
6463
|
onValueChange: (v) => onSizeChanged(v),
|
|
6463
6464
|
renderValue: (v) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium", children: v.toUpperCase() }),
|
|
6464
6465
|
children: ["xs", "s", "m", "l", "xl"].map((size2) => /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: size2, className: "w-12 font-medium text-center", children: size2.toUpperCase() }, size2))
|
|
@@ -7573,6 +7574,7 @@
|
|
|
7573
7574
|
ui.Select,
|
|
7574
7575
|
{
|
|
7575
7576
|
value: operation,
|
|
7577
|
+
size: "large",
|
|
7576
7578
|
onValueChange: (value2) => {
|
|
7577
7579
|
updateFilter(value2, internalValue);
|
|
7578
7580
|
},
|
|
@@ -7891,6 +7893,7 @@
|
|
|
7891
7893
|
ui.Select,
|
|
7892
7894
|
{
|
|
7893
7895
|
value: operation,
|
|
7896
|
+
size: "large",
|
|
7894
7897
|
onValueChange: (value2) => {
|
|
7895
7898
|
updateFilter(value2, internalValue);
|
|
7896
7899
|
},
|
|
@@ -7903,7 +7906,7 @@
|
|
|
7903
7906
|
ui.DateTimeField,
|
|
7904
7907
|
{
|
|
7905
7908
|
mode,
|
|
7906
|
-
size: "
|
|
7909
|
+
size: "large",
|
|
7907
7910
|
locale,
|
|
7908
7911
|
value: internalValue ?? void 0,
|
|
7909
7912
|
onChange: (dateValue) => {
|
|
@@ -10044,6 +10047,7 @@
|
|
|
10044
10047
|
enumValues && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10045
10048
|
ui.Select,
|
|
10046
10049
|
{
|
|
10050
|
+
size: "large",
|
|
10047
10051
|
error,
|
|
10048
10052
|
onValueChange: (v) => onChange(v),
|
|
10049
10053
|
...fieldProps,
|
|
@@ -11648,7 +11652,7 @@
|
|
|
11648
11652
|
ReferencePreview,
|
|
11649
11653
|
{
|
|
11650
11654
|
reference,
|
|
11651
|
-
size: "
|
|
11655
|
+
size: "small"
|
|
11652
11656
|
},
|
|
11653
11657
|
reference.path + "/" + reference.id
|
|
11654
11658
|
);
|
|
@@ -13597,7 +13601,7 @@
|
|
|
13597
13601
|
url
|
|
13598
13602
|
}) {
|
|
13599
13603
|
const imageSize = React.useMemo(() => getThumbnailMeasure(size), [size]);
|
|
13600
|
-
if (size === "
|
|
13604
|
+
if (size === "small") {
|
|
13601
13605
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13602
13606
|
"img",
|
|
13603
13607
|
{
|
|
@@ -13773,11 +13777,11 @@
|
|
|
13773
13777
|
interactive
|
|
13774
13778
|
}) {
|
|
13775
13779
|
const imageSize = React.useMemo(() => {
|
|
13776
|
-
if (size === "
|
|
13780
|
+
if (size === "small")
|
|
13777
13781
|
return "140px";
|
|
13778
|
-
else if (size === "small")
|
|
13779
|
-
return "240px";
|
|
13780
13782
|
else if (size === "medium")
|
|
13783
|
+
return "240px";
|
|
13784
|
+
else if (size === "large")
|
|
13781
13785
|
return "100%";
|
|
13782
13786
|
else throw new Error("Invalid size");
|
|
13783
13787
|
}, [size]);
|
|
@@ -13859,16 +13863,16 @@
|
|
|
13859
13863
|
if (!property.properties)
|
|
13860
13864
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
13861
13865
|
let mapPropertyKeys;
|
|
13862
|
-
if (size === "
|
|
13866
|
+
if (size === "large") {
|
|
13863
13867
|
mapPropertyKeys = Object.keys(property.properties);
|
|
13864
13868
|
} else {
|
|
13865
13869
|
mapPropertyKeys = property.previewProperties || Object.keys(property.properties);
|
|
13866
|
-
if (size === "
|
|
13870
|
+
if (size === "medium")
|
|
13867
13871
|
mapPropertyKeys = mapPropertyKeys.slice(0, 3);
|
|
13868
|
-
else if (size === "
|
|
13872
|
+
else if (size === "small")
|
|
13869
13873
|
mapPropertyKeys = mapPropertyKeys.slice(0, 1);
|
|
13870
13874
|
}
|
|
13871
|
-
if (size !== "
|
|
13875
|
+
if (size !== "large")
|
|
13872
13876
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13873
13877
|
"div",
|
|
13874
13878
|
{
|
|
@@ -13877,7 +13881,7 @@
|
|
|
13877
13881
|
SkeletonPropertyComponent,
|
|
13878
13882
|
{
|
|
13879
13883
|
property: property.properties[key],
|
|
13880
|
-
size: "
|
|
13884
|
+
size: "medium"
|
|
13881
13885
|
}
|
|
13882
13886
|
) }, `map_${key}`))
|
|
13883
13887
|
}
|
|
@@ -13905,7 +13909,7 @@
|
|
|
13905
13909
|
SkeletonPropertyComponent,
|
|
13906
13910
|
{
|
|
13907
13911
|
property: property.properties[key],
|
|
13908
|
-
size: "
|
|
13912
|
+
size: "medium"
|
|
13909
13913
|
}
|
|
13910
13914
|
)
|
|
13911
13915
|
},
|
|
@@ -13933,7 +13937,7 @@
|
|
|
13933
13937
|
SkeletonPropertyComponent,
|
|
13934
13938
|
{
|
|
13935
13939
|
property: properties[key],
|
|
13936
|
-
size: "
|
|
13940
|
+
size: "medium"
|
|
13937
13941
|
}
|
|
13938
13942
|
)
|
|
13939
13943
|
},
|
|
@@ -13960,7 +13964,7 @@
|
|
|
13960
13964
|
SkeletonPropertyComponent,
|
|
13961
13965
|
{
|
|
13962
13966
|
property,
|
|
13963
|
-
size: "
|
|
13967
|
+
size: "medium"
|
|
13964
13968
|
},
|
|
13965
13969
|
`i_${index2}`
|
|
13966
13970
|
) })
|
|
@@ -13970,7 +13974,7 @@
|
|
|
13970
13974
|
);
|
|
13971
13975
|
}
|
|
13972
13976
|
function renderSkeletonImageThumbnail(size) {
|
|
13973
|
-
const imageSize = size === "
|
|
13977
|
+
const imageSize = size === "small" ? 40 : size === "medium" ? 100 : 200;
|
|
13974
13978
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13975
13979
|
ui.Skeleton,
|
|
13976
13980
|
{
|
|
@@ -13982,7 +13986,7 @@
|
|
|
13982
13986
|
function renderReference() {
|
|
13983
13987
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { width: 200, height: 100 });
|
|
13984
13988
|
}
|
|
13985
|
-
function renderUrlComponent(property, size = "
|
|
13989
|
+
function renderUrlComponent(property, size = "large") {
|
|
13986
13990
|
if (typeof property.url === "boolean") {
|
|
13987
13991
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
13988
13992
|
display: "flex"
|
|
@@ -14135,10 +14139,10 @@
|
|
|
14135
14139
|
} else {
|
|
14136
14140
|
if (!value) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
14137
14141
|
const lines = value.split("\n");
|
|
14138
|
-
return value && value.includes("\n") ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls("overflow-x-scroll", size === "
|
|
14142
|
+
return value && value.includes("\n") ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cls("overflow-x-scroll", size === "small" ? "text-sm" : ""), children: lines.map((str, index) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
14139
14143
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: str }),
|
|
14140
14144
|
index !== lines.length - 1 && /* @__PURE__ */ jsxRuntime.jsx("br", {})
|
|
14141
|
-
] }, `string_preview_${index}`)) }) : size === "
|
|
14145
|
+
] }, `string_preview_${index}`)) }) : size === "small" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm", children: value }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: value });
|
|
14142
14146
|
}
|
|
14143
14147
|
}
|
|
14144
14148
|
function ArrayPropertyPreview({
|
|
@@ -14161,7 +14165,7 @@
|
|
|
14161
14165
|
throw Error("Picked wrong preview component ArrayPreview");
|
|
14162
14166
|
const values = value;
|
|
14163
14167
|
if (!values) return null;
|
|
14164
|
-
const childSize = size === "medium" ? "
|
|
14168
|
+
const childSize = size === "medium" ? "medium" : "small";
|
|
14165
14169
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: values && values.map(
|
|
14166
14170
|
(value2, index) => {
|
|
14167
14171
|
const of = property.resolvedProperties[index] ?? (property.resolvedProperties[index] ?? (Array.isArray(property.of) ? property.of[index] : property.of));
|
|
@@ -14342,7 +14346,7 @@
|
|
|
14342
14346
|
}
|
|
14343
14347
|
if (property?.dataType !== "array" || !property.of || property.of.dataType !== "reference")
|
|
14344
14348
|
throw Error("Picked wrong preview component ArrayOfReferencesPreview");
|
|
14345
|
-
const childSize = size === "medium" ? "
|
|
14349
|
+
const childSize = size === "medium" ? "medium" : "small";
|
|
14346
14350
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col w-full", children: value && value.map(
|
|
14347
14351
|
(reference, index) => {
|
|
14348
14352
|
const ofProperty = property.of;
|
|
@@ -14385,7 +14389,7 @@
|
|
|
14385
14389
|
}
|
|
14386
14390
|
if (property.dataType !== "array" || !property.of || property.of.dataType !== "string")
|
|
14387
14391
|
throw Error("Picked wrong preview component ArrayOfStorageComponentsPreview");
|
|
14388
|
-
const childSize = size === "medium" ? "
|
|
14392
|
+
const childSize = size === "medium" ? "medium" : "small";
|
|
14389
14393
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-2", children: value && value.map(
|
|
14390
14394
|
(v, index) => /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14391
14395
|
PropertyPreview,
|
|
@@ -14499,7 +14503,7 @@
|
|
|
14499
14503
|
}
|
|
14500
14504
|
const values = value;
|
|
14501
14505
|
if (!values) return null;
|
|
14502
|
-
const childSize = size === "medium" ? "
|
|
14506
|
+
const childSize = size === "medium" ? "medium" : "small";
|
|
14503
14507
|
const typeField = property.oneOf.typeField ?? DEFAULT_ONE_OF_TYPE;
|
|
14504
14508
|
const valueField = property.oneOf.valueField ?? DEFAULT_ONE_OF_VALUE;
|
|
14505
14509
|
const properties = property.oneOf.properties;
|
|
@@ -14537,7 +14541,7 @@
|
|
|
14537
14541
|
}
|
|
14538
14542
|
if (!value) return null;
|
|
14539
14543
|
const mapPropertyKeys = Object.keys(mapProperty.properties);
|
|
14540
|
-
if (size === "
|
|
14544
|
+
if (size === "small")
|
|
14541
14545
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full flex flex-col space-y-1 md:space-y-2", children: mapPropertyKeys.map((key, index) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14542
14546
|
ErrorBoundary,
|
|
14543
14547
|
{
|
|
@@ -14697,7 +14701,7 @@
|
|
|
14697
14701
|
property.name && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14698
14702
|
"span",
|
|
14699
14703
|
{
|
|
14700
|
-
className: ui.cls("text-text-secondary dark:text-text-secondary-dark", size === "
|
|
14704
|
+
className: ui.cls("text-text-secondary dark:text-text-secondary-dark", size === "small" ? "text-sm" : ""),
|
|
14701
14705
|
children: property.name
|
|
14702
14706
|
}
|
|
14703
14707
|
)
|
|
@@ -15063,7 +15067,7 @@
|
|
|
15063
15067
|
touched,
|
|
15064
15068
|
property,
|
|
15065
15069
|
includeDescription,
|
|
15066
|
-
size = "
|
|
15070
|
+
size = "large"
|
|
15067
15071
|
}) {
|
|
15068
15072
|
const enumValues = resolveEnumValues(property.enumValues ?? []);
|
|
15069
15073
|
useClearRestoreValue({
|
|
@@ -15080,9 +15084,9 @@
|
|
|
15080
15084
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15081
15085
|
ui.Select,
|
|
15082
15086
|
{
|
|
15083
|
-
size: size === "medium" ? "medium" : "small",
|
|
15084
15087
|
value: value !== void 0 && value != null ? value.toString() : "",
|
|
15085
15088
|
disabled,
|
|
15089
|
+
size,
|
|
15086
15090
|
position: "item-aligned",
|
|
15087
15091
|
inputClassName: ui.cls("w-full"),
|
|
15088
15092
|
label: /* @__PURE__ */ jsxRuntime.jsx(PropertyIdCopyTooltip, { propertyKey, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -15835,7 +15839,7 @@
|
|
|
15835
15839
|
autoFocus,
|
|
15836
15840
|
property,
|
|
15837
15841
|
includeDescription,
|
|
15838
|
-
size = "
|
|
15842
|
+
size = "large"
|
|
15839
15843
|
}) {
|
|
15840
15844
|
let multiline;
|
|
15841
15845
|
let url;
|
|
@@ -16000,7 +16004,7 @@
|
|
|
16000
16004
|
{
|
|
16001
16005
|
value: internalValue,
|
|
16002
16006
|
onChange: (dateValue) => setValue(dateValue),
|
|
16003
|
-
size: "
|
|
16007
|
+
size: "large",
|
|
16004
16008
|
mode: property.mode,
|
|
16005
16009
|
clearable: property.clearable,
|
|
16006
16010
|
locale,
|
|
@@ -16744,7 +16748,7 @@
|
|
|
16744
16748
|
placeholder: "value",
|
|
16745
16749
|
value: entryValue2,
|
|
16746
16750
|
type: dataType2 === "number" ? "number" : "text",
|
|
16747
|
-
size: "
|
|
16751
|
+
size: "medium",
|
|
16748
16752
|
disabled: disabled || !fieldKey2,
|
|
16749
16753
|
onChange: (event) => {
|
|
16750
16754
|
if (dataType2 === "number") {
|
|
@@ -16780,7 +16784,7 @@
|
|
|
16780
16784
|
ui.DateTimeField,
|
|
16781
16785
|
{
|
|
16782
16786
|
value: entryValue2,
|
|
16783
|
-
size: "
|
|
16787
|
+
size: "medium",
|
|
16784
16788
|
locale,
|
|
16785
16789
|
disabled: disabled || !fieldKey2,
|
|
16786
16790
|
onChange: (date) => {
|
|
@@ -16796,7 +16800,7 @@
|
|
|
16796
16800
|
ui.BooleanSwitchWithLabel,
|
|
16797
16801
|
{
|
|
16798
16802
|
value: entryValue2,
|
|
16799
|
-
size: "
|
|
16803
|
+
size: "medium",
|
|
16800
16804
|
position: "start",
|
|
16801
16805
|
disabled: disabled || !fieldKey2,
|
|
16802
16806
|
onValueChange: (newValue) => {
|
|
@@ -16900,7 +16904,7 @@
|
|
|
16900
16904
|
value: fieldKey,
|
|
16901
16905
|
placeholder: "key",
|
|
16902
16906
|
disabled: disabled || entryValue !== void 0 && entryValue !== null && entryValue !== "",
|
|
16903
|
-
size: "
|
|
16907
|
+
size: "medium",
|
|
16904
16908
|
onChange: (event) => {
|
|
16905
16909
|
onFieldKeyChange(event.target.value);
|
|
16906
16910
|
}
|
|
@@ -16999,7 +17003,7 @@
|
|
|
16999
17003
|
{
|
|
17000
17004
|
value: entryValue,
|
|
17001
17005
|
type: dataType === "number" ? "number" : "text",
|
|
17002
|
-
size: "
|
|
17006
|
+
size: "medium",
|
|
17003
17007
|
onChange: (event) => {
|
|
17004
17008
|
if (dataType === "number") {
|
|
17005
17009
|
const numberValue = event.target.value ? parseFloat(event.target.value) : void 0;
|
|
@@ -17021,7 +17025,7 @@
|
|
|
17021
17025
|
ui.DateTimeField,
|
|
17022
17026
|
{
|
|
17023
17027
|
value: entryValue,
|
|
17024
|
-
size: "
|
|
17028
|
+
size: "medium",
|
|
17025
17029
|
locale,
|
|
17026
17030
|
onChange: (date) => {
|
|
17027
17031
|
setValue(date);
|
|
@@ -17431,7 +17435,7 @@
|
|
|
17431
17435
|
children: "Type"
|
|
17432
17436
|
}
|
|
17433
17437
|
),
|
|
17434
|
-
size: "
|
|
17438
|
+
size: "medium",
|
|
17435
17439
|
position: "item-aligned",
|
|
17436
17440
|
value: value1,
|
|
17437
17441
|
renderValue: (enumKey) => /* @__PURE__ */ jsxRuntime.jsx(
|