cloud-ide-lms-model 1.0.50 → 1.0.51

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 like fiexd which will be at same position if vale is there or not, floting will move if vale is set or removed */
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 type of control */
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 Type allowed to set value */
6
+ /** @description Input types allowed to set value */
7
7
  export type inputType = number | string | undefined | null | boolean;
8
- /** @description Lable direction from start of contrl or end of control */
8
+ /** @description Label direction from start or end of control */
9
9
  export type labelDirType = 'start' | 'end';
10
- /** @description Auto capatalization for the value and applicable to word or to complete sentance */
10
+ /** @description Auto capitalization for the value, applicable to words or complete sentences */
11
11
  export type autocapitalizeType = "on" | "off" | "words" | 'sentences';
12
- /** @description auto complete type to help reader what is the type of value */
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 loader type like pill or spinner */
16
+ /** @description Loader type like pill or spinner */
17
17
  export type spinnerType = "spinner" | "pill-spinner";
18
- /** @description type of icons behaviour */
18
+ /** @description Type of icon behavior */
19
19
  export type iconType = "round" | "box" | "none";
20
20
  /**
21
- * @description type of input style like solid, outline or standard
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 = "Incorect Sort order!";
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 = "Incorect Sort key!";
24
+ errorLogger.sort = "Incorrect Sort key!";
25
25
  }
26
26
  }
27
27
  else {
28
- errorLogger.sort = "Sort order and key is required!";
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 = "Incorect Page Index!";
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 = "Incorect Page Size!";
40
+ errorLogger.pageSize = "Incorrect Page Size!";
41
41
  }
42
42
  }
43
43
  else {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.0.50",
8
+ "version": "1.0.51",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",