@nexdom/uimed-vue 2.0.0-beta.11 → 2.0.0-beta.12

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.
@@ -43,9 +43,10 @@ interface AppBarNotification {
43
43
  */
44
44
  read?: boolean;
45
45
  /**
46
- * Date the notification was generated.
46
+ * Free text telling when the notification was generated, shown as is (e.g.
47
+ * `"10:30"`, `"Ontem"` or `"28/09/2026"`). Hidden when omitted or empty.
47
48
  */
48
- date?: Date;
49
+ when?: string;
49
50
  }
50
51
  interface AppBarUserProps {
51
52
  /**
@@ -418,8 +419,8 @@ declare const __VLS_export$11: import("vue", { with: { "resolution-mode": "impor
418
419
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
419
420
  }>, {
420
421
  variant: TextFieldVariant;
421
- clearable: boolean;
422
422
  type: TextFieldType;
423
+ clearable: boolean;
423
424
  }, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
424
425
  //#endregion
425
426
  //#region src/components/inputs/checkbox/types.d.ts
@@ -1,7 +1,7 @@
1
1
  import { a as messages, n as owners, r as requests, s as useVuetifyColor } from "./use-dialog-Ck2_ZW7T.js";
2
2
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, isRef, mergeModels, mergeProps, normalizeClass, onMounted, onScopeDispose, onUnmounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, watch, withCtx, withModifiers } from "vue";
3
3
  import { VApp, VAppBar, VAppBarNavIcon, VAppBarTitle, VAutocomplete, VAvatar, VBadge, VBtn, VCard, VCardActions, VCardItem, VCardText, VCardTitle, VCheckboxBtn, VCol, VCombobox, VContainer, VDataIterator, VDialog, VDivider, VEmptyState, VExpansionPanel, VExpansionPanelText, VExpansionPanelTitle, VExpansionPanels, VForm, VIcon, VIconBtn, VImg, VList, VListGroup, VListItem, VListItemAction, VListSubheader, VMain, VMenu, VNavigationDrawer, VPagination, VRow, VSkeletonLoader, VSnackbarQueue, VTable, VTextField } from "vuetify/components";
4
- import { formatDateTime, isEmail, isEmpty, isPhone, isUrl, toPeriodInterval } from "@nexdom/shared/utils";
4
+ import { isEmail, isEmpty, isPhone, isUrl } from "@nexdom/shared/utils";
5
5
  //#region src/composables/navigation/use-route-props.ts
6
6
  function useRouteProps(route) {
7
7
  return computed(() => routeToProps(route));
@@ -80,23 +80,6 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
80
80
  function isParentOption(option) {
81
81
  return "items" in option;
82
82
  }
83
- function formatNotificationDate(date) {
84
- const interval = toPeriodInterval(date);
85
- if (wasThisMonth(interval)) {
86
- if (wasToday(interval)) return formatDateTime(date, "HH:mm");
87
- else if (wasYesterday(interval)) return "Ontem";
88
- }
89
- return formatDateTime(date, "DD/MM/YYYY");
90
- }
91
- function wasThisMonth(interval) {
92
- return interval.months === 0 && interval.years === 0;
93
- }
94
- function wasToday(interval) {
95
- return interval.days === 0;
96
- }
97
- function wasYesterday(interval) {
98
- return interval.days === 1;
99
- }
100
83
  return (_ctx, _cache) => {
101
84
  return openBlock(), createBlock(unref(VAppBar), { "data-testid": props.dataTestid }, {
102
85
  append: withCtx(() => [
@@ -136,10 +119,10 @@ var app_bar_default = /* @__PURE__ */ defineComponent({
136
119
  title: notification.title,
137
120
  subtitle: notification.subtitle,
138
121
  "active-class": "text-primary"
139
- }, createSlots({ _: 2 }, [notification.date ? {
122
+ }, createSlots({ _: 2 }, [notification.when ? {
140
123
  name: "append",
141
124
  fn: withCtx(() => [createVNode(unref(VListItemAction), { end: "" }, {
142
- default: withCtx(() => [createElementVNode("small", _hoisted_1$2, toDisplayString(formatNotificationDate(notification.date)), 1)]),
125
+ default: withCtx(() => [createElementVNode("small", _hoisted_1$2, toDisplayString(notification.when), 1)]),
143
126
  _: 2
144
127
  }, 1024)]),
145
128
  key: "0"
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import "@mdi/font/css/materialdesignicons.css";
2
2
  import "vuetify/styles";
3
+ import "./styles/fonts/fonts.css";
3
4
  import { Plugin } from "vue";
4
5
  //#region src/index.d.ts
5
6
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import "@mdi/font/css/materialdesignicons.css";
2
2
  import "vuetify/styles";
3
+ import "./styles/fonts/fonts.css";
3
4
  import { createVuetify } from "vuetify";
4
5
  import "vue";
5
6
  //#region src/index.ts
@@ -22,7 +23,10 @@ function createUimed() {
22
23
  error: "#D92D20",
23
24
  info: "#9ACBE5"
24
25
  },
25
- variables: { "border-color": "#D0D5DD" }
26
+ variables: {
27
+ "border-color": "#D0D5DD",
28
+ "font-body": "\"Unimed Slab\", sans-serif"
29
+ }
26
30
  } }
27
31
  } });
28
32
  }
package/dist/plugins.js CHANGED
@@ -1,14 +1,10 @@
1
- import { resolve } from "node:path";
2
1
  import vitePluginVuetify from "vite-plugin-vuetify";
3
2
  //#region src/plugins.ts
4
3
  /**
5
4
  * Vite plugin for UIMed.
6
5
  */
7
6
  function vitePluginUimed() {
8
- return vitePluginVuetify({
9
- autoImport: false,
10
- styles: { configFile: resolve(__dirname, "styles/settings.scss") }
11
- });
7
+ return vitePluginVuetify({ autoImport: false });
12
8
  }
13
9
  /**
14
10
  * Vitest Server plugin for UIMed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.0.0-beta.11",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",
@@ -1,6 +0,0 @@
1
- @use "fonts";
2
-
3
- @use "sass:string";
4
- @use "vuetify/settings" with (
5
- $body-font-family: string.unquote('"Unimed Slab", sans-serif')
6
- );
File without changes