@caribeng/ui 22.1.0 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -12
- package/fesm2022/caribeng-ui-accordion.mjs +2 -2
- package/fesm2022/caribeng-ui-anchor.mjs +169 -0
- package/fesm2022/caribeng-ui-autocomplete.mjs +10 -8
- package/fesm2022/caribeng-ui-avatargroup.mjs +9 -3
- package/fesm2022/caribeng-ui-blockui.mjs +12 -4
- package/fesm2022/caribeng-ui-breadcrumb.mjs +5 -2
- package/fesm2022/caribeng-ui-button.mjs +22 -2
- package/fesm2022/caribeng-ui-caribe-alert.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-animation-lottie.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-button-group.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-calendar.mjs +11 -6
- package/fesm2022/caribeng-ui-caribe-card-content.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-card-move.mjs +29 -7
- package/fesm2022/caribeng-ui-caribe-card-select.mjs +56 -14
- package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +10 -7
- package/fesm2022/caribeng-ui-caribe-coachmark.mjs +42 -19
- package/fesm2022/caribeng-ui-caribe-data-table.mjs +15 -9
- package/fesm2022/caribeng-ui-caribe-dots-indicator.mjs +38 -5
- package/fesm2022/caribeng-ui-caribe-expansion-panel.mjs +16 -5
- package/fesm2022/caribeng-ui-caribe-fab-menu.mjs +56 -7
- package/fesm2022/caribeng-ui-caribe-file-download.mjs +68 -27
- package/fesm2022/caribeng-ui-caribe-file-select.mjs +22 -17
- package/fesm2022/caribeng-ui-caribe-float-menu.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-footer.mjs +8 -4
- package/fesm2022/caribeng-ui-caribe-header.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-icon-button.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-illustration.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-input-search.mjs +14 -10
- package/fesm2022/caribeng-ui-caribe-input-select.mjs +12 -10
- package/fesm2022/caribeng-ui-caribe-input-token.mjs +61 -11
- package/fesm2022/caribeng-ui-caribe-link.mjs +7 -2
- package/fesm2022/caribeng-ui-caribe-loader.mjs +8 -5
- package/fesm2022/caribeng-ui-caribe-modal.mjs +32 -16
- package/fesm2022/caribeng-ui-caribe-off-canvas.mjs +26 -12
- package/fesm2022/caribeng-ui-caribe-onboarding.mjs +44 -19
- package/fesm2022/caribeng-ui-caribe-pictogram.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-pop-over.mjs +34 -10
- package/fesm2022/caribeng-ui-caribe-preloader.mjs +9 -6
- package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-shortcut.mjs +8 -3
- package/fesm2022/caribeng-ui-caribe-step-indicator.mjs +12 -5
- package/fesm2022/caribeng-ui-caribe-stroke.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-switch.mjs +5 -3
- package/fesm2022/caribeng-ui-caribe-tag-button.mjs +1 -1
- package/fesm2022/caribeng-ui-caribe-tracker.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-transaction-status.mjs +1 -1
- package/fesm2022/caribeng-ui-caribe-voucher.mjs +11 -8
- package/fesm2022/caribeng-ui-carousel.mjs +49 -14
- package/fesm2022/caribeng-ui-cascadeselect.mjs +22 -8
- package/fesm2022/caribeng-ui-chart.mjs +2598 -303
- package/fesm2022/caribeng-ui-chip.mjs +9 -4
- package/fesm2022/caribeng-ui-chips.mjs +9 -5
- package/fesm2022/caribeng-ui-colorpicker.mjs +9 -7
- package/fesm2022/caribeng-ui-confirmdialog.mjs +74 -9
- package/fesm2022/caribeng-ui-confirmpopup.mjs +134 -9
- package/fesm2022/caribeng-ui-contextmenu.mjs +6 -3
- package/fesm2022/caribeng-ui-dataview.mjs +211 -6
- package/fesm2022/caribeng-ui-datepicker.mjs +1630 -393
- package/fesm2022/caribeng-ui-descriptions.mjs +124 -0
- package/fesm2022/caribeng-ui-dialog.mjs +10 -7
- package/fesm2022/caribeng-ui-dock.mjs +6 -3
- package/fesm2022/caribeng-ui-drawer.mjs +10 -7
- package/fesm2022/caribeng-ui-dynamicdialog.mjs +210 -6
- package/fesm2022/caribeng-ui-editor.mjs +4392 -243
- package/fesm2022/caribeng-ui-empty.mjs +80 -0
- package/fesm2022/caribeng-ui-file-card.mjs +2 -2
- package/fesm2022/caribeng-ui-fileupload.mjs +96 -19
- package/fesm2022/caribeng-ui-floatlabel.mjs +4 -2
- package/fesm2022/caribeng-ui-folder-card.mjs +10 -3
- package/fesm2022/caribeng-ui-galleria.mjs +76 -45
- package/fesm2022/caribeng-ui-image.mjs +52 -29
- package/fesm2022/caribeng-ui-inplace.mjs +22 -6
- package/fesm2022/caribeng-ui-input-number.mjs +9 -7
- package/fesm2022/caribeng-ui-inputgroup.mjs +2 -2
- package/fesm2022/caribeng-ui-inputmask.mjs +14 -11
- package/fesm2022/caribeng-ui-inputotp.mjs +12 -6
- package/fesm2022/caribeng-ui-keyfilter.mjs +72 -0
- package/fesm2022/caribeng-ui-listbox.mjs +13 -11
- package/fesm2022/caribeng-ui-megamenu.mjs +222 -30
- package/fesm2022/caribeng-ui-menu.mjs +11 -5
- package/fesm2022/caribeng-ui-menubar.mjs +10 -5
- package/fesm2022/caribeng-ui-message.mjs +7 -4
- package/fesm2022/caribeng-ui-metergroup.mjs +29 -11
- package/fesm2022/caribeng-ui-multiselect.mjs +399 -97
- package/fesm2022/caribeng-ui-orderlist.mjs +230 -11
- package/fesm2022/caribeng-ui-organizationchart.mjs +12 -7
- package/fesm2022/caribeng-ui-paginator.mjs +18 -15
- package/fesm2022/caribeng-ui-panel.mjs +5 -2
- package/fesm2022/caribeng-ui-panelmenu.mjs +6 -3
- package/fesm2022/caribeng-ui-password.mjs +8 -6
- package/fesm2022/caribeng-ui-pdfviewer.mjs +1553 -0
- package/fesm2022/caribeng-ui-picklist.mjs +251 -14
- package/fesm2022/caribeng-ui-pricing.mjs +17 -14
- package/fesm2022/caribeng-ui-rating.mjs +7 -3
- package/fesm2022/caribeng-ui-repeater.mjs +223 -0
- package/fesm2022/caribeng-ui-result.mjs +91 -0
- package/fesm2022/caribeng-ui-scrollpanel.mjs +6 -3
- package/fesm2022/caribeng-ui-scrolltop.mjs +6 -3
- package/fesm2022/caribeng-ui-select.mjs +379 -87
- package/fesm2022/caribeng-ui-selectbutton.mjs +2 -2
- package/fesm2022/caribeng-ui-slider.mjs +171 -75
- package/fesm2022/caribeng-ui-speeddial.mjs +7 -4
- package/fesm2022/caribeng-ui-spinner.mjs +5 -2
- package/fesm2022/caribeng-ui-splitbutton.mjs +163 -0
- package/fesm2022/caribeng-ui-splitter.mjs +5 -2
- package/fesm2022/caribeng-ui-statistic.mjs +183 -0
- package/fesm2022/caribeng-ui-stepper.mjs +8 -5
- package/fesm2022/caribeng-ui-steps.mjs +6 -3
- package/fesm2022/caribeng-ui-table.mjs +708 -82
- package/fesm2022/caribeng-ui-tabmenu.mjs +6 -3
- package/fesm2022/caribeng-ui-tag.mjs +2 -2
- package/fesm2022/caribeng-ui-terminal.mjs +45 -9
- package/fesm2022/caribeng-ui-themetoggle.mjs +82 -0
- package/fesm2022/caribeng-ui-tieredmenu.mjs +9 -6
- package/fesm2022/caribeng-ui-timeline.mjs +175 -6
- package/fesm2022/caribeng-ui-toast.mjs +7 -4
- package/fesm2022/caribeng-ui-togglebutton.mjs +8 -6
- package/fesm2022/caribeng-ui-toolbar.mjs +6 -3
- package/fesm2022/caribeng-ui-tree.mjs +302 -6
- package/fesm2022/caribeng-ui-treeselect.mjs +26 -10
- package/fesm2022/caribeng-ui-treetable.mjs +269 -6
- package/fesm2022/caribeng-ui-virtualscroller.mjs +123 -10
- package/fesm2022/caribeng-ui.mjs +829 -6
- package/package.json +70 -11
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/index.js +125 -0
- package/schematics/ng-add/schema.js +2 -0
- package/schematics/ng-add/schema.json +66 -0
- package/styles/caribeng.css +380 -0
- package/styles/scss/_mixins.scss +46 -0
- package/styles/scss/_overlay.scss +15 -0
- package/styles/scss/_tokens.scss +267 -0
- package/styles/scss/_utilities.scss +73 -0
- package/styles/scss/_variables.scss +33 -0
- package/styles/scss/index.scss +16 -0
- package/types/caribeng-ui-anchor.d.ts +50 -0
- package/types/caribeng-ui-autocomplete.d.ts +4 -2
- package/types/caribeng-ui-avatargroup.d.ts +3 -1
- package/types/caribeng-ui-blockui.d.ts +9 -4
- package/types/caribeng-ui-breadcrumb.d.ts +3 -0
- package/types/caribeng-ui-button.d.ts +9 -1
- package/types/caribeng-ui-caribe-alert.d.ts +3 -0
- package/types/caribeng-ui-caribe-animation-lottie.d.ts +4 -1
- package/types/caribeng-ui-caribe-button-group.d.ts +4 -1
- package/types/caribeng-ui-caribe-calendar.d.ts +5 -1
- package/types/caribeng-ui-caribe-card-content.d.ts +4 -1
- package/types/caribeng-ui-caribe-card-move.d.ts +13 -13
- package/types/caribeng-ui-caribe-card-select.d.ts +10 -1
- package/types/caribeng-ui-caribe-circle-loading.d.ts +4 -1
- package/types/caribeng-ui-caribe-coachmark.d.ts +6 -0
- package/types/caribeng-ui-caribe-data-table.d.ts +7 -2
- package/types/caribeng-ui-caribe-dots-indicator.d.ts +9 -0
- package/types/caribeng-ui-caribe-expansion-panel.d.ts +7 -10
- package/types/caribeng-ui-caribe-fab-menu.d.ts +10 -1
- package/types/caribeng-ui-caribe-file-download.d.ts +8 -10
- package/types/caribeng-ui-caribe-file-select.d.ts +7 -1
- package/types/caribeng-ui-caribe-float-menu.d.ts +4 -1
- package/types/caribeng-ui-caribe-header.d.ts +3 -0
- package/types/caribeng-ui-caribe-icon-button.d.ts +4 -1
- package/types/caribeng-ui-caribe-illustration.d.ts +4 -1
- package/types/caribeng-ui-caribe-inline-alert.d.ts +3 -0
- package/types/caribeng-ui-caribe-input-search.d.ts +4 -2
- package/types/caribeng-ui-caribe-input-select.d.ts +4 -2
- package/types/caribeng-ui-caribe-input-token.d.ts +16 -1
- package/types/caribeng-ui-caribe-link.d.ts +3 -0
- package/types/caribeng-ui-caribe-loader.d.ts +4 -1
- package/types/caribeng-ui-caribe-modal.d.ts +7 -10
- package/types/caribeng-ui-caribe-off-canvas.d.ts +6 -1
- package/types/caribeng-ui-caribe-onboarding.d.ts +6 -0
- package/types/caribeng-ui-caribe-pictogram.d.ts +4 -1
- package/types/caribeng-ui-caribe-pop-over.d.ts +7 -10
- package/types/caribeng-ui-caribe-preloader.d.ts +4 -1
- package/types/caribeng-ui-caribe-progress-bar.d.ts +3 -0
- package/types/caribeng-ui-caribe-shortcut.d.ts +3 -1
- package/types/caribeng-ui-caribe-step-indicator.d.ts +6 -0
- package/types/caribeng-ui-caribe-stroke.d.ts +4 -1
- package/types/caribeng-ui-caribe-switch.d.ts +3 -1
- package/types/caribeng-ui-caribe-tracker.d.ts +3 -0
- package/types/caribeng-ui-caribe-voucher.d.ts +5 -2
- package/types/caribeng-ui-carousel.d.ts +10 -1
- package/types/caribeng-ui-cascadeselect.d.ts +7 -2
- package/types/caribeng-ui-chart.d.ts +469 -44
- package/types/caribeng-ui-chip.d.ts +6 -0
- package/types/caribeng-ui-chips.d.ts +6 -2
- package/types/caribeng-ui-colorpicker.d.ts +3 -1
- package/types/caribeng-ui-confirmdialog.d.ts +25 -6
- package/types/caribeng-ui-confirmpopup.d.ts +37 -5
- package/types/caribeng-ui-contextmenu.d.ts +4 -1
- package/types/caribeng-ui-dataview.d.ts +63 -5
- package/types/caribeng-ui-datepicker.d.ts +186 -21
- package/types/caribeng-ui-descriptions.d.ts +63 -0
- package/types/caribeng-ui-dialog.d.ts +4 -1
- package/types/caribeng-ui-dock.d.ts +4 -1
- package/types/caribeng-ui-drawer.d.ts +4 -1
- package/types/caribeng-ui-dynamicdialog.d.ts +93 -3
- package/types/caribeng-ui-editor.d.ts +486 -13
- package/types/caribeng-ui-empty.d.ts +34 -0
- package/types/caribeng-ui-file-card.d.ts +1 -1
- package/types/caribeng-ui-fileupload.d.ts +27 -4
- package/types/caribeng-ui-folder-card.d.ts +4 -1
- package/types/caribeng-ui-galleria.d.ts +9 -0
- package/types/caribeng-ui-image.d.ts +10 -0
- package/types/caribeng-ui-inplace.d.ts +8 -0
- package/types/caribeng-ui-input-number.d.ts +3 -1
- package/types/caribeng-ui-inputmask.d.ts +5 -0
- package/types/caribeng-ui-inputotp.d.ts +7 -2
- package/types/caribeng-ui-keyfilter.d.ts +30 -0
- package/types/caribeng-ui-listbox.d.ts +5 -3
- package/types/caribeng-ui-megamenu.d.ts +26 -2
- package/types/caribeng-ui-menu.d.ts +7 -2
- package/types/caribeng-ui-menubar.d.ts +5 -1
- package/types/caribeng-ui-message.d.ts +3 -0
- package/types/caribeng-ui-metergroup.d.ts +9 -1
- package/types/caribeng-ui-multiselect.d.ts +71 -10
- package/types/caribeng-ui-orderlist.d.ts +58 -6
- package/types/caribeng-ui-organizationchart.d.ts +7 -1
- package/types/caribeng-ui-paginator.d.ts +3 -0
- package/types/caribeng-ui-panel.d.ts +3 -0
- package/types/caribeng-ui-panelmenu.d.ts +4 -1
- package/types/caribeng-ui-password.d.ts +4 -2
- package/types/caribeng-ui-pdfviewer.d.ts +258 -0
- package/types/caribeng-ui-picklist.d.ts +67 -7
- package/types/caribeng-ui-pricing.d.ts +8 -5
- package/types/caribeng-ui-rating.d.ts +6 -2
- package/types/caribeng-ui-repeater.d.ts +79 -0
- package/types/caribeng-ui-result.d.ts +35 -0
- package/types/caribeng-ui-scrollpanel.d.ts +4 -1
- package/types/caribeng-ui-scrolltop.d.ts +4 -1
- package/types/caribeng-ui-select.d.ts +73 -9
- package/types/caribeng-ui-slider.d.ts +63 -10
- package/types/caribeng-ui-speeddial.d.ts +5 -2
- package/types/caribeng-ui-spinner.d.ts +3 -0
- package/types/caribeng-ui-splitbutton.d.ts +49 -0
- package/types/caribeng-ui-splitter.d.ts +3 -0
- package/types/caribeng-ui-statistic.d.ts +65 -0
- package/types/caribeng-ui-stepper.d.ts +3 -0
- package/types/caribeng-ui-steps.d.ts +4 -1
- package/types/caribeng-ui-table.d.ts +184 -16
- package/types/caribeng-ui-tabmenu.d.ts +4 -1
- package/types/caribeng-ui-terminal.d.ts +10 -0
- package/types/caribeng-ui-themetoggle.d.ts +32 -0
- package/types/caribeng-ui-tieredmenu.d.ts +5 -2
- package/types/caribeng-ui-timeline.d.ts +63 -4
- package/types/caribeng-ui-toast.d.ts +3 -0
- package/types/caribeng-ui-togglebutton.d.ts +5 -3
- package/types/caribeng-ui-toolbar.d.ts +7 -4
- package/types/caribeng-ui-tree.d.ts +76 -4
- package/types/caribeng-ui-treeselect.d.ts +10 -2
- package/types/caribeng-ui-treetable.d.ts +68 -4
- package/types/caribeng-ui-virtualscroller.d.ts +45 -5
- package/types/caribeng-ui.d.ts +501 -12
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { injectCbTranslation } from '@caribeng/ui';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
3
|
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
4
|
|
|
@@ -12,6 +13,8 @@ import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@a
|
|
|
12
13
|
*/
|
|
13
14
|
class CbTracker {
|
|
14
15
|
constructor() {
|
|
16
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
17
|
+
this.t = injectCbTranslation();
|
|
15
18
|
this.steps = input([], /* @ts-ignore */
|
|
16
19
|
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
17
20
|
this.currentIndex = input(0, /* @ts-ignore */
|
|
@@ -25,7 +28,7 @@ class CbTracker {
|
|
|
25
28
|
}
|
|
26
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbTracker, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
30
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbTracker, isStandalone: true, selector: "cb-tracker", inputs: { steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, currentIndex: { classPropertyName: "currentIndex", publicName: "currentIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
28
|
-
<ol class="cb-tracker" aria-label="
|
|
31
|
+
<ol class="cb-tracker" [attr.aria-label]="t().progress">
|
|
29
32
|
@for (step of steps(); track $index) {
|
|
30
33
|
<li
|
|
31
34
|
class="cb-tracker__step"
|
|
@@ -43,7 +46,7 @@ class CbTracker {
|
|
|
43
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbTracker, decorators: [{
|
|
44
47
|
type: Component,
|
|
45
48
|
args: [{ selector: 'cb-tracker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, template: `
|
|
46
|
-
<ol class="cb-tracker" aria-label="
|
|
49
|
+
<ol class="cb-tracker" [attr.aria-label]="t().progress">
|
|
47
50
|
@for (step of steps(); track $index) {
|
|
48
51
|
<li
|
|
49
52
|
class="cb-tracker__step"
|
|
@@ -14,7 +14,7 @@ class CbTransactionStatus {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
this.status = input('success', /* @ts-ignore */
|
|
16
16
|
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
17
|
-
this.label = input('
|
|
17
|
+
this.label = input('', /* @ts-ignore */
|
|
18
18
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
19
19
|
}
|
|
20
20
|
glyph() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, output, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { injectCbTranslation } from '@caribeng/ui';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Voucher de Caribe Design: comprobante de operación con filas clave/valor y
|
|
@@ -12,11 +13,13 @@ import { input, output, ViewEncapsulation, ChangeDetectionStrategy, Component }
|
|
|
12
13
|
*/
|
|
13
14
|
class CbVoucher {
|
|
14
15
|
constructor() {
|
|
15
|
-
|
|
16
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
17
|
+
this.t = injectCbTranslation();
|
|
18
|
+
this.title = input(undefined, /* @ts-ignore */
|
|
16
19
|
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
17
20
|
this.rows = input([], /* @ts-ignore */
|
|
18
21
|
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
19
|
-
this.actionLabel = input(
|
|
22
|
+
this.actionLabel = input(undefined, /* @ts-ignore */
|
|
20
23
|
...(ngDevMode ? [{ debugName: "actionLabel" }] : /* istanbul ignore next */ []));
|
|
21
24
|
this.copy = output();
|
|
22
25
|
}
|
|
@@ -25,11 +28,11 @@ class CbVoucher {
|
|
|
25
28
|
<article class="cb-voucher">
|
|
26
29
|
<header class="cb-voucher__head">
|
|
27
30
|
<span class="cb-voucher__check" aria-hidden="true">✓</span>
|
|
28
|
-
<h2 class="cb-voucher__title">{{ title() }}</h2>
|
|
31
|
+
<h2 class="cb-voucher__title">{{ (title() ?? t().receipt) }}</h2>
|
|
29
32
|
</header>
|
|
30
33
|
<div class="cb-voucher__intro"><ng-content /></div>
|
|
31
34
|
<dl class="cb-voucher__list">
|
|
32
|
-
@for (row of rows(); track
|
|
35
|
+
@for (row of rows(); track $index) {
|
|
33
36
|
<div class="cb-voucher__row">
|
|
34
37
|
<dt class="cb-voucher__label">{{ row.label }}</dt>
|
|
35
38
|
<dd class="cb-voucher__value">{{ row.value }}</dd>
|
|
@@ -38,7 +41,7 @@ class CbVoucher {
|
|
|
38
41
|
</dl>
|
|
39
42
|
<div class="cb-voucher__foot">
|
|
40
43
|
<button type="button" class="cb-voucher__action" (click)="copy.emit()">
|
|
41
|
-
{{ actionLabel() }}
|
|
44
|
+
{{ (actionLabel() ?? t().share) }}
|
|
42
45
|
</button>
|
|
43
46
|
</div>
|
|
44
47
|
</article>
|
|
@@ -50,11 +53,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
50
53
|
<article class="cb-voucher">
|
|
51
54
|
<header class="cb-voucher__head">
|
|
52
55
|
<span class="cb-voucher__check" aria-hidden="true">✓</span>
|
|
53
|
-
<h2 class="cb-voucher__title">{{ title() }}</h2>
|
|
56
|
+
<h2 class="cb-voucher__title">{{ (title() ?? t().receipt) }}</h2>
|
|
54
57
|
</header>
|
|
55
58
|
<div class="cb-voucher__intro"><ng-content /></div>
|
|
56
59
|
<dl class="cb-voucher__list">
|
|
57
|
-
@for (row of rows(); track
|
|
60
|
+
@for (row of rows(); track $index) {
|
|
58
61
|
<div class="cb-voucher__row">
|
|
59
62
|
<dt class="cb-voucher__label">{{ row.label }}</dt>
|
|
60
63
|
<dd class="cb-voucher__value">{{ row.value }}</dd>
|
|
@@ -63,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
63
66
|
</dl>
|
|
64
67
|
<div class="cb-voucher__foot">
|
|
65
68
|
<button type="button" class="cb-voucher__action" (click)="copy.emit()">
|
|
66
|
-
{{ actionLabel() }}
|
|
69
|
+
{{ (actionLabel() ?? t().share) }}
|
|
67
70
|
</button>
|
|
68
71
|
</div>
|
|
69
72
|
</article>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, model, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { input, model, inject, ElementRef, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { CbIcon } from '@caribeng/ui/icon';
|
|
4
|
+
import { injectCbTranslation, cbFormat } from '@caribeng/ui';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Carousel de CaribeNG: carrusel accesible de tarjetas o diapositivas con
|
|
@@ -8,6 +9,10 @@ import { CbIcon } from '@caribeng/ui/icon';
|
|
|
8
9
|
*/
|
|
9
10
|
class CbCarousel {
|
|
10
11
|
constructor() {
|
|
12
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
13
|
+
this.t = injectCbTranslation();
|
|
14
|
+
/** Rellena `{0}`, `{1}`… de un texto traducido. */
|
|
15
|
+
this.fmt = cbFormat;
|
|
11
16
|
this.items = input([], /* @ts-ignore */
|
|
12
17
|
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
13
18
|
this.circular = input(true, /* @ts-ignore */
|
|
@@ -16,10 +21,11 @@ class CbCarousel {
|
|
|
16
21
|
...(ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []));
|
|
17
22
|
this.showIndicators = input(true, /* @ts-ignore */
|
|
18
23
|
...(ngDevMode ? [{ debugName: "showIndicators" }] : /* istanbul ignore next */ []));
|
|
19
|
-
this.ariaLabel = input(
|
|
24
|
+
this.ariaLabel = input(undefined, /* @ts-ignore */
|
|
20
25
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
21
26
|
this.page = model(0, /* @ts-ignore */
|
|
22
27
|
...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.host = inject(ElementRef);
|
|
23
29
|
this.activeItem = computed(() => this.items()[this.page()] ?? this.items()[0] ?? null, /* @ts-ignore */
|
|
24
30
|
...(ngDevMode ? [{ debugName: "activeItem" }] : /* istanbul ignore next */ []));
|
|
25
31
|
this.canPrev = computed(() => this.circular() || this.page() > 0, /* @ts-ignore */
|
|
@@ -47,15 +53,30 @@ class CbCarousel {
|
|
|
47
53
|
else if (this.circular())
|
|
48
54
|
this.page.set(0);
|
|
49
55
|
}
|
|
56
|
+
/** Indicadores (patrón *tabs*): flechas, Inicio y Fin cambian de diapositiva y mueven el foco. */
|
|
57
|
+
onDotKeydown(event) {
|
|
58
|
+
const last = this.items().length - 1;
|
|
59
|
+
const cur = this.page();
|
|
60
|
+
const target = event.key === 'ArrowRight' ? (cur < last ? cur + 1 : 0)
|
|
61
|
+
: event.key === 'ArrowLeft' ? (cur > 0 ? cur - 1 : last)
|
|
62
|
+
: event.key === 'Home' ? 0
|
|
63
|
+
: event.key === 'End' ? last
|
|
64
|
+
: null;
|
|
65
|
+
if (target === null)
|
|
66
|
+
return;
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
this.page.set(target);
|
|
69
|
+
this.host.nativeElement.querySelectorAll('.cb-carousel__dot')[target]?.focus();
|
|
70
|
+
}
|
|
50
71
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbCarousel, isStandalone: true, selector: "cb-carousel", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange" }, host: { attributes: { "role": "region", "aria-roledescription": "carousel" }, properties: { "attr.aria-label": "ariaLabel()
|
|
72
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbCarousel, isStandalone: true, selector: "cb-carousel", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange" }, host: { attributes: { "role": "region", "aria-roledescription": "carousel" }, properties: { "attr.aria-label": "(ariaLabel() ?? t().carousel)" }, classAttribute: "cb-carousel" }, ngImport: i0, template: `
|
|
52
73
|
<div class="cb-carousel__Stage">
|
|
53
74
|
@if (showNavigators()) {
|
|
54
75
|
<button
|
|
55
76
|
type="button"
|
|
56
77
|
class="cb-carousel__nav cb-carousel__nav--prev"
|
|
57
78
|
[disabled]="!canPrev()"
|
|
58
|
-
aria-label="
|
|
79
|
+
[attr.aria-label]="t().previous"
|
|
59
80
|
(click)="prev()"
|
|
60
81
|
>
|
|
61
82
|
<cb-icon name="chevron-left" [size]="18" aria-hidden="true" />
|
|
@@ -63,7 +84,12 @@ class CbCarousel {
|
|
|
63
84
|
}
|
|
64
85
|
<div class="cb-carousel__viewport" aria-live="polite">
|
|
65
86
|
@if (activeItem(); as item) {
|
|
66
|
-
<div
|
|
87
|
+
<div
|
|
88
|
+
class="cb-carousel__slide"
|
|
89
|
+
role="group"
|
|
90
|
+
aria-roledescription="slide"
|
|
91
|
+
[attr.aria-label]="fmt(t().slideOf, page() + 1, items().length)"
|
|
92
|
+
>
|
|
67
93
|
@if (item.image) {
|
|
68
94
|
<img class="cb-carousel__img" [src]="item.image" [alt]="item.title" />
|
|
69
95
|
}
|
|
@@ -84,7 +110,7 @@ class CbCarousel {
|
|
|
84
110
|
type="button"
|
|
85
111
|
class="cb-carousel__nav cb-carousel__nav--next"
|
|
86
112
|
[disabled]="!canNext()"
|
|
87
|
-
aria-label="
|
|
113
|
+
[attr.aria-label]="t().next"
|
|
88
114
|
(click)="next()"
|
|
89
115
|
>
|
|
90
116
|
<cb-icon name="chevron-right" [size]="18" aria-hidden="true" />
|
|
@@ -93,15 +119,17 @@ class CbCarousel {
|
|
|
93
119
|
</div>
|
|
94
120
|
@if (showIndicators() && items().length > 1) {
|
|
95
121
|
<div class="cb-carousel__indicators" role="tablist">
|
|
96
|
-
@for (item of items(); track
|
|
122
|
+
@for (item of items(); track $index; let i = $index) {
|
|
97
123
|
<button
|
|
98
124
|
type="button"
|
|
99
125
|
class="cb-carousel__dot"
|
|
100
126
|
role="tab"
|
|
101
127
|
[class.cb-is-active]="page() === i"
|
|
102
128
|
[attr.aria-selected]="page() === i"
|
|
103
|
-
[attr.
|
|
129
|
+
[attr.tabindex]="page() === i ? 0 : -1"
|
|
130
|
+
[attr.aria-label]="fmt(t().slide, i + 1)"
|
|
104
131
|
(click)="page.set(i)"
|
|
132
|
+
(keydown)="onDotKeydown($event)"
|
|
105
133
|
></button>
|
|
106
134
|
}
|
|
107
135
|
</div>
|
|
@@ -114,7 +142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
114
142
|
class: 'cb-carousel',
|
|
115
143
|
role: 'region',
|
|
116
144
|
'aria-roledescription': 'carousel',
|
|
117
|
-
'[attr.aria-label]': 'ariaLabel()
|
|
145
|
+
'[attr.aria-label]': '(ariaLabel() ?? t().carousel)',
|
|
118
146
|
}, template: `
|
|
119
147
|
<div class="cb-carousel__Stage">
|
|
120
148
|
@if (showNavigators()) {
|
|
@@ -122,7 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
122
150
|
type="button"
|
|
123
151
|
class="cb-carousel__nav cb-carousel__nav--prev"
|
|
124
152
|
[disabled]="!canPrev()"
|
|
125
|
-
aria-label="
|
|
153
|
+
[attr.aria-label]="t().previous"
|
|
126
154
|
(click)="prev()"
|
|
127
155
|
>
|
|
128
156
|
<cb-icon name="chevron-left" [size]="18" aria-hidden="true" />
|
|
@@ -130,7 +158,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
130
158
|
}
|
|
131
159
|
<div class="cb-carousel__viewport" aria-live="polite">
|
|
132
160
|
@if (activeItem(); as item) {
|
|
133
|
-
<div
|
|
161
|
+
<div
|
|
162
|
+
class="cb-carousel__slide"
|
|
163
|
+
role="group"
|
|
164
|
+
aria-roledescription="slide"
|
|
165
|
+
[attr.aria-label]="fmt(t().slideOf, page() + 1, items().length)"
|
|
166
|
+
>
|
|
134
167
|
@if (item.image) {
|
|
135
168
|
<img class="cb-carousel__img" [src]="item.image" [alt]="item.title" />
|
|
136
169
|
}
|
|
@@ -151,7 +184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
151
184
|
type="button"
|
|
152
185
|
class="cb-carousel__nav cb-carousel__nav--next"
|
|
153
186
|
[disabled]="!canNext()"
|
|
154
|
-
aria-label="
|
|
187
|
+
[attr.aria-label]="t().next"
|
|
155
188
|
(click)="next()"
|
|
156
189
|
>
|
|
157
190
|
<cb-icon name="chevron-right" [size]="18" aria-hidden="true" />
|
|
@@ -160,15 +193,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
160
193
|
</div>
|
|
161
194
|
@if (showIndicators() && items().length > 1) {
|
|
162
195
|
<div class="cb-carousel__indicators" role="tablist">
|
|
163
|
-
@for (item of items(); track
|
|
196
|
+
@for (item of items(); track $index; let i = $index) {
|
|
164
197
|
<button
|
|
165
198
|
type="button"
|
|
166
199
|
class="cb-carousel__dot"
|
|
167
200
|
role="tab"
|
|
168
201
|
[class.cb-is-active]="page() === i"
|
|
169
202
|
[attr.aria-selected]="page() === i"
|
|
170
|
-
[attr.
|
|
203
|
+
[attr.tabindex]="page() === i ? 0 : -1"
|
|
204
|
+
[attr.aria-label]="fmt(t().slide, i + 1)"
|
|
171
205
|
(click)="page.set(i)"
|
|
206
|
+
(keydown)="onDotKeydown($event)"
|
|
172
207
|
></button>
|
|
173
208
|
}
|
|
174
209
|
</div>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, model, signal, computed, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, model, signal, computed, viewChild, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { CbIcon } from '@caribeng/ui/icon';
|
|
5
|
-
import { cbFieldState } from '@caribeng/ui';
|
|
5
|
+
import { injectCbTranslation, cbFieldState } from '@caribeng/ui';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* CascadeSelect de CaribeNG: selector en cascada multinivel con integración CVA.
|
|
9
9
|
*/
|
|
10
10
|
class CbCascadeSelect {
|
|
11
11
|
constructor() {
|
|
12
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
13
|
+
this.t = injectCbTranslation();
|
|
12
14
|
this.options = input([], /* @ts-ignore */
|
|
13
15
|
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
14
|
-
this.placeholder = input(
|
|
16
|
+
this.placeholder = input(undefined, /* @ts-ignore */
|
|
15
17
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
16
18
|
this.disabled = input(false, /* @ts-ignore */
|
|
17
19
|
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -46,6 +48,7 @@ class CbCascadeSelect {
|
|
|
46
48
|
...(ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []));
|
|
47
49
|
this.onChange = () => { };
|
|
48
50
|
this.onTouched = () => { };
|
|
51
|
+
this.trigger = viewChild.required('trigger');
|
|
49
52
|
}
|
|
50
53
|
writeValue(val) {
|
|
51
54
|
this.value.set(val ?? null);
|
|
@@ -59,6 +62,14 @@ class CbCascadeSelect {
|
|
|
59
62
|
setDisabledState(isDisabled) {
|
|
60
63
|
this.cvaDisabled.set(isDisabled);
|
|
61
64
|
}
|
|
65
|
+
/** Escape cierra el panel y devuelve el foco al disparador. */
|
|
66
|
+
closeOnEscape(event) {
|
|
67
|
+
if (!this.open())
|
|
68
|
+
return;
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
this.open.set(false);
|
|
71
|
+
this.trigger().nativeElement.focus();
|
|
72
|
+
}
|
|
62
73
|
toggleOpen() {
|
|
63
74
|
if (this.isDisabled())
|
|
64
75
|
return;
|
|
@@ -80,14 +91,15 @@ class CbCascadeSelect {
|
|
|
80
91
|
this.open.set(false);
|
|
81
92
|
}
|
|
82
93
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbCascadeSelect, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbCascadeSelect, isStandalone: true, selector: "cb-cascade-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class.cb-is-open": "open()" }, classAttribute: "cb-cascade-select" }, providers: [
|
|
94
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbCascadeSelect, isStandalone: true, selector: "cb-cascade-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { listeners: { "keydown.escape": "closeOnEscape($event)" }, properties: { "class.cb-is-open": "open()" }, classAttribute: "cb-cascade-select" }, providers: [
|
|
84
95
|
{
|
|
85
96
|
provide: NG_VALUE_ACCESSOR,
|
|
86
97
|
useExisting: forwardRef(() => CbCascadeSelect),
|
|
87
98
|
multi: true,
|
|
88
99
|
},
|
|
89
|
-
], ngImport: i0, template: `
|
|
100
|
+
], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
90
101
|
<button
|
|
102
|
+
#trigger
|
|
91
103
|
type="button"
|
|
92
104
|
class="cb-cascade-select__trigger"
|
|
93
105
|
[class.cb-is-invalid]="fieldState.invalid()"
|
|
@@ -99,7 +111,7 @@ class CbCascadeSelect {
|
|
|
99
111
|
(click)="toggleOpen()"
|
|
100
112
|
>
|
|
101
113
|
<span class="cb-cascade-select__label" [class.cb-is-placeholder]="!selectedLabel()">
|
|
102
|
-
{{ selectedLabel() || placeholder() }}
|
|
114
|
+
{{ selectedLabel() || (placeholder() ?? t().select) }}
|
|
103
115
|
</span>
|
|
104
116
|
<cb-icon name="chevron-down" [size]="16" aria-hidden="true" />
|
|
105
117
|
</button>
|
|
@@ -154,8 +166,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
154
166
|
], host: {
|
|
155
167
|
class: 'cb-cascade-select',
|
|
156
168
|
'[class.cb-is-open]': 'open()',
|
|
169
|
+
'(keydown.escape)': 'closeOnEscape($event)',
|
|
157
170
|
}, template: `
|
|
158
171
|
<button
|
|
172
|
+
#trigger
|
|
159
173
|
type="button"
|
|
160
174
|
class="cb-cascade-select__trigger"
|
|
161
175
|
[class.cb-is-invalid]="fieldState.invalid()"
|
|
@@ -167,7 +181,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
167
181
|
(click)="toggleOpen()"
|
|
168
182
|
>
|
|
169
183
|
<span class="cb-cascade-select__label" [class.cb-is-placeholder]="!selectedLabel()">
|
|
170
|
-
{{ selectedLabel() || placeholder() }}
|
|
184
|
+
{{ selectedLabel() || (placeholder() ?? t().select) }}
|
|
171
185
|
</span>
|
|
172
186
|
<cb-icon name="chevron-down" [size]="16" aria-hidden="true" />
|
|
173
187
|
</button>
|
|
@@ -210,7 +224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
210
224
|
</div>
|
|
211
225
|
}
|
|
212
226
|
`, styles: [":host{position:relative;display:inline-block;width:100%;font-family:var(--cb-font-sans)}.cb-cascade-select__trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-2);padding:var(--cb-space-2) var(--cb-space-3);border:var(--cb-border-width) solid var(--cb-color-border);border-radius:var(--cb-radius-md);background:var(--cb-color-surface);color:var(--cb-color-text);font-family:inherit;font-size:var(--cb-text-sm);cursor:pointer}.cb-cascade-select__label.cb-is-placeholder{color:var(--cb-color-text-muted)}.cb-cascade-select__menus{position:absolute;top:calc(100% + 4px);left:0;z-index:30;display:flex;border:var(--cb-border-width) solid var(--cb-color-border);border-radius:var(--cb-radius-md);background:var(--cb-color-surface);box-shadow:var(--cb-shadow-md, 0 8px 20px rgba(0, 0, 0, .12));overflow:hidden}.cb-cascade-select__list{list-style:none;margin:0;padding:var(--cb-space-1);min-width:150px;border-right:var(--cb-border-width) solid var(--cb-color-border)}.cb-cascade-select__list:last-child{border-right:none}.cb-cascade-select__option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-2);padding:.4rem .6rem;border:none;border-radius:var(--cb-radius-sm);background:transparent;color:var(--cb-color-text);font-family:inherit;font-size:var(--cb-text-sm);cursor:pointer}.cb-cascade-select__option.cb-is-active,.cb-cascade-select__option.cb-is-selected{background:color-mix(in srgb,var(--cb-color-primary-500) 14%,transparent)}.cb-cascade-select__trigger.cb-is-invalid{border-color:var(--cb-color-danger)}\n"] }]
|
|
213
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
227
|
+
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
214
228
|
|
|
215
229
|
/**
|
|
216
230
|
* Generated bundle index. Do not edit.
|