diff --git a/README.md b/README.md index 9037b1a..c59cfdf 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ Same working example -- https://cg-select.itguild.info/ ![image](https://github.com/apuc/cg-select/blob/main/src/images/WhiteTheme.png) ![image](https://github.com/apuc/cg-select/blob/main/src/images/Categories.png) +Built-in themes are also available: dark, white. To apply them, specify the theme attribute in the select settings and pass one of the values ​​into it dark or white. + All documentation on CG-SELECT is located in the folder of the same name. The documentation describes all methods and variables, there are also examples of passing settings to select. You can also open it on the page with an example, or follow the link below. **To view it, follow the link -** https://cg-select.itguild.info/up_/documentation/index.html diff --git a/docs/classes/cg_select.CGSelect.html b/docs/classes/cg_select.CGSelect.html index adfb032..bb487e6 100644 --- a/docs/classes/cg_select.CGSelect.html +++ b/docs/classes/cg_select.CGSelect.html @@ -54,9 +54,9 @@

Class CGSelect

@@ -171,7 +171,7 @@ fill="var(--color-text)" id="icon-1024-text" >btnCntr?buttonAction? caretcarriage The constructor takes an object and renders the select.

Example

-
options = {
selector: 'Unique selector',
selected: 'Selected item',
placeholder: '...',
lable: '...'
items: [string|number|object],
theme: string,
searchMode: true/false,
closeOnSelect: true/false,
nativeSelectMode: true/false,
listDisplayMode: true/false,
language: 'ru/en',
styles: {
head: {
background: '...',
},
list: {...},
chips: {...},
caret: {...},
placeholder: {...},
lable: {..},
},
event: '...',
url: 'http/...',
multiselect: true/false,
multiselectTag: true/false,
} +
options = {
selector: 'Unique selector',
selected: 'Selected item',
placeholder: '...',
lable: '...'
items: [string|number|object],
theme: string,
searchMode: true/false,
closeOnSelect: true/false,
nativeSelectMode: true/false,
listDisplayMode: true/false,
language: 'ru/en',
styles: {
head: {
background: '...',
},
list: {...},
chips: {...},
carriage: {...},
placeholder: {...},
lable: {..},
},
event: '...',
url: 'http/...',
multiselect: true/false,
multiselectTag: true/false,
}
@@ -705,7 +705,7 @@
- btnCntr?: + buttonAction?: null | Element @@ -744,7 +744,7 @@ >
- caret: + carriage: undefined | null

An optional parameter responsible for switching between different themes, the - classic theme is set by default. + classic theme is set by default. Can take on a value dark, white.

@@ -3851,47 +3767,49 @@
diff --git a/docs/functions/Utils.clearSelect.html b/docs/functions/Utils.clearSelect.html index 2c8d342..2dad3de 100644 --- a/docs/functions/Utils.clearSelect.html +++ b/docs/functions/Utils.clearSelect.html @@ -171,34 +171,6 @@

Member Visibility

diff --git a/docs/functions/Utils.createSelected.html b/docs/functions/Utils.createSelected.html index 0846f18..3444708 100644 --- a/docs/functions/Utils.createSelected.html +++ b/docs/functions/Utils.createSelected.html @@ -177,34 +177,6 @@

Member Visibility

diff --git a/docs/functions/Utils.customStyles.html b/docs/functions/Utils.customStyles.html index f1d03df..0f4377a 100644 --- a/docs/functions/Utils.customStyles.html +++ b/docs/functions/Utils.customStyles.html @@ -164,34 +164,6 @@

Member Visibility

diff --git a/docs/functions/Utils.customStylesFormat.html b/docs/functions/Utils.customStylesFormat.html index 2148fbc..6dab0e4 100644 --- a/docs/functions/Utils.customStylesFormat.html +++ b/docs/functions/Utils.customStylesFormat.html @@ -153,34 +153,6 @@

Member Visibility

diff --git a/docs/functions/Utils.getFormatItem.html b/docs/functions/Utils.getFormatItem.html index 673e2ac..ac21202 100644 --- a/docs/functions/Utils.getFormatItem.html +++ b/docs/functions/Utils.getFormatItem.html @@ -162,34 +162,6 @@

Member Visibility

diff --git a/docs/functions/Utils.getSelectText.html b/docs/functions/Utils.getSelectText.html index da12932..05c0114 100644 --- a/docs/functions/Utils.getSelectText.html +++ b/docs/functions/Utils.getSelectText.html @@ -176,34 +176,6 @@

Member Visibility

diff --git a/docs/functions/Utils.nativeOptionMultiple.html b/docs/functions/Utils.nativeOptionMultiple.html index 3495a78..78cd7fe 100644 --- a/docs/functions/Utils.nativeOptionMultiple.html +++ b/docs/functions/Utils.nativeOptionMultiple.html @@ -170,34 +170,6 @@

Member Visibility

diff --git a/docs/functions/Utils.nativeOptionOrdinary.html b/docs/functions/Utils.nativeOptionOrdinary.html index 59a051f..490c33e 100644 --- a/docs/functions/Utils.nativeOptionOrdinary.html +++ b/docs/functions/Utils.nativeOptionOrdinary.html @@ -161,34 +161,6 @@

