mftsccs-browser 2.1.92-beta → 2.1.93-beta

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.
@@ -70,4 +70,6 @@ export declare class BaseUrl {
70
70
  static sendBulkMail(): string;
71
71
  static getWidgetData(): string;
72
72
  static getLatestWidgetData(): string;
73
+ static getConnectionsByTypes(): string;
74
+ static CreatePrototypeUrl(): string;
73
75
  }
@@ -11,6 +11,7 @@ export declare class Concept {
11
11
  entryTimeStamp: Date;
12
12
  referentId: number;
13
13
  updatedTimeStamp: Date;
14
+ referent: Concept | null | void;
14
15
  type: null | void | Concept;
15
16
  isNew: boolean;
16
17
  isComposition: boolean;
@@ -6,3 +6,8 @@ export type TMainLibrary = {
6
6
  css: TLibrary[];
7
7
  js: TLibrary[];
8
8
  };
9
+ export type TAssistant = {
10
+ id: string;
11
+ input: string;
12
+ type: string;
13
+ };
@@ -12,3 +12,10 @@ export declare function DeleteConnectionByType(id: number, linker: string): Prom
12
12
  * @returns Array of connections
13
13
  */
14
14
  export declare function GetAllTheConnectionsByTypeAndOfTheConcept(id: number, linker: string, reverse?: boolean): Promise<any>;
15
+ /**
16
+ *
17
+ * @param id
18
+ * @param linker
19
+ * @returns
20
+ */
21
+ export declare function DeleteConnectionsByTypeLocal(id: number, linkerStrings: string[]): Promise<any>;
@@ -12,11 +12,11 @@ export declare class BaseObserver {
12
12
  /**
13
13
  * This is called by any data change. So that any data change will notify all the callback functions to execute.
14
14
  */
15
- notify(): void;
15
+ notify(passedData?: any): void;
16
16
  /**
17
17
  * This function is used to register the callback into the function in case of any dataChange.
18
18
  * @param callback sets this callback to the subscribers list in the widget. So that in any change we can call this callback
19
19
  * @returns execution of the callback passed.
20
20
  */
21
- dataChange(callback: any): any;
21
+ dataChange(callback: any): void;
22
22
  }
@@ -1,8 +1,8 @@
1
1
  import { BuilderStatefulWidget, WidgetTree } from "../app";
2
2
  export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any): Promise<void>;
3
- export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<void>;
4
- export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<void>;
5
- export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any): Promise<void>;
3
+ export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
4
+ export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
5
+ export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any): Promise<BuilderStatefulWidget | undefined>;
6
6
  export declare function getWidgetFromId(widgetId: number, visitedWidgets?: number[], token?: string): Promise<WidgetTree>;
7
7
  /**
8
8
  * This function builds a widget tree. This tree is built fully along with its children
@@ -8,6 +8,12 @@ export declare class StatefulWidget extends BaseWidget {
8
8
  html: string;
9
9
  css: string;
10
10
  js: string;
11
+ state: {
12
+ [key: string]: any;
13
+ };
14
+ previousState: {
15
+ [key: string]: any;
16
+ };
11
17
  /**
12
18
  * These are the child widgets that need to be added to this widget
13
19
  */
@@ -48,6 +54,9 @@ export declare class StatefulWidget extends BaseWidget {
48
54
  * @param newState
49
55
  */
50
56
  setState(newState: any): void;
57
+ setProperty(newProperty: Object): void;
58
+ hasStateChanged(): boolean;
59
+ private isPropertyEqual;
51
60
  /**
52
61
  * If any child widgets are registered in the widget. Then without any other changes to the contents and state
53
62
  * this loadChildWidgets will be called which will help the child widgets be rendered to their respective positions.
@@ -1,4 +1,4 @@
1
- import { TMainLibrary } from "../DataStructures/TypeLibrary";
1
+ import { TAssistant, TMainLibrary } from "../DataStructures/TypeLibrary";
2
2
  import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
3
3
  export declare class WidgetTree {
4
4
  id: number;
@@ -7,6 +7,7 @@ export declare class WidgetTree {
7
7
  css: string;
8
8
  js: string;
9
9
  library: TMainLibrary;
10
+ assistant: TAssistant;
10
11
  timestamp: string;
11
12
  widgetId: number;
12
13
  type: string;
@@ -41,6 +41,7 @@ export declare class DependencyObserver {
41
41
  * This function will bind the actual data to the widget or the function.
42
42
  */
43
43
  bind(): Promise<void>;
44
+ update(): Promise<void>;
44
45
  /**
45
46
  *
46
47
  * @param callback the function that needs to be called with the data.
@@ -4,6 +4,7 @@ export declare class SearchLinkMultipleAllObservable extends DependencyObserver
4
4
  query: FreeschemaQuery;
5
5
  countInfoStrings: string[];
6
6
  order: string;
7
+ totalCount: number;
7
8
  constructor(query: FreeschemaQuery, token: string);
8
9
  bind(): Promise<any>;
9
10
  build(): Promise<any>;
@@ -124,6 +124,8 @@ export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/
124
124
  export { BuildWidgetFromId } from './Widgets/WidgetBuild';
125
125
  export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
126
126
  export { CreateData } from './Services/automated/automated-concept-connection';
127
+ export { Prototype } from './DataStructures/Prototype/Prototype';
128
+ export { createPrototypeLocal } from './prototype/prototype.service';
127
129
  type listeners = {
128
130
  listenerId: string | number;
129
131
  callback: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.1.92-beta",
3
+ "version": "2.1.93-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",