@denevads/dnv-smo 1.0.34 → 1.0.35

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@denevads/dnv-smo",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "SMO module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -42,6 +42,7 @@ export interface GetRecursos {
42
42
  codigo: number;
43
43
  fechaInicio: string;
44
44
  fechaFin: string;
45
+ ocultarVideos?: boolean;
45
46
  recursos?: [];
46
47
  canales?: Canal[];
47
48
  }
package/src/smo.ts CHANGED
@@ -126,7 +126,9 @@ export class SMO {
126
126
  // @ts-ignore
127
127
  CheckHealthPrinter: window.objJS.checkHealthPrinter,
128
128
  // @ts-ignore
129
- CheckHealth: window.objJS.checkHealth
129
+ CheckHealth: window.objJS.checkHealth,
130
+ // @ts-ignore
131
+ getValorCalendario: window.objJS.getValorCalendario
130
132
  };
131
133
  }else{
132
134
  console.log("No existe objJS en window");
@@ -223,6 +225,10 @@ export class SMO {
223
225
  selft.checkHealthPrinter(e.data.objData);
224
226
  return;
225
227
  }
228
+ if(func == SMO_EVENT_TYPE.getValorCalendario){
229
+ selft.getValorCalendario(e.data.objData);
230
+ return;
231
+ }
226
232
  console.warn("message not implemented!!" +func);
227
233
  }
228
234
  }
@@ -271,6 +277,9 @@ export class SMO {
271
277
  checkHealthPrinter(json:string):void{
272
278
  this.events.checkHealthPrinter.next(json);
273
279
  }
280
+ getValorCalendario(estado:boolean):void{
281
+ this.events.getValorCalendario.next(estado);
282
+ }
274
283
  }
275
284
 
276
285
  class SmoEvents{
@@ -289,6 +298,7 @@ class SmoEvents{
289
298
  public getVariableStorage: Subject<variable> = new Subject<variable>();
290
299
  public checkHealth: Subject<string> = new Subject<string>();
291
300
  public checkHealthPrinter: Subject<string> = new Subject<string>();
301
+ public getValorCalendario: Subject<boolean> = new Subject<boolean>();
292
302
  constructor(smo:SMO){}
293
303
  }
294
304
  class smoCallBacks{
@@ -638,6 +648,16 @@ class smoCallBacks{
638
648
  idSmo: this.smo.id
639
649
  }, this.smo.vars.idSmo);
640
650
  }
651
+ getValorCalendario(codigo:number, tipoObjeto?:number){
652
+ this.smo.utils.sendToParent({
653
+ target: "Dnv.smoCallbacks.getValorCalendario",
654
+ objData: {
655
+ codigo: codigo,
656
+ tipoObjeto: tipoObjeto
657
+ },
658
+ idSmo: this.smo.id
659
+ }, this.smo.vars.idSmo);
660
+ }
641
661
 
642
662
  }
643
663
  class Utils{
@@ -826,7 +846,8 @@ export enum SMO_EVENT_TYPE{
826
846
  getRecursosRelleno = "getRecursosRelleno",
827
847
  getVariableStorage = "getVariableStorage",
828
848
  checkHealth = "checkHealth",
829
- checkHealthPrinter = "checkHealthPrinter"
849
+ checkHealthPrinter = "checkHealthPrinter",
850
+ getValorCalendario = "getValorCalendario"
830
851
  }
831
852
  export enum LogLevel {
832
853
  Debug= 0,
@@ -875,5 +896,6 @@ export interface ObjJSType {
875
896
  printImage: () => void;
876
897
  checkHealthPrinter: () => void;
877
898
  checkHealth: () => void;
899
+ getValorCalendario: () => void;
878
900
  }
879
901
 
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="JSConstantReassignment" enabled="false" level="ERROR" enabled_by_default="false" />
5
- </profile>
6
- </component>