@solfacil/girassol 0.34.1 → 0.34.3

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.
@@ -1,54 +1,59 @@
1
- import type { Partner, User } from './types';
1
+ import type { NotificationsList, Partner, User } from './types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  user: User;
4
4
  partner: Partner;
5
5
  product: 'sales' | 'financing' | 'monitoring' | 'shop' | 'portal';
6
6
  umPersonification?: boolean | undefined;
7
7
  inPersonification?: boolean | undefined;
8
- notification?: boolean | undefined;
9
8
  menuProducts?: boolean | undefined;
9
+ showNotification?: boolean | undefined;
10
+ notifications: NotificationsList;
10
11
  }>, {
11
12
  umPersonification: boolean;
12
13
  inPersonification: boolean;
13
- notification: boolean;
14
+ showNotification: boolean;
14
15
  menuProducts: boolean;
15
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
17
  clickMenu: () => void;
17
18
  } & {
18
19
  clickLogout: () => void;
19
20
  } & {
20
- clickUser: (type: string) => void;
21
+ clickUser: (event: string) => void;
21
22
  } & {
22
23
  clickProduct: (product: string) => void;
23
24
  } & {
24
25
  clickSolfacilPlus: () => void;
25
26
  } & {
26
27
  homePortal: () => void;
28
+ } & {
29
+ clickNotification: (event: object) => void;
27
30
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
28
31
  user: User;
29
32
  partner: Partner;
30
33
  product: 'sales' | 'financing' | 'monitoring' | 'shop' | 'portal';
31
34
  umPersonification?: boolean | undefined;
32
35
  inPersonification?: boolean | undefined;
33
- notification?: boolean | undefined;
34
36
  menuProducts?: boolean | undefined;
37
+ showNotification?: boolean | undefined;
38
+ notifications: NotificationsList;
35
39
  }>, {
36
40
  umPersonification: boolean;
37
41
  inPersonification: boolean;
38
- notification: boolean;
42
+ showNotification: boolean;
39
43
  menuProducts: boolean;
40
44
  }>>> & {
41
45
  onClickProduct?: ((product: string) => any) | undefined;
42
- onClickUser?: ((type: string) => any) | undefined;
46
+ onClickUser?: ((event: string) => any) | undefined;
43
47
  onClickSolfacilPlus?: (() => any) | undefined;
44
48
  onClickLogout?: (() => any) | undefined;
45
49
  onClickMenu?: (() => any) | undefined;
46
50
  onHomePortal?: (() => any) | undefined;
51
+ onClickNotification?: ((event: object) => any) | undefined;
47
52
  }, {
48
53
  umPersonification: boolean;
49
54
  inPersonification: boolean;
50
- notification: boolean;
51
55
  menuProducts: boolean;
56
+ showNotification: boolean;
52
57
  }>, {
53
58
  icon: (_: {}) => any;
54
59
  }>;
@@ -0,0 +1,23 @@
1
+ import type { Notification, NotificationsList } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ notifications: NotificationsList;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ moreNotification: (cursor: string) => void;
6
+ } & {
7
+ goToNotification: (notification: Notification) => void;
8
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ notifications: NotificationsList;
10
+ }>>> & {
11
+ onMoreNotification?: ((cursor: string) => any) | undefined;
12
+ onGoToNotification?: ((notification: Notification) => any) | undefined;
13
+ }, {}>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -0,0 +1,28 @@
1
+ import type { Notification, NotificationsList } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ showNotificationList: boolean;
4
+ notifications: NotificationsList;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ moreNotification: (cursor: string) => void;
7
+ } & {
8
+ goToNotification: (notification: Notification) => void;
9
+ } & {
10
+ closeNotifications: () => void;
11
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ showNotificationList: boolean;
13
+ notifications: NotificationsList;
14
+ }>>> & {
15
+ onMoreNotification?: ((cursor: string) => any) | undefined;
16
+ onGoToNotification?: ((notification: Notification) => any) | undefined;
17
+ onCloseNotifications?: (() => any) | undefined;
18
+ }, {}>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Notification, NotificationsList } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ showNotificationList: boolean;
4
+ notifications: NotificationsList;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ moreNotification: (cursor: string) => void;
7
+ } & {
8
+ closeNotifications: () => void;
9
+ } & {
10
+ goToNotification: (notification: Notification) => void;
11
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ showNotificationList: boolean;
13
+ notifications: NotificationsList;
14
+ }>>> & {
15
+ onMoreNotification?: ((cursor: string) => any) | undefined;
16
+ onGoToNotification?: ((notification: Notification) => any) | undefined;
17
+ onCloseNotifications?: (() => any) | undefined;
18
+ }, {}>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -1,2 +1,28 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ import type { Notification, NotificationsList } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ notifications: NotificationsList;
4
+ product: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ moreNotification: (cursor: string) => void;
7
+ } & {
8
+ toggleNotification: (isOpen: boolean) => void;
9
+ } & {
10
+ goToNotification: (notification: Notification) => void;
11
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ notifications: NotificationsList;
13
+ product: string;
14
+ }>>> & {
15
+ onMoreNotification?: ((cursor: string) => any) | undefined;
16
+ onGoToNotification?: ((notification: Notification) => any) | undefined;
17
+ onToggleNotification?: ((isOpen: boolean) => any) | undefined;
18
+ }, {}>;
2
19
  export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -23,3 +23,23 @@ export interface Partner {
23
23
  responsible: Responsible;
24
24
  solfacilPlus: SolfacilPlus;
25
25
  }
