@masmarino/gabarit 1.4.0 → 2.1.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 +231 -144
- 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 +477 -0
- package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-avatar-group.mjs +199 -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 +1238 -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 +21 -11
- 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 +13 -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 +461 -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 +139 -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 +510 -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 +182 -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/fonts/OFL-ibm-plex.txt +93 -0
- package/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/fonts/ibm-plex-sans-400.woff2 +0 -0
- package/fonts/ibm-plex-sans-500.woff2 +0 -0
- package/fonts/ibm-plex-sans-600.woff2 +0 -0
- package/fonts/ibm-plex-sans-condensed-600.woff2 +0 -0
- package/fonts/index.scss +28 -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 +335 -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/src/lib/tokens/_a11y.scss +22 -0
- package/src/lib/tokens/_base.scss +31 -0
- package/src/lib/tokens/_palette.scss +52 -51
- package/src/lib/tokens/_semantic.scss +17 -124
- package/src/lib/tokens/_themes.scss +144 -0
- package/src/lib/tokens/_utilities.scss +10 -10
- package/src/lib/tokens/index.scss +3 -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 +139 -0
- package/types/masmarino-gabarit-avatar-group.d.ts +59 -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 +397 -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 +20 -59
- 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 +7 -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 +92 -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 +32 -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 +145 -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 +38 -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 -6605
- package/user-chip/README.md +42 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from "@masmarino/gabarit/button";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type CopyStatus = 'idle' | 'copied' | 'failed';
|
|
4
|
+
type CopyValue = string | (() => string);
|
|
5
|
+
export declare function copyToClipboard(text: string): Promise<boolean>;
|
|
6
|
+
export declare function selectContents(element: HTMLElement | null | undefined): void;
|
|
7
|
+
interface CopyOutcome {
|
|
8
|
+
copied: boolean;
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class ClipboardFeedback {
|
|
12
|
+
readonly status: import("@angular/core").WritableSignal<CopyStatus>;
|
|
13
|
+
private timer;
|
|
14
|
+
private destroyed;
|
|
15
|
+
constructor();
|
|
16
|
+
copy(value: CopyValue, feedbackMs: number, selectTarget?: HTMLElement | null): Promise<CopyOutcome | null>;
|
|
17
|
+
reset(): void;
|
|
18
|
+
private show;
|
|
19
|
+
private clearTimer;
|
|
20
|
+
}
|
|
21
|
+
type CopyButtonFeedback = 'bubble' | 'inline' | 'hidden';
|
|
22
|
+
export declare class CopyButton {
|
|
23
|
+
value: import("@angular/core").InputSignal<CopyValue>;
|
|
24
|
+
text: import("@angular/core").InputSignal<string>;
|
|
25
|
+
ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
26
|
+
copiedText: import("@angular/core").InputSignal<string>;
|
|
27
|
+
failedText: import("@angular/core").InputSignal<string>;
|
|
28
|
+
feedbackMs: import("@angular/core").InputSignal<number>;
|
|
29
|
+
variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
30
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
31
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
32
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
feedback: import("@angular/core").InputSignal<CopyButtonFeedback>;
|
|
34
|
+
selectTarget: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
35
|
+
copied: import("@angular/core").OutputEmitterRef<string>;
|
|
36
|
+
copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
37
|
+
protected readonly clipboard: ClipboardFeedback;
|
|
38
|
+
constructor();
|
|
39
|
+
reset(): void;
|
|
40
|
+
protected readonly glyph: import("@angular/core").Signal<string>;
|
|
41
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
42
|
+
protected readonly name: import("@angular/core").Signal<string | null>;
|
|
43
|
+
protected copy(): Promise<void>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyButton, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyButton, "gbt-copy-button", never, {
|
|
46
|
+
"value": {
|
|
47
|
+
"alias": "value";
|
|
48
|
+
"required": false;
|
|
49
|
+
"isSignal": true;
|
|
50
|
+
};
|
|
51
|
+
"text": {
|
|
52
|
+
"alias": "text";
|
|
53
|
+
"required": false;
|
|
54
|
+
"isSignal": true;
|
|
55
|
+
};
|
|
56
|
+
"ariaLabel": {
|
|
57
|
+
"alias": "ariaLabel";
|
|
58
|
+
"required": false;
|
|
59
|
+
"isSignal": true;
|
|
60
|
+
};
|
|
61
|
+
"copiedText": {
|
|
62
|
+
"alias": "copiedText";
|
|
63
|
+
"required": false;
|
|
64
|
+
"isSignal": true;
|
|
65
|
+
};
|
|
66
|
+
"failedText": {
|
|
67
|
+
"alias": "failedText";
|
|
68
|
+
"required": false;
|
|
69
|
+
"isSignal": true;
|
|
70
|
+
};
|
|
71
|
+
"feedbackMs": {
|
|
72
|
+
"alias": "feedbackMs";
|
|
73
|
+
"required": false;
|
|
74
|
+
"isSignal": true;
|
|
75
|
+
};
|
|
76
|
+
"variant": {
|
|
77
|
+
"alias": "variant";
|
|
78
|
+
"required": false;
|
|
79
|
+
"isSignal": true;
|
|
80
|
+
};
|
|
81
|
+
"size": {
|
|
82
|
+
"alias": "size";
|
|
83
|
+
"required": false;
|
|
84
|
+
"isSignal": true;
|
|
85
|
+
};
|
|
86
|
+
"icon": {
|
|
87
|
+
"alias": "icon";
|
|
88
|
+
"required": false;
|
|
89
|
+
"isSignal": true;
|
|
90
|
+
};
|
|
91
|
+
"disabled": {
|
|
92
|
+
"alias": "disabled";
|
|
93
|
+
"required": false;
|
|
94
|
+
"isSignal": true;
|
|
95
|
+
};
|
|
96
|
+
"feedback": {
|
|
97
|
+
"alias": "feedback";
|
|
98
|
+
"required": false;
|
|
99
|
+
"isSignal": true;
|
|
100
|
+
};
|
|
101
|
+
"selectTarget": {
|
|
102
|
+
"alias": "selectTarget";
|
|
103
|
+
"required": false;
|
|
104
|
+
"isSignal": true;
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
"copied": "copied";
|
|
108
|
+
"copyFailed": "copyFailed";
|
|
109
|
+
}, never, never, true, never>;
|
|
110
|
+
}
|
|
111
|
+
export type { CopyButtonFeedback, CopyOutcome, CopyStatus, CopyValue };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CopyButtonFeedback } from "@masmarino/gabarit/copy-button";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const COPY_FIELD_WRAP_AT: RegExp;
|
|
4
|
+
export declare class CopyField {
|
|
5
|
+
value: import("@angular/core").InputSignal<string>;
|
|
6
|
+
label: import("@angular/core").InputSignal<string | null>;
|
|
7
|
+
copyLabel: import("@angular/core").InputSignal<string>;
|
|
8
|
+
copiedText: import("@angular/core").InputSignal<string>;
|
|
9
|
+
failedText: import("@angular/core").InputSignal<string>;
|
|
10
|
+
feedbackMs: import("@angular/core").InputSignal<number>;
|
|
11
|
+
feedback: import("@angular/core").InputSignal<CopyButtonFeedback>;
|
|
12
|
+
wrapAt: import("@angular/core").InputSignal<RegExp | null>;
|
|
13
|
+
copied: import("@angular/core").OutputEmitterRef<string>;
|
|
14
|
+
copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
15
|
+
protected readonly labelId: string;
|
|
16
|
+
protected readonly segments: import("@angular/core").Signal<string[]>;
|
|
17
|
+
private cut;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyField, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyField, "gbt-copy-field", never, {
|
|
20
|
+
"value": {
|
|
21
|
+
"alias": "value";
|
|
22
|
+
"required": true;
|
|
23
|
+
"isSignal": true;
|
|
24
|
+
};
|
|
25
|
+
"label": {
|
|
26
|
+
"alias": "label";
|
|
27
|
+
"required": false;
|
|
28
|
+
"isSignal": true;
|
|
29
|
+
};
|
|
30
|
+
"copyLabel": {
|
|
31
|
+
"alias": "copyLabel";
|
|
32
|
+
"required": false;
|
|
33
|
+
"isSignal": true;
|
|
34
|
+
};
|
|
35
|
+
"copiedText": {
|
|
36
|
+
"alias": "copiedText";
|
|
37
|
+
"required": false;
|
|
38
|
+
"isSignal": true;
|
|
39
|
+
};
|
|
40
|
+
"failedText": {
|
|
41
|
+
"alias": "failedText";
|
|
42
|
+
"required": false;
|
|
43
|
+
"isSignal": true;
|
|
44
|
+
};
|
|
45
|
+
"feedbackMs": {
|
|
46
|
+
"alias": "feedbackMs";
|
|
47
|
+
"required": false;
|
|
48
|
+
"isSignal": true;
|
|
49
|
+
};
|
|
50
|
+
"feedback": {
|
|
51
|
+
"alias": "feedback";
|
|
52
|
+
"required": false;
|
|
53
|
+
"isSignal": true;
|
|
54
|
+
};
|
|
55
|
+
"wrapAt": {
|
|
56
|
+
"alias": "wrapAt";
|
|
57
|
+
"required": false;
|
|
58
|
+
"isSignal": true;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
"copied": "copied";
|
|
62
|
+
"copyFailed": "copyFailed";
|
|
63
|
+
}, never, never, true, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ElementRef, Injector } from "@angular/core";
|
|
4
|
+
type WeekStartsOn = 0 | 1;
|
|
5
|
+
interface CalendarDay {
|
|
6
|
+
date: Date;
|
|
7
|
+
inCurrentMonth: boolean;
|
|
8
|
+
isToday: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function isSameDay(a: Date, b: Date): boolean;
|
|
11
|
+
declare function addMonths(date: Date, delta: number): Date;
|
|
12
|
+
declare function addYears(date: Date, delta: number): Date;
|
|
13
|
+
declare function shiftDays(date: Date, delta: number): Date;
|
|
14
|
+
declare function startOfWeek(date: Date, weekStartsOn: WeekStartsOn): Date;
|
|
15
|
+
declare function endOfWeek(date: Date, weekStartsOn: WeekStartsOn): Date;
|
|
16
|
+
declare function buildCalendarGrid(year: number, month: number, weekStartsOn: WeekStartsOn): CalendarDay[];
|
|
17
|
+
declare function weekdayLabels(locale: string, weekStartsOn: WeekStartsOn): string[];
|
|
18
|
+
interface CalendarPanelView {
|
|
19
|
+
year: number;
|
|
20
|
+
month: number;
|
|
21
|
+
label: string;
|
|
22
|
+
weeks: CalendarDay[][];
|
|
23
|
+
}
|
|
24
|
+
interface CalendarPanelDeps {
|
|
25
|
+
elementRef: ElementRef<HTMLElement>;
|
|
26
|
+
injector: Injector;
|
|
27
|
+
triggerSelector: string;
|
|
28
|
+
locale: () => string;
|
|
29
|
+
weekStartsOn: () => WeekStartsOn;
|
|
30
|
+
visibleMonths: () => number;
|
|
31
|
+
minYear: () => number;
|
|
32
|
+
maxYear: () => number;
|
|
33
|
+
onTouched: () => void;
|
|
34
|
+
}
|
|
35
|
+
type NavigationResult = 'month-changed' | 'day-changed' | 'unhandled';
|
|
36
|
+
/** Panel and calendar-grid mechanics shared by `DatePicker` and `DateRangePicker`; one instance per component. */
|
|
37
|
+
declare class CalendarPanel {
|
|
38
|
+
private readonly deps;
|
|
39
|
+
readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
40
|
+
readonly anchorDate: import("@angular/core").WritableSignal<Date>;
|
|
41
|
+
readonly focusedDate: import("@angular/core").WritableSignal<Date>;
|
|
42
|
+
readonly panelStyle: import("@angular/core").WritableSignal<{
|
|
43
|
+
top: string;
|
|
44
|
+
left: string;
|
|
45
|
+
} | null>;
|
|
46
|
+
readonly monthViews: import("@angular/core").Signal<CalendarPanelView[]>;
|
|
47
|
+
readonly panelLabel: import("@angular/core").Signal<string>;
|
|
48
|
+
readonly weekdayLabels: import("@angular/core").Signal<string[]>;
|
|
49
|
+
readonly monthOptions: import("@angular/core").Signal<{
|
|
50
|
+
value: number;
|
|
51
|
+
label: string;
|
|
52
|
+
}[]>;
|
|
53
|
+
readonly yearOptions: import("@angular/core").Signal<number[]>;
|
|
54
|
+
constructor(deps: CalendarPanelDeps);
|
|
55
|
+
cellId(date: Date): string;
|
|
56
|
+
isFocused(date: Date): boolean;
|
|
57
|
+
toggle(onOpen: () => Date): void;
|
|
58
|
+
close(returnFocus: boolean): void;
|
|
59
|
+
shiftMonth(delta: number): void;
|
|
60
|
+
onMonthSelect(value: string): void;
|
|
61
|
+
onYearSelect(value: string): void;
|
|
62
|
+
private setAnchorMonth;
|
|
63
|
+
handleNavigationKeydown(event: KeyboardEvent): NavigationResult;
|
|
64
|
+
private nextFocusedDate;
|
|
65
|
+
ensureVisible(date: Date): void;
|
|
66
|
+
onEscape(event: KeyboardEvent): void;
|
|
67
|
+
handleClickOutside(event: MouseEvent): void;
|
|
68
|
+
updatePanelPosition(): void;
|
|
69
|
+
private trigger;
|
|
70
|
+
focusCellAfterRender(): void;
|
|
71
|
+
}
|
|
72
|
+
type DatePickerVisibleMonths = 1 | 2;
|
|
73
|
+
type DatePickerMonthView = CalendarPanelView;
|
|
74
|
+
export declare class DatePicker implements ControlValueAccessor {
|
|
75
|
+
private readonly elementRef;
|
|
76
|
+
private readonly injector;
|
|
77
|
+
id: import("@angular/core").InputSignal<string>;
|
|
78
|
+
label: import("@angular/core").InputSignal<string>;
|
|
79
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
80
|
+
locale: import("@angular/core").InputSignal<string>;
|
|
81
|
+
weekStartsOn: import("@angular/core").InputSignal<WeekStartsOn>;
|
|
82
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
errorMessage: import("@angular/core").InputSignal<string | null>;
|
|
85
|
+
previousMonthLabel: import("@angular/core").InputSignal<string>;
|
|
86
|
+
nextMonthLabel: import("@angular/core").InputSignal<string>;
|
|
87
|
+
clearable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
clearLabel: import("@angular/core").InputSignal<string>;
|
|
89
|
+
visibleMonths: import("@angular/core").InputSignal<DatePickerVisibleMonths>;
|
|
90
|
+
monthSelectLabel: import("@angular/core").InputSignal<string>;
|
|
91
|
+
yearSelectLabel: import("@angular/core").InputSignal<string>;
|
|
92
|
+
minYear: import("@angular/core").InputSignal<number>;
|
|
93
|
+
maxYear: import("@angular/core").InputSignal<number>;
|
|
94
|
+
private readonly panel;
|
|
95
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
96
|
+
protected readonly selected: import("@angular/core").WritableSignal<Date | null>;
|
|
97
|
+
protected readonly focusedDate: import("@angular/core").WritableSignal<Date>;
|
|
98
|
+
protected readonly anchorDate: import("@angular/core").WritableSignal<Date>;
|
|
99
|
+
protected readonly panelStyle: import("@angular/core").WritableSignal<{
|
|
100
|
+
top: string;
|
|
101
|
+
left: string;
|
|
102
|
+
} | null>;
|
|
103
|
+
private readonly formDisabled;
|
|
104
|
+
private onChange;
|
|
105
|
+
private onTouched;
|
|
106
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
107
|
+
protected readonly showClear: import("@angular/core").Signal<boolean>;
|
|
108
|
+
protected readonly monthViews: import("@angular/core").Signal<CalendarPanelView[]>;
|
|
109
|
+
protected readonly panelLabel: import("@angular/core").Signal<string>;
|
|
110
|
+
protected readonly weekdayLabels: import("@angular/core").Signal<string[]>;
|
|
111
|
+
protected readonly monthOptions: import("@angular/core").Signal<{
|
|
112
|
+
value: number;
|
|
113
|
+
label: string;
|
|
114
|
+
}[]>;
|
|
115
|
+
protected readonly yearOptions: import("@angular/core").Signal<number[]>;
|
|
116
|
+
protected readonly triggerLabel: import("@angular/core").Signal<string>;
|
|
117
|
+
writeValue(value: Date | null): void;
|
|
118
|
+
registerOnChange(fn: (value: Date | null) => void): void;
|
|
119
|
+
registerOnTouched(fn: () => void): void;
|
|
120
|
+
setDisabledState(isDisabled: boolean): void;
|
|
121
|
+
protected isSelected(date: Date): boolean;
|
|
122
|
+
protected isFocused(date: Date): boolean;
|
|
123
|
+
protected cellId(date: Date): string;
|
|
124
|
+
protected toggleOpen(): void;
|
|
125
|
+
protected close(returnFocus: boolean): void;
|
|
126
|
+
protected clear(event: Event): void;
|
|
127
|
+
protected selectDay(day: CalendarDay): void;
|
|
128
|
+
protected shiftMonth(delta: number): void;
|
|
129
|
+
protected onMonthSelect(value: string): void;
|
|
130
|
+
protected onYearSelect(value: string): void;
|
|
131
|
+
protected onGridKeydown(event: KeyboardEvent): void;
|
|
132
|
+
protected onEscape(event: KeyboardEvent): void;
|
|
133
|
+
protected handleClickOutside(event: MouseEvent): void;
|
|
134
|
+
protected updatePanelPosition(): void;
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePicker, never>;
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePicker, "gbt-date-picker", never, {
|
|
137
|
+
"id": {
|
|
138
|
+
"alias": "id";
|
|
139
|
+
"required": false;
|
|
140
|
+
"isSignal": true;
|
|
141
|
+
};
|
|
142
|
+
"label": {
|
|
143
|
+
"alias": "label";
|
|
144
|
+
"required": false;
|
|
145
|
+
"isSignal": true;
|
|
146
|
+
};
|
|
147
|
+
"placeholder": {
|
|
148
|
+
"alias": "placeholder";
|
|
149
|
+
"required": false;
|
|
150
|
+
"isSignal": true;
|
|
151
|
+
};
|
|
152
|
+
"locale": {
|
|
153
|
+
"alias": "locale";
|
|
154
|
+
"required": false;
|
|
155
|
+
"isSignal": true;
|
|
156
|
+
};
|
|
157
|
+
"weekStartsOn": {
|
|
158
|
+
"alias": "weekStartsOn";
|
|
159
|
+
"required": false;
|
|
160
|
+
"isSignal": true;
|
|
161
|
+
};
|
|
162
|
+
"disabled": {
|
|
163
|
+
"alias": "disabled";
|
|
164
|
+
"required": false;
|
|
165
|
+
"isSignal": true;
|
|
166
|
+
};
|
|
167
|
+
"required": {
|
|
168
|
+
"alias": "required";
|
|
169
|
+
"required": false;
|
|
170
|
+
"isSignal": true;
|
|
171
|
+
};
|
|
172
|
+
"errorMessage": {
|
|
173
|
+
"alias": "errorMessage";
|
|
174
|
+
"required": false;
|
|
175
|
+
"isSignal": true;
|
|
176
|
+
};
|
|
177
|
+
"previousMonthLabel": {
|
|
178
|
+
"alias": "previousMonthLabel";
|
|
179
|
+
"required": false;
|
|
180
|
+
"isSignal": true;
|
|
181
|
+
};
|
|
182
|
+
"nextMonthLabel": {
|
|
183
|
+
"alias": "nextMonthLabel";
|
|
184
|
+
"required": false;
|
|
185
|
+
"isSignal": true;
|
|
186
|
+
};
|
|
187
|
+
"clearable": {
|
|
188
|
+
"alias": "clearable";
|
|
189
|
+
"required": false;
|
|
190
|
+
"isSignal": true;
|
|
191
|
+
};
|
|
192
|
+
"clearLabel": {
|
|
193
|
+
"alias": "clearLabel";
|
|
194
|
+
"required": false;
|
|
195
|
+
"isSignal": true;
|
|
196
|
+
};
|
|
197
|
+
"visibleMonths": {
|
|
198
|
+
"alias": "visibleMonths";
|
|
199
|
+
"required": false;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
"monthSelectLabel": {
|
|
203
|
+
"alias": "monthSelectLabel";
|
|
204
|
+
"required": false;
|
|
205
|
+
"isSignal": true;
|
|
206
|
+
};
|
|
207
|
+
"yearSelectLabel": {
|
|
208
|
+
"alias": "yearSelectLabel";
|
|
209
|
+
"required": false;
|
|
210
|
+
"isSignal": true;
|
|
211
|
+
};
|
|
212
|
+
"minYear": {
|
|
213
|
+
"alias": "minYear";
|
|
214
|
+
"required": false;
|
|
215
|
+
"isSignal": true;
|
|
216
|
+
};
|
|
217
|
+
"maxYear": {
|
|
218
|
+
"alias": "maxYear";
|
|
219
|
+
"required": false;
|
|
220
|
+
"isSignal": true;
|
|
221
|
+
};
|
|
222
|
+
}, {}, never, never, true, never>;
|
|
223
|
+
}
|
|
224
|
+
type DateRangeVisibleMonths = 1 | 2;
|
|
225
|
+
interface DateRangeValue {
|
|
226
|
+
start: Date;
|
|
227
|
+
end: Date | null;
|
|
228
|
+
}
|
|
229
|
+
type DateRangePickerMonthView = CalendarPanelView;
|
|
230
|
+
export declare class DateRangePicker implements ControlValueAccessor {
|
|
231
|
+
private readonly elementRef;
|
|
232
|
+
private readonly injector;
|
|
233
|
+
id: import("@angular/core").InputSignal<string>;
|
|
234
|
+
label: import("@angular/core").InputSignal<string>;
|
|
235
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
236
|
+
locale: import("@angular/core").InputSignal<string>;
|
|
237
|
+
weekStartsOn: import("@angular/core").InputSignal<WeekStartsOn>;
|
|
238
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
239
|
+
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
240
|
+
errorMessage: import("@angular/core").InputSignal<string | null>;
|
|
241
|
+
previousMonthLabel: import("@angular/core").InputSignal<string>;
|
|
242
|
+
nextMonthLabel: import("@angular/core").InputSignal<string>;
|
|
243
|
+
clearable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
244
|
+
clearLabel: import("@angular/core").InputSignal<string>;
|
|
245
|
+
visibleMonths: import("@angular/core").InputSignal<DateRangeVisibleMonths>;
|
|
246
|
+
monthSelectLabel: import("@angular/core").InputSignal<string>;
|
|
247
|
+
yearSelectLabel: import("@angular/core").InputSignal<string>;
|
|
248
|
+
minYear: import("@angular/core").InputSignal<number>;
|
|
249
|
+
maxYear: import("@angular/core").InputSignal<number>;
|
|
250
|
+
rangeStatus: import("@angular/core").InputSignal<(start: string | null, end: string | null) => string>;
|
|
251
|
+
private readonly panel;
|
|
252
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
253
|
+
protected readonly value: import("@angular/core").WritableSignal<DateRangeValue | null>;
|
|
254
|
+
protected readonly draftStart: import("@angular/core").WritableSignal<Date | null>;
|
|
255
|
+
protected readonly draftEnd: import("@angular/core").WritableSignal<Date | null>;
|
|
256
|
+
protected readonly hoveredDate: import("@angular/core").WritableSignal<Date | null>;
|
|
257
|
+
protected readonly focusedDate: import("@angular/core").WritableSignal<Date>;
|
|
258
|
+
protected readonly anchorDate: import("@angular/core").WritableSignal<Date>;
|
|
259
|
+
protected readonly panelStyle: import("@angular/core").WritableSignal<{
|
|
260
|
+
top: string;
|
|
261
|
+
left: string;
|
|
262
|
+
} | null>;
|
|
263
|
+
private readonly formDisabled;
|
|
264
|
+
private onChange;
|
|
265
|
+
private onTouched;
|
|
266
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
267
|
+
protected readonly showClear: import("@angular/core").Signal<boolean>;
|
|
268
|
+
protected readonly monthViews: import("@angular/core").Signal<CalendarPanelView[]>;
|
|
269
|
+
protected readonly panelLabel: import("@angular/core").Signal<string>;
|
|
270
|
+
protected readonly weekdayLabels: import("@angular/core").Signal<string[]>;
|
|
271
|
+
protected readonly monthOptions: import("@angular/core").Signal<{
|
|
272
|
+
value: number;
|
|
273
|
+
label: string;
|
|
274
|
+
}[]>;
|
|
275
|
+
protected readonly yearOptions: import("@angular/core").Signal<number[]>;
|
|
276
|
+
private readonly dateFormatter;
|
|
277
|
+
protected readonly triggerLabel: import("@angular/core").Signal<string>;
|
|
278
|
+
private readonly previewBounds;
|
|
279
|
+
protected readonly isPreviewing: import("@angular/core").Signal<boolean>;
|
|
280
|
+
protected readonly statusMessage: import("@angular/core").Signal<string>;
|
|
281
|
+
writeValue(value: DateRangeValue | null): void;
|
|
282
|
+
registerOnChange(fn: (value: DateRangeValue | null) => void): void;
|
|
283
|
+
registerOnTouched(fn: () => void): void;
|
|
284
|
+
setDisabledState(isDisabled: boolean): void;
|
|
285
|
+
protected isRangeStartCap(date: Date): boolean;
|
|
286
|
+
protected isRangeEndCap(date: Date): boolean;
|
|
287
|
+
protected isInRange(date: Date): boolean;
|
|
288
|
+
protected isFocused(date: Date): boolean;
|
|
289
|
+
protected cellId(date: Date): string;
|
|
290
|
+
protected toggleOpen(): void;
|
|
291
|
+
protected close(returnFocus: boolean): void;
|
|
292
|
+
protected clear(event: Event): void;
|
|
293
|
+
protected selectDay(date: Date): void;
|
|
294
|
+
protected onDayMouseEnter(date: Date): void;
|
|
295
|
+
protected onDayMouseLeave(): void;
|
|
296
|
+
protected shiftMonth(delta: number): void;
|
|
297
|
+
protected onMonthSelect(value: string): void;
|
|
298
|
+
protected onYearSelect(value: string): void;
|
|
299
|
+
protected onGridKeydown(event: KeyboardEvent): void;
|
|
300
|
+
protected onEscape(event: KeyboardEvent): void;
|
|
301
|
+
protected handleClickOutside(event: MouseEvent): void;
|
|
302
|
+
protected updatePanelPosition(): void;
|
|
303
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePicker, never>;
|
|
304
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePicker, "gbt-date-range-picker", never, {
|
|
305
|
+
"id": {
|
|
306
|
+
"alias": "id";
|
|
307
|
+
"required": false;
|
|
308
|
+
"isSignal": true;
|
|
309
|
+
};
|
|
310
|
+
"label": {
|
|
311
|
+
"alias": "label";
|
|
312
|
+
"required": false;
|
|
313
|
+
"isSignal": true;
|
|
314
|
+
};
|
|
315
|
+
"placeholder": {
|
|
316
|
+
"alias": "placeholder";
|
|
317
|
+
"required": false;
|
|
318
|
+
"isSignal": true;
|
|
319
|
+
};
|
|
320
|
+
"locale": {
|
|
321
|
+
"alias": "locale";
|
|
322
|
+
"required": false;
|
|
323
|
+
"isSignal": true;
|
|
324
|
+
};
|
|
325
|
+
"weekStartsOn": {
|
|
326
|
+
"alias": "weekStartsOn";
|
|
327
|
+
"required": false;
|
|
328
|
+
"isSignal": true;
|
|
329
|
+
};
|
|
330
|
+
"disabled": {
|
|
331
|
+
"alias": "disabled";
|
|
332
|
+
"required": false;
|
|
333
|
+
"isSignal": true;
|
|
334
|
+
};
|
|
335
|
+
"required": {
|
|
336
|
+
"alias": "required";
|
|
337
|
+
"required": false;
|
|
338
|
+
"isSignal": true;
|
|
339
|
+
};
|
|
340
|
+
"errorMessage": {
|
|
341
|
+
"alias": "errorMessage";
|
|
342
|
+
"required": false;
|
|
343
|
+
"isSignal": true;
|
|
344
|
+
};
|
|
345
|
+
"previousMonthLabel": {
|
|
346
|
+
"alias": "previousMonthLabel";
|
|
347
|
+
"required": false;
|
|
348
|
+
"isSignal": true;
|
|
349
|
+
};
|
|
350
|
+
"nextMonthLabel": {
|
|
351
|
+
"alias": "nextMonthLabel";
|
|
352
|
+
"required": false;
|
|
353
|
+
"isSignal": true;
|
|
354
|
+
};
|
|
355
|
+
"clearable": {
|
|
356
|
+
"alias": "clearable";
|
|
357
|
+
"required": false;
|
|
358
|
+
"isSignal": true;
|
|
359
|
+
};
|
|
360
|
+
"clearLabel": {
|
|
361
|
+
"alias": "clearLabel";
|
|
362
|
+
"required": false;
|
|
363
|
+
"isSignal": true;
|
|
364
|
+
};
|
|
365
|
+
"visibleMonths": {
|
|
366
|
+
"alias": "visibleMonths";
|
|
367
|
+
"required": false;
|
|
368
|
+
"isSignal": true;
|
|
369
|
+
};
|
|
370
|
+
"monthSelectLabel": {
|
|
371
|
+
"alias": "monthSelectLabel";
|
|
372
|
+
"required": false;
|
|
373
|
+
"isSignal": true;
|
|
374
|
+
};
|
|
375
|
+
"yearSelectLabel": {
|
|
376
|
+
"alias": "yearSelectLabel";
|
|
377
|
+
"required": false;
|
|
378
|
+
"isSignal": true;
|
|
379
|
+
};
|
|
380
|
+
"minYear": {
|
|
381
|
+
"alias": "minYear";
|
|
382
|
+
"required": false;
|
|
383
|
+
"isSignal": true;
|
|
384
|
+
};
|
|
385
|
+
"maxYear": {
|
|
386
|
+
"alias": "maxYear";
|
|
387
|
+
"required": false;
|
|
388
|
+
"isSignal": true;
|
|
389
|
+
};
|
|
390
|
+
"rangeStatus": {
|
|
391
|
+
"alias": "rangeStatus";
|
|
392
|
+
"required": false;
|
|
393
|
+
"isSignal": true;
|
|
394
|
+
};
|
|
395
|
+
}, {}, never, never, true, never>;
|
|
396
|
+
}
|
|
397
|
+
export type { CalendarDay, DateRangeValue, WeekStartsOn };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
type DescriptionListLayout = 'stacked' | 'inline';
|
|
4
|
+
type DescriptionListValueAlign = 'start' | 'end';
|
|
5
|
+
type DescriptionListResponsive = 'viewport' | 'container';
|
|
6
|
+
interface DescriptionListEntry {
|
|
7
|
+
term: string;
|
|
8
|
+
value: string | TemplateRef<unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare class DescriptionList {
|
|
11
|
+
items: import("@angular/core").InputSignal<DescriptionListEntry[]>;
|
|
12
|
+
layout: import("@angular/core").InputSignal<DescriptionListLayout>;
|
|
13
|
+
valueAlign: import("@angular/core").InputSignal<DescriptionListValueAlign>;
|
|
14
|
+
responsive: import("@angular/core").InputSignal<DescriptionListResponsive>;
|
|
15
|
+
protected isTemplate(value: DescriptionListEntry['value']): value is TemplateRef<unknown>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DescriptionList, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DescriptionList, "gbt-description-list", never, {
|
|
18
|
+
"items": {
|
|
19
|
+
"alias": "items";
|
|
20
|
+
"required": true;
|
|
21
|
+
"isSignal": true;
|
|
22
|
+
};
|
|
23
|
+
"layout": {
|
|
24
|
+
"alias": "layout";
|
|
25
|
+
"required": false;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"valueAlign": {
|
|
29
|
+
"alias": "valueAlign";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"responsive": {
|
|
34
|
+
"alias": "responsive";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
export type { DescriptionListEntry, DescriptionListLayout, DescriptionListResponsive, DescriptionListValueAlign };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
interface DimensionRow {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
display?: string;
|
|
6
|
+
}
|
|
7
|
+
interface RenderedRow {
|
|
8
|
+
label: string;
|
|
9
|
+
formattedValue: string;
|
|
10
|
+
part: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class DimensionCard {
|
|
13
|
+
rows: import("@angular/core").InputSignal<DimensionRow[]>;
|
|
14
|
+
caption: import("@angular/core").InputSignal<string>;
|
|
15
|
+
labelColumn: import("@angular/core").InputSignal<string>;
|
|
16
|
+
valueColumn: import("@angular/core").InputSignal<string>;
|
|
17
|
+
emptyMessage: import("@angular/core").InputSignal<string>;
|
|
18
|
+
locale: import("@angular/core").InputSignal<string>;
|
|
19
|
+
protected readonly activeIndex: import("@angular/core").WritableSignal<number | null>;
|
|
20
|
+
protected readonly renderedRows: import("@angular/core").Signal<RenderedRow[]>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DimensionCard, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DimensionCard, "gbt-dimension-card", never, {
|
|
23
|
+
"rows": {
|
|
24
|
+
"alias": "rows";
|
|
25
|
+
"required": true;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"caption": {
|
|
29
|
+
"alias": "caption";
|
|
30
|
+
"required": true;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"labelColumn": {
|
|
34
|
+
"alias": "labelColumn";
|
|
35
|
+
"required": true;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"valueColumn": {
|
|
39
|
+
"alias": "valueColumn";
|
|
40
|
+
"required": true;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"emptyMessage": {
|
|
44
|
+
"alias": "emptyMessage";
|
|
45
|
+
"required": true;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"locale": {
|
|
49
|
+
"alias": "locale";
|
|
50
|
+
"required": true;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
}, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
export type { DimensionRow };
|