@webority/ui-react 0.120.0 → 0.121.0
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/canvas-kit/kit.js
CHANGED
|
@@ -14621,46 +14621,48 @@ var Ipe = ["sm", "lg"], Lpe = [], Rpe = (e, t) => ({
|
|
|
14621
14621
|
label: n
|
|
14622
14622
|
}];
|
|
14623
14623
|
}, zpe = u(function(e, r) {
|
|
14624
|
-
let { marker: i, props: a } = H("AppAutocomplete", e), { value: o, onChange: s, options: c, valueLabel: l, loadOptions: u, placeholder: d = "Search…", minChars: f, debounce: p, disabled: g = !1, open: _, size:
|
|
14625
|
-
U("AppAutocomplete",
|
|
14626
|
-
let
|
|
14624
|
+
let { marker: i, props: a } = H("AppAutocomplete", e), { value: o, onChange: s, options: c, valueLabel: l, loadOptions: u, placeholder: d = "Search…", minChars: f, debounce: p, disabled: g = !1, open: _, size: y, allowCustom: b = !1, name: S, id: C, label: w, error: T, hint: E, required: D = !1, help: O, helpLabel: k = "More information", fieldClassName: A = "", ...j } = a;
|
|
14625
|
+
U("AppAutocomplete", j), V("AppAutocomplete", "size", y, Ipe);
|
|
14626
|
+
let M = typeof u == "function", N = h(), P = C || N, { setRef: F, innerRef: I } = Fs({
|
|
14627
14627
|
ref: r,
|
|
14628
14628
|
value: o ?? "",
|
|
14629
14629
|
on: { change: (e) => s?.(e.currentTarget.value, { isCustom: !!e.detail?.isCustom }) }
|
|
14630
|
-
}),
|
|
14631
|
-
return
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
let
|
|
14630
|
+
}), L = c || Lpe, { portal: R, toElementOptions: z } = Ps(L), B = x(!1), ee = x(u);
|
|
14631
|
+
return v(() => {
|
|
14632
|
+
ee.current = u;
|
|
14633
|
+
}), m(() => {
|
|
14634
|
+
let e = I.current;
|
|
14635
|
+
if (!e || M && B.current) return;
|
|
14636
|
+
let t = z(rc(L, o, l), Rpe);
|
|
14635
14637
|
Ls(t, e.options) || (e.options = t);
|
|
14636
14638
|
}, [
|
|
14639
|
+
L,
|
|
14640
|
+
M,
|
|
14637
14641
|
I,
|
|
14638
|
-
|
|
14639
|
-
F,
|
|
14640
|
-
R,
|
|
14642
|
+
z,
|
|
14641
14643
|
o,
|
|
14642
14644
|
l
|
|
14643
14645
|
]), m(() => {
|
|
14644
|
-
let e =
|
|
14645
|
-
if (!e || !
|
|
14646
|
+
let e = I.current;
|
|
14647
|
+
if (!e || !M || !B.current) return;
|
|
14646
14648
|
let t = e.options, n = rc(t, o, l);
|
|
14647
14649
|
n !== t && (e.options = n);
|
|
14648
14650
|
}, [
|
|
14649
14651
|
o,
|
|
14650
14652
|
l,
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
+
M,
|
|
14654
|
+
I
|
|
14653
14655
|
]), m(() => {
|
|
14654
|
-
let e =
|
|
14655
|
-
if (!e || !
|
|
14656
|
+
let e = I.current;
|
|
14657
|
+
if (!e || !M) return;
|
|
14656
14658
|
let t = 0, n = null, r = async (r) => {
|
|
14657
14659
|
let i = ++t;
|
|
14658
14660
|
n?.abort(), n = typeof AbortController == "function" ? new AbortController() : null, e.loading = !0;
|
|
14659
14661
|
try {
|
|
14660
|
-
let a = await
|
|
14661
|
-
i === t && (
|
|
14662
|
+
let a = await ee.current(r.detail.query, { signal: n?.signal });
|
|
14663
|
+
i === t && (B.current = !0, e.options = a || []);
|
|
14662
14664
|
} catch {
|
|
14663
|
-
i === t && (
|
|
14665
|
+
i === t && (B.current = !0, e.options = []);
|
|
14664
14666
|
} finally {
|
|
14665
14667
|
i === t && (e.loading = !1);
|
|
14666
14668
|
}
|
|
@@ -14668,50 +14670,46 @@ var Ipe = ["sm", "lg"], Lpe = [], Rpe = (e, t) => ({
|
|
|
14668
14670
|
return e.addEventListener("search", r), () => {
|
|
14669
14671
|
t = -1, n?.abort(), e.removeEventListener("search", r), e.loading = !1;
|
|
14670
14672
|
};
|
|
14671
|
-
}, [
|
|
14672
|
-
j,
|
|
14673
|
-
u,
|
|
14674
|
-
F
|
|
14675
|
-
]), n("div", {
|
|
14673
|
+
}, [M, I]), n("div", {
|
|
14676
14674
|
...i,
|
|
14677
|
-
className: `field${
|
|
14675
|
+
className: `field${A ? ` ${A}` : ""}`,
|
|
14678
14676
|
children: [
|
|
14679
|
-
|
|
14677
|
+
w && n("label", {
|
|
14680
14678
|
className: "label",
|
|
14681
|
-
htmlFor:
|
|
14679
|
+
htmlFor: P,
|
|
14682
14680
|
children: [
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
label:
|
|
14687
|
-
children:
|
|
14681
|
+
w,
|
|
14682
|
+
D && t(As, {}),
|
|
14683
|
+
O && t(ks, {
|
|
14684
|
+
label: k,
|
|
14685
|
+
children: O
|
|
14688
14686
|
})
|
|
14689
14687
|
]
|
|
14690
14688
|
}),
|
|
14691
14689
|
t("wui-autocomplete", {
|
|
14692
|
-
"aria-label": typeof
|
|
14693
|
-
"aria-describedby":
|
|
14694
|
-
"aria-invalid":
|
|
14695
|
-
id:
|
|
14696
|
-
ref:
|
|
14697
|
-
name:
|
|
14690
|
+
"aria-label": typeof w == "string" ? w : void 0,
|
|
14691
|
+
"aria-describedby": T ? `${P}-error` : E ? `${P}-hint` : void 0,
|
|
14692
|
+
"aria-invalid": T ? "true" : void 0,
|
|
14693
|
+
id: P,
|
|
14694
|
+
ref: F,
|
|
14695
|
+
name: S,
|
|
14698
14696
|
placeholder: d,
|
|
14699
|
-
remote:
|
|
14697
|
+
remote: M ? "" : void 0,
|
|
14700
14698
|
"min-chars": f == null ? void 0 : String(f),
|
|
14701
14699
|
debounce: p == null ? void 0 : String(p),
|
|
14702
|
-
size:
|
|
14703
|
-
"allow-custom":
|
|
14700
|
+
size: y || void 0,
|
|
14701
|
+
"allow-custom": b ? "" : void 0,
|
|
14704
14702
|
disabled: g ? "" : void 0,
|
|
14705
14703
|
open: _ ? "" : void 0,
|
|
14706
|
-
required:
|
|
14707
|
-
...
|
|
14704
|
+
required: D ? "" : void 0,
|
|
14705
|
+
...j
|
|
14708
14706
|
}),
|
|
14709
|
-
|
|
14707
|
+
R,
|
|
14710
14708
|
t(js, {
|
|
14711
|
-
error:
|
|
14712
|
-
hint:
|
|
14713
|
-
errorId: `${
|
|
14714
|
-
hintId: `${
|
|
14709
|
+
error: T,
|
|
14710
|
+
hint: E,
|
|
14711
|
+
errorId: `${P}-error`,
|
|
14712
|
+
hintId: `${P}-hint`
|
|
14715
14713
|
})
|
|
14716
14714
|
]
|
|
14717
14715
|
});
|
|
@@ -41338,7 +41336,7 @@ function HD(e) {
|
|
|
41338
41336
|
6,
|
|
41339
41337
|
7,
|
|
41340
41338
|
8
|
|
41341
|
-
].map((e) => n(`--
|
|
41339
|
+
].map((e) => n(`--color-chart-${e}`)),
|
|
41342
41340
|
seq: [
|
|
41343
41341
|
0,
|
|
41344
41342
|
1,
|
|
@@ -41347,8 +41345,8 @@ function HD(e) {
|
|
|
41347
41345
|
4,
|
|
41348
41346
|
5,
|
|
41349
41347
|
6
|
|
41350
|
-
].map((e) => n(`--
|
|
41351
|
-
neutral: n("--
|
|
41348
|
+
].map((e) => n(`--color-chart-seq-${e}`)),
|
|
41349
|
+
neutral: n("--color-chart-neutral"),
|
|
41352
41350
|
grid: n("--color-chart-grid"),
|
|
41353
41351
|
axis: n("--color-chart-axis"),
|
|
41354
41352
|
label: n("--color-chart-label"),
|
|
@@ -41361,7 +41359,7 @@ function HD(e) {
|
|
|
41361
41359
|
dark: i === "dark" || i === "auto" && !!EG(wG)?.matches,
|
|
41362
41360
|
reducedMotion: !!EG(TG)?.matches
|
|
41363
41361
|
};
|
|
41364
|
-
return !a.palette[0] && !DG && (DG = !0, WE("[@webority/ui-elements] <wui-chart> found no --
|
|
41362
|
+
return !a.palette[0] && !DG && (DG = !0, WE("[@webority/ui-elements] <wui-chart> found no --color-chart-* colours: load @webority/theme on the page.")), a;
|
|
41365
41363
|
}
|
|
41366
41364
|
function uRe(e) {
|
|
41367
41365
|
if (OG.add(e), kG) return;
|
|
@@ -60272,14 +60270,13 @@ function LHe(e) {
|
|
|
60272
60270
|
//#endregion
|
|
60273
60271
|
//#region dist/components/AppColumnMenu.js
|
|
60274
60272
|
function RHe(e) {
|
|
60275
|
-
let { marker: r, props: i } = H("AppColumnMenu", e), { columns: a, hiddenColumns: o = [], onToggle: s, label: c = "Columns", className: l = "", ...u } = i;
|
|
60276
|
-
U("AppColumnMenu", u);
|
|
60277
|
-
let d = a.filter((e) => e.hideable);
|
|
60273
|
+
let { marker: r, props: i } = H("AppColumnMenu", e), { columns: a, hiddenColumns: o = [], onToggle: s, label: c = "Columns", className: l = "", ...u } = i, d = a.filter((e) => e.hideable);
|
|
60278
60274
|
return n(FG, {
|
|
60279
60275
|
icon: "layout-grid",
|
|
60280
60276
|
label: c,
|
|
60281
60277
|
menuClassName: `wui-column-menu${l ? ` ${l}` : ""}`,
|
|
60282
60278
|
...r,
|
|
60279
|
+
...u,
|
|
60283
60280
|
children: [t("div", {
|
|
60284
60281
|
className: "wui-column-menu-title",
|
|
60285
60282
|
children: c
|
|
@@ -61153,7 +61150,7 @@ Object.freeze([
|
|
|
61153
61150
|
actionFailed: "That did not work. Try again.",
|
|
61154
61151
|
actionForbidden: "You do not have permission to do that.",
|
|
61155
61152
|
empty: "No rows"
|
|
61156
|
-
});
|
|
61153
|
+
}), new Intl.NumberFormat("en-IN");
|
|
61157
61154
|
var OUe = Object.freeze([
|
|
61158
61155
|
"POST",
|
|
61159
61156
|
"PUT",
|
|
@@ -61306,7 +61303,7 @@ function RUe() {
|
|
|
61306
61303
|
};
|
|
61307
61304
|
}
|
|
61308
61305
|
//#endregion
|
|
61309
|
-
//#region ../elements/dist/WuiMentionInput-
|
|
61306
|
+
//#region ../elements/dist/WuiMentionInput-BfU34T2S.js
|
|
61310
61307
|
var zUe = /^[A-Za-z0-9_.:-]{1,64}$/, BUe = /@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g, VUe = /@(\\*)\[/g;
|
|
61311
61308
|
function oK(e) {
|
|
61312
61309
|
return String(e ?? "").replace(/[[\]\r\n]+/g, " ").replace(/\s+/g, " ").trim().slice(0, 100);
|
|
@@ -61699,7 +61696,7 @@ Bs("wui-mention-input", class extends Vs {
|
|
|
61699
61696
|
}
|
|
61700
61697
|
});
|
|
61701
61698
|
//#endregion
|
|
61702
|
-
//#region ../elements/dist/WuiCommentThread-
|
|
61699
|
+
//#region ../elements/dist/WuiCommentThread-Cov5ym1G.js
|
|
61703
61700
|
var $Ue = Object.freeze([
|
|
61704
61701
|
"👍",
|
|
61705
61702
|
"❤️",
|
|
@@ -87677,7 +87674,7 @@ function UQe(r) {
|
|
|
87677
87674
|
});
|
|
87678
87675
|
}
|
|
87679
87676
|
//#endregion
|
|
87680
|
-
//#region ../elements/dist/WuiInlineEdit-
|
|
87677
|
+
//#region ../elements/dist/WuiInlineEdit-BNtLomtk.js
|
|
87681
87678
|
var HX = Object.freeze([
|
|
87682
87679
|
"text",
|
|
87683
87680
|
"number",
|
|
@@ -88203,7 +88200,7 @@ rZ.promise = (e, t, n = {}) => {
|
|
|
88203
88200
|
});
|
|
88204
88201
|
};
|
|
88205
88202
|
//#endregion
|
|
88206
|
-
//#region ../elements/dist/kanban-
|
|
88203
|
+
//#region ../elements/dist/kanban-yDMAPkmx.js
|
|
88207
88204
|
function c$e(e, t) {
|
|
88208
88205
|
if (e) {
|
|
88209
88206
|
if (!e.tip?.isConnected) {
|
|
@@ -91668,7 +91665,7 @@ function t4e(r) {
|
|
|
91668
91665
|
});
|
|
91669
91666
|
}
|
|
91670
91667
|
//#endregion
|
|
91671
|
-
//#region ../elements/dist/WuiNotificationCenter-
|
|
91668
|
+
//#region ../elements/dist/WuiNotificationCenter-o7tGbnb1.js
|
|
91672
91669
|
var hQ = ".wui-notification-center-trigger", n4e = ".wui-notification-center-panel", r4e = ".wui-notification-center-count", i4e = ".wui-notification-center-live", gQ = ".wui-notification-center-markall", _Q = ".wui-notification-center-item", vQ = "wui-notification-center-item-read", a4e = ".wui-notification-center-unread-label", o4e = ".app-tabs", s4e = ".wui-notification-center-tabs [role='tablist']", c4e = ".wui-notification-center-tabs [role='tab']", l4e = ".wui-notification-center-empty";
|
|
91673
91670
|
//#endregion
|
|
91674
91671
|
//#region ../elements/dist/elements/notification-center.js
|
|
@@ -133565,7 +133562,7 @@ var lyt = u(function({ compact: r, tenant: i, "aria-label": a, className: o, ...
|
|
|
133565
133562
|
kind: "WeborityWeb",
|
|
133566
133563
|
library: {
|
|
133567
133564
|
name: "@webority/ui-react",
|
|
133568
|
-
version: "0.
|
|
133565
|
+
version: "0.121.0"
|
|
133569
133566
|
},
|
|
133570
133567
|
rendererProtocolVersion: 13,
|
|
133571
133568
|
platform: "Web",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webority-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"platform": "Web",
|
|
5
5
|
"kitModuleVersion": 2,
|
|
6
6
|
"rendererProtocolVersion": 13,
|
|
7
7
|
"library": {
|
|
8
8
|
"name": "@webority/ui-react",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.121.0"
|
|
10
10
|
},
|
|
11
11
|
"files": {
|
|
12
12
|
"manifest.json": {
|
|
13
|
-
"sha256": "
|
|
13
|
+
"sha256": "f145fc7885621959e7fe7c9a89847bfa6508100e22436e9f9e6f9e006ef30f2c",
|
|
14
14
|
"bytes": 858353
|
|
15
15
|
},
|
|
16
16
|
"kit.js": {
|
|
17
|
-
"sha256": "
|
|
18
|
-
"bytes":
|
|
17
|
+
"sha256": "338408f252d769e82ec27197e9917aad6ea7842584944870d1d324ea96076a14",
|
|
18
|
+
"bytes": 10911288
|
|
19
19
|
},
|
|
20
20
|
"kit.css": {
|
|
21
21
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./useNodeLabels.js";import s,{optionsEqual as c}from"./useWuiControl.js";import{forwardRef as l,useEffect as u,useId as d,useRef as
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./useNodeLabels.js";import s,{optionsEqual as c}from"./useWuiControl.js";import{forwardRef as l,useEffect as u,useId as d,useLayoutEffect as f,useRef as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import"@webority/ui-elements/elements/autocomplete";var g=[`sm`,`lg`],_=[],ee=(e,t)=>({...e,label:t}),v=(e,t,n)=>{if(n==null||t==null||t===``)return e;let r=String(t);return e.some(e=>String(e.value)===r)?e:[...e,{value:r,label:n}]},y=l(function(l,y){let{marker:b,props:x}=e(`AppAutocomplete`,l),{value:S,onChange:C,options:w,valueLabel:T,loadOptions:E,placeholder:D=`Search…`,minChars:O,debounce:k,disabled:A=!1,open:j,size:M,allowCustom:N=!1,name:P,id:F,label:I,error:L,hint:R,required:z=!1,help:B,helpLabel:V=`More information`,fieldClassName:H=``,...U}=x;n(`AppAutocomplete`,U),t(`AppAutocomplete`,`size`,M,g);let W=typeof E==`function`,G=d(),K=F||G,{setRef:q,innerRef:J}=s({ref:y,value:S??``,on:{change:e=>C?.(e.currentTarget.value,{isCustom:!!e.detail?.isCustom})}}),Y=w||_,{portal:X,toElementOptions:Z}=o(Y),Q=p(!1),$=p(E);return f(()=>{$.current=E}),u(()=>{let e=J.current;if(!e||W&&Q.current)return;let t=Z(v(Y,S,T),ee);c(t,e.options)||(e.options=t)},[Y,W,J,Z,S,T]),u(()=>{let e=J.current;if(!e||!W||!Q.current)return;let t=e.options,n=v(t,S,T);n!==t&&(e.options=n)},[S,T,W,J]),u(()=>{let e=J.current;if(!e||!W)return;let t=0,n=null,r=async r=>{let i=++t;n?.abort(),n=typeof AbortController==`function`?new AbortController:null,e.loading=!0;try{let a=await $.current(r.detail.query,{signal:n?.signal});i===t&&(Q.current=!0,e.options=a||[])}catch{i===t&&(Q.current=!0,e.options=[])}finally{i===t&&(e.loading=!1)}};return e.addEventListener(`search`,r),()=>{t=-1,n?.abort(),e.removeEventListener(`search`,r),e.loading=!1}},[W,J]),h(`div`,{...b,className:`field${H?` ${H}`:``}`,children:[I&&h(`label`,{className:`label`,htmlFor:K,children:[I,z&&m(a,{}),B&&m(i,{label:V,children:B})]}),m(`wui-autocomplete`,{"aria-label":typeof I==`string`?I:void 0,"aria-describedby":L?`${K}-error`:R?`${K}-hint`:void 0,"aria-invalid":L?`true`:void 0,id:K,ref:q,name:P,placeholder:D,remote:W?``:void 0,"min-chars":O==null?void 0:String(O),debounce:k==null?void 0:String(k),size:M||void 0,"allow-custom":N?``:void 0,disabled:A?``:void 0,open:j?``:void 0,required:z?``:void 0,...U}),X,m(r,{error:L,hint:R,errorId:`${K}-error`,hintId:`${K}-hint`})]})});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppDropdown.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i(i){let{marker:a,props:o}=e(`AppColumnMenu`,i),{columns:s,hiddenColumns:c=[],onToggle:l,label:u=`Columns`,className:d=``,...f}=o,p=s.filter(e=>e.hideable);return r(t,{icon:`layout-grid`,label:u,menuClassName:`wui-column-menu${d?` ${d}`:``}`,...a,...f,children:[n(`div`,{className:`wui-column-menu-title`,children:u}),p.map(e=>r(`label`,{className:`wui-column-menu-item`,children:[n(`input`,{type:`checkbox`,className:`wui-check`,checked:!c.includes(e.key),onChange:()=>l(e.key)}),e.label]},e.key))]})}export{i as default};
|
package/dist/guidance.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
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",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
33
|
-
"@webority/theme": "0.
|
|
34
|
-
"@webority/ui-elements": "0.
|
|
32
|
+
"@webority/markdown-core": "0.121.0",
|
|
33
|
+
"@webority/theme": "0.121.0",
|
|
34
|
+
"@webority/ui-elements": "0.121.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@webority/analytics": "^0.
|
|
37
|
+
"@webority/analytics": "^0.32.0",
|
|
38
38
|
"bootstrap": "5.3.3",
|
|
39
39
|
"react": "^19.0.0",
|
|
40
40
|
"react-bootstrap": "^2.10.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@types/react": "^19.2.17",
|
|
49
49
|
"@vitejs/plugin-react": "^6.0.1",
|
|
50
50
|
"@vitest/coverage-v8": "5.0.1",
|
|
51
|
-
"@webority/analytics": "
|
|
52
|
-
"@webority/canvas-kit": "0.
|
|
53
|
-
"@webority/tokens": "0.
|
|
51
|
+
"@webority/analytics": "0.32.0",
|
|
52
|
+
"@webority/canvas-kit": "0.121.0",
|
|
53
|
+
"@webority/tokens": "0.121.0",
|
|
54
54
|
"bootstrap": "5.3.3",
|
|
55
55
|
"jsdom": "30.1.1",
|
|
56
56
|
"react": "^19.2.6",
|