buzzcasting-storage 2.16.26 → 3.0.2

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.
@@ -72,6 +72,8 @@ export declare function camelCase(str: string): string;
72
72
  */
73
73
  export declare function camelize(str: string): string;
74
74
 
75
+ export declare const capitalizeFirstLetter: (prop: string) => string;
76
+
75
77
  /**
76
78
  * Clear Container range contents of template code when the web component is connected to the DOM
77
79
  * @param myNode
@@ -86,7 +88,7 @@ declare enum CSS_2 {
86
88
  CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;",
87
89
  GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;",
88
90
  HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;",
89
- MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;",
91
+ MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;",
90
92
  NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;",
91
93
  NONE = "color:transparent;background-color:transparent;",
92
94
  PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;",
@@ -99,6 +101,8 @@ declare enum CSS_2 {
99
101
  }
100
102
  export { CSS_2 as CSS }
101
103
 
104
+ export declare function deepMerge(objs: any): void;
105
+
102
106
  export declare enum EVENTS {
103
107
  ADD_SLIDE = "addSlide",
104
108
  APP_READY = "appReady",
@@ -140,6 +144,8 @@ export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAtt
140
144
 
141
145
  export declare function formatContent(message: IMessage, titleCss?: string): string;
142
146
 
147
+ export declare function hashSum(o: any): string | any[];
148
+
143
149
  declare interface IAttachedMedia {
144
150
  image?: string;
145
151
  background: {
@@ -293,8 +299,8 @@ export declare function intToString(num: any, digits: number): string;
293
299
  export declare interface IQuery {
294
300
  [x: string]: any;
295
301
  topics?: string;
296
- dashboard?: string;
297
- widget?: string;
302
+ dashboard: string;
303
+ widget: string;
298
304
  labels?: string[];
299
305
  compare?: string;
300
306
  period?: number;
@@ -417,12 +423,21 @@ export declare enum MODERATION {
417
423
 
418
424
  export declare function numberFormatter(num: number, digits: number): string;
419
425
 
426
+ /**
427
+ * Get a random item from an array
428
+ * @param array
429
+ * @returns
430
+ */
431
+ export declare function randomValue(array: string | any[]): number;
432
+
420
433
  export declare function rtl(message: IMessage): {
421
434
  [key: string]: string;
422
435
  };
423
436
 
424
437
  export declare function sanitize(messages: IMessage[]): IMessage[];
425
438
 
439
+ export declare function showModal(e: MouseEvent, widget: Widget, message: IMessage, options: any): void;
440
+
426
441
  export declare function shuffleMessages(messages: IMessage[]): IMessage[];
427
442
 
428
443
  export declare enum STORAGE {
@@ -433,6 +448,14 @@ export declare enum STORAGE {
433
448
  WINDOW = "window"
434
449
  }
435
450
 
451
+ /**
452
+ * Generate a unique identifier
453
+ * @returns uid
454
+ */
455
+ export declare function stringGen(): string;
456
+
457
+ export declare const upDownColor: (change: number) => "text-down text-xs" | "text-up text-xs" | "text-white text-xs";
458
+
436
459
  /**
437
460
  * Main class for managing widgets and data updates
438
461
  */