26
+ export interface NotificationValues {
27
+ templateName: string;
28
+ actionUrl: string;
29
+ message: string;
30
+ title: string;
31
+ }
32
+ export interface Notification {
33
+ id: number;
34
+ clickedAt: Date | string | null;
35
+ readAt: Date | string | null;
36
+ createdAt: Date | string;
37
+ notification: NotificationValues;
38
+ }
39
+ export interface NotificationsList {
40
+ count: number;
41
+ countNotification: number;
42
+ totalCount: number;
43
+ nextCursor: string;
44
+ data: Notification[];
45
+ }
@@ -1,10 +1,10 @@
1
1
  import type { Partner } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- readonly partner: Partner;
3
+ partner: Partner;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  clickSolfacilPlus: () => void;
6
6
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- readonly partner: Partner;
7
+ partner: Partner;
8
8
  }>>> & {
9
9
  onClickSolfacilPlus?: (() => any) | undefined;
10
10
  }, {}>;
@@ -6050,8 +6050,8 @@ export declare const components: {
6050
6050
  $props: Partial<{
6051
6051
  umPersonification: boolean;
6052
6052
  inPersonification: boolean;
6053
- notification: boolean;
6054
6053
  menuProducts: boolean;
6054
+ showNotification: boolean;
6055
6055
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
6056
6056
  product: {
6057
6057
  type: import("vue").PropType<"portal" | "shop" | "financing" | "monitoring" | "sales">;
@@ -6075,24 +6075,29 @@ export declare const components: {
6075
6075
  } & {
6076
6076
  default: boolean;
6077
6077
  };
6078
- notification: {
6078
+ notifications: {
6079
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6080
+ required: true;
6081
+ };
6082
+ menuProducts: {
6079
6083
  type: import("vue").PropType<boolean>;
6080
6084
  } & {
6081
6085
  default: boolean;
6082
6086
  };
6083
- menuProducts: {
6087
+ showNotification: {
6084
6088
  type: import("vue").PropType<boolean>;
6085
6089
  } & {
6086
6090
  default: boolean;
6087
6091
  };
6088
6092
  }>> & {
6089
6093
  onClickProduct?: ((product: string) => any) | undefined;
6090
- onClickUser?: ((type: string) => any) | undefined;
6094
+ onClickUser?: ((event: string) => any) | undefined;
6091
6095
  onClickSolfacilPlus?: (() => any) | undefined;
6092
6096
  onClickLogout?: (() => any) | undefined;
6093
6097
  onClickMenu?: (() => any) | undefined;
6094
6098
  onHomePortal?: (() => any) | undefined;
6095
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "umPersonification" | "inPersonification" | "notification" | "menuProducts">;
6099
+ onClickNotification?: ((event: object) => any) | undefined;
6100
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "umPersonification" | "inPersonification" | "menuProducts" | "showNotification">;
6096
6101
  $attrs: {
6097
6102
  [x: string]: unknown;
6098
6103
  };
@@ -6104,7 +6109,7 @@ export declare const components: {
6104
6109
  }>;
6105
6110
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
6106
6111
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
6107
- $emit: ((event: "clickProduct", product: string) => void) & ((event: "clickUser", type: string) => void) & ((event: "clickSolfacilPlus") => void) & ((event: "clickLogout") => void) & ((event: "clickMenu") => void) & ((event: "homePortal") => void);
6112
+ $emit: ((event: "clickProduct", product: string) => void) & ((event: "clickUser", event: string) => void) & ((event: "clickSolfacilPlus") => void) & ((event: "clickLogout") => void) & ((event: "clickMenu") => void) & ((event: "homePortal") => void) & ((event: "clickNotification", event: object) => void);
6108
6113
  $el: any;
6109
6114
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
6110
6115
  product: {
@@ -6129,40 +6134,47 @@ export declare const components: {
6129
6134
  } & {
6130
6135
  default: boolean;
6131
6136
  };
6132
- notification: {
6137
+ notifications: {
6138
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6139
+ required: true;
6140
+ };
6141
+ menuProducts: {
6133
6142
  type: import("vue").PropType<boolean>;
6134
6143
  } & {
6135
6144
  default: boolean;
6136
6145
  };
6137
- menuProducts: {
6146
+ showNotification: {
6138
6147
  type: import("vue").PropType<boolean>;
6139
6148
  } & {
6140
6149
  default: boolean;
6141
6150
  };
6142
6151
  }>> & {
6143
6152
  onClickProduct?: ((product: string) => any) | undefined;
6144
- onClickUser?: ((type: string) => any) | undefined;
6153
+ onClickUser?: ((event: string) => any) | undefined;
6145
6154
  onClickSolfacilPlus?: (() => any) | undefined;
6146
6155
  onClickLogout?: (() => any) | undefined;
6147
6156
  onClickMenu?: (() => any) | undefined;
6148
6157
  onHomePortal?: (() => any) | undefined;
6158
+ onClickNotification?: ((event: object) => any) | undefined;
6149
6159
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6150
6160
  clickMenu: () => void;
6151
6161
  } & {
6152
6162
  clickLogout: () => void;
6153
6163
  } & {
6154
- clickUser: (type: string) => void;
6164
+ clickUser: (event: string) => void;
6155
6165
  } & {
6156
6166
  clickProduct: (product: string) => void;
6157
6167
  } & {
6158
6168
  clickSolfacilPlus: () => void;
6159
6169
  } & {
6160
6170
  homePortal: () => void;
6171
+ } & {
6172
+ clickNotification: (event: object) => void;
6161
6173
  }, string, {
6162
6174
  umPersonification: boolean;
6163
6175
  inPersonification: boolean;
6164
- notification: boolean;
6165
6176
  menuProducts: boolean;
6177
+ showNotification: boolean;
6166
6178
  }, {}, string> & {
6167
6179
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
6168
6180
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -6206,23 +6218,28 @@ export declare const components: {
6206
6218
  } & {
6207
6219
  default: boolean;
6208
6220
  };
6209
- notification: {
6221
+ notifications: {
6222
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6223
+ required: true;
6224
+ };
6225
+ menuProducts: {
6210
6226
  type: import("vue").PropType<boolean>;
6211
6227
  } & {
6212
6228
  default: boolean;
6213
6229
  };
6214
- menuProducts: {
6230
+ showNotification: {
6215
6231
  type: import("vue").PropType<boolean>;
6216
6232
  } & {
6217
6233
  default: boolean;
6218
6234
  };
6219
6235
  }>> & {
6220
6236
  onClickProduct?: ((product: string) => any) | undefined;
6221
- onClickUser?: ((type: string) => any) | undefined;
6237
+ onClickUser?: ((event: string) => any) | undefined;
6222
6238
  onClickSolfacilPlus?: (() => any) | undefined;
6223
6239
  onClickLogout?: (() => any) | undefined;
6224
6240
  onClickMenu?: (() => any) | undefined;
6225
6241
  onHomePortal?: (() => any) | undefined;
6242
+ onClickNotification?: ((event: object) => any) | undefined;
6226
6243
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
6227
6244
  __isFragment?: undefined;
6228
6245
  __isTeleport?: undefined;
@@ -6250,40 +6267,47 @@ export declare const components: {
6250
6267
  } & {
6251
6268
  default: boolean;
6252
6269
  };
6253
- notification: {
6270
+ notifications: {
6271
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6272
+ required: true;
6273
+ };
6274
+ menuProducts: {
6254
6275
  type: import("vue").PropType<boolean>;
6255
6276
  } & {
6256
6277
  default: boolean;
6257
6278
  };
6258
- menuProducts: {
6279
+ showNotification: {
6259
6280
  type: import("vue").PropType<boolean>;
6260
6281
  } & {
6261
6282
  default: boolean;
6262
6283
  };
6263
6284
  }>> & {
6264
6285
  onClickProduct?: ((product: string) => any) | undefined;
6265
- onClickUser?: ((type: string) => any) | undefined;
6286
+ onClickUser?: ((event: string) => any) | undefined;
6266
6287
  onClickSolfacilPlus?: (() => any) | undefined;
6267
6288
  onClickLogout?: (() => any) | undefined;
6268
6289
  onClickMenu?: (() => any) | undefined;
6269
6290
  onHomePortal?: (() => any) | undefined;
6291
+ onClickNotification?: ((event: object) => any) | undefined;
6270
6292
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6271
6293
  clickMenu: () => void;
6272
6294
  } & {
6273
6295
  clickLogout: () => void;
6274
6296
  } & {
6275
- clickUser: (type: string) => void;
6297
+ clickUser: (event: string) => void;
6276
6298
  } & {
6277
6299
  clickProduct: (product: string) => void;
6278
6300
  } & {
6279
6301
  clickSolfacilPlus: () => void;
6280
6302
  } & {
6281
6303
  homePortal: () => void;
6304
+ } & {
6305
+ clickNotification: (event: object) => void;
6282
6306
  }, string, {
6283
6307
  umPersonification: boolean;
6284
6308
  inPersonification: boolean;
6285
- notification: boolean;
6286
6309
  menuProducts: boolean;
6310
+ showNotification: boolean;
6287
6311
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
6288
6312
  $slots: {
6289
6313
  icon: (_: {}) => any;
@@ -0,0 +1,19 @@
1
+ import { openBlock as c, createElementBlock as e, createElementVNode as s } from "vue";
2
+ const t = {
3
+ viewBox: "0 0 1024 1024",
4
+ width: "1em",
5
+ height: "1em"
6
+ }, o = /* @__PURE__ */ s("path", {
7
+ fill: "currentColor",
8
+ d: "M467.2 537.6l44.8-34.133 44.8 34.133c7.113 5.687 14.933 5.858 23.467 0.512 8.533-5.321 11.021-12.599 7.467-21.845l-18.133-56.533 46.933-36.267c7.821-5.689 10.142-12.985 6.955-21.888-3.213-8.875-9.088-13.312-17.621-13.312h-57.6l-18.133-55.467c-2.846-9.245-8.887-13.867-18.133-13.867s-15.287 4.622-18.133 13.867l-18.133 55.467h-57.6c-8.533 0-14.578 4.622-18.133 13.867s-1.422 16.355 6.4 21.333l46.933 36.267-18.133 56.533c-2.846 9.246-0.171 16.525 8.021 21.845 8.162 5.346 16.158 5.175 23.979-0.512zM327.467 932.267c-12.089 4.267-23.467 2.487-34.133-5.333s-16-18.133-16-30.933v-252.8c-27.022-28.446-48-61.154-62.933-98.133s-22.4-76.446-22.4-118.4c0-89.6 30.933-165.333 92.8-227.2s137.6-92.8 227.2-92.8c89.6 0 165.333 30.933 227.2 92.8s92.8 137.6 92.8 227.2c0 41.954-7.467 81.421-22.4 118.4s-35.913 69.687-62.933 98.133v252.8c0 12.8-5.333 23.113-16 30.933s-22.046 9.6-34.133 5.333l-184.533-58.667-184.533 58.667zM512 682.667c71.113 0 131.554-24.887 181.333-74.667s74.667-110.221 74.667-181.333c0-71.111-24.887-131.555-74.667-181.333s-110.221-74.667-181.333-74.667c-71.113 0-131.555 24.889-181.333 74.667s-74.667 110.222-74.667 181.333c0 71.113 24.889 131.554 74.667 181.333s110.221 74.667 181.333 74.667zM341.333 854.4l170.667-45.867 170.667 45.867v-157.867c-24.179 15.646-50.846 27.917-80 36.821-29.154 8.875-59.379 13.312-90.667 13.312s-61.513-4.437-90.667-13.312c-29.155-8.905-55.822-21.175-80-36.821v157.867z",
9
+ style: {}
10
+ }, null, -1), l = [
11
+ o
12
+ ];
13
+ function r(n, i) {
14
+ return c(), e("svg", t, l);
15
+ }
16
+ const a = { name: "girassol-workspace-premium", render: r };
17
+ export {
18
+ a as default
19
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solfacil/girassol",
3
3
  "description": "Girassol design system",
4
- "version": "0.34.1",
4
+ "version": "0.34.3",
5
5
  "license": "MIT",
6
6
  "authors": [
7
7
  {