Member Visibility

diff --git a/docs/functions/components_create_element_create_element.createBreadCrumb.html b/docs/functions/components_create_element_create_element.createBreadCrumb.html index 284a0ac..b88f0fa 100644 --- a/docs/functions/components_create_element_create_element.createBreadCrumb.html +++ b/docs/functions/components_create_element_create_element.createBreadCrumb.html @@ -191,34 +191,6 @@

Member Visibility

diff --git a/docs/functions/components_create_element_create_element.createInputSearch.html b/docs/functions/components_create_element_create_element.createInputSearch.html index eea535c..2141f58 100644 --- a/docs/functions/components_create_element_create_element.createInputSearch.html +++ b/docs/functions/components_create_element_create_element.createInputSearch.html @@ -163,34 +163,6 @@

Member Visibility

diff --git a/docs/functions/components_create_element_create_element.createNativeSelect.html b/docs/functions/components_create_element_create_element.createNativeSelect.html index 2b37342..c775ff8 100644 --- a/docs/functions/components_create_element_create_element.createNativeSelect.html +++ b/docs/functions/components_create_element_create_element.createNativeSelect.html @@ -140,34 +140,6 @@

Member Visibility

diff --git a/docs/functions/components_create_element_create_element.createNativeSelectOption.html b/docs/functions/components_create_element_create_element.createNativeSelectOption.html index 8798ab4..536b758 100644 --- a/docs/functions/components_create_element_create_element.createNativeSelectOption.html +++ b/docs/functions/components_create_element_create_element.createNativeSelectOption.html @@ -141,34 +141,6 @@

Member Visibility

diff --git a/docs/functions/components_theme_theme.changeTheme.html b/docs/functions/components_theme_theme.changeTheme.html index 6eec86c..04cdebb 100644 --- a/docs/functions/components_theme_theme.changeTheme.html +++ b/docs/functions/components_theme_theme.changeTheme.html @@ -143,34 +143,6 @@

Member Visibility

diff --git a/docs/index.html b/docs/index.html index 969c297..78c0141 100644 --- a/docs/index.html +++ b/docs/index.html @@ -61,7 +61,7 @@ -

version ~ 0.2.31

+

version ~ 0.2.32

This component allows you to create a custom select. It offers more flexible @@ -158,6 +158,10 @@ image image

+

+ Built-in themes are also available: dark, white. To apply them, specify the theme + attribute in the select settings and pass one of the values ​​into it dark or white. +

All documentation on CG-SELECT is located in the folder of the same name. The documentation describes all methods and variables, there are also examples of passing @@ -244,34 +248,6 @@

Member Visibility

@@ -386,47 +306,49 @@
diff --git a/docs/interfaces/components_utils_urils_interface.IDataItem.html b/docs/interfaces/components_utils_urils_interface.IDataItem.html index cde293c..890a26c 100644 --- a/docs/interfaces/components_utils_urils_interface.IDataItem.html +++ b/docs/interfaces/components_utils_urils_interface.IDataItem.html @@ -312,34 +312,6 @@

Member Visibility

diff --git a/docs/interfaces/components_utils_urils_interface.ISelectedItems.html b/docs/interfaces/components_utils_urils_interface.ISelectedItems.html index 96c0883..b56c3f2 100644 --- a/docs/interfaces/components_utils_urils_interface.ISelectedItems.html +++ b/docs/interfaces/components_utils_urils_interface.ISelectedItems.html @@ -452,34 +452,6 @@

Member Visibility

diff --git a/docs/interfaces/interfaces_cg_select_interface.ICgSelect.html b/docs/interfaces/interfaces_cg_select_interface.ICgSelect.html index d905ec6..8ce3613 100644 --- a/docs/interfaces/interfaces_cg_select_interface.ICgSelect.html +++ b/docs/interfaces/interfaces_cg_select_interface.ICgSelect.html @@ -960,34 +960,6 @@

Member Visibility

diff --git a/docs/interfaces/interfaces_cg_select_interface.IStyle.html b/docs/interfaces/interfaces_cg_select_interface.IStyle.html index ca5aaae..74af860 100644 --- a/docs/interfaces/interfaces_cg_select_interface.IStyle.html +++ b/docs/interfaces/interfaces_cg_select_interface.IStyle.html @@ -471,34 +471,6 @@

Member Visibility

diff --git a/docs/interfaces/interfaces_items_interface.IItems.html b/docs/interfaces/interfaces_items_interface.IItems.html index 8806fb2..ed0bed5 100644 --- a/docs/interfaces/interfaces_items_interface.IItems.html +++ b/docs/interfaces/interfaces_items_interface.IItems.html @@ -293,34 +293,6 @@

Member Visibility

diff --git a/docs/interfaces/interfaces_language_interface.ILanguage.html b/docs/interfaces/interfaces_language_interface.ILanguage.html index 409a6bb..2a24392 100644 --- a/docs/interfaces/interfaces_language_interface.ILanguage.html +++ b/docs/interfaces/interfaces_language_interface.ILanguage.html @@ -293,34 +293,6 @@

