@nocobase/client 1.8.11 → 1.8.12
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/es/index.mjs
CHANGED
|
@@ -8769,7 +8769,7 @@ function addAppVersion(e, t) {
|
|
|
8769
8769
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
8770
8770
|
}), e;
|
|
8771
8771
|
}
|
|
8772
|
-
const name = "@nocobase/client", version = "1.8.
|
|
8772
|
+
const name = "@nocobase/client", version = "1.8.12", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
8773
8773
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
8774
8774
|
"@ant-design/cssinjs": "^1.11.1",
|
|
8775
8775
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -8790,9 +8790,9 @@ const name = "@nocobase/client", version = "1.8.11", license = "AGPL-3.0", main
|
|
|
8790
8790
|
"@formily/reactive-react": "^2.2.27",
|
|
8791
8791
|
"@formily/shared": "^2.2.27",
|
|
8792
8792
|
"@formily/validator": "^2.2.27",
|
|
8793
|
-
"@nocobase/evaluators": "1.8.
|
|
8794
|
-
"@nocobase/sdk": "1.8.
|
|
8795
|
-
"@nocobase/utils": "1.8.
|
|
8793
|
+
"@nocobase/evaluators": "1.8.12",
|
|
8794
|
+
"@nocobase/sdk": "1.8.12",
|
|
8795
|
+
"@nocobase/utils": "1.8.12",
|
|
8796
8796
|
ahooks: "^3.7.2",
|
|
8797
8797
|
antd: "5.24.2",
|
|
8798
8798
|
"antd-style": "3.7.1",
|
|
@@ -37312,6 +37312,31 @@ const enabledIndexColumn$1 = {
|
|
|
37312
37312
|
const e = useField(), { fieldSchema: t } = useColumnSchema$1(), n = useFieldSchema(), o = t || n;
|
|
37313
37313
|
return ((o == null ? void 0 : o["x-read-pretty"]) || e.readPretty) && ((r = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : r.enableLink);
|
|
37314
37314
|
}
|
|
37315
|
+
}, autoFocusSettingsItem = {
|
|
37316
|
+
name: "autoFocus",
|
|
37317
|
+
type: "switch",
|
|
37318
|
+
useVisible() {
|
|
37319
|
+
const e = useField(), { fieldSchema: t } = useColumnSchema$1(), n = useFieldSchema(), o = t || n;
|
|
37320
|
+
return !(o != null && o["x-read-pretty"]) && !e.readPretty;
|
|
37321
|
+
},
|
|
37322
|
+
useComponentProps() {
|
|
37323
|
+
var i;
|
|
37324
|
+
const { t: e } = useTranslation(), t = useField(), { fieldSchema: n } = useColumnSchema$1(), o = useFieldSchema(), r = n || o, { dn: a } = useDesignable();
|
|
37325
|
+
return {
|
|
37326
|
+
title: e("Auto focus"),
|
|
37327
|
+
checked: (i = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : i.autoFocus,
|
|
37328
|
+
onChange(l) {
|
|
37329
|
+
r["x-component-props"] = P(x({}, r == null ? void 0 : r["x-component-props"]), {
|
|
37330
|
+
autoFocus: l
|
|
37331
|
+
}), t.componentProps.autoFocus = l, a.emit("patch", {
|
|
37332
|
+
schema: {
|
|
37333
|
+
"x-uid": r["x-uid"],
|
|
37334
|
+
"x-component-props": x({}, r == null ? void 0 : r["x-component-props"])
|
|
37335
|
+
}
|
|
37336
|
+
});
|
|
37337
|
+
}
|
|
37338
|
+
};
|
|
37339
|
+
}
|
|
37315
37340
|
}, inputComponentSettings = new SchemaSettings({
|
|
37316
37341
|
name: "fieldSettings:component:Input",
|
|
37317
37342
|
items: [
|
|
@@ -37319,7 +37344,8 @@ const enabledIndexColumn$1 = {
|
|
|
37319
37344
|
enableLinkSettingsItem,
|
|
37320
37345
|
openModeSettingsItem,
|
|
37321
37346
|
enableScanSettingsItem,
|
|
37322
|
-
disableManualInputSettingsItem
|
|
37347
|
+
disableManualInputSettingsItem,
|
|
37348
|
+
autoFocusSettingsItem
|
|
37323
37349
|
]
|
|
37324
37350
|
}), enableLink$1 = {
|
|
37325
37351
|
name: "enableLink",
|
|
@@ -38051,10 +38077,10 @@ const enabledIndexColumn$1 = {
|
|
|
38051
38077
|
items: [size, objectFit]
|
|
38052
38078
|
}), inputTextAreaSettings = new SchemaSettings({
|
|
38053
38079
|
name: "fieldSettings:component:Input.TextArea",
|
|
38054
|
-
items: [ellipsisSettingsItem]
|
|
38080
|
+
items: [ellipsisSettingsItem, autoFocusSettingsItem]
|
|
38055
38081
|
}), inputURLSettings = new SchemaSettings({
|
|
38056
38082
|
name: "fieldSettings:component:Input.URL",
|
|
38057
|
-
items: [ellipsisSettingsItem]
|
|
38083
|
+
items: [ellipsisSettingsItem, autoFocusSettingsItem]
|
|
38058
38084
|
}), markdownSettings = new SchemaSettings({
|
|
38059
38085
|
name: "fieldSettings:component:Markdown",
|
|
38060
38086
|
items: [ellipsisSettingsItem]
|
|
@@ -38221,7 +38247,8 @@ const dividerSettings = new SchemaSettings({
|
|
|
38221
38247
|
}
|
|
38222
38248
|
},
|
|
38223
38249
|
enableLinkSettingsItem,
|
|
38224
|
-
openModeSettingsItem
|
|
38250
|
+
openModeSettingsItem,
|
|
38251
|
+
autoFocusSettingsItem
|
|
38225
38252
|
]
|
|
38226
38253
|
}), filterFormItemSettings = new SchemaSettings({
|
|
38227
38254
|
name: "FilterFormItemSettings",
|
|
@@ -43615,15 +43642,19 @@ function toValueItem(e) {
|
|
|
43615
43642
|
return e;
|
|
43616
43643
|
}
|
|
43617
43644
|
const toItem = (e) => {
|
|
43618
|
-
var
|
|
43619
|
-
|
|
43620
|
-
|
|
43621
|
-
|
|
43645
|
+
var n;
|
|
43646
|
+
if (typeof e == "string")
|
|
43647
|
+
return {
|
|
43648
|
+
url: e
|
|
43649
|
+
};
|
|
43650
|
+
(n = e == null ? void 0 : e.response) != null && n.data && (e = x({
|
|
43622
43651
|
uid: e.uid
|
|
43623
|
-
}, e.response.data))
|
|
43652
|
+
}, e.response.data));
|
|
43653
|
+
const t = P(x({}, e), {
|
|
43624
43654
|
id: e.id || e.uid,
|
|
43625
43655
|
title: e.title || e.name
|
|
43626
|
-
})
|
|
43656
|
+
});
|
|
43657
|
+
return e.url && (t.url = e.url.startsWith("https://") || e.url.startsWith("http://") ? e.url : `${location.origin}/${e.url.replace(/^\//, "")}`), t;
|
|
43627
43658
|
}, toFileList = (e) => toArr$1(e).filter(Boolean).map(toItem), Rules = {
|
|
43628
43659
|
size(e, t) {
|
|
43629
43660
|
const n = t != null ? t : FILE_SIZE_LIMIT_DEFAULT;
|
|
@@ -13,4 +13,5 @@ export declare const enableLinkSettingsItem: SchemaSettingsItemType;
|
|
|
13
13
|
export declare const enableScanSettingsItem: SchemaSettingsItemType;
|
|
14
14
|
export declare const disableManualInputSettingsItem: SchemaSettingsItemType;
|
|
15
15
|
export declare const openModeSettingsItem: SchemaSettingsItemType;
|
|
16
|
+
export declare const autoFocusSettingsItem: SchemaSettingsItemType;
|
|
16
17
|
export declare const inputComponentSettings: SchemaSettings<{}>;
|