mftsccs-browser 3.2.7-beta → 3.2.10-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.
Files changed (40) hide show
  1. package/dist/main.bundle.js +26615 -1
  2. package/dist/main.bundle.js.LICENSE.txt +4 -0
  3. package/dist/main.bundle.js.map +1 -0
  4. package/dist/serviceWorker.bundle.js +27508 -1
  5. package/dist/serviceWorker.bundle.js.LICENSE.txt +4 -0
  6. package/dist/serviceWorker.bundle.js.map +1 -0
  7. package/dist/types/AccessTracker/accessTracker.d.ts +1 -0
  8. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +3 -0
  9. package/dist/types/Api/GetConnections/GetConnectionsByTypesApi.d.ts +3 -0
  10. package/dist/types/Api/Prototype/CreatePrototype.d.ts +2 -0
  11. package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
  12. package/dist/types/DataStructures/BaseUrl.d.ts +5 -0
  13. package/dist/types/DataStructures/Concept.d.ts +1 -0
  14. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  15. package/dist/types/DataStructures/ConnectionByType/GetConnectionsByType.d.ts +4 -0
  16. package/dist/types/DataStructures/Prototype/Prototype.d.ts +12 -0
  17. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +1 -0
  18. package/dist/types/DataStructures/SyncData.d.ts +0 -1
  19. package/dist/types/DataStructures/TypeLibrary.d.ts +5 -0
  20. package/dist/types/Middleware/logger.service.d.ts +11 -6
  21. package/dist/types/Services/Delete/DeleteConnectionByIdLocal.d.ts +1 -0
  22. package/dist/types/Services/DeleteConnectionByType.d.ts +7 -0
  23. package/dist/types/Services/GetTheConcept.d.ts +3 -2
  24. package/dist/types/Services/Search/DataIdFormat.d.ts +17 -17
  25. package/dist/types/Services/automated/auotmated-update.d.ts +2 -0
  26. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  27. package/dist/types/Validator/interface.d.ts +7 -6
  28. package/dist/types/Validator/validator.d.ts +7 -31
  29. package/dist/types/Widgets/BaseObserver.d.ts +3 -2
  30. package/dist/types/Widgets/BaseWidget.d.ts +4 -0
  31. package/dist/types/Widgets/RenderWidgetService.d.ts +20 -3
  32. package/dist/types/Widgets/StatefulWidget.d.ts +11 -4
  33. package/dist/types/Widgets/WidgetBuild.d.ts +1 -0
  34. package/dist/types/Widgets/WidgetTree.d.ts +2 -1
  35. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +2 -0
  36. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +1 -1
  37. package/dist/types/app.d.ts +3 -0
  38. package/dist/types/prototype/getPrototype.service.d.ts +2 -0
  39. package/dist/types/prototype/prototype.service.d.ts +9 -0
  40. package/package.json +1 -1