Member Visibility

diff --git a/docs/modules.html b/docs/modules.html index d49b2dd..1857633 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -53,13 +53,38 @@
-

cg-select

+

Modules in CG-Select

-

Index

-

Modules

+

Main

+ +

Utils

+ +

Create-element

+
@@ -171,34 +186,6 @@

Member Visibility

    -
  • - -
  • -
  • - -
  • -
  • - -
@@ -313,47 +244,49 @@
diff --git a/docs/modules/cg_select.html b/docs/modules/cg_select.html index 5a60f2c..48de942 100644 --- a/docs/modules/cg_select.html +++ b/docs/modules/cg_select.html @@ -54,8 +54,8 @@

Module cg-select

@@ -124,34 +124,6 @@

Member Visibility

    -
  • - -
  • -
  • - -
  • -
  • - -
@@ -266,43 +182,49 @@
diff --git a/docs/modules/components_create_element_create_element_interface.html b/docs/modules/components_create_element_create_element_interface.html index 5e2ac98..8eaf003 100644 --- a/docs/modules/components_create_element_create_element_interface.html +++ b/docs/modules/components_create_element_create_element_interface.html @@ -129,34 +129,6 @@

Member Visibility

diff --git a/docs/modules/components_theme_theme.html b/docs/modules/components_theme_theme.html index e4bb26a..a0a4c38 100644 --- a/docs/modules/components_theme_theme.html +++ b/docs/modules/components_theme_theme.html @@ -125,34 +125,6 @@

Member Visibility

diff --git a/docs/modules/components_utils_urils_interface.html b/docs/modules/components_utils_urils_interface.html index a3ad5fd..cf487e1 100644 --- a/docs/modules/components_utils_urils_interface.html +++ b/docs/modules/components_utils_urils_interface.html @@ -135,34 +135,6 @@

Member Visibility

diff --git a/docs/modules/interfaces_cg_select_interface.html b/docs/modules/interfaces_cg_select_interface.html index 22791ec..b93fb7f 100644 --- a/docs/modules/interfaces_cg_select_interface.html +++ b/docs/modules/interfaces_cg_select_interface.html @@ -135,34 +135,6 @@

Member Visibility

diff --git a/docs/modules/interfaces_items_interface.html b/docs/modules/interfaces_items_interface.html index c7d0222..070de95 100644 --- a/docs/modules/interfaces_items_interface.html +++ b/docs/modules/interfaces_items_interface.html @@ -125,34 +125,6 @@

Member Visibility

diff --git a/docs/modules/interfaces_language_interface.html b/docs/modules/interfaces_language_interface.html index 1c0fe92..a024a97 100644 --- a/docs/modules/interfaces_language_interface.html +++ b/docs/modules/interfaces_language_interface.html @@ -125,34 +125,6 @@

Member Visibility

diff --git a/docs/modules/language_language.html b/docs/modules/language_language.html index f0763f9..de47c03 100644 --- a/docs/modules/language_language.html +++ b/docs/modules/language_language.html @@ -132,34 +132,6 @@

Member Visibility

diff --git a/docs/variables/language_language.en.html b/docs/variables/language_language.en.html index 9edcf6a..616e42e 100644 --- a/docs/variables/language_language.en.html +++ b/docs/variables/language_language.en.html @@ -99,34 +99,6 @@

Member Visibility

diff --git a/docs/variables/language_language.ru.html b/docs/variables/language_language.ru.html index 8bd411b..50adb20 100644 --- a/docs/variables/language_language.ru.html +++ b/docs/variables/language_language.ru.html @@ -99,34 +99,6 @@

Member Visibility

diff --git a/src/cg-select.ts b/src/cg-select.ts index d5994a1..2aea3cb 100644 --- a/src/cg-select.ts +++ b/src/cg-select.ts @@ -16,7 +16,7 @@ import { nativeOptionMultiple, nativeOptionOrdinary, } from './components/utils/utils'; -import { IDataItem, ISelectedItems } from './components/utils/urils.interface'; +import { IDataItem, ISelectedItems } from './components/utils/utils.interface'; import { ICgSelect, IStyle } from './interfaces/cg-select.interface'; import { IItems } from './interfaces/items.interface'; diff --git a/src/components/utils/urils.interface.ts b/src/components/utils/utils.interface.ts similarity index 100% rename from src/components/utils/urils.interface.ts rename to src/components/utils/utils.interface.ts diff --git a/src/components/utils/utils.ts b/src/components/utils/utils.ts index 494062a..ab6780a 100644 --- a/src/components/utils/utils.ts +++ b/src/components/utils/utils.ts @@ -4,7 +4,7 @@ */ import { IStyle } from 'interfaces/cg-select.interface'; import { IItems } from 'interfaces/items.interface'; -import { ISelectedItems } from './urils.interface'; +import { ISelectedItems } from './utils.interface'; /** * Converting each item obtained from the Items field;