aquasis-fe-components 3.2.1-alpha.b → 3.2.1-alpha.c

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.
@@ -52053,31 +52053,31 @@ var r5 = /* @__PURE__ */ function(e) {
52053
52053
  ]
52054
52054
  });
52055
52055
  }, l5 = "USERS", u5 = ({ user: e, appId: t, gauApiUrl: n, isLoading: r, isOpen: i, onCancel: a }) => {
52056
- let { t: o } = NK(), [s] = wM.useForm(), c = vY(s), { data: l } = V3(n, !!(n && t)), u = wM.useWatch(r5.ProfilePicture, s), d = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, p = _(() => d && l ? l.find((e) => e.idRole === d.roleId) : void 0, [l, d]);
52057
- f(() => (e && i && c.setFieldsValue({
52056
+ let { t: o } = NK(), s = sY(HJ) === ht.Dark, c = _(() => (0, lY.default)("user-modal__root", s && "user-modal__root--dark"), [s]), [l] = wM.useForm(), u = vY(l), { data: d } = V3(n, !!(n && t)), p = wM.useWatch(r5.ProfilePicture, l), m = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, h = _(() => m && d ? d.find((e) => e.idRole === m.roleId) : void 0, [d, m]);
52057
+ f(() => (e && i && u.setFieldsValue({
52058
52058
  ...e,
52059
52059
  [r5.ProfilePicture]: SY(e.profilePicture)
52060
52060
  }), () => {
52061
- c.resetFields();
52061
+ u.resetFields();
52062
52062
  }), [
52063
52063
  e,
52064
52064
  i,
52065
- s
52065
+ l
52066
52066
  ]);
52067
- let m = (t) => {
52067
+ let g = (t) => {
52068
52068
  o5(B3(n, {
52069
52069
  ...e,
52070
52070
  ...t,
52071
52071
  [r5.ProfilePicture]: CY(t?.[r5.ProfilePicture])
52072
52072
  }), a);
52073
- }, h = (e) => {
52074
- e.stopPropagation(), c.setFieldValue(r5.ProfilePicture, void 0);
52075
- }, g = (e) => (xY(e, (e) => {
52076
- c.setFieldValue(r5.ProfilePicture, e);
52077
- }), !1), v = /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(FD, {}), /* @__PURE__ */ S("div", {
52073
+ }, v = (e) => {
52074
+ e.stopPropagation(), u.setFieldValue(r5.ProfilePicture, void 0);
52075
+ }, y = (e) => (xY(e, (e) => {
52076
+ u.setFieldValue(r5.ProfilePicture, e);
52077
+ }), !1), b = /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(FD, {}), /* @__PURE__ */ S("div", {
52078
52078
  style: { marginTop: 8 },
52079
52079
  children: o("GENERAL.UPLOAD")
52080
- })] }), y = [{
52080
+ })] }), x = [{
52081
52081
  label: /* @__PURE__ */ C("span", { children: [/* @__PURE__ */ S(VJ, {
52082
52082
  style: { marginRight: 5 },
52083
52083
  "aria-hidden": !0
@@ -52085,13 +52085,13 @@ var r5 = /* @__PURE__ */ function(e) {
52085
52085
  key: i5.Tab1,
52086
52086
  children: /* @__PURE__ */ S(c5, {}),
52087
52087
  forceRender: !0
52088
- }], b = p?.name;
52088
+ }], w = h?.name;
52089
52089
  return /* @__PURE__ */ S(SF, {
52090
52090
  className: "user-modal",
52091
- rootClassName: "user-modal__root",
52091
+ rootClassName: c,
52092
52092
  title: _(() => {
52093
52093
  let e = o(`${l5}.EDIT`, { context: "USER" });
52094
- return !t || !b ? /* @__PURE__ */ S("span", {
52094
+ return !t || !w ? /* @__PURE__ */ S("span", {
52095
52095
  className: "user-modal__title-text",
52096
52096
  children: e
52097
52097
  }) : /* @__PURE__ */ C("div", {
@@ -52105,14 +52105,14 @@ var r5 = /* @__PURE__ */ function(e) {
52105
52105
  variant: "filled",
52106
52106
  color: "cyan",
52107
52107
  className: "user-modal__role-tag",
52108
- title: b,
52109
- children: b
52108
+ title: w,
52109
+ children: w
52110
52110
  })
52111
52111
  })]
52112
52112
  });
52113
52113
  }, [
52114
52114
  t,
52115
- b,
52115
+ w,
52116
52116
  o
52117
52117
  ]),
52118
52118
  width: 640,
@@ -52124,14 +52124,13 @@ var r5 = /* @__PURE__ */ function(e) {
52124
52124
  onCancel: a,
52125
52125
  open: i,
52126
52126
  destroyOnHidden: !0,
52127
- maskClosable: !1,
52128
52127
  footer: null,
52129
52128
  mask: { closable: !1 },
52130
52129
  children: /* @__PURE__ */ C(wM, {
52131
52130
  id: "user-management-form",
52132
52131
  name: "user-management",
52133
- form: s,
52134
- onFinish: m,
52132
+ form: l,
52133
+ onFinish: g,
52135
52134
  layout: "vertical",
52136
52135
  colon: !1,
52137
52136
  className: "user-modal__form",
@@ -52150,17 +52149,17 @@ var r5 = /* @__PURE__ */ function(e) {
52150
52149
  children: /* @__PURE__ */ S(NU, {
52151
52150
  listType: "picture-circle",
52152
52151
  className: "user-modal__avatar-upload avatar-uploader",
52153
- beforeUpload: g,
52152
+ beforeUpload: y,
52154
52153
  maxCount: 1,
52155
52154
  showUploadList: !1,
52156
52155
  capture: !1,
52157
52156
  hasControlInside: !1,
52158
52157
  pastable: !1,
52159
52158
  accept: "image/png, image/jpeg",
52160
- children: u ? /* @__PURE__ */ C(yI, {
52159
+ children: p ? /* @__PURE__ */ C(yI, {
52161
52160
  className: "float-btn-container user-modal__avatar-float",
52162
52161
  children: [/* @__PURE__ */ S(hw, {
52163
- src: u,
52162
+ src: p,
52164
52163
  size: "small",
52165
52164
  alt: o(`${l5}.AVATAR_ALT`),
52166
52165
  style: {
@@ -52175,10 +52174,10 @@ var r5 = /* @__PURE__ */ function(e) {
52175
52174
  size: "small",
52176
52175
  icon: /* @__PURE__ */ S(VV, {}),
52177
52176
  className: "float-btn",
52178
- onClick: h
52177
+ onClick: v
52179
52178
  })
52180
52179
  })]
52181
- }) : v
52180
+ }) : b
52182
52181
  })
52183
52182
  })
52184
52183
  })
@@ -52189,7 +52188,7 @@ var r5 = /* @__PURE__ */ function(e) {
52189
52188
  type: "card",
52190
52189
  size: "small",
52191
52190
  className: "user-modal__tabs",
52192
- items: y
52191
+ items: x
52193
52192
  }),
52194
52193
  /* @__PURE__ */ C("div", {
52195
52194
  className: "user-modal__footer",
@@ -52420,6 +52419,7 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52420
52419
  align: "center",
52421
52420
  wrap: "wrap",
52422
52421
  gap: 8,
52422
+ className: "whats-news__footer",
52423
52423
  children: [/* @__PURE__ */ S(zA, {
52424
52424
  checked: c,
52425
52425
  onChange: (e) => l(e.target.checked),
@@ -52446,6 +52446,13 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52446
52446
  });
52447
52447
  return /* @__PURE__ */ S(SF, {
52448
52448
  open: o,
52449
+ className: "whats-news",
52450
+ rootClassName: "whats-news__root",
52451
+ classNames: {
52452
+ header: "whats-news__antd-header",
52453
+ body: "whats-news__antd-body",
52454
+ footer: "whats-news__antd-footer"
52455
+ },
52449
52456
  title: p("RELEASE-NOTES.WHATS_NEWS", {
52450
52457
  app: t?.appName,
52451
52458
  version: _?.version,
@@ -52468,7 +52475,7 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52468
52475
  let r = (t?.filter((e) => !!e.idFile) ?? []).length > 1;
52469
52476
  return /* @__PURE__ */ S("div", { children: /* @__PURE__ */ C(yI, {
52470
52477
  gutter: [16, 16],
52471
- style: { marginBottom: 40 },
52478
+ className: "whats-news__slide-row",
52472
52479
  children: [/* @__PURE__ */ S(KA, {
52473
52480
  xs: 24,
52474
52481
  sm: 24,
@@ -52481,12 +52488,10 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52481
52488
  vertical: !0,
52482
52489
  children: [/* @__PURE__ */ S(x5, {
52483
52490
  level: 5,
52491
+ className: "whats-news__slide-title",
52484
52492
  children: e
52485
52493
  }), /* @__PURE__ */ S(S5, {
52486
- style: {
52487
- opacity: .5,
52488
- whiteSpace: "pre-wrap"
52489
- },
52494
+ className: "whats-news__slide-desc",
52490
52495
  children: t
52491
52496
  })]
52492
52497
  }, `${n}-${r}`))
@@ -52507,13 +52512,13 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52507
52512
  justify: "center",
52508
52513
  align: "center",
52509
52514
  style: { minHeight: Math.max(0, g - 40) },
52510
- children: /* @__PURE__ */ S(wN, {
52511
- src: r ?? void 0,
52512
- style: {
52513
- maxHeight: 600,
52514
- borderRadius: 8
52515
- },
52516
- alt: ""
52515
+ children: /* @__PURE__ */ S("div", {
52516
+ className: "whats-news__slide-image-wrap",
52517
+ children: /* @__PURE__ */ S(wN, {
52518
+ src: r ?? void 0,
52519
+ style: { maxHeight: 600 },
52520
+ alt: ""
52521
+ })
52517
52522
  })
52518
52523
  }) }, t ?? e ?? n);
52519
52524
  })