mftsccs-node 0.2.6 → 0.2.7

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 (109) hide show
  1. package/dist/bundle.js +1 -1
  2. package/package.json +1 -1
  3. package/dist/main.bundle.js +0 -2
  4. package/dist/main.bundle.js.LICENSE.txt +0 -1
  5. package/dist/serviceWorker.bundle.js +0 -2
  6. package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
  7. package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
  8. package/dist/types/Anomaly/anomaly.d.ts +0 -103
  9. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -3
  10. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -2
  11. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -1
  12. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -1
  13. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -3
  14. package/dist/types/Api/Images/GetImages.d.ts +0 -1
  15. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -2
  16. package/dist/types/Api/Prototype/CreatePrototype.d.ts +0 -2
  17. package/dist/types/Api/Prototype/Selector.d.ts +0 -15
  18. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -2
  19. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -2
  20. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -2
  21. package/dist/types/Constants/AccessConstants.d.ts +0 -3
  22. package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
  23. package/dist/types/Constants/general.const.d.ts +0 -6
  24. package/dist/types/Constants/page.const.d.ts +0 -5
  25. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
  26. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
  27. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
  28. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
  29. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
  30. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
  31. package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
  32. package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
  33. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
  34. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
  35. package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
  36. package/dist/types/DataStructures/TypeNode.d.ts +0 -18
  37. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
  38. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
  39. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
  40. package/dist/types/Database/IndexUpdate.d.ts +0 -47
  41. package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
  42. package/dist/types/Middleware/ErrorHandling.d.ts +0 -0
  43. package/dist/types/Middleware/logger.service.d.ts +0 -144
  44. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
  45. package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
  46. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
  47. package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
  48. package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
  49. package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
  50. package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
  51. package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
  52. package/dist/types/ServiceWorker/index.d.ts +0 -11
  53. package/dist/types/Services/AccessControl/AccessControl.d.ts +0 -218
  54. package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
  55. package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
  56. package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
  57. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
  58. package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
  59. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
  60. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -2
  61. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -2
  62. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -3
  63. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -1
  64. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -2
  65. package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -1
  66. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -9
  67. package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
  68. package/dist/types/Services/Mail.d.ts +0 -18
  69. package/dist/types/Services/Search/NewFormat.d.ts +0 -4
  70. package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -45
  71. package/dist/types/Services/Upload.d.ts +0 -33
  72. package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -6
  73. package/dist/types/Services/assets/GetImageService.d.ts +0 -14
  74. package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
  75. package/dist/types/Services/cacheService.d.ts +0 -1
  76. package/dist/types/Validator/constant.d.ts +0 -3
  77. package/dist/types/Validator/interface.d.ts +0 -19
  78. package/dist/types/Validator/utils.d.ts +0 -7
  79. package/dist/types/Validator/validator.d.ts +0 -37
  80. package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
  81. package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
  82. package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
  83. package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
  84. package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
  85. package/dist/types/Visualize/helper.d.ts +0 -15
  86. package/dist/types/Visualize/index.d.ts +0 -0
  87. package/dist/types/Widgets/BaseObserver.d.ts +0 -22
  88. package/dist/types/Widgets/BaseWidget.d.ts +0 -24
  89. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -2
  90. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -42
  91. package/dist/types/Widgets/CacheWidget.service.d.ts +0 -17
  92. package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -1
  93. package/dist/types/Widgets/RenderPage.service.d.ts +0 -12
  94. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -14
  95. package/dist/types/Widgets/RenderWidgetService.d.ts +0 -50
  96. package/dist/types/Widgets/StatefulWidget.d.ts +0 -102
  97. package/dist/types/Widgets/WidgetBuild.d.ts +0 -4
  98. package/dist/types/Widgets/WidgetTree.d.ts +0 -29
  99. package/dist/types/Widgets/mainView.class.d.ts +0 -6
  100. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -73
  101. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -19
  102. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -13
  103. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -28
  104. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -32
  105. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -37
  106. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -15
  107. package/dist/types/prototype/getPrototype.service.d.ts +0 -2
  108. package/dist/types/prototype/prototype.service.d.ts +0 -25
  109. package/dist/types/service-worker.d.ts +0 -1
