@webority/ui-react 0.9.2 → 0.9.4
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/ui-react.js +20 -5
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -1999,18 +1999,29 @@ var Oe = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1999
1999
|
detail: t
|
|
2000
2000
|
}));
|
|
2001
2001
|
};
|
|
2002
|
-
e.addEventListener("input", () =>
|
|
2002
|
+
e.addEventListener("input", () => {
|
|
2003
|
+
let n = e.value;
|
|
2004
|
+
if (this._value.length === this.length && n.length > this._value.length && n.startsWith(this._value)) {
|
|
2005
|
+
let e = this._clean(n.slice(this._value.length));
|
|
2006
|
+
if (e) {
|
|
2007
|
+
t(e);
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
t(n);
|
|
2012
|
+
}), e.addEventListener("paste", (e) => {
|
|
2003
2013
|
let n = e.clipboardData?.getData("text");
|
|
2004
2014
|
n != null && (e.preventDefault(), t(n));
|
|
2005
2015
|
});
|
|
2006
2016
|
for (let t of [
|
|
2007
2017
|
"keyup",
|
|
2008
2018
|
"click",
|
|
2009
|
-
"focus",
|
|
2010
2019
|
"blur",
|
|
2011
2020
|
"select"
|
|
2012
2021
|
]) e.addEventListener(t, () => this._paint());
|
|
2013
|
-
|
|
2022
|
+
e.addEventListener("focus", () => {
|
|
2023
|
+
this._value.length === this.length && e.select(), this._paint();
|
|
2024
|
+
}), this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange), this._onSelectionChange = () => {
|
|
2014
2025
|
document.activeElement === e && this._paint();
|
|
2015
2026
|
}, document.addEventListener("selectionchange", this._onSelectionChange);
|
|
2016
2027
|
}
|
|
@@ -4392,7 +4403,7 @@ var st = class extends HTMLElement {
|
|
|
4392
4403
|
}
|
|
4393
4404
|
_footerHtml(e) {
|
|
4394
4405
|
let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional") || this.hasAttribute("skippable"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
|
|
4395
|
-
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${wt(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${wt(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${wt(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${wt(c)}</button>`}</span>`;
|
|
4406
|
+
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${K("arrow-left", { className: "me-2" })}${wt(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${wt(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${wt(o)}${K("arrow-right", { className: "ms-2" })}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${wt(c)}</button>`}</span>`;
|
|
4396
4407
|
}
|
|
4397
4408
|
_wire() {
|
|
4398
4409
|
this._teardown(), this._onHeaderClick = (e) => {
|
|
@@ -6069,7 +6080,10 @@ function zn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6069
6080
|
}) : /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", {
|
|
6070
6081
|
colSpan: j,
|
|
6071
6082
|
className: "wui-table-empty",
|
|
6072
|
-
children: L
|
|
6083
|
+
children: typeof L == "string" ? /* @__PURE__ */ p("div", {
|
|
6084
|
+
className: "tbl-empty-plain",
|
|
6085
|
+
children: L
|
|
6086
|
+
}) : L
|
|
6073
6087
|
}) }) })]
|
|
6074
6088
|
})
|
|
6075
6089
|
}), _ && !o && _.total > 0 && /* @__PURE__ */ p(In, {
|
|
@@ -6922,6 +6936,7 @@ function pr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
6922
6936
|
...k,
|
|
6923
6937
|
children: /* @__PURE__ */ m("span", {
|
|
6924
6938
|
className: "set-uploader-ring",
|
|
6939
|
+
"data-overlay-label": g,
|
|
6925
6940
|
children: [ne ? /* @__PURE__ */ p("img", {
|
|
6926
6941
|
className: "set-uploader-img",
|
|
6927
6942
|
src: ne,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webority/theme": "0.9.
|
|
32
|
-
"@webority/ui-elements": "0.9.
|
|
31
|
+
"@webority/theme": "0.9.4",
|
|
32
|
+
"@webority/ui-elements": "0.9.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"bootstrap": "5.3.3",
|