@rededor/site-front-end-lib 20.0.12 → 20.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -124
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-algolia-dropdown.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs +20 -20
- package/fesm2022/rededor-site-front-end-lib-components-algolia-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-banner.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs +12 -12
- package/fesm2022/rededor-site-front-end-lib-components-cards.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-carousels.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-cta-wrapper.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-error.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filter-letter-and-terms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-generic.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-filters-filter-planos-convenios.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-footer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-header-components-action.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-auxiliar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-main.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header-components-side.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-components-header-services.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-components-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-image.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-load-screen.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-modal-drawer.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-overlay.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-header.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-template-fullcontent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-page-template-sidebar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-pagination.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-search.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-section-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs +20 -20
- package/fesm2022/rededor-site-front-end-lib-components-side-ctas.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-sidebar-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-sticky-navigation.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-components-whatsapp.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-core.mjs +54 -54
- package/fesm2022/rededor-site-front-end-lib-core.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs +8 -8
- package/fesm2022/rededor-site-front-end-lib-cura-accordion.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs +128 -26
- package/fesm2022/rededor-site-front-end-lib-cura-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-outline.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button-transparent.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-buttons-cura-button.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-buttons.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-cards-cura-card.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-alert.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-modal.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-feedback-cura-toast.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-checkbox.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-input-text.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-label.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-radio.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select-option.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-select.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs +5 -5
- package/fesm2022/rededor-site-front-end-lib-cura-forms-cura-switch.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-forms.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-icons-cura-icon.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-bar.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-loaders-cura-loader-circle.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-display.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-heading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs +4 -4
- package/fesm2022/rededor-site-front-end-lib-cura-texts-cura-paragraph.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-enums.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia-search-api.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-algolia.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ngu-carousel.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-ssr-loading.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-transfer-state.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs +3 -3
- package/fesm2022/rededor-site-front-end-lib-services-youtube.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib-shared.mjs +6 -6
- package/fesm2022/rededor-site-front-end-lib-shared.mjs.map +1 -1
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_breakpoints.scss +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-api.mjs","sources":["../../../projects/site-front-end-lib/cura/api/theme-presets/theme-default.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-presets.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/static.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-colors.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-spacing.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-fonts.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-breakpoints.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme.module.ts","../../../projects/site-front-end-lib/cura/api/CuraConfig.ts","../../../projects/site-front-end-lib/cura/api/cura-api.service.ts","../../../projects/site-front-end-lib/cura/api/cura-api.types.ts","../../../projects/site-front-end-lib/cura/api/rededor-site-front-end-lib-cura-api.ts"],"sourcesContent":["/**\r\n * Cura Default Theme\r\n */\r\nexport const ThemeDefault = {\r\n /* Colors */\r\n color: {\r\n primary: {\r\n '100': '113,197,232',\r\n '300': '68,142,205',\r\n '500': '0,61,165',\r\n '700': '0,48,117',\r\n '900': '0,40,85',\r\n },\r\n secondary: {\r\n '100': '245,236,227',\r\n '300': '221,192,162',\r\n '500': '204,160,116',\r\n '700': '136,107,77',\r\n '900': '41,32,23',\r\n },\r\n accent: {\r\n '100': '255,194,123',\r\n '300': '255,168,74',\r\n '500': '255,130,0',\r\n '700': '215,114,10',\r\n '900': '155,90,26',\r\n },\r\n },\r\n /* Spacing */\r\n spacing: {\r\n base: 4,\r\n },\r\n /* Fonts */\r\n font: {\r\n size: '14px',\r\n color: '#4A4A4A',\r\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\r\n weights: {\r\n thin: 100,\r\n light: 300,\r\n regular: 400,\r\n medium: 500,\r\n bold: 700,\r\n black: 900,\r\n },\r\n },\r\n};\r\n","import { ThemeDefault } from './theme-default';\r\n\r\nexport const ThemePresets: { [key: string]: any } = {\r\n default: ThemeDefault,\r\n // 'maternidade': ThemeMaternity,\r\n // 'oncologia': ThemeOncology,\r\n // 'richet': ThemeRichet,\r\n // 'legacyDefault': ThemeLegacyDefault\r\n};\r\n","/**\r\n * Static theme data\r\n */\r\nexport const Static = {\r\n /* Colors */\r\n color: {\r\n success: {\r\n '100': '223,246,233',\r\n '300': '148,225,181',\r\n '500': '95,210,144',\r\n '700': '49,115,77',\r\n '900': '19,42,29',\r\n },\r\n info: {\r\n '100': '207,226,255',\r\n '300': '149,191,255',\r\n '500': '110,168,255',\r\n '700': '66,100,153',\r\n '900': '37,56,85',\r\n },\r\n error: {\r\n '100': '251,221,221',\r\n '300': '242,143,143',\r\n '500': '235,87,87',\r\n '700': '157,58,58',\r\n '900': '47,17,17',\r\n },\r\n warning: {\r\n '100': '252,250,196',\r\n '300': '248,244,137',\r\n '500': '245,239,78',\r\n '700': '108,106,32',\r\n '900': '49,48,16',\r\n },\r\n neutral: {\r\n '0': '255,255,255',\r\n '100': '246,246,246',\r\n '200': '233,233,233',\r\n '300': '226,226,226',\r\n '400': '212,212,212',\r\n '500': '183,183,183',\r\n '600': '146,146,146',\r\n '700': '110,110,110',\r\n '800': '74,74,74',\r\n '900': '38,38,38',\r\n },\r\n },\r\n breakpoints: {\r\n xsmall: {\r\n min: 0,\r\n max: 480,\r\n },\r\n small: {\r\n min: 481,\r\n max: 768,\r\n },\r\n medium: {\r\n min: 769,\r\n max: 992,\r\n },\r\n large: {\r\n min: 993,\r\n max: 1920,\r\n },\r\n xlarge: {\r\n min: 1921,\r\n max: 4096,\r\n },\r\n },\r\n};\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { Static } from '../theme-presets/static';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeColorsModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private readonly neutralDepthAlias: { [key: string]: string } = {\r\n purewhite: '0',\r\n white: '100',\r\n pale: '200',\r\n lighter: '300',\r\n light: '400',\r\n base: '500',\r\n medium: '600',\r\n dark: '700',\r\n darker: '800',\r\n black: '900',\r\n };\r\n\r\n private readonly colorDepthAlias: { [key: string]: string } = {\r\n lighter: '100',\r\n light: '300',\r\n base: '500',\r\n dark: '700',\r\n darker: '900',\r\n };\r\n\r\n /**\r\n * Get theme color.\r\n * @param colorWithDepth string Ex.: primary-light\r\n * @param opacity number Opacity value (0-1)\r\n * @returns RGBA value.\r\n */\r\n getColor(colorWithDepth: string = 'primary-base', opacity = 1): string {\r\n const { color, depth } = this.splitColorDepth(colorWithDepth);\r\n const staticColor = this.getStatic(color, depth, opacity);\r\n if (staticColor) return staticColor;\r\n return this.getDynamic(color, depth, opacity);\r\n }\r\n\r\n /**\r\n * Internal: Look for static color by name and depth.\r\n * @param color Color name.\r\n * @param depth Depth number or alias.\r\n * @param opacity Opacity value.\r\n * @returns RGBA value.\r\n */\r\n private getStatic(color: string, depth: string, opacity = 1): string | null {\r\n const colorObj = (Static.color as any)[color];\r\n if (!colorObj) return null;\r\n\r\n const alias = color === 'neutral' ? this.neutralDepthAlias[depth] : this.colorDepthAlias[depth];\r\n const colorValue = colorObj[alias] || colorObj[depth];\r\n\r\n return colorValue ? `rgba(${colorValue}, ${opacity})` : null;\r\n }\r\n\r\n /**\r\n * Internal: Look for theme dynamic colors.\r\n * @param color Color name.\r\n * @param depth Color depth.\r\n * @param opacity Opacity value.\r\n * @returns RGBA value.\r\n */\r\n private getDynamic(color: string, depth: string, opacity: number): string {\r\n const themeVar = this.colorDepthAlias[depth] ? `--cura-color-${color}-${this.colorDepthAlias[depth]}` : `--cura-color-${color}-${depth}`;\r\n\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.documentElement).getPropertyValue(themeVar);\r\n return computedValue ? `rgba(var(${themeVar}), ${opacity})` : `rgba(var(--cura-color-primary-500), ${opacity})`;\r\n }\r\n\r\n // Fallback para SSR\r\n return `rgba(var(${themeVar}), ${opacity})`;\r\n }\r\n\r\n /**\r\n * Internal: Split color strings\r\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\r\n * @returns Object { color: string, depth: string }.\r\n */\r\n private splitColorDepth(colorWithDepth: string): { color: string; depth: string } {\r\n const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);\r\n return { color: color ?? 'primary', depth: depth ?? 'base' };\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeSpacingModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private readonly curaSpacing = '--cura-spacing-base';\r\n /**\r\n * Returns the base spacing var defined in the theme\r\n * @returns CSS variable string or fallback value\r\n */\r\n getSpacing(): string {\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(this.curaSpacing);\r\n return computedValue ? `var(${this.curaSpacing})` : '4';\r\n }\r\n\r\n // Fallback para SSR\r\n return `var(${this.curaSpacing})`;\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { ThemeDefault } from '../theme-presets/theme-default';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeFontsModule {\r\n private document: Document = inject(DOCUMENT);\r\n\r\n /**\r\n * Get the CSS variable related to the font family defined by the theme.\r\n * @param type 'body' | 'heading' | 'display'\r\n * @returns Related css variable as a string.\r\n */\r\n getFamily(type: string = 'body'): string {\r\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\r\n\r\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\r\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(curaFontFamilyCSSVar);\r\n return computedValue ? `var(${curaFontFamilyCSSVar})` : 'var(--cura-font-body)';\r\n }\r\n\r\n // Fallback para SSR\r\n return `var(${curaFontFamilyCSSVar})`;\r\n }\r\n\r\n /**\r\n * Get the CSS variables related to font weights defined by the theme.\r\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\r\n */\r\n getWeights(): any {\r\n const weights: { [key: string]: string } = {};\r\n Object.keys(ThemeDefault.font.weights).forEach((key) => {\r\n weights[key] = `var(--cura-font-weights-${key})`;\r\n });\r\n return weights;\r\n }\r\n\r\n /**\r\n * Get the CSS variable related to the font size base defined by the theme.\r\n * @returns Related CSS variable as a string.\r\n */\r\n getSize(): string {\r\n return `var(--cura-font-size)`;\r\n }\r\n\r\n /**\r\n * Get CSS variable related to the font color defined by the theme.\r\n * @returns Related CSS variable as a string.\r\n */\r\n getColor(): string {\r\n return `var(--cura-font-color)`;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Static } from '../theme-presets/static';\r\nimport { BreakpointSize, BreakpointPosition } from '../cura-api.types';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeBreakpointsModule {\r\n /**\r\n * Returns breakpoint values defined in the theme\r\n * @param size Breakpoint size\r\n * @param position Min or max position\r\n * @returns Breakpoint value or all breakpoints\r\n */\r\n get(size: BreakpointSize | null = null, position: BreakpointPosition | null = null): any {\r\n if (size) {\r\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\r\n if (breakpoint || breakpoint === 0) return breakpoint;\r\n }\r\n return Static.breakpoints;\r\n }\r\n}\r\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\r\nimport { ThemePresets } from '../theme-presets/theme-presets';\r\nimport { CuraCustomTheme } from '../cura-api.types';\r\nimport { CuraThemeColorsModule } from './cura-theme-colors.module';\r\nimport { CuraThemeSpacingModule } from './cura-theme-spacing.module';\r\nimport { CuraThemeFontsModule } from './cura-theme-fonts.module';\r\nimport { CuraThemeBreakpointsModule } from './cura-theme-breakpoints.module';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraThemeModule {\r\n public colors: CuraThemeColorsModule = inject(CuraThemeColorsModule);\r\n public spacing: CuraThemeSpacingModule = inject(CuraThemeSpacingModule);\r\n public fonts: CuraThemeFontsModule = inject(CuraThemeFontsModule);\r\n public breakpoints: CuraThemeBreakpointsModule = inject(CuraThemeBreakpointsModule);\r\n private document: Document = inject(DOCUMENT);\r\n\r\n private rootElement: HTMLElement | null = null;\r\n private readonly prefix = '--cura';\r\n private groupObject: { [key: string]: any } = {};\r\n\r\n constructor() {\r\n if (this.document?.defaultView) {\r\n this.rootElement = this.document.defaultView.document.documentElement;\r\n }\r\n }\r\n\r\n /**\r\n * Load a theme.\r\n * @param theme Theme tag.\r\n */\r\n load(theme = 'default'): void {\r\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\r\n this.buildCssVars(this.prefix, preset);\r\n }\r\n\r\n /**\r\n * Load variables for SSR\r\n * @param theme Theme tag\r\n * @returns Object with CSS variables\r\n */\r\n loadVarsSSR(theme = 'default'): { [key: string]: any } {\r\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\r\n this.buildCssVars(this.prefix, preset, true);\r\n return this.groupObject;\r\n }\r\n\r\n /**\r\n * Define a custom theme\r\n * @param customTheme Custom theme object definition\r\n */\r\n setCustom(customTheme: CuraCustomTheme): void {\r\n const customTag = customTheme.name;\r\n if (customTag in ThemePresets) {\r\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\r\n this.load('default');\r\n } else {\r\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets['default'];\r\n const newTheme = { ...JSON.parse(JSON.stringify(preset)) };\r\n this.mergeObject(customTheme.definitions, newTheme);\r\n ThemePresets[customTag] = newTheme;\r\n this.load(customTag);\r\n }\r\n }\r\n\r\n /* Private methods */\r\n\r\n /**\r\n * Set css var based on object structure\r\n */\r\n private setCssVar = (prop: [string, any], path: string): void => {\r\n if (!this.rootElement) return;\r\n const varName = this.groupPath(path, prop[0]);\r\n this.rootElement.style.setProperty(varName, prop[1]);\r\n };\r\n\r\n private groupPath = (a: string, b: string): string => `${a}-${b}`;\r\n\r\n private isObject = (val: any): boolean => {\r\n return val && typeof val === 'object' && !Array.isArray(val);\r\n };\r\n\r\n /**\r\n * Deep merge objects\r\n */\r\n private mergeObject = (from: any, to: any): void => {\r\n const entries = Object.entries(from);\r\n for (let e of entries) {\r\n if (this.isObject(e[1])) {\r\n this.mergeObject(e[1], to[e[0]]);\r\n } else {\r\n to[e[0]] = e[1];\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Set css vars from preset object\r\n */\r\n private buildCssVars = (path: string, obj: any, isGroup = false): void => {\r\n const entries = Object.entries(obj);\r\n for (let e of entries) {\r\n if (this.isObject(e[1])) {\r\n this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);\r\n } else {\r\n if (isGroup) {\r\n const varName = this.groupPath(path, e[0]);\r\n this.groupObject[varName] = e[1];\r\n } else {\r\n this.setCssVar(e, path);\r\n }\r\n }\r\n }\r\n };\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { CuraConfig } from './cura-api.types';\r\n\r\n// Configura o cura com informações especificas de cada projeto.\r\nexport const CURA_CONFIG = new InjectionToken<CuraConfig>('curaConfig');\r\n","import { Injectable, WritableSignal, inject, signal } from '@angular/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.types';\r\nimport { CuraThemeModule } from './modules/cura-theme.module';\r\nimport { CURA_CONFIG } from './CuraConfig';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CuraApiService {\r\n private curaConfig: CuraConfig = inject(CURA_CONFIG);\r\n private document: Document = inject(DOCUMENT);\r\n private themeModule: CuraThemeModule = new CuraThemeModule();\r\n\r\n theme: APIThemeFunctions;\r\n localAssetsPath: WritableSignal<string>;\r\n\r\n constructor() {\r\n this.localAssetsPath = signal(this.curaConfig?.localAssetsPath ? this.curaConfig?.localAssetsPath : `/assets`);\r\n\r\n this.theme = {\r\n load: (themeTag: string) => this.themeModule.load(themeTag),\r\n setCustom: (customThemeDefinitions: CuraCustomTheme) => this.themeModule.setCustom(customThemeDefinitions),\r\n colors: {\r\n getColor: (colorWithDepth?: string, opacity?: number) => this.themeModule.colors.getColor(colorWithDepth, opacity),\r\n },\r\n fonts: {\r\n getFamily: (type?: string) => this.themeModule.fonts.getFamily(type),\r\n getWeights: () => this.themeModule.fonts.getWeights(),\r\n getSize: () => this.themeModule.fonts.getSize(),\r\n getColor: () => this.themeModule.fonts.getColor(),\r\n },\r\n spacing: {\r\n getSpacing: () => this.themeModule.spacing.getSpacing(),\r\n },\r\n breakpoints: {\r\n get: (size?: string, position?: string) => this.themeModule.breakpoints.get(size as any, position as any),\r\n },\r\n };\r\n\r\n this.addGlobalClasses();\r\n\r\n if (this.curaConfig && this.curaConfig.customTheme) {\r\n this.theme.setCustom(this.curaConfig.customTheme);\r\n } else {\r\n const theme = this.curaConfig && this.curaConfig.theme ? this.curaConfig.theme : 'default';\r\n this.theme.load(theme);\r\n }\r\n\r\n // Chama callback onReady se fornecido\r\n if (this.curaConfig && this.curaConfig.onReady) {\r\n this.curaConfig.onReady(this);\r\n }\r\n }\r\n\r\n /**\r\n * Adiciona classes CSS globais necessárias\r\n */\r\n private addGlobalClasses(): void {\r\n if (!this.document) return;\r\n\r\n const styleId = 'cura_global_classes';\r\n let styleElement = this.document.head.querySelector(`#${styleId}`);\r\n\r\n if (!styleElement) {\r\n styleElement = this.document.createElement('style');\r\n styleElement.id = styleId;\r\n styleElement.textContent = `\r\n .cura-body-scroll-lock {\r\n overflow: hidden;\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n }\r\n `;\r\n this.document.head.appendChild(styleElement);\r\n }\r\n }\r\n\r\n /**\r\n * Método para obter variáveis CSS para SSR\r\n * @param theme Nome do tema\r\n * @returns Objeto com variáveis CSS\r\n */\r\n getSSRVars(theme = 'default'): { [key: string]: any } {\r\n return this.themeModule.loadVarsSSR(theme);\r\n }\r\n\r\n /**\r\n * Método utilitário para adicionar/remover classe de scroll lock\r\n * @param lock Se deve bloquear o scroll\r\n */\r\n toggleBodyScrollLock(lock: boolean): void {\r\n if (!this.document) return;\r\n\r\n const body = this.document.body;\r\n if (lock) {\r\n body.classList.add('cura-body-scroll-lock');\r\n } else {\r\n body.classList.remove('cura-body-scroll-lock');\r\n }\r\n }\r\n}\r\n","export interface CuraCustomThemeColorDepth {\r\n base?: string;\r\n depth0?: string;\r\n depth20?: string;\r\n depth40?: string;\r\n depth80?: string;\r\n depth100?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeColors {\r\n primary?: CuraCustomThemeColorDepth;\r\n secondary?: CuraCustomThemeColorDepth;\r\n accent?: CuraCustomThemeColorDepth;\r\n}\r\n\r\nexport interface CuraCustomThemeSpacing {\r\n base?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFontFamily {\r\n title?: string;\r\n body?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFontSize {\r\n base?: string;\r\n}\r\n\r\nexport interface CuraCustomThemeFont {\r\n family?: CuraCustomThemeFontFamily;\r\n size?: CuraCustomThemeFontSize;\r\n}\r\n\r\nexport interface CuraCustomThemeDefinitions {\r\n colors?: CuraCustomThemeColors;\r\n spacing?: CuraCustomThemeSpacing;\r\n font?: CuraCustomThemeFont;\r\n}\r\n\r\nexport interface CuraCustomTheme {\r\n name: string;\r\n definitions: CuraCustomThemeDefinitions;\r\n fromPreset?: string;\r\n}\r\n\r\nexport interface CuraConfig {\r\n localAssetsPath?: string;\r\n theme?: string;\r\n customTheme?: CuraCustomTheme;\r\n onReady?(api?: any): any;\r\n}\r\n\r\nexport enum InterfaceModes {\r\n LIGHT = 'light',\r\n DARK = 'dark',\r\n}\r\n\r\nexport interface APIThemeFunctions {\r\n load(themeTag: string): unknown;\r\n setCustom(customThemeDefinitions: CuraCustomTheme): unknown;\r\n colors: {\r\n getColor(colorWithDepth?: string, opacity?: number): string;\r\n };\r\n fonts: {\r\n getFamily(type?: string): string;\r\n getWeights(): any;\r\n getSize(): string;\r\n getColor(): string;\r\n };\r\n spacing: {\r\n getSpacing(): string;\r\n };\r\n breakpoints: {\r\n get(size?: string, position?: string): any;\r\n };\r\n}\r\n\r\nexport type BreakpointSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';\r\nexport type BreakpointPosition = 'min' | 'max';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;AAAA;;AAEG;AACI,MAAM,YAAY,GAAG;;AAE1B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;AACP,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AAClB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AACnB,SAAA;AACF,KAAA;;AAED,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;;AAED,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE,wCAAwC;AAC9C,QAAA,OAAO,EAAE,wCAAwC;AACjD,QAAA,OAAO,EAAE,wCAAwC;AACjD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,GAAG;AACT,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,OAAO,EAAE,GAAG;AACZ,YAAA,MAA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"rededor-site-front-end-lib-cura-api.mjs","sources":["../../../projects/site-front-end-lib/cura/api/theme-presets/theme-default.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-maternidade-star.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-star.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/theme-presets.ts","../../../projects/site-front-end-lib/cura/api/theme-presets/static.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-colors.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-spacing.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-fonts.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme-breakpoints.module.ts","../../../projects/site-front-end-lib/cura/api/modules/cura-theme.module.ts","../../../projects/site-front-end-lib/cura/api/CuraConfig.ts","../../../projects/site-front-end-lib/cura/api/cura-api.service.ts","../../../projects/site-front-end-lib/cura/api/cura-api.types.ts","../../../projects/site-front-end-lib/cura/api/rededor-site-front-end-lib-cura-api.ts"],"sourcesContent":["/**\n * Cura Default Theme\n */\nexport const ThemeDefault = {\n /* Colors */\n color: {\n primary: {\n '100': '113,197,232',\n '300': '68,142,205',\n '500': '0,61,165',\n '700': '0,48,117',\n '900': '0,40,85',\n },\n secondary: {\n '100': '245,236,227',\n '300': '221,192,162',\n '500': '204,160,116',\n '700': '136,107,77',\n '900': '41,32,23',\n },\n accent: {\n '100': '255,194,123',\n '300': '255,168,74',\n '500': '255,130,0',\n '700': '215,114,10',\n '900': '155,90,26',\n },\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'Gotham', Arial, Helvetica, sans-serif\",\n heading: \"'Gotham', Arial, Helvetica, sans-serif\",\n display: \"'Gotham', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900,\n },\n },\n};\n","/**\n * Cura MaternidadeStar Theme\n */\nexport const ThemeMaternidadeStar = {\n /* Colors */\n color: {\n primary: {\n '100': '182, 141, 115',\n '300': '142, 103, 79',\n '500': '119, 77, 51',\n '700': '78, 43, 28',\n '900': '47, 22, 12',\n },\n secondary: {\n '100': '219, 193, 178',\n '300': '190, 159, 142',\n '500': '175, 150, 138',\n '700': '139, 112, 99',\n '900': '80, 59, 49',\n },\n accent: {\n '100': '229, 196, 158',\n '300': '198, 162, 122',\n '500': '145, 107, 59',\n '700': '110, 72, 23',\n '900': '83, 46, 6',\n },\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n heading: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n display: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900,\n },\n },\n};\n","/**\n * Cura Star Theme\n */\nexport const ThemeStar = {\n /* Colors */\n color: {\n primary: {\n '100': '182, 141, 115',\n '300': '142, 103, 79',\n '500': '119, 77, 51',\n '700': '78, 43, 28',\n '900': '47, 22, 12',\n },\n secondary: {\n '100': '219, 193, 178',\n '300': '190, 159, 142',\n '500': '175, 150, 138',\n '700': '139, 112, 99',\n '900': '80, 59, 49',\n },\n accent: {\n '100': '229, 196, 158',\n '300': '198, 162, 122',\n '500': '145, 107, 59',\n '700': '110, 72, 23',\n '900': '83, 46, 6',\n },\n },\n /* Spacing */\n spacing: {\n base: 4,\n },\n /* Fonts */\n font: {\n size: '14px',\n color: '#4A4A4A',\n body: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n heading: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n display: \"'SkolaSans', Arial, Helvetica, sans-serif\",\n weights: {\n thin: 100,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700,\n black: 900,\n },\n },\n};\n","import { ThemeDefault } from './theme-default';\nimport { ThemeMaternidadeStar } from './theme-maternidade-star';\nimport { ThemeStar } from './theme-star';\n\nexport const ThemePresets: { [key: string]: any } = {\n default: ThemeDefault,\n // 'maternidade': ThemeMaternity,\n // 'oncologia': ThemeOncology,\n // 'richet': ThemeRichet,\n // 'legacyDefault': ThemeLegacyDefault\n star: ThemeStar,\n maternidadeStar: ThemeMaternidadeStar,\n};\n","/**\n * Static theme data\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480,\n },\n small: {\n min: 481,\n max: 768,\n },\n medium: {\n min: 769,\n max: 992,\n },\n large: {\n min: 993,\n max: 1920,\n },\n xlarge: {\n min: 1921,\n max: 4096,\n },\n },\n};\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { Static } from '../theme-presets/static';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeColorsModule {\n private document: Document = inject(DOCUMENT);\n\n private readonly neutralDepthAlias: { [key: string]: string } = {\n purewhite: '0',\n white: '100',\n pale: '200',\n lighter: '300',\n light: '400',\n base: '500',\n medium: '600',\n dark: '700',\n darker: '800',\n black: '900',\n };\n\n private readonly colorDepthAlias: { [key: string]: string } = {\n lighter: '100',\n light: '300',\n base: '500',\n dark: '700',\n darker: '900',\n };\n\n /**\n * Get theme color.\n * @param colorWithDepth string Ex.: primary-light\n * @param opacity number Opacity value (0-1)\n * @returns RGBA value.\n */\n getColor(colorWithDepth: string = 'primary-base', opacity = 1): string {\n const { color, depth } = this.splitColorDepth(colorWithDepth);\n const staticColor = this.getStatic(color, depth, opacity);\n if (staticColor) return staticColor;\n return this.getDynamic(color, depth, opacity);\n }\n\n /**\n * Internal: Look for static color by name and depth.\n * @param color Color name.\n * @param depth Depth number or alias.\n * @param opacity Opacity value.\n * @returns RGBA value.\n */\n private getStatic(color: string, depth: string, opacity = 1): string | null {\n const colorObj = (Static.color as any)[color];\n if (!colorObj) return null;\n\n const alias = color === 'neutral' ? this.neutralDepthAlias[depth] : this.colorDepthAlias[depth];\n const colorValue = colorObj[alias] || colorObj[depth];\n\n return colorValue ? `rgba(${colorValue}, ${opacity})` : null;\n }\n\n /**\n * Internal: Look for theme dynamic colors.\n * @param color Color name.\n * @param depth Color depth.\n * @param opacity Opacity value.\n * @returns RGBA value.\n */\n private getDynamic(color: string, depth: string, opacity: number): string {\n const themeVar = this.colorDepthAlias[depth] ? `--cura-color-${color}-${this.colorDepthAlias[depth]}` : `--cura-color-${color}-${depth}`;\n\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.documentElement).getPropertyValue(themeVar);\n return computedValue ? `rgba(var(${themeVar}), ${opacity})` : `rgba(var(--cura-color-primary-500), ${opacity})`;\n }\n\n // Fallback para SSR\n return `rgba(var(${themeVar}), ${opacity})`;\n }\n\n /**\n * Internal: Split color strings\n * @param colorWithDepth Color string [color]-[depth]. Ex.: primary-dark.\n * @returns Object { color: string, depth: string }.\n */\n private splitColorDepth(colorWithDepth: string): { color: string; depth: string } {\n const [color, depth] = colorWithDepth.toLowerCase().split(/-(.*)/);\n return { color: color ?? 'primary', depth: depth ?? 'base' };\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeSpacingModule {\n private document: Document = inject(DOCUMENT);\n\n private readonly curaSpacing = '--cura-spacing-base';\n /**\n * Returns the base spacing var defined in the theme\n * @returns CSS variable string or fallback value\n */\n getSpacing(): string {\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(this.curaSpacing);\n return computedValue ? `var(${this.curaSpacing})` : '4';\n }\n\n // Fallback para SSR\n return `var(${this.curaSpacing})`;\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { ThemeDefault } from '../theme-presets/theme-default';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeFontsModule {\n private document: Document = inject(DOCUMENT);\n\n /**\n * Get the CSS variable related to the font family defined by the theme.\n * @param type 'body' | 'heading' | 'display'\n * @returns Related css variable as a string.\n */\n getFamily(type: string = 'body'): string {\n const curaFontFamilyCSSVar = `--cura-font-${type.toLowerCase()}`;\n\n if (typeof window !== 'undefined' && typeof getComputedStyle !== 'undefined' && this.document) {\n const computedValue = getComputedStyle(this.document.body).getPropertyValue(curaFontFamilyCSSVar);\n return computedValue ? `var(${curaFontFamilyCSSVar})` : 'var(--cura-font-body)';\n }\n\n // Fallback para SSR\n return `var(${curaFontFamilyCSSVar})`;\n }\n\n /**\n * Get the CSS variables related to font weights defined by the theme.\n * @returns Object with CSS vars weights definitions for thin, light, regular, medium, bold and black fonts.\n */\n getWeights(): any {\n const weights: { [key: string]: string } = {};\n Object.keys(ThemeDefault.font.weights).forEach((key) => {\n weights[key] = `var(--cura-font-weights-${key})`;\n });\n return weights;\n }\n\n /**\n * Get the CSS variable related to the font size base defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getSize(): string {\n return `var(--cura-font-size)`;\n }\n\n /**\n * Get CSS variable related to the font color defined by the theme.\n * @returns Related CSS variable as a string.\n */\n getColor(): string {\n return `var(--cura-font-color)`;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Static } from '../theme-presets/static';\nimport { BreakpointSize, BreakpointPosition } from '../cura-api.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeBreakpointsModule {\n /**\n * Returns breakpoint values defined in the theme\n * @param size Breakpoint size\n * @param position Min or max position\n * @returns Breakpoint value or all breakpoints\n */\n get(size: BreakpointSize | null = null, position: BreakpointPosition | null = null): any {\n if (size) {\n const breakpoint = position ? Static.breakpoints[size][position] : Static.breakpoints[size];\n if (breakpoint || breakpoint === 0) return breakpoint;\n }\n return Static.breakpoints;\n }\n}\n","import { DOCUMENT, inject, Injectable } from '@angular/core';\nimport { ThemePresets } from '../theme-presets/theme-presets';\nimport { CuraCustomTheme } from '../cura-api.types';\nimport { CuraThemeColorsModule } from './cura-theme-colors.module';\nimport { CuraThemeSpacingModule } from './cura-theme-spacing.module';\nimport { CuraThemeFontsModule } from './cura-theme-fonts.module';\nimport { CuraThemeBreakpointsModule } from './cura-theme-breakpoints.module';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraThemeModule {\n public colors: CuraThemeColorsModule = inject(CuraThemeColorsModule);\n public spacing: CuraThemeSpacingModule = inject(CuraThemeSpacingModule);\n public fonts: CuraThemeFontsModule = inject(CuraThemeFontsModule);\n public breakpoints: CuraThemeBreakpointsModule = inject(CuraThemeBreakpointsModule);\n private document: Document = inject(DOCUMENT);\n\n private rootElement: HTMLElement | null = null;\n private readonly prefix = '--cura';\n private groupObject: { [key: string]: any } = {};\n\n constructor() {\n if (this.document?.defaultView) {\n this.rootElement = this.document.defaultView.document.documentElement;\n }\n }\n\n /**\n * Load a theme.\n * @param theme Theme tag.\n */\n load(theme = 'default'): void {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\n this.buildCssVars(this.prefix, preset);\n }\n\n /**\n * Load variables for SSR\n * @param theme Theme tag\n * @returns Object with CSS variables\n */\n loadVarsSSR(theme = 'default'): { [key: string]: any } {\n const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets['default'];\n this.buildCssVars(this.prefix, preset, true);\n return this.groupObject;\n }\n\n /**\n * Define a custom theme\n * @param customTheme Custom theme object definition\n */\n setCustom(customTheme: CuraCustomTheme): void {\n const customTag = customTheme.name;\n if (customTag in ThemePresets) {\n console.log('Error building custom theme. Theme %s already exists. Loading default theme.', customTag);\n this.load('default');\n } else {\n const preset = customTheme.fromPreset && customTheme.fromPreset in ThemePresets ? ThemePresets[customTheme.fromPreset] : ThemePresets['default'];\n const newTheme = { ...JSON.parse(JSON.stringify(preset)) };\n this.mergeObject(customTheme.definitions, newTheme);\n ThemePresets[customTag] = newTheme;\n this.load(customTag);\n }\n }\n\n /* Private methods */\n\n /**\n * Set css var based on object structure\n */\n private setCssVar = (prop: [string, any], path: string): void => {\n if (!this.rootElement) return;\n const varName = this.groupPath(path, prop[0]);\n this.rootElement.style.setProperty(varName, prop[1]);\n };\n\n private groupPath = (a: string, b: string): string => `${a}-${b}`;\n\n private isObject = (val: any): boolean => {\n return val && typeof val === 'object' && !Array.isArray(val);\n };\n\n /**\n * Deep merge objects\n */\n private mergeObject = (from: any, to: any): void => {\n const entries = Object.entries(from);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.mergeObject(e[1], to[e[0]]);\n } else {\n to[e[0]] = e[1];\n }\n }\n };\n\n /**\n * Set css vars from preset object\n */\n private buildCssVars = (path: string, obj: any, isGroup = false): void => {\n const entries = Object.entries(obj);\n for (let e of entries) {\n if (this.isObject(e[1])) {\n this.buildCssVars(this.groupPath(path, e[0]), e[1], isGroup);\n } else {\n if (isGroup) {\n const varName = this.groupPath(path, e[0]);\n this.groupObject[varName] = e[1];\n } else {\n this.setCssVar(e, path);\n }\n }\n }\n };\n}\n","import { InjectionToken } from '@angular/core';\nimport { CuraConfig } from './cura-api.types';\n\n// Configura o cura com informações especificas de cada projeto.\nexport const CURA_CONFIG = new InjectionToken<CuraConfig>('curaConfig');\n","import { Injectable, WritableSignal, inject, signal } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { CuraConfig, APIThemeFunctions, CuraCustomTheme } from './cura-api.types';\nimport { CuraThemeModule } from './modules/cura-theme.module';\nimport { CURA_CONFIG } from './CuraConfig';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CuraApiService {\n private curaConfig: CuraConfig = inject(CURA_CONFIG);\n private document: Document = inject(DOCUMENT);\n private themeModule: CuraThemeModule = new CuraThemeModule();\n\n theme: APIThemeFunctions;\n localAssetsPath: WritableSignal<string>;\n\n constructor() {\n this.localAssetsPath = signal(this.curaConfig?.localAssetsPath ? this.curaConfig?.localAssetsPath : `/assets`);\n\n this.theme = {\n load: (themeTag: string) => this.themeModule.load(themeTag),\n setCustom: (customThemeDefinitions: CuraCustomTheme) => this.themeModule.setCustom(customThemeDefinitions),\n colors: {\n getColor: (colorWithDepth?: string, opacity?: number) => this.themeModule.colors.getColor(colorWithDepth, opacity),\n },\n fonts: {\n getFamily: (type?: string) => this.themeModule.fonts.getFamily(type),\n getWeights: () => this.themeModule.fonts.getWeights(),\n getSize: () => this.themeModule.fonts.getSize(),\n getColor: () => this.themeModule.fonts.getColor(),\n },\n spacing: {\n getSpacing: () => this.themeModule.spacing.getSpacing(),\n },\n breakpoints: {\n get: (size?: string, position?: string) => this.themeModule.breakpoints.get(size as any, position as any),\n },\n };\n\n this.addGlobalClasses();\n\n if (this.curaConfig && this.curaConfig.customTheme) {\n this.theme.setCustom(this.curaConfig.customTheme);\n } else {\n const theme = this.curaConfig && this.curaConfig.theme ? this.curaConfig.theme : 'default';\n this.theme.load(theme);\n }\n\n // Chama callback onReady se fornecido\n if (this.curaConfig && this.curaConfig.onReady) {\n this.curaConfig.onReady(this);\n }\n }\n\n /**\n * Adiciona classes CSS globais necessárias\n */\n private addGlobalClasses(): void {\n if (!this.document) return;\n\n const styleId = 'cura_global_classes';\n let styleElement = this.document.head.querySelector(`#${styleId}`);\n\n if (!styleElement) {\n styleElement = this.document.createElement('style');\n styleElement.id = styleId;\n styleElement.textContent = `\n .cura-body-scroll-lock {\n overflow: hidden;\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n }\n `;\n this.document.head.appendChild(styleElement);\n }\n }\n\n /**\n * Método para obter variáveis CSS para SSR\n * @param theme Nome do tema\n * @returns Objeto com variáveis CSS\n */\n getSSRVars(theme = 'default'): { [key: string]: any } {\n return this.themeModule.loadVarsSSR(theme);\n }\n\n /**\n * Método utilitário para adicionar/remover classe de scroll lock\n * @param lock Se deve bloquear o scroll\n */\n toggleBodyScrollLock(lock: boolean): void {\n if (!this.document) return;\n\n const body = this.document.body;\n if (lock) {\n body.classList.add('cura-body-scroll-lock');\n } else {\n body.classList.remove('cura-body-scroll-lock');\n }\n }\n}\n","export interface CuraCustomThemeColorDepth {\n base?: string;\n depth0?: string;\n depth20?: string;\n depth40?: string;\n depth80?: string;\n depth100?: string;\n}\n\nexport interface CuraCustomThemeColors {\n primary?: CuraCustomThemeColorDepth;\n secondary?: CuraCustomThemeColorDepth;\n accent?: CuraCustomThemeColorDepth;\n}\n\nexport interface CuraCustomThemeSpacing {\n base?: string;\n}\n\nexport interface CuraCustomThemeFontFamily {\n title?: string;\n body?: string;\n}\n\nexport interface CuraCustomThemeFontSize {\n base?: string;\n}\n\nexport interface CuraCustomThemeFont {\n family?: CuraCustomThemeFontFamily;\n size?: CuraCustomThemeFontSize;\n}\n\nexport interface CuraCustomThemeDefinitions {\n colors?: CuraCustomThemeColors;\n spacing?: CuraCustomThemeSpacing;\n font?: CuraCustomThemeFont;\n}\n\nexport interface CuraCustomTheme {\n name: string;\n definitions: CuraCustomThemeDefinitions;\n fromPreset?: string;\n}\n\nexport interface CuraConfig {\n localAssetsPath?: string;\n theme?: string;\n customTheme?: CuraCustomTheme;\n onReady?(api?: any): any;\n}\n\nexport enum InterfaceModes {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nexport interface APIThemeFunctions {\n load(themeTag: string): unknown;\n setCustom(customThemeDefinitions: CuraCustomTheme): unknown;\n colors: {\n getColor(colorWithDepth?: string, opacity?: number): string;\n };\n fonts: {\n getFamily(type?: string): string;\n getWeights(): any;\n getSize(): string;\n getColor(): string;\n };\n spacing: {\n getSpacing(): string;\n };\n breakpoints: {\n get(size?: string, position?: string): any;\n };\n}\n\nexport type BreakpointSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';\nexport type BreakpointPosition = 'min' | 'max';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;AAAA;;AAEG;AACI,MAAM,YAAY,GAAG;;AAE1B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;AACP,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,UAAU;AAClB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AAClB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,KAAK,EAAE,WAAW;AACnB,SAAA;AACF,KAAA;;AAED,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;;AAED,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE,wCAAwC;AAC9C,QAAA,OAAO,EAAE,wCAAwC;AACjD,QAAA,OAAO,EAAE,wCAAwC;AACjD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,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|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraBadgeCounterComponent, isStandalone: true, selector: "cura-badge-counter", inputs: { number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--base-spacing": "baseSpacing()", "style.--background-color": "colorStyles().backgroundColor" } }, ngImport: i0, template: "@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\n {{ displayText() }}\n </cura-label>\n </div>\n}\n", styles: [":host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent!important}:host .container.outline:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}\n"], dependencies: [{ kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeCounterComponent, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
79
|
args: [{ selector: 'cura-badge-counter', imports: [CuraLabelComponent], host: {
|
|
80
80
|
'[style.--base-spacing]': 'baseSpacing()',
|
|
81
81
|
'[style.--background-color]': 'colorStyles().backgroundColor',
|
|
82
|
-
}, template: "@if (shouldShow()) {\
|
|
82
|
+
}, template: "@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\n {{ displayText() }}\n </cura-label>\n </div>\n}\n", styles: [":host{width:fit-content;display:inline-block;height:calc(var(--cura-spacing-base) * 4px);position:relative}:host .container{display:flex;min-width:calc(var(--cura-spacing-base) * 4px);width:fit-content;height:calc(var(--cura-spacing-base) * 4px);justify-content:center;align-items:center;border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2);background:var(--background-color);box-sizing:border-box;padding:0 calc(var(--cura-spacing-base) * 1px);position:relative}:host .container.outline,:host .container.transparent{background:transparent!important}:host .container.outline:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid var(--background-color);border-radius:calc(calc(var(--cura-spacing-base) * 4px) / 2)}\n"] }]
|
|
83
83
|
}], propDecorators: { number: [{ type: i0.Input, args: [{ isSignal: true, alias: "number", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/rededor-site-front-end-lib-cura-badges-cura-badge-counter.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-counter.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/cura-badge-counter.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-counter/rededor-site-front-end-lib-cura-badges-cura-badge-counter.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { BadgeType } from '@rededor/site-front-end-lib/cura/badges';\n\n@Component({\n selector: 'cura-badge-counter',\n imports: [CuraLabelComponent],\n templateUrl: './cura-badge-counter.component.html',\n styleUrls: ['./cura-badge-counter.component.scss'],\n host: {\n '[style.--base-spacing]': 'baseSpacing()',\n '[style.--background-color]': 'colorStyles().backgroundColor',\n },\n})\nexport class CuraBadgeCounterComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Número a ser representado no badge.\n * Apresentará 99+ para números acima desse valor.\n */\n number = input<number | null>(null);\n\n /**\n * Cor fundamental do design system sem profundidade.\n * Ex.: primary (padrão)\n */\n color = input<string>('primary');\n\n /**\n * Define o estado do badge como desabilitado ou habilitado.\n */\n disabled = input<boolean>(false);\n\n /**\n * Define o estilo visual entre solid (default), outline ou transparent.\n */\n type = input<BadgeType>('solid');\n\n // Computed properties para cores e estilos\n baseSpacing = computed(() => {\n return this.curaApi.theme.spacing.getSpacing();\n });\n\n colorStyles = computed(() => {\n const color = this.color().toLowerCase();\n const type = this.type();\n const disabled = this.disabled();\n\n let bgColorName: string;\n let labelColor: string;\n\n // type outline and transparent\n if (type === 'outline' || type === 'transparent') {\n bgColorName = disabled ? 'neutral-medium' : `${color}-dark`;\n labelColor = bgColorName;\n // type solid - default\n } else {\n bgColorName = color === 'neutral' || disabled ? 'neutral-pale' : `${color}-lighter`;\n labelColor = disabled ? 'neutral-medium' : `${color}-dark`;\n }\n\n return {\n backgroundColor: this.curaApi.theme.colors.getColor(bgColorName),\n labelColor,\n };\n });\n\n private displayNumber = computed(() => {\n const num = this.number();\n if (num === null || (num && num <= 0)) return '';\n return num >= 100 ? '99+' : num.toString();\n });\n\n containerClasses = computed(() => {\n const classes = [];\n classes.push('container');\n classes.push(this.type().toLowerCase());\n return classes.join(' ');\n });\n\n shouldShow = computed(() => {\n return this.displayNumber() !== null;\n });\n\n displayText = computed(() => {\n return this.displayNumber() || '';\n });\n\n labelColor = computed(() => {\n return this.colorStyles().labelColor;\n });\n}\n","@if (shouldShow()) {\n <div [class]=\"containerClasses()\">\n <cura-label size=\"xsmall\" lineHeight=\"none\" [color]=\"labelColor()\">\n {{ displayText() }}\n </cura-label>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAea,yBAAyB,CAAA;AAVtC,IAAA,WAAA,GAAA;AAWU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;;AAGG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,IAAI,kDAAC;AAEnC;;;AAGG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,SAAS,iDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG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debugName: "displayDistance" }] : []));
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeDistanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", type: CuraBadgeDistanceComponent, isStandalone: true, selector: "cura-badge-distance", inputs: { distance: { classPropertyName: "distance", publicName: "distance", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--neutral-pale": "neutralPale()", "style.--base-spacing": "baseSpacing()" } }, ngImport: i0, template: "<div class=\"container\">\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-black\">\n {{ displayDistance() }}\n </cura-label>\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-dark\">\n {{ label() }}\n </cura-label>\n</div>\n", styles: [":host{display:inline-block}:host .container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:calc(var(--cura-spacing-base) * 10px);height:calc(var(--cura-spacing-base) * 10px);border-radius:calc(var(--cura-spacing-base) * 1px);background:var(--neutral-pale)}\n"], dependencies: [{ kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeDistanceComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: 'cura-badge-distance', imports: [CuraLabelComponent], host: {
|
|
45
45
|
'[style.--neutral-pale]': 'neutralPale()',
|
|
46
46
|
'[style.--base-spacing]': 'baseSpacing()',
|
|
47
|
-
}, template: "<div class=\"container\">\
|
|
47
|
+
}, template: "<div class=\"container\">\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-black\">\n {{ displayDistance() }}\n </cura-label>\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-dark\">\n {{ label() }}\n </cura-label>\n</div>\n", styles: [":host{display:inline-block}:host .container{display:flex;flex-direction:column;justify-content:center;align-items:center;width:calc(var(--cura-spacing-base) * 10px);height:calc(var(--cura-spacing-base) * 10px);border-radius:calc(var(--cura-spacing-base) * 1px);background:var(--neutral-pale)}\n"] }]
|
|
48
48
|
}], propDecorators: { distance: [{ type: i0.Input, args: [{ isSignal: true, alias: "distance", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/cura-badge-distance.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/cura-badge-distance.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/rededor-site-front-end-lib-cura-badges-cura-badge-distance.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-distance.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/cura-badge-distance.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/cura-badge-distance.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-distance/rededor-site-front-end-lib-cura-badges-cura-badge-distance.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\n\n@Component({\n selector: 'cura-badge-distance',\n imports: [CuraLabelComponent],\n templateUrl: './cura-badge-distance.component.html',\n styleUrls: ['./cura-badge-distance.component.scss'],\n host: {\n '[style.--neutral-pale]': 'neutralPale()',\n '[style.--base-spacing]': 'baseSpacing()',\n },\n})\nexport class CuraBadgeDistanceComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Distance value to display\n */\n distance = input<number>(0);\n\n /**\n * Label for the distance unit\n */\n label = input<string>('km');\n\n // Computed signals\n private formattedDistance = computed(() => {\n const distanceValue = this.distance();\n const roundedDistance = distanceValue % 1 !== 0 ? parseFloat(distanceValue.toFixed(1)) : distanceValue;\n const isThousandRounded = Math.abs(roundedDistance) >= 1000;\n const displayDistance = isThousandRounded ? parseFloat((roundedDistance / 1000).toFixed(1)) : roundedDistance;\n\n return {\n value: displayDistance,\n isThousandRounded,\n displayText: `${displayDistance}${isThousandRounded ? 'K' : ''}`,\n };\n });\n\n neutralPale = computed(() => {\n return this.curaApi.theme.colors.getColor('neutral-pale');\n });\n\n baseSpacing = computed(() => {\n return this.curaApi.theme.spacing.getSpacing();\n });\n\n displayDistance = computed(() => {\n return this.formattedDistance().displayText;\n });\n}\n","<div class=\"container\">\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-black\">\n {{ displayDistance() }}\n </cura-label>\n <cura-label size=\"xsmall\" weight=\"bold\" color=\"neutral-dark\">\n {{ label() }}\n </cura-label>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAca,0BAA0B,CAAA;AAVvC,IAAA,WAAA,GAAA;AAWU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC,oDAA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@ class CuraBadgeDotComponent {
|
|
|
43
43
|
return classes.join(' ');
|
|
44
44
|
}, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
|
|
45
45
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
47
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeDotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", type: CuraBadgeDotComponent, isStandalone: true, selector: "cura-badge-dot", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "style.--base-spacing": "baseSpacing()", "style.--neutral-medium": "neutralMedium()", "style.--neutral-pale": "neutralPale()", "style.--color": "colorValue()", "style.--color-dark": "colorDark()" } }, ngImport: i0, template: "<div [class]=\"containerClasses()\"></div>\n", styles: [":host{display:block;position:relative;width:fit-content;height:fit-content}:host .container{width:calc(var(--cura-spacing-base) * 2px);height:calc(var(--cura-spacing-base) * 2px);position:relative;box-sizing:border-box}:host .container:before{width:100%;height:100%;position:absolute;left:0;top:0;content:\"\";box-sizing:border-box;border-radius:50%;border:1px solid var(--color-dark);background:var(--color)}:host .container.disabled:before{background:var(--neutral-pale);border:1px solid var(--neutral-medium)}:host .container.outline:before{background:transparent;border:2px solid var(--color)}:host .container.outline.disabled:before{border:2px solid var(--neutral-medium)}:host .container.transparent:before{background:var(--color-dark);border:none}:host .container.transparent.disabled:before{background:var(--neutral-medium);border:none}\n"] }); }
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgeDotComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{ selector: 'cura-badge-dot', imports: [], host: {
|
|
52
52
|
role: 'img',
|
|
@@ -55,7 +55,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
55
55
|
'[style.--neutral-pale]': 'neutralPale()',
|
|
56
56
|
'[style.--color]': 'colorValue()',
|
|
57
57
|
'[style.--color-dark]': 'colorDark()',
|
|
58
|
-
}, template: "<div [class]=\"containerClasses()\"></div>\
|
|
58
|
+
}, template: "<div [class]=\"containerClasses()\"></div>\n", styles: [":host{display:block;position:relative;width:fit-content;height:fit-content}:host .container{width:calc(var(--cura-spacing-base) * 2px);height:calc(var(--cura-spacing-base) * 2px);position:relative;box-sizing:border-box}:host .container:before{width:100%;height:100%;position:absolute;left:0;top:0;content:\"\";box-sizing:border-box;border-radius:50%;border:1px solid var(--color-dark);background:var(--color)}:host .container.disabled:before{background:var(--neutral-pale);border:1px solid var(--neutral-medium)}:host .container.outline:before{background:transparent;border:2px solid var(--color)}:host .container.outline.disabled:before{border:2px solid var(--neutral-medium)}:host .container.transparent:before{background:var(--color-dark);border:none}:host .container.transparent.disabled:before{background:var(--neutral-medium);border:none}\n"] }]
|
|
59
59
|
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/cura-badge-dot.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/cura-badge-dot.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/rededor-site-front-end-lib-cura-badges-cura-badge-dot.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-dot.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/cura-badge-dot.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/cura-badge-dot.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-dot/rededor-site-front-end-lib-cura-badges-cura-badge-dot.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { BadgeType } from '@rededor/site-front-end-lib/cura/badges';\n\n@Component({\n selector: 'cura-badge-dot',\n imports: [],\n templateUrl: './cura-badge-dot.component.html',\n styleUrls: ['./cura-badge-dot.component.scss'],\n host: {\n role: 'img',\n '[style.--base-spacing]': 'baseSpacing()',\n '[style.--neutral-medium]': 'neutralMedium()',\n '[style.--neutral-pale]': 'neutralPale()',\n '[style.--color]': 'colorValue()',\n '[style.--color-dark]': 'colorDark()',\n },\n})\nexport class CuraBadgeDotComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Cor fundamental do design system sem profundidade.\n * Ex.: primary (padrão)\n */\n color = input<string>('primary');\n\n /**\n * Define o estado do badge como desabilitado ou habilitado.\n */\n disabled = input<boolean>(false);\n\n /**\n * Define o estilo visual entre solid (default), outline ou transparent.\n */\n type = input<BadgeType>('solid');\n\n // Computed signals\n baseSpacing = computed(() => {\n return this.curaApi.theme.spacing.getSpacing();\n });\n\n neutralMedium = computed(() => {\n return this.curaApi.theme.colors.getColor('neutral-dark');\n });\n\n neutralPale = computed(() => {\n return this.curaApi.theme.colors.getColor('neutral-pale');\n });\n\n colorValue = computed(() => {\n return this.curaApi.theme.colors.getColor(this.color());\n });\n\n colorDark = computed(() => {\n return this.curaApi.theme.colors.getColor(`${this.color()}-dark`);\n });\n\n containerClasses = computed(() => {\n const classes = [];\n\n classes.push('container');\n classes.push(this.type());\n\n if (this.disabled()) classes.push('disabled');\n\n return classes.join(' ');\n });\n}\n","<div [class]=\"containerClasses()\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAkBa,qBAAqB,CAAA;AAdlC,IAAA,WAAA,GAAA;AAeU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;;AAGG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,SAAS,iDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,OAAO,gDAAC;;AAGhC,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE;AAChD,QAAA,CAAC,uDAAC;AAEF,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAK;AAC5B,YAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;AAC3D,QAAA,CAAC,yDAAC;AAEF,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;AAC3D,QAAA,CAAC,uDAAC;AAEF,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;AACzB,YAAA,OAAO,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E,iBAAiB;AAC7C,wBAAA,wBAAwB,EAAE,eAAe;AACzC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,sBAAsB,EAAE,aAAa;AACtC,qBAAA,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,CAAA,g1BAAA,CAAA,EAAA;;;AEhBH;;AAEG;;;;"}
|
|
@@ -71,16 +71,16 @@ class CuraBadgePillComponent {
|
|
|
71
71
|
return this.disabled() ? 'neutral-medium' : `${this.color()}-dark`;
|
|
72
72
|
}, ...(ngDevMode ? [{ debugName: "symbolColor" }] : []));
|
|
73
73
|
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgePillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraBadgePillComponent, isStandalone: true, selector: "cura-badge-pill", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, iconset: { classPropertyName: "iconset", publicName: "iconset", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--border-radius": "borderRadius() || \"2px\"", "style.--color-background": "colorBackground()", "style.--color-base": "colorBase()" } }, ngImport: i0, template: "<div [class]=\"containerClasses()\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [iconset]=\"iconset()\" size=\"micro\" [color]=\"symbolColor()\"> </cura-icon>\n }\n <cura-label size=\"xsmall\" lineHeight=\"117%\" [color]=\"symbolColor()\">\n <ng-content></ng-content>\n </cura-label>\n</div>\n", styles: [":host{display:inline-block}:host .badge-container{display:flex;align-items:center;justify-content:center;gap:calc(var(--cura-spacing-base) * 1px);padding:calc(var(--cura-spacing-base) * 1px);border-radius:var(--border-radius);font-family:var(--cura-font-body);font-size:var(--cura-font-size);position:relative;box-sizing:border-box;width:fit-content;height:calc(var(--cura-spacing-base) * 5px);min-width:calc(var(--cura-spacing-base) * 5px);background-color:var(--color-background)}:host .badge-container:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid transparent;border-radius:var(--border-radius);pointer-events:none}:host .badge-container.icon-only cura-label{display:none!important}:host .badge-container.disabled{background-color:#e9e9e9}:host .badge-container.outline{background-color:transparent}:host .badge-container.outline:before{border:1px solid var(--color-base)}:host .badge-container.outline.disabled:before{border:1px solid rgb(146,146,146)}:host .badge-container.transparent{background-color:transparent}:host .badge-container.transparent:before{border:1px solid transparent}:host .badge-container.transparent.disabled{background-color:transparent}:host .badge-container cura-icon{display:flex}\n"], dependencies: [{ kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraBadgePillComponent, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
79
|
args: [{ selector: 'cura-badge-pill', imports: [CuraIconComponent, CuraLabelComponent], host: {
|
|
80
80
|
'[style.--border-radius]': 'borderRadius() || "2px"',
|
|
81
81
|
'[style.--color-background]': 'colorBackground()',
|
|
82
82
|
'[style.--color-base]': 'colorBase()',
|
|
83
|
-
}, template: "<div [class]=\"containerClasses()\">\
|
|
83
|
+
}, template: "<div [class]=\"containerClasses()\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [iconset]=\"iconset()\" size=\"micro\" [color]=\"symbolColor()\"> </cura-icon>\n }\n <cura-label size=\"xsmall\" lineHeight=\"117%\" [color]=\"symbolColor()\">\n <ng-content></ng-content>\n </cura-label>\n</div>\n", styles: [":host{display:inline-block}:host .badge-container{display:flex;align-items:center;justify-content:center;gap:calc(var(--cura-spacing-base) * 1px);padding:calc(var(--cura-spacing-base) * 1px);border-radius:var(--border-radius);font-family:var(--cura-font-body);font-size:var(--cura-font-size);position:relative;box-sizing:border-box;width:fit-content;height:calc(var(--cura-spacing-base) * 5px);min-width:calc(var(--cura-spacing-base) * 5px);background-color:var(--color-background)}:host .badge-container:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:1px solid transparent;border-radius:var(--border-radius);pointer-events:none}:host .badge-container.icon-only cura-label{display:none!important}:host .badge-container.disabled{background-color:#e9e9e9}:host .badge-container.outline{background-color:transparent}:host .badge-container.outline:before{border:1px solid var(--color-base)}:host .badge-container.outline.disabled:before{border:1px solid rgb(146,146,146)}:host .badge-container.transparent{background-color:transparent}:host .badge-container.transparent:before{border:1px solid transparent}:host .badge-container.transparent.disabled{background-color:transparent}:host .badge-container cura-icon{display:flex}\n"] }]
|
|
84
84
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], iconset: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconset", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], borderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadius", required: false }] }] } });
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/cura-badge-pill.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/cura-badge-pill.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/rededor-site-front-end-lib-cura-badges-cura-badge-pill.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"rededor-site-front-end-lib-cura-badges-cura-badge-pill.mjs","sources":["../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/cura-badge-pill.component.ts","../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/cura-badge-pill.component.html","../../../projects/site-front-end-lib/cura/badges/cura-badge-pill/rededor-site-front-end-lib-cura-badges-cura-badge-pill.ts"],"sourcesContent":["import { Component, inject, input, computed } from '@angular/core';\nimport { CuraApiService } from '@rededor/site-front-end-lib/cura/api';\nimport { CuraIconComponent } from '@rededor/site-front-end-lib/cura/icons/cura-icon';\nimport { CuraLabelComponent } from '@rededor/site-front-end-lib/cura/forms/cura-label';\nimport { BadgeType, BadgeColor } from '@rededor/site-front-end-lib/cura/badges';\n\n@Component({\n selector: 'cura-badge-pill',\n imports: [CuraIconComponent, CuraLabelComponent],\n templateUrl: './cura-badge-pill.component.html',\n styleUrls: ['./cura-badge-pill.component.scss'],\n host: {\n '[style.--border-radius]': 'borderRadius() || \"2px\"',\n '[style.--color-background]': 'colorBackground()',\n '[style.--color-base]': 'colorBase()',\n },\n // '[style.--base-spacing]': 'baseSpacing()',\n // '[style.--font-family]': 'fontFamily()',\n // '[style.--font-size]': 'fontSize()',\n // '[style.--color-background-disabled]': 'colorBackgroundDisabled()',\n // '[style.--color-outline-disabled]': 'colorOutlineDisabled()',\n})\nexport class CuraBadgePillComponent {\n private curaApi = inject(CuraApiService);\n\n /**\n * Badge type: solid | outline | transparent\n */\n type = input<BadgeType>('solid');\n\n /**\n * Color base from color scheme. Default: primary\n */\n color = input<BadgeColor>('primary');\n\n /**\n * Name of the icon to be used from iconset\n */\n iconName = input<string>('');\n\n /**\n * Custom iconset if needed\n */\n iconset = input<string>('default');\n\n /**\n * Disabled state. Boolean\n */\n disabled = input<boolean>(false);\n\n /**\n * Set badge to icon only. Boolean\n */\n iconOnly = input<boolean>(false);\n\n /**\n * Set border-radius.\n */\n borderRadius = input<string>('2px');\n\n // Computed signals\n colorBackground = computed(() => {\n return this.curaApi.theme.colors.getColor(`${this.color()}-lighter`);\n });\n\n colorBase = computed(() => {\n return this.curaApi.theme.colors.getColor(`${this.color()}-dark`);\n });\n\n // colorBackgroundDisabled = computed(() => {\n // return this.curaApi.theme.colors.getColor('neutral-pale');\n // });\n\n // colorOutlineDisabled = computed(() => {\n // return this.curaApi.theme.colors.getColor('neutral-medium');\n // });\n\n // baseSpacing = computed(() => {\n // return this.curaApi.theme.spacing.getSpacing();\n // });\n\n // fontFamily = computed(() => {\n // return this.curaApi.theme.fonts.getFamily();\n // });\n\n // fontSize = computed(() => {\n // return this.curaApi.theme.fonts.getSize();\n // });\n\n containerClasses = computed(() => {\n const classes = [];\n\n classes.push('badge-container');\n classes.push(this.type());\n\n if (this.iconOnly()) classes.push('icon-only');\n if (this.disabled()) classes.push('disabled');\n\n return classes.join(' ');\n });\n\n symbolColor = computed(() => {\n return this.disabled() ? 'neutral-medium' : `${this.color()}-dark`;\n });\n}\n","<div [class]=\"containerClasses()\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [iconset]=\"iconset()\" size=\"micro\" [color]=\"symbolColor()\"> </cura-icon>\n }\n <cura-label size=\"xsmall\" lineHeight=\"117%\" [color]=\"symbolColor()\">\n <ng-content></ng-content>\n </cura-label>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsBa,sBAAsB,CAAA;AAhBnC,IAAA,WAAA,GAAA;AAiBU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,cAAc,CAAC;AAExC;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,OAAO,gDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAa,SAAS,iDAAC;AAEpC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,EAAE,oDAAC;AAE5B;;AAEG;AACH,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,SAAS,mDAAC;AAElC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAEhC;;AAEG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,KAAK,wDAAC;;AAGnC,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAC,MAAK;AAC9B,YAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA,QAAA,CAAU,CAAC;AACtE,QAAA,CAAC,2DAAC;AAEF,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AACxB,YAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA,KAAA,CAAO,CAAC;AACnE,QAAA,CAAC,qDAAC;;;;;;;;;;;;;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EAAA,CAAA,CAAA;;4FAcpC,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAhBlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,WAClB,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,EAAA,IAAA,EAG1C;AACJ,wBAAA,yBAAyB,EAAE,yBAAyB;AACpD,wBAAA,4BAA4B,EAAE,mBAAmB;AACjD,wBAAA,sBAAsB,EAAE,aAAa;AACtC,qBAAA,EAAA,QAAA,EAAA,8TAAA,EAAA,MAAA,EAAA,CAAA,iwCAAA,CAAA,EAAA;;;AEfH;;AAEG;;;;"}
|
|
@@ -144,16 +144,16 @@ class CuraButtonOutlineComponent {
|
|
|
144
144
|
}
|
|
145
145
|
this.buttonClick.emit(event);
|
|
146
146
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
148
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonOutlineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CuraButtonOutlineComponent, isStandalone: true, selector: "cura-button-outline", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, iconset: { classPropertyName: "iconset", publicName: "iconset", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, background: { classPropertyName: "background", publicName: "background", isSignal: true, isRequired: false, transformFunction: null }, fontColor: { classPropertyName: "fontColor", publicName: "fontColor", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, host: { listeners: { "mouseenter": "handleMouseEnter()", "mouseleave": "handleMouseLeave()" }, properties: { "attr.role": "href() ? \"link\" : type()", "attr.aria-disabled": "disabled()", "attr.href": "href()" } }, ngImport: i0, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button:before,:host a:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled:before,:host a.disabled:before{border-color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: CuraIconComponent, selector: "cura-icon", inputs: ["name", "color", "size", "iconset", "disabled"] }, { kind: "component", type: CuraLoaderCircleComponent, selector: "cura-loader-circle", inputs: ["size", "color"] }, { kind: "component", type: CuraLabelComponent, selector: "cura-label", inputs: ["size", "weight", "spotColor", "color", "marginBlock", "lineHeight", "textOverflow"] }] }); }
|
|
149
149
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CuraButtonOutlineComponent, decorators: [{
|
|
151
151
|
type: Component,
|
|
152
152
|
args: [{ selector: 'cura-button-outline', imports: [CommonModule, CuraIconComponent, CuraLoaderCircleComponent, CuraLabelComponent], host: {
|
|
153
153
|
'[attr.role]': 'href() ? "link" : type()',
|
|
154
154
|
'[attr.aria-disabled]': 'disabled()',
|
|
155
155
|
'[attr.href]': 'href()',
|
|
156
|
-
}, template: "<ng-template #button>\
|
|
156
|
+
}, template: "<ng-template #button>\n <ng-content></ng-content>\n</ng-template>\n\n@if (href()) {\n <a\n [href]=\"disabled() ? '' : href()\"\n [target]=\"target()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </a>\n} @else {\n <button\n [type]=\"type()\"\n [class]=\"containerClasses()\"\n [ngStyle]=\"buttonStyles()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"handleClick($event)\"\n (mouseenter)=\"handleMouseEnter()\"\n (mouseleave)=\"handleMouseLeave()\"\n >\n <span class=\"button-container\">\n @if (iconName()) {\n <cura-icon [name]=\"iconName()\" [size]=\"iconSize()\" [color]=\"symbolColor()\" [iconset]=\"iconset()\" [disabled]=\"disabled()\"> </cura-icon>\n }\n <cura-label class=\"label\" [size]=\"labelSize()\" lineHeight=\"normal\" [color]=\"symbolColor()\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </cura-label>\n </span>\n <cura-loader-circle [size]=\"size()\" [color]=\"symbolColor()\"> </cura-loader-circle>\n </button>\n}\n", styles: [":host{--border-radius: 4px;display:inline-block;vertical-align:middle;position:relative}:host button,:host a{outline:none;box-shadow:none;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none!important;font-size:var(--font-size);cursor:pointer;transition:background-color .07s linear,box-shadow .07s linear,border-color .07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none}:host button:focus,:host a:focus{outline:2px solid #6ea8ff}:host button:before,:host a:before{content:\"\";width:100%;height:100%;position:absolute;left:0;top:0;box-sizing:border-box;border:2px solid var(--color-dark-neutral-purewhite);border-radius:var(--border-radius)}:host button:not(.disabled):not(.isLoading):hover,:host a:not(.disabled):not(.isLoading):hover{background-color:var(--color-lighter-color-darker)}:host button:not(.disabled):not(.inverted):not(.isLoading):active,:host a:not(.disabled):not(.inverted):not(.isLoading):active{background-color:var(--color-light-color-darker)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px);min-height:calc(var(--cura-spacing-base) * 11px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px);min-height:calc(var(--cura-spacing-base) * 10px)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px);min-height:calc(var(--cura-spacing-base) * 8px)}:host button .button-container,:host a .button-container{display:flex;align-items:center;opacity:1;transition:opacity .2s linear;position:relative}:host button.icon-right .button-container,:host a.icon-right .button-container{flex-direction:row-reverse}:host button.justify .button-container,:host a.justify .button-container{width:100%}:host button cura-label,:host a cura-label{flex:1;text-align:var(--text-align, \"left\")}:host button.icon-left cura-icon,:host a.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 3px)}:host button.icon-right cura-icon,:host a.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 3px)}:host button.medium.icon-left cura-icon,:host button.small.icon-left cura-icon,:host a.medium.icon-left cura-icon,:host a.small.icon-left cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.medium.icon-right cura-icon,:host button.small.icon-right cura-icon,:host a.medium.icon-right cura-icon,:host a.small.icon-right cura-icon{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled:before,:host a.disabled:before{border-color:var(--neutral-dark)}:host button.icon-only,:host a.icon-only{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.icon-only cura-label,:host a.icon-only cura-label{display:none}:host button.icon-only cura-icon,:host a.icon-only cura-icon{margin-left:0!important;margin-right:0!important}:host button.icon-only.medium,:host a.icon-only.medium{padding:calc(var(--cura-spacing-base) * 3px)}:host button.icon-only.small,:host a.icon-only.small{padding:calc(var(--cura-spacing-base) * 2px)}:host button cura-loader-circle,:host a cura-loader-circle{position:absolute;display:none}:host button.isLoading,:host a.isLoading{cursor:wait}:host button.isLoading .button-container,:host a.isLoading .button-container{opacity:0}:host button.isLoading cura-loader-circle,:host a.isLoading cura-loader-circle{display:block}\n"] }]
|
|
157
157
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], iconset: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconset", required: false }] }], iconPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPosition", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], background: [{ type: i0.Input, args: [{ isSignal: true, alias: "background", required: false }] }], fontColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontColor", required: false }] }], textAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "textAlign", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], handleMouseEnter: [{
|
|
158
158
|
type: HostListener,
|
|
159
159
|
args: ['mouseenter']
|