@caribeng/ui 22.2.0 → 22.5.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 +311 -231
- package/fesm2022/caribeng-ui-accordion.mjs +2 -2
- package/fesm2022/caribeng-ui-account-picker.mjs +533 -0
- package/fesm2022/caribeng-ui-aging.mjs +488 -0
- package/fesm2022/{caribeng-ui-caribe-alert.mjs → caribeng-ui-alert.mjs} +45 -45
- package/fesm2022/caribeng-ui-amount.mjs +249 -0
- package/fesm2022/caribeng-ui-anchor.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-animation-lottie.mjs → caribeng-ui-animation-lottie.mjs} +41 -41
- package/fesm2022/caribeng-ui-audit-log.mjs +323 -0
- package/fesm2022/caribeng-ui-avatar.mjs +4 -4
- package/fesm2022/caribeng-ui-badge.mjs +8 -2
- package/fesm2022/caribeng-ui-breadcrumb.mjs +26 -9
- package/fesm2022/{caribeng-ui-caribe-button-group.mjs → caribeng-ui-button-group.mjs} +15 -15
- package/fesm2022/caribeng-ui-button.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-card-content.mjs → caribeng-ui-card-content.mjs} +39 -39
- package/fesm2022/{caribeng-ui-caribe-card-move.mjs → caribeng-ui-card-move.mjs} +65 -65
- package/fesm2022/{caribeng-ui-caribe-card-primary.mjs → caribeng-ui-card-primary.mjs} +31 -31
- package/fesm2022/{caribeng-ui-caribe-card-select.mjs → caribeng-ui-card-select.mjs} +67 -67
- package/fesm2022/caribeng-ui-carousel.mjs +2 -2
- package/fesm2022/caribeng-ui-cascadeselect.mjs +45 -9
- package/fesm2022/caribeng-ui-chart.mjs +8 -5
- package/fesm2022/caribeng-ui-chat.mjs +1303 -0
- package/fesm2022/{caribeng-ui-caribe-coachmark.mjs → caribeng-ui-coachmark.mjs} +85 -85
- package/fesm2022/caribeng-ui-code-block.mjs +332 -0
- package/fesm2022/caribeng-ui-colorpicker.mjs +99 -5
- package/fesm2022/caribeng-ui-command-palette.mjs +476 -0
- package/fesm2022/caribeng-ui-comments.mjs +864 -0
- package/fesm2022/caribeng-ui-confirmdialog.mjs +78 -13
- package/fesm2022/caribeng-ui-confirmpopup.mjs +91 -16
- package/fesm2022/caribeng-ui-contextmenu.mjs +8 -4
- package/fesm2022/caribeng-ui-copy-button.mjs +230 -0
- package/fesm2022/caribeng-ui-datagrid.mjs +1635 -0
- package/fesm2022/caribeng-ui-dataview.mjs +6 -3
- package/fesm2022/caribeng-ui-datepicker.mjs +2 -2
- package/fesm2022/caribeng-ui-dock.mjs +52 -12
- package/fesm2022/caribeng-ui-document.mjs +495 -0
- package/fesm2022/{caribeng-ui-caribe-dots-indicator.mjs → caribeng-ui-dots-indicator.mjs} +41 -41
- package/fesm2022/caribeng-ui-drawer.mjs +9 -4
- package/fesm2022/caribeng-ui-dynamic-form.mjs +1581 -0
- package/fesm2022/caribeng-ui-editor.mjs +2324 -1311
- package/fesm2022/{caribeng-ui-caribe-expansion-panel.mjs → caribeng-ui-expansion-panel.mjs} +39 -39
- package/fesm2022/{caribeng-ui-caribe-fab-menu.mjs → caribeng-ui-fab-menu.mjs} +75 -75
- package/fesm2022/caribeng-ui-fieldset.mjs +2 -2
- package/fesm2022/caribeng-ui-file-card.mjs +134 -17
- package/fesm2022/{caribeng-ui-caribe-file-download.mjs → caribeng-ui-file-download.mjs} +63 -63
- package/fesm2022/caribeng-ui-financial-report.mjs +380 -0
- package/fesm2022/{caribeng-ui-caribe-float-menu.mjs → caribeng-ui-float-menu.mjs} +31 -31
- package/fesm2022/caribeng-ui-floatlabel.mjs +2 -2
- package/fesm2022/caribeng-ui-flow.mjs +1508 -0
- package/fesm2022/caribeng-ui-folder-card.mjs +122 -12
- package/fesm2022/{caribeng-ui-caribe-footer.mjs → caribeng-ui-footer.mjs} +19 -19
- package/fesm2022/caribeng-ui-gantt.mjs +1094 -0
- package/fesm2022/{caribeng-ui-caribe-header.mjs → caribeng-ui-header.mjs} +49 -49
- package/fesm2022/{caribeng-ui-caribe-icon-button.mjs → caribeng-ui-icon-button.mjs} +23 -23
- package/fesm2022/caribeng-ui-image-cropper.mjs +671 -0
- package/fesm2022/caribeng-ui-import-wizard.mjs +746 -0
- package/fesm2022/caribeng-ui-infinite-scroll.mjs +226 -0
- package/fesm2022/caribeng-ui-inlinemessage.mjs +2 -2
- package/fesm2022/caribeng-ui-input-number.mjs +22 -6
- package/fesm2022/{caribeng-ui-caribe-input-search.mjs → caribeng-ui-input-search.mjs} +65 -65
- package/fesm2022/{caribeng-ui-caribe-input-token.mjs → caribeng-ui-input-token.mjs} +59 -59
- package/fesm2022/caribeng-ui-inputmask.mjs +8 -2
- package/fesm2022/caribeng-ui-inputotp.mjs +2 -2
- package/fesm2022/caribeng-ui-journal-entry.mjs +340 -0
- package/fesm2022/caribeng-ui-kanban.mjs +4612 -0
- package/fesm2022/caribeng-ui-kbd.mjs +122 -0
- package/fesm2022/caribeng-ui-kpi.mjs +189 -0
- package/fesm2022/{caribeng-ui-caribe-link.mjs → caribeng-ui-link.mjs} +37 -37
- package/fesm2022/caribeng-ui-masonry.mjs +93 -0
- package/fesm2022/caribeng-ui-media-player.mjs +821 -0
- package/fesm2022/caribeng-ui-megamenu.mjs +13 -9
- package/fesm2022/caribeng-ui-mentions.mjs +495 -0
- package/fesm2022/caribeng-ui-menu.mjs +8 -4
- package/fesm2022/caribeng-ui-menubar.mjs +9 -5
- package/fesm2022/caribeng-ui-message.mjs +6 -3
- package/fesm2022/caribeng-ui-notification-center.mjs +636 -0
- package/fesm2022/{caribeng-ui-caribe-off-canvas.mjs → caribeng-ui-off-canvas.mjs} +55 -55
- package/fesm2022/{caribeng-ui-caribe-onboarding.mjs → caribeng-ui-onboarding.mjs} +105 -105
- package/fesm2022/caribeng-ui-orderlist.mjs +2 -2
- package/fesm2022/caribeng-ui-organizationchart.mjs +6 -10
- package/fesm2022/caribeng-ui-panel.mjs +6 -6
- package/fesm2022/caribeng-ui-panelmenu.mjs +9 -6
- package/fesm2022/caribeng-ui-pdfviewer.mjs +1755 -25
- package/fesm2022/caribeng-ui-period-picker.mjs +637 -0
- package/fesm2022/caribeng-ui-phone-input.mjs +688 -0
- package/fesm2022/caribeng-ui-picklist.mjs +2 -2
- package/fesm2022/caribeng-ui-pivot.mjs +419 -0
- package/fesm2022/caribeng-ui-pricing.mjs +263 -69
- package/fesm2022/caribeng-ui-qrcode.mjs +564 -0
- package/fesm2022/caribeng-ui-rating.mjs +14 -17
- package/fesm2022/caribeng-ui-reconciliation.mjs +386 -0
- package/fesm2022/caribeng-ui-ripple.mjs +2 -0
- package/fesm2022/caribeng-ui-scheduler.mjs +1027 -0
- package/fesm2022/caribeng-ui-scrolltop.mjs +3 -1
- package/fesm2022/caribeng-ui-select.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-shortcut.mjs → caribeng-ui-shortcut.mjs} +29 -29
- package/fesm2022/caribeng-ui-sidebar.mjs +573 -0
- package/fesm2022/caribeng-ui-signature-pad.mjs +654 -0
- package/fesm2022/{caribeng-ui-caribe-status.mjs → caribeng-ui-status.mjs} +11 -11
- package/fesm2022/{caribeng-ui-caribe-step-indicator.mjs → caribeng-ui-step-indicator.mjs} +53 -53
- package/fesm2022/caribeng-ui-stepper.mjs +12 -5
- package/fesm2022/caribeng-ui-steps.mjs +2 -2
- package/fesm2022/caribeng-ui-table.mjs +333 -19
- package/fesm2022/caribeng-ui-tabmenu.mjs +10 -6
- package/fesm2022/caribeng-ui-tabs.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-tag-button.mjs → caribeng-ui-tag-button.mjs} +25 -25
- package/fesm2022/caribeng-ui-tag.mjs +2 -2
- package/fesm2022/caribeng-ui-tieredmenu.mjs +111 -21
- package/fesm2022/{caribeng-ui-caribe-tracker.mjs → caribeng-ui-tracker.mjs} +29 -29
- package/fesm2022/{caribeng-ui-caribe-transaction-status.mjs → caribeng-ui-transaction-status.mjs} +11 -11
- package/fesm2022/caribeng-ui-treeselect.mjs +44 -9
- package/fesm2022/caribeng-ui-treetable.mjs +236 -17
- package/fesm2022/{caribeng-ui-caribe-voucher.mjs → caribeng-ui-voucher.mjs} +45 -45
- package/fesm2022/caribeng-ui-xlsx.mjs +486 -0
- package/fesm2022/caribeng-ui.mjs +1568 -1
- package/package.json +258 -178
- package/schematics/collection.json +5 -0
- package/schematics/migrate-from-primeng/core-icons.json +1 -0
- package/schematics/migrate-from-primeng/icons.js +269 -0
- package/schematics/migrate-from-primeng/index.js +290 -0
- package/schematics/migrate-from-primeng/mappings/button.js +93 -0
- package/schematics/migrate-from-primeng/mappings/card.js +33 -0
- package/schematics/migrate-from-primeng/mappings/checkbox.js +44 -0
- package/schematics/migrate-from-primeng/mappings/confirm.js +221 -0
- package/schematics/migrate-from-primeng/mappings/datepicker.js +121 -0
- package/schematics/migrate-from-primeng/mappings/dialog.js +84 -0
- package/schematics/migrate-from-primeng/mappings/index.js +88 -0
- package/schematics/migrate-from-primeng/mappings/inputnumber.js +62 -0
- package/schematics/migrate-from-primeng/mappings/inputtext.js +60 -0
- package/schematics/migrate-from-primeng/mappings/menu.js +468 -0
- package/schematics/migrate-from-primeng/mappings/multiselect.js +49 -0
- package/schematics/migrate-from-primeng/mappings/radiobutton.js +22 -0
- package/schematics/migrate-from-primeng/mappings/rules.js +206 -0
- package/schematics/migrate-from-primeng/mappings/select.js +97 -0
- package/schematics/migrate-from-primeng/mappings/service-calls.js +100 -0
- package/schematics/migrate-from-primeng/mappings/table.js +613 -0
- package/schematics/migrate-from-primeng/mappings/tabs.js +225 -0
- package/schematics/migrate-from-primeng/mappings/tag.js +29 -0
- package/schematics/migrate-from-primeng/mappings/textarea.js +44 -0
- package/schematics/migrate-from-primeng/mappings/toast.js +173 -0
- package/schematics/migrate-from-primeng/mappings/toggleswitch.js +37 -0
- package/schematics/migrate-from-primeng/mappings/tooltip.js +44 -0
- package/schematics/migrate-from-primeng/mappings/types.js +10 -0
- package/schematics/migrate-from-primeng/report.js +79 -0
- package/schematics/migrate-from-primeng/schema.js +2 -0
- package/schematics/migrate-from-primeng/schema.json +34 -0
- package/schematics/migrate-from-primeng/template.js +387 -0
- package/schematics/migrate-from-primeng/todo.js +5 -0
- package/schematics/migrate-from-primeng/typescript.js +442 -0
- package/schematics/migrate-from-primeng/workspace.js +117 -0
- package/schematics/ng-add/index.js +16 -1
- package/types/caribeng-ui-account-picker.d.ts +142 -0
- package/types/caribeng-ui-aging.d.ts +123 -0
- package/types/{caribeng-ui-caribe-alert.d.ts → caribeng-ui-alert.d.ts} +2 -2
- package/types/caribeng-ui-amount.d.ts +82 -0
- package/types/{caribeng-ui-caribe-animation-lottie.d.ts → caribeng-ui-animation-lottie.d.ts} +2 -2
- package/types/caribeng-ui-audit-log.d.ts +86 -0
- package/types/caribeng-ui-badge.d.ts +3 -1
- package/types/caribeng-ui-breadcrumb.d.ts +9 -1
- package/types/{caribeng-ui-caribe-button-group.d.ts → caribeng-ui-button-group.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-content.d.ts → caribeng-ui-card-content.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-move.d.ts → caribeng-ui-card-move.d.ts} +1 -1
- package/types/{caribeng-ui-caribe-card-primary.d.ts → caribeng-ui-card-primary.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-select.d.ts → caribeng-ui-card-select.d.ts} +2 -2
- package/types/caribeng-ui-cascadeselect.d.ts +6 -0
- package/types/caribeng-ui-chart.d.ts +3 -1
- package/types/caribeng-ui-chat.d.ts +299 -0
- package/types/{caribeng-ui-caribe-coachmark.d.ts → caribeng-ui-coachmark.d.ts} +2 -2
- package/types/caribeng-ui-code-block.d.ts +65 -0
- package/types/caribeng-ui-colorpicker.d.ts +5 -1
- package/types/caribeng-ui-command-palette.d.ts +133 -0
- package/types/caribeng-ui-comments.d.ts +214 -0
- package/types/caribeng-ui-confirmdialog.d.ts +34 -2
- package/types/caribeng-ui-confirmpopup.d.ts +39 -2
- package/types/caribeng-ui-contextmenu.d.ts +7 -0
- package/types/caribeng-ui-copy-button.d.ts +90 -0
- package/types/caribeng-ui-datagrid.d.ts +269 -0
- package/types/caribeng-ui-dataview.d.ts +2 -0
- package/types/caribeng-ui-dock.d.ts +13 -1
- package/types/caribeng-ui-document.d.ts +138 -0
- package/types/{caribeng-ui-caribe-dots-indicator.d.ts → caribeng-ui-dots-indicator.d.ts} +2 -2
- package/types/caribeng-ui-drawer.d.ts +3 -1
- package/types/caribeng-ui-dynamic-form.d.ts +409 -0
- package/types/caribeng-ui-editor.d.ts +110 -12
- package/types/{caribeng-ui-caribe-expansion-panel.d.ts → caribeng-ui-expansion-panel.d.ts} +1 -1
- package/types/{caribeng-ui-caribe-fab-menu.d.ts → caribeng-ui-fab-menu.d.ts} +2 -2
- package/types/caribeng-ui-file-card.d.ts +27 -2
- package/types/{caribeng-ui-caribe-file-download.d.ts → caribeng-ui-file-download.d.ts} +1 -1
- package/types/caribeng-ui-financial-report.d.ts +102 -0
- package/types/{caribeng-ui-caribe-float-menu.d.ts → caribeng-ui-float-menu.d.ts} +2 -2
- package/types/caribeng-ui-flow.d.ts +228 -0
- package/types/caribeng-ui-folder-card.d.ts +27 -5
- package/types/{caribeng-ui-caribe-footer.d.ts → caribeng-ui-footer.d.ts} +2 -2
- package/types/caribeng-ui-gantt.d.ts +244 -0
- package/types/{caribeng-ui-caribe-header.d.ts → caribeng-ui-header.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-icon-button.d.ts → caribeng-ui-icon-button.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-illustration.d.ts → caribeng-ui-illustration.d.ts} +1 -1
- package/types/caribeng-ui-image-cropper.d.ts +169 -0
- package/types/caribeng-ui-import-wizard.d.ts +149 -0
- package/types/caribeng-ui-infinite-scroll.d.ts +75 -0
- package/types/caribeng-ui-input-number.d.ts +1 -1
- package/types/{caribeng-ui-caribe-input-search.d.ts → caribeng-ui-input-search.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-input-token.d.ts → caribeng-ui-input-token.d.ts} +2 -2
- package/types/caribeng-ui-inputmask.d.ts +3 -1
- package/types/caribeng-ui-journal-entry.d.ts +110 -0
- package/types/caribeng-ui-kanban.d.ts +783 -0
- package/types/caribeng-ui-kbd.d.ts +36 -0
- package/types/caribeng-ui-kpi.d.ts +64 -0
- package/types/{caribeng-ui-caribe-link.d.ts → caribeng-ui-link.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-logo.d.ts → caribeng-ui-logo.d.ts} +1 -1
- package/types/caribeng-ui-masonry.d.ts +32 -0
- package/types/caribeng-ui-media-player.d.ts +140 -0
- package/types/caribeng-ui-megamenu.d.ts +11 -0
- package/types/caribeng-ui-mentions.d.ts +127 -0
- package/types/caribeng-ui-menu.d.ts +7 -0
- package/types/caribeng-ui-menubar.d.ts +7 -0
- package/types/caribeng-ui-message.d.ts +2 -0
- package/types/caribeng-ui-notification-center.d.ts +153 -0
- package/types/{caribeng-ui-caribe-off-canvas.d.ts → caribeng-ui-off-canvas.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-onboarding.d.ts → caribeng-ui-onboarding.d.ts} +2 -2
- package/types/caribeng-ui-panelmenu.d.ts +7 -0
- package/types/caribeng-ui-pdfviewer.d.ts +245 -5
- package/types/caribeng-ui-period-picker.d.ts +148 -0
- package/types/caribeng-ui-phone-input.d.ts +168 -0
- package/types/caribeng-ui-pivot.d.ts +116 -0
- package/types/caribeng-ui-pricing.d.ts +41 -4
- package/types/caribeng-ui-qrcode.d.ts +88 -0
- package/types/caribeng-ui-reconciliation.d.ts +109 -0
- package/types/caribeng-ui-scheduler.d.ts +188 -0
- package/types/{caribeng-ui-caribe-shortcut.d.ts → caribeng-ui-shortcut.d.ts} +2 -2
- package/types/caribeng-ui-sidebar.d.ts +167 -0
- package/types/caribeng-ui-signature-pad.d.ts +151 -0
- package/types/{caribeng-ui-caribe-status.d.ts → caribeng-ui-status.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-step-indicator.d.ts → caribeng-ui-step-indicator.d.ts} +2 -2
- package/types/caribeng-ui-stepper.d.ts +2 -0
- package/types/caribeng-ui-table.d.ts +67 -3
- package/types/caribeng-ui-tabmenu.d.ts +7 -0
- package/types/{caribeng-ui-caribe-tag-button.d.ts → caribeng-ui-tag-button.d.ts} +2 -2
- package/types/caribeng-ui-tieredmenu.d.ts +17 -1
- package/types/{caribeng-ui-caribe-tracker.d.ts → caribeng-ui-tracker.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-transaction-status.d.ts → caribeng-ui-transaction-status.d.ts} +2 -2
- package/types/caribeng-ui-treeselect.d.ts +6 -0
- package/types/caribeng-ui-treetable.d.ts +67 -2
- package/types/{caribeng-ui-caribe-voucher.d.ts → caribeng-ui-voucher.d.ts} +2 -2
- package/types/caribeng-ui-xlsx.d.ts +79 -0
- package/types/caribeng-ui.d.ts +985 -2
- package/fesm2022/caribeng-ui-caribe-calendar.mjs +0 -92
- package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +0 -130
- package/fesm2022/caribeng-ui-caribe-data-table.mjs +0 -94
- package/fesm2022/caribeng-ui-caribe-file-select.mjs +0 -88
- package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +0 -100
- package/fesm2022/caribeng-ui-caribe-input-date.mjs +0 -138
- package/fesm2022/caribeng-ui-caribe-input-select.mjs +0 -154
- package/fesm2022/caribeng-ui-caribe-loader.mjs +0 -48
- package/fesm2022/caribeng-ui-caribe-modal.mjs +0 -119
- package/fesm2022/caribeng-ui-caribe-pictogram.mjs +0 -52
- package/fesm2022/caribeng-ui-caribe-pop-over.mjs +0 -104
- package/fesm2022/caribeng-ui-caribe-preloader.mjs +0 -57
- package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +0 -84
- package/fesm2022/caribeng-ui-caribe-stroke.mjs +0 -69
- package/fesm2022/caribeng-ui-caribe-switch.mjs +0 -182
- package/styles/caribeng.css +0 -380
- package/styles/scss/_mixins.scss +0 -46
- package/styles/scss/_overlay.scss +0 -15
- package/styles/scss/_tokens.scss +0 -267
- package/styles/scss/_utilities.scss +0 -73
- package/styles/scss/_variables.scss +0 -33
- package/styles/scss/index.scss +0 -16
- package/types/caribeng-ui-caribe-calendar.d.ts +0 -27
- package/types/caribeng-ui-caribe-circle-loading.d.ts +0 -28
- package/types/caribeng-ui-caribe-data-table.d.ts +0 -26
- package/types/caribeng-ui-caribe-file-select.d.ts +0 -31
- package/types/caribeng-ui-caribe-inline-alert.d.ts +0 -28
- package/types/caribeng-ui-caribe-input-date.d.ts +0 -40
- package/types/caribeng-ui-caribe-input-select.d.ts +0 -47
- package/types/caribeng-ui-caribe-loader.d.ts +0 -22
- package/types/caribeng-ui-caribe-modal.d.ts +0 -21
- package/types/caribeng-ui-caribe-pictogram.d.ts +0 -15
- package/types/caribeng-ui-caribe-pop-over.d.ts +0 -17
- package/types/caribeng-ui-caribe-preloader.d.ts +0 -24
- package/types/caribeng-ui-caribe-progress-bar.d.ts +0 -28
- package/types/caribeng-ui-caribe-stroke.d.ts +0 -17
- package/types/caribeng-ui-caribe-switch.d.ts +0 -55
- /package/fesm2022/{caribeng-ui-caribe-illustration.mjs → caribeng-ui-illustration.mjs} +0 -0
- /package/fesm2022/{caribeng-ui-caribe-logo.mjs → caribeng-ui-logo.mjs} +0 -0
|
@@ -3,7 +3,7 @@ import { input, model, ViewEncapsulation, ChangeDetectionStrategy, Component } f
|
|
|
3
3
|
import { injectCbTranslation } from '@caribeng/ui';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Expansion-panel
|
|
6
|
+
* Expansion-panel: panel colapsable con cabecera pulsable y
|
|
7
7
|
* contenido proyectado.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
@@ -27,48 +27,48 @@ class CbExpansionPanel {
|
|
|
27
27
|
this.bodyId = `cb-expansion-panel-${this.uid}-body`;
|
|
28
28
|
}
|
|
29
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbExpansionPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbExpansionPanel, isStandalone: true, selector: "cb-expansion-panel", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { classAttribute: "cb-expansion-panel-host" }, ngImport: i0, template: `
|
|
31
|
-
<div class="cb-expansion-panel" [class.cb-is-open]="expanded()">
|
|
32
|
-
<button
|
|
33
|
-
type="button"
|
|
34
|
-
class="cb-expansion-panel__header"
|
|
35
|
-
[id]="headerId"
|
|
36
|
-
[attr.aria-expanded]="expanded()"
|
|
37
|
-
[attr.aria-controls]="expanded() ? bodyId : null"
|
|
38
|
-
(click)="expanded.set(!expanded())"
|
|
39
|
-
>
|
|
40
|
-
<span class="cb-expansion-panel__title">{{ (title() ?? t().details) }}</span>
|
|
41
|
-
<span class="cb-expansion-panel__chevron" aria-hidden="true">▾</span>
|
|
42
|
-
</button>
|
|
43
|
-
@if (expanded()) {
|
|
44
|
-
<div class="cb-expansion-panel__body" role="region" [id]="bodyId" [attr.aria-labelledby]="headerId">
|
|
45
|
-
<ng-content />
|
|
46
|
-
</div>
|
|
47
|
-
}
|
|
48
|
-
</div>
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbExpansionPanel, isStandalone: true, selector: "cb-expansion-panel", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { classAttribute: "cb-expansion-panel-host" }, ngImport: i0, template: `
|
|
31
|
+
<div class="cb-expansion-panel" [class.cb-is-open]="expanded()">
|
|
32
|
+
<button
|
|
33
|
+
type="button"
|
|
34
|
+
class="cb-expansion-panel__header"
|
|
35
|
+
[id]="headerId"
|
|
36
|
+
[attr.aria-expanded]="expanded()"
|
|
37
|
+
[attr.aria-controls]="expanded() ? bodyId : null"
|
|
38
|
+
(click)="expanded.set(!expanded())"
|
|
39
|
+
>
|
|
40
|
+
<span class="cb-expansion-panel__title">{{ (title() ?? t().details) }}</span>
|
|
41
|
+
<span class="cb-expansion-panel__chevron" aria-hidden="true">▾</span>
|
|
42
|
+
</button>
|
|
43
|
+
@if (expanded()) {
|
|
44
|
+
<div class="cb-expansion-panel__body" role="region" [id]="bodyId" [attr.aria-labelledby]="headerId">
|
|
45
|
+
<ng-content />
|
|
46
|
+
</div>
|
|
47
|
+
}
|
|
48
|
+
</div>
|
|
49
49
|
`, isInline: true, styles: [":host{display:block;width:100%}.cb-expansion-panel{width:100%;box-sizing:border-box;font-family:var(--cb-font-sans, inherit);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-md, .5rem);overflow:hidden}.cb-expansion-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);width:100%;box-sizing:border-box;padding:var(--cb-space-3, .75rem) var(--cb-space-4, 1rem);font:inherit;font-weight:var(--cb-font-weight-semibold, 600);color:inherit;text-align:left;background:transparent;border:none;cursor:pointer;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-expansion-panel__header:hover{background-color:var(--cb-color-surface-50, #f8fafc)}.cb-expansion-panel__header:focus-visible{outline:2px solid var(--cb-color-focus-ring, var(--cb-color-primary-500, #10b981));outline-offset:-2px}.cb-expansion-panel__chevron{flex:none;color:var(--cb-color-text-muted, #64748b);transition:transform var(--cb-duration-normal, .2s) var(--cb-ease, ease)}.cb-expansion-panel.cb-is-open .cb-expansion-panel__chevron{transform:rotate(180deg)}.cb-expansion-panel__body{padding:var(--cb-space-3, .75rem) var(--cb-space-4, 1rem) var(--cb-space-4, 1rem);font-size:var(--cb-text-sm, .875rem);color:var(--cb-color-text, #334155);border-top:1px solid var(--cb-color-border, #e2e8f0)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel{color:var(--cb-color-surface-0, #f8fafc);background-color:var(--cb-color-surface-800, #1e293b);border-color:var(--cb-color-surface-600, #475569)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel__header:hover{background-color:var(--cb-color-surface-700, #334155)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel__body{color:var(--cb-color-surface-200, #e2e8f0);border-top-color:var(--cb-color-surface-600, #475569)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
50
50
|
}
|
|
51
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbExpansionPanel, decorators: [{
|
|
52
52
|
type: Component,
|
|
53
|
-
args: [{ selector: 'cb-expansion-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'cb-expansion-panel-host' }, template: `
|
|
54
|
-
<div class="cb-expansion-panel" [class.cb-is-open]="expanded()">
|
|
55
|
-
<button
|
|
56
|
-
type="button"
|
|
57
|
-
class="cb-expansion-panel__header"
|
|
58
|
-
[id]="headerId"
|
|
59
|
-
[attr.aria-expanded]="expanded()"
|
|
60
|
-
[attr.aria-controls]="expanded() ? bodyId : null"
|
|
61
|
-
(click)="expanded.set(!expanded())"
|
|
62
|
-
>
|
|
63
|
-
<span class="cb-expansion-panel__title">{{ (title() ?? t().details) }}</span>
|
|
64
|
-
<span class="cb-expansion-panel__chevron" aria-hidden="true">▾</span>
|
|
65
|
-
</button>
|
|
66
|
-
@if (expanded()) {
|
|
67
|
-
<div class="cb-expansion-panel__body" role="region" [id]="bodyId" [attr.aria-labelledby]="headerId">
|
|
68
|
-
<ng-content />
|
|
69
|
-
</div>
|
|
70
|
-
}
|
|
71
|
-
</div>
|
|
53
|
+
args: [{ selector: 'cb-expansion-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'cb-expansion-panel-host' }, template: `
|
|
54
|
+
<div class="cb-expansion-panel" [class.cb-is-open]="expanded()">
|
|
55
|
+
<button
|
|
56
|
+
type="button"
|
|
57
|
+
class="cb-expansion-panel__header"
|
|
58
|
+
[id]="headerId"
|
|
59
|
+
[attr.aria-expanded]="expanded()"
|
|
60
|
+
[attr.aria-controls]="expanded() ? bodyId : null"
|
|
61
|
+
(click)="expanded.set(!expanded())"
|
|
62
|
+
>
|
|
63
|
+
<span class="cb-expansion-panel__title">{{ (title() ?? t().details) }}</span>
|
|
64
|
+
<span class="cb-expansion-panel__chevron" aria-hidden="true">▾</span>
|
|
65
|
+
</button>
|
|
66
|
+
@if (expanded()) {
|
|
67
|
+
<div class="cb-expansion-panel__body" role="region" [id]="bodyId" [attr.aria-labelledby]="headerId">
|
|
68
|
+
<ng-content />
|
|
69
|
+
</div>
|
|
70
|
+
}
|
|
71
|
+
</div>
|
|
72
72
|
`, styles: [":host{display:block;width:100%}.cb-expansion-panel{width:100%;box-sizing:border-box;font-family:var(--cb-font-sans, inherit);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-md, .5rem);overflow:hidden}.cb-expansion-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);width:100%;box-sizing:border-box;padding:var(--cb-space-3, .75rem) var(--cb-space-4, 1rem);font:inherit;font-weight:var(--cb-font-weight-semibold, 600);color:inherit;text-align:left;background:transparent;border:none;cursor:pointer;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-expansion-panel__header:hover{background-color:var(--cb-color-surface-50, #f8fafc)}.cb-expansion-panel__header:focus-visible{outline:2px solid var(--cb-color-focus-ring, var(--cb-color-primary-500, #10b981));outline-offset:-2px}.cb-expansion-panel__chevron{flex:none;color:var(--cb-color-text-muted, #64748b);transition:transform var(--cb-duration-normal, .2s) var(--cb-ease, ease)}.cb-expansion-panel.cb-is-open .cb-expansion-panel__chevron{transform:rotate(180deg)}.cb-expansion-panel__body{padding:var(--cb-space-3, .75rem) var(--cb-space-4, 1rem) var(--cb-space-4, 1rem);font-size:var(--cb-text-sm, .875rem);color:var(--cb-color-text, #334155);border-top:1px solid var(--cb-color-border, #e2e8f0)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel{color:var(--cb-color-surface-0, #f8fafc);background-color:var(--cb-color-surface-800, #1e293b);border-color:var(--cb-color-surface-600, #475569)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel__header:hover{background-color:var(--cb-color-surface-700, #334155)}:host-context([data-theme=\"dark\"]) .cb-expansion-panel__body{color:var(--cb-color-surface-200, #e2e8f0);border-top-color:var(--cb-color-surface-600, #475569)}\n"] }]
|
|
73
73
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }] } });
|
|
74
74
|
|
|
@@ -4,7 +4,7 @@ import { injectCbTranslation, cbOverlayFocus } from '@caribeng/ui';
|
|
|
4
4
|
|
|
5
5
|
let nextId = 0;
|
|
6
6
|
/**
|
|
7
|
-
* Fab-menu
|
|
7
|
+
* Fab-menu: botón de acción flotante que despliega una lista
|
|
8
8
|
* de acciones rápidas.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -60,83 +60,83 @@ class CbFabMenu {
|
|
|
60
60
|
this.open.set(false);
|
|
61
61
|
}
|
|
62
62
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbFabMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbFabMenu, isStandalone: true, selector: "cb-fab-menu", inputs: { triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", itemSelected: "itemSelected" }, host: { classAttribute: "cb-fab-menu-host" }, ngImport: i0, template: `
|
|
64
|
-
<div class="cb-fab-menu">
|
|
65
|
-
@if (open()) {
|
|
66
|
-
<div
|
|
67
|
-
class="cb-fab-menu__list"
|
|
68
|
-
role="menu"
|
|
69
|
-
[id]="menuId"
|
|
70
|
-
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
71
|
-
(keydown)="onMenuKeydown($event)"
|
|
72
|
-
>
|
|
73
|
-
@for (item of items(); track item.id) {
|
|
74
|
-
<button
|
|
75
|
-
type="button"
|
|
76
|
-
class="cb-fab-menu__item"
|
|
77
|
-
role="menuitem"
|
|
78
|
-
tabindex="-1"
|
|
79
|
-
(click)="selectItem(item)"
|
|
80
|
-
>
|
|
81
|
-
{{ item.label }}
|
|
82
|
-
</button>
|
|
83
|
-
}
|
|
84
|
-
</div>
|
|
85
|
-
}
|
|
86
|
-
<button
|
|
87
|
-
type="button"
|
|
88
|
-
class="cb-fab-menu__trigger"
|
|
89
|
-
[class.cb-is-open]="open()"
|
|
90
|
-
aria-haspopup="menu"
|
|
91
|
-
[attr.aria-expanded]="open()"
|
|
92
|
-
[attr.aria-controls]="open() ? menuId : null"
|
|
93
|
-
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
94
|
-
(click)="open.set(!open())"
|
|
95
|
-
>
|
|
96
|
-
<span aria-hidden="true">{{ open() ? '×' : '+' }}</span>
|
|
97
|
-
</button>
|
|
98
|
-
</div>
|
|
99
|
-
`, isInline: true, styles: [":host{display:inline-flex}.cb-fab-menu{display:inline-flex;flex-direction:column;align-items:flex-end;gap:var(--cb-space-2, .5rem);font-family:var(--cb-font-sans, inherit)}.cb-fab-menu__list{display:flex;flex-direction:column;gap:var(--cb-space-2, .35rem);animation:cb-fab-in var(--cb-duration-fast, .12s) var(--cb-ease-out, ease-out)}.cb-fab-menu__item{padding:var(--cb-space-2, .5rem) var(--cb-space-4, 1rem);font:inherit;font-size:var(--cb-text-sm, .8125rem);font-weight:var(--cb-font-weight-medium, 500);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-sm, 0 1px 2px rgba(0, 0, 0, .12));cursor:pointer;white-space:nowrap;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-fab-menu__item:hover{background-color:var(--cb-color-surface-100, #f1f5f9)}.cb-fab-menu__trigger{display:inline-flex;align-items:center;justify-content:center;width:3.25rem;height:3.25rem;font-size:1.6rem;line-height:1;color
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbFabMenu, isStandalone: true, selector: "cb-fab-menu", inputs: { triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", itemSelected: "itemSelected" }, host: { classAttribute: "cb-fab-menu-host" }, ngImport: i0, template: `
|
|
64
|
+
<div class="cb-fab-menu">
|
|
65
|
+
@if (open()) {
|
|
66
|
+
<div
|
|
67
|
+
class="cb-fab-menu__list"
|
|
68
|
+
role="menu"
|
|
69
|
+
[id]="menuId"
|
|
70
|
+
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
71
|
+
(keydown)="onMenuKeydown($event)"
|
|
72
|
+
>
|
|
73
|
+
@for (item of items(); track item.id) {
|
|
74
|
+
<button
|
|
75
|
+
type="button"
|
|
76
|
+
class="cb-fab-menu__item"
|
|
77
|
+
role="menuitem"
|
|
78
|
+
tabindex="-1"
|
|
79
|
+
(click)="selectItem(item)"
|
|
80
|
+
>
|
|
81
|
+
{{ item.label }}
|
|
82
|
+
</button>
|
|
83
|
+
}
|
|
84
|
+
</div>
|
|
85
|
+
}
|
|
86
|
+
<button
|
|
87
|
+
type="button"
|
|
88
|
+
class="cb-fab-menu__trigger"
|
|
89
|
+
[class.cb-is-open]="open()"
|
|
90
|
+
aria-haspopup="menu"
|
|
91
|
+
[attr.aria-expanded]="open()"
|
|
92
|
+
[attr.aria-controls]="open() ? menuId : null"
|
|
93
|
+
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
94
|
+
(click)="open.set(!open())"
|
|
95
|
+
>
|
|
96
|
+
<span aria-hidden="true">{{ open() ? '×' : '+' }}</span>
|
|
97
|
+
</button>
|
|
98
|
+
</div>
|
|
99
|
+
`, isInline: true, styles: [":host{display:inline-flex}.cb-fab-menu{display:inline-flex;flex-direction:column;align-items:flex-end;gap:var(--cb-space-2, .5rem);font-family:var(--cb-font-sans, inherit)}.cb-fab-menu__list{display:flex;flex-direction:column;gap:var(--cb-space-2, .35rem);animation:cb-fab-in var(--cb-duration-fast, .12s) var(--cb-ease-out, ease-out)}.cb-fab-menu__item{padding:var(--cb-space-2, .5rem) var(--cb-space-4, 1rem);font:inherit;font-size:var(--cb-text-sm, .8125rem);font-weight:var(--cb-font-weight-medium, 500);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-sm, 0 1px 2px rgba(0, 0, 0, .12));cursor:pointer;white-space:nowrap;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-fab-menu__item:hover{background-color:var(--cb-color-surface-100, #f1f5f9)}.cb-fab-menu__trigger{display:inline-flex;align-items:center;justify-content:center;width:3.25rem;height:3.25rem;font-size:1.6rem;line-height:1;color:#fff;background-color:var(--cb-color-primary-700, #047857);border:none;border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-md, 0 6px 16px rgba(0, 0, 0, .2));cursor:pointer;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease),transform var(--cb-duration-normal, .2s) var(--cb-ease, ease)}.cb-fab-menu__trigger:hover{background-color:var(--cb-color-primary-700, #065f46)}.cb-fab-menu__trigger.cb-is-open{transform:rotate(90deg)}.cb-fab-menu__trigger:focus-visible{outline:2px solid var(--cb-color-focus-ring, var(--cb-color-primary-500, #10b981));outline-offset:2px}@keyframes cb-fab-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}:host-context([data-theme=\"dark\"]) .cb-fab-menu__item{color:var(--cb-color-surface-0, #f8fafc);background-color:var(--cb-color-surface-800, #1e293b);border-color:var(--cb-color-surface-600, #475569)}:host-context([data-theme=\"dark\"]) .cb-fab-menu__item:hover{background-color:var(--cb-color-surface-700, #334155)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
100
100
|
}
|
|
101
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbFabMenu, decorators: [{
|
|
102
102
|
type: Component,
|
|
103
|
-
args: [{ selector: 'cb-fab-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'cb-fab-menu-host' }, template: `
|
|
104
|
-
<div class="cb-fab-menu">
|
|
105
|
-
@if (open()) {
|
|
106
|
-
<div
|
|
107
|
-
class="cb-fab-menu__list"
|
|
108
|
-
role="menu"
|
|
109
|
-
[id]="menuId"
|
|
110
|
-
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
111
|
-
(keydown)="onMenuKeydown($event)"
|
|
112
|
-
>
|
|
113
|
-
@for (item of items(); track item.id) {
|
|
114
|
-
<button
|
|
115
|
-
type="button"
|
|
116
|
-
class="cb-fab-menu__item"
|
|
117
|
-
role="menuitem"
|
|
118
|
-
tabindex="-1"
|
|
119
|
-
(click)="selectItem(item)"
|
|
120
|
-
>
|
|
121
|
-
{{ item.label }}
|
|
122
|
-
</button>
|
|
123
|
-
}
|
|
124
|
-
</div>
|
|
125
|
-
}
|
|
126
|
-
<button
|
|
127
|
-
type="button"
|
|
128
|
-
class="cb-fab-menu__trigger"
|
|
129
|
-
[class.cb-is-open]="open()"
|
|
130
|
-
aria-haspopup="menu"
|
|
131
|
-
[attr.aria-expanded]="open()"
|
|
132
|
-
[attr.aria-controls]="open() ? menuId : null"
|
|
133
|
-
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
134
|
-
(click)="open.set(!open())"
|
|
135
|
-
>
|
|
136
|
-
<span aria-hidden="true">{{ open() ? '×' : '+' }}</span>
|
|
137
|
-
</button>
|
|
138
|
-
</div>
|
|
139
|
-
`, styles: [":host{display:inline-flex}.cb-fab-menu{display:inline-flex;flex-direction:column;align-items:flex-end;gap:var(--cb-space-2, .5rem);font-family:var(--cb-font-sans, inherit)}.cb-fab-menu__list{display:flex;flex-direction:column;gap:var(--cb-space-2, .35rem);animation:cb-fab-in var(--cb-duration-fast, .12s) var(--cb-ease-out, ease-out)}.cb-fab-menu__item{padding:var(--cb-space-2, .5rem) var(--cb-space-4, 1rem);font:inherit;font-size:var(--cb-text-sm, .8125rem);font-weight:var(--cb-font-weight-medium, 500);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-sm, 0 1px 2px rgba(0, 0, 0, .12));cursor:pointer;white-space:nowrap;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-fab-menu__item:hover{background-color:var(--cb-color-surface-100, #f1f5f9)}.cb-fab-menu__trigger{display:inline-flex;align-items:center;justify-content:center;width:3.25rem;height:3.25rem;font-size:1.6rem;line-height:1;color
|
|
103
|
+
args: [{ selector: 'cb-fab-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'cb-fab-menu-host' }, template: `
|
|
104
|
+
<div class="cb-fab-menu">
|
|
105
|
+
@if (open()) {
|
|
106
|
+
<div
|
|
107
|
+
class="cb-fab-menu__list"
|
|
108
|
+
role="menu"
|
|
109
|
+
[id]="menuId"
|
|
110
|
+
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
111
|
+
(keydown)="onMenuKeydown($event)"
|
|
112
|
+
>
|
|
113
|
+
@for (item of items(); track item.id) {
|
|
114
|
+
<button
|
|
115
|
+
type="button"
|
|
116
|
+
class="cb-fab-menu__item"
|
|
117
|
+
role="menuitem"
|
|
118
|
+
tabindex="-1"
|
|
119
|
+
(click)="selectItem(item)"
|
|
120
|
+
>
|
|
121
|
+
{{ item.label }}
|
|
122
|
+
</button>
|
|
123
|
+
}
|
|
124
|
+
</div>
|
|
125
|
+
}
|
|
126
|
+
<button
|
|
127
|
+
type="button"
|
|
128
|
+
class="cb-fab-menu__trigger"
|
|
129
|
+
[class.cb-is-open]="open()"
|
|
130
|
+
aria-haspopup="menu"
|
|
131
|
+
[attr.aria-expanded]="open()"
|
|
132
|
+
[attr.aria-controls]="open() ? menuId : null"
|
|
133
|
+
[attr.aria-label]="(triggerLabel() ?? t().quickActions)"
|
|
134
|
+
(click)="open.set(!open())"
|
|
135
|
+
>
|
|
136
|
+
<span aria-hidden="true">{{ open() ? '×' : '+' }}</span>
|
|
137
|
+
</button>
|
|
138
|
+
</div>
|
|
139
|
+
`, styles: [":host{display:inline-flex}.cb-fab-menu{display:inline-flex;flex-direction:column;align-items:flex-end;gap:var(--cb-space-2, .5rem);font-family:var(--cb-font-sans, inherit)}.cb-fab-menu__list{display:flex;flex-direction:column;gap:var(--cb-space-2, .35rem);animation:cb-fab-in var(--cb-duration-fast, .12s) var(--cb-ease-out, ease-out)}.cb-fab-menu__item{padding:var(--cb-space-2, .5rem) var(--cb-space-4, 1rem);font:inherit;font-size:var(--cb-text-sm, .8125rem);font-weight:var(--cb-font-weight-medium, 500);color:var(--cb-color-text-strong, #0f172a);background-color:var(--cb-color-surface-0, #ffffff);border:1px solid var(--cb-color-border, #e2e8f0);border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-sm, 0 1px 2px rgba(0, 0, 0, .12));cursor:pointer;white-space:nowrap;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease)}.cb-fab-menu__item:hover{background-color:var(--cb-color-surface-100, #f1f5f9)}.cb-fab-menu__trigger{display:inline-flex;align-items:center;justify-content:center;width:3.25rem;height:3.25rem;font-size:1.6rem;line-height:1;color:#fff;background-color:var(--cb-color-primary-700, #047857);border:none;border-radius:var(--cb-radius-full, 999px);box-shadow:var(--cb-shadow-md, 0 6px 16px rgba(0, 0, 0, .2));cursor:pointer;transition:background-color var(--cb-duration-fast, .12s) var(--cb-ease, ease),transform var(--cb-duration-normal, .2s) var(--cb-ease, ease)}.cb-fab-menu__trigger:hover{background-color:var(--cb-color-primary-700, #065f46)}.cb-fab-menu__trigger.cb-is-open{transform:rotate(90deg)}.cb-fab-menu__trigger:focus-visible{outline:2px solid var(--cb-color-focus-ring, var(--cb-color-primary-500, #10b981));outline-offset:2px}@keyframes cb-fab-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}:host-context([data-theme=\"dark\"]) .cb-fab-menu__item{color:var(--cb-color-surface-0, #f8fafc);background-color:var(--cb-color-surface-800, #1e293b);border-color:var(--cb-color-surface-600, #475569)}:host-context([data-theme=\"dark\"]) .cb-fab-menu__item:hover{background-color:var(--cb-color-surface-700, #334155)}\n"] }]
|
|
140
140
|
}], ctorParameters: () => [], propDecorators: { triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }] } });
|
|
141
141
|
|
|
142
142
|
/**
|
|
@@ -42,7 +42,7 @@ class CbFieldset {
|
|
|
42
42
|
type="button"
|
|
43
43
|
class="cb-fieldset__toggler"
|
|
44
44
|
[attr.aria-expanded]="!collapsed()"
|
|
45
|
-
[attr.aria-controls]="contentId"
|
|
45
|
+
[attr.aria-controls]="collapsed() ? null : contentId"
|
|
46
46
|
(click)="toggle()"
|
|
47
47
|
>
|
|
48
48
|
<cb-icon
|
|
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
84
84
|
type="button"
|
|
85
85
|
class="cb-fieldset__toggler"
|
|
86
86
|
[attr.aria-expanded]="!collapsed()"
|
|
87
|
-
[attr.aria-controls]="contentId"
|
|
87
|
+
[attr.aria-controls]="collapsed() ? null : contentId"
|
|
88
88
|
(click)="toggle()"
|
|
89
89
|
>
|
|
90
90
|
<cb-icon
|
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { viewChild, input, booleanAttribute, output, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { CbIcon } from '@caribeng/ui/icon';
|
|
4
|
+
import { CbMenu } from '@caribeng/ui/menu';
|
|
5
|
+
import { injectCbTranslation } from '@caribeng/ui';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Tarjeta de categoría/almacenamiento de CaribeNG: icono con tinte, título y
|
|
7
9
|
* subtítulo a la izquierda; dos valores alineados a la derecha. Útil para
|
|
8
10
|
* resúmenes de media, almacenamiento o métricas de categoría.
|
|
9
11
|
*
|
|
12
|
+
* Como `cb-folder-card`: con `actions` muestra un botón ⋮ con un menú
|
|
13
|
+
* (`actionSelect`) y con `clickable` toda la tarjeta emite `open`.
|
|
14
|
+
*
|
|
10
15
|
* @example
|
|
11
16
|
* ```html
|
|
12
17
|
* <cb-file-card icon="image" color="#10b981" title="Imágenes"
|
|
13
|
-
* subtitle="17% usado" value="245 archivos" valueSub="26.4 GB"
|
|
18
|
+
* subtitle="17% usado" value="245 archivos" valueSub="26.4 GB"
|
|
19
|
+
* clickable (open)="verImagenes()" />
|
|
14
20
|
* ```
|
|
15
21
|
*/
|
|
16
22
|
class CbFileCard {
|
|
17
23
|
constructor() {
|
|
24
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
25
|
+
this.t = injectCbTranslation();
|
|
26
|
+
this.menu = viewChild('menu', /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.trigger = viewChild('trigger', /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
|
|
18
30
|
/** Nombre del icono (del set de CaribeNG). */
|
|
19
31
|
this.icon = input('file', /* @ts-ignore */
|
|
20
32
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
@@ -33,55 +45,160 @@ class CbFileCard {
|
|
|
33
45
|
/** Valor secundario a la derecha (p. ej. "26.4 GB"). */
|
|
34
46
|
this.valueSub = input('', /* @ts-ignore */
|
|
35
47
|
...(ngDevMode ? [{ debugName: "valueSub" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** Acciones del menú ⋮. Sin acciones no se muestra el botón. */
|
|
49
|
+
this.actions = input([], /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
|
|
51
|
+
/** Nombre del botón ⋮ y del menú. Por defecto, "Más acciones: {título}" del idioma activo. */
|
|
52
|
+
this.actionsAriaLabel = input(undefined, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "actionsAriaLabel" }] : /* istanbul ignore next */ []));
|
|
54
|
+
/** Toda la tarjeta es pulsable y emite `open` (clic, Enter o Espacio). */
|
|
55
|
+
this.clickable = input(false, { ...(ngDevMode ? { debugName: "clickable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
56
|
+
/** Acción elegida en el menú ⋮. */
|
|
57
|
+
this.actionSelect = output();
|
|
58
|
+
/** Se pulsó la tarjeta (solo con `clickable`). */
|
|
59
|
+
this.open = output();
|
|
60
|
+
this.menuOpen = signal(false, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
|
|
62
|
+
this.menuLabel = computed(() => {
|
|
63
|
+
const custom = this.actionsAriaLabel();
|
|
64
|
+
if (custom)
|
|
65
|
+
return custom;
|
|
66
|
+
const title = this.title();
|
|
67
|
+
return title ? `${this.t().moreActions}: ${title}` : this.t().moreActions;
|
|
68
|
+
}, /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
|
|
36
70
|
}
|
|
37
71
|
/** Fondo tintado derivado del color (cualquier color CSS: hex, rgb(), var(--…)). */
|
|
38
72
|
tintBg() {
|
|
39
73
|
const c = this.color();
|
|
40
74
|
return c ? `color-mix(in srgb, ${c} 12%, transparent)` : null;
|
|
41
75
|
}
|
|
76
|
+
/** Abre o cierra el menú de acciones anclado al botón ⋮. */
|
|
77
|
+
toggleMenu() {
|
|
78
|
+
const menu = this.menu();
|
|
79
|
+
const trigger = this.trigger()?.nativeElement;
|
|
80
|
+
if (!menu || !trigger)
|
|
81
|
+
return;
|
|
82
|
+
if (menu.isOpen) {
|
|
83
|
+
menu.hide();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
menu.show(trigger);
|
|
87
|
+
this.menuOpen.set(true);
|
|
88
|
+
}
|
|
89
|
+
openFromKeyboard(event) {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
if (!this.menu()?.isOpen)
|
|
92
|
+
this.toggleMenu();
|
|
93
|
+
}
|
|
42
94
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbFileCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbFileCard, isStandalone: true, selector: "cb-file-card", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueSub: { classPropertyName: "valueSub", publicName: "valueSub", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cb-file-card" }, ngImport: i0, template: `
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: CbFileCard, isStandalone: true, selector: "cb-file-card", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueSub: { classPropertyName: "valueSub", publicName: "valueSub", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsAriaLabel: { classPropertyName: "actionsAriaLabel", publicName: "actionsAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionSelect: "actionSelect", open: "open" }, host: { properties: { "class.cb-file-card--clickable": "clickable()" }, classAttribute: "cb-file-card" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
44
96
|
<div class="cb-file-card__left">
|
|
45
97
|
<span class="cb-file-card__icon" [style.background]="tintBg()" [style.color]="color() || null">
|
|
46
98
|
<cb-icon [name]="icon()" [size]="20" aria-hidden="true" />
|
|
47
99
|
</span>
|
|
48
100
|
<div class="cb-file-card__text">
|
|
49
|
-
|
|
101
|
+
@if (clickable()) {
|
|
102
|
+
<button type="button" class="cb-file-card__title cb-file-card__open" (click)="open.emit($event)">{{ title() }}</button>
|
|
103
|
+
} @else {
|
|
104
|
+
<span class="cb-file-card__title">{{ title() }}</span>
|
|
105
|
+
}
|
|
50
106
|
@if (subtitle()) {
|
|
51
107
|
<span class="cb-file-card__subtitle">{{ subtitle() }}</span>
|
|
52
108
|
}
|
|
53
109
|
</div>
|
|
54
110
|
</div>
|
|
55
|
-
<div class="cb-file-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
111
|
+
<div class="cb-file-card__end">
|
|
112
|
+
<div class="cb-file-card__values">
|
|
113
|
+
<span class="cb-file-card__value">{{ value() }}</span>
|
|
114
|
+
@if (valueSub()) {
|
|
115
|
+
<span class="cb-file-card__value-sub">{{ valueSub() }}</span>
|
|
116
|
+
}
|
|
117
|
+
</div>
|
|
118
|
+
@if (actions().length) {
|
|
119
|
+
<button
|
|
120
|
+
#trigger
|
|
121
|
+
type="button"
|
|
122
|
+
class="cb-file-card__menu-button"
|
|
123
|
+
[attr.aria-label]="menuLabel()"
|
|
124
|
+
aria-haspopup="menu"
|
|
125
|
+
[attr.aria-expanded]="menuOpen()"
|
|
126
|
+
(click)="toggleMenu()"
|
|
127
|
+
(keydown.arrowdown)="openFromKeyboard($event)"
|
|
128
|
+
>
|
|
129
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true">
|
|
130
|
+
<circle cx="12" cy="5" r="2" />
|
|
131
|
+
<circle cx="12" cy="12" r="2" />
|
|
132
|
+
<circle cx="12" cy="19" r="2" />
|
|
133
|
+
</svg>
|
|
134
|
+
</button>
|
|
135
|
+
<cb-menu
|
|
136
|
+
#menu
|
|
137
|
+
[items]="actions()"
|
|
138
|
+
[ariaLabel]="menuLabel()"
|
|
139
|
+
(itemSelect)="actionSelect.emit($event)"
|
|
140
|
+
(hidden)="menuOpen.set(false)"
|
|
141
|
+
/>
|
|
59
142
|
}
|
|
60
143
|
</div>
|
|
61
|
-
`, isInline: true, styles: [":host{display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);padding:.9rem 1rem;border:1px solid var(--cb-color-border);border-radius:var(--cb-radius-lg, 14px);background:var(--cb-color-surface);font-family:var(--cb-font-sans);color:var(--cb-color-text)}.cb-file-card__left{display:flex;align-items:center;gap:.75rem;min-width:0}.cb-file-card__icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:var(--cb-radius-md, 10px);flex:none;color:var(--cb-color-primary-
|
|
144
|
+
`, isInline: true, styles: [":host{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);padding:.9rem 1rem;border:1px solid var(--cb-color-border);border-radius:var(--cb-radius-lg, 14px);background:var(--cb-color-surface);font-family:var(--cb-font-sans);color:var(--cb-color-text)}:host(.cb-file-card--clickable){cursor:pointer;transition:background-color .15s ease}:host(.cb-file-card--clickable:hover){background:var(--cb-color-surface-hover)}:host(.cb-file-card--clickable:has(.cb-file-card__open:focus-visible)){outline:2px solid var(--cb-color-focus-ring);outline-offset:2px}.cb-file-card__left{display:flex;align-items:center;gap:.75rem;min-width:0}.cb-file-card__icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:var(--cb-radius-md, 10px);flex:none;color:var(--cb-color-primary-text)}.cb-file-card__text{display:flex;flex-direction:column;min-width:0}.cb-file-card__title{max-width:100%;overflow:hidden;font-weight:600;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}.cb-file-card__open{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;font-size:.9rem;text-align:start;cursor:pointer}.cb-file-card__open:focus-visible{outline:none}.cb-file-card__open:after{content:\"\";position:absolute;inset:0;border-radius:inherit}.cb-file-card__subtitle{font-size:.8rem;color:var(--cb-color-text-muted)}.cb-file-card__end{display:flex;align-items:center;gap:.25rem;flex:none}.cb-file-card__menu-button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:-.5rem;padding:0;border:0;border-radius:var(--cb-radius-md, 8px);background:transparent;color:var(--cb-color-text-muted);cursor:pointer}.cb-file-card__menu-button:hover,.cb-file-card__menu-button[aria-expanded=true]{background:var(--cb-color-surface-hover);color:var(--cb-color-text)}.cb-file-card__menu-button:focus-visible{outline:2px solid var(--cb-color-focus-ring);outline-offset:2px}.cb-file-card__values{display:flex;flex-direction:column;align-items:flex-end;text-align:right;flex:none}.cb-file-card__value,.cb-file-card__value-sub{font-size:.85rem;color:var(--cb-color-text-muted)}\n"], dependencies: [{ kind: "component", type: CbIcon, selector: "cb-icon", inputs: ["name", "size", "spin", "ariaLabel"] }, { kind: "component", type: CbMenu, selector: "cb-menu", inputs: ["items", "ariaLabel"], outputs: ["itemSelect", "hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
145
|
}
|
|
63
146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: CbFileCard, decorators: [{
|
|
64
147
|
type: Component,
|
|
65
|
-
args: [{ selector: 'cb-file-card', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [CbIcon], host: {
|
|
148
|
+
args: [{ selector: 'cb-file-card', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [CbIcon, CbMenu], host: {
|
|
149
|
+
class: 'cb-file-card',
|
|
150
|
+
'[class.cb-file-card--clickable]': 'clickable()',
|
|
151
|
+
}, template: `
|
|
66
152
|
<div class="cb-file-card__left">
|
|
67
153
|
<span class="cb-file-card__icon" [style.background]="tintBg()" [style.color]="color() || null">
|
|
68
154
|
<cb-icon [name]="icon()" [size]="20" aria-hidden="true" />
|
|
69
155
|
</span>
|
|
70
156
|
<div class="cb-file-card__text">
|
|
71
|
-
|
|
157
|
+
@if (clickable()) {
|
|
158
|
+
<button type="button" class="cb-file-card__title cb-file-card__open" (click)="open.emit($event)">{{ title() }}</button>
|
|
159
|
+
} @else {
|
|
160
|
+
<span class="cb-file-card__title">{{ title() }}</span>
|
|
161
|
+
}
|
|
72
162
|
@if (subtitle()) {
|
|
73
163
|
<span class="cb-file-card__subtitle">{{ subtitle() }}</span>
|
|
74
164
|
}
|
|
75
165
|
</div>
|
|
76
166
|
</div>
|
|
77
|
-
<div class="cb-file-
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
167
|
+
<div class="cb-file-card__end">
|
|
168
|
+
<div class="cb-file-card__values">
|
|
169
|
+
<span class="cb-file-card__value">{{ value() }}</span>
|
|
170
|
+
@if (valueSub()) {
|
|
171
|
+
<span class="cb-file-card__value-sub">{{ valueSub() }}</span>
|
|
172
|
+
}
|
|
173
|
+
</div>
|
|
174
|
+
@if (actions().length) {
|
|
175
|
+
<button
|
|
176
|
+
#trigger
|
|
177
|
+
type="button"
|
|
178
|
+
class="cb-file-card__menu-button"
|
|
179
|
+
[attr.aria-label]="menuLabel()"
|
|
180
|
+
aria-haspopup="menu"
|
|
181
|
+
[attr.aria-expanded]="menuOpen()"
|
|
182
|
+
(click)="toggleMenu()"
|
|
183
|
+
(keydown.arrowdown)="openFromKeyboard($event)"
|
|
184
|
+
>
|
|
185
|
+
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true">
|
|
186
|
+
<circle cx="12" cy="5" r="2" />
|
|
187
|
+
<circle cx="12" cy="12" r="2" />
|
|
188
|
+
<circle cx="12" cy="19" r="2" />
|
|
189
|
+
</svg>
|
|
190
|
+
</button>
|
|
191
|
+
<cb-menu
|
|
192
|
+
#menu
|
|
193
|
+
[items]="actions()"
|
|
194
|
+
[ariaLabel]="menuLabel()"
|
|
195
|
+
(itemSelect)="actionSelect.emit($event)"
|
|
196
|
+
(hidden)="menuOpen.set(false)"
|
|
197
|
+
/>
|
|
81
198
|
}
|
|
82
199
|
</div>
|
|
83
|
-
`, styles: [":host{display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);padding:.9rem 1rem;border:1px solid var(--cb-color-border);border-radius:var(--cb-radius-lg, 14px);background:var(--cb-color-surface);font-family:var(--cb-font-sans);color:var(--cb-color-text)}.cb-file-card__left{display:flex;align-items:center;gap:.75rem;min-width:0}.cb-file-card__icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:var(--cb-radius-md, 10px);flex:none;color:var(--cb-color-primary-
|
|
84
|
-
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueSub: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSub", required: false }] }] } });
|
|
200
|
+
`, styles: [":host{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--cb-space-3, .75rem);padding:.9rem 1rem;border:1px solid var(--cb-color-border);border-radius:var(--cb-radius-lg, 14px);background:var(--cb-color-surface);font-family:var(--cb-font-sans);color:var(--cb-color-text)}:host(.cb-file-card--clickable){cursor:pointer;transition:background-color .15s ease}:host(.cb-file-card--clickable:hover){background:var(--cb-color-surface-hover)}:host(.cb-file-card--clickable:has(.cb-file-card__open:focus-visible)){outline:2px solid var(--cb-color-focus-ring);outline-offset:2px}.cb-file-card__left{display:flex;align-items:center;gap:.75rem;min-width:0}.cb-file-card__icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:var(--cb-radius-md, 10px);flex:none;color:var(--cb-color-primary-text)}.cb-file-card__text{display:flex;flex-direction:column;min-width:0}.cb-file-card__title{max-width:100%;overflow:hidden;font-weight:600;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}.cb-file-card__open{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;font-size:.9rem;text-align:start;cursor:pointer}.cb-file-card__open:focus-visible{outline:none}.cb-file-card__open:after{content:\"\";position:absolute;inset:0;border-radius:inherit}.cb-file-card__subtitle{font-size:.8rem;color:var(--cb-color-text-muted)}.cb-file-card__end{display:flex;align-items:center;gap:.25rem;flex:none}.cb-file-card__menu-button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:-.5rem;padding:0;border:0;border-radius:var(--cb-radius-md, 8px);background:transparent;color:var(--cb-color-text-muted);cursor:pointer}.cb-file-card__menu-button:hover,.cb-file-card__menu-button[aria-expanded=true]{background:var(--cb-color-surface-hover);color:var(--cb-color-text)}.cb-file-card__menu-button:focus-visible{outline:2px solid var(--cb-color-focus-ring);outline-offset:2px}.cb-file-card__values{display:flex;flex-direction:column;align-items:flex-end;text-align:right;flex:none}.cb-file-card__value,.cb-file-card__value-sub{font-size:.85rem;color:var(--cb-color-text-muted)}\n"] }]
|
|
201
|
+
}], propDecorators: { menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueSub: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSub", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], actionsAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsAriaLabel", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], actionSelect: [{ type: i0.Output, args: ["actionSelect"] }], open: [{ type: i0.Output, args: ["open"] }] } });
|
|
85
202
|
|
|
86
203
|
/*
|
|
87
204
|
* Public API Surface de @caribeng/ui/file-card
|