@@ -1 +0,0 @@
1
- /*! https://mths.be/cssesc v3.0.0 by @mathias */
@@ -1,67 +0,0 @@
1
- export declare class AccessTracker {
2
- private static conceptsData;
3
- private static connectionsData;
4
- private static readonly SYNC_INTERVAL_MS;
5
- private static nextSyncTime;
6
- static activateStatus: boolean;
7
- private static readonly accessData;
8
- /**
9
- * Increments the count for a specific conceptId.
10
- */
11
- static incrementConcept(conceptId: number): void;
12
- /**
13
- * Increments the count for a specific connectionId.
14
- */
15
- static incrementConnection(connectionId: number): void;
16
- /**
17
- * Retrieves the top N concepts by their counts.
18
- */
19
- static getTopConcepts(n: number): [number, number][];
20
- /**
21
- * Retrieves the top N connections by their counts.
22
- */
23
- static getTopConnections(n: number): [number, number][];
24
- /**
25
- * Saves the concept and connection data to localStorage.
26
- */
27
- static saveDataToLocalStorage(): void;
28
- /**
29
- * Loads the concept and connection data from localStorage.
30
- */
31
- static loadDataFromLocalStorage(): void;
32
- static sendToServer(): Promise<void>;
33
- /**
34
- * Syncs the concept and connection data with the server.
35
- */
36
- private static syncToServer;
37
- /**
38
- * Sets the next sync time based on the current time and sync interval.
39
- */
40
- private static setNextSyncTime;
41
- /**
42
- * Starts auto-syncing to the server every specified time interval.
43
- * This will automatically call `syncToServer` every 5 minutes
44
- */
45
- private static startAutoSync;
46
- /**
47
- * Sync immediately called by setInterval when time to sync has arrived.
48
- */
49
- private static syncNow;
50
- /**
51
- * Fetch suggested concepts from the server with proper error handling.
52
- */
53
- static GetSuggestedConcepts(top?: number): Promise<any>;
54
- /**
55
- * Fetch suggested connections from the server with proper error handling.
56
- * @param top number of connections to get load
57
- */
58
- static GetSuggestedConnections(top?: number): Promise<any>;
59
- /**
60
- * Add Concepts to Binary Tree
61
- */
62
- private static addConceptToBinaryTree;
63
- /**
64
- * Add Concepts to Binary Tree
65
- */
66
- private static addConnectionToBinaryTree;
67
- }
@@ -1,103 +0,0 @@
1
- import { FormFieldData } from "../Validator/interface";
2
- /**
3
- * Class representing the Anomaly detection logic for checking data validity based on predefined rules.
4
- * This class contains methods for initializing, caching, and fetching anomaly parameters from an external API,
5
- * as well as checking for anomalies in individual concepts and bulk data.
6
- */
7
- export declare class Anomaly {
8
- /**
9
- * Static cache for storing fetched anomaly parameters.
10
- * @type {any} - Stores the fetched anomaly parameters from the API.
11
- */
12
- private static anomalyParamsCache;
13
- /**
14
- * Flag indicating if the anomaly parameters cache has been initialized.
15
- * @type {boolean} - `true` if the cache is initialized, `false` otherwise.
16
- */
17
- private static cacheInitialized;
18
- /**
19
- * Timestamp indicating the last time the anomaly parameters were fetched.
20
- * @type {number} - Time in milliseconds.
21
- */
22
- private static lastFetchedTime;
23
- /**
24
- * Cache expiry threshold, after which the data will be considered expired.
25
- * @type {number} - Cache expiry threshold in milliseconds (default is 10 minutes).
26
- */
27
- private static cacheExpiryThreshold;
28
- /**
29
- * Constructor that initializes anomaly parameters if the cache is not yet initialized.
30
- * It ensures that the anomaly parameters are loaded and cached for use.
31
- */
32
- constructor();
33
- /**
34
- * Initializes the anomaly parameters by fetching them from the API.
35
- * This method is only run once on startup to ensure the cache is ready for use.
36
- * It will fetch the parameters from the API and store them in a static cache.
37
- *
38
- * @returns {Promise<void>} - A promise that resolves once the parameters have been initialized.
39
- */
40
- private static initializeAnomalyParameters;
41
- /**
42
- * Fetches the anomaly parameters.
43
- * It first checks if the parameters are cached and whether the cache is still valid (not expired).
44
- * If the cache is valid, it returns the cached data. If not, it fetches the data from the API.
45
- *
46
- * @returns {Promise<any>} - A promise that resolves to the anomaly parameters.
47
- */
48
- static getAnomalyParameters(): Promise<any>;
49
- /**
50
- * Fetches anomaly parameters directly from the backend API.
51
- * This method is used internally by `getAnomalyParameters` to retrieve fresh data.
52
- *
53
- * @returns {Promise<any>} - A promise that resolves to the fetched anomaly parameters.
54
- */
55
- private static fetchAnomalyParameters;
56
- /**
57
- * Refreshes the anomaly parameters cache if the cache has expired.
58
- * If the cache expiry threshold has been surpassed, the method re-fetches the data from the API.
59
- *
60
- * @returns {Promise<void>} - A promise that resolves when the cache has been refreshed.
61
- */
62
- private static refreshCache;
63
- /**
64
- * Detects the data type of a given value based on predefined rules.
65
- * It checks the value against the `DATA_TYPES_RULES` to find the matching data type.
66
- *
67
- * @param {string} value - The value to check.
68
- * @returns {string | null} - The detected data type, or `null` if no match is found.
69
- */
70
- detectDataType(value: string): string | null;
71
- /**
72
- * Checks whether a given concept and value pair contains an anomaly.
73
- * An anomaly is detected based on the concept's length and type rules.
74
- *
75
- * @param {string} typeConcept - The concept type (e.g., `the_name`).
76
- * @param {string} value - The value to check for anomalies.
77
- * @returns {Promise<{ valid: boolean, warnings: string[] }>} - A promise that resolves to an object containing:
78
- * - `valid`: A boolean indicating whether the value is valid according to the anomaly rules.
79
- * - `warnings`: An array of warning messages related to the value's anomalies.
80
- */
81
- checkConceptAnomaly(typeConcept: string, value: string | null): Promise<{
82
- valid: boolean;
83
- warnings: string[];
84
- }>;
85
- /**
86
- * Checks anomalies for multiple concepts in bulk.
87
- * Iterates over a record of concept-value pairs and detects anomalies.
88
- *
89
- * @param {Record<string, string>} instanceData - An object where each key is a concept type and each value is the corresponding data value.
90
- * @returns {Promise<Record<string, { valid: boolean, warnings: string[] }>>} - A promise that resolves to an object where each key is a concept type
91
- * and the value is an object containing `valid` (boolean) and `warnings` (array of warning messages).
92
- */
93
- static checkAnomalyInBulk(formData: Record<string, FormFieldData>): Promise<Record<string, {
94
- valid: boolean;
95
- warnings: string[];
96
- }>>;
97
- /**
98
- * List all the exported functions of the package
99
- * @returns Keys of the Object which has exported functions
100
- */
101
- static getExportedFunction(): string[];
102
- private static getFunctionaAnomalyParameters;
103
- }
@@ -1,3 +0,0 @@
1
- import { Concept } from "../../DataStructures/Concept";
2
- import { Connection } from "../../app";
3
- export declare function CreateTheGhostConceptApi(conceptData: Concept[], connectionData: Connection[], withAuth?: boolean): Promise<any>;
@@ -1,2 +0,0 @@
1
- import { Connection } from "../../app";
2
- export declare function CreateTheGhostConnectionApi(connectionData: Connection[]): Promise<Connection[] | undefined>;
@@ -1 +0,0 @@
1
- export declare function DeleteUserInBackend(id: number): Promise<number | undefined>;
@@ -1 +0,0 @@
1
- export default function DeleteTheConnectionBulkApi(ids: number[]): Promise<boolean>;
@@ -1,3 +0,0 @@
1
- import { Connection } from "../../app";
2
- import { GetConnectionsByTypes } from "../../DataStructures/ConnectionByType/GetConnectionByType";
3
- export declare function GetConnectionsByApiTypes(connectionTypes: GetConnectionsByTypes): Promise<Connection[]>;
@@ -1 +0,0 @@
1
- export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array> | null | undefined>;
@@ -1,2 +0,0 @@
1
- import { Concept } from "../../DataStructures/Concept";
2
- export declare function GetLocalConceptByCharacterValue(characterValue: string): Promise<Concept>;
@@ -1,2 +0,0 @@
1
- import { Prototype } from "../../DataStructures/Prototype/Prototype";
2
- export declare function CreatePrototypeApi(prototype: Prototype): Promise<any>;
@@ -1,15 +0,0 @@
1
- import { StatefulWidget } from "../../app";
2
- export declare class Selector extends StatefulWidget {
3
- selector: string;
4
- mainType: string;
5
- mainDetails: any;
6
- filterType: string;
7
- query: any;
8
- inpage: number;
9
- parentDomElement: HTMLElement;
10
- constructor(mainType: string, selector: string, parentElement: HTMLElement, filterType?: string, inpage?: number);
11
- before_render(): void;
12
- addFilter(value: string): void;
13
- after_render(): void;
14
- getHtml(): string;
15
- }
@@ -1,2 +0,0 @@
1
- import { SearchQuery, SearchStructure } from "../../app";
2
- export declare function SearchWithTypeAndLinkerApi(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
@@ -1,2 +0,0 @@
1
- import { Concept } from "../../app";
2
- export declare function GetTypeConceptByBulk(characters: string[]): Promise<Concept[]>;
@@ -1,2 +0,0 @@
1
- import { Concept } from "../../app";
2
- export declare function TranslateLocalToReal(conceptId: number): Promise<Concept>;
@@ -1,3 +0,0 @@
1
- export declare const ADMIN = 3;
2
- export declare const PRIVATE = 4;
3
- export declare const PUBLIC = 5;
@@ -1 +0,0 @@
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\n/* CUSTOM DOCUMENTATION CSS */\n\n#documentation-preview {\n border: 1px solid #ccc;\n padding: 1rem;\n}\n\n#documentation-preview h3 {\n font-size: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.pre-wrapper {\n background: #f2f5f9;\n border: 1px solid #cecece;\n display: block;\n padding: 1rem;\n border-radius: 0.25rem;\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.pre-wrapper pre {\n margin: 0;\n color: #e87aa2;\n}\n\n.widget-doc-section pre {\n background-color: transparent;\n}\n\n.widget-doc-section p {\n margin: 0;\n}\n\n.widget-doc-section code {\n color: #e87aa2;\n font-size: 0.875rem;\n}\n\n.mv-3 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.pv-3 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n .widget-documentation-heading {\n background-color: #6e757d;\n color: #eee;\n font-size: 1.5rem;\n padding: 0.5rem 1rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .widget-documentation-heading h4 {\n margin-bottom: 0;\n }\n\n .close-documentation-button {\n border: none;\n outline: none;\n background-color: transparent;\n line-height: 0;\n margin: 0;\n padding: 0;\n cursor: pointer;\n }\n\n .close-documentation-button:hover,\n .close-documentation-button:focus {\n background-color: transparent;\n }\n\n .documentation-creator {\n text-align: right;\n color: #666;\n margin: 0;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .documentation-creator span {\n font-style: italic;\n }\n\n .documentation-attachments {\n display: flex;\n flex-wrap: wrap;\n }\n\n .documentation-attachments img {\n width: 25%;\n height: auto;\n border: 1px solid #ccc;\n padding: 0.25rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n }\n\n .documentation-attachments iframe {\n width: 50%;\n border: 1px solid #ccc;\n padding: 0.25rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n }\n\n .widget-documentation-footer {\n text-align: right;\n margin-top: 1rem;\n }\n\n .widget-documentation-footer button {\n border-radius: 0;\n border: none;\n padding: 0.5rem 1.5rem;\n text-align: center;\n background: #6e757d;\n color: #eee;\n }\n\n #widget-details {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 9999;\n }\n\n #widget-details button {\n background: #fff;\n border: 1px solid #ccc;\n border-radius: 0 0 0 0.25rem;\n height: auto;\n width: auto;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n }\n\n #widget-details button:hover, \n #widget-details button:focus {\n opacity: 0.75;\n }\n\n #widget-details button span {\n pointer-events: none;\n font-size: 1rem;\n }\n\n #widget-details button svg {\n pointer-events: none;\n width: 16px;\n height: 16px;\n fill: #999;\n }\n\n #widget-documentation-preview-modal {\n border: none;\n }\n\n @media (min-width: 768px) {\n #widget-documentation-preview-modal {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n }\n\n";
@@ -1,6 +0,0 @@
1
- import { Concept, Connection } from "../app";
2
- export declare const broadcastChannel: BroadcastChannel;
3
- export interface InnerActions {
4
- concepts: Concept[];
5
- connections: Connection[];
6
- }
@@ -1,5 +0,0 @@
1
- export declare const COMPOSITIONS: {
2
- PAGE_COMP_NAME: string;
3
- WIDGET_COMP_NAME: string;
4
- PROJECT_COMP_NAME: string;
5
- };
@@ -1,10 +0,0 @@
1
- import { NodePrimitive } from "./NodePrimitive";
2
- export declare class ConnectionOfNode extends NodePrimitive {
3
- key: string;
4
- value: number[];
5
- height: number;
6
- leftNode: ConnectionOfNode | null;
7
- rightNode: ConnectionOfNode | null;
8
- constructor(key: any, value: number[], leftNode: ConnectionOfNode | null, rightNode: ConnectionOfNode | null);
9
- addNode(passedNode: ConnectionOfNode, node: ConnectionOfNode | null, height: number): any;
10
- }
@@ -1,24 +0,0 @@
1
- import { Connection } from "../Connection";
2
- import { ConnectionOfNode } from "./ConnectionOfNode";
3
- /**
4
- * This is a binary tree that is used to store the reference to the main connection of the concept.
5
- */
6
- export declare class ConnectionOfTheTree {
7
- static node: ConnectionOfNode | null;
8
- static CreateCompositionKey(ofTheConceptId: number, typeId: number): number;
9
- static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId: number, typeId: number): any;
10
- /**
11
- * This function lets you add a connection by composite key with of the concept id and type id.
12
- * This function checks if the connection already exists and then updates in the case that it does not
13
- * If the connection of the concept id and type id combination is encountered first time then a node is created.
14
- * @param connection connection that needs to be added.
15
- */
16
- static addConnection(connection: Connection): void;
17
- /**
18
- * This is a function to add the connectionNode to the existing tree
19
- * @param connectionOfNode This is the node that needs to be added to the tree.
20
- * @returns ConnectionOfNode
21
- */
22
- static addNodeToTree(connectionOfNode: ConnectionOfNode): Promise<ConnectionOfNode | null>;
23
- static removeNodeFromTree(id: number): Promise<void>;
24
- }
@@ -1,10 +0,0 @@
1
- import { NodePrimitive } from "./NodePrimitive";
2
- export declare class ConnectionTypeNode extends NodePrimitive {
3
- key: string;
4
- value: number[];
5
- height: number;
6
- leftNode: ConnectionTypeNode | null;
7
- rightNode: ConnectionTypeNode | null;
8
- constructor(key: any, value: number[], leftNode: ConnectionTypeNode | null, rightNode: ConnectionTypeNode | null);
9
- addNode(passedNode: ConnectionTypeNode, node: ConnectionTypeNode | null, height: number): any;
10
- }
@@ -1,15 +0,0 @@
1
- export declare class NodePrimitive {
2
- key: string;
3
- value: number[];
4
- height: number;
5
- leftNode: any | null;
6
- rightNode: any | null;
7
- constructor(key: any, value: number[], leftNode: NodePrimitive | null, rightNode: NodePrimitive | null);
8
- getFromNode(id: any, node: any | null): any | null;
9
- rightRotate(y: NodePrimitive | null): any;
10
- leftRotate(x: NodePrimitive | null): any;
11
- getHeight(node: NodePrimitive | null): number;
12
- getBalanceFactor(N: NodePrimitive | null): number;
13
- removeNode(passedNode: any | null, id: number): any;
14
- inOrderSuccessor(root: any): any;
15
- }
@@ -1,4 +0,0 @@
1
- export declare class GetConnectionsByTypes {
2
- ofTheConceptId: number;
3
- connectionTypes: string[];
4
- }
@@ -1,11 +0,0 @@
1
- import { Concept } from "../../DataStructures/Concept";
2
- import { LNode } from "./../Local/LNode";
3
- export declare class LocalGhostIdTree {
4
- static root: LNode | null;
5
- static addNodeToTree(node: LNode): LNode | undefined;
6
- static addConceptToTree(concept: Concept): void;
7
- static waitForDataToLoad(): Promise<unknown>;
8
- static checkFlag(resolve: any): any;
9
- static getNodeFromTree(id: number): Promise<LNode | null>;
10
- static removeNodeFromTree(id: number): Promise<void>;
11
- }
@@ -1,19 +0,0 @@
1
- export declare class LocalId {
2
- static localId: number;
3
- static localConnectionId: number;
4
- static ReservedLocalId: number[];
5
- static ReservedConnectionId: number[];
6
- static AddConceptId(id: any): void;
7
- /**
8
- *
9
- * This function will get the local concept id from the indexdb
10
- * @returns the local concept id
11
- */
12
- static getConceptId(): Promise<number>;
13
- /**
14
- *
15
- * @param object This is the object that needs to be updated
16
- */
17
- static AddConnectionId(object: any): void;
18
- static getConnectionId(): Promise<number>;
19
- }
@@ -1,19 +0,0 @@
1
- import { Concept } from "../Concept";
2
- import { Connection } from "../Connection";
3
- import { PrototypeOption } from "./PrototypeOption";
4
- import { QuerySelector } from "./QuerySelector";
5
- export declare class Prototype {
6
- prototype: string;
7
- required: string[];
8
- optional: string[];
9
- field: string;
10
- childPrototypes: Prototype[];
11
- isCompositional: boolean;
12
- options: PrototypeOption[];
13
- isQueryType: boolean;
14
- querySelector: QuerySelector | null;
15
- concepts: Concept[];
16
- connections: Connection[];
17
- addedConcepts: Concept[];
18
- addedConnections: Connection[];
19
- }
@@ -1,4 +0,0 @@
1
- export declare class PrototypeOption {
2
- type: string;
3
- value: string;
4
- }
@@ -1,4 +0,0 @@
1
- export declare class QuerySelector {
2
- filterType: string;
3
- selector: string;
4
- }
@@ -1,19 +0,0 @@
1
- export type TLibrary = {
2
- order: number;
3
- url: string;
4
- };
5
- export type TMainLibrary = {
6
- css: TLibrary[];
7
- js: TLibrary[];
8
- };
9
- export type TAssistant = {
10
- id: string;
11
- input: string;
12
- type: string;
13
- };
14
- export type TCustomFunction = {
15
- id?: number;
16
- code: string;
17
- name: string;
18
- slug: string;
19
- };
@@ -1,18 +0,0 @@
1
- export declare class TypeNode {
2
- key: any;
3
- value: number[];
4
- leftNode: TypeNode | null;
5
- rightNode: TypeNode | null;
6
- currentNode: TypeNode | null;
7
- height: number;
8
- constructor(key: any, value: number);
9
- addType(node: TypeNode | null, key: number, value: number): TypeNode | null;
10
- rightRotate(y: TypeNode | null): TypeNode | null;
11
- leftRotate(x: TypeNode | null): TypeNode | null;
12
- getHeight(node: TypeNode | null): number;
13
- getBalanceFactor(N: TypeNode | null): number;
14
- getFromNode(id: number, node: TypeNode | null): TypeNode | null;
15
- removeNodeWithVariants(passedNode: TypeNode | null, key: any, conceptId: number): TypeNode | null;
16
- countNodeBelow(root: TypeNode | null): number;
17
- inOrderSuccessor(root: TypeNode): TypeNode;
18
- }
@@ -1,10 +0,0 @@
1
- import { WidgetDetails } from "./WidgetDetails";
2
- import { WidgetNode } from "./WidgetNode";
3
- export declare class WidgetCache {
4
- static root: WidgetNode | null;
5
- static addNodeToTree(node: WidgetNode): WidgetNode | undefined;
6
- static addWidgetToTree(widgetDetails: WidgetDetails): void;
7
- static getNodeFromTree(id: number): Promise<WidgetNode | null>;
8
- static removeNodeFromTree(id: number): Promise<void>;
9
- static countNumberOfNodes(): number;
10
- }
@@ -1,9 +0,0 @@
1
- export declare class WidgetDetails {
2
- widgetId: number;
3
- mainId: number;
4
- conceptIds: number[];
5
- linkers: number[];
6
- reverse: number[];
7
- mainCompositionIds: number[];
8
- countinfo: any;
9
- }
@@ -1,18 +0,0 @@
1
- import { WidgetDetails } from "./WidgetDetails";
2
- export declare class WidgetNode {
3
- key: any;
4
- value: WidgetDetails;
5
- leftNode: WidgetNode | null;
6
- rightNode: WidgetNode | null;
7
- height: number;
8
- constructor(key: any, value: WidgetDetails, leftNode: WidgetNode | null, rightNode: WidgetNode | null);
9
- addNode(passedNode: WidgetNode, node: WidgetNode | null, height: number): WidgetNode | null;
10
- rightRotate(y: WidgetNode | null): WidgetNode | null;
11
- leftRotate(x: WidgetNode | null): WidgetNode | null;
12
- getHeight(node: WidgetNode | null): number;
13
- getBalanceFactor(N: WidgetNode | null): number;
14
- getFromNode(id: number, node: WidgetNode | null): WidgetNode | null;
15
- removeNode(passedNode: WidgetNode | null, id: number): WidgetNode | null;
16
- countNodeBelow(root: WidgetNode | null): number;
17
- inOrderSuccessor(root: WidgetNode): WidgetNode;
18
- }
@@ -1,47 +0,0 @@
1
- import { Concept, Connection } from "../app";
2
- /**
3
- * This class is a buffer class that is used to write to the indexdb. We cannot willy nilly write to indexdb because
4
- * it will cause the system to crash. We must also in future only allow certain types of concepts and connections
5
- * to be stored because a large indexdb is more problem than a blessing.
6
- */
7
- export declare class IndexDbUpdate {
8
- static concepts: Concept[];
9
- static connections: Connection[];
10
- /**
11
- * This is the maximum number of concepts or connections that needs to be in the buffer before flusing them
12
- * to index db
13
- */
14
- static INDEX_DB_BUFFER_MAX: number;
15
- /**
16
- * This means that indexdb is in use.
17
- */
18
- static IN_USE: boolean;
19
- /**
20
- * This is a delay that you introduce between two updates to indexdb.
21
- */
22
- static DELAY_BETWEEN_INDEX_UPDATES: number;
23
- /**
24
- * This is a varaible that defines how many times a concept or connection should be used before putting
25
- * it to indexdb.
26
- */
27
- static MIN_USE_FOR_INDEX_DB: number;
28
- /**
29
- * This is a variable that defines that any concept / connection with count greater than this should not
30
- * be added to indexdb because probably this already is in the indexdb.
31
- */
32
- static MAX_USE_FOR_INDEX_DB: number;
33
- /**
34
- * This function holds the buffer to the indexdb. Only things that pass through here can be stored to the indexdb
35
- * This function holds the concepts in the buffer and puts them in indexdb once the INDEX_DB_BUFFER_MAX is exceeded.
36
- * @param concept Concept that needs to be passed on to the indexdb
37
- *
38
- */
39
- static UpdateConceptIndexDb(concept: Concept): Promise<void>;
40
- /**
41
- * This function holds the buffer to the indexdb. Only things that pass through here can be stored to the indexdb
42
- * This function holds the connections in the buffer and puts them in indexdb once the INDEX_DB_BUFFER_MAX is exceeded.
43
- * @param connection Connection that needs to be passed on to the indexdb
44
- *
45
- */
46
- static UpdateConnectionIndexDb(connection: Connection): Promise<void>;
47
- }
@@ -1,14 +0,0 @@
1
- export declare class ApplicationMonitor {
2
- static initialize(): void;
3
- static initGlobalErrorHandlers(): void;
4
- static logCatchError(): void;
5
- static logErrorEvent(): void;
6
- static logUnhandledError(): void;
7
- static logUserInteractions(): void;
8
- static logNetworkRequests(): void;
9
- static logPerformanceMetrics(): void;
10
- static logRouteChanges(): void;
11
- static logOnWindowLoad(): void;
12
- static logSample(): void;
13
- static logWebSocketEvents(): void;
14
- }
File without changes