@@ -53,6 +53,7 @@ export declare class AccessTracker {
53
53
  static GetSuggestedConcepts(top?: number): Promise<any>;
54
54
  /**
55
55
  * Fetch suggested connections from the server with proper error handling.
56
+ * @param top number of connections to get load
56
57
  */
57
58
  static GetSuggestedConnections(top?: number): Promise<any>;
58
59
  /**
@@ -0,0 +1,3 @@
1
+ import { Connection } from "../../app";
2
+ import { GetConnectionsByTypes } from "../../DataStructures/ConnectionByType/GetConnectionByType";
3
+ export declare function GetConnectionsByApiTypes(connectionTypes: GetConnectionsByTypes): Promise<Connection[]>;
@@ -0,0 +1,3 @@
1
+ import { Connection } from "../../app";
2
+ import { GetConnectionsByTypes } from "../../DataStructures/ConnectionByType/GetConnectionsByType";
3
+ export declare function GetConnectionsByApiTypes(connectionTypes: GetConnectionsByTypes): Promise<Connection[]>;
@@ -0,0 +1,2 @@
1
+ import { Prototype } from "../../DataStructures/Prototype/Prototype";
2
+ export declare function CreatePrototypeApi(prototype: Prototype): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare const ckeditorCSS = "\n/* CKEditor content styles */\n.ck-content {\n /* Container styles */\n max-width: 100%;\n margin: 0 auto;\n font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif;\n line-height: 1.5;\n padding: 0.75rem;\n background: #fff;\n color: #333;\n border: 1px solid #ccced1;\n}\n\n/* Headings */\n.ck-content h1, .ck-content h2, .ck-content h3, \n.ck-content h4, .ck-content h5, .ck-content h6 {\n font-weight: 700;\n line-height: 1.2;\n margin: 1em 0 0.5em;\n}\n\n.ck-content h1 { font-size: 2.5em; }\n.ck-content h2 { font-size: 2em; }\n.ck-content h3 { font-size: 1.75em; }\n.ck-content h4 { font-size: 1.5em; }\n.ck-content h5 { font-size: 1.25em; }\n.ck-content h6 { font-size: 1em; }\n\n/* Paragraphs and spacing */\n.ck-content p {\n margin: 1em 0;\n line-height: 1.6;\n}\n\n/* Links */\n.ck-content a {\n color: #1a73e8;\n text-decoration: none;\n}\n\n.ck-content a:hover {\n text-decoration: underline;\n}\n\n/* Lists */\n.ck-content ul,\n.ck-content ol {\n padding-left: 2em;\n margin: 1em 0;\n}\n\n.ck-content ul {\n list-style: disc;\n}\n\n.ck-content ol {\n list-style: decimal;\n}\n\n.ck-content li {\n margin: 0.5em 0;\n}\n\n/* Blockquotes */\n.ck-content blockquote {\n margin: 1em 0;\n padding-left: 1em;\n border-left: 5px solid #ccc;\n font-style: italic;\n color: #666;\n}\n\n/* Code blocks */\n.ck-content pre {\n background: #f5f5f5;\n border: 1px solid #ddd;\n border-radius: 4px;\n padding: 1em;\n margin: 1em 0;\n overflow-x: auto;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n}\n\n.ck-content code {\n background: #f5f5f5;\n padding: 0.2em 0.4em;\n border-radius: 3px;\n font-size: 0.9em;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n}\n\n/* Tables */\n.ck-content table {\n border-collapse: collapse;\n width: 100%;\n margin: 1em 0;\n}\n\n.ck-content table th,\n.ck-content table td {\n border: 1px solid #ddd;\n padding: 0.75em;\n text-align: left;\n}\n\n.ck-content table th {\n background: #f5f5f5;\n font-weight: bold;\n}\n\n/* Images */\n.ck-content img {\n max-width: 100%;\n height: auto;\n margin: 1em 0;\n}\n\n.ck-content figure {\n margin: 1em 0;\n text-align: center;\n}\n\n.ck-content figure img {\n margin: 0;\n}\n\n.ck-content figcaption {\n color: #666;\n font-size: 0.9em;\n margin-top: 0.5em;\n}\n\n/* Dark mode */\n/*\n@media (prefers-color-scheme: dark) {\n .ck-content {\n background: #1a1a1a;\n color: #e0e0e0;\n }\n\n .ck-content a {\n color: #64b5f6;\n }\n\n .ck-content blockquote {\n border-left-color: #404040;\n color: #b0b0b0;\n }\n\n .ck-content pre,\n .ck-content code {\n background: #2d2d2d;\n border-color: #404040;\n }\n\n .ck-content table th,\n .ck-content table td {\n border-color: #404040;\n }\n\n .ck-content table th {\n background: #2d2d2d;\n }\n\n .ck-content figcaption {\n color: #b0b0b0;\n }\n}\n*/\n";
@@ -1,5 +1,6 @@
1
1
  export declare class BaseUrl {
2
2
  static BASE_URL: string;
3
+ static NODE_CACHE_URL: string;
3
4
  static AI_URL: string;
4
5
  static MQTT_URL: string;
5
6
  static NODE_URL: string;
@@ -26,6 +27,7 @@ export declare class BaseUrl {
26
27
  static GetAllConceptsByTypeUrl(): string;
27
28
  static GetAllConnectionsOfConceptUrl(): string;
28
29
  static GetAllAiData(): string;
30
+ static getMyCacheServer(): string;
29
31
  static PostPrefetchConceptConnections(): string;
30
32
  static GetSuggestedConcepts(): string;
31
33
  static GetSuggestedConnections(): string;
@@ -67,4 +69,7 @@ export declare class BaseUrl {
67
69
  static sendMail(): string;
68
70
  static sendBulkMail(): string;
69
71
  static getWidgetData(): string;
72
+ static getLatestWidgetData(): string;
73
+ static getConnectionsByTypes(): string;
74
+ static CreatePrototypeUrl(): string;
70
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;
@@ -0,0 +1,4 @@
1
+ export declare class GetConnectionsByTypes {
2
+ ofTheConceptId: number;
3
+ connectionTypes: string[];
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare class GetConnectionsByTypes {
2
+ ofTheConceptId: number;
3
+ connectionTypes: string[];
4
+ }
@@ -0,0 +1,12 @@
1
+ import { Concept } from "../Concept";
2
+ import { Connection } from "../Connection";
3
+ export declare class Prototype {
4
+ prototype: string;
5
+ required: string[];
6
+ optional: string[];
7
+ concepts: Concept[];
8
+ connections: Connection[];
9
+ addedConcepts: Concept[];
10
+ addedConnections: Connection[];
11
+ childPrototypes: Prototype[];
12
+ }
@@ -16,6 +16,7 @@ export declare class FreeschemaQuery {
16
16
  name: string;
17
17
  reverse: boolean;
18
18
  limit: boolean;
19
+ isSecure: boolean;
19
20
  includeInFilter: boolean;
20
21
  isOldConnectionType: boolean;
21
22
  }
@@ -11,5 +11,4 @@ export declare class SyncData {
11
11
  static AddConnection(connection: Connection): void;
12
12
  static RemoveConnection(connection: Connection): void;
13
13
  static SyncDataOnline(): Promise<any>;
14
- static syncDataLocalDb(): Promise<string>;
15
14
  }
@@ -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
+ };
@@ -30,16 +30,16 @@ export declare class Logger {
30
30
  /**
31
31
  * Logs a message with optional additional structured data.
32
32
  */
33
- static formatLogData(level: string, message: string, data?: LogData): void;
33
+ static formatLogData(level: string, message: string, data?: LogData): any;
34
34
  static log(level: 'INFO' | 'ERROR' | 'DEBUG' | 'WARNING', message: string, data?: any | null): void;
35
35
  /**
36
36
  * Updates log data with execution details.
37
37
  * @param logData The log data object to be updated.
38
38
  */
39
- static logUpdate(logData: LogData): void;
40
- static logfunction(myFunction: string, ...args: any[]): void;
39
+ static logUpdate(logData: LogData): {} | undefined;
40
+ static logfunction(myFunction: string, ...args: any[]): any;
41
41
  static logError(startTime: number, userId: string | number, operationType?: "read" | "create" | "update" | "delete" | "search", requestFrom?: string, requestIP?: string, responseStatus?: number, responseData?: any, functionName?: string, functionParameters?: any[], userAgent?: string, conceptsUsed?: string[]): void;
42
- static logApplication(type: string, message: string, data?: any): void;
42
+ static logApplication(level: string, message: string, data?: any): void;
43
43
  /**
44
44
  * Helper method to send logs to the server.
45
45
  */
@@ -112,7 +112,7 @@ export interface LogData {
112
112
  /**
113
113
  * The parameters used in the function.
114
114
  * This should include all inputs to the function.
115
- * @example [ "userId", "includeMetadata" ]
115
+ * @example [ "userId", "concept" ]
116
116
  */
117
117
  functionParameters?: any[];
118
118
  /**
@@ -123,9 +123,14 @@ export interface LogData {
123
123
  userAgent?: string;
124
124
  /**
125
125
  * A list of concepts (features or modules) used during the function execution.
126
- * @example [ "Authentication", "Data Retrieval" ]
126
+ * @example [105292435 , 105292431 ]
127
127
  */
128
128
  conceptsUsed?: string[];
129
+ /**
130
+ * Service worker
131
+ * @example boolean
132
+ */
133
+ serviceWorker?: boolean;
129
134
  }
130
135
  /**
131
136
  *
@@ -0,0 +1 @@
1
+ export declare function DeleteConnectionByIdLocal(toDeleteIds: number[]): void;
@@ -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>;
@@ -1,7 +1,8 @@
1
+ import { Concept } from "../DataStructures/Concept";
1
2
  /**
2
- *
3
+ * Get The Concept From Concept Id
3
4
  * @param id this is the id that can be used to get the concept.
4
5
  * @param userId This is the user that calls the concept
5
6
  * @returns Concept if it exists
6
7
  */
7
- export default function GetTheConcept(id: number, userId?: number): Promise<any>;
8
+ export default function GetTheConcept(id: number, userId?: number): Promise<Concept>;
@@ -1,24 +1,24 @@
1
1
  import { Connection } from "../../app";
2
2
  /**
3
- * ## Format DATA-ID ##
4
- * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
- * This is then passed on further for stiching.
6
- * @param connections
7
- * @param compositionData
8
- * @param reverse
9
- * @returns
10
- */
3
+ * ## Format DATA-ID ##
4
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
+ * This is then passed on further for stiching.
6
+ * @param connections
7
+ * @param compositionData
8
+ * @param reverse
9
+ * @returns
10
+ */
11
11
  export declare function FormatFunctionDataForData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
12
12
  /**
13
- * ############ Format is data-id and is used for list. ############
14
- * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
- * The list format is helpful because you do not have to go over each individual query.
16
- * @param connections the type connections that need (external connections) to be passed
17
- * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
- * @param mainComposition this is list of ids of the main composition that builds the tree
19
- * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
- * @returns
21
- */
13
+ * ############ Format is data-id and is used for list. ############
14
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
+ * The list format is helpful because you do not have to go over each individual query.
16
+ * @param connections the type connections that need (external connections) to be passed
17
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
+ * @param mainComposition this is list of ids of the main composition that builds the tree
19
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
+ * @returns
21
+ */
22
22
  export declare function FormatFromConnectionsAlteredArrayExternal(connections: Connection[], compositionData: any[], newCompositionData: any, mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
23
23
  /**
24
24
  * ## Format DATA-ID ##
@@ -0,0 +1,2 @@
1
+ import { Concept } from "../../app";
2
+ export declare function UpdateData(json: any, ofConcept: Concept, typeStrings?: string[]): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import { Concept, InnerActions } from "../../app";
2
+ export declare function CreateData(json: any, ofConcept?: Concept | null, typeConcept?: string, actions?: InnerActions): Promise<any>;
3
+ export declare function removePrefix(key: string): string;
4
+ export declare function addPrefix(key: string): string;
5
+ export declare function addArrayPrefix(key: string): string;
6
+ export declare function removeArrayPrefix(key: string): string;
7
+ export declare function createTypeString(typeConceptString: string, key: any): string;
@@ -2,17 +2,18 @@ export interface FormErrors {
2
2
  [key: string]: {} | undefined;
3
3
  }
4
4
  export interface FormFieldData {
5
+ name: string | null;
5
6
  value: string | null;
6
- fieldType: string | null;
7
- dataType: string | null;
8
- pattern: string | null;
9
- conceptType: string | null;
7
+ type?: string | null;
8
+ dataType?: string | null;
9
+ pattern?: string | null;
10
+ conceptType?: string | null;
10
11
  maxLength?: number | null;
11
12
  minLength?: number | null;
12
13
  minValue?: number | null;
13
14
  maxValue?: number | null;
14
15
  accept?: string | null;
15
16
  file?: File | null;
16
- required: boolean;
17
- isUnique: boolean;
17
+ required?: boolean;
18
+ isUnique?: boolean;
18
19
  }
@@ -8,22 +8,11 @@ export declare class Validator {
8
8
  */
9
9
  checkUniqueness(type: string, value: string): Promise<boolean>;
10
10
  /**
11
- * Validates a single form field based on its data type, constraints, and uniqueness.
12
- * @param fieldName - The name of the field being validated (e.g., "email", "phone").
13
- * @param dataType - The expected data type for the field (e.g., "text", "number").
14
- * @param value - The value of the field to validate.
15
- * @param conceptType - The concept type used for uniqueness check.
16
- * @param maxLength - The maximum allowed length for the field value.
17
- * @param minLength - The minimum allowed length for the field value.
18
- * @param minValue - The minimum allowed value for the field (for numeric fields).
19
- * @param maxValue - The maximum allowed value for the field (for numeric fields).
20
- * @param accept - The 'accept' attribute value for file inputs.
21
- * @param file - The file input (if any), used for file type validation.
22
- * @param required - Whether the field is required.
23
- * @param isUnique - Whether the field value should be unique.
24
- * @returns An object of error messages if validation fails
11
+ * Validates a single form field based on its constraints and uniqueness.
12
+ * @param options - An object containing field properties including name, value, type, and validation constraints.
13
+ * @returns An object containing validation errors if validation fails.
25
14
  */
26
- validateField(fieldName: string, fieldType: string | null, dataType: string | null, value: string | null, pattern: string | null, conceptType: string | null, maxLength: number | null, minLength: number | null, minValue: number | null, maxValue: number | null, accept: string | null, file: File | null, required: boolean, isUnique?: boolean): Promise<{
15
+ validateField(options: FormFieldData): Promise<{
27
16
  [fieldName: string]: string;
28
17
  }>;
29
18
  /**
@@ -40,22 +29,9 @@ export declare class Validator {
40
29
  [key: string]: FormFieldData;
41
30
  }): Promise<FormErrors>;
42
31
  /**
43
- *
44
- * @param fieldName
45
- * @param fieldType
46
- * @param dataType
47
- * @param value
48
- * @param pattern
49
- * @param conceptType
50
- * @param maxLength
51
- * @param minLength
52
- * @param minValue
53
- * @param maxValue
54
- * @param accept
55
- * @param file
56
- * @param required
57
- * @param isUnique
32
+ * Take field element attributes
33
+ * @param options Object conist of attributes
58
34
  * @returns Object with status and details
59
35
  */
60
- validate(fieldName: string, fieldType: string | null, dataType: string | null, value: string | null, pattern: string | null, conceptType: string | null, maxLength: number | null, minLength: number | null, minValue: number | null, maxValue: number | null, accept: string | null, file: File | null, required: boolean, isUnique?: boolean): any;
36
+ validate(options: FormFieldData): any;
61
37
  }
@@ -3,6 +3,7 @@ export declare class BaseObserver {
3
3
  * This is where the data of the widget needs to be stored.
4
4
  */
5
5
  data: any;
6
+ inDevelopment: boolean;
6
7
  /**
7
8
  * This is the subscribers of the data. If any thing on this widget changes then all the functions
8
9
  * in the subscribers are called.
@@ -11,11 +12,11 @@ export declare class BaseObserver {
11
12
  /**
12
13
  * This is called by any data change. So that any data change will notify all the callback functions to execute.
13
14
  */
14
- notify(): void;
15
+ notify(passedData?: any): void;
15
16
  /**
16
17
  * This function is used to register the callback into the function in case of any dataChange.
17
18
  * @param callback sets this callback to the subscribers list in the widget. So that in any change we can call this callback
18
19
  * @returns execution of the callback passed.
19
20
  */
20
- dataChange(callback: any): any;
21
+ dataChange(callback: any): void;
21
22
  }
@@ -1,5 +1,9 @@
1
1
  import { BaseObserver } from "./BaseObserver";
2
2
  export declare class BaseWidget extends BaseObserver {
3
+ /**
4
+ * This is the element that is a copy of the element that is mounted.
5
+ */
6
+ element: HTMLElement | null;
3
7
  /**
4
8
  * This is a random identifier to the widget that is used to identify the widget and other elements
5
9
  * inside of it.
@@ -1,7 +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>;
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>;
5
6
  export declare function getWidgetFromId(widgetId: number, visitedWidgets?: number[], token?: string): Promise<WidgetTree>;
6
7
  /**
7
8
  * This function builds a widget tree. This tree is built fully along with its children
@@ -26,5 +27,21 @@ export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElemen
26
27
  * @returns the widgetree with widgets attached inside of it.
27
28
  * Also this will add the tree to the dom.
28
29
  */
29
- export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object): Promise<BuilderStatefulWidget>;
30
+ export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean): Promise<BuilderStatefulWidget>;
30
31
  export declare function unwrapContainers(parentElement: HTMLElement, selector: string): Promise<void>;
32
+ /**
33
+ * Opens documentation modal
34
+ * @param widgetId
35
+ */
36
+ export declare function openDocumentationPreviewModal(widgetId: number): Promise<void>;
37
+ export declare function showWidgetDocumentation(widgetDocumentData: string): void;
38
+ /**
39
+ * Opens modal
40
+ * @param modalId
41
+ */
42
+ export declare function openModal(modalId: string): Promise<void>;
43
+ /**
44
+ * Closes modal
45
+ * @param modalId
46
+ */
47
+ export declare function closeModal(modalId: string): Promise<void>;
@@ -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
  */
@@ -23,10 +29,8 @@ export declare class StatefulWidget extends BaseWidget {
23
29
  * This is the id of the parentElement of this widget.
24
30
  */
25
31
  parentElement: string;
26
- /**
27
- * This is the element that is a copy of the element that is mounted.
28
- */
29
- element: HTMLElement | null;
32
+ querySelector(selector: string): Element | null;
33
+ querySelectorAll(selector: string): NodeListOf<Element> | null;
30
34
  getElement(): HTMLElement | null;
31
35
  setTitle(title: string): void;
32
36
  /**
@@ -50,6 +54,9 @@ export declare class StatefulWidget extends BaseWidget {
50
54
  * @param newState
51
55
  */
52
56
  setState(newState: any): void;
57
+ setProperty(newProperty: Object): void;
58
+ hasStateChanged(): boolean;
59
+ private isPropertyEqual;
53
60
  /**
54
61
  * If any child widgets are registered in the widget. Then without any other changes to the contents and state
55
62
  * this loadChildWidgets will be called which will help the child widgets be rendered to their respective positions.
@@ -1,2 +1,3 @@
1
1
  export declare function BuildWidgetFromId(id: number): Promise<any>;
2
+ export declare function BuildWidgetFromIdForLatest(id: number): Promise<any>;
2
3
  export declare function GetWidgetForTree(data: any, id: number): any;
@@ -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;
@@ -11,6 +11,7 @@ export declare class DependencyObserver {
11
11
  internalConnections: number[];
12
12
  reverse: number[];
13
13
  linkers: number[];
14
+ newIds: number[];
14
15
  dependency: number[];
15
16
  isDataLoaded: boolean;
16
17
  isUpdating: boolean;
@@ -41,6 +42,7 @@ export declare class DependencyObserver {
41
42
  * This function will bind the actual data to the widget or the function.
42
43
  */
43
44
  bind(): Promise<void>;
45
+ update(): Promise<void>;
44
46
  /**
45
47
  *
46
48
  * @param callback the function that needs to be called with the data.
@@ -1,10 +1,10 @@
1
1
  import { FreeschemaQuery } from "../app";
2
2
  import { DependencyObserver } from "./DepenedencyObserver";
3
3
  export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
4
- mainCompositionIds: number[];
5
4
  query: FreeschemaQuery;
6
5
  countInfoStrings: string[];
7
6
  order: string;
7
+ totalCount: number;
8
8
  constructor(query: FreeschemaQuery, token: string);
9
9
  bind(): Promise<any>;
10
10
  build(): Promise<any>;
@@ -123,6 +123,9 @@ export { AccessTracker } from './AccessTracker/accessTracker';
123
123
  export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/CreateConnectionEntity';
124
124
  export { BuildWidgetFromId } from './Widgets/WidgetBuild';
125
125
  export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
126
+ export { CreateData } from './Services/automated/automated-concept-connection';
127
+ export { Prototype } from './DataStructures/Prototype/Prototype';
128
+ export { createPrototypeLocal } from './prototype/prototype.service';
126
129
  type listeners = {
127
130
  listenerId: string | number;
128
131
  callback: any;
@@ -0,0 +1,2 @@
1
+ import { Prototype } from "../DataStructures/Prototype/Prototype";
2
+ export declare function CreatePrototype(prototype: Prototype): Promise<any>;
@@ -0,0 +1,9 @@
1
+ import { Concept, Connection } from "../app";
2
+ import { Prototype } from "../DataStructures/Prototype/Prototype";
3
+ export declare function createPrototypeLocal(prototype: Prototype): Promise<{
4
+ concepts: Concept[];
5
+ connections: Connection[];
6
+ }>;
7
+ export declare function addPrototype(type: string): Promise<any>;
8
+ export declare function CreatePrototypeConcept(prototypeConcept: Concept, typeConcept: Concept, userId: number): Promise<any>;
9
+ export declare function AddPrototypeConnections(types: string[], prototype: Concept, allConcepts: Concept[], required?: boolean): Promise<Connection[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "3.2.7-beta",
3
+ "version": "3.2.10-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",