buzzcasting-storage 2.5.13 → 2.6.1

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.
@@ -108,9 +108,10 @@ export declare interface IIndicators {
108
108
  export declare interface ILabel {
109
109
  label: string;
110
110
  count: number;
111
- info: string;
111
+ info?: string;
112
112
  current: ICloudIndicators;
113
- previous: ICloudIndicators;
113
+ previous?: ICloudIndicators;
114
+ percentage?: number;
114
115
  }
115
116
 
116
117
  export declare interface IMedium {
@@ -221,20 +222,20 @@ export declare interface ISeries {
221
222
  title: string;
222
223
  series: ISeriesData[];
223
224
  category: ICategory;
224
- metrics: IMetrics;
225
- indicators: IIndicators;
226
- timestamp: number;
225
+ metrics?: IMetrics;
226
+ indicators?: IIndicators;
227
+ timestamp?: number;
227
228
  }
228
229
 
229
230
  export declare interface ISeriesData {
230
- name: string;
231
- label: string;
232
- current: number[];
233
- current_total: number;
234
- previous_total: number;
235
- previous: number[];
236
- current_category: number;
237
- previous_category: number;
231
+ name?: string;
232
+ label?: string;
233
+ current?: number[];
234
+ current_total?: number;
235
+ previous_total?: number;
236
+ previous?: number[];
237
+ current_category?: number;
238
+ previous_category?: number;
238
239
  }
239
240
 
240
241
  /**
@@ -324,6 +325,7 @@ export declare class Widget {
324
325
  getCloud: () => Promise<IResponse>;
325
326
  getMessages: () => Promise<IResponse>;
326
327
  getSeries: () => Promise<IResponse>;
328
+ showModal: (componentName: any) => void;
327
329
  destroy(): void;
328
330
  }
329
331
 
@@ -1,7 +1,7 @@
1
1
  var Ri = Object.defineProperty;
2
2
  var Ni = (C, o, h) => o in C ? Ri(C, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : C[o] = h;
3
3
  var P = (C, o, h) => (Ni(C, typeof o != "symbol" ? o + "" : o, h), h);
4
- const Fi = "2.5.12";
4
+ const Fi = "2.6.0";
5
5
  class $i {
6
6
  constructor(o) {
7
7
  P(this, "options");
@@ -4237,6 +4237,18 @@ class ao {
4237
4237
  message: `wrong method call for getMessages, expected type is ${this.query.type}`,
4238
4238
  success: !1
4239
4239
  }) : await this.storageReader.getSeries(this.query));
4240
+ P(this, "showModal", (o) => {
4241
+ const h = new CustomEvent("show-modal", {
4242
+ detail: {
4243
+ component: o,
4244
+ attributes: this.query
4245
+ },
4246
+ bubbles: !0,
4247
+ cancelable: !0,
4248
+ composed: !0
4249
+ });
4250
+ window.dispatchEvent(h);
4251
+ });
4240
4252
  var D;
4241
4253
  if (this.listeners = o, h = ot(h), h.widget === void 0) {
4242
4254
  const T = (D = h.topics) == null ? void 0 : D.split("-");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "2.5.13",
4
+ "version": "2.6.1",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",