@ufal-lccv/gpsub-ds 0.2.46 → 0.2.48
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/{GenericAGGridTable-DNnLeEvP.js → GenericAGGridTable-17IhgzCP.js} +17124 -17100
- package/dist/{GenericAGGridTable-CXb9pBC0.cjs → GenericAGGridTable-D3Zq9BKB.cjs} +1302 -1302
- package/dist/{RequiredLabel.view-8O_wMprt.js → RequiredLabel.view-BRNk6bHG.js} +8 -8
- package/dist/{RequiredLabel.view-BKKEwY3_.cjs → RequiredLabel.view-CdXbG0pM.cjs} +1 -1
- package/dist/Table.view-DWBklDlL.js +948 -0
- package/dist/Table.view-MlcEvng9.cjs +1 -0
- package/dist/{Title.view-D5GmQ4pO.cjs → Title.view-B7SvYLpi.cjs} +1 -1
- package/dist/{Title.view-OTu-Renl.js → Title.view-CoWuvoYM.js} +3 -3
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +8 -8
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +27 -26
- package/dist/components/molecules/Confirm/index.d.ts +1 -0
- package/dist/components/molecules/Confirm/showConfirm.d.ts +19 -0
- package/dist/components/molecules/Textarea/hooks/useTextArea.d.ts +1 -1
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +15 -14
- package/dist/components/organisms/Autocomplete/Autocomplete.view.d.ts +2 -2
- package/dist/components/organisms/MenuSelect/MenuSelect.styles.d.ts +1 -0
- package/dist/components/organisms/MenuSelect/MenuSelect.view.d.ts +4 -5
- package/dist/components/organisms/SelectButton/SelectButton.view.d.ts +1 -1
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +47 -46
- package/package.json +2 -2
- package/dist/Table.view-BB4_hN9n.js +0 -937
- package/dist/Table.view-DRlsznoR.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as e, ad as S, ae as w, af as R, ag as v, _ as a, ah as _, a7 as D, c as u, ai as L, aj as O, ak as $, al as y, a5 as z, am as W, e as q, I as B, an as M } from "./GenericAGGridTable-17IhgzCP.js";
|
|
2
2
|
import { d as V, v as j } from "./index-YF_5f0O1.js";
|
|
3
3
|
import { useState as C, useEffect as N } from "react";
|
|
4
4
|
import "sbwb-ds";
|
|
@@ -8,14 +8,14 @@ const h = [], T = (r) => (h.push(r), () => {
|
|
|
8
8
|
o >= 0 && h.splice(o, 1);
|
|
9
9
|
}), F = () => h.forEach((r) => r()), X = (r) => {
|
|
10
10
|
b = [r, ...b], F();
|
|
11
|
-
},
|
|
11
|
+
}, G = (r) => {
|
|
12
12
|
b = b.filter((o) => o.instanceId !== r), F();
|
|
13
|
-
},
|
|
13
|
+
}, H = () => b, x = { subscribe: T, add: X, remove: G, getAlerts: H }, J = () => {
|
|
14
14
|
const [r, o] = C(x.getAlerts());
|
|
15
15
|
return N(() => x.subscribe(() => o([...x.getAlerts()])), []), /* @__PURE__ */ e.jsx(S, { children: r.map(({ instanceId: s, props: t, destroy: l }) => /* @__PURE__ */ e.jsx(w, { ...t, destroy: l }, s)) });
|
|
16
16
|
};
|
|
17
17
|
let m = !1;
|
|
18
|
-
const
|
|
18
|
+
const Z = ({
|
|
19
19
|
id: r,
|
|
20
20
|
type: o,
|
|
21
21
|
title: s,
|
|
@@ -32,7 +32,7 @@ const Y = ({
|
|
|
32
32
|
}), !m) {
|
|
33
33
|
m = !0;
|
|
34
34
|
const g = V.portal.add("alert-stack");
|
|
35
|
-
R.createRoot(g).render(/* @__PURE__ */ e.jsx(
|
|
35
|
+
R.createRoot(g).render(/* @__PURE__ */ e.jsx(J, {}));
|
|
36
36
|
}
|
|
37
37
|
}, P = ({
|
|
38
38
|
width: r = "100%",
|
|
@@ -64,7 +64,7 @@ const Y = ({
|
|
|
64
64
|
backgroundColor: "#DAF9DB",
|
|
65
65
|
borderColor: a.colors.feedbackColors.colorFeedbackSuccess,
|
|
66
66
|
icon: /* @__PURE__ */ e.jsx(
|
|
67
|
-
|
|
67
|
+
_,
|
|
68
68
|
{
|
|
69
69
|
color: a.colors.feedbackColors.colorFeedbackSuccess,
|
|
70
70
|
height: "24px",
|
|
@@ -111,7 +111,7 @@ const Y = ({
|
|
|
111
111
|
children: [
|
|
112
112
|
s === "warning" ? /* @__PURE__ */ e.jsx(L, { children: /* @__PURE__ */ e.jsx(O, { width: "24px", height: "24px" }) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: n == null ? void 0 : n[s].icon }),
|
|
113
113
|
/* @__PURE__ */ e.jsxs(u, { width: "100%", flex: "1", height: "100%", verticalAlign: "center", children: [
|
|
114
|
-
j(l) && /* @__PURE__ */ e.jsx(
|
|
114
|
+
j(l) && /* @__PURE__ */ e.jsx($, { children: l }),
|
|
115
115
|
j(c) && /* @__PURE__ */ e.jsx(y, { children: c })
|
|
116
116
|
] }),
|
|
117
117
|
g && /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsx(
|
|
@@ -161,5 +161,5 @@ export {
|
|
|
161
161
|
P as A,
|
|
162
162
|
ee as L,
|
|
163
163
|
re as R,
|
|
164
|
-
|
|
164
|
+
Z as s
|
|
165
165
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./GenericAGGridTable-
|
|
1
|
+
"use strict";const e=require("./GenericAGGridTable-D3Zq9BKB.cjs"),b=require("./index-CPP6SuZS.cjs"),m=require("react");require("sbwb-ds");let u=[];const p=[],F=r=>(p.push(r),()=>{const o=p.indexOf(r);o>=0&&p.splice(o,1)}),R=()=>p.forEach(r=>r()),A=r=>{u=[r,...u],R()},I=r=>{u=u.filter(o=>o.instanceId!==r),R()},y=()=>u,d={subscribe:F,add:A,remove:I,getAlerts:y},w=()=>{const[r,o]=m.useState(d.getAlerts());return m.useEffect(()=>d.subscribe(()=>o([...d.getAlerts()])),[]),e.jsxRuntimeExports.jsx(e.AlertStackContainer,{children:r.map(({instanceId:s,props:t,destroy:n})=>e.jsxRuntimeExports.jsx(e.AlertView,{...t,destroy:n},s))})};let g=!1;const S=({id:r,type:o,title:s,description:t,durationInMilliseconds:n=3e3,dataToCopy:l,offset:a={x:0,y:0}})=>{const c=r+Date.now()+Math.random(),x=()=>d.remove(c);if(d.add({instanceId:c,props:{id:r,type:o,title:s,description:t,durationInMilliseconds:n,dataToCopy:l,offset:a},destroy:x}),!g){g=!0;const j=b.dom.portal.add("alert-stack");e.clientExports.createRoot(j).render(e.jsxRuntimeExports.jsx(w,{}))}},q=({width:r="100%",height:o="fit-content",type:s,variant:t="small",title:n,message:l,margin:a,open:c=!0,onClose:x,canClose:j=!0})=>{var h,E;const[C,k]=m.useState(c),i={info:{backgroundColor:"#D5EBFD",borderColor:e.y.colors.feedbackColors.colorFeedbackInfo,icon:e.jsxRuntimeExports.jsx(e.InfoFill_default,{color:e.y.colors.feedbackColors.colorFeedbackInfo,height:"24px",width:"24px"})},success:{backgroundColor:"#DAF9DB",borderColor:e.y.colors.feedbackColors.colorFeedbackSuccess,icon:e.jsxRuntimeExports.jsx(e.CheckCircleFill_default,{color:e.y.colors.feedbackColors.colorFeedbackSuccess,height:"24px",width:"24px"})},warning:{backgroundColor:"#FEEECF",borderColor:e.y.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:e.y.colors.feedbackColors.colorFeedbackError,icon:e.jsxRuntimeExports.jsx(e.ErrorFill_default,{color:e.y.colors.feedbackColors.colorFeedbackError,height:"24px",width:"24px"})}};function f(){k(!1),x==null||x()}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:C?e.jsxRuntimeExports.jsxs(e.Container,{width:r,height:o,direction:"horizontal",verticalAlign:n?"top":"center",gap:e.y.spacings.spacingInline.spacingInlineAnt,padding:t=="small"?`${e.y.spacings.spacingStack.spacingStackXs} ${e.y.spacings.spacingInline.spacingInlineAnt}`:e.y.spacings.spacingInline.spacingInlineSm,backgroundColor:(h=i==null?void 0:i[s])==null?void 0:h.backgroundColor,customStyles:{border:`1px solid ${(E=i==null?void 0:i[s])==null?void 0:E.borderColor}`,borderRadius:e.y.borders.borderRadius.borderRadiusSm,margin:a,position:"relative"},children:[s==="warning"?e.jsxRuntimeExports.jsx(e.ContainerWarning,{children:e.jsxRuntimeExports.jsx(e.WarningFill_default,{width:"24px",height:"24px"})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:i==null?void 0:i[s].icon}),e.jsxRuntimeExports.jsxs(e.Container,{width:"100%",flex:"1",height:"100%",verticalAlign:"center",children:[b.valuable(n)&&e.jsxRuntimeExports.jsx(e.Title$1,{children:n}),b.valuable(l)&&e.jsxRuntimeExports.jsx(e.Message,{children:l})]}),j&&e.jsxRuntimeExports.jsx(e.Container,{children:e.jsxRuntimeExports.jsx(e.Close_default,{color:e.y.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:f,height:"20px",width:"20px"})})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})})},v=({label:r,labelRender:o,infoProps:s={},withInfo:t=!0,flex:n,width:l="100%",isRequired:a=!1})=>{const c={tooltipProps:{position:"top",...s==null?void 0:s.tooltipProps,size:"Small"}};return e.jsxRuntimeExports.jsxs(e.Container,{width:l,direction:"horizontal",gap:"4px",flex:n,children:[o??e.jsxRuntimeExports.jsxs(e.Label$1,{children:[r," ",a?e.jsxRuntimeExports.jsx(e.Required,{}):null]}),t&&e.jsxRuntimeExports.jsx(e.Info,{...c})]})},$=({width:r="100%",flex:o,label:s="Obrigatório",margin:t="0 0 16px 0"})=>e.jsxRuntimeExports.jsx(e.Container,{width:r,flex:o,customStyles:{margin:t},children:e.jsxRuntimeExports.jsx(e.Label$2,{children:`* ${s}`})});exports.AlertInline=q;exports.LabelField=v;exports.RequiredLabelView=$;exports.showAlert=S;
|