@rededor/site-front-end-lib 20.0.0-beta.0 → 20.0.0
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/components/cta-wrapper/index.d.ts +3 -1
- package/components/filters/filter-generic/index.d.ts +7 -4
- package/components/footer/index.d.ts +6 -1
- package/components/section-navigation/index.d.ts +2 -0
- package/components/sidebar-navigation/index.d.ts +6 -1
- package/components/sticky-navigation/index.d.ts +6 -3
- package/core/index.d.ts +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +26 -24
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +7 -7
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +12 -12
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +10 -6
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +6 -6
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +30 -18
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +6 -5
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +12 -7
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +18 -18
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +21 -11
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +21 -13
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +85 -59
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +18 -18
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-shared.mjs +7 -7
- package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +1 -1
- package/package.json +73 -74
|
@@ -13,6 +13,7 @@ declare class CtaWrapperComponent implements OnInit {
|
|
|
13
13
|
border: string;
|
|
14
14
|
icon: string;
|
|
15
15
|
}>;
|
|
16
|
+
readonly ctaWrapperItemClick: _angular_core.OutputEmitterRef<Event>;
|
|
16
17
|
carouselCtasConfig: NguCarouselConfig;
|
|
17
18
|
bannerControl: boolean;
|
|
18
19
|
seeMoreControl: boolean;
|
|
@@ -24,8 +25,9 @@ declare class CtaWrapperComponent implements OnInit {
|
|
|
24
25
|
class: string[];
|
|
25
26
|
ngOnInit(): void;
|
|
26
27
|
moreOptions(): void;
|
|
28
|
+
ctaWrapperItemClicked(event: Event): void;
|
|
27
29
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CtaWrapperComponent, never>;
|
|
28
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CtaWrapperComponent, "rdsite-cta-wrapper", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "showTitleAndText": { "alias": "showTitleAndText"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CtaWrapperComponent, "rdsite-cta-wrapper", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "showTitleAndText": { "alias": "showTitleAndText"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, { "ctaWrapperItemClick": "ctaWrapperItemClick"; }, never, never, true, never>;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export { CtaWrapperComponent };
|
|
@@ -2,6 +2,9 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { FormControl } from '@angular/forms';
|
|
4
4
|
import { FilterEvent, FilterSection, FilterControlValue } from '@rededor/site-front-end-lib/core';
|
|
5
|
+
import { CheckboxChangeEvent } from '@rededor/site-front-end-lib/cura/forms/cura-checkbox';
|
|
6
|
+
import { RadioChangeEvent } from '@rededor/site-front-end-lib/cura/forms/cura-radio';
|
|
7
|
+
import { SelectSelectedEvent } from '@rededor/site-front-end-lib/cura/forms/cura-select';
|
|
5
8
|
|
|
6
9
|
declare class FilterGenericComponent implements OnInit {
|
|
7
10
|
private readonly curaApiService;
|
|
@@ -38,10 +41,10 @@ declare class FilterGenericComponent implements OnInit {
|
|
|
38
41
|
'--primary-lighter': string;
|
|
39
42
|
};
|
|
40
43
|
ngOnInit(): void;
|
|
41
|
-
handleInputChange(event:
|
|
42
|
-
handleSelectChange({ value }:
|
|
43
|
-
handleCheckboxChange({ value, checked }:
|
|
44
|
-
handleRadioChange({ value }:
|
|
44
|
+
handleInputChange(event: string | number, control: FormControl): void;
|
|
45
|
+
handleSelectChange({ value }: SelectSelectedEvent, control: FormControl): void;
|
|
46
|
+
handleCheckboxChange({ value, checked }: CheckboxChangeEvent, options: any[]): void;
|
|
47
|
+
handleRadioChange({ value }: RadioChangeEvent, control: FormControl): void;
|
|
45
48
|
filter(): void;
|
|
46
49
|
reset(): void;
|
|
47
50
|
close(): void;
|
|
@@ -13,6 +13,11 @@ declare class FooterComponent implements AfterViewInit {
|
|
|
13
13
|
logo: _angular_core.InputSignal<any>;
|
|
14
14
|
partnerLogo: _angular_core.InputSignal<any>;
|
|
15
15
|
phone: _angular_core.InputSignal<string>;
|
|
16
|
+
dora: _angular_core.InputSignal<{
|
|
17
|
+
number: string;
|
|
18
|
+
link: string;
|
|
19
|
+
imgUrl: string;
|
|
20
|
+
}>;
|
|
16
21
|
socialMenu: _angular_core.InputSignal<MenuSocialMedia[]>;
|
|
17
22
|
logoWidth: _angular_core.InputSignal<number>;
|
|
18
23
|
footerMenu: _angular_core.InputSignal<MenuItem[]>;
|
|
@@ -32,7 +37,7 @@ declare class FooterComponent implements AfterViewInit {
|
|
|
32
37
|
footerPrivacyClicked(event: Event): void;
|
|
33
38
|
footerCookieClicked(event: Event): void;
|
|
34
39
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
35
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FooterComponent, "footer[sl-ftr]", never, { "project": { "alias": "project"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "disclaimer": { "alias": "disclaimer"; "required": false; "isSignal": true; }; "linkPrivacyFooter": { "alias": "linkPrivacyFooter"; "required": false; "isSignal": true; }; "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "partnerLogo": { "alias": "partnerLogo"; "required": false; "isSignal": true; }; "phone": { "alias": "phone"; "required": false; "isSignal": true; }; "socialMenu": { "alias": "socialMenu"; "required": false; "isSignal": true; }; "logoWidth": { "alias": "logoWidth"; "required": false; "isSignal": true; }; "footerMenu": { "alias": "footerMenu"; "required": false; "isSignal": true; }; }, { "footerPrivacyClick": "footerPrivacyClick"; "footerCookieClick": "footerCookieClick"; "footerSocialMediaClick": "footerSocialMediaClick"; "footerMenuItemClick": "footerMenuItemClick"; }, never, never, true, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FooterComponent, "footer[sl-ftr]", never, { "project": { "alias": "project"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "disclaimer": { "alias": "disclaimer"; "required": false; "isSignal": true; }; "linkPrivacyFooter": { "alias": "linkPrivacyFooter"; "required": false; "isSignal": true; }; "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "partnerLogo": { "alias": "partnerLogo"; "required": false; "isSignal": true; }; "phone": { "alias": "phone"; "required": false; "isSignal": true; }; "dora": { "alias": "dora"; "required": false; "isSignal": true; }; "socialMenu": { "alias": "socialMenu"; "required": false; "isSignal": true; }; "logoWidth": { "alias": "logoWidth"; "required": false; "isSignal": true; }; "footerMenu": { "alias": "footerMenu"; "required": false; "isSignal": true; }; }, { "footerPrivacyClick": "footerPrivacyClick"; "footerCookieClick": "footerCookieClick"; "footerSocialMediaClick": "footerSocialMediaClick"; "footerMenuItemClick": "footerMenuItemClick"; }, never, never, true, never>;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
export { FooterComponent };
|
|
@@ -5,6 +5,7 @@ import { Subscription, BehaviorSubject } from 'rxjs';
|
|
|
5
5
|
|
|
6
6
|
declare class SectionNavigationComponent implements OnInit, OnDestroy {
|
|
7
7
|
private curaApiService;
|
|
8
|
+
private router;
|
|
8
9
|
readonly sections: _angular_core.WritableSignal<SectionNavigationData[]>;
|
|
9
10
|
readonly config: _angular_core.WritableSignal<SectionNavigationConfig | undefined>;
|
|
10
11
|
readonly activeSection: _angular_core.WritableSignal<string>;
|
|
@@ -33,6 +34,7 @@ declare class SectionNavigationComponent implements OnInit, OnDestroy {
|
|
|
33
34
|
ngOnInit(): void;
|
|
34
35
|
private windowScroll;
|
|
35
36
|
scrollToMenuAnchor(anchorId: string): void;
|
|
37
|
+
getPath(sectionId: string): string;
|
|
36
38
|
ngOnDestroy(): void;
|
|
37
39
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionNavigationComponent, never>;
|
|
38
40
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionNavigationComponent, "nav[rdsite-section-navigation]", never, { "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "anchorAdjustment": { "alias": "anchorAdjustment"; "required": false; "isSignal": true; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
@@ -4,12 +4,15 @@ import { SectionNavigationData, SectionNavigationConfig } from '@rededor/site-fr
|
|
|
4
4
|
|
|
5
5
|
declare class SidebarNavigationComponent {
|
|
6
6
|
private readonly curaApiService;
|
|
7
|
+
private router;
|
|
7
8
|
readonly sections: _angular_core.WritableSignal<SectionNavigationData[]>;
|
|
8
9
|
readonly config: _angular_core.WritableSignal<SectionNavigationConfig | undefined>;
|
|
9
10
|
readonly activeSection: _angular_core.WritableSignal<string>;
|
|
11
|
+
selectedIndex: _angular_core.WritableSignal<number>;
|
|
10
12
|
readonly anchorAdjustment: _angular_core.InputSignal<number>;
|
|
11
13
|
readonly title: _angular_core.InputSignal<string>;
|
|
12
14
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
15
|
+
readonly padding: _angular_core.InputSignal<number>;
|
|
13
16
|
set navigationSections(value: SectionNavigationData[]);
|
|
14
17
|
set navigationConfig(value: SectionNavigationConfig);
|
|
15
18
|
readonly anchorsEl: _angular_core.Signal<readonly ElementRef<HTMLAnchorElement>[]>;
|
|
@@ -19,8 +22,10 @@ declare class SidebarNavigationComponent {
|
|
|
19
22
|
'--font-family': string;
|
|
20
23
|
};
|
|
21
24
|
private windowScroll;
|
|
25
|
+
getPath(sectionId: string): string;
|
|
26
|
+
onSectionClick(event: SectionNavigationData): void;
|
|
22
27
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SidebarNavigationComponent, never>;
|
|
23
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarNavigationComponent, "nav[rdsite-sidebar-navigation]", never, { "anchorAdjustment": { "alias": "anchorAdjustment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SidebarNavigationComponent, "nav[rdsite-sidebar-navigation]", never, { "anchorAdjustment": { "alias": "anchorAdjustment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export { SidebarNavigationComponent };
|
|
@@ -4,11 +4,12 @@ import { SectionNavigationData, SectionNavigationConfig } from '@rededor/site-fr
|
|
|
4
4
|
|
|
5
5
|
declare class StickyNavigationComponent {
|
|
6
6
|
private curaApiService;
|
|
7
|
+
private router;
|
|
7
8
|
readonly sections: _angular_core.WritableSignal<SectionNavigationData[]>;
|
|
8
9
|
readonly config: _angular_core.WritableSignal<SectionNavigationConfig | undefined>;
|
|
9
10
|
readonly activeSection: _angular_core.WritableSignal<string>;
|
|
10
|
-
isOpen: boolean
|
|
11
|
-
selectedIndex: number
|
|
11
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
12
|
+
selectedIndex: _angular_core.WritableSignal<number>;
|
|
12
13
|
readonly anchorAdjustment: _angular_core.InputSignal<number>;
|
|
13
14
|
readonly title: _angular_core.InputSignal<string>;
|
|
14
15
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -23,7 +24,9 @@ declare class StickyNavigationComponent {
|
|
|
23
24
|
'--font-family': string;
|
|
24
25
|
};
|
|
25
26
|
private windowScroll;
|
|
26
|
-
|
|
27
|
+
getPath(sectionId: string): string;
|
|
28
|
+
onSectionClick(event: SectionNavigationData): void;
|
|
29
|
+
toggleOpen(): void;
|
|
27
30
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StickyNavigationComponent, never>;
|
|
28
31
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StickyNavigationComponent, "nav[rdsite-sticky-navigation]", never, { "anchorAdjustment": { "alias": "anchorAdjustment"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
29
32
|
}
|
package/core/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, InjectionToken, TemplateRef, ModelSignal } from '@angular/core';
|
|
3
|
-
import * as qs from 'qs';
|
|
4
|
-
import * as express_serve_static_core from 'express-serve-static-core';
|
|
5
3
|
import { Request, Response } from 'express';
|
|
6
4
|
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
7
5
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
@@ -49,8 +47,8 @@ interface LibConfig {
|
|
|
49
47
|
}
|
|
50
48
|
declare const LIB_CONFIG: InjectionToken<LibConfig>;
|
|
51
49
|
|
|
52
|
-
declare const REQUEST: InjectionToken<Request
|
|
53
|
-
declare const RESPONSE: InjectionToken<Response
|
|
50
|
+
declare const REQUEST: InjectionToken<Request>;
|
|
51
|
+
declare const RESPONSE: InjectionToken<Response>;
|
|
54
52
|
|
|
55
53
|
declare class RdsiteLinkDirective {
|
|
56
54
|
private router;
|
|
@@ -70,6 +68,7 @@ declare class RdsiteLinkDirective {
|
|
|
70
68
|
private siteUrlList;
|
|
71
69
|
private allowedTags;
|
|
72
70
|
onClick(event: Event): void;
|
|
71
|
+
private verifyUtm;
|
|
73
72
|
private isPhone;
|
|
74
73
|
private isMail;
|
|
75
74
|
private phoneClicked;
|
|
@@ -77,6 +76,7 @@ declare class RdsiteLinkDirective {
|
|
|
77
76
|
private isExternalUrl;
|
|
78
77
|
private isSiteUrl;
|
|
79
78
|
private isAnchor;
|
|
79
|
+
private getAnchor;
|
|
80
80
|
private scrollToAnchor;
|
|
81
81
|
private navigateTo;
|
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdsiteLinkDirective, never>;
|
|
@@ -89,16 +89,16 @@ class AlgoliaDropdownComponent {
|
|
|
89
89
|
optionSelect(event) {
|
|
90
90
|
this.optionSelected.emit(event.target.value);
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
93
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AlgoliaDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
93
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: AlgoliaDropdownComponent, isStandalone: true, selector: "rdsite-algolia-dropdown", inputs: { algoliaConfig: { classPropertyName: "algoliaConfig", publicName: "algoliaConfig", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, maxheight: { classPropertyName: "maxheight", publicName: "maxheight", isSignal: true, isRequired: true, transformFunction: null }, searchdelay: { classPropertyName: "searchdelay", publicName: "searchdelay", isSignal: true, isRequired: true, transformFunction: null }, searchminchars: { classPropertyName: "searchminchars", publicName: "searchminchars", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: true, transformFunction: null }, cssMaxHeight: { classPropertyName: "cssMaxHeight", publicName: "cssMaxHeight", isSignal: true, isRequired: true, transformFunction: null }, searchParams: { classPropertyName: "searchParams", publicName: "searchParams", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { algoliaResults: "algoliaResults", resetResults: "resetResults", optionSelected: "optionSelected" }, ngImport: i0, template: "<cura-dropdown-search\r\n [name]=\"name()\"\r\n [value]=\"value()\"\r\n [placeholder]=\"placeholder()\"\r\n [label]=\"label()\"\r\n [status]=\"status()\"\r\n [icon]=\"icon()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [maxheight]=\"maxheight()\"\r\n [searchdelay]=\"searchdelay()\"\r\n [searchminchars]=\"searchminchars()\"\r\n [helperText]=\"helperText()\"\r\n [cssMaxHeight]=\"cssMaxHeight()\"\r\n (termchange)=\"termChange($event)\"\r\n (optionselect)=\"optionSelect($event)\"\r\n>\r\n <ng-content></ng-content>\r\n</cura-dropdown-search>\r\n", styles: [""] }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AlgoliaDropdownComponent, decorators: [{
|
|
96
96
|
type: Component,
|
|
97
97
|
args: [{ selector: 'rdsite-algolia-dropdown', imports: [], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<cura-dropdown-search\r\n [name]=\"name()\"\r\n [value]=\"value()\"\r\n [placeholder]=\"placeholder()\"\r\n [label]=\"label()\"\r\n [status]=\"status()\"\r\n [icon]=\"icon()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [maxheight]=\"maxheight()\"\r\n [searchdelay]=\"searchdelay()\"\r\n [searchminchars]=\"searchminchars()\"\r\n [helperText]=\"helperText()\"\r\n [cssMaxHeight]=\"cssMaxHeight()\"\r\n (termchange)=\"termChange($event)\"\r\n (optionselect)=\"optionSelect($event)\"\r\n>\r\n <ng-content></ng-content>\r\n</cura-dropdown-search>\r\n" }]
|
|
98
98
|
}], propDecorators: { algoliaConfig: [{
|
|
99
99
|
type: Input,
|
|
100
100
|
args: ['algoliaConfig']
|
|
101
|
-
}] } });
|
|
101
|
+
}], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: true }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], maxheight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxheight", required: true }] }], searchdelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchdelay", required: true }] }], searchminchars: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchminchars", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: true }] }], cssMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "cssMaxHeight", required: true }] }], searchParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchParams", required: false }] }], algoliaResults: [{ type: i0.Output, args: ["algoliaResults"] }], resetResults: [{ type: i0.Output, args: ["resetResults"] }], optionSelected: [{ type: i0.Output, args: ["optionSelected"] }] } });
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-components-algolia-dropdown.mjs","sources":["../../../projects/site-front-end-lib/components/algolia-dropdown/algolia-dropdown.component.ts","../../../projects/site-front-end-lib/components/algolia-dropdown/algolia-dropdown.component.html","../../../projects/site-front-end-lib/components/algolia-dropdown/rededor-site-front-end-lib-components-algolia-dropdown.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, input, output, inject } from '@angular/core';\r\nimport { AlgoliaConfig, AlgoliaSearchParams, RdslAlgoliaMultipleIndex } from '@rededor/site-front-end-lib/core';\r\nimport { AlgoliaSearchApiService } from '@rededor/site-front-end-lib/services/algolia-search-api';\r\n\r\n// TODO: REFATORAR COMPONENTE QUANDO FOR CRIADO O \"CURA-DROPDOWN-SEARCH\" NO CURA EM ANGULAR. (NA VERSÃO 20 DA LIB, ESTE COMPONENTE NÃO FUNCIONA)\r\n@Component({\r\n selector: 'rdsite-algolia-dropdown',\r\n imports: [],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\r\n templateUrl: './algolia-dropdown.component.html',\r\n styleUrl: './algolia-dropdown.component.scss',\r\n})\r\nexport class AlgoliaDropdownComponent {\r\n private readonly algoliaSearchApiService = inject(AlgoliaSearchApiService);\r\n\r\n compAlgoliaConfig: AlgoliaConfig = { id: '', key: '' };\r\n get algoliaConfig() {\r\n return this.compAlgoliaConfig;\r\n }\r\n // eslint-disable-next-line @angular-eslint/no-input-rename\r\n @Input('algoliaConfig')\r\n set algoliaConfig(config: AlgoliaConfig) {\r\n this.ready = false;\r\n if (this.setupAlgolia(config)) {\r\n this.compAlgoliaConfig = config;\r\n this.ready = true;\r\n }\r\n }\r\n readonly name = input.required<string>();\r\n readonly value = input.required<string>();\r\n readonly size = input.required<string>();\r\n readonly label = input.required<string>();\r\n readonly placeholder = input.required<string>();\r\n readonly status = input.required<string>();\r\n readonly icon = input.required<string>();\r\n readonly disabled = input<boolean>(false);\r\n readonly required = input<boolean>(false);\r\n readonly maxheight = input.required<string>();\r\n readonly searchdelay = input.required<string>();\r\n readonly searchminchars = input<number>(2);\r\n readonly helperText = input.required<string>();\r\n readonly cssMaxHeight = input.required<string>();\r\n readonly searchParams = input<AlgoliaSearchParams>({});\r\n\r\n public searchTerm: string = '';\r\n\r\n // Algolia\r\n isMultiple: boolean = false;\r\n\r\n // State\r\n ready: boolean = false;\r\n\r\n readonly algoliaResults = output<any>();\r\n readonly resetResults = output<any>();\r\n readonly optionSelected = output<any>();\r\n\r\n setupAlgolia(config: AlgoliaConfig): boolean {\r\n if (config?.id && config?.key && (config?.index || config?.multipleIndex)) {\r\n if (config.multipleIndex) {\r\n this.isMultiple = true;\r\n } else {\r\n this.isMultiple = false;\r\n }\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n termChange(event: any) {\r\n if (event.target.value) {\r\n this.searchTerm = event?.target?.value;\r\n this.search();\r\n } else {\r\n this.resetResults.emit(event);\r\n }\r\n }\r\n\r\n search(): void {\r\n if (this.searchTerm?.length >= this.searchminchars() && this.ready) {\r\n if (!this.isMultiple) {\r\n this.algoliaSearchApiService.search(this.searchTerm, this.algoliaConfig.index!, this.searchParams()).subscribe({\r\n next: (results) => {\r\n this.algoliaResults.emit(results);\r\n },\r\n });\r\n } else {\r\n const queries: RdslAlgoliaMultipleIndex[] = this.compAlgoliaConfig?.multipleIndex!.map((i: RdslAlgoliaMultipleIndex) => {\r\n return { ...i, query: this.searchTerm };\r\n });\r\n this.algoliaSearchApiService.searchMultipleIndexes(queries).subscribe({\r\n next: (results) => {\r\n this.algoliaResults.emit(results.results);\r\n },\r\n });\r\n }\r\n }\r\n }\r\n\r\n optionSelect(event: any) {\r\n this.optionSelected.emit(event.target.value);\r\n }\r\n}\r\n","<cura-dropdown-search\r\n [name]=\"name()\"\r\n [value]=\"value()\"\r\n [placeholder]=\"placeholder()\"\r\n [label]=\"label()\"\r\n [status]=\"status()\"\r\n [icon]=\"icon()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [maxheight]=\"maxheight()\"\r\n [searchdelay]=\"searchdelay()\"\r\n [searchminchars]=\"searchminchars()\"\r\n [helperText]=\"helperText()\"\r\n [cssMaxHeight]=\"cssMaxHeight()\"\r\n (termchange)=\"termChange($event)\"\r\n (optionselect)=\"optionSelect($event)\"\r\n>\r\n <ng-content></ng-content>\r\n</cura-dropdown-search>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;MAQa,wBAAwB,CAAA;AAPrC,IAAA,WAAA,GAAA;AAQmB,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;QAE1E,IAAA,CAAA,iBAAiB,GAAkB,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;AAa7C,QAAA,IAAA,CAAA,IAAI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AE,CAAC,OAAO,KAAI;AAChB,wBAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;oBACnC,CAAC;AACF,iBAAA,CAAC;YACJ;iBAAO;AACL,gBAAA,MAAM,OAAO,GAA+B,IAAI,CAAC,iBAAiB,EAAE,aAAc,CAAC,GAAG,CAAC,CAAC,CAA2B,KAAI;oBACrH,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;AACzC,gBAAA,CAAC,CAAC;gBACF,IAAI,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACpE,oBAAA,IAAI,EAAE,CAAC,OAAO,KAAI;wBAChB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;oBAC3C,CAAC;AACF,iBAAA,CAAC;YACJ;QACF;IACF;AAEA,IAAA,YAAY,CAAC,KAAU,EAAA;QACrB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IAC9C
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-components-algolia-dropdown.mjs","sources":["../../../projects/site-front-end-lib/components/algolia-dropdown/algolia-dropdown.component.ts","../../../projects/site-front-end-lib/components/algolia-dropdown/algolia-dropdown.component.html","../../../projects/site-front-end-lib/components/algolia-dropdown/rededor-site-front-end-lib-components-algolia-dropdown.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, Input, input, output, inject } from '@angular/core';\r\nimport { AlgoliaConfig, AlgoliaSearchParams, RdslAlgoliaMultipleIndex } from '@rededor/site-front-end-lib/core';\r\nimport { AlgoliaSearchApiService } from '@rededor/site-front-end-lib/services/algolia-search-api';\r\n\r\n// TODO: REFATORAR COMPONENTE QUANDO FOR CRIADO O \"CURA-DROPDOWN-SEARCH\" NO CURA EM ANGULAR. (NA VERSÃO 20 DA LIB, ESTE COMPONENTE NÃO FUNCIONA)\r\n@Component({\r\n selector: 'rdsite-algolia-dropdown',\r\n imports: [],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\r\n templateUrl: './algolia-dropdown.component.html',\r\n styleUrl: './algolia-dropdown.component.scss',\r\n})\r\nexport class AlgoliaDropdownComponent {\r\n private readonly algoliaSearchApiService = inject(AlgoliaSearchApiService);\r\n\r\n compAlgoliaConfig: AlgoliaConfig = { id: '', key: '' };\r\n get algoliaConfig() {\r\n return this.compAlgoliaConfig;\r\n }\r\n // eslint-disable-next-line @angular-eslint/no-input-rename\r\n @Input('algoliaConfig')\r\n set algoliaConfig(config: AlgoliaConfig) {\r\n this.ready = false;\r\n if (this.setupAlgolia(config)) {\r\n this.compAlgoliaConfig = config;\r\n this.ready = true;\r\n }\r\n }\r\n readonly name = input.required<string>();\r\n readonly value = input.required<string>();\r\n readonly size = input.required<string>();\r\n readonly label = input.required<string>();\r\n readonly placeholder = input.required<string>();\r\n readonly status = input.required<string>();\r\n readonly icon = input.required<string>();\r\n readonly disabled = input<boolean>(false);\r\n readonly required = input<boolean>(false);\r\n readonly maxheight = input.required<string>();\r\n readonly searchdelay = input.required<string>();\r\n readonly searchminchars = input<number>(2);\r\n readonly helperText = input.required<string>();\r\n readonly cssMaxHeight = input.required<string>();\r\n readonly searchParams = input<AlgoliaSearchParams>({});\r\n\r\n public searchTerm: string = '';\r\n\r\n // Algolia\r\n isMultiple: boolean = false;\r\n\r\n // State\r\n ready: boolean = false;\r\n\r\n readonly algoliaResults = output<any>();\r\n readonly resetResults = output<any>();\r\n readonly optionSelected = output<any>();\r\n\r\n setupAlgolia(config: AlgoliaConfig): boolean {\r\n if (config?.id && config?.key && (config?.index || config?.multipleIndex)) {\r\n if (config.multipleIndex) {\r\n this.isMultiple = true;\r\n } else {\r\n this.isMultiple = false;\r\n }\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n termChange(event: any) {\r\n if (event.target.value) {\r\n this.searchTerm = event?.target?.value;\r\n this.search();\r\n } else {\r\n this.resetResults.emit(event);\r\n }\r\n }\r\n\r\n search(): void {\r\n if (this.searchTerm?.length >= this.searchminchars() && this.ready) {\r\n if (!this.isMultiple) {\r\n this.algoliaSearchApiService.search(this.searchTerm, this.algoliaConfig.index!, this.searchParams()).subscribe({\r\n next: (results) => {\r\n this.algoliaResults.emit(results);\r\n },\r\n });\r\n } else {\r\n const queries: RdslAlgoliaMultipleIndex[] = this.compAlgoliaConfig?.multipleIndex!.map((i: RdslAlgoliaMultipleIndex) => {\r\n return { ...i, query: this.searchTerm };\r\n });\r\n this.algoliaSearchApiService.searchMultipleIndexes(queries).subscribe({\r\n next: (results) => {\r\n this.algoliaResults.emit(results.results);\r\n },\r\n });\r\n }\r\n }\r\n }\r\n\r\n optionSelect(event: any) {\r\n this.optionSelected.emit(event.target.value);\r\n }\r\n}\r\n","<cura-dropdown-search\r\n [name]=\"name()\"\r\n [value]=\"value()\"\r\n [placeholder]=\"placeholder()\"\r\n [label]=\"label()\"\r\n [status]=\"status()\"\r\n [icon]=\"icon()\"\r\n [disabled]=\"disabled()\"\r\n [required]=\"required()\"\r\n [maxheight]=\"maxheight()\"\r\n [searchdelay]=\"searchdelay()\"\r\n [searchminchars]=\"searchminchars()\"\r\n [helperText]=\"helperText()\"\r\n [cssMaxHeight]=\"cssMaxHeight()\"\r\n (termchange)=\"termChange($event)\"\r\n (optionselect)=\"optionSelect($event)\"\r\n>\r\n <ng-content></ng-content>\r\n</cura-dropdown-search>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;MAQa,wBAAwB,CAAA;AAPrC,IAAA,WAAA,GAAA;AAQmB,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;QAE1E,IAAA,CAAA,iBAAiB,GAAkB,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;AAa7C,QAAA,IAAA,CAAA,IAAI,G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