mftsccs-browser 2.1.83-beta → 2.1.85-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.
- package/dist/main.bundle.js +1 -2
- package/dist/serviceWorker.bundle.js +1 -2
- package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +2 -0
- package/dist/types/Validator/interface.d.ts +7 -6
- package/dist/types/Validator/validator.d.ts +7 -31
- package/dist/types/Widgets/RenderWidgetService.d.ts +1 -6
- package/package.json +2 -3
|
@@ -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;
|
|
@@ -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
|
-
|
|
7
|
-
dataType
|
|
8
|
-
pattern
|
|
9
|
-
conceptType
|
|
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
|
|
17
|
-
isUnique
|
|
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
|
|
12
|
-
* @param
|
|
13
|
-
* @
|
|
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(
|
|
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
|
|
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(
|
|
36
|
+
validate(options: FormFieldData): any;
|
|
61
37
|
}
|
|
@@ -34,12 +34,7 @@ export declare function unwrapContainers(parentElement: HTMLElement, selector: s
|
|
|
34
34
|
* @param widgetId
|
|
35
35
|
*/
|
|
36
36
|
export declare function openDocumentationPreviewModal(widgetId: number): Promise<void>;
|
|
37
|
-
export declare function showWidgetDocumentation(): void;
|
|
38
|
-
/**
|
|
39
|
-
* initialize editor to show documentation
|
|
40
|
-
* @param previewContainer
|
|
41
|
-
*/
|
|
42
|
-
export declare function initializeEditor(previewContainer: HTMLDivElement): void;
|
|
37
|
+
export declare function showWidgetDocumentation(widgetDocumentData: string): void;
|
|
43
38
|
/**
|
|
44
39
|
* Opens modal
|
|
45
40
|
* @param modalId
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mftsccs-browser",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
|
|
3
|
+
"version": "2.1.85-beta",
|
|
4
|
+
"environment": "production",
|
|
5
5
|
"description": "Full Pack of concept and connection system",
|
|
6
6
|
"main": "dist/main.bundle.js",
|
|
7
7
|
"types": "dist/types/app.d.ts",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/Mentor-Friends/tsccs-dev#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@ckeditor/ckeditor5-build-classic": "^44.3.0",
|
|
52
51
|
"ncp": "^2.0.0"
|
|
53
52
|
}
|
|
54
53
|
}
|