@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,38 @@
|
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import { ScRangeSlider } from './range-slider';
|
|
4
|
+
import { MAX_THUMB_CLASSES } from './range-slider-thumb-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class ScRangeSliderMax {
|
|
7
|
+
rangeSlider = inject(ScRangeSlider);
|
|
8
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
9
|
+
class = computed(() => cn(...MAX_THUMB_CLASSES, this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
10
|
+
onInput(event) {
|
|
11
|
+
const el = event.target;
|
|
12
|
+
const val = +el.value;
|
|
13
|
+
const clamped = this.rangeSlider.clampMax(val);
|
|
14
|
+
this.rangeSlider.maxValue.set(clamped);
|
|
15
|
+
if (val !== clamped) {
|
|
16
|
+
el.value = String(clamped);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMax, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSliderMax, isStandalone: true, selector: "input[scRangeSliderMax]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.maxValue()", "class": "class()" } }, ngImport: i0 });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMax, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'input[scRangeSliderMax]',
|
|
26
|
+
host: {
|
|
27
|
+
type: 'range',
|
|
28
|
+
'[min]': 'rangeSlider.min()',
|
|
29
|
+
'[max]': 'rangeSlider.max()',
|
|
30
|
+
'[step]': 'rangeSlider.step()',
|
|
31
|
+
'[disabled]': 'rangeSlider.disabled()',
|
|
32
|
+
'[value]': 'rangeSlider.maxValue()',
|
|
33
|
+
'[class]': 'class()',
|
|
34
|
+
'(input)': 'onInput($event)',
|
|
35
|
+
},
|
|
36
|
+
}]
|
|
37
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
38
|
+
//# sourceMappingURL=range-slider-max.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-slider-max.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/range-slider/range-slider-max.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;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;;AAe9D,MAAM,OAAO,gBAAgB;IACR,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAE9C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,GAAG,iBAAiB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC5C,CAAC;IAEQ,OAAO,CAAC,KAAY;QAC5B,MAAM,EAAE,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC5C,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEvC,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;uGAlBU,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAb5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,OAAO,EAAE,mBAAmB;wBAC5B,OAAO,EAAE,mBAAmB;wBAC5B,QAAQ,EAAE,oBAAoB;wBAC9B,YAAY,EAAE,wBAAwB;wBACtC,SAAS,EAAE,wBAAwB;wBACnC,SAAS,EAAE,SAAS;wBACpB,SAAS,EAAE,iBAAiB;qBAC7B;iBACF","sourcesContent":["import { computed, Directive, inject, input } from '@angular/core';\nimport { cn } from '../../utils';\n\nimport { ScRangeSlider } from './range-slider';\nimport { MAX_THUMB_CLASSES } from './range-slider-thumb-base';\n\n@Directive({\n selector: 'input[scRangeSliderMax]',\n host: {\n type: 'range',\n '[min]': 'rangeSlider.min()',\n '[max]': 'rangeSlider.max()',\n '[step]': 'rangeSlider.step()',\n '[disabled]': 'rangeSlider.disabled()',\n '[value]': 'rangeSlider.maxValue()',\n '[class]': 'class()',\n '(input)': 'onInput($event)',\n },\n})\nexport class ScRangeSliderMax {\n protected readonly rangeSlider = inject(ScRangeSlider);\n\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(...MAX_THUMB_CLASSES, this.classInput()),\n );\n\n protected onInput(event: Event) {\n const el = event.target as HTMLInputElement;\n const val = +el.value;\n const clamped = this.rangeSlider.clampMax(val);\n this.rangeSlider.maxValue.set(clamped);\n\n if (val !== clamped) {\n el.value = String(clamped);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import { ScRangeSlider } from './range-slider';
|
|
4
|
+
import { MIN_THUMB_CLASSES } from './range-slider-thumb-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class ScRangeSliderMin {
|
|
7
|
+
rangeSlider = inject(ScRangeSlider);
|
|
8
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
9
|
+
class = computed(() => cn(...MIN_THUMB_CLASSES, this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
10
|
+
onInput(event) {
|
|
11
|
+
const el = event.target;
|
|
12
|
+
const val = +el.value;
|
|
13
|
+
const clamped = this.rangeSlider.clampMin(val);
|
|
14
|
+
this.rangeSlider.minValue.set(clamped);
|
|
15
|
+
if (val !== clamped) {
|
|
16
|
+
el.value = String(clamped);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMin, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSliderMin, isStandalone: true, selector: "input[scRangeSliderMin]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.minValue()", "class": "class()" } }, ngImport: i0 });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMin, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'input[scRangeSliderMin]',
|
|
26
|
+
host: {
|
|
27
|
+
type: 'range',
|
|
28
|
+
'[min]': 'rangeSlider.min()',
|
|
29
|
+
'[max]': 'rangeSlider.max()',
|
|
30
|
+
'[step]': 'rangeSlider.step()',
|
|
31
|
+
'[disabled]': 'rangeSlider.disabled()',
|
|
32
|
+
'[value]': 'rangeSlider.minValue()',
|
|
33
|
+
'[class]': 'class()',
|
|
34
|
+
'(input)': 'onInput($event)',
|
|
35
|
+
},
|
|
36
|
+
}]
|
|
37
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
38
|
+
//# sourceMappingURL=range-slider-min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-slider-min.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/range-slider/range-slider-min.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;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;;AAe9D,MAAM,OAAO,gBAAgB;IACR,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAE9C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,GAAG,iBAAiB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC5C,CAAC;IAEQ,OAAO,CAAC,KAAY;QAC5B,MAAM,EAAE,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC5C,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEvC,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;uGAlBU,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAb5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,OAAO,EAAE,mBAAmB;wBAC5B,OAAO,EAAE,mBAAmB;wBAC5B,QAAQ,EAAE,oBAAoB;wBAC9B,YAAY,EAAE,wBAAwB;wBACtC,SAAS,EAAE,wBAAwB;wBACnC,SAAS,EAAE,SAAS;wBACpB,SAAS,EAAE,iBAAiB;qBAC7B;iBACF","sourcesContent":["import { computed, Directive, inject, input } from '@angular/core';\nimport { cn } from '../../utils';\n\nimport { ScRangeSlider } from './range-slider';\nimport { MIN_THUMB_CLASSES } from './range-slider-thumb-base';\n\n@Directive({\n selector: 'input[scRangeSliderMin]',\n host: {\n type: 'range',\n '[min]': 'rangeSlider.min()',\n '[max]': 'rangeSlider.max()',\n '[step]': 'rangeSlider.step()',\n '[disabled]': 'rangeSlider.disabled()',\n '[value]': 'rangeSlider.minValue()',\n '[class]': 'class()',\n '(input)': 'onInput($event)',\n },\n})\nexport class ScRangeSliderMin {\n protected readonly rangeSlider = inject(ScRangeSlider);\n\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(...MIN_THUMB_CLASSES, this.classInput()),\n );\n\n protected onInput(event: Event) {\n const el = event.target as HTMLInputElement;\n const val = +el.value;\n const clamped = this.rangeSlider.clampMin(val);\n this.rangeSlider.minValue.set(clamped);\n\n if (val !== clamped) {\n el.value = String(clamped);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const SHARED_THUMB_CLASSES = [
|
|
2
|
+
'pointer-events-none absolute top-0 h-full w-full cursor-pointer appearance-none bg-transparent',
|
|
3
|
+
'disabled:pointer-events-none disabled:opacity-50',
|
|
4
|
+
'[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-0 [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:transition-shadow',
|
|
5
|
+
'[&::-webkit-slider-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',
|
|
6
|
+
'[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:size-3 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:transition-shadow',
|
|
7
|
+
'[&::-moz-range-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',
|
|
8
|
+
'focus-visible:outline-none [&:focus-visible::-webkit-slider-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',
|
|
9
|
+
'[&:focus-visible::-moz-range-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',
|
|
10
|
+
];
|
|
11
|
+
export const MIN_THUMB_CLASSES = [
|
|
12
|
+
...SHARED_THUMB_CLASSES,
|
|
13
|
+
'z-10',
|
|
14
|
+
'[&::-webkit-slider-thumb]:-mt-1.5',
|
|
15
|
+
'[&::-webkit-slider-runnable-track]:appearance-none [&::-webkit-slider-runnable-track]:h-0 [&::-webkit-slider-runnable-track]:bg-transparent',
|
|
16
|
+
'[&::-moz-range-track]:h-0 [&::-moz-range-track]:bg-transparent',
|
|
17
|
+
];
|
|
18
|
+
export const MAX_THUMB_CLASSES = [
|
|
19
|
+
...SHARED_THUMB_CLASSES,
|
|
20
|
+
'[&::-webkit-slider-thumb]:-mt-1',
|
|
21
|
+
'[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]',
|
|
22
|
+
'[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]',
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=range-slider-thumb-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-slider-thumb-base.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/range-slider/range-slider-thumb-base.ts"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG;IAC3B,gGAAgG;IAChG,kDAAkD;IAClD,qRAAqR;IACrR,sFAAsF;IACtF,yPAAyP;IACzP,kFAAkF;IAClF,yHAAyH;IACzH,0FAA0F;CAClF,CAAC;AAEX,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,oBAAoB;IACvB,MAAM;IACN,mCAAmC;IACnC,6IAA6I;IAC7I,gEAAgE;CACxD,CAAC;AAEX,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,oBAAoB;IACvB,iCAAiC;IACjC,qRAAqR;IACrR,8OAA8O;CACtO,CAAC","sourcesContent":["const SHARED_THUMB_CLASSES = [\n 'pointer-events-none absolute top-0 h-full w-full cursor-pointer appearance-none bg-transparent',\n 'disabled:pointer-events-none disabled:opacity-50',\n '[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:size-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-0 [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:transition-shadow',\n '[&::-webkit-slider-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',\n '[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:size-3 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:transition-shadow',\n '[&::-moz-range-thumb:hover]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',\n 'focus-visible:outline-none [&:focus-visible::-webkit-slider-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',\n '[&:focus-visible::-moz-range-thumb]:shadow-[0_0_0_3px_oklch(from_var(--ring)_l_c_h/0.5)]',\n] as const;\n\nexport const MIN_THUMB_CLASSES = [\n ...SHARED_THUMB_CLASSES,\n 'z-10',\n '[&::-webkit-slider-thumb]:-mt-1.5',\n '[&::-webkit-slider-runnable-track]:appearance-none [&::-webkit-slider-runnable-track]:h-0 [&::-webkit-slider-runnable-track]:bg-transparent',\n '[&::-moz-range-track]:h-0 [&::-moz-range-track]:bg-transparent',\n] as const;\n\nexport const MAX_THUMB_CLASSES = [\n ...SHARED_THUMB_CLASSES,\n '[&::-webkit-slider-thumb]:-mt-1',\n '[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]',\n '[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-[image:linear-gradient(to_right,var(--muted)_var(--min-percent),var(--primary)_var(--min-percent)_var(--max-percent),var(--muted)_var(--max-percent))]',\n] as const;\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { computed, Directive, ElementRef, inject, input, model, } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScRangeSlider {
|
|
5
|
+
el = inject(ElementRef);
|
|
6
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
7
|
+
minValue = model(0, ...(ngDevMode ? [{ debugName: "minValue" }] : []));
|
|
8
|
+
maxValue = model(100, ...(ngDevMode ? [{ debugName: "maxValue" }] : []));
|
|
9
|
+
min = input(0, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
10
|
+
max = input(100, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
11
|
+
step = input(1, ...(ngDevMode ? [{ debugName: "step" }] : []));
|
|
12
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
13
|
+
class = computed(() => cn('relative flex h-3 w-full items-center', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
14
|
+
minPercent = computed(() => {
|
|
15
|
+
const range = this.max() - this.min();
|
|
16
|
+
return range === 0 ? 0 : ((this.minValue() - this.min()) / range) * 100;
|
|
17
|
+
}, ...(ngDevMode ? [{ debugName: "minPercent" }] : []));
|
|
18
|
+
maxPercent = computed(() => {
|
|
19
|
+
const range = this.max() - this.min();
|
|
20
|
+
return range === 0 ? 0 : ((this.maxValue() - this.min()) / range) * 100;
|
|
21
|
+
}, ...(ngDevMode ? [{ debugName: "maxPercent" }] : []));
|
|
22
|
+
minPercentCss = computed(() => `${this.minPercent()}%`, ...(ngDevMode ? [{ debugName: "minPercentCss" }] : []));
|
|
23
|
+
maxPercentCss = computed(() => `${this.maxPercent()}%`, ...(ngDevMode ? [{ debugName: "maxPercentCss" }] : []));
|
|
24
|
+
onPointerDown(event) {
|
|
25
|
+
if (this.disabled()) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const rect = this.el.nativeElement.getBoundingClientRect();
|
|
29
|
+
const percent = ((event.clientX - rect.left) / rect.width) * 100;
|
|
30
|
+
const value = this.min() + (percent / 100) * (this.max() - this.min());
|
|
31
|
+
const stepped = Math.round(value / this.step()) * this.step();
|
|
32
|
+
const distToMin = Math.abs(stepped - this.minValue());
|
|
33
|
+
const distToMax = Math.abs(stepped - this.maxValue());
|
|
34
|
+
if (distToMin <= distToMax) {
|
|
35
|
+
this.minValue.set(this.clampMin(stepped));
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.maxValue.set(this.clampMax(stepped));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
clampMin(val) {
|
|
42
|
+
return Math.min(val, this.maxValue());
|
|
43
|
+
}
|
|
44
|
+
clampMax(val) {
|
|
45
|
+
return Math.max(val, this.minValue());
|
|
46
|
+
}
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSlider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
48
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSlider, isStandalone: true, selector: "div[scRangeSlider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { minValue: "minValueChange", maxValue: "maxValueChange" }, host: { listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "class": "class()", "style.--min-percent": "minPercentCss()", "style.--max-percent": "maxPercentCss()" } }, ngImport: i0 });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSlider, decorators: [{
|
|
51
|
+
type: Directive,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'div[scRangeSlider]',
|
|
54
|
+
host: {
|
|
55
|
+
'[class]': 'class()',
|
|
56
|
+
'[style.--min-percent]': 'minPercentCss()',
|
|
57
|
+
'[style.--max-percent]': 'maxPercentCss()',
|
|
58
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
59
|
+
},
|
|
60
|
+
}]
|
|
61
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], minValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "minValue", required: false }] }, { type: i0.Output, args: ["minValueChange"] }], maxValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxValue", required: false }] }, { type: i0.Output, args: ["maxValueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
62
|
+
//# sourceMappingURL=range-slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-slider.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/range-slider/range-slider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAWjC,MAAM,OAAO,aAAa;IACP,EAAE,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAEzD,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEnD,QAAQ,GAAG,KAAK,CAAS,CAAC,oDAAC,CAAC;IAC5B,QAAQ,GAAG,KAAK,CAAS,GAAG,oDAAC,CAAC;IAE9B,GAAG,GAAG,KAAK,CAAS,CAAC,+CAAC,CAAC;IACvB,GAAG,GAAG,KAAK,CAAS,GAAG,+CAAC,CAAC;IACzB,IAAI,GAAG,KAAK,CAAS,CAAC,gDAAC,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC,CAAC;IAEvB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,uCAAuC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC/D,CAAC;IAEO,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;QAClC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;IAC1E,CAAC,sDAAC,CAAC;IAEM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;QAClC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;IAC1E,CAAC,sDAAC,CAAC;IAEgB,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,yDAAC,CAAC;IACxD,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,yDAAC,CAAC;IAEjE,aAAa,CAAC,KAAmB;QACzC,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;QAC3D,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;QACjE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACvE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAE9D,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtD,IAAI,SAAS,IAAI,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxC,CAAC;uGAxDU,aAAa;2FAAb,aAAa;;2FAAb,aAAa;kBATzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,IAAI,EAAE;wBACJ,SAAS,EAAE,SAAS;wBACpB,uBAAuB,EAAE,iBAAiB;wBAC1C,uBAAuB,EAAE,iBAAiB;wBAC1C,eAAe,EAAE,uBAAuB;qBACzC;iBACF","sourcesContent":["import {\n computed,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'div[scRangeSlider]',\n host: {\n '[class]': 'class()',\n '[style.--min-percent]': 'minPercentCss()',\n '[style.--max-percent]': 'maxPercentCss()',\n '(pointerdown)': 'onPointerDown($event)',\n },\n})\nexport class ScRangeSlider {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly classInput = input<string>('', { alias: 'class' });\n\n readonly minValue = model<number>(0);\n readonly maxValue = model<number>(100);\n\n readonly min = input<number>(0);\n readonly max = input<number>(100);\n readonly step = input<number>(1);\n readonly disabled = input<boolean>(false);\n\n protected readonly class = computed(() =>\n cn('relative flex h-3 w-full items-center', this.classInput()),\n );\n\n readonly minPercent = computed(() => {\n const range = this.max() - this.min();\n return range === 0 ? 0 : ((this.minValue() - this.min()) / range) * 100;\n });\n\n readonly maxPercent = computed(() => {\n const range = this.max() - this.min();\n return range === 0 ? 0 : ((this.maxValue() - this.min()) / range) * 100;\n });\n\n protected readonly minPercentCss = computed(() => `${this.minPercent()}%`);\n protected readonly maxPercentCss = computed(() => `${this.maxPercent()}%`);\n\n protected onPointerDown(event: PointerEvent) {\n if (this.disabled()) {\n return;\n }\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const percent = ((event.clientX - rect.left) / rect.width) * 100;\n const value = this.min() + (percent / 100) * (this.max() - this.min());\n const stepped = Math.round(value / this.step()) * this.step();\n\n const distToMin = Math.abs(stepped - this.minValue());\n const distToMax = Math.abs(stepped - this.maxValue());\n\n if (distToMin <= distToMax) {\n this.minValue.set(this.clampMin(stepped));\n } else {\n this.maxValue.set(this.clampMax(stepped));\n }\n }\n\n clampMin(val: number): number {\n return Math.min(val, this.maxValue());\n }\n\n clampMax(val: number): number {\n return Math.max(val, this.minValue());\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ScSelect } from './select';
|
|
2
|
+
export { ScSelectItemIcon } from './select-item-icon';
|
|
3
|
+
export { ScSelectTrigger } from './select-trigger';
|
|
4
|
+
export { ScSelectValue } from './select-value';
|
|
5
|
+
export { ScSelectPortal } from './select-portal';
|
|
6
|
+
export { ScSelectPopup } from './select-popup';
|
|
7
|
+
export { ScSelectList } from './select-list';
|
|
8
|
+
export { ScSelectItem } from './select-item';
|
|
9
|
+
export { ScSelectGroup } from './select-group';
|
|
10
|
+
export { ScSelectGroupLabel } from './select-group-label';
|
|
11
|
+
export { ScSelectSeparator } from './select-separator';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { ScSelect } from './select';\nexport { ScSelectItemIcon } from './select-item-icon';\nexport { ScSelectTrigger } from './select-trigger';\nexport { ScSelectValue } from './select-value';\nexport { ScSelectPortal } from './select-portal';\nexport { ScSelectPopup } from './select-popup';\nexport { ScSelectList } from './select-list';\nexport { ScSelectItem } from './select-item';\nexport { ScSelectGroup } from './select-group';\nexport { ScSelectGroupLabel } from './select-group-label';\nexport { ScSelectSeparator } from './select-separator';\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScSelectGroupLabel {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('text-muted-foreground px-2 py-1.5 text-xs font-medium', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroupLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectGroupLabel, isStandalone: true, selector: "div[scSelectGroupLabel]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group-label" }, properties: { "class": "class()" } }, ngImport: i0, template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroupLabel, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'div[scSelectGroupLabel]',
|
|
16
|
+
imports: [],
|
|
17
|
+
template: `
|
|
18
|
+
<ng-content />
|
|
19
|
+
`,
|
|
20
|
+
host: {
|
|
21
|
+
'data-slot': 'select-group-label',
|
|
22
|
+
'[class]': 'class()',
|
|
23
|
+
},
|
|
24
|
+
encapsulation: ViewEncapsulation.None,
|
|
25
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
}]
|
|
27
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
28
|
+
//# sourceMappingURL=select-group-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-group-label.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-group-label.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAejC,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,uDAAuD,EACvD,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,kBAAkB;2FAAlB,kBAAkB,kUAVnB;;GAET;;2FAQU,kBAAkB;kBAb9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,oBAAoB;wBACjC,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scSelectGroupLabel]',\n imports: [],\n template: `\n <ng-content />\n `,\n host: {\n 'data-slot': 'select-group-label',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectGroupLabel {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'text-muted-foreground px-2 py-1.5 text-xs font-medium',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScSelectGroup {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('flex flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectGroup, isStandalone: true, selector: "div[scSelectGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group" }, properties: { "class": "class()" } }, ngImport: i0, template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroup, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'div[scSelectGroup]',
|
|
16
|
+
imports: [],
|
|
17
|
+
template: `
|
|
18
|
+
<ng-content />
|
|
19
|
+
`,
|
|
20
|
+
host: {
|
|
21
|
+
'data-slot': 'select-group',
|
|
22
|
+
'[class]': 'class()',
|
|
23
|
+
},
|
|
24
|
+
encapsulation: ViewEncapsulation.None,
|
|
25
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
}]
|
|
27
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
28
|
+
//# sourceMappingURL=select-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-group.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-group.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAejC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACvC,CAAC;uGALS,aAAa;2FAAb,aAAa,uTAVd;;GAET;;2FAQU,aAAa;kBAbzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scSelectGroup]',\n imports: [],\n template: `\n <ng-content />\n `,\n host: {\n 'data-slot': 'select-group',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectGroup {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('flex flex-col', this.classInput()),\n );\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComboboxInput } from '@angular/aria/combobox';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
|
|
3
|
+
import { cn } from '../../utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/aria/combobox";
|
|
6
|
+
export class ScSelectInput {
|
|
7
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
8
|
+
class = computed(() => cn('absolute inset-0 h-full w-full cursor-pointer border-none bg-transparent opacity-0 outline-none', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectInput, isStandalone: true, selector: "input[scSelectInput]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-input" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.ComboboxInput }], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectInput, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'input[scSelectInput]',
|
|
16
|
+
imports: [],
|
|
17
|
+
template: ``,
|
|
18
|
+
hostDirectives: [ComboboxInput],
|
|
19
|
+
host: {
|
|
20
|
+
'data-slot': 'select-input',
|
|
21
|
+
'[class]': 'class()',
|
|
22
|
+
},
|
|
23
|
+
encapsulation: ViewEncapsulation.None,
|
|
24
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
|
+
}]
|
|
26
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
27
|
+
//# sourceMappingURL=select-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-input.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;;AAcjC,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,iGAAiG,EACjG,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,aAAa;2FAAb,aAAa,4WATd,EAAE;;2FASD,aAAa;kBAZzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,EAAE;oBACZ,cAAc,EAAE,CAAC,aAAa,CAAC;oBAC/B,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import { ComboboxInput } from '@angular/aria/combobox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'input[scSelectInput]',\n imports: [],\n template: ``,\n hostDirectives: [ComboboxInput],\n host: {\n 'data-slot': 'select-input',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectInput {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'absolute inset-0 h-full w-full cursor-pointer border-none bg-transparent opacity-0 outline-none',\n this.classInput(),\n ),\n );\n}\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 ScSelectItemIcon {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('text-muted-foreground size-4 shrink-0', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItemIcon, isStandalone: true, selector: "svg[scSelectItemIcon]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-icon", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIcon, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'svg[scSelectItemIcon]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'select-item-icon',
|
|
16
|
+
'aria-hidden': 'true',
|
|
17
|
+
'[class]': 'class()',
|
|
18
|
+
},
|
|
19
|
+
}]
|
|
20
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
21
|
+
//# sourceMappingURL=select-item-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item-icon.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-item-icon.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,gBAAgB;IAClB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,uCAAuC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC/D,CAAC;uGALS,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAR5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,WAAW,EAAE,kBAAkB;wBAC/B,aAAa,EAAE,MAAM;wBACrB,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'svg[scSelectItemIcon]',\n host: {\n 'data-slot': 'select-item-icon',\n 'aria-hidden': 'true',\n '[class]': 'class()',\n },\n})\nexport class ScSelectItemIcon {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('text-muted-foreground size-4 shrink-0', this.classInput()),\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 ScSelectItemIndicator {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('pointer-events-none absolute right-2 flex size-4 items-center justify-center opacity-0 [[aria-selected=true]>&]:opacity-100', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItemIndicator, isStandalone: true, selector: "svg[scSelectItemIndicator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-indicator" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIndicator, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'svg[scSelectItemIndicator]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'select-item-indicator',
|
|
16
|
+
'[class]': 'class()',
|
|
17
|
+
},
|
|
18
|
+
}]
|
|
19
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
20
|
+
//# sourceMappingURL=select-item-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item-indicator.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-item-indicator.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,CACA,6HAA6H,EAC7H,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,qBAAqB;2FAArB,qBAAqB;;2FAArB,qBAAqB;kBAPjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;oBACtC,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: 'svg[scSelectItemIndicator]',\n host: {\n 'data-slot': 'select-item-indicator',\n '[class]': 'class()',\n },\n})\nexport class ScSelectItemIndicator {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'pointer-events-none absolute right-2 flex size-4 items-center justify-center opacity-0 [[aria-selected=true]>&]:opacity-100',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Option } from '@angular/aria/listbox';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, ViewEncapsulation, } from '@angular/core';
|
|
3
|
+
import { SiCheckIcon } from '@semantic-icons/lucide-icons';
|
|
4
|
+
import { cn } from '../../utils';
|
|
5
|
+
import { ScSelectItemIndicator } from './select-item-indicator';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/aria/listbox";
|
|
8
|
+
export class ScSelectItem {
|
|
9
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
10
|
+
option = inject(Option);
|
|
11
|
+
elementRef = inject(ElementRef);
|
|
12
|
+
constructor() {
|
|
13
|
+
effect(() => {
|
|
14
|
+
if (this.option.active()) {
|
|
15
|
+
this.elementRef.nativeElement.scrollIntoView({ block: 'nearest' });
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
class = computed(() => cn('relative flex w-full cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden', 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground', 'aria-selected:bg-accent/50 aria-selected:text-accent-foreground', 'data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItem, isStandalone: true, selector: "div[scSelectItem]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.Option, inputs: ["value", "value", "label", "label"] }], ngImport: i0, template: `
|
|
22
|
+
<ng-content />
|
|
23
|
+
<svg scSelectItemIndicator siCheckIcon aria-hidden="true"></svg>
|
|
24
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: ScSelectItemIndicator, selector: "svg[scSelectItemIndicator]", inputs: ["class"] }, { kind: "component", type: SiCheckIcon, selector: "svg[siCheckIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItem, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{
|
|
29
|
+
selector: 'div[scSelectItem]',
|
|
30
|
+
imports: [ScSelectItemIndicator, SiCheckIcon],
|
|
31
|
+
template: `
|
|
32
|
+
<ng-content />
|
|
33
|
+
<svg scSelectItemIndicator siCheckIcon aria-hidden="true"></svg>
|
|
34
|
+
`,
|
|
35
|
+
hostDirectives: [
|
|
36
|
+
{
|
|
37
|
+
directive: Option,
|
|
38
|
+
inputs: ['value', 'label'],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
host: {
|
|
42
|
+
'data-slot': 'select-item',
|
|
43
|
+
'[class]': 'class()',
|
|
44
|
+
},
|
|
45
|
+
encapsulation: ViewEncapsulation.None,
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
47
|
+
}]
|
|
48
|
+
}], ctorParameters: () => [], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
49
|
+
//# sourceMappingURL=select-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;AAsBhE,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE3C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAE1E;QACE,MAAM,CAAC,GAAG,EAAE;YACV,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC;gBACzB,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEkB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,yHAAyH,EACzH,wEAAwE,EACxE,iEAAiE,EACjE,4DAA4D,EAC5D,iFAAiF,EACjF,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAvBS,YAAY;2FAAZ,YAAY,+YAjBb;;;GAGT,4DAJS,qBAAqB,0FAAE,WAAW;;2FAkBjC,YAAY;kBApBxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,CAAC;oBAC7C,QAAQ,EAAE;;;GAGT;oBACD,cAAc,EAAE;wBACd;4BACE,SAAS,EAAE,MAAM;4BACjB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;yBAC3B;qBACF;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import { Option } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SiCheckIcon } from '@semantic-icons/lucide-icons';\nimport { cn } from '../../utils';\n\nimport { ScSelectItemIndicator } from './select-item-indicator';\n\n@Component({\n selector: 'div[scSelectItem]',\n imports: [ScSelectItemIndicator, SiCheckIcon],\n template: `\n <ng-content />\n <svg scSelectItemIndicator siCheckIcon aria-hidden=\"true\"></svg>\n `,\n hostDirectives: [\n {\n directive: Option,\n inputs: ['value', 'label'],\n },\n ],\n host: {\n 'data-slot': 'select-item',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectItem {\n readonly classInput = input<string>('', { alias: 'class' });\n\n private readonly option = inject(Option);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n effect(() => {\n if (this.option.active()) {\n this.elementRef.nativeElement.scrollIntoView({ block: 'nearest' });\n }\n });\n }\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex w-full cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden',\n 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground',\n 'aria-selected:bg-accent/50 aria-selected:text-accent-foreground',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Listbox } from '@angular/aria/listbox';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation, } from '@angular/core';
|
|
3
|
+
import { cn } from '../../utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/aria/listbox";
|
|
6
|
+
export class ScSelectList {
|
|
7
|
+
listbox = inject(Listbox);
|
|
8
|
+
values = computed(() => this.listbox.values(), ...(ngDevMode ? [{ debugName: "values" }] : []));
|
|
9
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
10
|
+
class = computed(() => cn('flex h-full flex-col overflow-x-hidden overflow-y-auto', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectList, isStandalone: true, selector: "div[scSelectList]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-list" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.Listbox }], ngImport: i0, template: `
|
|
13
|
+
<ng-content />
|
|
14
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectList, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'div[scSelectList]',
|
|
20
|
+
imports: [],
|
|
21
|
+
template: `
|
|
22
|
+
<ng-content />
|
|
23
|
+
`,
|
|
24
|
+
hostDirectives: [Listbox],
|
|
25
|
+
host: {
|
|
26
|
+
'data-slot': 'select-list',
|
|
27
|
+
'[class]': 'class()',
|
|
28
|
+
},
|
|
29
|
+
encapsulation: ViewEncapsulation.None,
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
|
+
}]
|
|
32
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
33
|
+
//# sourceMappingURL=select-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-list.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;;AAgBjC,MAAM,OAAO,YAAY;IACN,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,kDAAC,CAAC;IAC/C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,wDAAwD,EACxD,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAVS,YAAY;2FAAZ,YAAY,kWAXb;;GAET;;2FASU,YAAY;kBAdxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,cAAc,EAAE,CAAC,OAAO,CAAC;oBACzB,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import { Listbox } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scSelectList]',\n imports: [],\n template: `\n <ng-content />\n `,\n hostDirectives: [Listbox],\n host: {\n 'data-slot': 'select-list',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectList {\n private readonly listbox = inject(Listbox);\n readonly values = computed(() => this.listbox.values());\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'flex h-full flex-col overflow-x-hidden overflow-y-auto',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Combobox } from '@angular/aria/combobox';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation, } from '@angular/core';
|
|
3
|
+
import { cn } from '../../utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class ScSelectPopup {
|
|
6
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
7
|
+
combobox = inject(Combobox);
|
|
8
|
+
class = computed(() => cn('bg-popover text-popover-foreground ring-foreground/10 relative z-50 mt-1 flex w-full max-h-44 min-w-36 flex-col rounded-lg p-1 shadow-md ring-1', this.combobox.expanded()
|
|
9
|
+
? 'opacity-100 visible transition-[max-height,opacity,visibility] duration-150 ease-out'
|
|
10
|
+
: 'max-h-0 opacity-0 invisible transition-[max-height,opacity,visibility] duration-150 ease-in [transition-delay:0s,0s,150ms]', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectPopup, isStandalone: true, selector: "div[scSelectPopup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-popup" }, properties: { "class": "class()" } }, ngImport: i0, template: `
|
|
13
|
+
<ng-content />
|
|
14
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPopup, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'div[scSelectPopup]',
|
|
20
|
+
imports: [],
|
|
21
|
+
template: `
|
|
22
|
+
<ng-content />
|
|
23
|
+
`,
|
|
24
|
+
host: {
|
|
25
|
+
'data-slot': 'select-popup',
|
|
26
|
+
'[class]': 'class()',
|
|
27
|
+
},
|
|
28
|
+
encapsulation: ViewEncapsulation.None,
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
}]
|
|
31
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
32
|
+
//# sourceMappingURL=select-popup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-popup.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAejC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE3C,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE1B,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,iJAAiJ,EACjJ,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACtB,CAAC,CAAC,sFAAsF;QACxF,CAAC,CAAC,4HAA4H,EAChI,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAbS,aAAa;2FAAb,aAAa,uTAVd;;GAET;;2FAQU,aAAa;kBAbzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import { Combobox } from '@angular/aria/combobox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scSelectPopup]',\n imports: [],\n template: `\n <ng-content />\n `,\n host: {\n 'data-slot': 'select-popup',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectPopup {\n readonly classInput = input<string>('', { alias: 'class' });\n\n private readonly combobox = inject(Combobox);\n\n protected readonly class = computed(() =>\n cn(\n 'bg-popover text-popover-foreground ring-foreground/10 relative z-50 mt-1 flex w-full max-h-44 min-w-36 flex-col rounded-lg p-1 shadow-md ring-1',\n this.combobox.expanded()\n ? 'opacity-100 visible transition-[max-height,opacity,visibility] duration-150 ease-out'\n : 'max-h-0 opacity-0 invisible transition-[max-height,opacity,visibility] duration-150 ease-in [transition-delay:0s,0s,150ms]',\n this.classInput(),\n ),\n );\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive, inject, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ScSelectPortal {
|
|
4
|
+
templateRef = inject(TemplateRef);
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScSelectPortal, isStandalone: true, selector: "ng-template[scSelectPortal]", ngImport: i0 });
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPortal, decorators: [{
|
|
9
|
+
type: Directive,
|
|
10
|
+
args: [{
|
|
11
|
+
selector: 'ng-template[scSelectPortal]',
|
|
12
|
+
}]
|
|
13
|
+
}] });
|
|
14
|
+
//# sourceMappingURL=select-portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-portal.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;AAK/D,MAAM,OAAO,cAAc;IAChB,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;uGADhC,cAAc;2FAAd,cAAc;;2FAAd,cAAc;kBAH1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,6BAA6B;iBACxC","sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: 'ng-template[scSelectPortal]',\n})\nexport class ScSelectPortal {\n readonly templateRef = inject(TemplateRef);\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { cn } from '../../utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ScSelectSeparator {
|
|
5
|
+
classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
|
|
6
|
+
class = computed(() => cn('bg-border -mx-1 my-1 h-px', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectSeparator, isStandalone: true, selector: "[scSelectSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-separator", "role": "separator", "aria-orientation": "horizontal" }, properties: { "class": "class()" } }, ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectSeparator, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[scSelectSeparator]',
|
|
14
|
+
host: {
|
|
15
|
+
'data-slot': 'select-separator',
|
|
16
|
+
role: 'separator',
|
|
17
|
+
'aria-orientation': 'horizontal',
|
|
18
|
+
'[class]': 'class()',
|
|
19
|
+
},
|
|
20
|
+
}]
|
|
21
|
+
}], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
22
|
+
//# sourceMappingURL=select-separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-separator.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-separator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAWjC,MAAM,OAAO,iBAAiB;IACnB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,2BAA2B,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACnD,CAAC;uGALS,iBAAiB;2FAAjB,iBAAiB;;2FAAjB,iBAAiB;kBAT7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,IAAI,EAAE;wBACJ,WAAW,EAAE,kBAAkB;wBAC/B,IAAI,EAAE,WAAW;wBACjB,kBAAkB,EAAE,YAAY;wBAChC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scSelectSeparator]',\n host: {\n 'data-slot': 'select-separator',\n role: 'separator',\n 'aria-orientation': 'horizontal',\n '[class]': 'class()',\n },\n})\nexport class ScSelectSeparator {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('bg-border -mx-1 my-1 h-px', this.classInput()),\n );\n}\n"]}
|