cloud-ide-lms-model 1.0.50 → 1.0.52
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,24 +1,24 @@
|
|
|
1
1
|
import { IEntityErrorLogger } from "../model/core/entity";
|
|
2
|
-
/** @description Label placement
|
|
2
|
+
/** @description Label placement options: 'floating' will move if value is set or removed, 'fixed' will stay at the same position */
|
|
3
3
|
export type labelPlacementType = 'floating' | 'fixed';
|
|
4
|
-
/** @description
|
|
4
|
+
/** @description Type of control */
|
|
5
5
|
export type controlType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week" | "checkbox" | "select" | "";
|
|
6
|
-
/** @description Input
|
|
6
|
+
/** @description Input types allowed to set value */
|
|
7
7
|
export type inputType = number | string | undefined | null | boolean;
|
|
8
|
-
/** @description
|
|
8
|
+
/** @description Label direction from start or end of control */
|
|
9
9
|
export type labelDirType = 'start' | 'end';
|
|
10
|
-
/** @description Auto
|
|
10
|
+
/** @description Auto capitalization for the value, applicable to words or complete sentences */
|
|
11
11
|
export type autocapitalizeType = "on" | "off" | "words" | 'sentences';
|
|
12
|
-
/** @description
|
|
12
|
+
/** @description Auto complete type to help reader understand the type of value */
|
|
13
13
|
export type autocompleteType = "name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo";
|
|
14
14
|
/** @description Size of control */
|
|
15
15
|
export type themeSize = "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
16
|
-
/** @description
|
|
16
|
+
/** @description Loader type like pill or spinner */
|
|
17
17
|
export type spinnerType = "spinner" | "pill-spinner";
|
|
18
|
-
/** @description
|
|
18
|
+
/** @description Type of icon behavior */
|
|
19
19
|
export type iconType = "round" | "box" | "none";
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description Type of input style like solid, outline, or standard
|
|
22
22
|
* @example solid: solid border and background color, outline: border with outline, standard: no border
|
|
23
23
|
*/
|
|
24
24
|
export type elementStyleType = "solid" | "outline" | "standard";
|
|
@@ -18,18 +18,18 @@ class MTableQueries {
|
|
|
18
18
|
let errorLogger = {};
|
|
19
19
|
if (this.sort) {
|
|
20
20
|
if (((_a = this.sort) === null || _a === void 0 ? void 0 : _a.order) != 'asc' && ((_b = this.sort) === null || _b === void 0 ? void 0 : _b.order) != 'desc' && ((_c = this.sort) === null || _c === void 0 ? void 0 : _c.order) != '') {
|
|
21
|
-
errorLogger.sort = "
|
|
21
|
+
errorLogger.sort = "Incorrect Sort order!";
|
|
22
22
|
}
|
|
23
23
|
if (typeof ((_d = this.sort) === null || _d === void 0 ? void 0 : _d.key) != 'string' && typeof ((_e = this.sort) === null || _e === void 0 ? void 0 : _e.key) != 'number') {
|
|
24
|
-
errorLogger.sort = "
|
|
24
|
+
errorLogger.sort = "Incorrect Sort key!";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
errorLogger.sort = "Sort order and key
|
|
28
|
+
errorLogger.sort = "Sort order and key are required!";
|
|
29
29
|
}
|
|
30
30
|
if (typeof (this.pageIndex) == 'number') {
|
|
31
31
|
if (this.pageIndex < 1) {
|
|
32
|
-
errorLogger.pageIndex = "
|
|
32
|
+
errorLogger.pageIndex = "Incorrect Page Index!";
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
@@ -37,7 +37,7 @@ class MTableQueries {
|
|
|
37
37
|
}
|
|
38
38
|
if (typeof (this.pageSize) == 'number') {
|
|
39
39
|
if (this.pageSize < 1) {
|
|
40
|
-
errorLogger.pageSize = "
|
|
40
|
+
errorLogger.pageSize = "Incorrect Page Size!";
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
else {
|
package/lib/routes/index.d.ts
CHANGED
package/lib/routes/index.js
CHANGED