genus-ui 1.90.20 → 1.92.20

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genus-ui",
3
3
  "private": false,
4
- "version": "1.90.20",
4
+ "version": "1.92.20",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
@@ -18,7 +18,7 @@
18
18
  "build": "tsc && vite build"
19
19
  },
20
20
  "dependencies": {
21
- "chart.js": "^4.4.0",
21
+ "chart.js": "^4.4.3",
22
22
  "lit": "^3.1.0"
23
23
  },
24
24
  "devDependencies": {
package/readme.md ADDED
@@ -0,0 +1,40 @@
1
+ # Introduction
2
+
3
+ Genus UI is a framework agnostic UI library that works on any web application built with any javasacript framework.
4
+ The library was built with Lit which is a native web component framework. **Genus** is latin for the word **generic**
5
+
6
+ ## Component Controls
7
+
8
+ The component controls are categorised into **Data** and **Form** controls.
9
+
10
+ ### Data Controls
11
+ - Data Card
12
+ - Data List Item
13
+ - Chart
14
+ - Data Table
15
+
16
+ ### Form Controls
17
+ - Textbox
18
+ - Textarea
19
+ - Dropdown Select
20
+ - File Upload
21
+ - Checkbox Group
22
+ - Radio Button Group
23
+ - Step Wizard
24
+ - Tabs
25
+
26
+ ## Installation
27
+
28
+ ```
29
+ npm install genus-ui
30
+ ```
31
+
32
+ ```
33
+ yarn add genus-ui
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ ```js
39
+ import 'genus-ui';
40
+ ```
@@ -2,13 +2,13 @@ import { LitElement } from 'lit';
2
2
  export declare class GenusChart extends LitElement {
3
3
  chartTitle: string;
4
4
  chartType: string;
5
- chartLabels: never[];
5
+ chartLabels: string[];
6
6
  chartDataSets: never[];
7
7
  chartOptions: {};
8
+ static styles: import("lit").CSSResult[];
8
9
  private _chartCanvas;
9
10
  private _chart;
10
- static styles: import("lit").CSSResult[];
11
- private _createChart;
11
+ createChart: () => void;
12
12
  firstUpdated(): void;
13
13
  updated(): void;
14
14
  render(): import("lit-html").TemplateResult<1>;
@@ -3,8 +3,8 @@ export declare class GenusCheckBox extends LitElement {
3
3
  labelText: string;
4
4
  inputValue: string;
5
5
  withoutIcon: boolean;
6
- getInputValue: () => void;
7
6
  static styles: import("lit").CSSResult[];
7
+ getInputValue: () => void;
8
8
  render(): import("lit-html").TemplateResult<1>;
9
9
  }
10
10
  declare global {
@@ -5,17 +5,16 @@ export declare class GenusDropDown extends LitElement {
5
5
  inputName: string;
6
6
  placeholderText: string;
7
7
  searchPlaceholderText: string;
8
- options: never[];
9
8
  withoutLabel: boolean;
10
9
  withFilter: boolean;
11
10
  displayPosition: string;
12
11
  inputIconSrc: string;
13
12
  static styles: import("lit").CSSResult[];
13
+ private _showOptionsCSS;
14
14
  selectOption: (e: Event) => void;
15
15
  getInputValue: (e: Event) => void;
16
16
  renderDropDownControl: () => TemplateResult;
17
- private _showOptionsCSS;
18
- private _toggleOptions;
17
+ toggleOptions: () => void;
19
18
  static formAssociated: boolean;
20
19
  private _internals;
21
20
  constructor();
@@ -5,9 +5,9 @@ export declare class GenusFileUpload extends LitElement {
5
5
  specificFileTypes: string;
6
6
  withoutIcon: boolean;
7
7
  withoutButtonText: boolean;
8
+ static styles: import("lit").CSSResult[];
8
9
  private _fileInput;
9
10
  getInputValue: () => void;
10
- static styles: import("lit").CSSResult[];
11
11
  renderInputControl: () => TemplateResult;
12
12
  render(): TemplateResult;
13
13
  }
@@ -2,15 +2,15 @@ import { LitElement } from 'lit';
2
2
  export declare class GenusStepWizard extends LitElement {
3
3
  currentStep: number;
4
4
  displayMode: string;
5
- titles: never[];
5
+ titles: string[];
6
+ descriptions: string[];
6
7
  direction: string;
7
8
  static styles: import("lit").CSSResult[];
8
- protected stepContents: Array<HTMLElement>;
9
- protected progressBarsTemplate: any;
10
- protected steps: number;
11
- protected circumference: number;
12
- protected titlesRef: IStepTitles[];
13
- protected circularProgressBar: SVGCircleElement;
9
+ private _stepContents;
10
+ private _progressBarsTemplate;
11
+ private _steps;
12
+ private _circumference;
13
+ private _circularProgressBar;
14
14
  hideCurrentContent: () => void;
15
15
  changeStep: () => void;
16
16
  setProgressBar: () => void;
@@ -20,13 +20,8 @@ export declare class GenusStepWizard extends LitElement {
20
20
  updated(): void;
21
21
  render(): import("lit-html").TemplateResult<1>;
22
22
  }
23
- interface IStepTitles {
24
- stepTitle: string;
25
- stepSubtitle?: string;
26
- }
27
23
  declare global {
28
24
  interface HTMLElementTagNameMap {
29
25
  'genus-step-wizard': GenusStepWizard;
30
26
  }
31
27
  }
32
- export {};
@@ -1,9 +1,9 @@
1
1
  import { LitElement, PropertyValueMap, TemplateResult } from 'lit';
2
2
  export declare class GenusTable extends LitElement {
3
- tableHeaders: never[];
3
+ tableHeaders: string[];
4
4
  tableTitle: string;
5
5
  dataSource: never[];
6
- objectProperties: never[];
6
+ objectProperties: string[];
7
7
  readonly: boolean;
8
8
  withPagination: boolean;
9
9
  resultsPerPage: number;
@@ -12,23 +12,23 @@ export declare class GenusTable extends LitElement {
12
12
  key: string;
13
13
  anchorAttrValue: string;
14
14
  emptyStateIllustration: string;
15
- rowActions: never[];
15
+ rowActions: string[];
16
16
  viewSvgIcon: string;
17
17
  editSvgIcon: string;
18
18
  deleteSvgIcon: string;
19
19
  static styles: import("lit").CSSResult[];
20
+ private _currentPage;
21
+ private _totalPages;
22
+ private _paginatedArray;
23
+ private _dataKey;
24
+ private _targetInput;
25
+ private _isDialogVisible;
20
26
  containsHTML: (str: any) => boolean;
21
- protected currentPage: number;
22
- protected totalPages: number;
23
- protected paginatedArray: never[];
24
- protected dataKey: any;
25
- targetInput: HTMLInputElement;
26
- protected isDialogVisible: boolean;
27
27
  generateTableHeadColumns: () => TemplateResult[];
28
28
  generateDataColumns: (dataObject: any) => TemplateResult[];
29
29
  getInputValue: (e: Event) => void;
30
30
  allowOnlyNumbers: (e: KeyboardEvent) => void;
31
- paginateArray: (data: any, currentPage: any, itemsPerPage?: number) => any;
31
+ paginateArray: (data: any, _currentPage: any, itemsPerPage?: number) => any;
32
32
  nextPage: () => void;
33
33
  previousPage: () => void;
34
34
  displayConfirmationDialog: (e: any) => void;
@@ -1,15 +1,14 @@
1
1
  import { LitElement } from 'lit';
2
2
  export declare class GenusTabContainer extends LitElement {
3
+ tabNames: string[];
4
+ withBorderBottom: boolean;
5
+ static styles: import("lit").CSSResult[];
3
6
  private _tabContents;
4
7
  private _numberOfTabs;
5
8
  private _tabsTemplate;
6
- private _tabNames;
7
- tabNames: never[];
8
- withBorderBottom: boolean;
9
- private _hideCurrentContent;
10
- private _showContent;
11
- private _generateTabs;
12
- static styles: import("lit").CSSResult[];
9
+ hideCurrentContent: () => void;
10
+ showContent: (index: number) => void;
11
+ generateTabs: () => void;
13
12
  firstUpdated(): void;
14
13
  render(): import("lit-html").TemplateResult<1>;
15
14
  }
@@ -5,8 +5,8 @@ export declare class GenusTextArea extends LitElement {
5
5
  withoutLabel: boolean;
6
6
  placeholderText: string;
7
7
  readOnly: boolean;
8
- getInputValue: (e: Event) => void;
9
8
  static styles: import("lit").CSSResult[];
9
+ getInputValue: (e: Event) => void;
10
10
  private _targetInput;
11
11
  updated(): void;
12
12
  render(): import("lit-html").TemplateResult<1>;
@@ -12,22 +12,22 @@ export declare class GenusTextBox extends LitElement {
12
12
  readOnly: boolean;
13
13
  displayPosition: string;
14
14
  static styles: import("lit").CSSResult[];
15
- getInputValue: (e: Event) => void;
16
15
  private _monthNames;
17
16
  private _currentMonth;
18
17
  private _currentYear;
19
18
  private _currentDate;
20
19
  private _targetInput;
21
- private _isLeapYear;
22
- private _getFebDays;
23
20
  private _showMonthsCssClass;
24
21
  private _showCalenderCssClass;
25
- private _toggleCalendar;
26
- private _selectDate;
27
- private _generateDays;
28
- private _setMonth;
29
- private _previousYear;
30
- private _nextYear;
22
+ getInputValue: (e: Event) => void;
23
+ isLeapYear: (year: number) => boolean;
24
+ getFebDays: (year: number) => 29 | 28;
25
+ toggleCalendar: () => void;
26
+ selectDate: (date: string) => void;
27
+ generateDays: (month: number, year: number) => HTMLDivElement;
28
+ setMonth: (index: number) => void;
29
+ previousYear: () => void;
30
+ nextYear: () => void;
31
31
  renderInputControl: (type: string) => any;
32
32
  updated(): void;
33
33
  static formAssociated: boolean;
@@ -3,9 +3,9 @@ export declare class GenusToastMessage extends LitElement {
3
3
  toastMessage: string;
4
4
  toastType: string;
5
5
  showToast: boolean;
6
+ static styles: import("lit").CSSResult[];
6
7
  setToastVisibility: () => void;
7
8
  renderCloseBtn: (toastType: string) => TemplateResult;
8
- static styles: import("lit").CSSResult[];
9
9
  render(): TemplateResult<1>;
10
10
  }
11
11
  declare global {