@nocobase/client 0.17.0-alpha.5 → 0.17.0-alpha.6
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 +39 -2
- package/lib/index.js +39 -2
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -12584,6 +12584,11 @@ const CSSVariableProvider = ({ children }) => {
|
|
|
12584
12584
|
return children;
|
|
12585
12585
|
};
|
|
12586
12586
|
CSSVariableProvider.displayName = "CSSVariableProvider";
|
|
12587
|
+
function defineDevPlugins(plugins) {
|
|
12588
|
+
Object.entries(plugins).forEach(([packageName, plugin]) => {
|
|
12589
|
+
window.define(`${packageName}/client`, () => plugin);
|
|
12590
|
+
});
|
|
12591
|
+
}
|
|
12587
12592
|
function definePluginClient(packageName) {
|
|
12588
12593
|
window.define(`${packageName}/client`, ["exports", packageName], function(_exports, _plugin) {
|
|
12589
12594
|
Object.defineProperty(_exports, "__esModule", {
|
|
@@ -12638,7 +12643,37 @@ function getPlugins(options) {
|
|
|
12638
12643
|
const { requirejs: requirejs2, pluginData, devDynamicImport } = options;
|
|
12639
12644
|
if (pluginData.length === 0)
|
|
12640
12645
|
return [];
|
|
12641
|
-
|
|
12646
|
+
const res = [];
|
|
12647
|
+
const resolveDevPlugins = {};
|
|
12648
|
+
if (devDynamicImport) {
|
|
12649
|
+
try {
|
|
12650
|
+
for (var iter = __forAwait(pluginData), more, temp, error2; more = !(temp = yield iter.next()).done; more = false) {
|
|
12651
|
+
const plugin = temp.value;
|
|
12652
|
+
const pluginModule = yield devDynamicImport(plugin.packageName);
|
|
12653
|
+
if (pluginModule) {
|
|
12654
|
+
res.push([plugin.name, pluginModule.default]);
|
|
12655
|
+
resolveDevPlugins[plugin.packageName] = pluginModule.default;
|
|
12656
|
+
}
|
|
12657
|
+
}
|
|
12658
|
+
} catch (temp) {
|
|
12659
|
+
error2 = [temp];
|
|
12660
|
+
} finally {
|
|
12661
|
+
try {
|
|
12662
|
+
more && (temp = iter.return) && (yield temp.call(iter));
|
|
12663
|
+
} finally {
|
|
12664
|
+
if (error2)
|
|
12665
|
+
throw error2[0];
|
|
12666
|
+
}
|
|
12667
|
+
}
|
|
12668
|
+
defineDevPlugins(resolveDevPlugins);
|
|
12669
|
+
}
|
|
12670
|
+
const remotePlugins = pluginData.filter((item) => !resolveDevPlugins[item.packageName]);
|
|
12671
|
+
if (remotePlugins.length === 0) {
|
|
12672
|
+
return res;
|
|
12673
|
+
}
|
|
12674
|
+
const remotePluginList = yield getRemotePlugins(requirejs2, remotePlugins);
|
|
12675
|
+
res.push(...remotePluginList);
|
|
12676
|
+
return res;
|
|
12642
12677
|
});
|
|
12643
12678
|
}
|
|
12644
12679
|
let PluginManager$1 = class PluginManager2 {
|
|
@@ -28033,7 +28068,7 @@ const ReadPrettyInternalViewer = observer(
|
|
|
28033
28068
|
const { designable } = useDesignable();
|
|
28034
28069
|
const { snapshot } = useActionContext();
|
|
28035
28070
|
const targetCollection = getCollection(collectionField == null ? void 0 : collectionField.target);
|
|
28036
|
-
const isTreeCollection = targetCollection.template === "tree";
|
|
28071
|
+
const isTreeCollection = (targetCollection == null ? void 0 : targetCollection.template) === "tree";
|
|
28037
28072
|
const ellipsisWithTooltipRef = useRef();
|
|
28038
28073
|
const renderRecords = () => toArr$3(props.value).map((record2, index2, arr) => {
|
|
28039
28074
|
const value = record2 == null ? void 0 : record2[(fieldNames == null ? void 0 : fieldNames.label) || "label"];
|
|
@@ -39406,6 +39441,8 @@ const GridCardItem = (props) => {
|
|
|
39406
39441
|
return /* @__PURE__ */ jsx(
|
|
39407
39442
|
Card$1,
|
|
39408
39443
|
{
|
|
39444
|
+
role: "button",
|
|
39445
|
+
"aria-label": "grid-card-item",
|
|
39409
39446
|
className: css`
|
|
39410
39447
|
height: 100%;
|
|
39411
39448
|
> .ant-card-body {
|
package/lib/index.js
CHANGED
|
@@ -13352,6 +13352,11 @@ const CSSVariableProvider = ({ children }) => {
|
|
|
13352
13352
|
return children;
|
|
13353
13353
|
};
|
|
13354
13354
|
CSSVariableProvider.displayName = "CSSVariableProvider";
|
|
13355
|
+
function defineDevPlugins(plugins) {
|
|
13356
|
+
Object.entries(plugins).forEach(([packageName, plugin]) => {
|
|
13357
|
+
window.define(`${packageName}/client`, () => plugin);
|
|
13358
|
+
});
|
|
13359
|
+
}
|
|
13355
13360
|
function definePluginClient(packageName) {
|
|
13356
13361
|
window.define(`${packageName}/client`, ["exports", packageName], function(_exports, _plugin) {
|
|
13357
13362
|
Object.defineProperty(_exports, "__esModule", {
|
|
@@ -13406,7 +13411,37 @@ function getPlugins(options) {
|
|
|
13406
13411
|
const { requirejs: requirejs2, pluginData, devDynamicImport } = options;
|
|
13407
13412
|
if (pluginData.length === 0)
|
|
13408
13413
|
return [];
|
|
13409
|
-
|
|
13414
|
+
const res = [];
|
|
13415
|
+
const resolveDevPlugins = {};
|
|
13416
|
+
if (devDynamicImport) {
|
|
13417
|
+
try {
|
|
13418
|
+
for (var iter = __forAwait(pluginData), more, temp, error2; more = !(temp = yield iter.next()).done; more = false) {
|
|
13419
|
+
const plugin = temp.value;
|
|
13420
|
+
const pluginModule = yield devDynamicImport(plugin.packageName);
|
|
13421
|
+
if (pluginModule) {
|
|
13422
|
+
res.push([plugin.name, pluginModule.default]);
|
|
13423
|
+
resolveDevPlugins[plugin.packageName] = pluginModule.default;
|
|
13424
|
+
}
|
|
13425
|
+
}
|
|
13426
|
+
} catch (temp2) {
|
|
13427
|
+
error2 = [temp2];
|
|
13428
|
+
} finally {
|
|
13429
|
+
try {
|
|
13430
|
+
more && (temp = iter.return) && (yield temp.call(iter));
|
|
13431
|
+
} finally {
|
|
13432
|
+
if (error2)
|
|
13433
|
+
throw error2[0];
|
|
13434
|
+
}
|
|
13435
|
+
}
|
|
13436
|
+
defineDevPlugins(resolveDevPlugins);
|
|
13437
|
+
}
|
|
13438
|
+
const remotePlugins = pluginData.filter((item) => !resolveDevPlugins[item.packageName]);
|
|
13439
|
+
if (remotePlugins.length === 0) {
|
|
13440
|
+
return res;
|
|
13441
|
+
}
|
|
13442
|
+
const remotePluginList = yield getRemotePlugins(requirejs2, remotePlugins);
|
|
13443
|
+
res.push(...remotePluginList);
|
|
13444
|
+
return res;
|
|
13410
13445
|
});
|
|
13411
13446
|
}
|
|
13412
13447
|
let PluginManager$1 = class PluginManager2 {
|
|
@@ -28801,7 +28836,7 @@ const ReadPrettyInternalViewer = (0, import_react.observer)(
|
|
|
28801
28836
|
const { designable } = useDesignable();
|
|
28802
28837
|
const { snapshot } = useActionContext();
|
|
28803
28838
|
const targetCollection = getCollection(collectionField == null ? void 0 : collectionField.target);
|
|
28804
|
-
const isTreeCollection = targetCollection.template === "tree";
|
|
28839
|
+
const isTreeCollection = (targetCollection == null ? void 0 : targetCollection.template) === "tree";
|
|
28805
28840
|
const ellipsisWithTooltipRef = (0, import_react2.useRef)();
|
|
28806
28841
|
const renderRecords = () => (0, import_shared.toArr)(props.value).map((record2, index2, arr) => {
|
|
28807
28842
|
const value = record2 == null ? void 0 : record2[(fieldNames == null ? void 0 : fieldNames.label) || "label"];
|
|
@@ -40174,6 +40209,8 @@ const GridCardItem = (props) => {
|
|
|
40174
40209
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40175
40210
|
import_antd.Card,
|
|
40176
40211
|
{
|
|
40212
|
+
role: "button",
|
|
40213
|
+
"aria-label": "grid-card-item",
|
|
40177
40214
|
className: import_css.css`
|
|
40178
40215
|
height: 100%;
|
|
40179
40216
|
> .ant-card-body {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/client",
|
|
3
|
-
"version": "0.17.0-alpha.
|
|
3
|
+
"version": "0.17.0-alpha.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@formily/reactive-react": "^2.2.27",
|
|
26
26
|
"@formily/shared": "^2.2.27",
|
|
27
27
|
"@formily/validator": "^2.2.27",
|
|
28
|
-
"@nocobase/evaluators": "0.17.0-alpha.
|
|
29
|
-
"@nocobase/sdk": "0.17.0-alpha.
|
|
30
|
-
"@nocobase/utils": "0.17.0-alpha.
|
|
28
|
+
"@nocobase/evaluators": "0.17.0-alpha.6",
|
|
29
|
+
"@nocobase/sdk": "0.17.0-alpha.6",
|
|
30
|
+
"@nocobase/utils": "0.17.0-alpha.6",
|
|
31
31
|
"@types/requirejs": "^2.1.34",
|
|
32
32
|
"ahooks": "^3.7.2",
|
|
33
33
|
"antd": "^5.8.6",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"dumi": "^2.2.0",
|
|
77
77
|
"dumi-theme-nocobase": "^0.2.19"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "f92f8bcdf6d5baf07566381e9425ebca11e19626"
|
|
80
80
|
}
|