cloud-ide-lms-model 1.0.24 → 1.0.26

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,6 +1,20 @@
1
1
  import { IEntityErrorLogger } from "../model/core/entity";
2
+ /** @description breakpoints to show supported media screens */
3
+ export type breakPointsType = number | "sm" | "lg" | "md";
4
+ /** @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 */
5
+ export type labelPlacementType = 'floating' | 'fixed';
2
6
  /** @description type of control */
3
7
  export type controlType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week" | "checkbox" | "";
8
+ /** @description Input Type allowed to set value */
9
+ export type inputType = number | string | undefined | null | boolean;
10
+ /** @description Lable direction from start of contrl or end of control */
11
+ export type labelDirType = 'start' | 'end';
12
+ /** @description Auto capatalization for the value and applicable to word or to complete sentance */
13
+ export type autocapitalizeType = "on" | "off" | "words" | 'sentences';
14
+ /** @description auto complete type to help reader what is the type of value */
15
+ 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";
16
+ /** @description Size of control */
17
+ export type themeSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
4
18
  export interface MRequestMiddelware {
5
19
  Validate?: Function;
6
20
  }
@@ -1,15 +1,16 @@
1
+ import { breakPointsType, controlType, labelPlacementType } from "../../common-types";
1
2
  interface ICoreSype {
2
3
  _id?: string;
3
4
  sype_key: string;
4
- sype_type?: string;
5
+ sype_type?: controlType;
5
6
  sype_placeholder?: string;
6
7
  sype_auto_complete?: string;
7
8
  sype_page_id_sypg?: string;
8
9
  sype_title?: string;
9
- sype_title_placement?: SypeTitlePlacement;
10
+ sype_label_placement?: labelPlacementType;
10
11
  sype_min_length?: number;
11
12
  sype_max_length?: number;
12
- sype_width?: SypeWidth;
13
+ sype_width?: breakPointsType;
13
14
  sype_regex?: string;
14
15
  sype_required?: boolean;
15
16
  sype_tooltip?: string;
@@ -17,6 +18,4 @@ interface ICoreSype {
17
18
  sype_default?: boolean | string | number;
18
19
  sype_isactive?: boolean;
19
20
  }
20
- type SypeWidth = number | "sm" | "lg" | "md" | undefined;
21
- type SypeTitlePlacement = "center";
22
21
  export { ICoreSype };
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.24",
8
+ "version": "1.0.26",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",