aquasis-fe-components 3.2.1-alpha.a → 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.
@@ -51982,7 +51982,7 @@ var r5 = /* @__PURE__ */ function(e) {
51982
51982
  children: /* @__PURE__ */ S(dY, {
51983
51983
  fieldName: r5.FirstName,
51984
51984
  label: e(`${s5}.FIRST_NAME`),
51985
- placeholder: e(`${s5}.FIRST_NAME`, { context: "PLACEHOLDER" }),
51985
+ placeholder: e(`${s5}.FIRST_NAME_PLACEHOLDER`),
51986
51986
  allowClear: !0,
51987
51987
  rules: t
51988
51988
  })
@@ -51992,7 +51992,7 @@ var r5 = /* @__PURE__ */ function(e) {
51992
51992
  children: /* @__PURE__ */ S(dY, {
51993
51993
  fieldName: r5.LastName,
51994
51994
  label: e(`${s5}.LAST_NAME`),
51995
- placeholder: e(`${s5}.LAST_NAME`, { context: "PLACEHOLDER" }),
51995
+ placeholder: e(`${s5}.LAST_NAME_PLACEHOLDER`),
51996
51996
  allowClear: !0,
51997
51997
  rules: t
51998
51998
  })
@@ -52002,7 +52002,7 @@ var r5 = /* @__PURE__ */ function(e) {
52002
52002
  children: /* @__PURE__ */ S(dY, {
52003
52003
  fieldName: r5.Username,
52004
52004
  label: e(`${s5}.USERNAME`),
52005
- placeholder: e(`${s5}.USERNAME`, { context: "PLACEHOLDER" }),
52005
+ placeholder: e(`${s5}.USERNAME_PLACEHOLDER`),
52006
52006
  allowClear: !0,
52007
52007
  rules: t
52008
52008
  })
@@ -52012,7 +52012,7 @@ var r5 = /* @__PURE__ */ function(e) {
52012
52012
  children: /* @__PURE__ */ S(dY, {
52013
52013
  fieldName: r5.Email,
52014
52014
  label: e(`${s5}.EMAIL`),
52015
- placeholder: e(`${s5}.EMAIL`, { context: "PLACEHOLDER" }),
52015
+ placeholder: e(`${s5}.EMAIL_PLACEHOLDER`),
52016
52016
  allowClear: !0,
52017
52017
  rules: [() => ({ validator(t, n) {
52018
52018
  return !n?.match(hY) || n?.match(gY) || n?.match(_Y) ? Promise.reject(Error(e("GENERAL.FORM.ERRORS.EMAIL"))) : Promise.resolve();
@@ -52024,7 +52024,7 @@ var r5 = /* @__PURE__ */ function(e) {
52024
52024
  children: /* @__PURE__ */ S(dY, {
52025
52025
  fieldName: r5.Password,
52026
52026
  label: e(`${s5}.PASSWORD`),
52027
- placeholder: e(`${s5}.PASSWORD`, { context: "PLACEHOLDER" }),
52027
+ placeholder: e(`${s5}.PASSWORD_PLACEHOLDER`),
52028
52028
  isPassword: !0,
52029
52029
  allowClear: !0,
52030
52030
  tooltip: /* @__PURE__ */ S(EK, {
@@ -52042,7 +52042,7 @@ var r5 = /* @__PURE__ */ function(e) {
52042
52042
  children: /* @__PURE__ */ S(dY, {
52043
52043
  fieldName: r5.ConfirmPassword,
52044
52044
  label: e(`${s5}.PASSWORD-CONFIRM`),
52045
- placeholder: e(`${s5}.PASSWORD-CONFIRM`, { context: "PLACEHOLDER" }),
52045
+ placeholder: e(`${s5}.PASSWORD-CONFIRM_PLACEHOLDER`),
52046
52046
  isPassword: !0,
52047
52047
  allowClear: !0,
52048
52048
  rules: [({ getFieldValue: t }) => ({ validator(n, r) {
@@ -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,15 +52124,15 @@ 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",
52135
+ colon: !1,
52136
52136
  className: "user-modal__form",
52137
52137
  children: [
52138
52138
  /* @__PURE__ */ C(yI, { children: [/* @__PURE__ */ S(dY, {
@@ -52149,17 +52149,17 @@ var r5 = /* @__PURE__ */ function(e) {
52149
52149
  children: /* @__PURE__ */ S(NU, {
52150
52150
  listType: "picture-circle",
52151
52151
  className: "user-modal__avatar-upload avatar-uploader",
52152
- beforeUpload: g,
52152
+ beforeUpload: y,
52153
52153
  maxCount: 1,
52154
52154
  showUploadList: !1,
52155
52155
  capture: !1,
52156
52156
  hasControlInside: !1,
52157
52157
  pastable: !1,
52158
52158
  accept: "image/png, image/jpeg",
52159
- children: u ? /* @__PURE__ */ C(yI, {
52159
+ children: p ? /* @__PURE__ */ C(yI, {
52160
52160
  className: "float-btn-container user-modal__avatar-float",
52161
52161
  children: [/* @__PURE__ */ S(hw, {
52162
- src: u,
52162
+ src: p,
52163
52163
  size: "small",
52164
52164
  alt: o(`${l5}.AVATAR_ALT`),
52165
52165
  style: {
@@ -52174,10 +52174,10 @@ var r5 = /* @__PURE__ */ function(e) {
52174
52174
  size: "small",
52175
52175
  icon: /* @__PURE__ */ S(VV, {}),
52176
52176
  className: "float-btn",
52177
- onClick: h
52177
+ onClick: v
52178
52178
  })
52179
52179
  })]
52180
- }) : v
52180
+ }) : b
52181
52181
  })
52182
52182
  })
52183
52183
  })
@@ -52188,14 +52188,13 @@ var r5 = /* @__PURE__ */ function(e) {
52188
52188
  type: "card",
52189
52189
  size: "small",
52190
52190
  className: "user-modal__tabs",
52191
- items: y
52191
+ items: x
52192
52192
  }),
52193
52193
  /* @__PURE__ */ C("div", {
52194
52194
  className: "user-modal__footer",
52195
52195
  children: [/* @__PURE__ */ S(jE, {
52196
52196
  icon: /* @__PURE__ */ S(Ac, {}),
52197
52197
  onClick: a,
52198
- size: "large",
52199
52198
  className: "user-modal__btn-cancel",
52200
52199
  children: o(`${l5}.CANCEL`)
52201
52200
  }), /* @__PURE__ */ S(jE, {
@@ -52203,7 +52202,6 @@ var r5 = /* @__PURE__ */ function(e) {
52203
52202
  htmlType: "submit",
52204
52203
  icon: /* @__PURE__ */ S(FJ, {}),
52205
52204
  loading: r,
52206
- size: "large",
52207
52205
  className: "user-modal__btn-submit",
52208
52206
  children: o(`${l5}.SUBMIT`)
52209
52207
  })]
@@ -52267,15 +52265,23 @@ function m5({ gauApiUrl: e, appId: t, onLogout: n, renderUserModal: r, children:
52267
52265
  })
52268
52266
  }), /* @__PURE__ */ C("div", {
52269
52267
  className: "profile-chip__meta profile-chip__meta--text",
52270
- children: [/* @__PURE__ */ S(iy.Input, {
52271
- active: !0,
52272
- size: "small",
52273
- className: "profile-chip__skeleton-line profile-chip__skeleton-line--name"
52274
- }), /* @__PURE__ */ S(iy.Input, {
52275
- active: !0,
52276
- size: "small",
52277
- className: "profile-chip__skeleton-line profile-chip__skeleton-line--email"
52278
- })]
52268
+ children: [
52269
+ /* @__PURE__ */ S(iy.Input, {
52270
+ active: !0,
52271
+ size: "small",
52272
+ className: "profile-chip__skeleton-line profile-chip__skeleton-line--name"
52273
+ }),
52274
+ /* @__PURE__ */ S(iy.Input, {
52275
+ active: !0,
52276
+ size: "small",
52277
+ className: "profile-chip__skeleton-line profile-chip__skeleton-line--username"
52278
+ }),
52279
+ /* @__PURE__ */ S(iy.Input, {
52280
+ active: !0,
52281
+ size: "small",
52282
+ className: "profile-chip__skeleton-line profile-chip__skeleton-line--email"
52283
+ })
52284
+ ]
52279
52285
  })]
52280
52286
  }),
52281
52287
  /* @__PURE__ */ S("div", {
@@ -52328,6 +52334,12 @@ function m5({ gauApiUrl: e, appId: t, onLogout: n, renderUserModal: r, children:
52328
52334
  className: "profile-chip__name",
52329
52335
  children: E
52330
52336
  }),
52337
+ /* @__PURE__ */ C("p", {
52338
+ className: "profile-chip__username",
52339
+ title: p.username,
52340
+ translate: "no",
52341
+ children: ["@", p.username]
52342
+ }),
52331
52343
  /* @__PURE__ */ S("p", {
52332
52344
  className: "profile-chip__email",
52333
52345
  children: p.email?.trim() || "—"
@@ -52407,6 +52419,7 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52407
52419
  align: "center",
52408
52420
  wrap: "wrap",
52409
52421
  gap: 8,
52422
+ className: "whats-news__footer",
52410
52423
  children: [/* @__PURE__ */ S(zA, {
52411
52424
  checked: c,
52412
52425
  onChange: (e) => l(e.target.checked),
@@ -52433,6 +52446,13 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52433
52446
  });
52434
52447
  return /* @__PURE__ */ S(SF, {
52435
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
+ },
52436
52456
  title: p("RELEASE-NOTES.WHATS_NEWS", {
52437
52457
  app: t?.appName,
52438
52458
  version: _?.version,
@@ -52455,7 +52475,7 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52455
52475
  let r = (t?.filter((e) => !!e.idFile) ?? []).length > 1;
52456
52476
  return /* @__PURE__ */ S("div", { children: /* @__PURE__ */ C(yI, {
52457
52477
  gutter: [16, 16],
52458
- style: { marginBottom: 40 },
52478
+ className: "whats-news__slide-row",
52459
52479
  children: [/* @__PURE__ */ S(KA, {
52460
52480
  xs: 24,
52461
52481
  sm: 24,
@@ -52468,12 +52488,10 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52468
52488
  vertical: !0,
52469
52489
  children: [/* @__PURE__ */ S(x5, {
52470
52490
  level: 5,
52491
+ className: "whats-news__slide-title",
52471
52492
  children: e
52472
52493
  }), /* @__PURE__ */ S(S5, {
52473
- style: {
52474
- opacity: .5,
52475
- whiteSpace: "pre-wrap"
52476
- },
52494
+ className: "whats-news__slide-desc",
52477
52495
  children: t
52478
52496
  })]
52479
52497
  }, `${n}-${r}`))
@@ -52494,13 +52512,13 @@ var { Title: x5, Text: S5 } = zH, C5 = ({ releaseNotes: e, currentApp: t, userId
52494
52512
  justify: "center",
52495
52513
  align: "center",
52496
52514
  style: { minHeight: Math.max(0, g - 40) },
52497
- children: /* @__PURE__ */ S(wN, {
52498
- src: r ?? void 0,
52499
- style: {
52500
- maxHeight: 600,
52501
- borderRadius: 8
52502
- },
52503
- 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
+ })
52504
52522
  })
52505
52523
  }) }, t ?? e ?? n);
52506
52524
  })
@@ -53352,9 +53370,9 @@ X5.type = "languageDetector", NG.use(X5).use(CK).init({
53352
53370
  AVATAR_ALT: "Fotografia de perfil",
53353
53371
  CANCEL: "Cancelar",
53354
53372
  EDIT: "Editar",
53355
- EMAIL: "Email",
53373
+ EMAIL: "E-mail",
53356
53374
  EMAIL_PLACEHOLDER: "email@example.pt, email.example@example-example.com...",
53357
- FIRST_NAME: "Primeiro nome",
53375
+ FIRST_NAME: "Nome próprio",
53358
53376
  FIRST_NAME_PLACEHOLDER: "Por favor, insira o seu primeiro nome...",
53359
53377
  LAST_NAME: "Apelido",
53360
53378
  LAST_NAME_PLACEHOLDER: "Por favor, insira o seu apelido...",
@@ -53652,7 +53670,7 @@ X5.type = "languageDetector", NG.use(X5).use(CK).init({
53652
53670
  AVATAR_ALT: "Foto do perfil",
53653
53671
  CANCEL: "Cancelar",
53654
53672
  EDIT: "Editar",
53655
- EMAIL: "Email",
53673
+ EMAIL: "E-mail",
53656
53674
  EMAIL_PLACEHOLDER: "email@example.pt, email.example@example-example.com...",
53657
53675
  FIRST_NAME: "Primeiro nome",
53658
53676
  FIRST_NAME_PLACEHOLDER: "Por favor, digite seu primeiro nome...",