robbyson-frontend-library 1.0.51 → 1.0.53

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.
@@ -24,6 +24,7 @@ var TreeTableModel = /** @class */ (function (_super) {
24
24
  _this.name = props.nome;
25
25
  _this.office = props.cargo;
26
26
  _this.cpf = props.cpf;
27
+ _this.image = props === null || props === void 0 ? void 0 : props.image;
27
28
  _this.user_id = props.user_id;
28
29
  _this.hierarchy = props.hierarquia;
29
30
  _this.attributes = props.atributos.map(function (attribute) {
@@ -17,7 +17,7 @@ import { BaseRepositoryModel } from "../base.repository.model";
17
17
  function registerHierarchy(hierarchies) {
18
18
  return hierarchies === null || hierarchies === void 0 ? void 0 : hierarchies.map(function (hierarchy) {
19
19
  var _a, _b, _c;
20
- return {
20
+ var obj_return = {
21
21
  i: hierarchy.i,
22
22
  d: hierarchy.d,
23
23
  g: hierarchy.g,
@@ -33,13 +33,16 @@ function registerHierarchy(hierarchies) {
33
33
  coinsGestor: (_c = hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.m) === null || _c === void 0 ? void 0 : _c.coinsGestor,
34
34
  }
35
35
  };
36
+ if (hierarchy.cd !== undefined)
37
+ obj_return['cd'] = hierarchy.cd;
38
+ return obj_return;
36
39
  });
37
40
  }
38
41
  var TreeModel = /** @class */ (function (_super) {
39
42
  __extends(TreeModel, _super);
40
43
  function TreeModel(props) {
41
44
  var _this = this;
42
- var _a, _b, _c;
45
+ var _a, _b, _c, _d;
43
46
  _this = _super.call(this) || this;
44
47
  _this._id = props === null || props === void 0 ? void 0 : props._id;
45
48
  _this.data = (props === null || props === void 0 ? void 0 : props.data) != null ? {
@@ -47,6 +50,7 @@ var TreeModel = /** @class */ (function (_super) {
47
50
  d: props === null || props === void 0 ? void 0 : props.data.d,
48
51
  g: props === null || props === void 0 ? void 0 : props.data.g,
49
52
  c: props === null || props === void 0 ? void 0 : props.data.c,
53
+ cd: props === null || props === void 0 ? void 0 : props.data.cd,
50
54
  f: registerHierarchy(props === null || props === void 0 ? void 0 : props.data.f),
51
55
  cpf: props === null || props === void 0 ? void 0 : props.data.cpf,
52
56
  resultRegister: props === null || props === void 0 ? void 0 : props.data.resultadoCadastrado,
@@ -56,8 +60,10 @@ var TreeModel = /** @class */ (function (_super) {
56
60
  maxCoins: (_a = props === null || props === void 0 ? void 0 : props.data.m) === null || _a === void 0 ? void 0 : _a.maxCoins,
57
61
  qtdEarning: (_b = props === null || props === void 0 ? void 0 : props.data.m) === null || _b === void 0 ? void 0 : _b.qtdGanho,
58
62
  coinsGestor: (_c = props === null || props === void 0 ? void 0 : props.data.m) === null || _c === void 0 ? void 0 : _c.coinsGestor
59
- }
63
+ },
60
64
  } : {};
65
+ if (((_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.cd) !== undefined)
66
+ props.data['cd'] = props.data.cd;
61
67
  _this.colors = props === null || props === void 0 ? void 0 : props.colors;
62
68
  _this.highlightColors = props === null || props === void 0 ? void 0 : props.highlightColors;
63
69
  _this.faixas = props === null || props === void 0 ? void 0 : props.faixas;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robbyson-frontend-library",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@ export interface IFilterState {
8
8
  showCategoryFilter?: boolean;
9
9
  }
10
10
  >;
11
+ isLoadingOpenFilter: boolean;
11
12
  width: number;
12
13
  searchingFilter: number | string | undefined;
13
14
  filterReturn: IFilterReturn;
@@ -21,6 +21,7 @@ export interface IModalProps extends IBaseComponentProp {
21
21
  actionButtons?: ActionButton[];
22
22
  overlayZindex?: string;
23
23
  onCloseModal?(): void;
24
+ onShowModal?(): void;
24
25
  isOpen?: boolean;
25
26
  enableDrawer?: boolean;
26
27
  drawerHeight?: number;
@@ -17,9 +17,14 @@ export interface IResultChartProps extends IBaseComponentProp {
17
17
  hit:number;
18
18
  data: ResultModel[];
19
19
  colorDivision: number[];
20
+ isInitialPosition?: boolean;
20
21
 
21
22
  }
22
23
 
24
+ export interface IResultChartState {
25
+ active: boolean;
26
+ }
27
+
23
28
  type ChartDataResults = {
24
29
  percentage?: number;
25
30
  date: string;
@@ -16,7 +16,7 @@ export interface ITextFieldProps
16
16
  width?: number;
17
17
  height?: number | string;
18
18
  value?: string;
19
- mask?: string;
19
+ mask?: string | Array<string | RegExp>;
20
20
  hasError?: boolean;
21
21
  hasHover?: boolean;
22
22
  fillPrefixIcon?: string;
@@ -72,6 +72,7 @@ export interface ITreeTableOldModel {
72
72
  nome: string;
73
73
  cargo: string;
74
74
  cpf: string;
75
+ image?: string;
75
76
  user_id: string;
76
77
  atributos: IAtributeDetailOld[];
77
78
  indicador: IIndicatorOld;
@@ -84,6 +85,7 @@ export class TreeTableModel extends BaseRepositoryModel {
84
85
  name: string;
85
86
  office: string;
86
87
  cpf: string;
88
+ image?: string;
87
89
  user_id: string;
88
90
  attributes: IAtributeDetail[];
89
91
  indicator: IIndicator;
@@ -95,6 +97,7 @@ export class TreeTableModel extends BaseRepositoryModel {
95
97
  this.name = props.nome;
96
98
  this.office = props.cargo;
97
99
  this.cpf = props.cpf;
100
+ this.image = props?.image;
98
101
  this.user_id = props.user_id;
99
102
  this.hierarchy = props.hierarquia;
100
103
  this.attributes = props.atributos.map((attribute) => {
@@ -18,6 +18,7 @@ interface IDataTreeOldModel {
18
18
  d?: string;
19
19
  g?: string;
20
20
  c?: number;
21
+ cd?: number | null;
21
22
  f?: IDataTree[];
22
23
  cpf?: string,
23
24
  resultadoCadastrado?: number;
@@ -31,7 +32,7 @@ interface IDataTreeOldModel {
31
32
  }
32
33
  export interface IArrayLeaft {
33
34
  c: number;
34
- cd: number;
35
+ cd?: number;
35
36
  i: string;
36
37
  }
37
38
  export interface IDataTree {
@@ -39,7 +40,7 @@ export interface IDataTree {
39
40
  d?: string;
40
41
  g?: string;
41
42
  c?: number;
42
- cd?: number;
43
+ cd?: number | null;
43
44
  f?: IDataTree[];
44
45
  cpf?: string,
45
46
  resultRegister?: number;
@@ -53,22 +54,26 @@ export interface IDataTree {
53
54
  }
54
55
  function registerHierarchy(hierarchies: IDataTreeOldModel[] | undefined | []) : IDataTree[] | [] | undefined{
55
56
  return hierarchies?.map((hierarchy) => {
56
- return {
57
- i : hierarchy.i,
58
- d : hierarchy.d,
59
- g : hierarchy.g,
60
- c : hierarchy.c,
61
- f : registerHierarchy(hierarchy.f),
62
- cpf : hierarchy.cpf,
63
- resultRegister : hierarchy.resultadoCadastrado,
64
- goalRegister : hierarchy.metaCadastrada,
65
- fator : hierarchy.fator,
66
- m: {
67
- maxCoins : hierarchy?.m?.maxCoins,
68
- qtdEarning : hierarchy?.m?.qtdGanho,
69
- coinsGestor : hierarchy?.m?.coinsGestor,
70
- }
71
- }
57
+ const obj_return:IDataTree = {
58
+ i : hierarchy.i,
59
+ d : hierarchy.d,
60
+ g : hierarchy.g,
61
+ c : hierarchy.c,
62
+ f : registerHierarchy(hierarchy.f),
63
+ cpf : hierarchy.cpf,
64
+ resultRegister : hierarchy.resultadoCadastrado,
65
+ goalRegister : hierarchy.metaCadastrada,
66
+ fator : hierarchy.fator,
67
+ m: {
68
+ maxCoins : hierarchy?.m?.maxCoins,
69
+ qtdEarning : hierarchy?.m?.qtdGanho,
70
+ coinsGestor : hierarchy?.m?.coinsGestor,
71
+ }
72
+ }
73
+
74
+ if(hierarchy.cd !== undefined)
75
+ obj_return['cd'] = hierarchy.cd
76
+ return obj_return
72
77
  })
73
78
  }
74
79
  export class TreeModel extends BaseRepositoryModel {
@@ -86,6 +91,7 @@ export class TreeModel extends BaseRepositoryModel {
86
91
  d : props?.data.d,
87
92
  g : props?.data.g,
88
93
  c : props?.data.c,
94
+ cd : props?.data.cd,
89
95
  f : registerHierarchy(props?.data.f),
90
96
  cpf : props?.data.cpf,
91
97
  resultRegister : props?.data.resultadoCadastrado,
@@ -95,12 +101,13 @@ export class TreeModel extends BaseRepositoryModel {
95
101
  maxCoins : props?.data.m?.maxCoins,
96
102
  qtdEarning : props?.data.m?.qtdGanho,
97
103
  coinsGestor : props?.data.m?.coinsGestor
98
- }
104
+ },
99
105
  } : {}
106
+ if(props?.data?.cd !== undefined)
107
+ props.data['cd'] = props.data.cd;
100
108
  this.colors = props?.colors;
101
109
  this.highlightColors = props?.highlightColors;
102
110
  this.faixas = props?.faixas;
103
111
  this.minLevel = props?.minLevel;
104
-
105
112
  }
106
113
  }
@@ -1,4 +1,5 @@
1
1
  import { BaseRepositoryModel } from "./base.repository.model";
2
+ import { TermsOfUseModel } from "./term-of-use.model";
2
3
  import { UserMirrorModel } from "./user-mirror.model";
3
4
 
4
5
  export class UserSessionModel extends BaseRepositoryModel {
@@ -47,7 +48,7 @@ export class UserSessionModel extends BaseRepositoryModel {
47
48
  active: boolean;
48
49
  }[];
49
50
  name: string;
50
- userHierarchyLevel: number // Hierarquia do usuario em si, não do espelho
51
+ userHierarchyLevel: number; // Hierarquia do usuario em si, não do espelho
51
52
  };
52
53
  nickname: string;
53
54
  about: string;
@@ -99,6 +100,7 @@ export class UserSessionModel extends BaseRepositoryModel {
99
100
  UsuarioAceitouTermoUsoAtual: boolean;
100
101
  colorBadge?: string;
101
102
  isAcceptedLastUseTerm: boolean;
103
+ lastUseTerm: TermsOfUseModel;
102
104
  UsuarioJaLogou: boolean;
103
105
  firstAccess: boolean;
104
106
  forceAvatarDisplay?: boolean;
@@ -10,5 +10,6 @@ export interface IQuizRepository {
10
10
  ): Promise<QuizModel>;
11
11
  getQuizzesToBeAnsweredLater(): Promise<QuizAnsweredModel[]>;
12
12
  getNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
13
+ getGeneralNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
13
14
  getAnsweredQuizzes(): Promise<QuizAnsweredModel[]>;
14
15
  }
@@ -7,6 +7,7 @@ export interface IGetIndicatorsTreeDTO {
7
7
  referencia: string;
8
8
  tipoReferencia: string;
9
9
  dadosAnterioresSeVazio: boolean;
10
+ selectedIndicatorId?: string;
10
11
  };
11
12
  }
12
13
  export interface SearchResultIfEmpty {
@@ -38,6 +39,8 @@ export interface IHandleSearchTreeDTO {
38
39
  text: string;
39
40
  limit?: number;
40
41
  groups?: string[]
42
+ skip?: number
43
+ count?: boolean,
41
44
  excludeIdentifications?: string[];
42
45
  }
43
46
 
@@ -149,6 +152,8 @@ export interface IHandleSearchUser {
149
152
 
150
153
  export interface IMembersBroadcast extends Omit<IHandleSearchUser, 'identification' | 'group'> {
151
154
  identification: string;
155
+ image?: string;
156
+ "COUNT(*)"?: number;
152
157
  group: string;
153
158
  }
154
159
  export interface IInsertSimulationTreeDTO {
@@ -10,8 +10,10 @@ export interface IQuizService {
10
10
  ): Promise<QuizModel>;
11
11
  getQuizzesToBeAnsweredLater(): Promise<QuizAnsweredModel[]>;
12
12
  getNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
13
+ getGeneralNotAnsweredQuizzes(): Promise<QuizNotAnsweredModel[]>;
13
14
  getAnsweredQuizzes(): Promise<QuizAnsweredModel[]>;
14
15
  getNotAnsweredQuizzesCount(): number;
16
+ getGeneralNotAnsweredQuizzesCount(): number;
15
17
  getHistory(): Promise<[QuizAnsweredModel[], QuizAnsweredModel[]]>;
16
18
  handleNotAnsweredQuiz(quizId?: string): Promise<boolean>;
17
19
  setQuiz(quiz: QuizModel): void;
@@ -63,7 +63,8 @@ export interface ITreeService {
63
63
  getGraphData(simulationId?: string): Promise<void>;
64
64
  insertSimulation(
65
65
  simulationValue: number,
66
- period: string
66
+ period: string,
67
+ detailsTree:TreeDetailModel
67
68
  ): Promise<TreeSaveSimulatorModel>;
68
69
  callSimulationProcess(params: TreeSaveSimulatorModel): Promise<void>;
69
70
  completeSimulation(
@@ -1,6 +1,7 @@
1
1
  import { QuizModel } from "../../models";
2
2
 
3
3
  export interface IQuizApp {
4
+ generalNotAnsweredQuizzesCount: number;
4
5
  notAnsweredQuizzesCount: number;
5
6
  notAnsweredQuizIds: string[];
6
7
  quizErrorIds: string[];