robbyson-frontend-library 1.0.53 → 1.0.54

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.
@@ -13,6 +13,17 @@ var __extends = (this && this.__extends) || (function () {
13
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
14
  };
15
15
  })();
16
+ var __assign = (this && this.__assign) || function () {
17
+ __assign = Object.assign || function(t) {
18
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19
+ s = arguments[i];
20
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
+ t[p] = s[p];
22
+ }
23
+ return t;
24
+ };
25
+ return __assign.apply(this, arguments);
26
+ };
16
27
  import { BaseRepositoryModel } from "../base.repository.model";
17
28
  function registerHierarchy(hierarchies) {
18
29
  return hierarchies === null || hierarchies === void 0 ? void 0 : hierarchies.map(function (hierarchy) {
@@ -50,7 +61,6 @@ var TreeModel = /** @class */ (function (_super) {
50
61
  d: props === null || props === void 0 ? void 0 : props.data.d,
51
62
  g: props === null || props === void 0 ? void 0 : props.data.g,
52
63
  c: props === null || props === void 0 ? void 0 : props.data.c,
53
- cd: props === null || props === void 0 ? void 0 : props.data.cd,
54
64
  f: registerHierarchy(props === null || props === void 0 ? void 0 : props.data.f),
55
65
  cpf: props === null || props === void 0 ? void 0 : props.data.cpf,
56
66
  resultRegister: props === null || props === void 0 ? void 0 : props.data.resultadoCadastrado,
@@ -63,7 +73,7 @@ var TreeModel = /** @class */ (function (_super) {
63
73
  },
64
74
  } : {};
65
75
  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;
76
+ _this.data = (props === null || props === void 0 ? void 0 : props.data) != null ? __assign(__assign({}, props === null || props === void 0 ? void 0 : props.data), { cd: props === null || props === void 0 ? void 0 : props.data.cd }) : {};
67
77
  _this.colors = props === null || props === void 0 ? void 0 : props.colors;
68
78
  _this.highlightColors = props === null || props === void 0 ? void 0 : props.highlightColors;
69
79
  _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.53",
3
+ "version": "1.0.54",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@ export interface IWeeklyChartProps extends IBaseComponentProp {
19
19
  hit:number;
20
20
  days: ResultModel[];
21
21
  colorDivision: number[];
22
+ selectedReference ?: string;
22
23
  }
23
24
 
24
25
  export interface IWeeklyData {
@@ -91,7 +91,6 @@ export class TreeModel extends BaseRepositoryModel {
91
91
  d : props?.data.d,
92
92
  g : props?.data.g,
93
93
  c : props?.data.c,
94
- cd : props?.data.cd,
95
94
  f : registerHierarchy(props?.data.f),
96
95
  cpf : props?.data.cpf,
97
96
  resultRegister : props?.data.resultadoCadastrado,
@@ -104,7 +103,10 @@ export class TreeModel extends BaseRepositoryModel {
104
103
  },
105
104
  } : {}
106
105
  if(props?.data?.cd !== undefined)
107
- props.data['cd'] = props.data.cd;
106
+ this.data = props?.data != null ? {
107
+ ...props?.data,
108
+ cd : props?.data.cd,
109
+ } : {}
108
110
  this.colors = props?.colors;
109
111
  this.highlightColors = props?.highlightColors;
110
112
  this.faixas = props?.faixas;
@@ -47,6 +47,14 @@ export class UserSessionModel extends BaseRepositoryModel {
47
47
  _id: string;
48
48
  active: boolean;
49
49
  }[];
50
+ mirrorAttributes?: {
51
+ attribute: {
52
+ _id: string;
53
+ primary: boolean;
54
+ };
55
+ _id: string;
56
+ active: boolean;
57
+ }[];
50
58
  name: string;
51
59
  userHierarchyLevel: number; // Hierarquia do usuario em si, não do espelho
52
60
  };
@@ -10,4 +10,5 @@ export interface IUploadService {
10
10
  ): string;
11
11
  getRawFileUrl(imageName: string): string;
12
12
  downloadFile(fileName: string): Promise<void>;
13
+ onImageError(e: React.SyntheticEvent<HTMLImageElement, Event>): void;
13
14
  }