Каталог файловtilda-catalog-1.2.js
6401 styleStr = color !== '' ? 'color:' + color + ';' : '';6402 } else if (isGradient) {6403 styleStr = color !== '' ? 'color: transparent; background-clip: text; background-image:' + color + ';' : '';6404 }6405 return styleStr;6406}6407 6408/**6409 * Устанавливает стили для характеристик товара в сниппете6410 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара6411 * @param {string} recid - ID записи6412
История файла и сравнение версий
* @param {CatalogOptions} options - Объект настроек
6414function t_catalog_setProductCharacteristicsStyles(snippetContainer, recid, options) { 6415 const productCharacteristics = snippetContainer.querySelector('.js-catalog-prod-all-charcs'); 6416 if (!productCharacteristics || !options.characteristics_typo) return; 6418 t_catalog_parseTypoStylesConfig( 6420 '.t-typography__characteristics', 6421 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6422 // @ts-expect-error ST-2949_5 6423 options.characteristics_typo, 6424 'js-catalog-characteristics-typo-styles-' + recid 6429 * Устанавливает стили для бренда товара в сниппете 6430 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 6431 * @param {string} recid - ID записи 6432 * @param {CatalogOptions} options - Объект настроек 6434function t_catalog_setProductBrandStyles(snippetContainer, recid, options) { 6435 const productBrand = snippetContainer.querySelector('.js-product-brand'); 6436 if (!productBrand || !options.sku_typo) return; 6438 t_catalog_parseTypoStylesConfig( 6440 '.t-catalog__prod-popup__brand', 6441 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6442 // @ts-expect-error ST-2949_5 6444 'js-catalog-brand-typo-styles-' + recid 6449 * Устанавливает стили для артикула товара в сниппете 6450 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 6451 * @param {string} recid - ID записи 6452 * @param {CatalogOptions} options - Объект настроек 6454function t_catalog_setProductSkuStyles(snippetContainer, recid, options) { 6455 const productSku = snippetContainer.querySelector('.js-catalog-prod-sku'); 6456 if (!productSku || !options.sku_typo) return; 6458 t_catalog_parseTypoStylesConfig( 6460 '.t-catalog__prod-popup__sku', 6461 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6462 // @ts-expect-error ST-2949_5 6464 'js-catalog-sku-typo-styles-' + recid 6469 * Устанавливает стили для табов товара в сниппете 6470 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 6471 * @param {string} recid - ID записи 6472 * @param {CatalogOptions} options - Объект настроек 6474function t_catalog_setProductTabsStyles(snippetContainer, recid, options) { 6475 const tabsContainer = snippetContainer.querySelector('.js-catalog-tabs'); 6476 if (!tabsContainer) return; 6478 if (options.title_typo) { 6479 t_catalog_parseTypoStylesConfig( 6481 '.t-catalog__tabs__button-title, .t-catalog__tabs__item-title', 6482 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6483 // @ts-expect-error ST-2949_5 6485 'js-catalog-tabs-typo-title-styles-' + recid, 6492 if (options.descr_typo) { 6493 t_catalog_parseTypoStylesConfig( 6495 '.t-catalog__tabs__content', 6496 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6497 // @ts-expect-error ST-2949_5 6499 'js-catalog-tabs-typo-content-styles-' + recid,