@masmarino/gabarit 2.0.0 → 2.1.1
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 +131 -85
- package/accordion/README.md +56 -0
- package/alert/README.md +87 -0
- package/app-shell/README.md +133 -0
- package/auth/README.md +155 -0
- package/auth-activate/README.md +119 -0
- package/auth-login/README.md +113 -0
- package/auth-register/README.md +104 -0
- package/auth-reset-password/README.md +120 -0
- package/autocomplete/README.md +77 -0
- package/avatar/README.md +34 -0
- package/avatar-group/README.md +47 -0
- package/badge/README.md +177 -0
- package/bar-chart/README.md +44 -0
- package/breadcrumb/README.md +38 -0
- package/button/README.md +175 -0
- package/card/README.md +179 -0
- package/checkbox/README.md +50 -0
- package/checkbox-group/README.md +78 -0
- package/confirm-danger-modal/README.md +77 -0
- package/copy-button/README.md +90 -0
- package/copy-field/README.md +54 -0
- package/date-picker/README.md +84 -0
- package/description-list/README.md +63 -0
- package/dimension-card/README.md +39 -0
- package/disclosure/README.md +48 -0
- package/divider/README.md +31 -0
- package/drawer/README.md +49 -0
- package/empty-state/README.md +84 -0
- package/fesm2022/masmarino-gabarit-accordion.mjs +243 -0
- package/fesm2022/masmarino-gabarit-accordion.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-alert.mjs +208 -0
- package/fesm2022/masmarino-gabarit-alert.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-app-shell.mjs +378 -0
- package/fesm2022/masmarino-gabarit-app-shell.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-auth-activate.mjs +415 -0
- package/fesm2022/masmarino-gabarit-auth-activate.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-auth-login.mjs +467 -0
- package/fesm2022/masmarino-gabarit-auth-login.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-auth-register.mjs +457 -0
- package/fesm2022/masmarino-gabarit-auth-register.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-auth-reset-password.mjs +364 -0
- package/fesm2022/masmarino-gabarit-auth-reset-password.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-auth.mjs +844 -0
- package/fesm2022/masmarino-gabarit-auth.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-autocomplete.mjs +475 -0
- package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-avatar-group.mjs +202 -0
- package/fesm2022/masmarino-gabarit-avatar-group.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-avatar.mjs +107 -0
- package/fesm2022/masmarino-gabarit-avatar.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-badge.mjs +449 -0
- package/fesm2022/masmarino-gabarit-badge.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-bar-chart.mjs +408 -0
- package/fesm2022/masmarino-gabarit-bar-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-breadcrumb.mjs +59 -0
- package/fesm2022/masmarino-gabarit-breadcrumb.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-button.mjs +374 -0
- package/fesm2022/masmarino-gabarit-button.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-card.mjs +400 -0
- package/fesm2022/masmarino-gabarit-card.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-chart.mjs +1289 -0
- package/fesm2022/masmarino-gabarit-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-checkbox-group.mjs +335 -0
- package/fesm2022/masmarino-gabarit-checkbox-group.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-checkbox.mjs +170 -0
- package/fesm2022/masmarino-gabarit-checkbox.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-confirm-danger-modal.mjs +387 -0
- package/fesm2022/masmarino-gabarit-confirm-danger-modal.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-copy-button.mjs +407 -0
- package/fesm2022/masmarino-gabarit-copy-button.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-copy-field.mjs +229 -0
- package/fesm2022/masmarino-gabarit-copy-field.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-date-picker.mjs +1242 -0
- package/fesm2022/masmarino-gabarit-date-picker.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-description-list.mjs +127 -0
- package/fesm2022/masmarino-gabarit-description-list.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-dimension-card.mjs +162 -0
- package/fesm2022/masmarino-gabarit-dimension-card.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-disclosure.mjs +154 -0
- package/fesm2022/masmarino-gabarit-disclosure.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-divider.mjs +90 -0
- package/fesm2022/masmarino-gabarit-divider.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-docs.mjs +16 -2
- package/fesm2022/masmarino-gabarit-docs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-drawer.mjs +209 -0
- package/fesm2022/masmarino-gabarit-drawer.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-empty-state.mjs +226 -0
- package/fesm2022/masmarino-gabarit-empty-state.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-file-upload.mjs +335 -0
- package/fesm2022/masmarino-gabarit-file-upload.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-floating-panel.mjs +24 -0
- package/fesm2022/masmarino-gabarit-floating-panel.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-format.mjs +345 -0
- package/fesm2022/masmarino-gabarit-format.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-funnel-chart.mjs +247 -0
- package/fesm2022/masmarino-gabarit-funnel-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-gauge-bar.mjs +180 -0
- package/fesm2022/masmarino-gabarit-gauge-bar.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-git-field.mjs +127 -0
- package/fesm2022/masmarino-gabarit-git-field.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-icon-marker.mjs +150 -0
- package/fesm2022/masmarino-gabarit-icon-marker.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-icon.mjs +308 -0
- package/fesm2022/masmarino-gabarit-icon.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-input.mjs +493 -0
- package/fesm2022/masmarino-gabarit-input.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-job-graph.mjs +216 -0
- package/fesm2022/masmarino-gabarit-job-graph.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-job-status.mjs +104 -0
- package/fesm2022/masmarino-gabarit-job-status.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-line-chart.mjs +574 -0
- package/fesm2022/masmarino-gabarit-line-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-list-card.mjs +320 -0
- package/fesm2022/masmarino-gabarit-list-card.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-list-row.mjs +58 -0
- package/fesm2022/masmarino-gabarit-list-row.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-list-toolbar.mjs +369 -0
- package/fesm2022/masmarino-gabarit-list-toolbar.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-menu.mjs +464 -0
- package/fesm2022/masmarino-gabarit-menu.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs +897 -0
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs +629 -0
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-modal.mjs +260 -0
- package/fesm2022/masmarino-gabarit-modal.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs +332 -0
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-notification-dot.mjs +119 -0
- package/fesm2022/masmarino-gabarit-notification-dot.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-page-header.mjs +78 -0
- package/fesm2022/masmarino-gabarit-page-header.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-page-layout.mjs +157 -0
- package/fesm2022/masmarino-gabarit-page-layout.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-pagination.mjs +415 -0
- package/fesm2022/masmarino-gabarit-pagination.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-panel.mjs +80 -0
- package/fesm2022/masmarino-gabarit-panel.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs +606 -0
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-pie-chart.mjs +317 -0
- package/fesm2022/masmarino-gabarit-pie-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-popover.mjs +142 -0
- package/fesm2022/masmarino-gabarit-popover.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-radio-group.mjs +202 -0
- package/fesm2022/masmarino-gabarit-radio-group.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-save-status.mjs +142 -0
- package/fesm2022/masmarino-gabarit-save-status.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-search-bar.mjs +576 -0
- package/fesm2022/masmarino-gabarit-search-bar.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-secret-reveal.mjs +348 -0
- package/fesm2022/masmarino-gabarit-secret-reveal.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-segmented-control.mjs +272 -0
- package/fesm2022/masmarino-gabarit-segmented-control.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-select.mjs +512 -0
- package/fesm2022/masmarino-gabarit-select.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs +189 -0
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-skeleton.mjs +109 -0
- package/fesm2022/masmarino-gabarit-skeleton.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-slider.mjs +239 -0
- package/fesm2022/masmarino-gabarit-slider.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-sparkline.mjs +276 -0
- package/fesm2022/masmarino-gabarit-sparkline.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-spinner.mjs +86 -0
- package/fesm2022/masmarino-gabarit-spinner.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-stat-grid.mjs +139 -0
- package/fesm2022/masmarino-gabarit-stat-grid.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-stat-tile.mjs +312 -0
- package/fesm2022/masmarino-gabarit-stat-tile.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-stepper.mjs +219 -0
- package/fesm2022/masmarino-gabarit-stepper.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-switch.mjs +151 -0
- package/fesm2022/masmarino-gabarit-switch.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-table.mjs +206 -0
- package/fesm2022/masmarino-gabarit-table.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-tabs.mjs +210 -0
- package/fesm2022/masmarino-gabarit-tabs.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-tag-input.mjs +288 -0
- package/fesm2022/masmarino-gabarit-tag-input.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-tag.mjs +155 -0
- package/fesm2022/masmarino-gabarit-tag.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-textarea.mjs +369 -0
- package/fesm2022/masmarino-gabarit-textarea.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-timeline-chart.mjs +521 -0
- package/fesm2022/masmarino-gabarit-timeline-chart.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-toaster.mjs +220 -0
- package/fesm2022/masmarino-gabarit-toaster.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-tooltip.mjs +185 -0
- package/fesm2022/masmarino-gabarit-tooltip.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-tree.mjs +258 -0
- package/fesm2022/masmarino-gabarit-tree.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-user-chip.mjs +106 -0
- package/fesm2022/masmarino-gabarit-user-chip.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit.mjs +83 -24785
- package/fesm2022/masmarino-gabarit.mjs.map +1 -1
- package/file-upload/README.md +47 -0
- package/funnel-chart/README.md +39 -0
- package/gauge-bar/README.md +35 -0
- package/git-field/README.md +34 -0
- package/icon/README.md +52 -0
- package/icon-marker/README.md +37 -0
- package/input/README.md +120 -0
- package/job-graph/README.md +76 -0
- package/job-status/README.md +34 -0
- package/line-chart/README.md +52 -0
- package/list-card/README.md +144 -0
- package/list-row/README.md +72 -0
- package/list-toolbar/README.md +52 -0
- package/menu/README.md +90 -0
- package/mfa-enrollment/README.md +189 -0
- package/mfa-settings/README.md +154 -0
- package/modal/README.md +72 -0
- package/nav-tabs/README.md +106 -0
- package/notification-dot/README.md +43 -0
- package/package.json +329 -1
- package/page-header/README.md +56 -0
- package/page-layout/README.md +76 -0
- package/pagination/README.md +73 -0
- package/panel/README.md +56 -0
- package/passkey-settings/README.md +120 -0
- package/pie-chart/README.md +85 -0
- package/popover/README.md +62 -0
- package/radio-group/README.md +47 -0
- package/save-status/README.md +44 -0
- package/search-bar/README.md +84 -0
- package/secret-reveal/README.md +60 -0
- package/segmented-control/README.md +79 -0
- package/select/README.md +61 -0
- package/skeleton/README.md +49 -0
- package/skeleton-list/README.md +40 -0
- package/slider/README.md +44 -0
- package/sparkline/README.md +37 -0
- package/spinner/README.md +41 -0
- package/stat-grid/README.md +47 -0
- package/stat-tile/README.md +75 -0
- package/stepper/README.md +67 -0
- package/switch/README.md +51 -0
- package/table/README.md +75 -0
- package/tabs/README.md +34 -0
- package/tag/README.md +34 -0
- package/tag-input/README.md +45 -0
- package/textarea/README.md +76 -0
- package/timeline-chart/README.md +49 -0
- package/toaster/README.md +92 -0
- package/tooltip/README.md +50 -0
- package/tree/README.md +79 -0
- package/types/masmarino-gabarit-accordion.d.ts +54 -0
- package/types/masmarino-gabarit-alert.d.ts +65 -0
- package/types/masmarino-gabarit-app-shell.d.ts +102 -0
- package/types/masmarino-gabarit-auth-activate.d.ts +70 -0
- package/types/masmarino-gabarit-auth-login.d.ts +63 -0
- package/types/masmarino-gabarit-auth-register.d.ts +66 -0
- package/types/masmarino-gabarit-auth-reset-password.d.ts +53 -0
- package/types/masmarino-gabarit-auth.d.ts +543 -0
- package/types/masmarino-gabarit-autocomplete.d.ts +140 -0
- package/types/masmarino-gabarit-avatar-group.d.ts +60 -0
- package/types/masmarino-gabarit-avatar.d.ts +31 -0
- package/types/masmarino-gabarit-badge.d.ts +139 -0
- package/types/masmarino-gabarit-bar-chart.d.ts +111 -0
- package/types/masmarino-gabarit-breadcrumb.d.ts +12 -0
- package/types/masmarino-gabarit-button.d.ts +108 -0
- package/types/masmarino-gabarit-card.d.ts +102 -0
- package/types/masmarino-gabarit-chart.d.ts +361 -0
- package/types/masmarino-gabarit-checkbox-group.d.ts +113 -0
- package/types/masmarino-gabarit-checkbox.d.ts +49 -0
- package/types/masmarino-gabarit-confirm-danger-modal.d.ts +94 -0
- package/types/masmarino-gabarit-copy-button.d.ts +111 -0
- package/types/masmarino-gabarit-copy-field.d.ts +64 -0
- package/types/masmarino-gabarit-date-picker.d.ts +399 -0
- package/types/masmarino-gabarit-description-list.d.ts +40 -0
- package/types/masmarino-gabarit-dimension-card.d.ts +55 -0
- package/types/masmarino-gabarit-disclosure.d.ts +44 -0
- package/types/masmarino-gabarit-divider.d.ts +20 -0
- package/types/masmarino-gabarit-docs.d.ts +2 -1
- package/types/masmarino-gabarit-drawer.d.ts +51 -0
- package/types/masmarino-gabarit-empty-state.d.ts +67 -0
- package/types/masmarino-gabarit-file-upload.d.ts +95 -0
- package/types/masmarino-gabarit-floating-panel.d.ts +14 -0
- package/types/masmarino-gabarit-format.d.ts +54 -0
- package/types/masmarino-gabarit-funnel-chart.d.ts +78 -0
- package/types/masmarino-gabarit-gauge-bar.d.ts +54 -0
- package/types/masmarino-gabarit-git-field.d.ts +39 -0
- package/types/masmarino-gabarit-icon-marker.d.ts +47 -0
- package/types/masmarino-gabarit-icon.d.ts +23 -0
- package/types/masmarino-gabarit-input.d.ts +181 -0
- package/types/masmarino-gabarit-job-graph.d.ts +63 -0
- package/types/masmarino-gabarit-job-status.d.ts +20 -0
- package/types/masmarino-gabarit-line-chart.d.ts +153 -0
- package/types/masmarino-gabarit-list-card.d.ts +87 -0
- package/types/masmarino-gabarit-list-row.d.ts +14 -0
- package/types/masmarino-gabarit-list-toolbar.d.ts +100 -0
- package/types/masmarino-gabarit-menu.d.ts +93 -0
- package/types/masmarino-gabarit-mfa-enrollment.d.ts +142 -0
- package/types/masmarino-gabarit-mfa-settings.d.ts +89 -0
- package/types/masmarino-gabarit-modal.d.ts +60 -0
- package/types/masmarino-gabarit-nav-tabs.d.ts +65 -0
- package/types/masmarino-gabarit-notification-dot.d.ts +34 -0
- package/types/masmarino-gabarit-page-header.d.ts +20 -0
- package/types/masmarino-gabarit-page-layout.d.ts +46 -0
- package/types/masmarino-gabarit-pagination.d.ts +109 -0
- package/types/masmarino-gabarit-panel.d.ts +21 -0
- package/types/masmarino-gabarit-passkey-settings.d.ts +94 -0
- package/types/masmarino-gabarit-pie-chart.d.ts +94 -0
- package/types/masmarino-gabarit-popover.d.ts +33 -0
- package/types/masmarino-gabarit-radio-group.d.ts +66 -0
- package/types/masmarino-gabarit-save-status.d.ts +39 -0
- package/types/masmarino-gabarit-search-bar.d.ts +183 -0
- package/types/masmarino-gabarit-secret-reveal.d.ts +95 -0
- package/types/masmarino-gabarit-segmented-control.d.ts +76 -0
- package/types/masmarino-gabarit-select.d.ts +146 -0
- package/types/masmarino-gabarit-skeleton-list.d.ts +54 -0
- package/types/masmarino-gabarit-skeleton.d.ts +26 -0
- package/types/masmarino-gabarit-slider.d.ts +73 -0
- package/types/masmarino-gabarit-sparkline.d.ts +70 -0
- package/types/masmarino-gabarit-spinner.d.ts +20 -0
- package/types/masmarino-gabarit-stat-grid.d.ts +39 -0
- package/types/masmarino-gabarit-stat-tile.d.ts +79 -0
- package/types/masmarino-gabarit-stepper.d.ts +67 -0
- package/types/masmarino-gabarit-switch.d.ts +42 -0
- package/types/masmarino-gabarit-table.d.ts +60 -0
- package/types/masmarino-gabarit-tabs.d.ts +40 -0
- package/types/masmarino-gabarit-tag-input.d.ts +78 -0
- package/types/masmarino-gabarit-tag.d.ts +35 -0
- package/types/masmarino-gabarit-textarea.d.ts +109 -0
- package/types/masmarino-gabarit-timeline-chart.d.ts +145 -0
- package/types/masmarino-gabarit-toaster.d.ts +62 -0
- package/types/masmarino-gabarit-tooltip.d.ts +39 -0
- package/types/masmarino-gabarit-tree.d.ts +71 -0
- package/types/masmarino-gabarit-user-chip.d.ts +26 -0
- package/types/masmarino-gabarit.d.ts +83 -6599
- package/user-chip/README.md +42 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type InputType = 'text' | 'password' | 'email' | 'number' | 'search' | 'url';
|
|
4
|
+
type InputSize = 'md' | 'sm';
|
|
5
|
+
type InputInputmode = 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
6
|
+
type InputAutocapitalize = 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
7
|
+
type InputEnterkeyhint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
8
|
+
/** Makes the field the combobox of a suggestion list the caller renders, with its keys and active option. */
|
|
9
|
+
interface InputCombobox {
|
|
10
|
+
/** Whether the listbox is shown. */
|
|
11
|
+
expanded: boolean;
|
|
12
|
+
/** The id of the listbox. */
|
|
13
|
+
controls: string;
|
|
14
|
+
/** The id of the highlighted option, `null` when none is. */
|
|
15
|
+
activeDescendant: string | null;
|
|
16
|
+
}
|
|
17
|
+
export declare class GbtInput implements ControlValueAccessor {
|
|
18
|
+
id: import("@angular/core").InputSignal<string>;
|
|
19
|
+
label: import("@angular/core").InputSignal<string>;
|
|
20
|
+
type: import("@angular/core").InputSignal<InputType>;
|
|
21
|
+
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
24
|
+
errorMessage: import("@angular/core").InputSignal<string | null>;
|
|
25
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
26
|
+
hint: import("@angular/core").InputSignal<string>;
|
|
27
|
+
hideLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
size: import("@angular/core").InputSignal<InputSize>;
|
|
29
|
+
mono: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
leadingIcon: import("@angular/core").InputSignal<string | null>;
|
|
31
|
+
inputmode: import("@angular/core").InputSignal<InputInputmode | null>;
|
|
32
|
+
spellcheck: import("@angular/core").InputSignal<boolean | null>;
|
|
33
|
+
autocapitalize: import("@angular/core").InputSignal<InputAutocapitalize | null>;
|
|
34
|
+
enterkeyhint: import("@angular/core").InputSignal<InputEnterkeyhint | null>;
|
|
35
|
+
maxlength: import("@angular/core").InputSignal<number | null>;
|
|
36
|
+
min: import("@angular/core").InputSignal<string | number | null>;
|
|
37
|
+
max: import("@angular/core").InputSignal<string | number | null>;
|
|
38
|
+
combobox: import("@angular/core").InputSignal<InputCombobox | null>;
|
|
39
|
+
showPasswordLabel: import("@angular/core").InputSignal<string>;
|
|
40
|
+
hidePasswordLabel: import("@angular/core").InputSignal<string>;
|
|
41
|
+
committed: import("@angular/core").OutputEmitterRef<string>;
|
|
42
|
+
protected readonly value: import("@angular/core").WritableSignal<string>;
|
|
43
|
+
protected readonly passwordVisible: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
+
protected readonly effectiveType: import("@angular/core").Signal<InputType>;
|
|
45
|
+
protected readonly hintId: import("@angular/core").Signal<string>;
|
|
46
|
+
protected readonly errorId: import("@angular/core").Signal<string>;
|
|
47
|
+
protected readonly showHint: import("@angular/core").Signal<boolean>;
|
|
48
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
49
|
+
private readonly formDisabled;
|
|
50
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
51
|
+
private onChange;
|
|
52
|
+
private onTouched;
|
|
53
|
+
writeValue(value: string): void;
|
|
54
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
55
|
+
registerOnTouched(fn: () => void): void;
|
|
56
|
+
setDisabledState(isDisabled: boolean): void;
|
|
57
|
+
protected onInput(event: Event): void;
|
|
58
|
+
protected onBlur(): void;
|
|
59
|
+
protected togglePasswordVisibility(): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GbtInput, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GbtInput, "gbt-input", never, {
|
|
62
|
+
"id": {
|
|
63
|
+
"alias": "id";
|
|
64
|
+
"required": false;
|
|
65
|
+
"isSignal": true;
|
|
66
|
+
};
|
|
67
|
+
"label": {
|
|
68
|
+
"alias": "label";
|
|
69
|
+
"required": false;
|
|
70
|
+
"isSignal": true;
|
|
71
|
+
};
|
|
72
|
+
"type": {
|
|
73
|
+
"alias": "type";
|
|
74
|
+
"required": false;
|
|
75
|
+
"isSignal": true;
|
|
76
|
+
};
|
|
77
|
+
"required": {
|
|
78
|
+
"alias": "required";
|
|
79
|
+
"required": false;
|
|
80
|
+
"isSignal": true;
|
|
81
|
+
};
|
|
82
|
+
"disabled": {
|
|
83
|
+
"alias": "disabled";
|
|
84
|
+
"required": false;
|
|
85
|
+
"isSignal": true;
|
|
86
|
+
};
|
|
87
|
+
"placeholder": {
|
|
88
|
+
"alias": "placeholder";
|
|
89
|
+
"required": false;
|
|
90
|
+
"isSignal": true;
|
|
91
|
+
};
|
|
92
|
+
"errorMessage": {
|
|
93
|
+
"alias": "errorMessage";
|
|
94
|
+
"required": false;
|
|
95
|
+
"isSignal": true;
|
|
96
|
+
};
|
|
97
|
+
"autocomplete": {
|
|
98
|
+
"alias": "autocomplete";
|
|
99
|
+
"required": false;
|
|
100
|
+
"isSignal": true;
|
|
101
|
+
};
|
|
102
|
+
"hint": {
|
|
103
|
+
"alias": "hint";
|
|
104
|
+
"required": false;
|
|
105
|
+
"isSignal": true;
|
|
106
|
+
};
|
|
107
|
+
"hideLabel": {
|
|
108
|
+
"alias": "hideLabel";
|
|
109
|
+
"required": false;
|
|
110
|
+
"isSignal": true;
|
|
111
|
+
};
|
|
112
|
+
"size": {
|
|
113
|
+
"alias": "size";
|
|
114
|
+
"required": false;
|
|
115
|
+
"isSignal": true;
|
|
116
|
+
};
|
|
117
|
+
"mono": {
|
|
118
|
+
"alias": "mono";
|
|
119
|
+
"required": false;
|
|
120
|
+
"isSignal": true;
|
|
121
|
+
};
|
|
122
|
+
"leadingIcon": {
|
|
123
|
+
"alias": "leadingIcon";
|
|
124
|
+
"required": false;
|
|
125
|
+
"isSignal": true;
|
|
126
|
+
};
|
|
127
|
+
"inputmode": {
|
|
128
|
+
"alias": "inputmode";
|
|
129
|
+
"required": false;
|
|
130
|
+
"isSignal": true;
|
|
131
|
+
};
|
|
132
|
+
"spellcheck": {
|
|
133
|
+
"alias": "spellcheck";
|
|
134
|
+
"required": false;
|
|
135
|
+
"isSignal": true;
|
|
136
|
+
};
|
|
137
|
+
"autocapitalize": {
|
|
138
|
+
"alias": "autocapitalize";
|
|
139
|
+
"required": false;
|
|
140
|
+
"isSignal": true;
|
|
141
|
+
};
|
|
142
|
+
"enterkeyhint": {
|
|
143
|
+
"alias": "enterkeyhint";
|
|
144
|
+
"required": false;
|
|
145
|
+
"isSignal": true;
|
|
146
|
+
};
|
|
147
|
+
"maxlength": {
|
|
148
|
+
"alias": "maxlength";
|
|
149
|
+
"required": false;
|
|
150
|
+
"isSignal": true;
|
|
151
|
+
};
|
|
152
|
+
"min": {
|
|
153
|
+
"alias": "min";
|
|
154
|
+
"required": false;
|
|
155
|
+
"isSignal": true;
|
|
156
|
+
};
|
|
157
|
+
"max": {
|
|
158
|
+
"alias": "max";
|
|
159
|
+
"required": false;
|
|
160
|
+
"isSignal": true;
|
|
161
|
+
};
|
|
162
|
+
"combobox": {
|
|
163
|
+
"alias": "combobox";
|
|
164
|
+
"required": false;
|
|
165
|
+
"isSignal": true;
|
|
166
|
+
};
|
|
167
|
+
"showPasswordLabel": {
|
|
168
|
+
"alias": "showPasswordLabel";
|
|
169
|
+
"required": false;
|
|
170
|
+
"isSignal": true;
|
|
171
|
+
};
|
|
172
|
+
"hidePasswordLabel": {
|
|
173
|
+
"alias": "hidePasswordLabel";
|
|
174
|
+
"required": false;
|
|
175
|
+
"isSignal": true;
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
"committed": "committed";
|
|
179
|
+
}, never, never, true, never>;
|
|
180
|
+
}
|
|
181
|
+
export type { InputCombobox };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { JobStatusValue } from "@masmarino/gabarit/job-status";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type JobGraphStatus = JobStatusValue;
|
|
4
|
+
interface JobGraphJob {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
status: JobGraphStatus;
|
|
8
|
+
durationLabel?: string;
|
|
9
|
+
needs: string[];
|
|
10
|
+
}
|
|
11
|
+
interface JobGraphStage {
|
|
12
|
+
name: string;
|
|
13
|
+
jobs: JobGraphJob[];
|
|
14
|
+
}
|
|
15
|
+
interface GraphLink {
|
|
16
|
+
key: string;
|
|
17
|
+
d: string;
|
|
18
|
+
done: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class JobGraph {
|
|
21
|
+
stages: import("@angular/core").InputSignal<JobGraphStage[]>;
|
|
22
|
+
selectedJobId: import("@angular/core").InputSignal<string | null>;
|
|
23
|
+
statusLabels: import("@angular/core").InputSignal<Record<import("@masmarino/gabarit/job-status").JobStatusValue, string>>;
|
|
24
|
+
needsLabel: import("@angular/core").InputSignal<string>;
|
|
25
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
26
|
+
jobSelected: import("@angular/core").OutputEmitterRef<string>;
|
|
27
|
+
protected readonly links: import("@angular/core").WritableSignal<GraphLink[]>;
|
|
28
|
+
private readonly graph;
|
|
29
|
+
private readonly destroyRef;
|
|
30
|
+
constructor();
|
|
31
|
+
private measure;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobGraph, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobGraph, "gbt-job-graph", never, {
|
|
34
|
+
"stages": {
|
|
35
|
+
"alias": "stages";
|
|
36
|
+
"required": true;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
"selectedJobId": {
|
|
40
|
+
"alias": "selectedJobId";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"statusLabels": {
|
|
45
|
+
"alias": "statusLabels";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"needsLabel": {
|
|
50
|
+
"alias": "needsLabel";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
"ariaLabel": {
|
|
55
|
+
"alias": "ariaLabel";
|
|
56
|
+
"required": false;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
"jobSelected": "jobSelected";
|
|
61
|
+
}, never, never, true, never>;
|
|
62
|
+
}
|
|
63
|
+
export type { JobGraphJob, JobGraphStage, JobGraphStatus };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
type JobStatusValue = 'pending' | 'running' | 'success' | 'failed' | 'canceled';
|
|
3
|
+
export declare class JobStatus {
|
|
4
|
+
status: import("@angular/core").InputSignal<JobStatusValue>;
|
|
5
|
+
label: import("@angular/core").InputSignal<string | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobStatus, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobStatus, "gbt-job-status", never, {
|
|
8
|
+
"status": {
|
|
9
|
+
"alias": "status";
|
|
10
|
+
"required": true;
|
|
11
|
+
"isSignal": true;
|
|
12
|
+
};
|
|
13
|
+
"label": {
|
|
14
|
+
"alias": "label";
|
|
15
|
+
"required": false;
|
|
16
|
+
"isSignal": true;
|
|
17
|
+
};
|
|
18
|
+
}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
export type { JobStatusValue };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { AxisSpec, ChartSeries, LegendEntry, LinearAxisSpec, PointValue, TooltipPoint } from "@masmarino/gabarit/chart";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LineChart<X extends number | Date> {
|
|
4
|
+
series: import("@angular/core").InputSignal<ChartSeries<X>[]>;
|
|
5
|
+
xKind: import("@angular/core").InputSignal<"linear" | "time">;
|
|
6
|
+
locale: import("@angular/core").InputSignal<string>;
|
|
7
|
+
label: import("@angular/core").InputSignal<string>;
|
|
8
|
+
tableCaption: import("@angular/core").InputSignal<string>;
|
|
9
|
+
xColumn: import("@angular/core").InputSignal<string>;
|
|
10
|
+
emptyMessage: import("@angular/core").InputSignal<string>;
|
|
11
|
+
area: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
yZero: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
yTickCount: import("@angular/core").InputSignal<number>;
|
|
14
|
+
xTickCount: import("@angular/core").InputSignal<number>;
|
|
15
|
+
size: import("@angular/core").InputSignal<{
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
} | null>;
|
|
19
|
+
heading: import("@angular/core").InputSignal<string>;
|
|
20
|
+
headingLevel: import("@angular/core").InputSignal<3 | 1 | 2 | 4 | 5 | 6>;
|
|
21
|
+
headline: import("@angular/core").InputSignal<string>;
|
|
22
|
+
trend: import("@angular/core").InputSignal<string>;
|
|
23
|
+
protected readonly activeIndex: import("@angular/core").WritableSignal<number | null>;
|
|
24
|
+
protected readonly hasData: import("@angular/core").Signal<boolean>;
|
|
25
|
+
protected readonly xSpec: import("@angular/core").Signal<AxisSpec>;
|
|
26
|
+
protected readonly ySpec: import("@angular/core").Signal<LinearAxisSpec>;
|
|
27
|
+
protected readonly legendEntries: import("@angular/core").Signal<LegendEntry[]>;
|
|
28
|
+
protected readonly publicXValues: import("@angular/core").Signal<PointValue[]>;
|
|
29
|
+
protected readonly tooltipPoints: import("@angular/core").Signal<TooltipPoint<X>[]>;
|
|
30
|
+
protected readonly tableColumns: import("@angular/core").Signal<string[]>;
|
|
31
|
+
protected readonly tableRows: import("@angular/core").Signal<(string | number)[][]>;
|
|
32
|
+
private readonly formatX;
|
|
33
|
+
private readonly xValues;
|
|
34
|
+
private findPoint;
|
|
35
|
+
private displayValue;
|
|
36
|
+
constructor();
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineChart<any>, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineChart<any>, "gbt-line-chart", never, {
|
|
39
|
+
"series": {
|
|
40
|
+
"alias": "series";
|
|
41
|
+
"required": true;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"xKind": {
|
|
45
|
+
"alias": "xKind";
|
|
46
|
+
"required": true;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"locale": {
|
|
50
|
+
"alias": "locale";
|
|
51
|
+
"required": true;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
"label": {
|
|
55
|
+
"alias": "label";
|
|
56
|
+
"required": true;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
"tableCaption": {
|
|
60
|
+
"alias": "tableCaption";
|
|
61
|
+
"required": true;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"xColumn": {
|
|
65
|
+
"alias": "xColumn";
|
|
66
|
+
"required": true;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"emptyMessage": {
|
|
70
|
+
"alias": "emptyMessage";
|
|
71
|
+
"required": true;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"area": {
|
|
75
|
+
"alias": "area";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"yZero": {
|
|
80
|
+
"alias": "yZero";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
"yTickCount": {
|
|
85
|
+
"alias": "yTickCount";
|
|
86
|
+
"required": false;
|
|
87
|
+
"isSignal": true;
|
|
88
|
+
};
|
|
89
|
+
"xTickCount": {
|
|
90
|
+
"alias": "xTickCount";
|
|
91
|
+
"required": false;
|
|
92
|
+
"isSignal": true;
|
|
93
|
+
};
|
|
94
|
+
"size": {
|
|
95
|
+
"alias": "size";
|
|
96
|
+
"required": false;
|
|
97
|
+
"isSignal": true;
|
|
98
|
+
};
|
|
99
|
+
"heading": {
|
|
100
|
+
"alias": "heading";
|
|
101
|
+
"required": false;
|
|
102
|
+
"isSignal": true;
|
|
103
|
+
};
|
|
104
|
+
"headingLevel": {
|
|
105
|
+
"alias": "headingLevel";
|
|
106
|
+
"required": false;
|
|
107
|
+
"isSignal": true;
|
|
108
|
+
};
|
|
109
|
+
"headline": {
|
|
110
|
+
"alias": "headline";
|
|
111
|
+
"required": false;
|
|
112
|
+
"isSignal": true;
|
|
113
|
+
};
|
|
114
|
+
"trend": {
|
|
115
|
+
"alias": "trend";
|
|
116
|
+
"required": false;
|
|
117
|
+
"isSignal": true;
|
|
118
|
+
};
|
|
119
|
+
}, {}, never, never, true, never>;
|
|
120
|
+
}
|
|
121
|
+
interface RenderedSeries {
|
|
122
|
+
label: string;
|
|
123
|
+
strokePath: string;
|
|
124
|
+
fillPath: string;
|
|
125
|
+
colorIndex: number;
|
|
126
|
+
dashArray: string;
|
|
127
|
+
}
|
|
128
|
+
interface ActiveDot {
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
colorIndex: number;
|
|
132
|
+
}
|
|
133
|
+
declare const DEFAULT_PATTERNS: NonNullable<ChartSeries<unknown>['pattern']>[];
|
|
134
|
+
export declare class LineSeries<X> {
|
|
135
|
+
series: import("@angular/core").InputSignal<ChartSeries<X>[]>;
|
|
136
|
+
area: import("@angular/core").InputSignal<boolean>;
|
|
137
|
+
private readonly context;
|
|
138
|
+
protected readonly renderedLines: import("@angular/core").Signal<RenderedSeries[]>;
|
|
139
|
+
protected readonly activeDots: import("@angular/core").Signal<ActiveDot[]>;
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineSeries<any>, never>;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineSeries<any>, "g[gbtLineSeries]", never, {
|
|
142
|
+
"series": {
|
|
143
|
+
"alias": "series";
|
|
144
|
+
"required": true;
|
|
145
|
+
"isSignal": true;
|
|
146
|
+
};
|
|
147
|
+
"area": {
|
|
148
|
+
"alias": "area";
|
|
149
|
+
"required": false;
|
|
150
|
+
"isSignal": true;
|
|
151
|
+
};
|
|
152
|
+
}, {}, never, never, true, never>;
|
|
153
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { EmptyStateIllustration } from "@masmarino/gabarit/empty-state";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type ListCardState = 'loading' | 'failed' | 'empty' | 'ready';
|
|
4
|
+
export declare class ListCard {
|
|
5
|
+
state: import("@angular/core").InputSignal<ListCardState>;
|
|
6
|
+
ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
7
|
+
loadingLabel: import("@angular/core").InputSignal<string>;
|
|
8
|
+
skeletonRows: import("@angular/core").InputSignal<number>;
|
|
9
|
+
skeletonHeader: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
failedHeading: import("@angular/core").InputSignal<string>;
|
|
11
|
+
failedMessage: import("@angular/core").InputSignal<string>;
|
|
12
|
+
retryLabel: import("@angular/core").InputSignal<string | null>;
|
|
13
|
+
retry: import("@angular/core").OutputEmitterRef<void>;
|
|
14
|
+
emptyHeading: import("@angular/core").InputSignal<string>;
|
|
15
|
+
emptyMessage: import("@angular/core").InputSignal<string>;
|
|
16
|
+
emptyIllustration: import("@angular/core").InputSignal<EmptyStateIllustration | null>;
|
|
17
|
+
emptyIcon: import("@angular/core").InputSignal<string | null>;
|
|
18
|
+
/** The projected header when ready, its placeholder while loading (unless skeletonHeader is off), else nothing. */
|
|
19
|
+
protected readonly header: import("@angular/core").Signal<"slot" | "skeleton" | null>;
|
|
20
|
+
protected readonly placeholders: import("@angular/core").Signal<string[]>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListCard, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListCard, "gbt-list-card", never, {
|
|
23
|
+
"state": {
|
|
24
|
+
"alias": "state";
|
|
25
|
+
"required": false;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"ariaLabel": {
|
|
29
|
+
"alias": "ariaLabel";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"loadingLabel": {
|
|
34
|
+
"alias": "loadingLabel";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"skeletonRows": {
|
|
39
|
+
"alias": "skeletonRows";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"skeletonHeader": {
|
|
44
|
+
"alias": "skeletonHeader";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"failedHeading": {
|
|
49
|
+
"alias": "failedHeading";
|
|
50
|
+
"required": false;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
"failedMessage": {
|
|
54
|
+
"alias": "failedMessage";
|
|
55
|
+
"required": false;
|
|
56
|
+
"isSignal": true;
|
|
57
|
+
};
|
|
58
|
+
"retryLabel": {
|
|
59
|
+
"alias": "retryLabel";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
"emptyHeading": {
|
|
64
|
+
"alias": "emptyHeading";
|
|
65
|
+
"required": false;
|
|
66
|
+
"isSignal": true;
|
|
67
|
+
};
|
|
68
|
+
"emptyMessage": {
|
|
69
|
+
"alias": "emptyMessage";
|
|
70
|
+
"required": false;
|
|
71
|
+
"isSignal": true;
|
|
72
|
+
};
|
|
73
|
+
"emptyIllustration": {
|
|
74
|
+
"alias": "emptyIllustration";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
77
|
+
};
|
|
78
|
+
"emptyIcon": {
|
|
79
|
+
"alias": "emptyIcon";
|
|
80
|
+
"required": false;
|
|
81
|
+
"isSignal": true;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
"retry": "retry";
|
|
85
|
+
}, never, ["[list-card-header]", "[list-card-failed]", "[list-card-empty]", "*"], true, never>;
|
|
86
|
+
}
|
|
87
|
+
export type { ListCardState };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
type ListRowTone = 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export declare class ListRow {
|
|
4
|
+
tone: import("@angular/core").InputSignal<ListRowTone>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListRow, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListRow, "gbt-list-row", never, {
|
|
7
|
+
"tone": {
|
|
8
|
+
"alias": "tone";
|
|
9
|
+
"required": false;
|
|
10
|
+
"isSignal": true;
|
|
11
|
+
};
|
|
12
|
+
}, {}, never, ["[row-leading]", "*", "[row-meta]", "[row-trailing]"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
export type { ListRowTone };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Signal, WritableSignal } from "@angular/core";
|
|
3
|
+
import { FormControl } from "@angular/forms";
|
|
4
|
+
import { SelectOption } from "@masmarino/gabarit/select";
|
|
5
|
+
interface ListToolbarSortOption<T extends string = string> {
|
|
6
|
+
value: T;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ListToolbar<T extends string = string> {
|
|
10
|
+
searchValue: import("@angular/core").InputSignal<string>;
|
|
11
|
+
searchLabel: import("@angular/core").InputSignal<string>;
|
|
12
|
+
searchPlaceholder: import("@angular/core").InputSignal<string>;
|
|
13
|
+
sortOptions: import("@angular/core").InputSignal<ListToolbarSortOption<T>[]>;
|
|
14
|
+
sortValue: import("@angular/core").InputSignal<T>;
|
|
15
|
+
sortDirection: import("@angular/core").InputSignal<"asc" | "desc">;
|
|
16
|
+
sortLabel: import("@angular/core").InputSignal<string>;
|
|
17
|
+
directionLabel: import("@angular/core").InputSignal<string>;
|
|
18
|
+
searchValueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
19
|
+
sortValueChange: import("@angular/core").OutputEmitterRef<T>;
|
|
20
|
+
sortDirectionChange: import("@angular/core").OutputEmitterRef<"asc" | "desc">;
|
|
21
|
+
protected readonly searchControl: FormControl<string>;
|
|
22
|
+
protected readonly sortControl: FormControl<T | null>;
|
|
23
|
+
constructor();
|
|
24
|
+
protected asSelectOptions(options: ListToolbarSortOption<T>[]): SelectOption<T>[];
|
|
25
|
+
protected toggleDirection(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListToolbar<any>, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListToolbar<any>, "gbt-list-toolbar", never, {
|
|
28
|
+
"searchValue": {
|
|
29
|
+
"alias": "searchValue";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"searchLabel": {
|
|
34
|
+
"alias": "searchLabel";
|
|
35
|
+
"required": true;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"searchPlaceholder": {
|
|
39
|
+
"alias": "searchPlaceholder";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"sortOptions": {
|
|
44
|
+
"alias": "sortOptions";
|
|
45
|
+
"required": true;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"sortValue": {
|
|
49
|
+
"alias": "sortValue";
|
|
50
|
+
"required": true;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
"sortDirection": {
|
|
54
|
+
"alias": "sortDirection";
|
|
55
|
+
"required": false;
|
|
56
|
+
"isSignal": true;
|
|
57
|
+
};
|
|
58
|
+
"sortLabel": {
|
|
59
|
+
"alias": "sortLabel";
|
|
60
|
+
"required": false;
|
|
61
|
+
"isSignal": true;
|
|
62
|
+
};
|
|
63
|
+
"directionLabel": {
|
|
64
|
+
"alias": "directionLabel";
|
|
65
|
+
"required": false;
|
|
66
|
+
"isSignal": true;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
"searchValueChange": "searchValueChange";
|
|
70
|
+
"sortValueChange": "sortValueChange";
|
|
71
|
+
"sortDirectionChange": "sortDirectionChange";
|
|
72
|
+
}, never, never, true, never>;
|
|
73
|
+
}
|
|
74
|
+
type ListToolbarDirection = 'asc' | 'desc';
|
|
75
|
+
type ListToolbarSortValue = string | number | boolean | Date | null | undefined;
|
|
76
|
+
interface ListToolbarStateConfig<K extends string> {
|
|
77
|
+
sortOptions?: ListToolbarSortOption<K>[];
|
|
78
|
+
defaultSort?: K;
|
|
79
|
+
defaultDirection?: ListToolbarDirection;
|
|
80
|
+
initialSearch?: string;
|
|
81
|
+
}
|
|
82
|
+
interface ListToolbarAccessors<T, K extends string> {
|
|
83
|
+
text?: (item: T) => string | readonly (string | null | undefined)[] | null | undefined;
|
|
84
|
+
matches?: (item: T, query: string) => boolean;
|
|
85
|
+
sortBy?: Partial<Record<K, (item: T) => ListToolbarSortValue>>;
|
|
86
|
+
compare?: (a: T, b: T, key: K) => number;
|
|
87
|
+
locale?: string;
|
|
88
|
+
}
|
|
89
|
+
interface ListToolbarState<K extends string = string> {
|
|
90
|
+
readonly search: WritableSignal<string>;
|
|
91
|
+
readonly sortValue: WritableSignal<K>;
|
|
92
|
+
readonly direction: WritableSignal<ListToolbarDirection>;
|
|
93
|
+
readonly sortOptions: ListToolbarSortOption<K>[];
|
|
94
|
+
readonly dirty: Signal<boolean>;
|
|
95
|
+
reset(): void;
|
|
96
|
+
apply<T>(items: readonly T[], accessors: ListToolbarAccessors<T, K>): T[];
|
|
97
|
+
filtered<T>(source: () => readonly T[], accessors: ListToolbarAccessors<T, K>): Signal<T[]>;
|
|
98
|
+
}
|
|
99
|
+
export declare function createListToolbarState<K extends string = string>(config?: ListToolbarStateConfig<K>): ListToolbarState<K>;
|
|
100
|
+
export type { ListToolbarAccessors, ListToolbarDirection, ListToolbarSortOption, ListToolbarSortValue, ListToolbarState, ListToolbarStateConfig };
|