mftsccs-browser 2.1.159-beta → 2.1.161-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.
@@ -1 +1 @@
1
- export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array> | null | undefined>;
1
+ export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>> | null | undefined>;
@@ -156,6 +156,16 @@ export declare class AccessControlService {
156
156
  enable: boolean;
157
157
  connectionTypeId?: number;
158
158
  }): Promise<any>;
159
+ /**
160
+ * Sets access inheritance for multiple concepts in bulk.
161
+ */
162
+ static setAccessInheritanceBulk(request: {
163
+ items: Array<{
164
+ mainConceptId: number;
165
+ connectionTypeIds: number[];
166
+ }>;
167
+ enable: boolean;
168
+ }): Promise<any>;
159
169
  /**
160
170
  * Gets the status of access inheritance for a concept.
161
171
  */
@@ -17,6 +17,7 @@ export declare class BuilderStatefulWidget extends StatefulWidget {
17
17
  widgetType: string;
18
18
  parentConceptList: any;
19
19
  customFunctions: TCustomFunction[];
20
+ widgetDependenciesData: string;
20
21
  getUserId(): Promise<any>;
21
22
  getTypeValueList(typeName?: string): Promise<unknown>;
22
23
  setTitle(title: string): void;
@@ -30,6 +31,7 @@ export declare class BuilderStatefulWidget extends StatefulWidget {
30
31
  * @param parent This is the function that creates a new div and then mounts the html element to the parent.
31
32
  */
32
33
  mount(parent: HTMLElement): Promise<void>;
34
+ render_widgetDependencies(): void;
33
35
  render_custom_functions(): void;
34
36
  /**
35
37
  * This function will be called after the component mounts.
@@ -0,0 +1,17 @@
1
+ export interface CacheStats {
2
+ cacheSize: number;
3
+ pendingRequests: number;
4
+ keys: string[];
5
+ }
6
+ export declare class DataCache<T = any> {
7
+ static cache: Map<string, any>;
8
+ static promises: Map<string, Promise<any>>;
9
+ static get<K>(key: string, fetcher: () => Promise<K>): Promise<K>;
10
+ static has(key: string): boolean;
11
+ static peek<K>(key: string): K | undefined;
12
+ static invalidate(key: string): void;
13
+ static clear(): void;
14
+ static set<K>(key: string, data: K): Promise<K>;
15
+ static stats(): CacheStats;
16
+ }
17
+ export declare function initWidgetCache(): DataCache<any>;
@@ -1,5 +1,7 @@
1
1
  import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
2
2
  export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
3
+ export declare function importLatestWidget(widgetId: number, attachNode?: HTMLElement, props?: any, showDocumentation?: boolean): Promise<WidgetTree | undefined>;
4
+ export declare function renderImportedWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
3
5
  export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
4
6
  export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
5
7
  export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
@@ -25,4 +25,5 @@ export declare class WidgetTree {
25
25
  sChildId?: number;
26
26
  isPublished?: boolean;
27
27
  useLatest?: boolean;
28
+ dependency: string;
28
29
  }
@@ -127,7 +127,7 @@ export { removeAllChildren } from './Services/Common/RemoveAllChild';
127
127
  export { getUserDetails } from './Services/User/UserFromLocalStorage';
128
128
  export { CountInfo } from './DataStructures/Count/CountInfo';
129
129
  export { Selector } from './Api/Prototype/Selector';
130
- export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
130
+ export { importLatestWidget, renderImportedWidget, renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
131
131
  export { CreateData } from './Services/automated/automated-concept-connection';
132
132
  export { Prototype } from './DataStructures/Prototype/Prototype';
133
133
  export { createPrototypeLocal } from './prototype/prototype.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.1.159-beta",
3
+ "version": "2.1.161-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",