mftsccs-browser 2.1.238-beta → 2.1.239-dev
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.
- package/dist/main.bundle.js +43918 -2
- package/dist/main.bundle.js.map +1 -0
- package/dist/serviceWorker.bundle.js +44844 -2
- package/dist/serviceWorker.bundle.js.map +1 -0
- package/package.json +4 -1
- package/dist/main.bundle.js.LICENSE.txt +0 -1
- package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
- package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
- package/dist/types/Anomaly/anomaly.d.ts +0 -103
- package/dist/types/Api/Create/CreateTheCharacter.d.ts +0 -24
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +0 -20
- package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +0 -18
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -28
- package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -18
- package/dist/types/Api/Create/CreateTheTextData.d.ts +0 -18
- package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +0 -14
- package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -19
- package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -20
- package/dist/types/Api/DeleteTheConcept.d.ts +0 -20
- package/dist/types/Api/DeleteTheConnection.d.ts +0 -20
- package/dist/types/Api/GetAiData.d.ts +0 -10
- package/dist/types/Api/GetAllConceptsByType.d.ts +0 -12
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +0 -23
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +0 -23
- package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +0 -12
- package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +0 -12
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +0 -12
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +0 -13
- package/dist/types/Api/GetConcept.d.ts +0 -6
- package/dist/types/Api/GetConceptBulk.d.ts +0 -20
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +0 -15
- package/dist/types/Api/GetConceptByCharacterValue.d.ts +0 -12
- package/dist/types/Api/GetConnection.d.ts +0 -15
- package/dist/types/Api/GetConnectionBulk.d.ts +0 -7
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +0 -15
- package/dist/types/Api/GetConnectionToTheConcept.d.ts +0 -17
- package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +0 -40
- package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -15
- package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +0 -9
- package/dist/types/Api/GetReservedConnectionIds.d.ts +0 -10
- package/dist/types/Api/GetReservedIds.d.ts +0 -10
- package/dist/types/Api/Images/GetImages.d.ts +0 -15
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -13
- package/dist/types/Api/Login.d.ts +0 -78
- package/dist/types/Api/MakeTheNameInBackend.d.ts +0 -14
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -9
- package/dist/types/Api/Prototype/Selector.d.ts +0 -26
- package/dist/types/Api/RecursiveSearch.d.ts +0 -67
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +0 -18
- package/dist/types/Api/Search/Search.d.ts +0 -73
- package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -28
- package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +0 -15
- package/dist/types/Api/Search/SearchWithLinker.d.ts +0 -16
- package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -14
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +0 -12
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +0 -13
- package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -15
- package/dist/types/Api/Session/CreateSession.d.ts +0 -16
- package/dist/types/Api/Session/CreateSessionVisit.d.ts +0 -12
- package/dist/types/Api/Signin.d.ts +0 -24
- package/dist/types/Api/Signup.d.ts +0 -61
- package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -12
- package/dist/types/Api/View/ViewInternalDataApi.d.ts +0 -15
- package/dist/types/Constants/AccessConstants.d.ts +0 -3
- package/dist/types/Constants/ApiConstants.d.ts +0 -23
- package/dist/types/Constants/FormatConstants.d.ts +0 -8
- package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
- package/dist/types/Constants/general.const.d.ts +0 -6
- package/dist/types/Constants/page.const.d.ts +0 -5
- package/dist/types/DataStructures/BaseUrl.d.ts +0 -89
- package/dist/types/DataStructures/BinaryCharacterTree.d.ts +0 -16
- package/dist/types/DataStructures/BinaryTree.d.ts +0 -77
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +0 -17
- package/dist/types/DataStructures/CharacterRepository.d.ts +0 -8
- package/dist/types/DataStructures/Composition/Composition.d.ts +0 -14
- package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +0 -10
- package/dist/types/DataStructures/Composition/CompositionNode.d.ts +0 -21
- package/dist/types/DataStructures/Concept.d.ts +0 -25
- package/dist/types/DataStructures/ConceptData.d.ts +0 -30
- package/dist/types/DataStructures/ConceptsToDraw.d.ts +0 -11
- package/dist/types/DataStructures/Connection.d.ts +0 -23
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +0 -81
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -27
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +0 -20
- package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
- package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
- package/dist/types/DataStructures/ConnectionData.d.ts +0 -26
- package/dist/types/DataStructures/Count/CountInfo.d.ts +0 -6
- package/dist/types/DataStructures/FetchConnection.d.ts +0 -64
- package/dist/types/DataStructures/FilterSearch.d.ts +0 -9
- package/dist/types/DataStructures/IdentifierFlags.d.ts +0 -11
- package/dist/types/DataStructures/Local/LConcept.d.ts +0 -23
- package/dist/types/DataStructures/Local/LConnection.d.ts +0 -18
- package/dist/types/DataStructures/Local/LNode.d.ts +0 -29
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +0 -21
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +0 -20
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
- package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +0 -33
- package/dist/types/DataStructures/Node.d.ts +0 -30
- package/dist/types/DataStructures/PatcherStructure.d.ts +0 -8
- package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
- package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
- package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
- package/dist/types/DataStructures/ReservedIds.d.ts +0 -10
- package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +0 -74
- package/dist/types/DataStructures/Responses/StandardResponses.d.ts +0 -6
- package/dist/types/DataStructures/Returner.d.ts +0 -7
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +0 -25
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -10
- package/dist/types/DataStructures/SearchQuery.d.ts +0 -17
- package/dist/types/DataStructures/Security/SecureStorage.d.ts +0 -14
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +0 -24
- package/dist/types/DataStructures/Session/SessionData.d.ts +0 -13
- package/dist/types/DataStructures/SettingData.d.ts +0 -5
- package/dist/types/DataStructures/Settings.d.ts +0 -4
- package/dist/types/DataStructures/SigninModel.d.ts +0 -4
- package/dist/types/DataStructures/SignupModel.d.ts +0 -4
- package/dist/types/DataStructures/SyncData.d.ts +0 -14
- package/dist/types/DataStructures/TheCharacter.d.ts +0 -13
- package/dist/types/DataStructures/TheTexts.d.ts +0 -14
- package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
- package/dist/types/DataStructures/TypeNode.d.ts +0 -18
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +0 -13
- package/dist/types/DataStructures/User/UserNode.d.ts +0 -18
- package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
- package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
- package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
- package/dist/types/DataStructures/environments/environments.d.ts +0 -48
- package/dist/types/Database/CacheDatabase.d.ts +0 -57
- package/dist/types/Database/IndexUpdate.d.ts +0 -47
- package/dist/types/Database/NoIndexDb.d.ts +0 -9
- package/dist/types/Database/indexdblocal.d.ts +0 -43
- package/dist/types/Database/indexeddb.d.ts +0 -58
- package/dist/types/Helpers/CheckIfExists.d.ts +0 -9
- package/dist/types/Helpers/RemoveFromArray.d.ts +0 -5
- package/dist/types/Helpers/UniqueInsert.d.ts +0 -1
- package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
- package/dist/types/Middleware/logger.service.d.ts +0 -144
- package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
- package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
- package/dist/types/ServiceWorker/index.d.ts +0 -11
- package/dist/types/Services/CacheClear.d.ts +0 -7
- package/dist/types/Services/CheckForConnectionDeletion.d.ts +0 -3
- package/dist/types/Services/Common/DecodeCountInfo.d.ts +0 -3
- package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
- package/dist/types/Services/Common/ErrorPosting.d.ts +0 -10
- package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
- package/dist/types/Services/Common/RegexFunction.d.ts +0 -1
- package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
- package/dist/types/Services/Composition/BuildComposition.d.ts +0 -3
- package/dist/types/Services/Composition/CompositionCache.d.ts +0 -4
- package/dist/types/Services/Composition/CreateCompositionCache.d.ts +0 -3
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -5
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +0 -5
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +0 -5
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +0 -5
- package/dist/types/Services/CreateDefaultConcept.d.ts +0 -3
- package/dist/types/Services/CreateTheComposition.d.ts +0 -1
- package/dist/types/Services/CreateTheConcept.d.ts +0 -122
- package/dist/types/Services/CreateTheConnection.d.ts +0 -63
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +0 -2
- package/dist/types/Services/DeleteConcept.d.ts +0 -2
- package/dist/types/Services/DeleteConnection.d.ts +0 -2
- package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -6
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +0 -1
- package/dist/types/Services/GetComposition.d.ts +0 -205
- package/dist/types/Services/GetCompositionBulk.d.ts +0 -100
- package/dist/types/Services/GetCompositionList.d.ts +0 -7
- package/dist/types/Services/GetConceptByCharacter.d.ts +0 -2
- package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
- package/dist/types/Services/GetConnections.d.ts +0 -1
- package/dist/types/Services/GetDataFromIndexDb.d.ts +0 -2
- package/dist/types/Services/GetLink.d.ts +0 -3
- package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +0 -3
- package/dist/types/Services/GetRelation.d.ts +0 -3
- package/dist/types/Services/GetTheConcept.d.ts +0 -96
- package/dist/types/Services/InitializeSystem.d.ts +0 -2
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -41
- package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -47
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -44
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +0 -46
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +0 -34
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +0 -104
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +0 -84
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +0 -140
- package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -47
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -37
- package/dist/types/Services/Local/GetCompositionLocal.d.ts +0 -97
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +0 -56
- package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -19
- package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -21
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -63
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +0 -22
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +0 -164
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +0 -36
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +0 -42
- package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
- package/dist/types/Services/Mail.d.ts +0 -18
- package/dist/types/Services/MakeTheCharacter.d.ts +0 -2
- package/dist/types/Services/MakeTheCharacterData.d.ts +0 -2
- package/dist/types/Services/MakeTheConcept.d.ts +0 -2
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +0 -15
- package/dist/types/Services/MakeTheTimestamp.d.ts +0 -1
- package/dist/types/Services/MakeTheTypeConcept.d.ts +0 -1
- package/dist/types/Services/Mqtt/publishMessage.d.ts +0 -1
- package/dist/types/Services/Search/DataIdFormat.d.ts +0 -32
- package/dist/types/Services/Search/FormatData.d.ts +0 -36
- package/dist/types/Services/Search/JustIdFormat.d.ts +0 -23
- package/dist/types/Services/Search/NewFormat.d.ts +0 -4
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -3
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +0 -55
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +0 -82
- package/dist/types/Services/Search/orderingConnections.d.ts +0 -2
- package/dist/types/Services/Security/GetRequestHeader.d.ts +0 -6
- package/dist/types/Services/SplitStrings.d.ts +0 -1
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -117
- package/dist/types/Services/UpdateComposition.d.ts +0 -2
- package/dist/types/Services/Upload.d.ts +0 -34
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -10
- package/dist/types/Services/User/UserTranslation.d.ts +0 -3
- package/dist/types/Services/View/ViewInternalData.d.ts +0 -1
- package/dist/types/Services/assets/GetImageService.d.ts +0 -14
- package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
- package/dist/types/Services/cacheService.d.ts +0 -1
- package/dist/types/Validator/constant.d.ts +0 -3
- package/dist/types/Validator/interface.d.ts +0 -19
- package/dist/types/Validator/utils.d.ts +0 -7
- package/dist/types/Validator/validator.d.ts +0 -37
- package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
- package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
- package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
- package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
- package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
- package/dist/types/Visualize/helper.d.ts +0 -15
- package/dist/types/Widgets/BaseObserver.d.ts +0 -25
- package/dist/types/Widgets/BaseWidget.d.ts +0 -37
- package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -11
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -392
- package/dist/types/Widgets/CacheWidget.service.d.ts +0 -77
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -10
- package/dist/types/Widgets/RenderPage.service.d.ts +0 -17
- package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -22
- package/dist/types/Widgets/RenderWidgetService.d.ts +0 -187
- package/dist/types/Widgets/StatefulWidget.d.ts +0 -167
- package/dist/types/Widgets/WidgetBuild.d.ts +0 -45
- package/dist/types/Widgets/WidgetCacheManager.d.ts +0 -108
- package/dist/types/Widgets/WidgetTree.d.ts +0 -61
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -95
- package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -51
- package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -35
- package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -57
- package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -50
- package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +0 -107
- package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -55
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +0 -60
- package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -36
- package/dist/types/app.d.ts +0 -377
- package/dist/types/prototype/prototype.service.d.ts +0 -25
- package/dist/types/service-worker.d.ts +0 -1
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import { StatefulWidget } from "./StatefulWidget";
|
|
2
|
-
import { Concept } from "../app";
|
|
3
|
-
import { TCustomFunction } from "../DataStructures/TypeLibrary";
|
|
4
|
-
/**
|
|
5
|
-
* BuilderStatefulWidget - A dynamic, stateful widget component for building interactive UI elements.
|
|
6
|
-
*
|
|
7
|
-
* This class extends StatefulWidget to provide a powerful widget system that supports:
|
|
8
|
-
* - Dynamic HTML rendering with lifecycle hooks
|
|
9
|
-
* - Child widget composition and mounting
|
|
10
|
-
* - Custom function execution and event handling
|
|
11
|
-
* - Type-based data binding and queries
|
|
12
|
-
* - Development mode with visual editing capabilities
|
|
13
|
-
* - Widget dependencies and custom functions
|
|
14
|
-
*
|
|
15
|
-
* **Key Features:**
|
|
16
|
-
* - **Lifecycle Management**: before_render, render, after_render hooks
|
|
17
|
-
* - **Dynamic Code Execution**: Safely executes user-defined JavaScript functions
|
|
18
|
-
* - **Child Widgets**: Supports hierarchical widget composition
|
|
19
|
-
* - **Type Integration**: Connects to TSCCS type system for data binding
|
|
20
|
-
* - **Development Mode**: Visual editing and type editor integration
|
|
21
|
-
* - **Custom Functions**: Execute user-defined functions within widget context
|
|
22
|
-
* - **Local Connections**: Create relationships between entities at the widget level
|
|
23
|
-
*
|
|
24
|
-
* **Lifecycle Flow:**
|
|
25
|
-
* 1. Constructor creates widget instance
|
|
26
|
-
* 2. mount() attaches to parent DOM element
|
|
27
|
-
* 3. render_custom_functions() executes custom code
|
|
28
|
-
* 4. render_widgetDependencies() loads dependencies
|
|
29
|
-
* 5. before_render() (componentDidMount equivalent) executes
|
|
30
|
-
* 6. mount_child() mounts child widgets
|
|
31
|
-
* 7. render() updates the DOM
|
|
32
|
-
* 8. after_render() (addEvent) attaches event listeners
|
|
33
|
-
*
|
|
34
|
-
* **Use Cases:**
|
|
35
|
-
* - Building dynamic forms with type-based data
|
|
36
|
-
* - Creating reusable UI components
|
|
37
|
-
* - Widget-based page builders
|
|
38
|
-
* - Interactive dashboards
|
|
39
|
-
* - Data-driven UI components
|
|
40
|
-
*
|
|
41
|
-
* @extends StatefulWidget
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* // Create and mount a widget
|
|
45
|
-
* const widget = new BuilderStatefulWidget();
|
|
46
|
-
* widget.html = '<div>Hello Widget</div>';
|
|
47
|
-
* widget.widgetType = 'the_person_name';
|
|
48
|
-
* widget.componentDidMountFunction = 'console.log("Widget mounted")';
|
|
49
|
-
* await widget.mount(parentElement);
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* // Widget with custom functions
|
|
53
|
-
* const widget = new BuilderStatefulWidget();
|
|
54
|
-
* widget.customFunctions = [
|
|
55
|
-
* { code: 'this.handleClick = () => { console.log("Clicked!"); }' }
|
|
56
|
-
* ];
|
|
57
|
-
* await widget.mount(parentElement);
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* // Development mode with type editor
|
|
61
|
-
* const widget = new BuilderStatefulWidget();
|
|
62
|
-
* widget.inDevelopment = true; // Enables visual editing
|
|
63
|
-
* widget.widgetType = 'the_element_name';
|
|
64
|
-
* await widget.mount(parentElement);
|
|
65
|
-
*/
|
|
66
|
-
export declare class BuilderStatefulWidget extends StatefulWidget {
|
|
67
|
-
/** Array of child component instances mounted within this widget */
|
|
68
|
-
childComponents: any;
|
|
69
|
-
/** Flag indicating whether the component has been mounted to the DOM */
|
|
70
|
-
componentMounted: boolean;
|
|
71
|
-
/** Reference to the previous HTML element (used for comparison during updates) */
|
|
72
|
-
oldHtml: HTMLElement | null;
|
|
73
|
-
/** Value returned from onmount lifecycle hook */
|
|
74
|
-
onmountVal: any;
|
|
75
|
-
/** Value returned from addEvent lifecycle hook */
|
|
76
|
-
addEventVal: any;
|
|
77
|
-
/** Array of phonebook data (legacy or specific use case) */
|
|
78
|
-
phonebooks: any;
|
|
79
|
-
/** Object containing data for child components */
|
|
80
|
-
childrenData: any;
|
|
81
|
-
/** JavaScript code (as string) to execute after rendering for event binding */
|
|
82
|
-
addEventFunction: any;
|
|
83
|
-
/** JavaScript code (as string) to execute after component mounts (like componentDidMount) */
|
|
84
|
-
componentDidMountFunction: any;
|
|
85
|
-
/** JavaScript code (as string) to execute for mounting child widgets */
|
|
86
|
-
mountChildWidgetsFunction: any;
|
|
87
|
-
/** Array of child widget instances */
|
|
88
|
-
childWidgets: any;
|
|
89
|
-
/** Array of type value options fetched from backend based on widgetType */
|
|
90
|
-
typeValueList: any;
|
|
91
|
-
/** The type identifier for this widget (e.g., "the_person_name", "the_element_name") */
|
|
92
|
-
widgetType: string;
|
|
93
|
-
/** Array of parent concept IDs for hierarchical relationships */
|
|
94
|
-
parentConceptList: any;
|
|
95
|
-
/** Array of custom function objects with code to execute in widget context */
|
|
96
|
-
customFunctions: TCustomFunction[];
|
|
97
|
-
/** JavaScript code (as string) for widget dependencies initialization */
|
|
98
|
-
widgetDependenciesData: string;
|
|
99
|
-
/**
|
|
100
|
-
* Retrieves the current user's ID from local storage.
|
|
101
|
-
*
|
|
102
|
-
* This method fetches the user profile from localStorage and extracts the userId.
|
|
103
|
-
* Used for user-specific operations and data access within widgets.
|
|
104
|
-
*
|
|
105
|
-
* @returns Promise resolving to the user ID (number) or undefined if not found
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* const userId = await widget.getUserId();
|
|
109
|
-
* console.log('Current user:', userId);
|
|
110
|
-
*/
|
|
111
|
-
getUserId(): any;
|
|
112
|
-
/**
|
|
113
|
-
* Fetches a list of type values from the backend based on the widget's type.
|
|
114
|
-
*
|
|
115
|
-
* This method performs a filtered search using FreeschemaQuery to retrieve all entities
|
|
116
|
-
* of a specific type. The results are formatted as options for dropdowns or selection lists.
|
|
117
|
-
*
|
|
118
|
-
* **Process:**
|
|
119
|
-
* 1. Parses widgetType to extract main composition and type-value key
|
|
120
|
-
* 2. Creates filter for entities (e.g., filter by ID > 1)
|
|
121
|
-
* 3. Executes FreeschemaQuery with filters
|
|
122
|
-
* 4. Formats results into { id, name, text } objects
|
|
123
|
-
* 5. Stores in this.typeValueList
|
|
124
|
-
*
|
|
125
|
-
* **Type Name Format:**
|
|
126
|
-
* - widgetType: "the_element_name"
|
|
127
|
-
* - mainComposition: "the_element"
|
|
128
|
-
* - typevalueKey: "the_name"
|
|
129
|
-
*
|
|
130
|
-
* @param typeName - Optional type name (defaults to this.widgetType)
|
|
131
|
-
*
|
|
132
|
-
* @returns Promise resolving to array of formatted type values:
|
|
133
|
-
* [{ id: number, name: string, text: string }, ...]
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* widget.widgetType = 'the_person_name';
|
|
137
|
-
* const options = await widget.getTypeValueList();
|
|
138
|
-
* // Returns: [{ id: 123, name: "John Doe", text: "John Doe" }, ...]
|
|
139
|
-
*/
|
|
140
|
-
getTypeValueList(typeName?: string): Promise<unknown>;
|
|
141
|
-
/**
|
|
142
|
-
* Sets the browser document title.
|
|
143
|
-
*
|
|
144
|
-
* @param title - The title string to set as the document title
|
|
145
|
-
*/
|
|
146
|
-
setTitle(title: string): void;
|
|
147
|
-
/**
|
|
148
|
-
* Returns the HTML content of this widget.
|
|
149
|
-
*
|
|
150
|
-
* @returns The HTML string for this widget
|
|
151
|
-
*/
|
|
152
|
-
getHtml(): string;
|
|
153
|
-
/**
|
|
154
|
-
* Generates a random identifier for this widget element.
|
|
155
|
-
*
|
|
156
|
-
* @returns A random number used as the element identifier
|
|
157
|
-
*/
|
|
158
|
-
createRandomNumber(): number;
|
|
159
|
-
/**
|
|
160
|
-
* Mounts child widgets by executing the mountChildWidgetsFunction.
|
|
161
|
-
*
|
|
162
|
-
* This method dynamically executes user-defined JavaScript code for mounting
|
|
163
|
-
* child widgets. The code is executed within the widget's context with access
|
|
164
|
-
* to the tsccs package.
|
|
165
|
-
*
|
|
166
|
-
* **Execution Context:**
|
|
167
|
-
* - Code is bound to `this` (the widget instance)
|
|
168
|
-
* - Has access to `tsccs` module for TSCCS operations
|
|
169
|
-
* - Runs asynchronously
|
|
170
|
-
*
|
|
171
|
-
* @throws Will log and re-throw errors if mount_child code fails
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* widget.mountChildWidgetsFunction = `
|
|
175
|
-
* const childWidget = new tsccs.BuilderStatefulWidget();
|
|
176
|
-
* childWidget.html = '<div>Child</div>';
|
|
177
|
-
* await childWidget.mount(this.childWidgetElement);
|
|
178
|
-
* `;
|
|
179
|
-
* await widget.mount_child();
|
|
180
|
-
*/
|
|
181
|
-
mount_child(): Promise<void>;
|
|
182
|
-
/**
|
|
183
|
-
* Sets the widget type and fetches associated type values.
|
|
184
|
-
*
|
|
185
|
-
* This method updates the widget's type, fetches the corresponding type values
|
|
186
|
-
* from the backend, updates DOM attributes, and triggers a re-render.
|
|
187
|
-
*
|
|
188
|
-
* @param widgetTypeName - The new widget type name (e.g., "the_person_name")
|
|
189
|
-
*
|
|
190
|
-
* @returns Promise resolving to this widget instance (for method chaining)
|
|
191
|
-
*
|
|
192
|
-
* @example
|
|
193
|
-
* await widget.setProperty('the_person_email');
|
|
194
|
-
* // Widget now displays person email options
|
|
195
|
-
*/
|
|
196
|
-
setProperty(widgetTypeName: any): Promise<this>;
|
|
197
|
-
/**
|
|
198
|
-
* Opens the type editor interface for this widget.
|
|
199
|
-
*
|
|
200
|
-
* This method is called in development mode when the widget is clicked.
|
|
201
|
-
* It opens a visual editor for modifying the widget's type and properties.
|
|
202
|
-
*
|
|
203
|
-
* @param event - The click event that triggered the editor
|
|
204
|
-
*/
|
|
205
|
-
createTypeEditor(event: any): void;
|
|
206
|
-
/**
|
|
207
|
-
* Mounts the widget to a parent DOM element and initializes the lifecycle.
|
|
208
|
-
*
|
|
209
|
-
* This is the primary method for rendering a widget to the DOM. It:
|
|
210
|
-
* 1. Creates a wrapper div element
|
|
211
|
-
* 2. Attaches click handlers (if in development mode)
|
|
212
|
-
* 3. Inserts HTML content
|
|
213
|
-
* 4. Executes lifecycle hooks in order
|
|
214
|
-
* 5. Mounts child widgets
|
|
215
|
-
*
|
|
216
|
-
* **Lifecycle Execution Order:**
|
|
217
|
-
* 1. render_custom_functions() - Execute custom functions
|
|
218
|
-
* 2. render_widgetDependencies() - Load dependencies
|
|
219
|
-
* 3. before_render() - componentDidMount equivalent
|
|
220
|
-
* 4. mount_child() - Mount child widgets
|
|
221
|
-
* 5. render() - Update DOM
|
|
222
|
-
*
|
|
223
|
-
* **Development Mode:**
|
|
224
|
-
* When `inDevelopment` is true, the widget becomes clickable and opens
|
|
225
|
-
* the type editor for visual configuration.
|
|
226
|
-
*
|
|
227
|
-
* @param parent - The parent HTMLElement to mount this widget to
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* // Basic mounting
|
|
231
|
-
* const widget = new BuilderStatefulWidget();
|
|
232
|
-
* widget.html = '<h1>Hello World</h1>';
|
|
233
|
-
* await widget.mount(document.getElementById('app'));
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* // Development mode
|
|
237
|
-
* const widget = new BuilderStatefulWidget();
|
|
238
|
-
* widget.inDevelopment = true;
|
|
239
|
-
* widget.widgetType = 'the_person_name';
|
|
240
|
-
* await widget.mount(parentElement);
|
|
241
|
-
* // Widget is now clickable for editing
|
|
242
|
-
*/
|
|
243
|
-
mount(parent: HTMLElement): Promise<void>;
|
|
244
|
-
/**
|
|
245
|
-
* Executes widget dependencies initialization code.
|
|
246
|
-
*
|
|
247
|
-
* This lifecycle method runs during the mount phase to load and initialize
|
|
248
|
-
* any dependencies required by the widget. Dependencies code is executed
|
|
249
|
-
* with access to the tsccs module.
|
|
250
|
-
*
|
|
251
|
-
* **Execution:**
|
|
252
|
-
* - Runs before before_render()
|
|
253
|
-
* - Code in widgetDependenciesData is executed
|
|
254
|
-
* - Bound to widget context (this)
|
|
255
|
-
* - Has access to tsccs package
|
|
256
|
-
*
|
|
257
|
-
* @throws Will log and re-throw errors if dependency code fails
|
|
258
|
-
*
|
|
259
|
-
* @example
|
|
260
|
-
* widget.widgetDependenciesData = `
|
|
261
|
-
* this.apiClient = await tsccs.createApiClient();
|
|
262
|
-
* this.config = await tsccs.loadConfig();
|
|
263
|
-
* `;
|
|
264
|
-
*/
|
|
265
|
-
render_widgetDependencies(): void;
|
|
266
|
-
/**
|
|
267
|
-
* Executes all custom functions defined for this widget.
|
|
268
|
-
*
|
|
269
|
-
* This method runs during the mount phase to execute user-defined custom
|
|
270
|
-
* functions. All functions in the customFunctions array are concatenated
|
|
271
|
-
* and executed together in the widget's context.
|
|
272
|
-
*
|
|
273
|
-
* **Custom Functions:**
|
|
274
|
-
* - Defined in widget.customFunctions array
|
|
275
|
-
* - Each function is a TCustomFunction object with a code property
|
|
276
|
-
* - All functions execute with access to `this` (widget) and `tsccs` module
|
|
277
|
-
* - Functions can define methods, initialize state, or set up utilities
|
|
278
|
-
*
|
|
279
|
-
* @throws Will log and re-throw errors if custom function code fails
|
|
280
|
-
*
|
|
281
|
-
* @example
|
|
282
|
-
* widget.customFunctions = [
|
|
283
|
-
* { code: 'this.handleClick = (e) => { console.log("Clicked", e); }' },
|
|
284
|
-
* { code: 'this.formatDate = (date) => date.toLocaleDateString();' }
|
|
285
|
-
* ];
|
|
286
|
-
* widget.render_custom_functions();
|
|
287
|
-
* // Both functions are now available on widget instance
|
|
288
|
-
*/
|
|
289
|
-
render_custom_functions(): void;
|
|
290
|
-
/**
|
|
291
|
-
* Executes the componentDidMount lifecycle hook.
|
|
292
|
-
*
|
|
293
|
-
* This function is called after the component mounts to the DOM, similar to
|
|
294
|
-
* React's componentDidMount. It executes user-defined initialization code
|
|
295
|
-
* stored in componentDidMountFunction.
|
|
296
|
-
*
|
|
297
|
-
* **Lifecycle Position:**
|
|
298
|
-
* Runs after render_custom_functions() and render_widgetDependencies(),
|
|
299
|
-
* but before mount_child().
|
|
300
|
-
*
|
|
301
|
-
* **Common Uses:**
|
|
302
|
-
* - Fetch initial data from API
|
|
303
|
-
* - Set up subscriptions or listeners
|
|
304
|
-
* - Initialize third-party libraries
|
|
305
|
-
* - Perform DOM manipulations
|
|
306
|
-
* - Set initial state based on props
|
|
307
|
-
*
|
|
308
|
-
* @throws Will log and re-throw errors if componentDidMount code fails
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* widget.componentDidMountFunction = `
|
|
312
|
-
* const data = await tsccs.GetTheConcept(123);
|
|
313
|
-
* this.setState({ userData: data });
|
|
314
|
-
* console.log("Widget mounted with data:", data);
|
|
315
|
-
* `;
|
|
316
|
-
* widget.before_render(); // Executes the above code
|
|
317
|
-
*/
|
|
318
|
-
before_render(): void;
|
|
319
|
-
/**
|
|
320
|
-
* Executes event binding code after the widget renders.
|
|
321
|
-
*
|
|
322
|
-
* This lifecycle method runs after the DOM is updated to attach event listeners
|
|
323
|
-
* and perform post-render operations. It executes user-defined code stored in
|
|
324
|
-
* addEventFunction.
|
|
325
|
-
*
|
|
326
|
-
* **Lifecycle Position:**
|
|
327
|
-
* Runs after render() completes and DOM is updated.
|
|
328
|
-
*
|
|
329
|
-
* **Common Uses:**
|
|
330
|
-
* - Attach click, input, or other event listeners
|
|
331
|
-
* - Set up keyboard shortcuts
|
|
332
|
-
* - Initialize interactive features
|
|
333
|
-
* - Bind form validation
|
|
334
|
-
* - Set up drag-and-drop handlers
|
|
335
|
-
*
|
|
336
|
-
* @throws Will log and re-throw errors if event binding code fails
|
|
337
|
-
*
|
|
338
|
-
* @example
|
|
339
|
-
* widget.addEventFunction = `
|
|
340
|
-
* const button = this.element.querySelector('.submit-btn');
|
|
341
|
-
* button.addEventListener('click', async (e) => {
|
|
342
|
-
* const data = await tsccs.CreateTheConcept('New Item', 1, 1);
|
|
343
|
-
* console.log('Created:', data);
|
|
344
|
-
* });
|
|
345
|
-
* `;
|
|
346
|
-
* widget.after_render(); // Attaches the event listener
|
|
347
|
-
*/
|
|
348
|
-
after_render(): void;
|
|
349
|
-
/**
|
|
350
|
-
* Creates a local connection between two concepts with a specified linker type.
|
|
351
|
-
*
|
|
352
|
-
* This helper method creates a connection relationship between two entity concepts
|
|
353
|
-
* using local storage (not immediately synced to backend). The linker name is
|
|
354
|
-
* automatically prefixed with the first concept's type to create a typed connection.
|
|
355
|
-
*
|
|
356
|
-
* **Process:**
|
|
357
|
-
* 1. Extracts userId from first concept
|
|
358
|
-
* 2. Creates linker name: "{concept1Type}_{linkerName}"
|
|
359
|
-
* 3. Creates or gets the connection type concept locally
|
|
360
|
-
* 4. Creates the connection between the two concepts
|
|
361
|
-
*
|
|
362
|
-
* **Use Cases:**
|
|
363
|
-
* - Creating relationships in offline mode
|
|
364
|
-
* - Building entity associations within widgets
|
|
365
|
-
* - Temporary connections before sync
|
|
366
|
-
* - Development/testing without backend
|
|
367
|
-
*
|
|
368
|
-
* @param concept1Data - The source concept (FROM)
|
|
369
|
-
* @param concept2Data - The target concept (TO)
|
|
370
|
-
* @param linker - The relationship name (e.g., "email", "phone", "address")
|
|
371
|
-
* This will be prefixed with concept1's type
|
|
372
|
-
*
|
|
373
|
-
* @returns Promise resolving to "connection created" string
|
|
374
|
-
*
|
|
375
|
-
* @example
|
|
376
|
-
* const person = await tsccs.GetTheConcept(123); // type: "the_person"
|
|
377
|
-
* const email = await tsccs.GetTheConcept(456); // type: "the_email"
|
|
378
|
-
*
|
|
379
|
-
* await widget.CreateConnectionBetweenEntityLocal(person, email, "email");
|
|
380
|
-
* // Creates connection with type: "the_person_email"
|
|
381
|
-
* // Result: Person → email → Email
|
|
382
|
-
*
|
|
383
|
-
* @example
|
|
384
|
-
* // Create organization-department connection
|
|
385
|
-
* const org = await tsccs.GetTheConcept(789); // type: "the_organization"
|
|
386
|
-
* const dept = await tsccs.GetTheConcept(101); // type: "the_department"
|
|
387
|
-
*
|
|
388
|
-
* await widget.CreateConnectionBetweenEntityLocal(org, dept, "department");
|
|
389
|
-
* // Creates: "the_organization_department" connection
|
|
390
|
-
*/
|
|
391
|
-
CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string): Promise<string>;
|
|
392
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Statistics about the current cache state.
|
|
3
|
-
*/
|
|
4
|
-
export interface CacheStats {
|
|
5
|
-
/** Number of cached entries */
|
|
6
|
-
cacheSize: number;
|
|
7
|
-
/** Number of pending fetch requests */
|
|
8
|
-
pendingRequests: number;
|
|
9
|
-
/** Array of all cache keys */
|
|
10
|
-
keys: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Generic data cache with promise deduplication.
|
|
14
|
-
*
|
|
15
|
-
* Provides in-memory caching with automatic request deduplication to prevent
|
|
16
|
-
* multiple simultaneous fetches for the same key.
|
|
17
|
-
*/
|
|
18
|
-
export declare class DataCache<T = any> {
|
|
19
|
-
/** Map storing cached data by key */
|
|
20
|
-
static cache: Map<string, any>;
|
|
21
|
-
/** Map storing pending fetch promises by key */
|
|
22
|
-
static promises: Map<string, Promise<any>>;
|
|
23
|
-
/**
|
|
24
|
-
* Gets data from cache or fetches if not cached.
|
|
25
|
-
*
|
|
26
|
-
* Automatically deduplicates concurrent requests for the same key.
|
|
27
|
-
*
|
|
28
|
-
* @param key - Cache key
|
|
29
|
-
* @param fetcher - Function to fetch data if not cached
|
|
30
|
-
* @returns Promise resolving to the cached or fetched data
|
|
31
|
-
*/
|
|
32
|
-
static get<K>(key: string, fetcher: () => Promise<K>): Promise<K>;
|
|
33
|
-
/**
|
|
34
|
-
* Checks if a key exists in cache without fetching.
|
|
35
|
-
*
|
|
36
|
-
* @param key - Cache key to check
|
|
37
|
-
* @returns True if key exists in cache
|
|
38
|
-
*/
|
|
39
|
-
static has(key: string): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Gets cached data synchronously without fetching.
|
|
42
|
-
*
|
|
43
|
-
* @param key - Cache key
|
|
44
|
-
* @returns Cached data or undefined if not cached
|
|
45
|
-
*/
|
|
46
|
-
static peek<K>(key: string): K | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Removes a specific cache entry.
|
|
49
|
-
*
|
|
50
|
-
* @param key - Cache key to remove
|
|
51
|
-
*/
|
|
52
|
-
static invalidate(key: string): void;
|
|
53
|
-
/**
|
|
54
|
-
* Clears all cached data and pending promises.
|
|
55
|
-
*/
|
|
56
|
-
static clear(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Sets data directly in cache without fetching.
|
|
59
|
-
*
|
|
60
|
-
* @param key - Cache key
|
|
61
|
-
* @param data - Data to cache
|
|
62
|
-
* @returns Promise resolving to the cached data
|
|
63
|
-
*/
|
|
64
|
-
static set<K>(key: string, data: K): Promise<K>;
|
|
65
|
-
/**
|
|
66
|
-
* Gets cache statistics including size and pending requests.
|
|
67
|
-
*
|
|
68
|
-
* @returns Object with cache statistics
|
|
69
|
-
*/
|
|
70
|
-
static stats(): CacheStats;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Initializes and returns a new widget cache instance.
|
|
74
|
-
*
|
|
75
|
-
* @returns A new DataCache instance
|
|
76
|
-
*/
|
|
77
|
-
export declare function initWidgetCache(): DataCache<any>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalizes CSS by processing nested selectors into flat CSS.
|
|
3
|
-
*
|
|
4
|
-
* Uses PostCSS with postcss-nested to convert nested CSS syntax
|
|
5
|
-
* into standard flat CSS rules.
|
|
6
|
-
*
|
|
7
|
-
* @param cssString - CSS string with nested selectors
|
|
8
|
-
* @returns Promise resolving to normalized CSS string or null on error
|
|
9
|
-
*/
|
|
10
|
-
export declare function normalizeCSS(cssString: string): Promise<string | null>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Applies page-level properties from page data to the document.
|
|
3
|
-
*
|
|
4
|
-
* Processes meta tags, width, font size, font family, and page type settings.
|
|
5
|
-
*
|
|
6
|
-
* @param pageData - Page data object containing property configurations
|
|
7
|
-
*/
|
|
8
|
-
export declare function applyPageProperties(pageData: any): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* Applies a single page property to the document.
|
|
11
|
-
*
|
|
12
|
-
* Handles width, font size, font family, page type (fixed/fluid), and meta tags.
|
|
13
|
-
*
|
|
14
|
-
* @param property - Property name (e.g., "width", "meta_title", "font_size")
|
|
15
|
-
* @param value - Property value to apply
|
|
16
|
-
*/
|
|
17
|
-
export declare function applyPageProperty(property: string, value: any): Promise<void>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { WidgetTree } from "./WidgetTree";
|
|
2
|
-
/**
|
|
3
|
-
* Initializes and loads external CSS and JS libraries for a widget.
|
|
4
|
-
*
|
|
5
|
-
* Processes widget library dependencies and injects them into the document
|
|
6
|
-
* in the correct order.
|
|
7
|
-
*
|
|
8
|
-
* @param widgetTree - The widget tree containing library definitions
|
|
9
|
-
*/
|
|
10
|
-
export declare function initializeLibraries(widgetTree: WidgetTree): Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* Removes CSS library elements from document head by class name.
|
|
13
|
-
*
|
|
14
|
-
* @param cssClassName - The class name of CSS library elements to remove
|
|
15
|
-
*/
|
|
16
|
-
export declare function removeCSSLibrariesFromHead(cssClassName: string): void;
|
|
17
|
-
/**
|
|
18
|
-
* Removes JavaScript library elements from document head by class name.
|
|
19
|
-
*
|
|
20
|
-
* @param jsClassName - The class name of JS library elements to remove
|
|
21
|
-
*/
|
|
22
|
-
export declare function removeJSLibrariesFromHead(jsClassName: string): void;
|