@semantic-components/ui 0.65.0 → 0.67.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/esm2022/lib/components/accordion/accordion-body.js +33 -0
- package/esm2022/lib/components/accordion/accordion-body.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-content.js +16 -0
- package/esm2022/lib/components/accordion/accordion-content.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-group.js +35 -0
- package/esm2022/lib/components/accordion/accordion-group.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-header.js +20 -0
- package/esm2022/lib/components/accordion/accordion-header.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-item.js +27 -0
- package/esm2022/lib/components/accordion/accordion-item.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-panel.js +35 -0
- package/esm2022/lib/components/accordion/accordion-panel.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion-trigger.js +58 -0
- package/esm2022/lib/components/accordion/accordion-trigger.js.map +1 -0
- package/esm2022/lib/components/accordion/index.js +8 -0
- package/esm2022/lib/components/accordion/index.js.map +1 -0
- package/esm2022/lib/components/alert/alert-action.js +20 -0
- package/esm2022/lib/components/alert/alert-action.js.map +1 -0
- package/esm2022/lib/components/alert/alert-description.js +20 -0
- package/esm2022/lib/components/alert/alert-description.js.map +1 -0
- package/esm2022/lib/components/alert/alert-title.js +20 -0
- package/esm2022/lib/components/alert/alert-title.js.map +1 -0
- package/esm2022/lib/components/alert/alert.js +34 -0
- package/esm2022/lib/components/alert/alert.js.map +1 -0
- package/esm2022/lib/components/alert/index.js +5 -0
- package/esm2022/lib/components/alert/index.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-action.js +30 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-action.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-cancel.js +30 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-cancel.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-description.js +23 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-description.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-footer.js +20 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-footer.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-header.js +20 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-header.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-media.js +20 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-media.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-portal.js +14 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-portal.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-provider.js +122 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-provider.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-title.js +23 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-title.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-trigger.js +29 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog-trigger.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.js +61 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/index.js +12 -0
- package/esm2022/lib/components/alert-dialog/index.js.map +1 -0
- package/esm2022/lib/components/aspect-ratio/aspect-ratio.js +22 -0
- package/esm2022/lib/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/esm2022/lib/components/aspect-ratio/index.js +2 -0
- package/esm2022/lib/components/aspect-ratio/index.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-badge.js +20 -0
- package/esm2022/lib/components/avatar/avatar-badge.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-fallback.js +25 -0
- package/esm2022/lib/components/avatar/avatar-fallback.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-group-count.js +20 -0
- package/esm2022/lib/components/avatar/avatar-group-count.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-group.js +20 -0
- package/esm2022/lib/components/avatar/avatar-group.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-image.js +36 -0
- package/esm2022/lib/components/avatar/avatar-image.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar.js +24 -0
- package/esm2022/lib/components/avatar/avatar.js.map +1 -0
- package/esm2022/lib/components/avatar/index.js +7 -0
- package/esm2022/lib/components/avatar/index.js.map +1 -0
- package/esm2022/lib/components/backdrop/backdrop.js +53 -0
- package/esm2022/lib/components/backdrop/backdrop.js.map +1 -0
- package/esm2022/lib/components/backdrop/index.js +2 -0
- package/esm2022/lib/components/backdrop/index.js.map +1 -0
- package/esm2022/lib/components/badge/badge.js +37 -0
- package/esm2022/lib/components/badge/badge.js.map +1 -0
- package/esm2022/lib/components/badge/index.js +2 -0
- package/esm2022/lib/components/badge/index.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-ellipsis.js +33 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-ellipsis.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.js +20 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-link.js +20 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-link.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-list.js +20 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-list.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +23 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-page.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +35 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.js +17 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/index.js +8 -0
- package/esm2022/lib/components/breadcrumb/index.js.map +1 -0
- package/esm2022/lib/components/button/button.js +4 -4
- package/esm2022/lib/components/button/button.js.map +1 -1
- package/esm2022/lib/components/button-group/button-group-separator.js +24 -0
- package/esm2022/lib/components/button-group/button-group-separator.js.map +1 -0
- package/esm2022/lib/components/button-group/button-group-text.js +20 -0
- package/esm2022/lib/components/button-group/button-group-text.js.map +1 -0
- package/esm2022/lib/components/button-group/button-group.js +34 -0
- package/esm2022/lib/components/button-group/button-group.js.map +1 -0
- package/esm2022/lib/components/button-group/index.js +4 -0
- package/esm2022/lib/components/button-group/index.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-day-view.js +323 -0
- package/esm2022/lib/components/calendar/calendar-day-view.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-header.js +93 -0
- package/esm2022/lib/components/calendar/calendar-header.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-month-view.js +185 -0
- package/esm2022/lib/components/calendar/calendar-month-view.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-year-view.js +174 -0
- package/esm2022/lib/components/calendar/calendar-year-view.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar.js +282 -0
- package/esm2022/lib/components/calendar/calendar.js.map +1 -0
- package/esm2022/lib/components/calendar/index.js +2 -0
- package/esm2022/lib/components/calendar/index.js.map +1 -0
- package/esm2022/lib/components/card/card-action.js +20 -0
- package/esm2022/lib/components/card/card-action.js.map +1 -0
- package/esm2022/lib/components/card/card-body.js +20 -0
- package/esm2022/lib/components/card/card-body.js.map +1 -0
- package/esm2022/lib/components/card/card-description.js +20 -0
- package/esm2022/lib/components/card/card-description.js.map +1 -0
- package/esm2022/lib/components/card/card-footer.js +20 -0
- package/esm2022/lib/components/card/card-footer.js.map +1 -0
- package/esm2022/lib/components/card/card-header.js +20 -0
- package/esm2022/lib/components/card/card-header.js.map +1 -0
- package/esm2022/lib/components/card/card-title.js +20 -0
- package/esm2022/lib/components/card/card-title.js.map +1 -0
- package/esm2022/lib/components/card/card.js +22 -0
- package/esm2022/lib/components/card/card.js.map +1 -0
- package/esm2022/lib/components/card/index.js +8 -0
- package/esm2022/lib/components/card/index.js.map +1 -0
- package/esm2022/lib/components/checkbox/checkbox-field.js +64 -0
- package/esm2022/lib/components/checkbox/checkbox-field.js.map +1 -0
- package/esm2022/lib/components/checkbox/checkbox-types.js +3 -0
- package/esm2022/lib/components/checkbox/checkbox-types.js.map +1 -0
- package/esm2022/lib/components/checkbox/checkbox-visual.js +41 -0
- package/esm2022/lib/components/checkbox/checkbox-visual.js.map +1 -0
- package/esm2022/lib/components/checkbox/checkbox.js +54 -0
- package/esm2022/lib/components/checkbox/checkbox.js.map +1 -0
- package/esm2022/lib/components/checkbox/index.js +5 -0
- package/esm2022/lib/components/checkbox/index.js.map +1 -0
- package/esm2022/lib/components/collapsible/collapsible-body.js +33 -0
- package/esm2022/lib/components/collapsible/collapsible-body.js.map +1 -0
- package/esm2022/lib/components/collapsible/collapsible-content.js +16 -0
- package/esm2022/lib/components/collapsible/collapsible-content.js.map +1 -0
- package/esm2022/lib/components/collapsible/collapsible-panel.js +35 -0
- package/esm2022/lib/components/collapsible/collapsible-panel.js.map +1 -0
- package/esm2022/lib/components/collapsible/collapsible-trigger.js +45 -0
- package/esm2022/lib/components/collapsible/collapsible-trigger.js.map +1 -0
- package/esm2022/lib/components/collapsible/collapsible.js +35 -0
- package/esm2022/lib/components/collapsible/collapsible.js.map +1 -0
- package/esm2022/lib/components/collapsible/index.js +6 -0
- package/esm2022/lib/components/collapsible/index.js.map +1 -0
- package/esm2022/lib/components/date-picker/date-picker.js +134 -0
- package/esm2022/lib/components/date-picker/date-picker.js.map +1 -0
- package/esm2022/lib/components/date-picker/index.js +2 -0
- package/esm2022/lib/components/date-picker/index.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-close.js +30 -0
- package/esm2022/lib/components/dialog/dialog-close.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-description.js +23 -0
- package/esm2022/lib/components/dialog/dialog-description.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-footer.js +20 -0
- package/esm2022/lib/components/dialog/dialog-footer.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-header.js +20 -0
- package/esm2022/lib/components/dialog/dialog-header.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-portal.js +14 -0
- package/esm2022/lib/components/dialog/dialog-portal.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-provider.js +159 -0
- package/esm2022/lib/components/dialog/dialog-provider.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-title.js +23 -0
- package/esm2022/lib/components/dialog/dialog-title.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-trigger.js +29 -0
- package/esm2022/lib/components/dialog/dialog-trigger.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.js +59 -0
- package/esm2022/lib/components/dialog/dialog.js.map +1 -0
- package/esm2022/lib/components/dialog/index.js +10 -0
- package/esm2022/lib/components/dialog/index.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-close.js +23 -0
- package/esm2022/lib/components/drawer/drawer-close.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-description.js +20 -0
- package/esm2022/lib/components/drawer/drawer-description.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-footer.js +20 -0
- package/esm2022/lib/components/drawer/drawer-footer.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-handle.js +20 -0
- package/esm2022/lib/components/drawer/drawer-handle.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-header.js +20 -0
- package/esm2022/lib/components/drawer/drawer-header.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-portal.js +14 -0
- package/esm2022/lib/components/drawer/drawer-portal.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-provider.js +127 -0
- package/esm2022/lib/components/drawer/drawer-provider.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-title.js +20 -0
- package/esm2022/lib/components/drawer/drawer-title.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer-trigger.js +28 -0
- package/esm2022/lib/components/drawer/drawer-trigger.js.map +1 -0
- package/esm2022/lib/components/drawer/drawer.js +50 -0
- package/esm2022/lib/components/drawer/drawer.js.map +1 -0
- package/esm2022/lib/components/drawer/index.js +11 -0
- package/esm2022/lib/components/drawer/index.js.map +1 -0
- package/esm2022/lib/components/empty/empty-body.js +20 -0
- package/esm2022/lib/components/empty/empty-body.js.map +1 -0
- package/esm2022/lib/components/empty/empty-description.js +20 -0
- package/esm2022/lib/components/empty/empty-description.js.map +1 -0
- package/esm2022/lib/components/empty/empty-header.js +20 -0
- package/esm2022/lib/components/empty/empty-header.js.map +1 -0
- package/esm2022/lib/components/empty/empty-media.js +34 -0
- package/esm2022/lib/components/empty/empty-media.js.map +1 -0
- package/esm2022/lib/components/empty/empty-title.js +20 -0
- package/esm2022/lib/components/empty/empty-title.js.map +1 -0
- package/esm2022/lib/components/empty/empty.js +20 -0
- package/esm2022/lib/components/empty/empty.js.map +1 -0
- package/esm2022/lib/components/empty/index.js +7 -0
- package/esm2022/lib/components/empty/index.js.map +1 -0
- package/esm2022/lib/components/field/field-body.js +20 -0
- package/esm2022/lib/components/field/field-body.js.map +1 -0
- package/esm2022/lib/components/field/field-description.js +20 -0
- package/esm2022/lib/components/field/field-description.js.map +1 -0
- package/esm2022/lib/components/field/field-error.js +21 -0
- package/esm2022/lib/components/field/field-error.js.map +1 -0
- package/esm2022/lib/components/field/field-group.js +20 -0
- package/esm2022/lib/components/field/field-group.js.map +1 -0
- package/esm2022/lib/components/field/field-separator.js +20 -0
- package/esm2022/lib/components/field/field-separator.js.map +1 -0
- package/esm2022/lib/components/field/field-title.js +20 -0
- package/esm2022/lib/components/field/field-title.js.map +1 -0
- package/esm2022/lib/components/field/field.js +75 -0
- package/esm2022/lib/components/field/field.js.map +1 -0
- package/esm2022/lib/components/field/fieldset.js +20 -0
- package/esm2022/lib/components/field/fieldset.js.map +1 -0
- package/esm2022/lib/components/field/index.js +10 -0
- package/esm2022/lib/components/field/index.js.map +1 -0
- package/esm2022/lib/components/field/legend.js +22 -0
- package/esm2022/lib/components/field/legend.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-dropzone.js +91 -0
- package/esm2022/lib/components/file-upload/file-upload-dropzone.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item-delete.js +29 -0
- package/esm2022/lib/components/file-upload/file-upload-item-delete.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item-name.js +20 -0
- package/esm2022/lib/components/file-upload/file-upload-item-name.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item-preview.js +51 -0
- package/esm2022/lib/components/file-upload/file-upload-item-preview.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item-progress.js +34 -0
- package/esm2022/lib/components/file-upload/file-upload-item-progress.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item-size.js +37 -0
- package/esm2022/lib/components/file-upload/file-upload-item-size.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-item.js +29 -0
- package/esm2022/lib/components/file-upload/file-upload-item.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-list.js +20 -0
- package/esm2022/lib/components/file-upload/file-upload-list.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload-trigger.js +66 -0
- package/esm2022/lib/components/file-upload/file-upload-trigger.js.map +1 -0
- package/esm2022/lib/components/file-upload/file-upload.js +118 -0
- package/esm2022/lib/components/file-upload/file-upload.js.map +1 -0
- package/esm2022/lib/components/file-upload/index.js +11 -0
- package/esm2022/lib/components/file-upload/index.js.map +1 -0
- package/esm2022/lib/components/hover-card/hover-card-portal.js +14 -0
- package/esm2022/lib/components/hover-card/hover-card-portal.js.map +1 -0
- package/esm2022/lib/components/hover-card/hover-card-provider.js +185 -0
- package/esm2022/lib/components/hover-card/hover-card-provider.js.map +1 -0
- package/esm2022/lib/components/hover-card/hover-card-trigger.js +72 -0
- package/esm2022/lib/components/hover-card/hover-card-trigger.js.map +1 -0
- package/esm2022/lib/components/hover-card/hover-card.js +74 -0
- package/esm2022/lib/components/hover-card/hover-card.js.map +1 -0
- package/esm2022/lib/components/hover-card/index.js +5 -0
- package/esm2022/lib/components/hover-card/index.js.map +1 -0
- package/esm2022/lib/components/index.js +50 -0
- package/esm2022/lib/components/index.js.map +1 -1
- package/esm2022/lib/components/input/index.js +2 -0
- package/esm2022/lib/components/input/index.js.map +1 -0
- package/esm2022/lib/components/input/input.js +41 -0
- package/esm2022/lib/components/input/input.js.map +1 -0
- package/esm2022/lib/components/input-group/index.js +5 -0
- package/esm2022/lib/components/input-group/index.js.map +1 -0
- package/esm2022/lib/components/input-group/input-group-addon.js +37 -0
- package/esm2022/lib/components/input-group/input-group-addon.js.map +1 -0
- package/esm2022/lib/components/input-group/input-group-button.js +39 -0
- package/esm2022/lib/components/input-group/input-group-button.js.map +1 -0
- package/esm2022/lib/components/input-group/input-group-text.js +20 -0
- package/esm2022/lib/components/input-group/input-group-text.js.map +1 -0
- package/esm2022/lib/components/input-group/input-group.js +21 -0
- package/esm2022/lib/components/input-group/input-group.js.map +1 -0
- package/esm2022/lib/components/item/index.js +11 -0
- package/esm2022/lib/components/item/index.js.map +1 -0
- package/esm2022/lib/components/item/item-actions.js +20 -0
- package/esm2022/lib/components/item/item-actions.js.map +1 -0
- package/esm2022/lib/components/item/item-body.js +20 -0
- package/esm2022/lib/components/item/item-body.js.map +1 -0
- package/esm2022/lib/components/item/item-description.js +20 -0
- package/esm2022/lib/components/item/item-description.js.map +1 -0
- package/esm2022/lib/components/item/item-footer.js +20 -0
- package/esm2022/lib/components/item/item-footer.js.map +1 -0
- package/esm2022/lib/components/item/item-group.js +21 -0
- package/esm2022/lib/components/item/item-group.js.map +1 -0
- package/esm2022/lib/components/item/item-header.js +20 -0
- package/esm2022/lib/components/item/item-header.js.map +1 -0
- package/esm2022/lib/components/item/item-media.js +35 -0
- package/esm2022/lib/components/item/item-media.js.map +1 -0
- package/esm2022/lib/components/item/item-separator.js +21 -0
- package/esm2022/lib/components/item/item-separator.js.map +1 -0
- package/esm2022/lib/components/item/item-title.js +20 -0
- package/esm2022/lib/components/item/item-title.js.map +1 -0
- package/esm2022/lib/components/item/item.js +43 -0
- package/esm2022/lib/components/item/item.js.map +1 -0
- package/esm2022/lib/components/kbd/index.js +3 -0
- package/esm2022/lib/components/kbd/index.js.map +1 -0
- package/esm2022/lib/components/kbd/kbd-group.js +20 -0
- package/esm2022/lib/components/kbd/kbd-group.js.map +1 -0
- package/esm2022/lib/components/kbd/kbd.js +20 -0
- package/esm2022/lib/components/kbd/kbd.js.map +1 -0
- package/esm2022/lib/components/label/index.js +2 -0
- package/esm2022/lib/components/label/index.js.map +1 -0
- package/esm2022/lib/components/label/label.js +29 -0
- package/esm2022/lib/components/label/label.js.map +1 -0
- package/esm2022/lib/components/link/link.js +4 -4
- package/esm2022/lib/components/link/link.js.map +1 -1
- package/esm2022/lib/components/menu/index.js +8 -0
- package/esm2022/lib/components/menu/index.js.map +1 -0
- package/esm2022/lib/components/menu/menu-content.js +16 -0
- package/esm2022/lib/components/menu/menu-content.js.map +1 -0
- package/esm2022/lib/components/menu/menu-item.js +96 -0
- package/esm2022/lib/components/menu/menu-item.js.map +1 -0
- package/esm2022/lib/components/menu/menu-portal.js +15 -0
- package/esm2022/lib/components/menu/menu-portal.js.map +1 -0
- package/esm2022/lib/components/menu/menu-provider.js +102 -0
- package/esm2022/lib/components/menu/menu-provider.js.map +1 -0
- package/esm2022/lib/components/menu/menu-separator.js +22 -0
- package/esm2022/lib/components/menu/menu-separator.js.map +1 -0
- package/esm2022/lib/components/menu/menu-trigger.js +34 -0
- package/esm2022/lib/components/menu/menu-trigger.js.map +1 -0
- package/esm2022/lib/components/menu/menu.js +37 -0
- package/esm2022/lib/components/menu/menu.js.map +1 -0
- package/esm2022/lib/components/menu-bar/index.js +3 -0
- package/esm2022/lib/components/menu-bar/index.js.map +1 -0
- package/esm2022/lib/components/menu-bar/menu-bar-item.js +103 -0
- package/esm2022/lib/components/menu-bar/menu-bar-item.js.map +1 -0
- package/esm2022/lib/components/menu-bar/menu-bar.js +28 -0
- package/esm2022/lib/components/menu-bar/menu-bar.js.map +1 -0
- package/esm2022/lib/components/native-select/index.js +6 -0
- package/esm2022/lib/components/native-select/index.js.map +1 -0
- package/esm2022/lib/components/native-select/native-select-container.js +20 -0
- package/esm2022/lib/components/native-select/native-select-container.js.map +1 -0
- package/esm2022/lib/components/native-select/native-select-icon.js +20 -0
- package/esm2022/lib/components/native-select/native-select-icon.js.map +1 -0
- package/esm2022/lib/components/native-select/native-select-optgroup.js +20 -0
- package/esm2022/lib/components/native-select/native-select-optgroup.js.map +1 -0
- package/esm2022/lib/components/native-select/native-select-option.js +20 -0
- package/esm2022/lib/components/native-select/native-select-option.js.map +1 -0
- package/esm2022/lib/components/native-select/native-select.js +29 -0
- package/esm2022/lib/components/native-select/native-select.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/index.js +8 -0
- package/esm2022/lib/components/navigation-menu/index.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-content.js +37 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-content.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-item.js +118 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-item.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-link.js +22 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-link.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-list.js +20 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-list.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js +14 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js +22 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js +41 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js.map +1 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu.js +32 -0
- package/esm2022/lib/components/navigation-menu/navigation-menu.js.map +1 -0
- package/esm2022/lib/components/pagination/index.js +11 -0
- package/esm2022/lib/components/pagination/index.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-ellipsis.js +21 -0
- package/esm2022/lib/components/pagination/pagination-ellipsis.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-first.js +51 -0
- package/esm2022/lib/components/pagination/pagination-first.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-item.js +20 -0
- package/esm2022/lib/components/pagination/pagination-item.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-last.js +52 -0
- package/esm2022/lib/components/pagination/pagination-last.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-link.js +50 -0
- package/esm2022/lib/components/pagination/pagination-link.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-list.js +20 -0
- package/esm2022/lib/components/pagination/pagination-list.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-next.js +52 -0
- package/esm2022/lib/components/pagination/pagination-next.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-page-size-select.js +37 -0
- package/esm2022/lib/components/pagination/pagination-page-size-select.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-previous.js +52 -0
- package/esm2022/lib/components/pagination/pagination-previous.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination.js +135 -0
- package/esm2022/lib/components/pagination/pagination.js.map +1 -0
- package/esm2022/lib/components/popover/index.js +9 -0
- package/esm2022/lib/components/popover/index.js.map +1 -0
- package/esm2022/lib/components/popover/popover-close.js +26 -0
- package/esm2022/lib/components/popover/popover-close.js.map +1 -0
- package/esm2022/lib/components/popover/popover-description.js +20 -0
- package/esm2022/lib/components/popover/popover-description.js.map +1 -0
- package/esm2022/lib/components/popover/popover-header.js +20 -0
- package/esm2022/lib/components/popover/popover-header.js.map +1 -0
- package/esm2022/lib/components/popover/popover-portal.js +14 -0
- package/esm2022/lib/components/popover/popover-portal.js.map +1 -0
- package/esm2022/lib/components/popover/popover-provider.js +203 -0
- package/esm2022/lib/components/popover/popover-provider.js.map +1 -0
- package/esm2022/lib/components/popover/popover-title.js +20 -0
- package/esm2022/lib/components/popover/popover-title.js.map +1 -0
- package/esm2022/lib/components/popover/popover-trigger.js +32 -0
- package/esm2022/lib/components/popover/popover-trigger.js.map +1 -0
- package/esm2022/lib/components/popover/popover.js +50 -0
- package/esm2022/lib/components/popover/popover.js.map +1 -0
- package/esm2022/lib/components/progress/index.js +2 -0
- package/esm2022/lib/components/progress/index.js.map +1 -0
- package/esm2022/lib/components/progress/progress-indicator.js +26 -0
- package/esm2022/lib/components/progress/progress-indicator.js.map +1 -0
- package/esm2022/lib/components/progress/progress.js +50 -0
- package/esm2022/lib/components/progress/progress.js.map +1 -0
- package/esm2022/lib/components/radio-group/index.js +4 -0
- package/esm2022/lib/components/radio-group/index.js.map +1 -0
- package/esm2022/lib/components/radio-group/radio-field.js +38 -0
- package/esm2022/lib/components/radio-group/radio-field.js.map +1 -0
- package/esm2022/lib/components/radio-group/radio-group.js +21 -0
- package/esm2022/lib/components/radio-group/radio-group.js.map +1 -0
- package/esm2022/lib/components/radio-group/radio.js +22 -0
- package/esm2022/lib/components/radio-group/radio.js.map +1 -0
- package/esm2022/lib/components/range-slider/index.js +4 -0
- package/esm2022/lib/components/range-slider/index.js.map +1 -0
- package/esm2022/lib/components/range-slider/range-slider-max.js +38 -0
- package/esm2022/lib/components/range-slider/range-slider-max.js.map +1 -0
- package/esm2022/lib/components/range-slider/range-slider-min.js +38 -0
- package/esm2022/lib/components/range-slider/range-slider-min.js.map +1 -0
- package/esm2022/lib/components/range-slider/range-slider-thumb-base.js +24 -0
- package/esm2022/lib/components/range-slider/range-slider-thumb-base.js.map +1 -0
- package/esm2022/lib/components/range-slider/range-slider.js +62 -0
- package/esm2022/lib/components/range-slider/range-slider.js.map +1 -0
- package/esm2022/lib/components/select/index.js +12 -0
- package/esm2022/lib/components/select/index.js.map +1 -0
- package/esm2022/lib/components/select/select-group-label.js +28 -0
- package/esm2022/lib/components/select/select-group-label.js.map +1 -0
- package/esm2022/lib/components/select/select-group.js +28 -0
- package/esm2022/lib/components/select/select-group.js.map +1 -0
- package/esm2022/lib/components/select/select-input.js +27 -0
- package/esm2022/lib/components/select/select-input.js.map +1 -0
- package/esm2022/lib/components/select/select-item-icon.js +21 -0
- package/esm2022/lib/components/select/select-item-icon.js.map +1 -0
- package/esm2022/lib/components/select/select-item-indicator.js +20 -0
- package/esm2022/lib/components/select/select-item-indicator.js.map +1 -0
- package/esm2022/lib/components/select/select-item.js +49 -0
- package/esm2022/lib/components/select/select-item.js.map +1 -0
- package/esm2022/lib/components/select/select-list.js +33 -0
- package/esm2022/lib/components/select/select-list.js.map +1 -0
- package/esm2022/lib/components/select/select-popup.js +32 -0
- package/esm2022/lib/components/select/select-popup.js.map +1 -0
- package/esm2022/lib/components/select/select-portal.js +14 -0
- package/esm2022/lib/components/select/select-portal.js.map +1 -0
- package/esm2022/lib/components/select/select-separator.js +22 -0
- package/esm2022/lib/components/select/select-separator.js.map +1 -0
- package/esm2022/lib/components/select/select-trigger-icon.js +22 -0
- package/esm2022/lib/components/select/select-trigger-icon.js.map +1 -0
- package/esm2022/lib/components/select/select-trigger.js +49 -0
- package/esm2022/lib/components/select/select-trigger.js.map +1 -0
- package/esm2022/lib/components/select/select-value.js +28 -0
- package/esm2022/lib/components/select/select-value.js.map +1 -0
- package/esm2022/lib/components/select/select.js +93 -0
- package/esm2022/lib/components/select/select.js.map +1 -0
- package/esm2022/lib/components/separator/index.js +2 -0
- package/esm2022/lib/components/separator/index.js.map +1 -0
- package/esm2022/lib/components/separator/separator.js +26 -0
- package/esm2022/lib/components/separator/separator.js.map +1 -0
- package/esm2022/lib/components/sheet/index.js +10 -0
- package/esm2022/lib/components/sheet/index.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-close.js +29 -0
- package/esm2022/lib/components/sheet/sheet-close.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-description.js +23 -0
- package/esm2022/lib/components/sheet/sheet-description.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-footer.js +20 -0
- package/esm2022/lib/components/sheet/sheet-footer.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-header.js +20 -0
- package/esm2022/lib/components/sheet/sheet-header.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-portal.js +14 -0
- package/esm2022/lib/components/sheet/sheet-portal.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-provider.js +127 -0
- package/esm2022/lib/components/sheet/sheet-provider.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-title.js +23 -0
- package/esm2022/lib/components/sheet/sheet-title.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet-trigger.js +28 -0
- package/esm2022/lib/components/sheet/sheet-trigger.js.map +1 -0
- package/esm2022/lib/components/sheet/sheet.js +64 -0
- package/esm2022/lib/components/sheet/sheet.js.map +1 -0
- package/esm2022/lib/components/skeleton/index.js +2 -0
- package/esm2022/lib/components/skeleton/index.js.map +1 -0
- package/esm2022/lib/components/skeleton/skeleton.js +20 -0
- package/esm2022/lib/components/skeleton/skeleton.js.map +1 -0
- package/esm2022/lib/components/slider/index.js +2 -0
- package/esm2022/lib/components/slider/index.js.map +1 -0
- package/esm2022/lib/components/slider/slider.js +46 -0
- package/esm2022/lib/components/slider/slider.js.map +1 -0
- package/esm2022/lib/components/spinner/index.js +2 -0
- package/esm2022/lib/components/spinner/index.js.map +1 -0
- package/esm2022/lib/components/spinner/spinner.js +23 -0
- package/esm2022/lib/components/spinner/spinner.js.map +1 -0
- package/esm2022/lib/components/switch/index.js +5 -0
- package/esm2022/lib/components/switch/index.js.map +1 -0
- package/esm2022/lib/components/switch/switch-field.js +57 -0
- package/esm2022/lib/components/switch/switch-field.js.map +1 -0
- package/esm2022/lib/components/switch/switch-types.js +3 -0
- package/esm2022/lib/components/switch/switch-types.js.map +1 -0
- package/esm2022/lib/components/switch/switch-visual.js +34 -0
- package/esm2022/lib/components/switch/switch-visual.js.map +1 -0
- package/esm2022/lib/components/switch/switch.js +45 -0
- package/esm2022/lib/components/switch/switch.js.map +1 -0
- package/esm2022/lib/components/table/index.js +9 -0
- package/esm2022/lib/components/table/index.js.map +1 -0
- package/esm2022/lib/components/table/table-body.js +20 -0
- package/esm2022/lib/components/table/table-body.js.map +1 -0
- package/esm2022/lib/components/table/table-caption.js +20 -0
- package/esm2022/lib/components/table/table-caption.js.map +1 -0
- package/esm2022/lib/components/table/table-cell.js +20 -0
- package/esm2022/lib/components/table/table-cell.js.map +1 -0
- package/esm2022/lib/components/table/table-footer.js +20 -0
- package/esm2022/lib/components/table/table-footer.js.map +1 -0
- package/esm2022/lib/components/table/table-header-cell.js +20 -0
- package/esm2022/lib/components/table/table-header-cell.js.map +1 -0
- package/esm2022/lib/components/table/table-header.js +20 -0
- package/esm2022/lib/components/table/table-header.js.map +1 -0
- package/esm2022/lib/components/table/table-row.js +20 -0
- package/esm2022/lib/components/table/table-row.js.map +1 -0
- package/esm2022/lib/components/table/table.js +20 -0
- package/esm2022/lib/components/table/table.js.map +1 -0
- package/esm2022/lib/components/tabs/index.js +6 -0
- package/esm2022/lib/components/tabs/index.js.map +1 -0
- package/esm2022/lib/components/tabs/tab-content.js +16 -0
- package/esm2022/lib/components/tabs/tab-content.js.map +1 -0
- package/esm2022/lib/components/tabs/tab-list.js +57 -0
- package/esm2022/lib/components/tabs/tab-list.js.map +1 -0
- package/esm2022/lib/components/tabs/tab-panel.js +35 -0
- package/esm2022/lib/components/tabs/tab-panel.js.map +1 -0
- package/esm2022/lib/components/tabs/tab.js +34 -0
- package/esm2022/lib/components/tabs/tab.js.map +1 -0
- package/esm2022/lib/components/tabs/tabs.js +36 -0
- package/esm2022/lib/components/tabs/tabs.js.map +1 -0
- package/esm2022/lib/components/textarea/index.js +2 -0
- package/esm2022/lib/components/textarea/index.js.map +1 -0
- package/esm2022/lib/components/textarea/textarea.js +41 -0
- package/esm2022/lib/components/textarea/textarea.js.map +1 -0
- package/esm2022/lib/components/time-picker/index.js +10 -0
- package/esm2022/lib/components/time-picker/index.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-hours-input.js +67 -0
- package/esm2022/lib/components/time-picker/time-picker-hours-input.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-input.js +26 -0
- package/esm2022/lib/components/time-picker/time-picker-input.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-minutes-input.js +57 -0
- package/esm2022/lib/components/time-picker/time-picker-minutes-input.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-period-am.js +26 -0
- package/esm2022/lib/components/time-picker/time-picker-period-am.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-period-pm.js +26 -0
- package/esm2022/lib/components/time-picker/time-picker-period-pm.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-period.js +46 -0
- package/esm2022/lib/components/time-picker/time-picker-period.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-seconds-input.js +57 -0
- package/esm2022/lib/components/time-picker/time-picker-seconds-input.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker-separator.js +20 -0
- package/esm2022/lib/components/time-picker/time-picker-separator.js.map +1 -0
- package/esm2022/lib/components/time-picker/time-picker.js +58 -0
- package/esm2022/lib/components/time-picker/time-picker.js.map +1 -0
- package/esm2022/lib/components/toast/index.js +7 -0
- package/esm2022/lib/components/toast/index.js.map +1 -0
- package/esm2022/lib/components/toast/toast-action.js +21 -0
- package/esm2022/lib/components/toast/toast-action.js.map +1 -0
- package/esm2022/lib/components/toast/toast-close.js +25 -0
- package/esm2022/lib/components/toast/toast-close.js.map +1 -0
- package/esm2022/lib/components/toast/toast-description.js +20 -0
- package/esm2022/lib/components/toast/toast-description.js.map +1 -0
- package/esm2022/lib/components/toast/toast-stack.js +182 -0
- package/esm2022/lib/components/toast/toast-stack.js.map +1 -0
- package/esm2022/lib/components/toast/toast-title.js +20 -0
- package/esm2022/lib/components/toast/toast-title.js.map +1 -0
- package/esm2022/lib/components/toast/toast.js +58 -0
- package/esm2022/lib/components/toast/toast.js.map +1 -0
- package/esm2022/lib/components/toast/toast.types.js +1 -0
- package/esm2022/lib/components/toast/toast.types.js.map +1 -0
- package/esm2022/lib/components/toast/toaster.js +149 -0
- package/esm2022/lib/components/toast/toaster.js.map +1 -0
- package/esm2022/lib/components/toggle/index.js +2 -0
- package/esm2022/lib/components/toggle/index.js.map +1 -0
- package/esm2022/lib/components/toggle/toggle.js +52 -0
- package/esm2022/lib/components/toggle/toggle.js.map +1 -0
- package/esm2022/lib/components/toggle-group/index.js +3 -0
- package/esm2022/lib/components/toggle-group/index.js.map +1 -0
- package/esm2022/lib/components/toggle-group/toggle-group-item.js +45 -0
- package/esm2022/lib/components/toggle-group/toggle-group-item.js.map +1 -0
- package/esm2022/lib/components/toggle-group/toggle-group.js +61 -0
- package/esm2022/lib/components/toggle-group/toggle-group.js.map +1 -0
- package/esm2022/lib/components/toolbar/index.js +5 -0
- package/esm2022/lib/components/toolbar/index.js.map +1 -0
- package/esm2022/lib/components/toolbar/toolbar-separator.js +29 -0
- package/esm2022/lib/components/toolbar/toolbar-separator.js.map +1 -0
- package/esm2022/lib/components/toolbar/toolbar-widget-group.js +35 -0
- package/esm2022/lib/components/toolbar/toolbar-widget-group.js.map +1 -0
- package/esm2022/lib/components/toolbar/toolbar-widget.js +39 -0
- package/esm2022/lib/components/toolbar/toolbar-widget.js.map +1 -0
- package/esm2022/lib/components/toolbar/toolbar.js +38 -0
- package/esm2022/lib/components/toolbar/toolbar.js.map +1 -0
- package/esm2022/lib/components/tooltip/index.js +3 -0
- package/esm2022/lib/components/tooltip/index.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip-manager.js +165 -0
- package/esm2022/lib/components/tooltip/tooltip-manager.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip-trigger.js +115 -0
- package/esm2022/lib/components/tooltip/tooltip-trigger.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.js +66 -0
- package/esm2022/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/components/accordion/accordion-body.d.ts +7 -0
- package/lib/components/accordion/accordion-content.d.ts +6 -0
- package/lib/components/accordion/accordion-group.d.ts +8 -0
- package/lib/components/accordion/accordion-header.d.ts +7 -0
- package/lib/components/accordion/accordion-item.d.ts +7 -0
- package/lib/components/accordion/accordion-panel.d.ts +8 -0
- package/lib/components/accordion/accordion-trigger.d.ts +8 -0
- package/lib/components/accordion/index.d.ts +7 -0
- package/lib/components/alert/alert-action.d.ts +7 -0
- package/lib/components/alert/alert-description.d.ts +7 -0
- package/lib/components/alert/alert-title.d.ts +7 -0
- package/lib/components/alert/alert.d.ts +14 -0
- package/lib/components/alert/index.d.ts +4 -0
- package/lib/components/alert-dialog/alert-dialog-action.d.ts +11 -0
- package/lib/components/alert-dialog/alert-dialog-cancel.d.ts +11 -0
- package/lib/components/alert-dialog/alert-dialog-description.d.ts +9 -0
- package/lib/components/alert-dialog/alert-dialog-footer.d.ts +7 -0
- package/lib/components/alert-dialog/alert-dialog-header.d.ts +7 -0
- package/lib/components/alert-dialog/alert-dialog-media.d.ts +7 -0
- package/lib/components/alert-dialog/alert-dialog-portal.d.ts +7 -0
- package/lib/components/alert-dialog/alert-dialog-provider.d.ts +22 -0
- package/lib/components/alert-dialog/alert-dialog-title.d.ts +9 -0
- package/lib/components/alert-dialog/alert-dialog-trigger.d.ts +10 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts +19 -0
- package/lib/components/alert-dialog/index.d.ts +11 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +8 -0
- package/lib/components/aspect-ratio/index.d.ts +1 -0
- package/lib/components/avatar/avatar-badge.d.ts +7 -0
- package/lib/components/avatar/avatar-fallback.d.ts +8 -0
- package/lib/components/avatar/avatar-group-count.d.ts +7 -0
- package/lib/components/avatar/avatar-group.d.ts +7 -0
- package/lib/components/avatar/avatar-image.d.ts +12 -0
- package/lib/components/avatar/avatar.d.ts +12 -0
- package/lib/components/avatar/index.d.ts +6 -0
- package/lib/components/backdrop/backdrop.d.ts +23 -0
- package/lib/components/backdrop/index.d.ts +1 -0
- package/lib/components/badge/badge.d.ts +14 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/breadcrumb/breadcrumb-ellipsis.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb-link.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb-list.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb-page.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb-separator.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts +5 -0
- package/lib/components/breadcrumb/index.d.ts +7 -0
- package/lib/components/button/button.d.ts +5 -5
- package/lib/components/button-group/button-group-separator.d.ts +9 -0
- package/lib/components/button-group/button-group-text.d.ts +7 -0
- package/lib/components/button-group/button-group.d.ts +13 -0
- package/lib/components/button-group/index.d.ts +3 -0
- package/lib/components/calendar/calendar-day-view.d.ts +40 -0
- package/lib/components/calendar/calendar-header.d.ts +13 -0
- package/lib/components/calendar/calendar-month-view.d.ts +28 -0
- package/lib/components/calendar/calendar-year-view.d.ts +28 -0
- package/lib/components/calendar/calendar.d.ts +40 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/card/card-action.d.ts +7 -0
- package/lib/components/card/card-body.d.ts +7 -0
- package/lib/components/card/card-description.d.ts +7 -0
- package/lib/components/card/card-footer.d.ts +7 -0
- package/lib/components/card/card-header.d.ts +7 -0
- package/lib/components/card/card-title.d.ts +7 -0
- package/lib/components/card/card.d.ts +8 -0
- package/lib/components/card/index.d.ts +7 -0
- package/lib/components/checkbox/checkbox-field.d.ts +16 -0
- package/lib/components/checkbox/checkbox-types.d.ts +9 -0
- package/lib/components/checkbox/checkbox-visual.d.ts +8 -0
- package/lib/components/checkbox/checkbox.d.ts +19 -0
- package/lib/components/checkbox/index.d.ts +4 -0
- package/lib/components/collapsible/collapsible-body.d.ts +7 -0
- package/lib/components/collapsible/collapsible-content.d.ts +6 -0
- package/lib/components/collapsible/collapsible-panel.d.ts +8 -0
- package/lib/components/collapsible/collapsible-trigger.d.ts +14 -0
- package/lib/components/collapsible/collapsible.d.ts +8 -0
- package/lib/components/collapsible/index.d.ts +5 -0
- package/lib/components/date-picker/date-picker.d.ts +23 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/dialog/dialog-close.d.ts +11 -0
- package/lib/components/dialog/dialog-description.d.ts +9 -0
- package/lib/components/dialog/dialog-footer.d.ts +7 -0
- package/lib/components/dialog/dialog-header.d.ts +7 -0
- package/lib/components/dialog/dialog-portal.d.ts +7 -0
- package/lib/components/dialog/dialog-provider.d.ts +44 -0
- package/lib/components/dialog/dialog-title.d.ts +9 -0
- package/lib/components/dialog/dialog-trigger.d.ts +10 -0
- package/lib/components/dialog/dialog.d.ts +18 -0
- package/lib/components/dialog/index.d.ts +9 -0
- package/lib/components/drawer/drawer-close.d.ts +7 -0
- package/lib/components/drawer/drawer-description.d.ts +7 -0
- package/lib/components/drawer/drawer-footer.d.ts +7 -0
- package/lib/components/drawer/drawer-handle.d.ts +7 -0
- package/lib/components/drawer/drawer-header.d.ts +7 -0
- package/lib/components/drawer/drawer-portal.d.ts +7 -0
- package/lib/components/drawer/drawer-provider.d.ts +25 -0
- package/lib/components/drawer/drawer-title.d.ts +7 -0
- package/lib/components/drawer/drawer-trigger.d.ts +10 -0
- package/lib/components/drawer/drawer.d.ts +15 -0
- package/lib/components/drawer/index.d.ts +11 -0
- package/lib/components/empty/empty-body.d.ts +7 -0
- package/lib/components/empty/empty-description.d.ts +7 -0
- package/lib/components/empty/empty-header.d.ts +7 -0
- package/lib/components/empty/empty-media.d.ts +13 -0
- package/lib/components/empty/empty-title.d.ts +7 -0
- package/lib/components/empty/empty.d.ts +7 -0
- package/lib/components/empty/index.d.ts +6 -0
- package/lib/components/field/field-body.d.ts +7 -0
- package/lib/components/field/field-description.d.ts +7 -0
- package/lib/components/field/field-error.d.ts +7 -0
- package/lib/components/field/field-group.d.ts +7 -0
- package/lib/components/field/field-separator.d.ts +7 -0
- package/lib/components/field/field-title.d.ts +7 -0
- package/lib/components/field/field.d.ts +27 -0
- package/lib/components/field/fieldset.d.ts +7 -0
- package/lib/components/field/index.d.ts +10 -0
- package/lib/components/field/legend.d.ts +9 -0
- package/lib/components/file-upload/file-upload-dropzone.d.ts +15 -0
- package/lib/components/file-upload/file-upload-item-delete.d.ts +10 -0
- package/lib/components/file-upload/file-upload-item-name.d.ts +7 -0
- package/lib/components/file-upload/file-upload-item-preview.d.ts +11 -0
- package/lib/components/file-upload/file-upload-item-progress.d.ts +9 -0
- package/lib/components/file-upload/file-upload-item-size.d.ts +10 -0
- package/lib/components/file-upload/file-upload-item.d.ts +9 -0
- package/lib/components/file-upload/file-upload-list.d.ts +7 -0
- package/lib/components/file-upload/file-upload-trigger.d.ts +11 -0
- package/lib/components/file-upload/file-upload.d.ts +32 -0
- package/lib/components/file-upload/index.d.ts +11 -0
- package/lib/components/hover-card/hover-card-portal.d.ts +7 -0
- package/lib/components/hover-card/hover-card-provider.d.ts +34 -0
- package/lib/components/hover-card/hover-card-trigger.d.ts +22 -0
- package/lib/components/hover-card/hover-card.d.ts +21 -0
- package/lib/components/hover-card/index.d.ts +5 -0
- package/lib/components/index.d.ts +50 -0
- package/lib/components/input/index.d.ts +1 -0
- package/lib/components/input/input.d.ts +17 -0
- package/lib/components/input-group/index.d.ts +4 -0
- package/lib/components/input-group/input-group-addon.d.ts +14 -0
- package/lib/components/input-group/input-group-button.d.ts +15 -0
- package/lib/components/input-group/input-group-text.d.ts +7 -0
- package/lib/components/input-group/input-group.d.ts +7 -0
- package/lib/components/item/index.d.ts +10 -0
- package/lib/components/item/item-actions.d.ts +7 -0
- package/lib/components/item/item-body.d.ts +7 -0
- package/lib/components/item/item-description.d.ts +7 -0
- package/lib/components/item/item-footer.d.ts +7 -0
- package/lib/components/item/item-group.d.ts +7 -0
- package/lib/components/item/item-header.d.ts +7 -0
- package/lib/components/item/item-media.d.ts +13 -0
- package/lib/components/item/item-separator.d.ts +7 -0
- package/lib/components/item/item-title.d.ts +7 -0
- package/lib/components/item/item.d.ts +15 -0
- package/lib/components/kbd/index.d.ts +2 -0
- package/lib/components/kbd/kbd-group.d.ts +7 -0
- package/lib/components/kbd/kbd.d.ts +7 -0
- package/lib/components/label/index.d.ts +1 -0
- package/lib/components/label/label.d.ts +10 -0
- package/lib/components/link/link.d.ts +3 -3
- package/lib/components/menu/index.d.ts +7 -0
- package/lib/components/menu/menu-content.d.ts +6 -0
- package/lib/components/menu/menu-item.d.ts +17 -0
- package/lib/components/menu/menu-portal.d.ts +9 -0
- package/lib/components/menu/menu-provider.d.ts +15 -0
- package/lib/components/menu/menu-separator.d.ts +7 -0
- package/lib/components/menu/menu-trigger.d.ts +14 -0
- package/lib/components/menu/menu.d.ts +12 -0
- package/lib/components/menu-bar/index.d.ts +2 -0
- package/lib/components/menu-bar/menu-bar-item.d.ts +18 -0
- package/lib/components/menu-bar/menu-bar.d.ts +10 -0
- package/lib/components/native-select/index.d.ts +5 -0
- package/lib/components/native-select/native-select-container.d.ts +7 -0
- package/lib/components/native-select/native-select-icon.d.ts +7 -0
- package/lib/components/native-select/native-select-optgroup.d.ts +7 -0
- package/lib/components/native-select/native-select-option.d.ts +7 -0
- package/lib/components/native-select/native-select.d.ts +12 -0
- package/lib/components/navigation-menu/index.d.ts +7 -0
- package/lib/components/navigation-menu/navigation-menu-content.d.ts +10 -0
- package/lib/components/navigation-menu/navigation-menu-item.d.ts +27 -0
- package/lib/components/navigation-menu/navigation-menu-link.d.ts +8 -0
- package/lib/components/navigation-menu/navigation-menu-list.d.ts +7 -0
- package/lib/components/navigation-menu/navigation-menu-portal.d.ts +7 -0
- package/lib/components/navigation-menu/navigation-menu-trigger-icon.d.ts +8 -0
- package/lib/components/navigation-menu/navigation-menu-trigger.d.ts +12 -0
- package/lib/components/navigation-menu/navigation-menu.d.ts +10 -0
- package/lib/components/pagination/index.d.ts +10 -0
- package/lib/components/pagination/pagination-ellipsis.d.ts +7 -0
- package/lib/components/pagination/pagination-first.d.ts +15 -0
- package/lib/components/pagination/pagination-item.d.ts +7 -0
- package/lib/components/pagination/pagination-last.d.ts +15 -0
- package/lib/components/pagination/pagination-link.d.ts +16 -0
- package/lib/components/pagination/pagination-list.d.ts +7 -0
- package/lib/components/pagination/pagination-next.d.ts +15 -0
- package/lib/components/pagination/pagination-page-size-select.d.ts +14 -0
- package/lib/components/pagination/pagination-previous.d.ts +15 -0
- package/lib/components/pagination/pagination.d.ts +38 -0
- package/lib/components/popover/index.d.ts +9 -0
- package/lib/components/popover/popover-close.d.ts +9 -0
- package/lib/components/popover/popover-description.d.ts +7 -0
- package/lib/components/popover/popover-header.d.ts +7 -0
- package/lib/components/popover/popover-portal.d.ts +7 -0
- package/lib/components/popover/popover-provider.d.ts +39 -0
- package/lib/components/popover/popover-title.d.ts +7 -0
- package/lib/components/popover/popover-trigger.d.ts +13 -0
- package/lib/components/popover/popover.d.ts +15 -0
- package/lib/components/progress/index.d.ts +1 -0
- package/lib/components/progress/progress-indicator.d.ts +9 -0
- package/lib/components/progress/progress.d.ts +12 -0
- package/lib/components/radio-group/index.d.ts +3 -0
- package/lib/components/radio-group/radio-field.d.ts +10 -0
- package/lib/components/radio-group/radio-group.d.ts +7 -0
- package/lib/components/radio-group/radio.d.ts +8 -0
- package/lib/components/range-slider/index.d.ts +3 -0
- package/lib/components/range-slider/range-slider-max.d.ts +10 -0
- package/lib/components/range-slider/range-slider-min.d.ts +10 -0
- package/lib/components/range-slider/range-slider-thumb-base.d.ts +2 -0
- package/lib/components/range-slider/range-slider.d.ts +21 -0
- package/lib/components/select/index.d.ts +11 -0
- package/lib/components/select/select-group-label.d.ts +7 -0
- package/lib/components/select/select-group.d.ts +7 -0
- package/lib/components/select/select-input.d.ts +8 -0
- package/lib/components/select/select-item-icon.d.ts +7 -0
- package/lib/components/select/select-item-indicator.d.ts +7 -0
- package/lib/components/select/select-item.d.ts +11 -0
- package/lib/components/select/select-list.d.ts +10 -0
- package/lib/components/select/select-popup.d.ts +8 -0
- package/lib/components/select/select-portal.d.ts +7 -0
- package/lib/components/select/select-separator.d.ts +7 -0
- package/lib/components/select/select-trigger-icon.d.ts +8 -0
- package/lib/components/select/select-trigger.d.ts +12 -0
- package/lib/components/select/select-value.d.ts +7 -0
- package/lib/components/select/select.d.ts +21 -0
- package/lib/components/separator/index.d.ts +1 -0
- package/lib/components/separator/separator.d.ts +10 -0
- package/lib/components/sheet/index.d.ts +10 -0
- package/lib/components/sheet/sheet-close.d.ts +11 -0
- package/lib/components/sheet/sheet-description.d.ts +9 -0
- package/lib/components/sheet/sheet-footer.d.ts +7 -0
- package/lib/components/sheet/sheet-header.d.ts +7 -0
- package/lib/components/sheet/sheet-portal.d.ts +7 -0
- package/lib/components/sheet/sheet-provider.d.ts +25 -0
- package/lib/components/sheet/sheet-title.d.ts +9 -0
- package/lib/components/sheet/sheet-trigger.d.ts +10 -0
- package/lib/components/sheet/sheet.d.ts +18 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/skeleton/skeleton.d.ts +7 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/slider/slider.d.ts +15 -0
- package/lib/components/spinner/index.d.ts +1 -0
- package/lib/components/spinner/spinner.d.ts +8 -0
- package/lib/components/switch/index.d.ts +4 -0
- package/lib/components/switch/switch-field.d.ts +15 -0
- package/lib/components/switch/switch-types.d.ts +8 -0
- package/lib/components/switch/switch-visual.d.ts +9 -0
- package/lib/components/switch/switch.d.ts +18 -0
- package/lib/components/table/index.d.ts +8 -0
- package/lib/components/table/table-body.d.ts +7 -0
- package/lib/components/table/table-caption.d.ts +7 -0
- package/lib/components/table/table-cell.d.ts +7 -0
- package/lib/components/table/table-footer.d.ts +7 -0
- package/lib/components/table/table-header-cell.d.ts +7 -0
- package/lib/components/table/table-header.d.ts +7 -0
- package/lib/components/table/table-row.d.ts +7 -0
- package/lib/components/table/table.d.ts +7 -0
- package/lib/components/tabs/index.d.ts +5 -0
- package/lib/components/tabs/tab-content.d.ts +6 -0
- package/lib/components/tabs/tab-list.d.ts +12 -0
- package/lib/components/tabs/tab-panel.d.ts +8 -0
- package/lib/components/tabs/tab.d.ts +8 -0
- package/lib/components/tabs/tabs.d.ts +9 -0
- package/lib/components/textarea/index.d.ts +1 -0
- package/lib/components/textarea/textarea.d.ts +17 -0
- package/lib/components/time-picker/index.d.ts +10 -0
- package/lib/components/time-picker/time-picker-hours-input.d.ts +14 -0
- package/lib/components/time-picker/time-picker-input.d.ts +9 -0
- package/lib/components/time-picker/time-picker-minutes-input.d.ts +12 -0
- package/lib/components/time-picker/time-picker-period-am.d.ts +8 -0
- package/lib/components/time-picker/time-picker-period-pm.d.ts +8 -0
- package/lib/components/time-picker/time-picker-period.d.ts +12 -0
- package/lib/components/time-picker/time-picker-seconds-input.d.ts +12 -0
- package/lib/components/time-picker/time-picker-separator.d.ts +7 -0
- package/lib/components/time-picker/time-picker.d.ts +26 -0
- package/lib/components/toast/index.d.ts +7 -0
- package/lib/components/toast/toast-action.d.ts +7 -0
- package/lib/components/toast/toast-close.d.ts +9 -0
- package/lib/components/toast/toast-description.d.ts +7 -0
- package/lib/components/toast/toast-stack.d.ts +12 -0
- package/lib/components/toast/toast-title.d.ts +7 -0
- package/lib/components/toast/toast.d.ts +17 -0
- package/lib/components/toast/toast.types.d.ts +24 -0
- package/lib/components/toast/toaster.d.ts +50 -0
- package/lib/components/toggle/index.d.ts +1 -0
- package/lib/components/toggle/toggle.d.ts +18 -0
- package/lib/components/toggle-group/index.d.ts +2 -0
- package/lib/components/toggle-group/toggle-group-item.d.ts +16 -0
- package/lib/components/toggle-group/toggle-group.d.ts +16 -0
- package/lib/components/toolbar/index.d.ts +4 -0
- package/lib/components/toolbar/toolbar-separator.d.ts +9 -0
- package/lib/components/toolbar/toolbar-widget-group.d.ts +8 -0
- package/lib/components/toolbar/toolbar-widget.d.ts +10 -0
- package/lib/components/toolbar/toolbar.d.ts +10 -0
- package/lib/components/tooltip/index.d.ts +3 -0
- package/lib/components/tooltip/tooltip-manager.d.ts +22 -0
- package/lib/components/tooltip/tooltip-trigger.d.ts +35 -0
- package/lib/components/tooltip/tooltip.d.ts +22 -0
- package/package.json +9 -2
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { computed, Directive, inject } from '@angular/core';
|
|
2
|
+
import { ScTimePickerInput } from './time-picker-input';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScTimePickerMinutesInput {
|
|
5
|
+
input = inject(ScTimePickerInput);
|
|
6
|
+
timePicker = this.input.timePicker;
|
|
7
|
+
displayValue = computed(() => {
|
|
8
|
+
const val = this.timePicker.value();
|
|
9
|
+
if (!val)
|
|
10
|
+
return '00';
|
|
11
|
+
return val.minutes.toString().padStart(2, '0');
|
|
12
|
+
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
|
|
13
|
+
onInput(event) {
|
|
14
|
+
const el = event.target;
|
|
15
|
+
const value = el.value.replace(/\D/g, '');
|
|
16
|
+
const num = parseInt(value, 10);
|
|
17
|
+
if (!isNaN(num)) {
|
|
18
|
+
this.timePicker.setMinutes(Math.min(num, 59));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
onBlur() {
|
|
22
|
+
this.input.focused.set(false);
|
|
23
|
+
}
|
|
24
|
+
onFocus(event) {
|
|
25
|
+
this.input.focused.set(true);
|
|
26
|
+
event.target.select();
|
|
27
|
+
}
|
|
28
|
+
onKeydown(event) {
|
|
29
|
+
if (event.key === 'ArrowUp') {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
const val = this.timePicker.value() || { hours: 0, minutes: 0 };
|
|
32
|
+
this.timePicker.setMinutes(val.minutes >= 59 ? 0 : val.minutes + 1);
|
|
33
|
+
}
|
|
34
|
+
else if (event.key === 'ArrowDown') {
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
const val = this.timePicker.value() || { hours: 0, minutes: 0 };
|
|
37
|
+
this.timePicker.setMinutes(val.minutes <= 0 ? 59 : val.minutes - 1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerMinutesInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScTimePickerMinutesInput, isStandalone: true, selector: "input[scTimePickerMinutesInput]", host: { listeners: { "input": "onInput($event)", "blur": "onBlur()", "keydown": "onKeydown($event)", "focus": "onFocus($event)" }, properties: { "value": "displayValue()", "attr.aria-label": "\"Minutes\"" } }, ngImport: i0 });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerMinutesInput, decorators: [{
|
|
44
|
+
type: Directive,
|
|
45
|
+
args: [{
|
|
46
|
+
selector: 'input[scTimePickerMinutesInput]',
|
|
47
|
+
host: {
|
|
48
|
+
'[value]': 'displayValue()',
|
|
49
|
+
'[attr.aria-label]': '"Minutes"',
|
|
50
|
+
'(input)': 'onInput($event)',
|
|
51
|
+
'(blur)': 'onBlur()',
|
|
52
|
+
'(keydown)': 'onKeydown($event)',
|
|
53
|
+
'(focus)': 'onFocus($event)',
|
|
54
|
+
},
|
|
55
|
+
}]
|
|
56
|
+
}] });
|
|
57
|
+
//# sourceMappingURL=time-picker-minutes-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-minutes-input.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-minutes-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;;AAaxD,MAAM,OAAO,wBAAwB;IAClB,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAElC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;IAEjC,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtB,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC,wDAAC,CAAC;IAEO,OAAO,CAAC,KAAY;QAC5B,MAAM,EAAE,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC5C,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC1C,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEhC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YAChB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAES,MAAM;QACd,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAES,OAAO,CAAC,KAAiB;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5B,KAAK,CAAC,MAA2B,CAAC,MAAM,EAAE,CAAC;IAC9C,CAAC;IAES,SAAS,CAAC,KAAoB;QACtC,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;YAC5B,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAChE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACtE,CAAC;aAAM,IAAI,KAAK,CAAC,GAAG,KAAK,WAAW,EAAE,CAAC;YACrC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAChE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;uGAxCU,wBAAwB;2FAAxB,wBAAwB;;2FAAxB,wBAAwB;kBAXpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,iCAAiC;oBAC3C,IAAI,EAAE;wBACJ,SAAS,EAAE,gBAAgB;wBAC3B,mBAAmB,EAAE,WAAW;wBAChC,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,UAAU;wBACpB,WAAW,EAAE,mBAAmB;wBAChC,SAAS,EAAE,iBAAiB;qBAC7B;iBACF","sourcesContent":["import { computed, Directive, inject } from '@angular/core';\nimport { ScTimePickerInput } from './time-picker-input';\n\n@Directive({\n selector: 'input[scTimePickerMinutesInput]',\n host: {\n '[value]': 'displayValue()',\n '[attr.aria-label]': '\"Minutes\"',\n '(input)': 'onInput($event)',\n '(blur)': 'onBlur()',\n '(keydown)': 'onKeydown($event)',\n '(focus)': 'onFocus($event)',\n },\n})\nexport class ScTimePickerMinutesInput {\n private readonly input = inject(ScTimePickerInput);\n\n private readonly timePicker = this.input.timePicker;\n\n protected readonly displayValue = computed(() => {\n const val = this.timePicker.value();\n if (!val) return '00';\n return val.minutes.toString().padStart(2, '0');\n });\n\n protected onInput(event: Event): void {\n const el = event.target as HTMLInputElement;\n const value = el.value.replace(/\\D/g, '');\n const num = parseInt(value, 10);\n\n if (!isNaN(num)) {\n this.timePicker.setMinutes(Math.min(num, 59));\n }\n }\n\n protected onBlur(): void {\n this.input.focused.set(false);\n }\n\n protected onFocus(event: FocusEvent): void {\n this.input.focused.set(true);\n (event.target as HTMLInputElement).select();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setMinutes(val.minutes >= 59 ? 0 : val.minutes + 1);\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setMinutes(val.minutes <= 0 ? 59 : val.minutes - 1);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { computed, Directive, inject } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import { ScTimePickerPeriod } from './time-picker-period';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ScTimePickerPeriodAM {
|
|
6
|
+
period = inject(ScTimePickerPeriod);
|
|
7
|
+
class = computed(() => cn('rounded-md px-2 py-1.5 text-sm font-medium transition-colors', this.period.isAM()
|
|
8
|
+
? 'bg-primary text-primary-foreground'
|
|
9
|
+
: 'text-muted-foreground hover:bg-accent'), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriodAM, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScTimePickerPeriodAM, isStandalone: true, selector: "button[scTimePickerPeriodAM]", host: { attributes: { "data-slot": "time-picker-period-am", "type": "button" }, listeners: { "click": "period.selectAM()" }, properties: { "class": "class()", "disabled": "period.timePicker.disabled()" } }, ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriodAM, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: 'button[scTimePickerPeriodAM]',
|
|
17
|
+
host: {
|
|
18
|
+
'data-slot': 'time-picker-period-am',
|
|
19
|
+
type: 'button',
|
|
20
|
+
'[class]': 'class()',
|
|
21
|
+
'[disabled]': 'period.timePicker.disabled()',
|
|
22
|
+
'(click)': 'period.selectAM()',
|
|
23
|
+
},
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=time-picker-period-am.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-period-am.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-period-am.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;;AAY1D,MAAM,OAAO,oBAAoB;IACZ,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEpC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,8DAA8D,EAC9D,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAChB,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,uCAAuC,CAC5C,iDACF,CAAC;uGAVS,oBAAoB;2FAApB,oBAAoB;;2FAApB,oBAAoB;kBAVhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;wBACpB,YAAY,EAAE,8BAA8B;wBAC5C,SAAS,EAAE,mBAAmB;qBAC/B;iBACF","sourcesContent":["import { computed, Directive, inject } from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScTimePickerPeriod } from './time-picker-period';\n\n@Directive({\n selector: 'button[scTimePickerPeriodAM]',\n host: {\n 'data-slot': 'time-picker-period-am',\n type: 'button',\n '[class]': 'class()',\n '[disabled]': 'period.timePicker.disabled()',\n '(click)': 'period.selectAM()',\n },\n})\nexport class ScTimePickerPeriodAM {\n protected readonly period = inject(ScTimePickerPeriod);\n\n protected readonly class = computed(() =>\n cn(\n 'rounded-md px-2 py-1.5 text-sm font-medium transition-colors',\n this.period.isAM()\n ? 'bg-primary text-primary-foreground'\n : 'text-muted-foreground hover:bg-accent',\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { computed, Directive, inject } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import { ScTimePickerPeriod } from './time-picker-period';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ScTimePickerPeriodPM {
|
|
6
|
+
period = inject(ScTimePickerPeriod);
|
|
7
|
+
class = computed(() => cn('rounded-md px-2 py-1.5 text-sm font-medium transition-colors', this.period.isPM()
|
|
8
|
+
? 'bg-primary text-primary-foreground'
|
|
9
|
+
: 'text-muted-foreground hover:bg-accent'), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriodPM, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScTimePickerPeriodPM, isStandalone: true, selector: "button[scTimePickerPeriodPM]", host: { attributes: { "data-slot": "time-picker-period-pm", "type": "button" }, listeners: { "click": "period.selectPM()" }, properties: { "class": "class()", "disabled": "period.timePicker.disabled()" } }, ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriodPM, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: 'button[scTimePickerPeriodPM]',
|
|
17
|
+
host: {
|
|
18
|
+
'data-slot': 'time-picker-period-pm',
|
|
19
|
+
type: 'button',
|
|
20
|
+
'[class]': 'class()',
|
|
21
|
+
'[disabled]': 'period.timePicker.disabled()',
|
|
22
|
+
'(click)': 'period.selectPM()',
|
|
23
|
+
},
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=time-picker-period-pm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-period-pm.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-period-pm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;;AAY1D,MAAM,OAAO,oBAAoB;IACZ,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAEpC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,8DAA8D,EAC9D,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAChB,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,uCAAuC,CAC5C,iDACF,CAAC;uGAVS,oBAAoB;2FAApB,oBAAoB;;2FAApB,oBAAoB;kBAVhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;wBACpB,YAAY,EAAE,8BAA8B;wBAC5C,SAAS,EAAE,mBAAmB;qBAC/B;iBACF","sourcesContent":["import { computed, Directive, inject } from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScTimePickerPeriod } from './time-picker-period';\n\n@Directive({\n selector: 'button[scTimePickerPeriodPM]',\n host: {\n 'data-slot': 'time-picker-period-pm',\n type: 'button',\n '[class]': 'class()',\n '[disabled]': 'period.timePicker.disabled()',\n '(click)': 'period.selectPM()',\n },\n})\nexport class ScTimePickerPeriodPM {\n protected readonly period = inject(ScTimePickerPeriod);\n\n protected readonly class = computed(() =>\n cn(\n 'rounded-md px-2 py-1.5 text-sm font-medium transition-colors',\n this.period.isPM()\n ? 'bg-primary text-primary-foreground'\n : 'text-muted-foreground hover:bg-accent',\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import { SC_TIME_PICKER } from './time-picker';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ScTimePickerPeriod {
|
|
6
|
+
timePicker = inject(SC_TIME_PICKER);
|
|
7
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
8
|
+
class = computed(() => cn('ml-2 inline-flex rounded-md border border-input bg-background p-0.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
9
|
+
isAM = computed(() => {
|
|
10
|
+
const val = this.timePicker.value();
|
|
11
|
+
return val?.period === 'AM' || (!val?.period && (val?.hours ?? 0) < 12);
|
|
12
|
+
}, ...(ngDevMode ? [{ debugName: "isAM" }] : []));
|
|
13
|
+
isPM = computed(() => {
|
|
14
|
+
const val = this.timePicker.value();
|
|
15
|
+
return val?.period === 'PM' || (!val?.period && (val?.hours ?? 0) >= 12);
|
|
16
|
+
}, ...(ngDevMode ? [{ debugName: "isPM" }] : []));
|
|
17
|
+
selectAM() {
|
|
18
|
+
this.timePicker.setPeriod('AM');
|
|
19
|
+
const val = this.timePicker.value();
|
|
20
|
+
if (val && val.hours >= 12) {
|
|
21
|
+
this.timePicker.setHours(val.hours - 12);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
selectPM() {
|
|
25
|
+
this.timePicker.setPeriod('PM');
|
|
26
|
+
const val = this.timePicker.value();
|
|
27
|
+
if (val && val.hours < 12) {
|
|
28
|
+
this.timePicker.setHours(val.hours + 12);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriod, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScTimePickerPeriod, isStandalone: true, selector: "[scTimePickerPeriod]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "time-picker-period", "role": "group" }, properties: { "class": "class()", "attr.aria-label": "\"Select AM or PM\"" } }, ngImport: i0 });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerPeriod, decorators: [{
|
|
35
|
+
type: Directive,
|
|
36
|
+
args: [{
|
|
37
|
+
selector: '[scTimePickerPeriod]',
|
|
38
|
+
host: {
|
|
39
|
+
'data-slot': 'time-picker-period',
|
|
40
|
+
'[class]': 'class()',
|
|
41
|
+
role: 'group',
|
|
42
|
+
'[attr.aria-label]': '"Select AM or PM"',
|
|
43
|
+
},
|
|
44
|
+
}]
|
|
45
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
46
|
+
//# sourceMappingURL=time-picker-period.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-period.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-period.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAW/C,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAEpC,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,qEAAqE,EACrE,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;IAEO,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACpC,OAAO,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,CAAC,gDAAC,CAAC;IAEM,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACpC,OAAO,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC3E,CAAC,gDAAC,CAAC;IAEH,QAAQ;QACN,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACpC,IAAI,GAAG,IAAI,GAAG,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YAC3B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACpC,IAAI,GAAG,IAAI,GAAG,CAAC,KAAK,GAAG,EAAE,EAAE,CAAC;YAC1B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;uGApCU,kBAAkB;2FAAlB,kBAAkB;;2FAAlB,kBAAkB;kBAT9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,oBAAoB;wBACjC,SAAS,EAAE,SAAS;wBACpB,IAAI,EAAE,OAAO;wBACb,mBAAmB,EAAE,mBAAmB;qBACzC;iBACF","sourcesContent":["import { computed, Directive, inject, input } from '@angular/core';\nimport { cn } from '../../utils';\nimport { SC_TIME_PICKER } from './time-picker';\n\n@Directive({\n selector: '[scTimePickerPeriod]',\n host: {\n 'data-slot': 'time-picker-period',\n '[class]': 'class()',\n role: 'group',\n '[attr.aria-label]': '\"Select AM or PM\"',\n },\n})\nexport class ScTimePickerPeriod {\n readonly timePicker = inject(SC_TIME_PICKER);\n\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'ml-2 inline-flex rounded-md border border-input bg-background p-0.5',\n this.classInput(),\n ),\n );\n\n readonly isAM = computed(() => {\n const val = this.timePicker.value();\n return val?.period === 'AM' || (!val?.period && (val?.hours ?? 0) < 12);\n });\n\n readonly isPM = computed(() => {\n const val = this.timePicker.value();\n return val?.period === 'PM' || (!val?.period && (val?.hours ?? 0) >= 12);\n });\n\n selectAM(): void {\n this.timePicker.setPeriod('AM');\n const val = this.timePicker.value();\n if (val && val.hours >= 12) {\n this.timePicker.setHours(val.hours - 12);\n }\n }\n\n selectPM(): void {\n this.timePicker.setPeriod('PM');\n const val = this.timePicker.value();\n if (val && val.hours < 12) {\n this.timePicker.setHours(val.hours + 12);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { computed, Directive, inject } from '@angular/core';
|
|
2
|
+
import { ScTimePickerInput } from './time-picker-input';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScTimePickerSecondsInput {
|
|
5
|
+
input = inject(ScTimePickerInput);
|
|
6
|
+
timePicker = this.input.timePicker;
|
|
7
|
+
displayValue = computed(() => {
|
|
8
|
+
const val = this.timePicker.value();
|
|
9
|
+
if (!val)
|
|
10
|
+
return '00';
|
|
11
|
+
return (val.seconds ?? 0).toString().padStart(2, '0');
|
|
12
|
+
}, ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
|
|
13
|
+
onInput(event) {
|
|
14
|
+
const el = event.target;
|
|
15
|
+
const value = el.value.replace(/\D/g, '');
|
|
16
|
+
const num = parseInt(value, 10);
|
|
17
|
+
if (!isNaN(num)) {
|
|
18
|
+
this.timePicker.setSeconds(Math.min(num, 59));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
onBlur() {
|
|
22
|
+
this.input.focused.set(false);
|
|
23
|
+
}
|
|
24
|
+
onFocus(event) {
|
|
25
|
+
this.input.focused.set(true);
|
|
26
|
+
event.target.select();
|
|
27
|
+
}
|
|
28
|
+
onKeydown(event) {
|
|
29
|
+
if (event.key === 'ArrowUp') {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
const val = this.timePicker.value() || { hours: 0, minutes: 0 };
|
|
32
|
+
this.timePicker.setSeconds((val.seconds ?? 0) >= 59 ? 0 : (val.seconds ?? 0) + 1);
|
|
33
|
+
}
|
|
34
|
+
else if (event.key === 'ArrowDown') {
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
const val = this.timePicker.value() || { hours: 0, minutes: 0 };
|
|
37
|
+
this.timePicker.setSeconds((val.seconds ?? 0) <= 0 ? 59 : (val.seconds ?? 0) - 1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSecondsInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScTimePickerSecondsInput, isStandalone: true, selector: "input[scTimePickerSecondsInput]", host: { listeners: { "input": "onInput($event)", "blur": "onBlur()", "keydown": "onKeydown($event)", "focus": "onFocus($event)" }, properties: { "value": "displayValue()", "attr.aria-label": "\"Seconds\"" } }, ngImport: i0 });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSecondsInput, decorators: [{
|
|
44
|
+
type: Directive,
|
|
45
|
+
args: [{
|
|
46
|
+
selector: 'input[scTimePickerSecondsInput]',
|
|
47
|
+
host: {
|
|
48
|
+
'[value]': 'displayValue()',
|
|
49
|
+
'[attr.aria-label]': '"Seconds"',
|
|
50
|
+
'(input)': 'onInput($event)',
|
|
51
|
+
'(blur)': 'onBlur()',
|
|
52
|
+
'(keydown)': 'onKeydown($event)',
|
|
53
|
+
'(focus)': 'onFocus($event)',
|
|
54
|
+
},
|
|
55
|
+
}]
|
|
56
|
+
}] });
|
|
57
|
+
//# sourceMappingURL=time-picker-seconds-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-seconds-input.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-seconds-input.ts"],"names":[],"mappings":"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","sourcesContent":["import { computed, Directive, inject } from '@angular/core';\nimport { ScTimePickerInput } from './time-picker-input';\n\n@Directive({\n selector: 'input[scTimePickerSecondsInput]',\n host: {\n '[value]': 'displayValue()',\n '[attr.aria-label]': '\"Seconds\"',\n '(input)': 'onInput($event)',\n '(blur)': 'onBlur()',\n '(keydown)': 'onKeydown($event)',\n '(focus)': 'onFocus($event)',\n },\n})\nexport class ScTimePickerSecondsInput {\n private readonly input = inject(ScTimePickerInput);\n\n private readonly timePicker = this.input.timePicker;\n\n protected readonly displayValue = computed(() => {\n const val = this.timePicker.value();\n if (!val) return '00';\n return (val.seconds ?? 0).toString().padStart(2, '0');\n });\n\n protected onInput(event: Event): void {\n const el = event.target as HTMLInputElement;\n const value = el.value.replace(/\\D/g, '');\n const num = parseInt(value, 10);\n\n if (!isNaN(num)) {\n this.timePicker.setSeconds(Math.min(num, 59));\n }\n }\n\n protected onBlur(): void {\n this.input.focused.set(false);\n }\n\n protected onFocus(event: FocusEvent): void {\n this.input.focused.set(true);\n (event.target as HTMLInputElement).select();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setSeconds(\n (val.seconds ?? 0) >= 59 ? 0 : (val.seconds ?? 0) + 1,\n );\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n const val = this.timePicker.value() || { hours: 0, minutes: 0 };\n this.timePicker.setSeconds(\n (val.seconds ?? 0) <= 0 ? 59 : (val.seconds ?? 0) - 1,\n );\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScTimePickerSeparator {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('text-lg font-medium text-muted-foreground', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScTimePickerSeparator, isStandalone: true, selector: "[scTimePickerSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "time-picker-separator" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePickerSeparator, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[scTimePickerSeparator]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'time-picker-separator',
|
|
16
|
+
'[class]': 'class()',
|
|
17
|
+
},
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
20
|
+
//# sourceMappingURL=time-picker-separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-separator.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker-separator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,qBAAqB;IACvB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,2CAA2C,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACnE,CAAC;uGALS,qBAAqB;2FAArB,qBAAqB;;2FAArB,qBAAqB;kBAPjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,IAAI,EAAE;wBACJ,WAAW,EAAE,uBAAuB;wBACpC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scTimePickerSeparator]',\n host: {\n 'data-slot': 'time-picker-separator',\n '[class]': 'class()',\n },\n})\nexport class ScTimePickerSeparator {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-lg font-medium text-muted-foreground', this.classInput()),\n );\n}\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { computed, Directive, InjectionToken, input, model, } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export const SC_TIME_PICKER = new InjectionToken('SC_TIME_PICKER');
|
|
5
|
+
export class ScTimePicker {
|
|
6
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
7
|
+
format = input('12h', ...(ngDevMode ? [{ debugName: "format" }] : []));
|
|
8
|
+
showSeconds = input(false, ...(ngDevMode ? [{ debugName: "showSeconds" }] : []));
|
|
9
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
10
|
+
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
11
|
+
class = computed(() => cn('inline-flex items-center gap-1', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
12
|
+
formattedTime = computed(() => {
|
|
13
|
+
const val = this.value();
|
|
14
|
+
if (!val)
|
|
15
|
+
return '';
|
|
16
|
+
const hours = this.format() === '12h' ? val.hours % 12 || 12 : val.hours;
|
|
17
|
+
const hoursStr = hours.toString().padStart(2, '0');
|
|
18
|
+
const minutesStr = val.minutes.toString().padStart(2, '0');
|
|
19
|
+
let time = `${hoursStr}:${minutesStr}`;
|
|
20
|
+
if (this.showSeconds() && val.seconds !== undefined) {
|
|
21
|
+
time += `:${val.seconds.toString().padStart(2, '0')}`;
|
|
22
|
+
}
|
|
23
|
+
if (this.format() === '12h' && val.period) {
|
|
24
|
+
time += ` ${val.period}`;
|
|
25
|
+
}
|
|
26
|
+
return time;
|
|
27
|
+
}, ...(ngDevMode ? [{ debugName: "formattedTime" }] : []));
|
|
28
|
+
setHours(hours) {
|
|
29
|
+
const current = this.value() || { hours: 0, minutes: 0 };
|
|
30
|
+
this.value.set({ ...current, hours });
|
|
31
|
+
}
|
|
32
|
+
setMinutes(minutes) {
|
|
33
|
+
const current = this.value() || { hours: 0, minutes: 0 };
|
|
34
|
+
this.value.set({ ...current, minutes });
|
|
35
|
+
}
|
|
36
|
+
setSeconds(seconds) {
|
|
37
|
+
const current = this.value() || { hours: 0, minutes: 0 };
|
|
38
|
+
this.value.set({ ...current, seconds });
|
|
39
|
+
}
|
|
40
|
+
setPeriod(period) {
|
|
41
|
+
const current = this.value() || { hours: 0, minutes: 0 };
|
|
42
|
+
this.value.set({ ...current, period });
|
|
43
|
+
}
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
45
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScTimePicker, isStandalone: true, selector: "[scTimePicker]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "time-picker" }, properties: { "class": "class()" } }, providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }], ngImport: i0 });
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScTimePicker, decorators: [{
|
|
48
|
+
type: Directive,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: '[scTimePicker]',
|
|
51
|
+
providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }],
|
|
52
|
+
host: {
|
|
53
|
+
'data-slot': 'time-picker',
|
|
54
|
+
'[class]': 'class()',
|
|
55
|
+
},
|
|
56
|
+
}]
|
|
57
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
58
|
+
//# sourceMappingURL=time-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/time-picker/time-picker.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n computed,\n Directive,\n InjectionToken,\n input,\n model,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\nexport type ScTimeFormat = '12h' | '24h';\nexport type ScTimePeriod = 'AM' | 'PM';\n\nexport interface ScTimeValue {\n hours: number;\n minutes: number;\n seconds?: number;\n period?: ScTimePeriod;\n}\n\nexport const SC_TIME_PICKER = new InjectionToken<ScTimePicker>(\n 'SC_TIME_PICKER',\n);\n\n@Directive({\n selector: '[scTimePicker]',\n providers: [{ provide: SC_TIME_PICKER, useExisting: ScTimePicker }],\n host: {\n 'data-slot': 'time-picker',\n '[class]': 'class()',\n },\n})\nexport class ScTimePicker {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly format = input<ScTimeFormat>('12h');\n readonly showSeconds = input<boolean>(false);\n readonly disabled = input<boolean>(false);\n readonly value = model<ScTimeValue | null>(null);\n\n protected readonly class = computed(() =>\n cn('inline-flex items-center gap-1', this.classInput()),\n );\n\n readonly formattedTime = computed(() => {\n const val = this.value();\n if (!val) return '';\n\n const hours = this.format() === '12h' ? val.hours % 12 || 12 : val.hours;\n const hoursStr = hours.toString().padStart(2, '0');\n const minutesStr = val.minutes.toString().padStart(2, '0');\n\n let time = `${hoursStr}:${minutesStr}`;\n\n if (this.showSeconds() && val.seconds !== undefined) {\n time += `:${val.seconds.toString().padStart(2, '0')}`;\n }\n\n if (this.format() === '12h' && val.period) {\n time += ` ${val.period}`;\n }\n\n return time;\n });\n\n setHours(hours: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, hours });\n }\n\n setMinutes(minutes: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, minutes });\n }\n\n setSeconds(seconds: number): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, seconds });\n }\n\n setPeriod(period: ScTimePeriod): void {\n const current = this.value() || { hours: 0, minutes: 0 };\n this.value.set({ ...current, period });\n }\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ScToast } from './toast';
|
|
2
|
+
export { ScToastAction } from './toast-action';
|
|
3
|
+
export { ScToastClose } from './toast-close';
|
|
4
|
+
export { ScToastDescription } from './toast-description';
|
|
5
|
+
export { ScToastTitle } from './toast-title';
|
|
6
|
+
export { ScToaster } from './toaster';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export { ScToast } from './toast';\nexport { ScToastAction } from './toast-action';\nexport { ScToastClose } from './toast-close';\nexport { ScToastDescription } from './toast-description';\nexport { ScToastTitle } from './toast-title';\nexport { ScToaster } from './toaster';\nexport type {\n ScToastConfig,\n ScToastData,\n ScToastPosition,\n ScToastVariant,\n} from './toast.types';\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScToastAction {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3', 'text-sm font-medium transition-colors', 'hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring', 'disabled:pointer-events-none disabled:opacity-50', 'group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30', 'group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground', 'group-[.destructive]:focus:ring-destructive', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastAction, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastAction, isStandalone: true, selector: "button[scToastAction]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toast-action", "type": "button" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastAction, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'button[scToastAction]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'toast-action',
|
|
16
|
+
type: 'button',
|
|
17
|
+
'[class]': 'class()',
|
|
18
|
+
},
|
|
19
|
+
}]
|
|
20
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
21
|
+
//# sourceMappingURL=toast-action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-action.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAUjC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,4FAA4F,EAC5F,uCAAuC,EACvC,oEAAoE,EACpE,kDAAkD,EAClD,uFAAuF,EACvF,kGAAkG,EAClG,6CAA6C,EAC7C,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAdS,aAAa;2FAAb,aAAa;;2FAAb,aAAa;kBARzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'button[scToastAction]',\n host: {\n 'data-slot': 'toast-action',\n type: 'button',\n '[class]': 'class()',\n },\n})\nexport class ScToastAction {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3',\n 'text-sm font-medium transition-colors',\n 'hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50',\n 'group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30',\n 'group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground',\n 'group-[.destructive]:focus:ring-destructive',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { computed, Directive, input, output } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScToastClose {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
/** Emitted when close button is clicked */
|
|
7
|
+
close = output();
|
|
8
|
+
class = computed(() => cn('absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity', 'hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100', 'group-[.destructive]:text-red-800/50 group-[.destructive]:hover:text-red-800', 'group-[.destructive]:focus:ring-red-400', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastClose, isStandalone: true, selector: "button[scToastClose]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close" }, host: { attributes: { "data-slot": "toast-close", "type": "button", "aria-label": "Close" }, listeners: { "click": "close.emit()" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastClose, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'button[scToastClose]',
|
|
16
|
+
host: {
|
|
17
|
+
'data-slot': 'toast-close',
|
|
18
|
+
type: 'button',
|
|
19
|
+
'[class]': 'class()',
|
|
20
|
+
'aria-label': 'Close',
|
|
21
|
+
'(click)': 'close.emit()',
|
|
22
|
+
},
|
|
23
|
+
}]
|
|
24
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], close: [{ type: i0.Output, args: ["close"] }] } });
|
|
25
|
+
//# sourceMappingURL=toast-close.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-close.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-close.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAYjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE5D,2CAA2C;IAClC,KAAK,GAAG,MAAM,EAAQ,CAAC;IAEb,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,uFAAuF,EACvF,iGAAiG,EACjG,8EAA8E,EAC9E,yCAAyC,EACzC,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAdS,YAAY;2FAAZ,YAAY;;2FAAZ,YAAY;kBAVxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,SAAS;wBACpB,YAAY,EAAE,OAAO;wBACrB,SAAS,EAAE,cAAc;qBAC1B;iBACF","sourcesContent":["import { computed, Directive, input, output } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'button[scToastClose]',\n host: {\n 'data-slot': 'toast-close',\n type: 'button',\n '[class]': 'class()',\n 'aria-label': 'Close',\n '(click)': 'close.emit()',\n },\n})\nexport class ScToastClose {\n readonly classInput = input<string>('', { alias: 'class' });\n\n /** Emitted when close button is clicked */\n readonly close = output<void>();\n\n protected readonly class = computed(() =>\n cn(\n 'absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity',\n 'hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100',\n 'group-[.destructive]:text-red-800/50 group-[.destructive]:hover:text-red-800',\n 'group-[.destructive]:focus:ring-red-400',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScToastDescription {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('text-sm opacity-90', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScToastDescription, isStandalone: true, selector: "[scToastDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toast-description" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScToastDescription, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[scToastDescription]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'toast-description',
|
|
16
|
+
'[class]': 'class()',
|
|
17
|
+
},
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
20
|
+
//# sourceMappingURL=toast-description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-description.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/toast/toast-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC5C,CAAC;uGALS,kBAAkB;2FAAlB,kBAAkB;;2FAAlB,kBAAkB;kBAP9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,mBAAmB;wBAChC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scToastDescription]',\n host: {\n 'data-slot': 'toast-description',\n '[class]': 'class()',\n },\n})\nexport class ScToastDescription {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-sm opacity-90', this.classInput()),\n );\n}\n"]}
|