@realtek/core-theme 0.0.95 → 0.0.96
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 +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +17 -16
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -6362,7 +6362,7 @@ function nd(e, t, n) {
|
|
|
6362
6362
|
return r ? Qu(r, t) : $u(n) ? String(n) : "";
|
|
6363
6363
|
}
|
|
6364
6364
|
function rd(e, t) {
|
|
6365
|
-
if (!t ||
|
|
6365
|
+
if (!t || !e || typeof e != "string" || e === "-") return e;
|
|
6366
6366
|
let n = e.toLowerCase(), r = t.toLowerCase(), i = [], a = 0;
|
|
6367
6367
|
for (; a <= e.length;) {
|
|
6368
6368
|
let o = n.indexOf(r, a);
|
|
@@ -6742,8 +6742,8 @@ function Jd(e) {
|
|
|
6742
6742
|
});
|
|
6743
6743
|
}
|
|
6744
6744
|
var Yd = [];
|
|
6745
|
-
function Xd({ record: e, fields: t, selected: n, onSelect: r, onPreview: i, onRecordClick: a, isControlled: o, selectionMode: s = "checkbox", onPopupAction: c }) {
|
|
6746
|
-
let
|
|
6745
|
+
function Xd({ record: e, fields: t, selected: n, onSelect: r, onPreview: i, onRecordClick: a, isControlled: o, selectionMode: s = "checkbox", onPopupAction: c, searchQuery: l = "" }) {
|
|
6746
|
+
let u = t.find((e) => e.cardRole === "name"), d = t.find((e) => e.cardRole === "action"), f = t.find((e) => e.cardRole === "headerAction"), p = t.filter((e) => e !== u && e !== d && e !== f), m = u ? Uu(e, Fu(u)) : "", h = d?.render ? d.render(Ru(e, Fu(d)), e) : null, g = f?.render ? f.render(Ru(e, Fu(f)), e) : null;
|
|
6747
6747
|
return /* @__PURE__ */ Q("div", {
|
|
6748
6748
|
className: `param-card${n ? " param-card--selected" : ""}`,
|
|
6749
6749
|
"aria-selected": n,
|
|
@@ -6782,19 +6782,19 @@ function Xd({ record: e, fields: t, selected: n, onSelect: r, onPreview: i, onRe
|
|
|
6782
6782
|
}),
|
|
6783
6783
|
/* @__PURE__ */ Z(Nu, {
|
|
6784
6784
|
className: "param-card__name",
|
|
6785
|
-
children:
|
|
6785
|
+
children: rd(m, l)
|
|
6786
6786
|
}),
|
|
6787
|
-
|
|
6787
|
+
g && /* @__PURE__ */ Z("div", {
|
|
6788
6788
|
className: "param-card__header-actions",
|
|
6789
|
-
children:
|
|
6789
|
+
children: g
|
|
6790
6790
|
})
|
|
6791
6791
|
]
|
|
6792
6792
|
})
|
|
6793
6793
|
}),
|
|
6794
|
-
|
|
6794
|
+
p.length > 0 && /* @__PURE__ */ Z("div", {
|
|
6795
6795
|
className: "param-card__body-fields",
|
|
6796
|
-
children:
|
|
6797
|
-
let n = Fu(t), r = Ru(e, n), i = o && typeof t.render == "function" ? t.render(r, e) : wd(t, e,
|
|
6796
|
+
children: p.map((t) => {
|
|
6797
|
+
let n = Fu(t), r = Ru(e, n), i = o && typeof t.render == "function" ? t.render(r, e) : wd(t, e, l, c);
|
|
6798
6798
|
return /* @__PURE__ */ Q("div", {
|
|
6799
6799
|
className: "param-card__field-row",
|
|
6800
6800
|
children: [/* @__PURE__ */ Z(Nu, {
|
|
@@ -6812,7 +6812,7 @@ function Xd({ record: e, fields: t, selected: n, onSelect: r, onPreview: i, onRe
|
|
|
6812
6812
|
className: "param-card__footer",
|
|
6813
6813
|
children: [/* @__PURE__ */ Z("div", { className: "param-card__footer-left" }), /* @__PURE__ */ Z("div", {
|
|
6814
6814
|
className: "param-card__footer-right",
|
|
6815
|
-
children:
|
|
6815
|
+
children: h
|
|
6816
6816
|
})]
|
|
6817
6817
|
})
|
|
6818
6818
|
]
|
|
@@ -7047,16 +7047,16 @@ function tf({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
|
|
|
7047
7047
|
key: e.key,
|
|
7048
7048
|
label: e.label
|
|
7049
7049
|
})), [Zt]), $t = Qt.map((e) => e.key), en = Ie.filter((e) => $t.includes(e)), rn = en.length ? en : Qt.slice(0, 6).map((e) => e.key), on = Math.min(6, Qt.length), sn = rn.length > 6, cn = w(() => Zt.filter((e) => !e.cardHidden && (e.tableHidden || rn.includes(e.key))), [Zt, rn]), ln = w(() => {
|
|
7050
|
-
let e =
|
|
7050
|
+
let e = ye.toLowerCase(), t = vt, n = Kt ? t.filter((e) => Od(e, ge, Ut, Zt, Wt)) : t;
|
|
7051
7051
|
return !e || e.length < 3 ? n : n.filter((t) => Zt.some((n) => String(Uu(t, n.key)).toLowerCase().includes(e)));
|
|
7052
7052
|
}, [
|
|
7053
7053
|
ge,
|
|
7054
7054
|
Ut,
|
|
7055
7055
|
Wt,
|
|
7056
7056
|
Kt,
|
|
7057
|
+
ye,
|
|
7057
7058
|
vt,
|
|
7058
|
-
Zt
|
|
7059
|
-
ve
|
|
7059
|
+
Zt
|
|
7060
7060
|
]), un = w(() => {
|
|
7061
7061
|
if (!qt) return ln;
|
|
7062
7062
|
let e = (Me.current - 1) * Me.pageSize;
|
|
@@ -7149,10 +7149,9 @@ function tf({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
|
|
|
7149
7149
|
fixed: t === 0 ? "left" : void 0,
|
|
7150
7150
|
ellipsis: { showTitle: !1 },
|
|
7151
7151
|
width: t === 0 ? 220 : sn ? 180 : Math.max(140, Math.floor(900 / Math.max(rn.length || 1, 1))),
|
|
7152
|
-
render: (t, n) => wd(e, n,
|
|
7152
|
+
render: (t, n) => wd(e, n, ve.trim(), vn)
|
|
7153
7153
|
};
|
|
7154
7154
|
})], [
|
|
7155
|
-
ye,
|
|
7156
7155
|
Bt,
|
|
7157
7156
|
sn,
|
|
7158
7157
|
mn,
|
|
@@ -7160,6 +7159,7 @@ function tf({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
|
|
|
7160
7159
|
e,
|
|
7161
7160
|
le,
|
|
7162
7161
|
Zt,
|
|
7162
|
+
ve,
|
|
7163
7163
|
Pe.sort,
|
|
7164
7164
|
Pe.sortDir,
|
|
7165
7165
|
rn
|
|
@@ -7494,7 +7494,8 @@ function tf({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
|
|
|
7494
7494
|
onSelect: () => An(n),
|
|
7495
7495
|
onPopupAction: vn,
|
|
7496
7496
|
onRecordClick: L ? () => Ge(e, t) : void 0,
|
|
7497
|
-
selectionMode: re
|
|
7497
|
+
selectionMode: re,
|
|
7498
|
+
searchQuery: ve.trim()
|
|
7498
7499
|
}, n);
|
|
7499
7500
|
})
|
|
7500
7501
|
}) : /* @__PURE__ */ Z(_e, {
|