@nexdom/uimed-vue 2.0.0-beta.10 → 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"
@@ -464,6 +447,7 @@ var navigation_menu_default = /* @__PURE__ */ defineComponent({
464
447
  return openBlock(), createBlock(unref(VNavigationDrawer), {
465
448
  modelValue: open.value,
466
449
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => open.value = $event),
450
+ color: "primary",
467
451
  "data-testid": props.dataTestid,
468
452
  absolute: "",
469
453
  temporary: ""
@@ -553,7 +537,7 @@ var toast_default = /* @__PURE__ */ defineComponent({
553
537
  const buttonVariantToVuetifyVariant = {
554
538
  primary: "elevated",
555
539
  secondary: "flat",
556
- ghost: "outlined"
540
+ ghost: "text"
557
541
  };
558
542
  function useButtonVariant(variant) {
559
543
  return computed(() => {
package/dist/index.d.ts CHANGED
@@ -1,17 +1,6 @@
1
- import "@fontsource/roboto/100.css";
2
- import "@fontsource/roboto/300.css";
3
- import "@fontsource/roboto/400.css";
4
- import "@fontsource/roboto/500.css";
5
- import "@fontsource/roboto/700.css";
6
- import "@fontsource/roboto/900.css";
7
- import "@fontsource/roboto/100-italic.css";
8
- import "@fontsource/roboto/300-italic.css";
9
- import "@fontsource/roboto/400-italic.css";
10
- import "@fontsource/roboto/500-italic.css";
11
- import "@fontsource/roboto/700-italic.css";
12
- import "@fontsource/roboto/900-italic.css";
13
1
  import "@mdi/font/css/materialdesignicons.css";
14
2
  import "vuetify/styles";
3
+ import "./styles/fonts/fonts.css";
15
4
  import { Plugin } from "vue";
16
5
  //#region src/index.d.ts
17
6
  /**
package/dist/index.js CHANGED
@@ -1,17 +1,6 @@
1
- import "@fontsource/roboto/100.css";
2
- import "@fontsource/roboto/300.css";
3
- import "@fontsource/roboto/400.css";
4
- import "@fontsource/roboto/500.css";
5
- import "@fontsource/roboto/700.css";
6
- import "@fontsource/roboto/900.css";
7
- import "@fontsource/roboto/100-italic.css";
8
- import "@fontsource/roboto/300-italic.css";
9
- import "@fontsource/roboto/400-italic.css";
10
- import "@fontsource/roboto/500-italic.css";
11
- import "@fontsource/roboto/700-italic.css";
12
- import "@fontsource/roboto/900-italic.css";
13
1
  import "@mdi/font/css/materialdesignicons.css";
14
2
  import "vuetify/styles";
3
+ import "./styles/fonts/fonts.css";
15
4
  import { createVuetify } from "vuetify";
16
5
  import "vue";
17
6
  //#region src/index.ts
@@ -20,7 +9,26 @@ import "vue";
20
9
  * @returns an instance to be used with [app.use](https://vuejs.org/guide/essentials/application.html#the-application-instance)
21
10
  */
22
11
  function createUimed() {
23
- return createVuetify({ theme: { defaultTheme: "light" } });
12
+ return createVuetify({ theme: {
13
+ defaultTheme: "light",
14
+ themes: { light: {
15
+ dark: false,
16
+ colors: {
17
+ background: "#EAEDF0",
18
+ surface: "#FCFCFD",
19
+ primary: "#00995D",
20
+ secondary: "#FCFCFD",
21
+ success: "#A9EFC5",
22
+ warning: "#FFE596",
23
+ error: "#D92D20",
24
+ info: "#9ACBE5"
25
+ },
26
+ variables: {
27
+ "border-color": "#D0D5DD",
28
+ "font-body": "\"Unimed Slab\", sans-serif"
29
+ }
30
+ } }
31
+ } });
24
32
  }
25
33
  //#endregion
26
34
  export { createUimed };
@@ -0,0 +1,4 @@
1
+ @font-face {
2
+ font-family: "Unimed Slab";
3
+ src: url("./UnimedSlab-Regular.woff2");
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",
@@ -54,7 +54,6 @@
54
54
  "devDependencies": {
55
55
  "@commitlint/cli": "^21.2.1",
56
56
  "@commitlint/config-conventional": "^21.2.0",
57
- "@fontsource/roboto": "^5.3.0",
58
57
  "@mdi/font": "^7.4.47",
59
58
  "@nexdom/shared": "^2.1.1",
60
59
  "@playwright/test": "^1.62.1",
@@ -88,7 +87,6 @@
88
87
  "vuetify": "^4.2.0"
89
88
  },
90
89
  "peerDependencies": {
91
- "@fontsource/roboto": "^5.3.0",
92
90
  "@mdi/font": "^7.4.47",
93
91
  "@nexdom/shared": "^2.1.1",
94
92
  "resize-observer-polyfill": "^1.5.1",