@realtek/core-theme 0.0.91 → 0.0.92
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-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +20 -20
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -2097,38 +2097,38 @@ async function yi(e, t, n = "", r = 50, i = 0, a = {}) {
|
|
|
2097
2097
|
return a.dataSource && s.set("dataSource", a.dataSource), a.masterName && s.set("masterName", a.masterName), a.groupName && s.set("groupName", a.groupName), g(o, `/filter-dropdown-values?${s}`);
|
|
2098
2098
|
}
|
|
2099
2099
|
async function bi(e, t = {}, n = {}, r = {}) {
|
|
2100
|
-
let { limit: i = 10, offset: a = 0 } = n, { sort:
|
|
2101
|
-
|
|
2100
|
+
let { limit: i = 10, offset: a = 0 } = n, { sort: s = "", sortDir: l = "", scope: u = "" } = r, d = hi(u || t.selectedSource), f = new URLSearchParams();
|
|
2101
|
+
f.append("module", e), f.append("limit", String(i)), f.append("offset", String(a)), d && (f.set("scope", d), console.log("[searchModuleData] Adding scope to query:", d)), s && f.set("sort", s), l && f.set("sortDir", l), console.log("[searchModuleData] Final query string:", f.toString()), Object.entries(t).forEach(([e, t]) => {
|
|
2102
2102
|
if (t == null || t === "") return;
|
|
2103
2103
|
let n = t;
|
|
2104
|
-
n = typeof t == "object" ? t.value ?? t.label ?? t.name ?? String(t) : String(t),
|
|
2104
|
+
n = typeof t == "object" ? t.value ?? t.label ?? t.name ?? String(t) : String(t), f.append(e, n);
|
|
2105
2105
|
});
|
|
2106
|
-
let
|
|
2107
|
-
|
|
2108
|
-
let
|
|
2106
|
+
let p = await c(o, `/module-data-list?${f.toString()}`), m = p?.data ?? p, h = Array.isArray(m) ? m : m?.rows ?? m?.records ?? m?.items ?? m?.list ?? m?.data ?? [], g = _i(p, m, h, d), _ = vi(p, m);
|
|
2107
|
+
d && _[d] === void 0 && Number.isFinite(g) && (_[d] = g);
|
|
2108
|
+
let v = h.some((e) => [
|
|
2109
2109
|
e?.sourceType,
|
|
2110
2110
|
e?.profileSource,
|
|
2111
2111
|
e?.selectedSource,
|
|
2112
2112
|
e?.customFields?.sourceType,
|
|
2113
2113
|
e?.customFields?.profileSource
|
|
2114
|
-
].flat().some((e) => String(e ?? "").trim().toLowerCase() === "dice") || !!e?.customFields?.diceProfileData),
|
|
2115
|
-
if (
|
|
2114
|
+
].flat().some((e) => String(e ?? "").trim().toLowerCase() === "dice") || !!e?.customFields?.diceProfileData), y = h;
|
|
2115
|
+
if (v) try {
|
|
2116
2116
|
let { transformDiceResponseToInternalFormat: e } = await Promise.resolve().then(() => $r);
|
|
2117
|
-
|
|
2117
|
+
y = e(p, p)?.data?.data ?? h;
|
|
2118
2118
|
} catch (e) {
|
|
2119
|
-
console.error("[searchModuleData] Dice transformation failed:", e),
|
|
2119
|
+
console.error("[searchModuleData] Dice transformation failed:", e), y = h.map(Ci);
|
|
2120
2120
|
}
|
|
2121
|
-
else
|
|
2121
|
+
else y = Array.isArray(h) ? h.map(Ci) : [];
|
|
2122
2122
|
return {
|
|
2123
|
-
rows:
|
|
2124
|
-
total: Number(
|
|
2125
|
-
counts:
|
|
2126
|
-
tabs:
|
|
2127
|
-
fields:
|
|
2128
|
-
tabField:
|
|
2129
|
-
actionRules:
|
|
2130
|
-
actions:
|
|
2131
|
-
columnActions:
|
|
2123
|
+
rows: y,
|
|
2124
|
+
total: Number(g) || 0,
|
|
2125
|
+
counts: _,
|
|
2126
|
+
tabs: p?.tabs ?? p?.tabList ?? m?.tabs ?? m?.tabList ?? [],
|
|
2127
|
+
fields: p?.fields ?? p?.fieldConfig ?? m?.fields ?? m?.fieldConfig ?? [],
|
|
2128
|
+
tabField: p?.tabField ?? m?.tabField ?? "",
|
|
2129
|
+
actionRules: m?.actionRules ?? [],
|
|
2130
|
+
actions: m?.actions ?? [],
|
|
2131
|
+
columnActions: m?.columnActions ?? []
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
function xi(e, t) {
|