From aab59fd24348229fdefe6141efaae48adac9f12b Mon Sep 17 00:00:00 2001 From: MaxOvs Date: Mon, 9 Jan 2023 18:01:31 +0300 Subject: [PATCH] Fixed naming --- src/cg-selectTS.ts | 10 +++++----- src/components/create-element/create-elementTs.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cg-selectTS.ts b/src/cg-selectTS.ts index 6e5ee40..4544967 100644 --- a/src/cg-selectTS.ts +++ b/src/cg-selectTS.ts @@ -1,11 +1,9 @@ -import { ICreateBreadCrumb } from './components/create-element/create-element.interface'; import { - CreateBreadCrumb, + createBreadCrumb, createNativeSelect, createNativeSelectOption, } from './components/create-element/create-elementTs'; - -import { IDataItem, ITextSelect } from './components/utils/urils.interface'; +import { ICreateBreadCrumb } from './components/create-element/create-element.interface'; import { createSelected, @@ -14,9 +12,11 @@ import { nativeOptionMultiple, nativeOptionOrdinary, } from './components/utils/utilsTs'; +import { IDataItem, ITextSelect } from './components/utils/urils.interface'; import { ICgSelect } from './interfaces/cg-select.interface'; import { IItems } from './interfaces/items.interface'; + import './main.scss'; export class CGSelect implements ICgSelect { @@ -337,7 +337,7 @@ export class CGSelect implements ICgSelect { this.selectedItems.push(item.title); select!.appendChild(ulMultipul); ulMultipul.appendChild( - CreateBreadCrumb(dataBreadCrumb, item.title, index, item.id), + createBreadCrumb(dataBreadCrumb, item.title, index, item.id), ); } } else { diff --git a/src/components/create-element/create-elementTs.ts b/src/components/create-element/create-elementTs.ts index 49da6bf..5c5278f 100644 --- a/src/components/create-element/create-elementTs.ts +++ b/src/components/create-element/create-elementTs.ts @@ -32,7 +32,7 @@ export function createNativeSelectOption(): HTMLOptionElement { * @param {string} id уникальное id выбранного элемента * @returns {HTMLElement} возвращает сформированный HTMLElement chips item */ -export function CreateBreadCrumb( +export function createBreadCrumb( data: ICreateBreadCrumb, title: string, index: number,