@nexdom/uimed-vue 2.0.0-beta.18 → 2.0.0-beta.19

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.
@@ -429,8 +429,8 @@ declare const __VLS_export$13: import("vue", { with: { "resolution-mode": "impor
429
429
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
430
430
  }>, {
431
431
  variant: TextFieldVariant;
432
- clearable: boolean;
433
432
  type: TextFieldType;
433
+ clearable: boolean;
434
434
  }, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
435
435
  //#endregion
436
436
  //#region src/components/inputs/checkbox/types.d.ts
@@ -80,6 +80,8 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
80
80
  const showNotifications = computed(() => !!props.notifications);
81
81
  const unreadCount = computed(() => props.notifications.filter((notification) => !notification.read).length);
82
82
  const hasUnreadNotifications = computed(() => unreadCount.value > 0);
83
+ const unreadLabel = computed(() => unreadCount.value === 1 ? "1 não lida" : `${unreadCount.value} não lidas`);
84
+ const notificationsLabel = computed(() => hasUnreadNotifications.value ? `Notificações (${unreadLabel.value})` : "Notificações");
83
85
  watch(() => props.loading, (loading) => {
84
86
  if (loading) notificationsOpen.value = false;
85
87
  });
@@ -100,6 +102,7 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
100
102
  default: withCtx(() => [
101
103
  showHelp.value ? (openBlock(), createBlock(unref(VBtn), mergeProps({ key: 0 }, unref(routeProps), {
102
104
  "data-testid": helpBtnDataTestid.value,
105
+ "aria-label": "Ajuda",
103
106
  icon: "mdi-help-circle-outline"
104
107
  }), null, 16, ["data-testid"])) : createCommentVNode("v-if", true),
105
108
  showNotifications.value ? (openBlock(), createBlock(unref(VMenu), {
@@ -110,18 +113,24 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
110
113
  }, {
111
114
  activator: withCtx(({ props }) => [createVNode(unref(VBtn), mergeProps(props, {
112
115
  "data-testid": notificationsBtnDataTestid.value,
116
+ "aria-label": notificationsLabel.value,
113
117
  icon: ""
114
118
  }), {
115
119
  default: withCtx(() => [createVNode(unref(VBadge), {
116
120
  "model-value": hasUnreadNotifications.value,
117
121
  content: unreadCount.value,
122
+ label: unreadLabel.value,
118
123
  color: "error"
119
124
  }, {
120
125
  default: withCtx(() => [createVNode(unref(VIcon), { icon: "mdi-bell-outline" })]),
121
126
  _: 1
122
- }, 8, ["model-value", "content"])]),
127
+ }, 8, [
128
+ "model-value",
129
+ "content",
130
+ "label"
131
+ ])]),
123
132
  _: 1
124
- }, 16, ["data-testid"])]),
133
+ }, 16, ["data-testid", "aria-label"])]),
125
134
  default: withCtx(() => [createVNode(unref(VCard), { "data-testid": notificationsMenuDataTestid.value }, {
126
135
  default: withCtx(() => [props.notifications?.length ? (openBlock(), createBlock(unref(VList), { key: 0 }, {
127
136
  default: withCtx(() => [createVNode(unref(VListSubheader), null, {
@@ -162,6 +171,7 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
162
171
  }, {
163
172
  activator: withCtx(({ props }) => [createVNode(unref(VBtn), mergeProps(props, {
164
173
  "data-testid": userBtnDataTestid.value,
174
+ "aria-label": "Menu do usuário",
165
175
  icon: ""
166
176
  }), {
167
177
  default: withCtx(() => [createVNode(unref(VAvatar), mergeProps(userAvatarProps.value, { color: "primary" }), null, 16)]),
@@ -209,8 +219,10 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
209
219
  __props.navigation ? (openBlock(), createBlock(unref(VAppBarNavIcon), {
210
220
  key: 0,
211
221
  "data-testid": navigationBtnDataTestid.value,
222
+ "aria-expanded": navigationOpen.value,
223
+ "aria-label": "Menu de navegação",
212
224
  onClick: _cache[0] || (_cache[0] = ($event) => navigationOpen.value = !navigationOpen.value)
213
- }, null, 8, ["data-testid"])) : createCommentVNode("v-if", true),
225
+ }, null, 8, ["data-testid", "aria-expanded"])) : createCommentVNode("v-if", true),
214
226
  __props.logo ? (openBlock(), createBlock(unref(VImg), {
215
227
  key: 1,
216
228
  src: props.logo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.0.0-beta.18",
3
+ "version": "2.0.0-beta.19",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",