@solfacil/girassol 0.34.2 → 0.34.4

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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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 | undefined;
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,28 @@ 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
+ };
6081
+ menuProducts: {
6079
6082
  type: import("vue").PropType<boolean>;
6080
6083
  } & {
6081
6084
  default: boolean;
6082
6085
  };
6083
- menuProducts: {
6086
+ showNotification: {
6084
6087
  type: import("vue").PropType<boolean>;
6085
6088
  } & {
6086
6089
  default: boolean;
6087
6090
  };
6088
6091
  }>> & {
6089
6092
  onClickProduct?: ((product: string) => any) | undefined;
6090
- onClickUser?: ((type: string) => any) | undefined;
6093
+ onClickUser?: ((event: string) => any) | undefined;
6091
6094
  onClickSolfacilPlus?: (() => any) | undefined;
6092
6095
  onClickLogout?: (() => any) | undefined;
6093
6096
  onClickMenu?: (() => any) | undefined;
6094
6097
  onHomePortal?: (() => any) | undefined;
6095
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "umPersonification" | "inPersonification" | "notification" | "menuProducts">;
6098
+ onClickNotification?: ((event: object) => any) | undefined;
6099
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "umPersonification" | "inPersonification" | "menuProducts" | "showNotification">;
6096
6100
  $attrs: {
6097
6101
  [x: string]: unknown;
6098
6102
  };
@@ -6104,7 +6108,7 @@ export declare const components: {
6104
6108
  }>;
6105
6109
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
6106
6110
  $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);
6111
+ $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
6112
  $el: any;
6109
6113
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
6110
6114
  product: {
@@ -6129,40 +6133,46 @@ export declare const components: {
6129
6133
  } & {
6130
6134
  default: boolean;
6131
6135
  };
6132
- notification: {
6136
+ notifications: {
6137
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6138
+ };
6139
+ menuProducts: {
6133
6140
  type: import("vue").PropType<boolean>;
6134
6141
  } & {
6135
6142
  default: boolean;
6136
6143
  };
6137
- menuProducts: {
6144
+ showNotification: {
6138
6145
  type: import("vue").PropType<boolean>;
6139
6146
  } & {
6140
6147
  default: boolean;
6141
6148
  };
6142
6149
  }>> & {
6143
6150
  onClickProduct?: ((product: string) => any) | undefined;
6144
- onClickUser?: ((type: string) => any) | undefined;
6151
+ onClickUser?: ((event: string) => any) | undefined;
6145
6152
  onClickSolfacilPlus?: (() => any) | undefined;
6146
6153
  onClickLogout?: (() => any) | undefined;
6147
6154
  onClickMenu?: (() => any) | undefined;
6148
6155
  onHomePortal?: (() => any) | undefined;
6156
+ onClickNotification?: ((event: object) => any) | undefined;
6149
6157
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6150
6158
  clickMenu: () => void;
6151
6159
  } & {
6152
6160
  clickLogout: () => void;
6153
6161
  } & {
6154
- clickUser: (type: string) => void;
6162
+ clickUser: (event: string) => void;
6155
6163
  } & {
6156
6164
  clickProduct: (product: string) => void;
6157
6165
  } & {
6158
6166
  clickSolfacilPlus: () => void;
6159
6167
  } & {
6160
6168
  homePortal: () => void;
6169
+ } & {
6170
+ clickNotification: (event: object) => void;
6161
6171
  }, string, {
6162
6172
  umPersonification: boolean;
6163
6173
  inPersonification: boolean;
6164
- notification: boolean;
6165
6174
  menuProducts: boolean;
6175
+ showNotification: boolean;
6166
6176
  }, {}, string> & {
6167
6177
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
6168
6178
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -6206,23 +6216,27 @@ export declare const components: {
6206
6216
  } & {
6207
6217
  default: boolean;
6208
6218
  };
6209
- notification: {
6219
+ notifications: {
6220
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6221
+ };
6222
+ menuProducts: {
6210
6223
  type: import("vue").PropType<boolean>;
6211
6224
  } & {
6212
6225
  default: boolean;
6213
6226
  };
6214
- menuProducts: {
6227
+ showNotification: {
6215
6228
  type: import("vue").PropType<boolean>;
6216
6229
  } & {
6217
6230
  default: boolean;
6218
6231
  };
6219
6232
  }>> & {
6220
6233
  onClickProduct?: ((product: string) => any) | undefined;
6221
- onClickUser?: ((type: string) => any) | undefined;
6234
+ onClickUser?: ((event: string) => any) | undefined;
6222
6235
  onClickSolfacilPlus?: (() => any) | undefined;
6223
6236
  onClickLogout?: (() => any) | undefined;
6224
6237
  onClickMenu?: (() => any) | undefined;
6225
6238
  onHomePortal?: (() => any) | undefined;
6239
+ onClickNotification?: ((event: object) => any) | undefined;
6226
6240
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
6227
6241
  __isFragment?: undefined;
6228
6242
  __isTeleport?: undefined;
@@ -6250,40 +6264,46 @@ export declare const components: {
6250
6264
  } & {
6251
6265
  default: boolean;
6252
6266
  };
6253
- notification: {
6267
+ notifications: {
6268
+ type: import("vue").PropType<import("./components/header/types").NotificationsList>;
6269
+ };
6270
+ menuProducts: {
6254
6271
  type: import("vue").PropType<boolean>;
6255
6272
  } & {
6256
6273
  default: boolean;
6257
6274
  };
6258
- menuProducts: {
6275
+ showNotification: {
6259
6276
  type: import("vue").PropType<boolean>;
6260
6277
  } & {
6261
6278
  default: boolean;
6262
6279
  };
6263
6280
  }>> & {
6264
6281
  onClickProduct?: ((product: string) => any) | undefined;
6265
- onClickUser?: ((type: string) => any) | undefined;
6282
+ onClickUser?: ((event: string) => any) | undefined;
6266
6283
  onClickSolfacilPlus?: (() => any) | undefined;
6267
6284
  onClickLogout?: (() => any) | undefined;
6268
6285
  onClickMenu?: (() => any) | undefined;
6269
6286
  onHomePortal?: (() => any) | undefined;
6287
+ onClickNotification?: ((event: object) => any) | undefined;
6270
6288
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6271
6289
  clickMenu: () => void;
6272
6290
  } & {
6273
6291
  clickLogout: () => void;
6274
6292
  } & {
6275
- clickUser: (type: string) => void;
6293
+ clickUser: (event: string) => void;
6276
6294
  } & {
6277
6295
  clickProduct: (product: string) => void;
6278
6296
  } & {
6279
6297
  clickSolfacilPlus: () => void;
6280
6298
  } & {
6281
6299
  homePortal: () => void;
6300
+ } & {
6301
+ clickNotification: (event: object) => void;
6282
6302
  }, string, {
6283
6303
  umPersonification: boolean;
6284
6304
  inPersonification: boolean;
6285
- notification: boolean;
6286
6305
  menuProducts: boolean;
6306
+ showNotification: boolean;
6287
6307
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
6288
6308
  $slots: {
6289
6309
  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.2",
4
+ "version": "0.34.4",
5
5
  "license": "MIT",
6
6
  "authors": [
7
7
  {