cfc-ui-test
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
1,237 lines • 139 kB
JavaScript
import * as i0 from '@angular/core';
import { Directive, Input, Component, EventEmitter, Output, ChangeDetectionStrategy, ViewChild, NgModule, CUSTOM_ELEMENTS_SCHEMA, Injectable, Optional, Inject } from '@angular/core';
import { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';
import * as i2 from '@angular/forms';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import * as i1 from '@angular/router';
import { RouterModule } from '@angular/router';
import * as i1$1 from '@angular/common';
import { CommonModule } from '@angular/common';
import dayjs from 'dayjs';
import 'dayjs/locale/pt-br';
import localeData from 'dayjs/plugin/localeData';
import { provideHttpClient } from '@angular/common/http';
var AvatarDensity;
(function (AvatarDensity) {
AvatarDensity["large"] = "large";
AvatarDensity["medium"] = "medium";
AvatarDensity["small"] = "small";
})(AvatarDensity || (AvatarDensity = {}));
var TooltipPlace;
(function (TooltipPlace) {
TooltipPlace["top"] = "top";
TooltipPlace["right"] = "right";
TooltipPlace["bottom"] = "bottom";
TooltipPlace["left"] = "left";
})(TooltipPlace || (TooltipPlace = {}));
class ControllerDirective {
el;
directiveName;
directiveNames;
applyDirective;
applyDirectives;
constructor(el) {
this.el = el;
}
ngOnChanges() {
this.controlDirectives();
}
controlDirectives() {
if (this.applyDirective && this.directiveName) {
this.updateDirective(this.applyDirective, this.directiveName);
}
else {
this.updateDirectives();
}
}
updateDirective(directiveFlag, directiveName) {
if ((typeof directiveFlag === 'boolean' && directiveFlag) || (typeof directiveFlag === 'string' && directiveFlag === 'true')) {
this.el.nativeElement.setAttribute(directiveName, '');
}
else {
this.el.nativeElement.removeAttribute(directiveName);
}
}
updateDirectives() {
if (!this.directiveNames)
return;
if (Array.isArray(this.directiveNames)) {
this.directiveNames.forEach((directiveName, index) => {
if (this.applyDirectives && Array.isArray(this.applyDirectives)) {
this.updateDirective(this.applyDirectives[index], directiveName);
}
});
}
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ControllerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: ControllerDirective, selector: "[cfcDirectiveController]", inputs: { directiveName: "directiveName", directiveNames: "directiveNames", applyDirective: "applyDirective", applyDirectives: "applyDirectives" }, usesOnChanges: true, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ControllerDirective, decorators: [{
type: Directive,
args: [{
selector: '[cfcDirectiveController]'
}]
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { directiveName: [{
type: Input
}], directiveNames: [{
type: Input
}], applyDirective: [{
type: Input
}], applyDirectives: [{
type: Input
}] } });
class AvatarComponent {
name;
density = AvatarDensity.medium;
tooltipText = 'tooltip CFC';
tooltipPlace = TooltipPlace.bottom;
iconic = false;
imageUrl = '';
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AvatarComponent, selector: "cfc-avatar", inputs: { name: "name", density: "density", tooltipText: "tooltipText", tooltipPlace: "tooltipPlace", iconic: "iconic", imageUrl: "imageUrl" }, ngImport: i0, template: "<br-avatar\r\n cfcDirectiveController\r\n directiveName=\"iconic\"\r\n [applyDirective]=\"iconic\"\r\n [name]=\"name\"\r\n [density]=\"density\"\r\n tooltip\r\n [tooltip-text]=\"tooltipText\"\r\n [tooltip-place]=\"tooltipPlace\"\r\n [image]=\"imageUrl\"\r\n></br-avatar>\r\n", styles: [""], dependencies: [{ kind: "directive", type: ControllerDirective, selector: "[cfcDirectiveController]", inputs: ["directiveName", "directiveNames", "applyDirective", "applyDirectives"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AvatarComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-avatar', template: "<br-avatar\r\n cfcDirectiveController\r\n directiveName=\"iconic\"\r\n [applyDirective]=\"iconic\"\r\n [name]=\"name\"\r\n [density]=\"density\"\r\n tooltip\r\n [tooltip-text]=\"tooltipText\"\r\n [tooltip-place]=\"tooltipPlace\"\r\n [image]=\"imageUrl\"\r\n></br-avatar>\r\n" }]
}], propDecorators: { name: [{
type: Input
}], density: [{
type: Input
}], tooltipText: [{
type: Input
}], tooltipPlace: [{
type: Input
}], iconic: [{
type: Input
}], imageUrl: [{
type: Input
}] } });
class BreadcrumbComponent {
label;
links;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: BreadcrumbComponent, selector: "cfc-breadcrumb", inputs: { label: "label", links: "links" }, ngImport: i0, template: "<br-breadcrumb\r\n [label]=\"label\"\r\n [links]=\"links\"\r\n></br-breadcrumb>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-breadcrumb', template: "<br-breadcrumb\r\n [label]=\"label\"\r\n [links]=\"links\"\r\n></br-breadcrumb>\r\n" }]
}], propDecorators: { label: [{
type: Input
}], links: [{
type: Input
}] } });
var ButtonType;
(function (ButtonType) {
ButtonType["primary"] = "primary";
ButtonType["secondary"] = "secondary";
})(ButtonType || (ButtonType = {}));
var ButtonDensity;
(function (ButtonDensity) {
ButtonDensity["large"] = "large";
ButtonDensity["middle"] = "middle";
ButtonDensity["small"] = "small";
ButtonDensity["xsmall"] = "xsmall";
})(ButtonDensity || (ButtonDensity = {}));
class ButtonComponent {
label = 'button';
type = ButtonType.primary;
submit = false;
circle = false;
density = ButtonDensity.middle;
disabled = false;
block = false;
icon = '';
active = true;
inverted = false;
loading = false;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, selector: "cfc-button", inputs: { label: "label", type: "type", submit: "submit", circle: "circle", density: "density", disabled: "disabled", block: "block", icon: "icon", active: "active", inverted: "inverted", loading: "loading" }, ngImport: i0, template: "<br-button\r\n cfcDirectiveController\r\n [directiveNames]=\"[\r\n 'circle',\r\n 'submit',\r\n 'disabled',\r\n 'block',\r\n 'active',\r\n 'inverted',\r\n 'loading'\r\n ]\"\r\n [applyDirectives]=\"[\r\n circle,\r\n submit,\r\n disabled,\r\n block,\r\n active,\r\n inverted,\r\n loading\r\n ]\"\r\n [label]=\"label\"\r\n [type]=\"type\"\r\n [icon]=\"icon\"\r\n [density]=\"density\"\r\n></br-button>\r\n", styles: [""], dependencies: [{ kind: "directive", type: ControllerDirective, selector: "[cfcDirectiveController]", inputs: ["directiveName", "directiveNames", "applyDirective", "applyDirectives"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-button', template: "<br-button\r\n cfcDirectiveController\r\n [directiveNames]=\"[\r\n 'circle',\r\n 'submit',\r\n 'disabled',\r\n 'block',\r\n 'active',\r\n 'inverted',\r\n 'loading'\r\n ]\"\r\n [applyDirectives]=\"[\r\n circle,\r\n submit,\r\n disabled,\r\n block,\r\n active,\r\n inverted,\r\n loading\r\n ]\"\r\n [label]=\"label\"\r\n [type]=\"type\"\r\n [icon]=\"icon\"\r\n [density]=\"density\"\r\n></br-button>\r\n" }]
}], propDecorators: { label: [{
type: Input
}], type: [{
type: Input
}], submit: [{
type: Input
}], circle: [{
type: Input
}], density: [{
type: Input
}], disabled: [{
type: Input
}], block: [{
type: Input
}], icon: [{
type: Input
}], active: [{
type: Input
}], inverted: [{
type: Input
}], loading: [{
type: Input
}] } });
class CardComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CardComponent, selector: "cfc-card", ngImport: i0, template: "<br-card>\r\n\r\n</br-card>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CardComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-card', template: "<br-card>\r\n\r\n</br-card>\r\n" }]
}] });
class CarouselComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CarouselComponent, selector: "cfc-carousel", ngImport: i0, template: "<br-carousel></br-carousel>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CarouselComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-carousel', template: "<br-carousel></br-carousel>\r\n" }]
}] });
class CfcUiRootComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CfcUiRootComponent, selector: "cfc-ui-root", ngImport: i0, template: `
<router-outlet></router-outlet>
`, isInline: true, styles: [""], dependencies: [{ kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRootComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-ui-root', template: `
<router-outlet></router-outlet>
` }]
}] });
class StorybookComponent {
constructor() { }
ngOnInit() {
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StorybookComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StorybookComponent, selector: "cfc-storybook", ngImport: i0, template: "<p>\n storybook works!\n</p>\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StorybookComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-storybook', template: "<p>\n storybook works!\n</p>\n" }]
}], ctorParameters: () => [] });
const components = [
'alert',
'avatar',
'breadcrumb',
'button',
'card',
'carousel',
'checkbox',
'collapse',
'cookie-bar',
'datetimer-picker',
'divider',
'footer',
'header',
'icon',
'input',
'list',
'logo',
'magic-button',
'menu',
'message',
'modal',
'notification',
'notification-panel',
'page-content',
'pagination',
'radio',
'scrim',
'select',
'sign-in',
'skiplink',
'slider',
'switch',
'tab',
'table',
'tag',
'textarea',
'timer',
'tooltip',
'upload',
'wizard'
].sort();
class ComponentsListComponent {
cdr;
selectedComponent = new EventEmitter();
componentList = components;
constructor(cdr) {
this.cdr = cdr;
}
onSelectComponent(componentName) {
this.selectedComponent.emit(componentName);
this.cdr.detectChanges();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ComponentsListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ComponentsListComponent, selector: "cfc-components-list", outputs: { selectedComponent: "selectedComponent" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\r\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\r\n<div\r\n fxLayout=\"column\">\r\n <p\r\n *ngFor=\"let componentName of componentList\"\r\n class=\"components-list__component-name\"\r\n (click)=\"onSelectComponent(componentName)\">\r\n <span>\r\n {{ componentName }}\r\n </span>\r\n </p>\r\n</div>\r\n", styles: [".components-list__component-name{width:max-content;text-wrap:nowrap;cursor:pointer;transition:all ease-in .25s;border-bottom:1px solid transparent}.components-list__component-name:hover{border-color:#000}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ComponentsListComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-components-list', template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\r\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\r\n<div\r\n fxLayout=\"column\">\r\n <p\r\n *ngFor=\"let componentName of componentList\"\r\n class=\"components-list__component-name\"\r\n (click)=\"onSelectComponent(componentName)\">\r\n <span>\r\n {{ componentName }}\r\n </span>\r\n </p>\r\n</div>\r\n", styles: [".components-list__component-name{width:max-content;text-wrap:nowrap;cursor:pointer;transition:all ease-in .25s;border-bottom:1px solid transparent}.components-list__component-name:hover{border-color:#000}\n"] }]
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { selectedComponent: [{
type: Output
}] } });
var LogoViewMode;
(function (LogoViewMode) {
LogoViewMode["default"] = "default";
LogoViewMode["neutral"] = "neutral";
LogoViewMode["voluntary"] = "voluntary";
})(LogoViewMode || (LogoViewMode = {}));
var SignInType;
(function (SignInType) {
SignInType["primary"] = "primary";
SignInType["secondary"] = "secondary";
})(SignInType || (SignInType = {}));
var SignInDensity;
(function (SignInDensity) {
SignInDensity["large"] = "large";
SignInDensity["middle"] = "middle";
SignInDensity["small"] = "small";
})(SignInDensity || (SignInDensity = {}));
var HeaderViewMode;
(function (HeaderViewMode) {
HeaderViewMode["default"] = "default";
HeaderViewMode["constrast"] = "contrast";
})(HeaderViewMode || (HeaderViewMode = {}));
class CheckboxComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CheckboxComponent, selector: "cfc-checkbox", ngImport: i0, template: "<br-checkbox></br-checkbox>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CheckboxComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-checkbox', template: "<br-checkbox></br-checkbox>\r\n" }]
}] });
class CookieBarComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CookieBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CookieBarComponent, selector: "cfc-cookie-bar", ngImport: i0, template: "<br-cookiebar></br-cookiebar>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CookieBarComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-cookie-bar', template: "<br-cookiebar></br-cookiebar>\r\n" }]
}] });
class DatetimerPickerComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DatetimerPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DatetimerPickerComponent, selector: "cfc-datetimer-picker", ngImport: i0, template: "<br-datetimer-picker/>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DatetimerPickerComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-datetimer-picker', template: "<br-datetimer-picker/>\r\n" }]
}] });
class DividerComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DividerComponent, selector: "cfc-divider", ngImport: i0, template: "<br-divider />\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DividerComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-divider', template: "<br-divider />\r\n" }]
}] });
class FooterComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FooterComponent, selector: "cfc-footer", ngImport: i0, template: "<p>footer works!</p>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FooterComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-footer', template: "<p>footer works!</p>\r\n" }]
}] });
class LogoComponent {
cdr;
viewMode = LogoViewMode.default;
isClickable = false;
width;
clickEvent = new EventEmitter();
logoViewMode = LogoViewMode;
get svgPath() {
switch (this.viewMode) {
case LogoViewMode.default:
return './assets/logo-default.svg';
case LogoViewMode.neutral:
return './assets/logo-neutral.svg';
case LogoViewMode.voluntary:
return './assets/logo-voluntary.svg';
default:
throw new Error(`ViewMode inválido: ${this.viewMode}`);
}
}
get svgWidth() {
return this.width ? `${this.width}px` : '100%';
}
constructor(cdr) {
this.cdr = cdr;
}
ngOnChanges(changes) {
if (changes['isClickable']) {
this.cdr.markForCheck();
}
}
onClick() {
if (this.clickEvent)
this.clickEvent.emit();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LogoComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LogoComponent, selector: "cfc-logo", inputs: { viewMode: "viewMode", isClickable: "isClickable", width: "width" }, outputs: { clickEvent: "clickEvent" }, usesOnChanges: true, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\r\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\r\n<img\r\n alt=\"logo do conselho federal de contabilidade\"\r\n [src]=\"svgPath\"\r\n [style.cursor]=\"isClickable ? 'pointer' : 'default'\"\r\n [style.width]=\"svgWidth\"\r\n (click)=\"isClickable ? onClick(): undefined\"\r\n>\r\n", styles: ["svg{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.Default });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LogoComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-logo', changeDetection: ChangeDetectionStrategy.Default, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\r\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\r\n<img\r\n alt=\"logo do conselho federal de contabilidade\"\r\n [src]=\"svgPath\"\r\n [style.cursor]=\"isClickable ? 'pointer' : 'default'\"\r\n [style.width]=\"svgWidth\"\r\n (click)=\"isClickable ? onClick(): undefined\"\r\n>\r\n", styles: ["svg{display:block}\n"] }]
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { viewMode: [{
type: Input
}], isClickable: [{
type: Input
}], width: [{
type: Input
}], clickEvent: [{
type: Output
}] } });
class SignInComponent {
label = '';
type = SignInType.primary;
density = SignInDensity.middle;
icon = 'user';
// @Input() image = '';
entity = '';
disabled = false;
block = false;
inverted = false;
isLink = false;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SignInComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SignInComponent, selector: "cfc-sign-in", inputs: { label: "label", type: "type", density: "density", icon: "icon", entity: "entity", disabled: "disabled", block: "block", inverted: "inverted", isLink: "isLink" }, ngImport: i0, template: "<br-sign-in\r\n cfcDirectiveController\r\n [directiveNames]=\"[\r\n 'disabled',\r\n 'block',\r\n 'inverted',\r\n 'isLink'\r\n ]\"\r\n [applyDirectives]=\"[\r\n disabled,\r\n block,\r\n inverted,\r\n isLink\r\n ]\"\r\n [label]=\"label\"\r\n [type]=\"type\"\r\n [density]=\"density\"\r\n [icon]=\"icon\"\r\n [entity]=\"entity\"\r\n active\r\n></br-sign-in>\r\n", styles: [""], dependencies: [{ kind: "directive", type: ControllerDirective, selector: "[cfcDirectiveController]", inputs: ["directiveName", "directiveNames", "applyDirective", "applyDirectives"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SignInComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-sign-in', template: "<br-sign-in\r\n cfcDirectiveController\r\n [directiveNames]=\"[\r\n 'disabled',\r\n 'block',\r\n 'inverted',\r\n 'isLink'\r\n ]\"\r\n [applyDirectives]=\"[\r\n disabled,\r\n block,\r\n inverted,\r\n isLink\r\n ]\"\r\n [label]=\"label\"\r\n [type]=\"type\"\r\n [density]=\"density\"\r\n [icon]=\"icon\"\r\n [entity]=\"entity\"\r\n active\r\n></br-sign-in>\r\n" }]
}], propDecorators: { label: [{
type: Input
}], type: [{
type: Input
}], density: [{
type: Input
}], icon: [{
type: Input
}], entity: [{
type: Input
}], disabled: [{
type: Input
}], block: [{
type: Input
}], inverted: [{
type: Input
}], isLink: [{
type: Input
}] } });
class TimerComponent {
initialTime = 20;
timeUnit = '';
timeOutEvent = new EventEmitter();
timeEvent = new EventEmitter();
displayTime = '00:00';
intervalId;
ngOnInit() {
console.log(this.initialTime);
this.startTimer();
}
ngOnDestroy() {
this.stopTimer();
}
startTimer() {
let remainingTime = this.initialTime;
this.updateDisplayTime(remainingTime);
this.intervalId = setInterval(() => {
remainingTime--;
if (remainingTime < 0) {
this.stopTimer();
return;
}
this.updateDisplayTime(remainingTime);
}, 1000);
}
stopTimer() {
clearInterval(this.intervalId);
this.timeOutEvent.emit();
}
updateDisplayTime(seconds) {
const minutes = Math.floor(seconds / 60);
const remainingSeconds = seconds % 60;
this.displayTime = `${this.padZero(minutes)}:${this.padZero(remainingSeconds)}`;
this.timeEvent.emit();
}
padZero(number) {
return number < 10 ? `0${number.toString()}` : `${number.toString()}`;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TimerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TimerComponent, selector: "cfc-timer", inputs: { initialTime: "initialTime", timeUnit: "timeUnit" }, outputs: { timeOutEvent: "timeOutEvent", timeEvent: "timeEvent" }, ngImport: i0, template: "<br-button\r\n style=\"color: black; pointer-events: none;\"\r\n [label]=\"displayTime\"\r\n icon=\"clock\"\r\n type=\"primary\"\r\n inverted\r\n active\r\n></br-button>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TimerComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-timer', template: "<br-button\r\n style=\"color: black; pointer-events: none;\"\r\n [label]=\"displayTime\"\r\n icon=\"clock\"\r\n type=\"primary\"\r\n inverted\r\n active\r\n></br-button>\r\n" }]
}], propDecorators: { initialTime: [{
type: Input
}], timeUnit: [{
type: Input
}], timeOutEvent: [{
type: Output
}], timeEvent: [{
type: Output
}] } });
class HeaderComponent {
title = 'CFC Design System';
description = 'Página de testes';
timeLogOut = 1800;
hasTimer = true;
logoMode = LogoViewMode.default;
viewMode = HeaderViewMode.default;
headerViewModes = HeaderViewMode;
logoViewModes = LogoViewMode;
signinTypes = SignInType;
buttonTypes = ButtonType;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: HeaderComponent, selector: "cfc-header", inputs: { title: "title", description: "description", timeLogOut: "timeLogOut", hasTimer: "hasTimer", logoMode: "logoMode", viewMode: "viewMode" }, ngImport: i0, template: "<header\r\n class=\"cfc-header\"\r\n [ngStyle]=\"{ 'background-color': viewMode === headerViewModes.default ? 'white' : '#0C326F'}\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"space-between center\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"1rem\">\r\n <cfc-button\r\n [icon]=\"'bars'\"\r\n [circle]=\"true\"\r\n [inverted]=\"viewMode === headerViewModes.default\"\r\n ></cfc-button>\r\n\r\n <cfc-logo\r\n [viewMode]=\"viewMode === headerViewModes.default ? logoViewModes.default : logoViewModes.neutral\"\r\n ></cfc-logo>\r\n\r\n <div>\r\n <h4\r\n class=\"cfc-header__title\"\r\n [ngStyle]=\"{ 'color': viewMode === headerViewModes.default ? 'black' : 'white' }\">\r\n {{ title }}\r\n </h4>\r\n <p\r\n class=\"cfc-header__description\"\r\n [ngStyle]=\"{ 'color': viewMode === headerViewModes.default ? '#555555' : 'white' }\">\r\n {{ description }}\r\n </p>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"1.5rem\">\r\n <cfc-timer\r\n [initialTime]=\"timeLogOut\"\r\n ></cfc-timer>\r\n\r\n <cfc-button\r\n *ngIf=\"viewMode === headerViewModes.default\"\r\n [icon]=\"'book'\"\r\n [circle]=\"true\"\r\n [inverted]=\"true\"\r\n ></cfc-button>\r\n\r\n <cfc-sign-in\r\n [label]=\"'User name'\"\r\n [type]=\"signinTypes.primary\"\r\n [inverted]=\"viewMode === headerViewModes.default\"\r\n ></cfc-sign-in>\r\n </div>\r\n</header>\r\n\r\n<div class=\"cfc-header__spacer\"></div>\r\n", styles: [":root{--header-height: 140px}*{margin:0;padding:0;box-sizing:border-box}.cfc-header{height:120px;position:fixed;top:0;left:0;background-color:#fff;box-shadow:0 0 10px 1px #c1c1c1;padding:1rem 2rem;width:100%;height:var(--header-height);z-index:999}.cfc-header__title{font-weight:700;font-size:1rem}.cfc-header__description{font-weight:400;font-size:.9rem;padding-top:.2rem;color:#555;opacity:60%}.cfc-header__spacer{height:75px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "cfc-button", inputs: ["label", "type", "submit", "circle", "density", "disabled", "block", "icon", "active", "inverted", "loading"] }, { kind: "component", type: LogoComponent, selector: "cfc-logo", inputs: ["viewMode", "isClickable", "width"], outputs: ["clickEvent"] }, { kind: "component", type: SignInComponent, selector: "cfc-sign-in", inputs: ["label", "type", "density", "icon", "entity", "disabled", "block", "inverted", "isLink"] }, { kind: "component", type: TimerComponent, selector: "cfc-timer", inputs: ["initialTime", "timeUnit"], outputs: ["timeOutEvent", "timeEvent"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HeaderComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-header', template: "<header\r\n class=\"cfc-header\"\r\n [ngStyle]=\"{ 'background-color': viewMode === headerViewModes.default ? 'white' : '#0C326F'}\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"space-between center\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"1rem\">\r\n <cfc-button\r\n [icon]=\"'bars'\"\r\n [circle]=\"true\"\r\n [inverted]=\"viewMode === headerViewModes.default\"\r\n ></cfc-button>\r\n\r\n <cfc-logo\r\n [viewMode]=\"viewMode === headerViewModes.default ? logoViewModes.default : logoViewModes.neutral\"\r\n ></cfc-logo>\r\n\r\n <div>\r\n <h4\r\n class=\"cfc-header__title\"\r\n [ngStyle]=\"{ 'color': viewMode === headerViewModes.default ? 'black' : 'white' }\">\r\n {{ title }}\r\n </h4>\r\n <p\r\n class=\"cfc-header__description\"\r\n [ngStyle]=\"{ 'color': viewMode === headerViewModes.default ? '#555555' : 'white' }\">\r\n {{ description }}\r\n </p>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"1.5rem\">\r\n <cfc-timer\r\n [initialTime]=\"timeLogOut\"\r\n ></cfc-timer>\r\n\r\n <cfc-button\r\n *ngIf=\"viewMode === headerViewModes.default\"\r\n [icon]=\"'book'\"\r\n [circle]=\"true\"\r\n [inverted]=\"true\"\r\n ></cfc-button>\r\n\r\n <cfc-sign-in\r\n [label]=\"'User name'\"\r\n [type]=\"signinTypes.primary\"\r\n [inverted]=\"viewMode === headerViewModes.default\"\r\n ></cfc-sign-in>\r\n </div>\r\n</header>\r\n\r\n<div class=\"cfc-header__spacer\"></div>\r\n", styles: [":root{--header-height: 140px}*{margin:0;padding:0;box-sizing:border-box}.cfc-header{height:120px;position:fixed;top:0;left:0;background-color:#fff;box-shadow:0 0 10px 1px #c1c1c1;padding:1rem 2rem;width:100%;height:var(--header-height);z-index:999}.cfc-header__title{font-weight:700;font-size:1rem}.cfc-header__description{font-weight:400;font-size:.9rem;padding-top:.2rem;color:#555;opacity:60%}.cfc-header__spacer{height:75px;width:100%}\n"] }]
}], propDecorators: { title: [{
type: Input
}], description: [{
type: Input
}], timeLogOut: [{
type: Input
}], hasTimer: [{
type: Input
}], logoMode: [{
type: Input
}], viewMode: [{
type: Input
}] } });
class InputComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputComponent, selector: "cfc-input", ngImport: i0, template: "<br-input></br-input>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-input', template: "<br-input></br-input>\r\n" }]
}] });
class ListComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ListComponent, selector: "cfc-list", ngImport: i0, template: "<br-list>\r\n <br-item>item 1</br-item>\r\n <br-item>item 2</br-item>\r\n <br-item>item 3</br-item>\r\n</br-list>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ListComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-list', template: "<br-list>\r\n <br-item>item 1</br-item>\r\n <br-item>item 2</br-item>\r\n <br-item>item 3</br-item>\r\n</br-list>\r\n" }]
}] });
class MagicButtonComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MagicButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MagicButtonComponent, selector: "cfc-magic-button", ngImport: i0, template: "<br-magic-button label=\"bot\u00E3o m\u00E1gico\"/>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MagicButtonComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-magic-button', template: "<br-magic-button label=\"bot\u00E3o m\u00E1gico\"/>\r\n" }]
}] });
class MenuComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MenuComponent, selector: "cfc-menu", ngImport: i0, template: "<br-menu>\r\n <br-menu-item>item 1</br-menu-item>\r\n <br-menu-item>item 2</br-menu-item>\r\n <br-menu-item>item 3</br-menu-item>\r\n</br-menu>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MenuComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-menu', template: "<br-menu>\r\n <br-menu-item>item 1</br-menu-item>\r\n <br-menu-item>item 2</br-menu-item>\r\n <br-menu-item>item 3</br-menu-item>\r\n</br-menu>\r\n" }]
}] });
class MessageComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MessageComponent, selector: "cfc-message", ngImport: i0, template: "<br-message>mensagem</br-message>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessageComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-message', template: "<br-message>mensagem</br-message>\r\n" }]
}] });
class ModalComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalComponent, selector: "cfc-modal", ngImport: i0, template: "<br-modal>modal</br-modal>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-modal', template: "<br-modal>modal</br-modal>\r\n" }]
}] });
class NotificationComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NotificationComponent, selector: "cfc-notification", ngImport: i0, template: "<br-notification>notifica\u00E7\u00E3o</br-notification>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NotificationComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-notification', template: "<br-notification>notifica\u00E7\u00E3o</br-notification>\r\n" }]
}] });
class NotificationPanelComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NotificationPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NotificationPanelComponent, selector: "cfc-notification-panel", ngImport: i0, template: "<br-notification-panel>\r\n <br-notification>notifica\u00E7\u00E3o 1</br-notification>\r\n <br-notification>notifica\u00E7\u00E3o 2</br-notification>\r\n <br-notification>notifica\u00E7\u00E3o 3</br-notification>\r\n</br-notification-panel>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NotificationPanelComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-notification-panel', template: "<br-notification-panel>\r\n <br-notification>notifica\u00E7\u00E3o 1</br-notification>\r\n <br-notification>notifica\u00E7\u00E3o 2</br-notification>\r\n <br-notification>notifica\u00E7\u00E3o 3</br-notification>\r\n</br-notification-panel>\r\n" }]
}] });
class PageContentComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PageContentComponent, selector: "cfc-page-content", ngImport: i0, template: "<div class=\"container-out\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".container-out{margin:0;padding:2rem 5%;box-sizing:border-box;background-color:#f0f0f0;min-height:100%}\n"] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PageContentComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-page-content', template: "<div class=\"container-out\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".container-out{margin:0;padding:2rem 5%;box-sizing:border-box;background-color:#f0f0f0;min-height:100%}\n"] }]
}] });
class PaginationComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PaginationComponent, selector: "cfc-pagination", ngImport: i0, template: "<br-pagination></br-pagination>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PaginationComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-pagination', template: "<br-pagination></br-pagination>\r\n" }]
}] });
class RadioComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RadioComponent, selector: "cfc-radio", ngImport: i0, template: "<br-radio label=\"raio\"/>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-radio', template: "<br-radio label=\"raio\"/>\r\n" }]
}] });
class ScrimComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScrimComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ScrimComponent, selector: "cfc-scrim", ngImport: i0, template: "<br-scrim />\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ScrimComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-scrim', template: "<br-scrim />\r\n" }]
}] });
class SelectComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectComponent, selector: "cfc-select", ngImport: i0, template: "<br-select />\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-select', template: "<br-select />\r\n" }]
}] });
class SkiplinkComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SkiplinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SkiplinkComponent, selector: "cfc-skiplink", ngImport: i0, template: "<br-skiplink>skiplink</br-skiplink>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SkiplinkComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-skiplink', template: "<br-skiplink>skiplink</br-skiplink>\r\n" }]
}] });
class SliderComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SliderComponent, selector: "cfc-slider", ngImport: i0, template: "<br-slider label=\"slider\" min=\"0\" max=\"100\"> </br-slider>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SliderComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-slider', template: "<br-slider label=\"slider\" min=\"0\" max=\"100\"> </br-slider>\r\n" }]
}] });
class SwitchComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SwitchComponent, selector: "cfc-switch", ngImport: i0, template: "<br-switch label=\"switch\" />\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SwitchComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-switch', template: "<br-switch label=\"switch\" />\r\n" }]
}] });
class TabComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TabComponent, selector: "cfc-tab", ngImport: i0, template: "<br-tab>\r\n <br-tab-item>op\u00E7\u00E3o 1</br-tab-item>\r\n <br-tab-item>op\u00E7\u00E3o 2</br-tab-item>\r\n <br-tab-item>op\u00E7\u00E3o 3</br-tab-item>\r\n</br-tab>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TabComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-tab', template: "<br-tab>\r\n <br-tab-item>op\u00E7\u00E3o 1</br-tab-item>\r\n <br-tab-item>op\u00E7\u00E3o 2</br-tab-item>\r\n <br-tab-item>op\u00E7\u00E3o 3</br-tab-item>\r\n</br-tab>\r\n" }]
}] });
class TableComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableComponent, selector: "cfc-table", ngImport: i0, template: "<br-table>\r\n <br-table-header>tabela</br-table-header>\r\n</br-table>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-table', template: "<br-table>\r\n <br-table-header>tabela</br-table-header>\r\n</br-table>\r\n" }]
}] });
class TagComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TagComponent, selector: "cfc-tag", ngImport: i0, template: "<br-tag>tag</br-tag>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TagComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-tag', template: "<br-tag>tag</br-tag>\r\n" }]
}] });
class TextareaComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TextareaComponent, selector: "cfc-textarea", ngImport: i0, template: "<br-textarea>\u00E1rea de texto</br-textarea>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextareaComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-textarea', template: "<br-textarea>\u00E1rea de texto</br-textarea>\r\n" }]
}] });
class TooltipComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TooltipComponent, selector: "cfc-tooltip", ngImport: i0, template: "<br-tooltip>tooltip</br-tooltip>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TooltipComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-tooltip', template: "<br-tooltip>tooltip</br-tooltip>\r\n" }]
}] });
class UploadComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: UploadComponent, selector: "cfc-upload", ngImport: i0, template: "<br-upload>upload</br-upload>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UploadComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-upload', template: "<br-upload>upload</br-upload>\r\n" }]
}] });
class WizardComponent {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: WizardComponent, selector: "cfc-wizard", ngImport: i0, template: "<br-wizard>\r\n <br-step>passo 1</br-step>\r\n <br-step>passo 2</br-step>\r\n <br-step>passo 3</br-step>\r\n</br-wizard>\r\n", styles: [""] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: WizardComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-wizard', template: "<br-wizard>\r\n <br-step>passo 1</br-step>\r\n <br-step>passo 2</br-step>\r\n <br-step>passo 3</br-step>\r\n</br-wizard>\r\n" }]
}] });
class TestComponentComponent {
// inputs and outputs
selectedComponent = '';
// viewChieldren
button;
// cfc-avatar
avatarName = 'avatar';
avatarDensity = AvatarDensity.medium;
avatarTooltipText = 'avatar tooltip';
avatarTooltipPlace = TooltipPlace.bottom;
avatarImageUrl = 'https://picsum.photos/id/823/400';
avatarIconic = false;
avatarDensities = Object.values(AvatarDensity);
avatarTooltipPlaces = Object.values(TooltipPlace);
// cfc-breadcrumb
breadcrumbLabel = 'breadcrumb';
breadcrumbLinks = [
{
label: 'Página Inicial',
url: '/',
target: '_blank',
home: true
},
{
label: 'Página Ancestral 01',
url: '#',
target: '_blank'
},
{
label: 'Página Ancestral 02',
url: '#',
target: '_blank'
},
{
label: 'Página Atual',
active: true
}
];
breadcrumbLinksString = JSON.stringify(this.breadcrumbLinks, null, 2);
updateBreadCrumbLinks() {
this.breadcrumbLinks = JSON.parse(this.breadcrumbLinksString);
}
// cfc-button
buttonLabel = 'button';
buttonType = ButtonType.primary;
buttonTooltipText = 'button tooltip text';
buttonSubmit = true;
buttonCircle = false;
buttonDensity = ButtonDensity.middle;
buttonDisabled = false;
buttonBlock = false;
buttonIcon = 'clock';
buttonActive = true;
buttonInverted = false;
buttonLoading = false;
buttonTypes = Object.values(ButtonType);
buttonDensities = Object.values(ButtonDensity);
buttonClickEvent = () => alert('button event dispared!');
// cfc-header
headerTitle = 'Testando Header';
headerDescription = 'Esse é apenas um teste';
headerViewMode = HeaderViewMode.default;
headerViewModes = Object.values(HeaderViewMode);
// cfc-logo
logoWidth = 100;
logoIsClickable = false;
logoViewMode = LogoViewMode.default;
logoViewModes = Object.values(LogoViewMode);
logoClickEvent = () => alert('a logo está clicável');
// cfc-sign0in
signInLabel = 'sing in';
signInType = SignInType.primary;
signInDensity = SignInDensity.middle;
signInIcon = 'user';
signInEntity = '';
signInDisabled = false;
signInBlock = false;
signInInverted = false;
signInIsLink = false;
signInTypes = Object.values(SignInType);
signInDensities = Object.values(SignInDensity);
// cfc-timer
timer = 120;
onTimeEvent = () => {
this.timer--;
};
onTimeOutEvent = () => {
alert('encerrou a contagem regressiva');
window.location.reload();
};
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestComponentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TestComponentComponent, selector: "cfc-test-component", inputs: { selectedComponent: "selectedComponent" }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"selectedComponent; else noComponentSelected\">\r\n <div\r\n fxFlex=\"grow\"\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"stretch center\"\r\n fxLayoutGap=\"1rem\">\r\n\r\n <h2 style=\"font-weight: 700;\">cfc-{{ selectedComponent }}</h2>\r\n\r\n <cfc-avatar\r\n *ngIf=\"selectedComponent === 'avatar'\"\r\n tooltip\r\n [iconic]=\"avatarIconic\"\r\n [name]=\"avatarName\"\r\n [density]=\"avatarDensity\"\r\n [tooltipText]=\"avatarTooltipText\"\r\n [tooltipPlace]=\"avatarTooltipPlace\"\r\n [imageUrl]=\"avatarImageUrl\"\r\n ></cfc-avatar>\r\n\r\n <cfc-breadcrumb\r\n *ngIf=\"selectedComponent === 'breadcrumb'\"\r\n [label]=\"breadcrumbLabel\"\r\n [links]=\"breadcrumbLinks\"\r\n ></cfc-breadcrumb>\r\n\r\n <cfc-button\r\n *ngIf=\"selectedComponent === 'button'\"\r\n id=\"button\"\r\n [label]=\"buttonLabel\"\r\n [type]=\"buttonType\"\r\n [submit]=\"buttonSubmit\"\r\n [circle]=\"buttonCircle\"\r\n [density]=\"buttonDensity\"\r\n [disabled]=\"buttonDisabled\"\r\n [block]=\"buttonBlock\"\r\n [icon]=\"buttonIcon\"\r\n [active]=\"buttonActive\"\r\n [inverted]=\"buttonInverted\"\r\n [loading]=\"buttonLoading\"\r\n (click)=\"buttonClickEvent()\"\r\n ></cfc-button>\r\n\r\n <cfc-card\r\n *ngIf=\"selectedComponent === 'card'\"\r\n ></cfc-card>\r\n\r\n <cfc-carousel\r\n *ngIf=\"selectedComponent === 'carousel'\"\r\n ></cfc-carousel>\r\n\r\n <cfc-checkbox\r\n *ngIf=\"selectedComponent === 'checkbox'\"\r\n ></cfc-checkbox>\r\n\r\n <cfc-cookie-bar\r\n *ngIf=\"selectedComponent === 'cookie-bar'\"\r\n ></cfc-cookie-bar>\r\n\r\n <cfc-datetimer-picker\r\n *ngIf=\"selectedComponent === 'datetimer-picker'\"\r\n ></cfc-datetimer-picker>\r\n\r\n <cfc-divider\r\n *ngIf=\"selectedComponent === 'divider'\"\r\n ></cfc-divider>\r\n\r\n <cfc-footer\r\n *ngIf=\"selectedComponent === 'footer'\"\r\n ></cfc-footer>\r\n\r\n <cfc-header\r\n *ngIf=\"selectedComponent === 'header'\"\r\n [title]=\"headerTitle\"\r\n [description]=\"headerDescription\"\r\n [viewMode]=\"headerViewMode\"\r\n ></cfc-header>\r\n\r\n <cfc-input\r\n *ngIf=\"selectedComponent === 'input'\"\r\n ></cfc-input>\r\n\r\n <cfc-list\r\n *ngIf=\"selectedComponent === 'list'\"\r\n ></cfc-list>\r\n\r\n <cfc-logo\r\n *ngIf=\"selectedComponent === 'logo'\"\r\n [width]=\"logoWidth\"\r\n [viewMode]=\"logoViewMode\"\r\n [isClickable]=\"logoIsClickable\"\r\n ></cfc-logo>\r\n\r\n <cfc-magic-button\r\n *ngIf=\"selectedComponent === 'magic-button'\"\r\n ></cfc-magic-button>\r\n\r\n <cfc-menu\r\n *ngIf=\"selectedComponent === 'menu'\"\r\n ></cfc-menu>\r\n\r\n <cfc-message\r\n *ngIf=\"selectedComponent === 'message'\"\r\n ></cfc-message>\r\n\r\n <cfc-modal\r\n *ngIf=\"selectedComponent === 'modal'\"\r\n ></cfc-modal>\r\n\r\n <cfc-notification\r\n *ngIf=\"selectedComponent === 'notification'\"\r\n ></cfc-notification>\r\n\r\n <cfc-notification-panel\r\n *ngIf=\"selectedComponent === 'notification-panel'\"\r\n ></cfc-notification-panel>\r\n\r\n <cfc-page-content\r\n *ngIf=\"selectedComponent === 'page-content'\"\r\n ></cfc-page-content>\r\n\r\n <cfc-pagination\r\n *ngIf=\"selectedComponent === 'pagination'\"\r\n ></cfc-pagination>\r\n\r\n <cfc-radio\r\n *ngIf=\"selectedComponent === 'radio'\"\r\n ></cfc-radio>\r\n\r\n <cfc-scrim\r\n *ngIf=\"selectedComponent === 'scrim'\"\r\n ></cfc-scrim>\r\n\r\n <cfc-select\r\n *ngIf=\"selectedComponent === 'select'\"\r\n ></cfc-select>\r\n\r\n <cfc-sign-in\r\n *ngIf=\"selectedComponent === 'sign-in'\"\r\n [label]=\"signInLabel\"\r\n [type]=\"signInType\"\r\n [density]=\"signInDensity\"\r\n [icon]=\"signInIcon\"\r\n [entity]=\"signInEntity\"\r\n [disabled]=\"signInDisabled\"\r\n [block]=\"signInBlock\"\r\n [inverted]=\"signInInverted\"\r\n [isLink]=\"signInIsLink\"\r\n ></cfc-sign-in>\r\n\r\n <cfc-skiplink\r\n *ngIf=\"selectedComponent === 'skiplink'\"\r\n ></cfc-skiplink>\r\n\r\n <cfc-slider\r\n *ngIf=\"selectedComponent === 'slider'\"\r\n ></cfc-slider>\r\n\r\n <cfc-switch\r\n *ngIf=\"selectedComponent === 'switch'\"\r\n ></cfc-switch>\r\n\r\n <cfc-tab\r\n *ngIf=\"selectedComponent === 'tab'\"\r\n ></cfc-tab>\r\n\r\n <cfc-table\r\n *ngIf=\"selectedComponent === 'table'\"\r\n ></cfc-table>\r\n\r\n <cfc-tag\r\n *ngIf=\"selectedComponent === 'tag'\"\r\n ></cfc-tag>\r\n\r\n <cfc-textarea\r\n *ngIf=\"selectedComponent === 'textarea'\"\r\n ></cfc-textarea>\r\n\r\n <cfc-timer\r\n *ngIf=\"selectedComponent === 'timer'\"\r\n [initialTime]=\"timer\"\r\n (timeEvent)=\"onTimeEvent()\"\r\n (timeOutEvent)=\"onTimeOutEvent()\"\r\n ></cfc-timer>\r\n\r\n <cfc-tooltip\r\n *ngIf=\"selectedComponent === 'tooltip'\"\r\n ></cfc-tooltip>\r\n\r\n <cfc-upload\r\n *ngIf=\"selectedComponent === 'upload'\"\r\n ></cfc-upload>\r\n\r\n <cfc-wizard\r\n *ngIf=\"selectedComponent === 'wizard'\"\r\n ></cfc-wizard>\r\n\r\n <hr class=\"test-component__divider\">\r\n\r\n <form\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n\r\n <!-- avatar -->\r\n <ng-container *ngIf=\"selectedComponent === 'avatar'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"name\">\r\n name\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarName\"\r\n name=\"name\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"avatarDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of avatarDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"iconic\">\r\n iconic\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"iconic\"\r\n [(ngModel)]=\"avatarIconic\"\r\n name=\"iconic\">\r\n <option\r\n [value]=\"true\">\r\n iconic\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not iconic\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"tooltopText\">\r\n tooltopText\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 200px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarTooltipText\"\r\n name=\"tooltipText\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"tooltipPlace\">\r\n tooltipPlace\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"tooltipPlace\"\r\n [(ngModel)]=\"avatarTooltipPlace\"\r\n name=\"tooltipPlace\">\r\n <option\r\n *ngFor=\"let tooltipPlace of avatarTooltipPlaces\"\r\n [value]=\"tooltipPlace\">\r\n {{ tooltipPlace }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"imageUrl\">\r\n imageUrl\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 300px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarImageUrl\"\r\n name=\"imageUrl\">\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- breadcrumb -->\r\n <ng-container *ngIf=\"selectedComponent === 'breadcrumb'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"breadcrumbLabel\"\r\n name=\"label\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"links\">\r\n links\r\n </label>\r\n <textarea\r\n class=\"test-component__input\"\r\n style=\"width: 300px !important; height: 300px;\"\r\n type=\"text\"\r\n [(ngModel)]=\"breadcrumbLinksString\"\r\n (ngModelChange)=\"updateBreadCrumbLinks()\"\r\n name=\"links\">\r\n </textarea>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- button -->\r\n <ng-container *ngIf=\"selectedComponent === 'button'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"buttonLabel\"\r\n name=\"label\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"type\">\r\n type\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"type\"\r\n [(ngModel)]=\"buttonType\"\r\n name=\"type\">\r\n <option\r\n *ngFor=\"let type of buttonTypes\"\r\n [value]=\"type\">\r\n {{ type }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"buttonDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of buttonDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"icon\">\r\n icon\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"buttonIcon\"\r\n name=\"icon\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"circle\">\r\n circle\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"circle\"\r\n [(ngModel)]=\"buttonCircle\"\r\n name=\"circle\">\r\n <option\r\n [value]=\"true\">\r\n circle\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not circle\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"submit\">\r\n submit\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"submit\"\r\n [(ngModel)]=\"buttonSubmit\"\r\n name=\"submit\">\r\n <option\r\n [value]=\"true\">\r\n submit\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not submit\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"disabled\">\r\n disabled\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"disabled\"\r\n [(ngModel)]=\"buttonDisabled\"\r\n name=\"disabled\">\r\n <option\r\n [value]=\"true\">\r\n disabled\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n enabled\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"block\">\r\n block\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"block\"\r\n [(ngModel)]=\"buttonBlock\"\r\n name=\"block\">\r\n <option\r\n [value]=\"true\">\r\n block\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not block\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"inverted\">\r\n inverted\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"inverted\"\r\n [(ngModel)]=\"buttonInverted\"\r\n name=\"inverted\">\r\n <option\r\n [value]=\"true\">\r\n inverted\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not inverted\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"actived\">\r\n active\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"active\"\r\n [(ngModel)]=\"buttonActive\"\r\n name=\"active\">\r\n <option\r\n [value]=\"true\">\r\n actived\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n inactived\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"loading\">\r\n loading\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"loading\"\r\n [(ngModel)]=\"buttonLoading\"\r\n name=\"loading\">\r\n <option\r\n [value]=\"true\">\r\n loading\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not loading\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- header -->\r\n <ng-container *ngIf=\"selectedComponent === 'header'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"title\">\r\n title\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"headerTitle\"\r\n name=\"title\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"description\">\r\n description\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"headerDescription\"\r\n name=\"description\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"viewMode\">\r\n viewMode\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n [(ngModel)]=\"headerViewMode\"\r\n name=\"viewMode\">\r\n <option\r\n *ngFor=\"let viewMode of headerViewModes\"\r\n [value]=\"viewMode\">\r\n {{ viewMode }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- logo -->\r\n <ng-container *ngIf=\"selectedComponent === 'logo'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"viewMode\">\r\n viewMode\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n [(ngModel)]=\"logoViewMode\"\r\n name=\"viewMode\">\r\n <option\r\n *ngFor=\"let viewMode of logoViewModes\"\r\n [value]=\"viewMode\">\r\n {{ viewMode }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"width\">\r\n width\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"number\"\r\n [(ngModel)]=\"logoWidth\"\r\n name=\"width\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"clickEvent\">\r\n clickEvent\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"logoIsClickable\"\r\n [(ngModel)]=\"logoIsClickable\"\r\n name=\"clickEvent\">\r\n <option\r\n [value]=\"true\">\r\n clic\u00E1vel\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n n\u00E3o clic\u00E1vel\r\n </option>\r\n </select>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- sign-in -->\r\n <ng-container *ngIf=\"selectedComponent === 'sign-in'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"signInLabel\"\r\n name=\"label\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"type\">\r\n type\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"type\"\r\n [(ngModel)]=\"signInType\"\r\n name=\"type\">\r\n <option\r\n *ngFor=\"let type of signInTypes\"\r\n [value]=\"type\">\r\n {{ type }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"signInDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of signInDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"icon\">\r\n icon\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"signInIcon\"\r\n name=\"icon\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"disabled\">\r\n disabled\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"disabled\"\r\n [(ngModel)]=\"signInDisabled\"\r\n name=\"disabled\">\r\n <option\r\n [value]=\"true\">\r\n disabled\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n enabled\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"block\">\r\n block\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"block\"\r\n [(ngModel)]=\"signInBlock\"\r\n name=\"block\">\r\n <option\r\n [value]=\"true\">\r\n block\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not block\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"inverted\">\r\n inverted\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"inverted\"\r\n [(ngModel)]=\"signInInverted\"\r\n name=\"inverted\">\r\n <option\r\n [value]=\"true\">\r\n inverted\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not inverted\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"isLink\">\r\n isLink\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"isLink\"\r\n [(ngModel)]=\"signInIsLink\"\r\n name=\"isLink\">\r\n <option\r\n [value]=\"true\">\r\n isLink\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not isLink\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- timer -->\r\n <ng-container *ngIf=\"selectedComponent === 'timer'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"timer\">\r\n timer\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"number\"\r\n [(ngModel)]=\"timer\"\r\n name=\"timer\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"timer\">\r\n timer\r\n </label>\r\n <textarea\r\n class=\"test-component__input\"\r\n style=\"width: 400px !important; height: max-content;\"\r\n type=\"number\"\r\n name=\"timer\">\r\n timeEvent dispared in {{ timer }} seconds.\r\n </textarea>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </form>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-template #noComponentSelected>\r\n <div>\r\n <h4 style=\"text-align: center;\">Nenhum componente selecionado ainda</h4>\r\n </div>\r\n</ng-template>\r\n", styles: [".test-component__divider{min-width:60vw}.test-component__input,.test-component__output{margin:0;width:fit-content!important;height:40px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: AvatarComponent, selector: "cfc-avatar", inputs: ["name", "density", "tooltipText", "tooltipPlace", "iconic", "imageUrl"] }, { kind: "component", type: BreadcrumbComponent, selector: "cfc-breadcrumb", inputs: ["label", "links"] }, { kind: "component", type: ButtonComponent, selector: "cfc-button", inputs: ["label", "type", "submit", "circle", "density", "disabled", "block", "icon", "active", "inverted", "loading"] }, { kind: "component", type: CardComponent, selector: "cfc-card" }, { kind: "component", type: CarouselComponent, selector: "cfc-carousel" }, { kind: "component", type: CheckboxComponent, selector: "cfc-checkbox" }, { kind: "component", type: CookieBarComponent, selector: "cfc-cookie-bar" }, { kind: "component", type: DatetimerPickerComponent, selector: "cfc-datetimer-picker" }, { kind: "component", type: DividerComponent, selector: "cfc-divider" }, { kind: "component", type: FooterComponent, selector: "cfc-footer" }, { kind: "component", type: HeaderComponent, selector: "cfc-header", inputs: ["title", "description", "timeLogOut", "hasTimer", "logoMode", "viewMode"] }, { kind: "component", type: InputComponent, selector: "cfc-input" }, { kind: "component", type: ListComponent, selector: "cfc-list" }, { kind: "component", type: LogoComponent, selector: "cfc-logo", inputs: ["viewMode", "isClickable", "width"], outputs: ["clickEvent"] }, { kind: "component", type: MagicButtonComponent, selector: "cfc-magic-button" }, { kind: "component", type: MenuComponent, selector: "cfc-menu" }, { kind: "component", type: MessageComponent, selector: "cfc-message" }, { kind: "component", type: ModalComponent, selector: "cfc-modal" }, { kind: "component", type: NotificationComponent, selector: "cfc-notification" }, { kind: "component", type: NotificationPanelComponent, selector: "cfc-notification-panel" }, { kind: "component", type: PageContentComponent, selector: "cfc-page-content" }, { kind: "component", type: PaginationComponent, selector: "cfc-pagination" }, { kind: "component", type: RadioComponent, selector: "cfc-radio" }, { kind: "component", type: ScrimComponent, selector: "cfc-scrim" }, { kind: "component", type: SelectComponent, selector: "cfc-select" }, { kind: "component", type: SignInComponent, selector: "cfc-sign-in", inputs: ["label", "type", "density", "icon", "entity", "disabled", "block", "inverted", "isLink"] }, { kind: "component", type: SkiplinkComponent, selector: "cfc-skiplink" }, { kind: "component", type: SliderComponent, selector: "cfc-slider" }, { kind: "component", type: SwitchComponent, selector: "cfc-switch" }, { kind: "component", type: TabComponent, selector: "cfc-tab" }, { kind: "component", type: TableComponent, selector: "cfc-table" }, { kind: "component", type: TagComponent, selector: "cfc-tag" }, { kind: "component", type: TextareaComponent, selector: "cfc-textarea" }, { kind: "component", type: TimerComponent, selector: "cfc-timer", inputs: ["initialTime", "timeUnit"], outputs: ["timeOutEvent", "timeEvent"] }, { kind: "component", type: TooltipComponent, selector: "cfc-tooltip" }, { kind: "component", type: UploadComponent, selector: "cfc-upload" }, { kind: "component", type: WizardComponent, selector: "cfc-wizard" }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestComponentComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-test-component', template: "<ng-container *ngIf=\"selectedComponent; else noComponentSelected\">\r\n <div\r\n fxFlex=\"grow\"\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"stretch center\"\r\n fxLayoutGap=\"1rem\">\r\n\r\n <h2 style=\"font-weight: 700;\">cfc-{{ selectedComponent }}</h2>\r\n\r\n <cfc-avatar\r\n *ngIf=\"selectedComponent === 'avatar'\"\r\n tooltip\r\n [iconic]=\"avatarIconic\"\r\n [name]=\"avatarName\"\r\n [density]=\"avatarDensity\"\r\n [tooltipText]=\"avatarTooltipText\"\r\n [tooltipPlace]=\"avatarTooltipPlace\"\r\n [imageUrl]=\"avatarImageUrl\"\r\n ></cfc-avatar>\r\n\r\n <cfc-breadcrumb\r\n *ngIf=\"selectedComponent === 'breadcrumb'\"\r\n [label]=\"breadcrumbLabel\"\r\n [links]=\"breadcrumbLinks\"\r\n ></cfc-breadcrumb>\r\n\r\n <cfc-button\r\n *ngIf=\"selectedComponent === 'button'\"\r\n id=\"button\"\r\n [label]=\"buttonLabel\"\r\n [type]=\"buttonType\"\r\n [submit]=\"buttonSubmit\"\r\n [circle]=\"buttonCircle\"\r\n [density]=\"buttonDensity\"\r\n [disabled]=\"buttonDisabled\"\r\n [block]=\"buttonBlock\"\r\n [icon]=\"buttonIcon\"\r\n [active]=\"buttonActive\"\r\n [inverted]=\"buttonInverted\"\r\n [loading]=\"buttonLoading\"\r\n (click)=\"buttonClickEvent()\"\r\n ></cfc-button>\r\n\r\n <cfc-card\r\n *ngIf=\"selectedComponent === 'card'\"\r\n ></cfc-card>\r\n\r\n <cfc-carousel\r\n *ngIf=\"selectedComponent === 'carousel'\"\r\n ></cfc-carousel>\r\n\r\n <cfc-checkbox\r\n *ngIf=\"selectedComponent === 'checkbox'\"\r\n ></cfc-checkbox>\r\n\r\n <cfc-cookie-bar\r\n *ngIf=\"selectedComponent === 'cookie-bar'\"\r\n ></cfc-cookie-bar>\r\n\r\n <cfc-datetimer-picker\r\n *ngIf=\"selectedComponent === 'datetimer-picker'\"\r\n ></cfc-datetimer-picker>\r\n\r\n <cfc-divider\r\n *ngIf=\"selectedComponent === 'divider'\"\r\n ></cfc-divider>\r\n\r\n <cfc-footer\r\n *ngIf=\"selectedComponent === 'footer'\"\r\n ></cfc-footer>\r\n\r\n <cfc-header\r\n *ngIf=\"selectedComponent === 'header'\"\r\n [title]=\"headerTitle\"\r\n [description]=\"headerDescription\"\r\n [viewMode]=\"headerViewMode\"\r\n ></cfc-header>\r\n\r\n <cfc-input\r\n *ngIf=\"selectedComponent === 'input'\"\r\n ></cfc-input>\r\n\r\n <cfc-list\r\n *ngIf=\"selectedComponent === 'list'\"\r\n ></cfc-list>\r\n\r\n <cfc-logo\r\n *ngIf=\"selectedComponent === 'logo'\"\r\n [width]=\"logoWidth\"\r\n [viewMode]=\"logoViewMode\"\r\n [isClickable]=\"logoIsClickable\"\r\n ></cfc-logo>\r\n\r\n <cfc-magic-button\r\n *ngIf=\"selectedComponent === 'magic-button'\"\r\n ></cfc-magic-button>\r\n\r\n <cfc-menu\r\n *ngIf=\"selectedComponent === 'menu'\"\r\n ></cfc-menu>\r\n\r\n <cfc-message\r\n *ngIf=\"selectedComponent === 'message'\"\r\n ></cfc-message>\r\n\r\n <cfc-modal\r\n *ngIf=\"selectedComponent === 'modal'\"\r\n ></cfc-modal>\r\n\r\n <cfc-notification\r\n *ngIf=\"selectedComponent === 'notification'\"\r\n ></cfc-notification>\r\n\r\n <cfc-notification-panel\r\n *ngIf=\"selectedComponent === 'notification-panel'\"\r\n ></cfc-notification-panel>\r\n\r\n <cfc-page-content\r\n *ngIf=\"selectedComponent === 'page-content'\"\r\n ></cfc-page-content>\r\n\r\n <cfc-pagination\r\n *ngIf=\"selectedComponent === 'pagination'\"\r\n ></cfc-pagination>\r\n\r\n <cfc-radio\r\n *ngIf=\"selectedComponent === 'radio'\"\r\n ></cfc-radio>\r\n\r\n <cfc-scrim\r\n *ngIf=\"selectedComponent === 'scrim'\"\r\n ></cfc-scrim>\r\n\r\n <cfc-select\r\n *ngIf=\"selectedComponent === 'select'\"\r\n ></cfc-select>\r\n\r\n <cfc-sign-in\r\n *ngIf=\"selectedComponent === 'sign-in'\"\r\n [label]=\"signInLabel\"\r\n [type]=\"signInType\"\r\n [density]=\"signInDensity\"\r\n [icon]=\"signInIcon\"\r\n [entity]=\"signInEntity\"\r\n [disabled]=\"signInDisabled\"\r\n [block]=\"signInBlock\"\r\n [inverted]=\"signInInverted\"\r\n [isLink]=\"signInIsLink\"\r\n ></cfc-sign-in>\r\n\r\n <cfc-skiplink\r\n *ngIf=\"selectedComponent === 'skiplink'\"\r\n ></cfc-skiplink>\r\n\r\n <cfc-slider\r\n *ngIf=\"selectedComponent === 'slider'\"\r\n ></cfc-slider>\r\n\r\n <cfc-switch\r\n *ngIf=\"selectedComponent === 'switch'\"\r\n ></cfc-switch>\r\n\r\n <cfc-tab\r\n *ngIf=\"selectedComponent === 'tab'\"\r\n ></cfc-tab>\r\n\r\n <cfc-table\r\n *ngIf=\"selectedComponent === 'table'\"\r\n ></cfc-table>\r\n\r\n <cfc-tag\r\n *ngIf=\"selectedComponent === 'tag'\"\r\n ></cfc-tag>\r\n\r\n <cfc-textarea\r\n *ngIf=\"selectedComponent === 'textarea'\"\r\n ></cfc-textarea>\r\n\r\n <cfc-timer\r\n *ngIf=\"selectedComponent === 'timer'\"\r\n [initialTime]=\"timer\"\r\n (timeEvent)=\"onTimeEvent()\"\r\n (timeOutEvent)=\"onTimeOutEvent()\"\r\n ></cfc-timer>\r\n\r\n <cfc-tooltip\r\n *ngIf=\"selectedComponent === 'tooltip'\"\r\n ></cfc-tooltip>\r\n\r\n <cfc-upload\r\n *ngIf=\"selectedComponent === 'upload'\"\r\n ></cfc-upload>\r\n\r\n <cfc-wizard\r\n *ngIf=\"selectedComponent === 'wizard'\"\r\n ></cfc-wizard>\r\n\r\n <hr class=\"test-component__divider\">\r\n\r\n <form\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n\r\n <!-- avatar -->\r\n <ng-container *ngIf=\"selectedComponent === 'avatar'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"name\">\r\n name\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarName\"\r\n name=\"name\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"avatarDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of avatarDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"iconic\">\r\n iconic\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"iconic\"\r\n [(ngModel)]=\"avatarIconic\"\r\n name=\"iconic\">\r\n <option\r\n [value]=\"true\">\r\n iconic\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not iconic\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"tooltopText\">\r\n tooltopText\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 200px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarTooltipText\"\r\n name=\"tooltipText\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"tooltipPlace\">\r\n tooltipPlace\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"tooltipPlace\"\r\n [(ngModel)]=\"avatarTooltipPlace\"\r\n name=\"tooltipPlace\">\r\n <option\r\n *ngFor=\"let tooltipPlace of avatarTooltipPlaces\"\r\n [value]=\"tooltipPlace\">\r\n {{ tooltipPlace }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"imageUrl\">\r\n imageUrl\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 300px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"avatarImageUrl\"\r\n name=\"imageUrl\">\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- breadcrumb -->\r\n <ng-container *ngIf=\"selectedComponent === 'breadcrumb'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"breadcrumbLabel\"\r\n name=\"label\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"links\">\r\n links\r\n </label>\r\n <textarea\r\n class=\"test-component__input\"\r\n style=\"width: 300px !important; height: 300px;\"\r\n type=\"text\"\r\n [(ngModel)]=\"breadcrumbLinksString\"\r\n (ngModelChange)=\"updateBreadCrumbLinks()\"\r\n name=\"links\">\r\n </textarea>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- button -->\r\n <ng-container *ngIf=\"selectedComponent === 'button'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"buttonLabel\"\r\n name=\"label\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"type\">\r\n type\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"type\"\r\n [(ngModel)]=\"buttonType\"\r\n name=\"type\">\r\n <option\r\n *ngFor=\"let type of buttonTypes\"\r\n [value]=\"type\">\r\n {{ type }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"buttonDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of buttonDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"icon\">\r\n icon\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"buttonIcon\"\r\n name=\"icon\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"circle\">\r\n circle\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"circle\"\r\n [(ngModel)]=\"buttonCircle\"\r\n name=\"circle\">\r\n <option\r\n [value]=\"true\">\r\n circle\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not circle\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"submit\">\r\n submit\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"submit\"\r\n [(ngModel)]=\"buttonSubmit\"\r\n name=\"submit\">\r\n <option\r\n [value]=\"true\">\r\n submit\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not submit\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"disabled\">\r\n disabled\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"disabled\"\r\n [(ngModel)]=\"buttonDisabled\"\r\n name=\"disabled\">\r\n <option\r\n [value]=\"true\">\r\n disabled\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n enabled\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"block\">\r\n block\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"block\"\r\n [(ngModel)]=\"buttonBlock\"\r\n name=\"block\">\r\n <option\r\n [value]=\"true\">\r\n block\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not block\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"inverted\">\r\n inverted\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"inverted\"\r\n [(ngModel)]=\"buttonInverted\"\r\n name=\"inverted\">\r\n <option\r\n [value]=\"true\">\r\n inverted\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not inverted\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"actived\">\r\n active\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"active\"\r\n [(ngModel)]=\"buttonActive\"\r\n name=\"active\">\r\n <option\r\n [value]=\"true\">\r\n actived\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n inactived\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"loading\">\r\n loading\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"loading\"\r\n [(ngModel)]=\"buttonLoading\"\r\n name=\"loading\">\r\n <option\r\n [value]=\"true\">\r\n loading\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not loading\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- header -->\r\n <ng-container *ngIf=\"selectedComponent === 'header'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"title\">\r\n title\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"headerTitle\"\r\n name=\"title\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"description\">\r\n description\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"headerDescription\"\r\n name=\"description\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"viewMode\">\r\n viewMode\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n [(ngModel)]=\"headerViewMode\"\r\n name=\"viewMode\">\r\n <option\r\n *ngFor=\"let viewMode of headerViewModes\"\r\n [value]=\"viewMode\">\r\n {{ viewMode }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- logo -->\r\n <ng-container *ngIf=\"selectedComponent === 'logo'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"viewMode\">\r\n viewMode\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n [(ngModel)]=\"logoViewMode\"\r\n name=\"viewMode\">\r\n <option\r\n *ngFor=\"let viewMode of logoViewModes\"\r\n [value]=\"viewMode\">\r\n {{ viewMode }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"width\">\r\n width\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"number\"\r\n [(ngModel)]=\"logoWidth\"\r\n name=\"width\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"clickEvent\">\r\n clickEvent\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"logoIsClickable\"\r\n [(ngModel)]=\"logoIsClickable\"\r\n name=\"clickEvent\">\r\n <option\r\n [value]=\"true\">\r\n clic\u00E1vel\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n n\u00E3o clic\u00E1vel\r\n </option>\r\n </select>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- sign-in -->\r\n <ng-container *ngIf=\"selectedComponent === 'sign-in'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"label\">\r\n label\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"signInLabel\"\r\n name=\"label\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"type\">\r\n type\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"type\"\r\n [(ngModel)]=\"signInType\"\r\n name=\"type\">\r\n <option\r\n *ngFor=\"let type of signInTypes\"\r\n [value]=\"type\">\r\n {{ type }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"density\">\r\n density\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"density\"\r\n [(ngModel)]=\"signInDensity\"\r\n name=\"density\">\r\n <option\r\n *ngFor=\"let density of signInDensities\"\r\n [value]=\"density\">\r\n {{ density }}\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"icon\">\r\n icon\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"text\"\r\n [(ngModel)]=\"signInIcon\"\r\n name=\"icon\">\r\n </div>\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"disabled\">\r\n disabled\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"disabled\"\r\n [(ngModel)]=\"signInDisabled\"\r\n name=\"disabled\">\r\n <option\r\n [value]=\"true\">\r\n disabled\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n enabled\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"block\">\r\n block\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"block\"\r\n [(ngModel)]=\"signInBlock\"\r\n name=\"block\">\r\n <option\r\n [value]=\"true\">\r\n block\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not block\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"inverted\">\r\n inverted\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"inverted\"\r\n [(ngModel)]=\"signInInverted\"\r\n name=\"inverted\">\r\n <option\r\n [value]=\"true\">\r\n inverted\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not inverted\r\n </option>\r\n </select>\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"isLink\">\r\n isLink\r\n </label>\r\n <select\r\n class=\"test-component__input\"\r\n id=\"isLink\"\r\n [(ngModel)]=\"signInIsLink\"\r\n name=\"isLink\">\r\n <option\r\n [value]=\"true\">\r\n isLink\r\n </option>\r\n <option\r\n [value]=\"false\">\r\n not isLink\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- timer -->\r\n <ng-container *ngIf=\"selectedComponent === 'timer'\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"0.5rem\">\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"timer\">\r\n timer\r\n </label>\r\n <input\r\n class=\"test-component__input\"\r\n style=\"width: 100px !important;\"\r\n type=\"number\"\r\n [(ngModel)]=\"timer\"\r\n name=\"timer\">\r\n </div>\r\n <div\r\n fxLayout=\"column\"\r\n fxLayoutAlign=\"center center\">\r\n <label\r\n for=\"timer\">\r\n timer\r\n </label>\r\n <textarea\r\n class=\"test-component__input\"\r\n style=\"width: 400px !important; height: max-content;\"\r\n type=\"number\"\r\n name=\"timer\">\r\n timeEvent dispared in {{ timer }} seconds.\r\n </textarea>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </form>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-template #noComponentSelected>\r\n <div>\r\n <h4 style=\"text-align: center;\">Nenhum componente selecionado ainda</h4>\r\n </div>\r\n</ng-template>\r\n", styles: [".test-component__divider{min-width:60vw}.test-component__input,.test-component__output{margin:0;width:fit-content!important;height:40px}\n"] }]
}], propDecorators: { selectedComponent: [{
type: Input
}], button: [{
type: ViewChild,
args: ['button']
}] } });
class TestPageComponent {
cdr;
selectedComponent = '';
constructor(cdr) {
this.cdr = cdr;
}
onSelectComponent(componentName) {
this.selectedComponent = componentName;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestPageComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TestPageComponent, selector: "cfc-test-page", ngImport: i0, template: "<cfc-breadcrumb\n label=\"p\u00E1gina de testes\"\n [links]=\"[\n {\n label: 'P\u00E1gina Inicial',\n url: '/',\n home: true\n },\n {\n label: 'P\u00E1gina de Testes',\n active: true\n }\n ]\"\n></cfc-breadcrumb>\n\n<div fxLayout=\"row\"\n style=\"margin-top: 1rem;\">\n <aside class=\"test-page__aside-menu\">\n <cfc-components-list\n (selectedComponent)=\"onSelectComponent($event)\"\n ></cfc-components-list>\n </aside>\n\n <main\n class=\"test-page__component-section\"\n fxLayoutAlign=\"center stretch\">\n <cfc-test-component\n [selectedComponent]='selectedComponent'\n ></cfc-test-component>\n </main>\n</div>\n", styles: [".test-page__aside-menu{max-height:80vh;overflow-y:scroll;scrollbar-width:thin;padding:0 4rem 2rem 0;border-right:1px solid rgb(201,201,201)}.test-page__component-section{padding:1rem 0 2rem;width:100%}\n"], dependencies: [{ kind: "component", type: ComponentsListComponent, selector: "cfc-components-list", outputs: ["selectedComponent"] }, { kind: "component", type: TestComponentComponent, selector: "cfc-test-component", inputs: ["selectedComponent"] }, { kind: "component", type: BreadcrumbComponent, selector: "cfc-breadcrumb", inputs: ["label", "links"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestPageComponent, decorators: [{
type: Component,
args: [{ selector: 'cfc-test-page', template: "<cfc-breadcrumb\n label=\"p\u00E1gina de testes\"\n [links]=\"[\n {\n label: 'P\u00E1gina Inicial',\n url: '/',\n home: true\n },\n {\n label: 'P\u00E1gina de Testes',\n active: true\n }\n ]\"\n></cfc-breadcrumb>\n\n<div fxLayout=\"row\"\n style=\"margin-top: 1rem;\">\n <aside class=\"test-page__aside-menu\">\n <cfc-components-list\n (selectedComponent)=\"onSelectComponent($event)\"\n ></cfc-components-list>\n </aside>\n\n <main\n class=\"test-page__component-section\"\n fxLayoutAlign=\"center stretch\">\n <cfc-test-component\n [selectedComponent]='selectedComponent'\n ></cfc-test-component>\n </main>\n</div>\n", styles: [".test-page__aside-menu{max-height:80vh;overflow-y:scroll;scrollbar-width:thin;padding:0 4rem 2rem 0;border-right:1px solid rgb(201,201,201)}.test-page__component-section{padding:1rem 0 2rem;width:100%}\n"] }]
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });
const routes = [
{
path: '',
component: CfcUiRootComponent,
children: [
{
path: '',
redirectTo: 'componentes-ui',
pathMatch: 'full'
},
{
path: 'componentes-ui',
component: TestPageComponent
},
{
path: 'storybook-ds',
component: StorybookComponent
}
],
resolve: { /** inserir serviço de autenticação e carregamento de metadados */},
}
];
class CfcUiRoutingModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiRoutingModule, decorators: [{
type: NgModule,
args: [{
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
providers: [],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}]
}] });
;
dayjs.extend(localeData);
class DayjsDateAdapter extends DateAdapter {
locale;
constructor(locale) {
super();
this.locale = locale;
dayjs.locale(locale);
}
getYear(date) {
return date.year();
}
getMonth(date) {
return date.month();
}
getDate(date) {
return date.date();
}
getDayOfWeek(date) {
return date.day();
}
getMonthNames(style) {
return style === 'long'
? dayjs.months()
: dayjs.monthsShort();
}
getDateNames() {
const dateNames = [];
for (let i = 1; i <= 31; i++) {
dateNames.push(String(i));
}
return dateNames;
}
getDayOfWeekNames(style) {
return style === 'long'
? dayjs.weekdays()
: dayjs.weekdaysShort();
}
getYearName(date) {
return date.format('YYYY');
}
getFirstDayOfWeek() {
return 0;
}
getNumDaysInMonth(date) {
return date.daysInMonth();
}
clone(date) {
return date.clone();
}
createDate(year, month, date) {
// Corrigido: usar o método dayjs() para criar a data
return dayjs(new Date(year, month, date));
}
today() {
return dayjs();
}
parse(value, parseFormat) {
if (value && typeof value === 'string') {
return dayjs(value, parseFormat);
}
else if (value instanceof Date) {
return dayjs(value);
}
else if (typeof value === 'number') {
return dayjs(value);
}
else if (dayjs.isDayjs(value)) {
return dayjs(value).locale(this.locale);
}
return null;
}
format(date, displayFormat) {
if (!this.isValid(date)) {
throw Error('DayjsDateAdapter: Cannot format invalid date.');
}
return date.locale(this.locale).format(displayFormat);
}
addCalendarYears(date, years) {
return date.add(years, 'year');
}
addCalendarMonths(date, months) {
return date.add(months, 'month');
}
addCalendarDays(date, days) {
return date.add(days, 'day');
}
toIso8601(date) {
return date.toISOString();
}
deserialize(value) {
let date;
if (value instanceof Date) {
date = dayjs(value);
}
if (typeof value === 'string') {
if (!value) {
return null;
}
date = dayjs(value).locale(this.locale);
}
if (date && this.isValid(date)) {
return date;
}
return super.deserialize(value);
}
isDateInstance(obj) {
return dayjs.isDayjs(obj);
}
isValid(date) {
return date && date.isValid();
}
invalid() {
return dayjs(null);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DayjsDateAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DayjsDateAdapter });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DayjsDateAdapter, decorators: [{
type: Injectable
}], ctorParameters: () => [{ type: undefined, decorators: [{
type: Optional
}, {
type: Inject,
args: [MAT_DATE_LOCALE]
}] }] });
class CfcUiModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: CfcUiModule, declarations: [CfcUiRootComponent,
StorybookComponent,
TestPageComponent,
ComponentsListComponent,
TestComponentComponent,
AvatarComponent,
BreadcrumbComponent,
ButtonComponent,
CardComponent,
CarouselComponent,
CheckboxComponent,
CookieBarComponent,
DatetimerPickerComponent,
DividerComponent,
FooterComponent,
HeaderComponent,
InputComponent,
ListComponent,
LogoComponent,
MagicButtonComponent,
MenuComponent,
MessageComponent,
ModalComponent,
NotificationComponent,
NotificationPanelComponent,
PageContentComponent,
PaginationComponent,
RadioComponent,
ScrimComponent,
SelectComponent,
SignInComponent,
SkiplinkComponent,
SliderComponent,
SwitchComponent,
TabComponent,
TableComponent,
TagComponent,
TextareaComponent,
TimerComponent,
TooltipComponent,
UploadComponent,
WizardComponent,
ControllerDirective], imports: [CfcUiRoutingModule,
CommonModule,
RouterModule,
ReactiveFormsModule,
FormsModule], exports: [AvatarComponent,
BreadcrumbComponent,
ButtonComponent,
CardComponent,
CarouselComponent,
CheckboxComponent,
CookieBarComponent,
DatetimerPickerComponent,
DividerComponent,
FooterComponent,
HeaderComponent,
InputComponent,
ListComponent,
LogoComponent,
MagicButtonComponent,
MenuComponent,
MessageComponent,
ModalComponent,
NotificationComponent,
NotificationPanelComponent,
PageContentComponent,
PaginationComponent,
RadioComponent,
ScrimComponent,
SelectComponent,
SignInComponent,
SkiplinkComponent,
SliderComponent,
SwitchComponent,
TabComponent,
TableComponent,
TagComponent,
TextareaComponent,
TimerComponent,
TooltipComponent,
UploadComponent,
WizardComponent,
ControllerDirective] });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiModule, providers: [
provideHttpClient(),
{ provide: MAT_DATE_LOCALE, useValue: 'pt-BR' },
{ provide: DateAdapter, useClass: DayjsDateAdapter }
], imports: [CfcUiRoutingModule,
CommonModule,
RouterModule,
ReactiveFormsModule,
FormsModule] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CfcUiModule, decorators: [{
type: NgModule,
args: [{
imports: [
CfcUiRoutingModule,
CommonModule,
RouterModule,
ReactiveFormsModule,
FormsModule,
],
declarations: [
CfcUiRootComponent,
StorybookComponent,
TestPageComponent,
ComponentsListComponent,
TestComponentComponent,
AvatarComponent,
BreadcrumbComponent,
ButtonComponent,
CardComponent,
CarouselComponent,
CheckboxComponent,
CookieBarComponent,
DatetimerPickerComponent,
DividerComponent,
FooterComponent,
HeaderComponent,
InputComponent,
ListComponent,
LogoComponent,
MagicButtonComponent,
MenuComponent,
MessageComponent,
ModalComponent,
NotificationComponent,
NotificationPanelComponent,
PageContentComponent,
PaginationComponent,
RadioComponent,
ScrimComponent,
SelectComponent,
SignInComponent,
SkiplinkComponent,
SliderComponent,
SwitchComponent,
TabComponent,
TableComponent,
TagComponent,
TextareaComponent,
TimerComponent,
TooltipComponent,
UploadComponent,
WizardComponent,
ControllerDirective
],
exports: [
AvatarComponent,
BreadcrumbComponent,
ButtonComponent,
CardComponent,
CarouselComponent,
CheckboxComponent,
CookieBarComponent,
DatetimerPickerComponent,
DividerComponent,
FooterComponent,
HeaderComponent,
InputComponent,
ListComponent,
LogoComponent,
MagicButtonComponent,
MenuComponent,
MessageComponent,
ModalComponent,
NotificationComponent,
NotificationPanelComponent,
PageContentComponent,
PaginationComponent,
RadioComponent,
ScrimComponent,
SelectComponent,
SignInComponent,
SkiplinkComponent,
SliderComponent,
SwitchComponent,
TabComponent,
TableComponent,
TagComponent,
TextareaComponent,
TimerComponent,
TooltipComponent,
UploadComponent,
WizardComponent,
ControllerDirective
],
providers: [
provideHttpClient(),
{ provide: MAT_DATE_LOCALE, useValue: 'pt-BR' },
{ provide: DateAdapter, useClass: DayjsDateAdapter }
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}]
}] });
/*
* Public API Surface of cfc-ui
*/
/**
* Generated bundle index. Do not edit.
*/
export { AvatarComponent, AvatarDensity, BreadcrumbComponent, ButtonComponent, ButtonDensity, ButtonType, CardComponent, CarouselComponent, CfcUiModule, CheckboxComponent, ControllerDirective, CookieBarComponent, DatetimerPickerComponent, DividerComponent, FooterComponent, HeaderComponent, HeaderViewMode, InputComponent, ListComponent, LogoComponent, LogoViewMode, MagicButtonComponent, MenuComponent, MessageComponent, ModalComponent, NotificationComponent, NotificationPanelComponent, PageContentComponent, PaginationComponent, RadioComponent, ScrimComponent, SelectComponent, SignInComponent, SignInDensity, SignInType, SkiplinkComponent, SliderComponent, SwitchComponent, TabComponent, TableComponent, TagComponent, TextareaComponent, TimerComponent, TooltipComponent, UploadComponent, WizardComponent };
//# sourceMappingURL=cfc-ui-test.mjs.map