@aiandralves/ai-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/aiandralves-ai-ui.d.ts +5 -0
- package/aiandrameira-ai-ui.d.ts +5 -0
- package/esm2022/aiandralves-ai-ui.js +5 -0
- package/esm2022/aiandralves-ai-ui.js.map +1 -0
- package/esm2022/aiandrameira-ai-ui.js +5 -0
- package/esm2022/aiandrameira-ai-ui.js.map +1 -0
- package/esm2022/index.js +4 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion.js +83 -0
- package/esm2022/lib/components/accordion/accordion.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion.service.js +29 -0
- package/esm2022/lib/components/accordion/accordion.service.js.map +1 -0
- package/esm2022/lib/components/accordion/accordion.variants.js +32 -0
- package/esm2022/lib/components/accordion/accordion.variants.js.map +1 -0
- package/esm2022/lib/components/accordion/demo/accordion.js +16 -0
- package/esm2022/lib/components/accordion/demo/accordion.js.map +1 -0
- package/esm2022/lib/components/accordion/demo/default.js +63 -0
- package/esm2022/lib/components/accordion/demo/default.js.map +1 -0
- package/esm2022/lib/components/accordion/demo/single.js +63 -0
- package/esm2022/lib/components/accordion/demo/single.js.map +1 -0
- package/esm2022/lib/components/accordion/index.js +3 -0
- package/esm2022/lib/components/accordion/index.js.map +1 -0
- package/esm2022/lib/components/alert/alert.js +25 -0
- package/esm2022/lib/components/alert/alert.js.map +1 -0
- package/esm2022/lib/components/alert/alert.variants.js +23 -0
- package/esm2022/lib/components/alert/alert.variants.js.map +1 -0
- package/esm2022/lib/components/alert/demo/accent.js +29 -0
- package/esm2022/lib/components/alert/demo/accent.js.map +1 -0
- package/esm2022/lib/components/alert/demo/alert.js +42 -0
- package/esm2022/lib/components/alert/demo/alert.js.map +1 -0
- package/esm2022/lib/components/alert/demo/destructive.js +29 -0
- package/esm2022/lib/components/alert/demo/destructive.js.map +1 -0
- package/esm2022/lib/components/alert/demo/icon.js +29 -0
- package/esm2022/lib/components/alert/demo/icon.js.map +1 -0
- package/esm2022/lib/components/alert/demo/info.js +29 -0
- package/esm2022/lib/components/alert/demo/info.js.map +1 -0
- package/esm2022/lib/components/alert/demo/primary.js +38 -0
- package/esm2022/lib/components/alert/demo/primary.js.map +1 -0
- package/esm2022/lib/components/alert/demo/success.js +29 -0
- package/esm2022/lib/components/alert/demo/success.js.map +1 -0
- package/esm2022/lib/components/alert/demo/warning.js +29 -0
- package/esm2022/lib/components/alert/demo/warning.js.map +1 -0
- package/esm2022/lib/components/alert/index.js +3 -0
- package/esm2022/lib/components/alert/index.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.config.js +20 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.config.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.js +68 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.ref.js +93 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.ref.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.service.js +88 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.service.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.variants.js +3 -0
- package/esm2022/lib/components/alert-dialog/alert-dialog.variants.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/demo/alert-dialog.js +12 -0
- package/esm2022/lib/components/alert-dialog/demo/alert-dialog.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/demo/default.js +34 -0
- package/esm2022/lib/components/alert-dialog/demo/default.js.map +1 -0
- package/esm2022/lib/components/alert-dialog/index.js +6 -0
- package/esm2022/lib/components/alert-dialog/index.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar-group.js +25 -0
- package/esm2022/lib/components/avatar/avatar-group.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar.js +52 -0
- package/esm2022/lib/components/avatar/avatar.js.map +1 -0
- package/esm2022/lib/components/avatar/avatar.variants.js +44 -0
- package/esm2022/lib/components/avatar/avatar.variants.js.map +1 -0
- package/esm2022/lib/components/avatar/demo/avatar.js +27 -0
- package/esm2022/lib/components/avatar/demo/avatar.js.map +1 -0
- package/esm2022/lib/components/avatar/demo/default.js +38 -0
- package/esm2022/lib/components/avatar/demo/default.js.map +1 -0
- package/esm2022/lib/components/avatar/demo/shape.js +25 -0
- package/esm2022/lib/components/avatar/demo/shape.js.map +1 -0
- package/esm2022/lib/components/avatar/demo/size.js +33 -0
- package/esm2022/lib/components/avatar/demo/size.js.map +1 -0
- package/esm2022/lib/components/avatar/demo/status.js +29 -0
- package/esm2022/lib/components/avatar/demo/status.js.map +1 -0
- package/esm2022/lib/components/avatar/index.js +4 -0
- package/esm2022/lib/components/avatar/index.js.map +1 -0
- package/esm2022/lib/components/badge/badge.js +57 -0
- package/esm2022/lib/components/badge/badge.js.map +1 -0
- package/esm2022/lib/components/badge/badge.variants.js +117 -0
- package/esm2022/lib/components/badge/badge.variants.js.map +1 -0
- package/esm2022/lib/components/badge/demo/badge.js +37 -0
- package/esm2022/lib/components/badge/demo/badge.js.map +1 -0
- package/esm2022/lib/components/badge/demo/close.js +28 -0
- package/esm2022/lib/components/badge/demo/close.js.map +1 -0
- package/esm2022/lib/components/badge/demo/disabled.js +23 -0
- package/esm2022/lib/components/badge/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/badge/demo/fill.js +59 -0
- package/esm2022/lib/components/badge/demo/fill.js.map +1 -0
- package/esm2022/lib/components/badge/demo/icon.js +25 -0
- package/esm2022/lib/components/badge/demo/icon.js.map +1 -0
- package/esm2022/lib/components/badge/demo/shape.js +25 -0
- package/esm2022/lib/components/badge/demo/shape.js.map +1 -0
- package/esm2022/lib/components/badge/demo/variant.js +37 -0
- package/esm2022/lib/components/badge/demo/variant.js.map +1 -0
- package/esm2022/lib/components/badge/index.js +3 -0
- package/esm2022/lib/components/badge/index.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-content.js +30 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-content.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.js +31 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-link.js +33 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-link.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-list.js +31 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-list.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +30 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-page.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +37 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.config.js +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.config.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.directive.js +21 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.directive.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.imports.js +8 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.imports.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.js +28 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.service.js +65 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.service.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.variants.js +88 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.variants.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/breadcrumb.js +37 -0
- package/esm2022/lib/components/breadcrumb/demo/breadcrumb.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/content.js +53 -0
- package/esm2022/lib/components/breadcrumb/demo/content.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/custom-separator.js +62 -0
- package/esm2022/lib/components/breadcrumb/demo/custom-separator.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/default.js +60 -0
- package/esm2022/lib/components/breadcrumb/demo/default.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/directive.js +50 -0
- package/esm2022/lib/components/breadcrumb/demo/directive.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/icon.js +72 -0
- package/esm2022/lib/components/breadcrumb/demo/icon.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/demo/router-link.js +53 -0
- package/esm2022/lib/components/breadcrumb/demo/router-link.js.map +1 -0
- package/esm2022/lib/components/breadcrumb/index.js +5 -0
- package/esm2022/lib/components/breadcrumb/index.js.map +1 -0
- package/esm2022/lib/components/button/button.js +64 -0
- package/esm2022/lib/components/button/button.js.map +1 -0
- package/esm2022/lib/components/button/button.variants.js +102 -0
- package/esm2022/lib/components/button/button.variants.js.map +1 -0
- package/esm2022/lib/components/button/demo/button.js +47 -0
- package/esm2022/lib/components/button/demo/button.js.map +1 -0
- package/esm2022/lib/components/button/demo/disabled.js +23 -0
- package/esm2022/lib/components/button/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/button/demo/fill.js +47 -0
- package/esm2022/lib/components/button/demo/fill.js.map +1 -0
- package/esm2022/lib/components/button/demo/full.js +23 -0
- package/esm2022/lib/components/button/demo/full.js.map +1 -0
- package/esm2022/lib/components/button/demo/icon.js +23 -0
- package/esm2022/lib/components/button/demo/icon.js.map +1 -0
- package/esm2022/lib/components/button/demo/loading.js +23 -0
- package/esm2022/lib/components/button/demo/loading.js.map +1 -0
- package/esm2022/lib/components/button/demo/shape.js +25 -0
- package/esm2022/lib/components/button/demo/shape.js.map +1 -0
- package/esm2022/lib/components/button/demo/size.js +29 -0
- package/esm2022/lib/components/button/demo/size.js.map +1 -0
- package/esm2022/lib/components/button/demo/variant.js +35 -0
- package/esm2022/lib/components/button/demo/variant.js.map +1 -0
- package/esm2022/lib/components/button/index.js +3 -0
- package/esm2022/lib/components/button/index.js.map +1 -0
- package/esm2022/lib/components/button-toggle/button-toggle.js +102 -0
- package/esm2022/lib/components/button-toggle/button-toggle.js.map +1 -0
- package/esm2022/lib/components/button-toggle/button-toggle.variants.js +36 -0
- package/esm2022/lib/components/button-toggle/button-toggle.variants.js.map +1 -0
- package/esm2022/lib/components/button-toggle/demo/button-toggle.js +22 -0
- package/esm2022/lib/components/button-toggle/demo/button-toggle.js.map +1 -0
- package/esm2022/lib/components/button-toggle/demo/default.js +36 -0
- package/esm2022/lib/components/button-toggle/demo/default.js.map +1 -0
- package/esm2022/lib/components/button-toggle/demo/disabled.js +28 -0
- package/esm2022/lib/components/button-toggle/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/button-toggle/demo/size.js +50 -0
- package/esm2022/lib/components/button-toggle/demo/size.js.map +1 -0
- package/esm2022/lib/components/button-toggle/index.js +3 -0
- package/esm2022/lib/components/button-toggle/index.js.map +1 -0
- package/esm2022/lib/components/card/card.js +26 -0
- package/esm2022/lib/components/card/card.js.map +1 -0
- package/esm2022/lib/components/card/card.variants.js +15 -0
- package/esm2022/lib/components/card/card.variants.js.map +1 -0
- package/esm2022/lib/components/card/demo/card.js +17 -0
- package/esm2022/lib/components/card/demo/card.js.map +1 -0
- package/esm2022/lib/components/card/demo/default.js +30 -0
- package/esm2022/lib/components/card/demo/default.js.map +1 -0
- package/esm2022/lib/components/card/demo/disabled.js +23 -0
- package/esm2022/lib/components/card/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/card/index.js +3 -0
- package/esm2022/lib/components/card/index.js.map +1 -0
- package/esm2022/lib/components/carousel/carousel.js +98 -0
- package/esm2022/lib/components/carousel/carousel.js.map +1 -0
- package/esm2022/lib/components/carousel/carousel.service.js +137 -0
- package/esm2022/lib/components/carousel/carousel.service.js.map +1 -0
- package/esm2022/lib/components/carousel/carousel.variants.js +62 -0
- package/esm2022/lib/components/carousel/carousel.variants.js.map +1 -0
- package/esm2022/lib/components/carousel/demo/autoplay.js +44 -0
- package/esm2022/lib/components/carousel/demo/autoplay.js.map +1 -0
- package/esm2022/lib/components/carousel/demo/carousel.js +21 -0
- package/esm2022/lib/components/carousel/demo/carousel.js.map +1 -0
- package/esm2022/lib/components/carousel/demo/default.js +46 -0
- package/esm2022/lib/components/carousel/demo/default.js.map +1 -0
- package/esm2022/lib/components/carousel/demo/loop.js +44 -0
- package/esm2022/lib/components/carousel/demo/loop.js.map +1 -0
- package/esm2022/lib/components/carousel/index.js +3 -0
- package/esm2022/lib/components/carousel/index.js.map +1 -0
- package/esm2022/lib/components/command/command-empty.js +42 -0
- package/esm2022/lib/components/command/command-empty.js.map +1 -0
- package/esm2022/lib/components/command/command-input.js +137 -0
- package/esm2022/lib/components/command/command-input.js.map +1 -0
- package/esm2022/lib/components/command/command-item-group.js +72 -0
- package/esm2022/lib/components/command/command-item-group.js.map +1 -0
- package/esm2022/lib/components/command/command-item.js +122 -0
- package/esm2022/lib/components/command/command-item.js.map +1 -0
- package/esm2022/lib/components/command/command-list.js +29 -0
- package/esm2022/lib/components/command/command-list.js.map +1 -0
- package/esm2022/lib/components/command/command-separator.js +39 -0
- package/esm2022/lib/components/command/command-separator.js.map +1 -0
- package/esm2022/lib/components/command/command.config.js +3 -0
- package/esm2022/lib/components/command/command.config.js.map +1 -0
- package/esm2022/lib/components/command/command.imports.js +9 -0
- package/esm2022/lib/components/command/command.imports.js.map +1 -0
- package/esm2022/lib/components/command/command.js +184 -0
- package/esm2022/lib/components/command/command.js.map +1 -0
- package/esm2022/lib/components/command/command.variants.js +50 -0
- package/esm2022/lib/components/command/command.variants.js.map +1 -0
- package/esm2022/lib/components/command/demo/command.js +12 -0
- package/esm2022/lib/components/command/demo/command.js.map +1 -0
- package/esm2022/lib/components/command/demo/default.js +124 -0
- package/esm2022/lib/components/command/demo/default.js.map +1 -0
- package/esm2022/lib/components/command/index.js +10 -0
- package/esm2022/lib/components/command/index.js.map +1 -0
- package/esm2022/lib/components/date-picker/date-picker-overlay.service.js +63 -0
- package/esm2022/lib/components/date-picker/date-picker-overlay.service.js.map +1 -0
- package/esm2022/lib/components/date-picker/date-picker.js +113 -0
- package/esm2022/lib/components/date-picker/date-picker.js.map +1 -0
- package/esm2022/lib/components/date-picker/date-picker.util.js +71 -0
- package/esm2022/lib/components/date-picker/date-picker.util.js.map +1 -0
- package/esm2022/lib/components/date-picker/date-picker.variants.js +17 -0
- package/esm2022/lib/components/date-picker/date-picker.variants.js.map +1 -0
- package/esm2022/lib/components/date-picker/demo/date-picker.js +21 -0
- package/esm2022/lib/components/date-picker/demo/date-picker.js.map +1 -0
- package/esm2022/lib/components/date-picker/demo/default.js +30 -0
- package/esm2022/lib/components/date-picker/demo/default.js.map +1 -0
- package/esm2022/lib/components/date-picker/demo/disabled.js +23 -0
- package/esm2022/lib/components/date-picker/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/date-picker/demo/range.js +30 -0
- package/esm2022/lib/components/date-picker/demo/range.js.map +1 -0
- package/esm2022/lib/components/date-picker/index.js +3 -0
- package/esm2022/lib/components/date-picker/index.js.map +1 -0
- package/esm2022/lib/components/dialog/demo/default.js +108 -0
- package/esm2022/lib/components/dialog/demo/default.js.map +1 -0
- package/esm2022/lib/components/dialog/demo/dialog.js +12 -0
- package/esm2022/lib/components/dialog/demo/dialog.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog-ref.js +85 -0
- package/esm2022/lib/components/dialog/dialog-ref.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.config.js +22 -0
- package/esm2022/lib/components/dialog/dialog.config.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.js +51 -0
- package/esm2022/lib/components/dialog/dialog.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.module.js +20 -0
- package/esm2022/lib/components/dialog/dialog.module.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.service.js +76 -0
- package/esm2022/lib/components/dialog/dialog.service.js.map +1 -0
- package/esm2022/lib/components/dialog/dialog.variants.js +3 -0
- package/esm2022/lib/components/dialog/dialog.variants.js.map +1 -0
- package/esm2022/lib/components/dialog/index.js +6 -0
- package/esm2022/lib/components/dialog/index.js.map +1 -0
- package/esm2022/lib/components/empty/demo/advanced.js +63 -0
- package/esm2022/lib/components/empty/demo/advanced.js.map +1 -0
- package/esm2022/lib/components/empty/demo/custom-image.js +44 -0
- package/esm2022/lib/components/empty/demo/custom-image.js.map +1 -0
- package/esm2022/lib/components/empty/demo/default.js +61 -0
- package/esm2022/lib/components/empty/demo/default.js.map +1 -0
- package/esm2022/lib/components/empty/demo/empty.js +22 -0
- package/esm2022/lib/components/empty/demo/empty.js.map +1 -0
- package/esm2022/lib/components/empty/empty.js +30 -0
- package/esm2022/lib/components/empty/empty.js.map +1 -0
- package/esm2022/lib/components/empty/empty.variants.js +23 -0
- package/esm2022/lib/components/empty/empty.variants.js.map +1 -0
- package/esm2022/lib/components/empty/index.js +3 -0
- package/esm2022/lib/components/empty/index.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/float-button.js +37 -0
- package/esm2022/lib/components/float-button/demo/float-button.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/float-group.js +44 -0
- package/esm2022/lib/components/float-button/demo/float-group.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/float-top.js +23 -0
- package/esm2022/lib/components/float-button/demo/float-top.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/position.js +29 -0
- package/esm2022/lib/components/float-button/demo/position.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/shape.js +25 -0
- package/esm2022/lib/components/float-button/demo/shape.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/size.js +25 -0
- package/esm2022/lib/components/float-button/demo/size.js.map +1 -0
- package/esm2022/lib/components/float-button/demo/variant.js +27 -0
- package/esm2022/lib/components/float-button/demo/variant.js.map +1 -0
- package/esm2022/lib/components/float-button/float-button-group.js +99 -0
- package/esm2022/lib/components/float-button/float-button-group.js.map +1 -0
- package/esm2022/lib/components/float-button/float-button-top.js +70 -0
- package/esm2022/lib/components/float-button/float-button-top.js.map +1 -0
- package/esm2022/lib/components/float-button/float-button.js +59 -0
- package/esm2022/lib/components/float-button/float-button.js.map +1 -0
- package/esm2022/lib/components/float-button/float-button.variants.js +24 -0
- package/esm2022/lib/components/float-button/float-button.variants.js.map +1 -0
- package/esm2022/lib/components/float-button/index.js +5 -0
- package/esm2022/lib/components/float-button/index.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete-config.js +36 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete-config.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete.js +234 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete.variants.js +25 -0
- package/esm2022/lib/components/form-field/autocomplete/autocomplete.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/autocomplete.js +21 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/autocomplete.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/default.js +41 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/events.js +63 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/events.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/validation.js +84 -0
- package/esm2022/lib/components/form-field/autocomplete/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/index.js +4 -0
- package/esm2022/lib/components/form-field/autocomplete/index.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.js +65 -0
- package/esm2022/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.js.map +1 -0
- package/esm2022/lib/components/form-field/autocomplete/services/index.js +2 -0
- package/esm2022/lib/components/form-field/autocomplete/services/index.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/checkbox.js +59 -0
- package/esm2022/lib/components/form-field/checkbox/checkbox.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/checkbox.variants.js +39 -0
- package/esm2022/lib/components/form-field/checkbox/checkbox.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/checkbox.js +37 -0
- package/esm2022/lib/components/form-field/checkbox/demo/checkbox.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/default.js +27 -0
- package/esm2022/lib/components/form-field/checkbox/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/destructive.js +27 -0
- package/esm2022/lib/components/form-field/checkbox/demo/destructive.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/disabled.js +28 -0
- package/esm2022/lib/components/form-field/checkbox/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/shape.js +25 -0
- package/esm2022/lib/components/form-field/checkbox/demo/shape.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/size.js +25 -0
- package/esm2022/lib/components/form-field/checkbox/demo/size.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/demo/validation.js +75 -0
- package/esm2022/lib/components/form-field/checkbox/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/checkbox/index.js +3 -0
- package/esm2022/lib/components/form-field/checkbox/index.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/datetime.js +59 -0
- package/esm2022/lib/components/form-field/datetime/datetime.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/datetime.variants.js +30 -0
- package/esm2022/lib/components/form-field/datetime/datetime.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/demo/datetime.js +21 -0
- package/esm2022/lib/components/form-field/datetime/demo/datetime.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/demo/default.js +37 -0
- package/esm2022/lib/components/form-field/datetime/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/demo/disabled.js +25 -0
- package/esm2022/lib/components/form-field/datetime/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/demo/validation.js +69 -0
- package/esm2022/lib/components/form-field/datetime/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/datetime/index.js +3 -0
- package/esm2022/lib/components/form-field/datetime/index.js.map +1 -0
- package/esm2022/lib/components/form-field/index.js +10 -0
- package/esm2022/lib/components/form-field/index.js.map +1 -0
- package/esm2022/lib/components/form-field/input/currency-mask.service.js +40 -0
- package/esm2022/lib/components/form-field/input/currency-mask.service.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/default.js +26 -0
- package/esm2022/lib/components/form-field/input/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/disabled.js +28 -0
- package/esm2022/lib/components/form-field/input/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/icon.js +29 -0
- package/esm2022/lib/components/form-field/input/demo/icon.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/input.js +47 -0
- package/esm2022/lib/components/form-field/input/demo/input.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/mask.js +48 -0
- package/esm2022/lib/components/form-field/input/demo/mask.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/normalize.js +69 -0
- package/esm2022/lib/components/form-field/input/demo/normalize.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/password.js +29 -0
- package/esm2022/lib/components/form-field/input/demo/password.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/validation.js +113 -0
- package/esm2022/lib/components/form-field/input/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/input/demo/variant.js +34 -0
- package/esm2022/lib/components/form-field/input/demo/variant.js.map +1 -0
- package/esm2022/lib/components/form-field/input/index.js +4 -0
- package/esm2022/lib/components/form-field/input/index.js.map +1 -0
- package/esm2022/lib/components/form-field/input/input.js +102 -0
- package/esm2022/lib/components/form-field/input/input.js.map +1 -0
- package/esm2022/lib/components/form-field/input/input.variants.js +38 -0
- package/esm2022/lib/components/form-field/input/input.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/input/interfaces/feedback.interface.js +26 -0
- package/esm2022/lib/components/form-field/input/interfaces/feedback.interface.js.map +1 -0
- package/esm2022/lib/components/form-field/input/interfaces/index.js +4 -0
- package/esm2022/lib/components/form-field/input/interfaces/index.js.map +1 -0
- package/esm2022/lib/components/form-field/input/interfaces/mask-config.interface.js +1 -0
- package/esm2022/lib/components/form-field/input/interfaces/mask-config.interface.js.map +1 -0
- package/esm2022/lib/components/form-field/input/interfaces/password-strength.js +39 -0
- package/esm2022/lib/components/form-field/input/interfaces/password-strength.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/demo/default.js +32 -0
- package/esm2022/lib/components/form-field/radio/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/demo/disabled.js +32 -0
- package/esm2022/lib/components/form-field/radio/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/demo/radio.js +26 -0
- package/esm2022/lib/components/form-field/radio/demo/radio.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/demo/size.js +30 -0
- package/esm2022/lib/components/form-field/radio/demo/size.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/demo/validation.js +90 -0
- package/esm2022/lib/components/form-field/radio/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/index.js +5 -0
- package/esm2022/lib/components/form-field/radio/index.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/radio-group.js +52 -0
- package/esm2022/lib/components/form-field/radio/radio-group.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/radio.imports.js +4 -0
- package/esm2022/lib/components/form-field/radio/radio.imports.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/radio.js +83 -0
- package/esm2022/lib/components/form-field/radio/radio.js.map +1 -0
- package/esm2022/lib/components/form-field/radio/radio.variants.js +30 -0
- package/esm2022/lib/components/form-field/radio/radio.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/demo/default.js +39 -0
- package/esm2022/lib/components/form-field/segmented/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/demo/disabled.js +49 -0
- package/esm2022/lib/components/form-field/segmented/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/demo/segmented.js +21 -0
- package/esm2022/lib/components/form-field/segmented/demo/segmented.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/demo/size.js +55 -0
- package/esm2022/lib/components/form-field/segmented/demo/size.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/index.js +4 -0
- package/esm2022/lib/components/form-field/segmented/index.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/segmented.interface.js +1 -0
- package/esm2022/lib/components/form-field/segmented/segmented.interface.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/segmented.js +56 -0
- package/esm2022/lib/components/form-field/segmented/segmented.js.map +1 -0
- package/esm2022/lib/components/form-field/segmented/segmented.variants.js +16 -0
- package/esm2022/lib/components/form-field/segmented/segmented.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/select/demo/default.js +47 -0
- package/esm2022/lib/components/form-field/select/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/select/demo/multiple.js +57 -0
- package/esm2022/lib/components/form-field/select/demo/multiple.js.map +1 -0
- package/esm2022/lib/components/form-field/select/demo/select.js +17 -0
- package/esm2022/lib/components/form-field/select/demo/select.js.map +1 -0
- package/esm2022/lib/components/form-field/select/index.js +5 -0
- package/esm2022/lib/components/form-field/select/index.js.map +1 -0
- package/esm2022/lib/components/form-field/select/select-item.js +78 -0
- package/esm2022/lib/components/form-field/select/select-item.js.map +1 -0
- package/esm2022/lib/components/form-field/select/select.facade.js +70 -0
- package/esm2022/lib/components/form-field/select/select.facade.js.map +1 -0
- package/esm2022/lib/components/form-field/select/select.imports.js +4 -0
- package/esm2022/lib/components/form-field/select/select.imports.js.map +1 -0
- package/esm2022/lib/components/form-field/select/select.js +315 -0
- package/esm2022/lib/components/form-field/select/select.js.map +1 -0
- package/esm2022/lib/components/form-field/select/select.variants.js +57 -0
- package/esm2022/lib/components/form-field/select/select.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/index.js +6 -0
- package/esm2022/lib/components/form-field/select/services/index.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/select-dom.service.js +43 -0
- package/esm2022/lib/components/form-field/select/services/select-dom.service.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/select-keyword.service.js +54 -0
- package/esm2022/lib/components/form-field/select/services/select-keyword.service.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/select-labels.service.js +43 -0
- package/esm2022/lib/components/form-field/select/services/select-labels.service.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/select-overlay.service.js +89 -0
- package/esm2022/lib/components/form-field/select/services/select-overlay.service.js.map +1 -0
- package/esm2022/lib/components/form-field/select/services/select.store.js +30 -0
- package/esm2022/lib/components/form-field/select/services/select.store.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/demo/default.js +27 -0
- package/esm2022/lib/components/form-field/switch/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/demo/disabled.js +25 -0
- package/esm2022/lib/components/form-field/switch/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/demo/size.js +27 -0
- package/esm2022/lib/components/form-field/switch/demo/size.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/demo/switch.js +21 -0
- package/esm2022/lib/components/form-field/switch/demo/switch.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/index.js +3 -0
- package/esm2022/lib/components/form-field/switch/index.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/switch.js +34 -0
- package/esm2022/lib/components/form-field/switch/switch.js.map +1 -0
- package/esm2022/lib/components/form-field/switch/switch.variants.js +44 -0
- package/esm2022/lib/components/form-field/switch/switch.variants.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/default.js +26 -0
- package/esm2022/lib/components/form-field/textarea/demo/default.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/disabled.js +28 -0
- package/esm2022/lib/components/form-field/textarea/demo/disabled.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/resize.js +34 -0
- package/esm2022/lib/components/form-field/textarea/demo/resize.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/textarea.js +32 -0
- package/esm2022/lib/components/form-field/textarea/demo/textarea.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/validation.js +53 -0
- package/esm2022/lib/components/form-field/textarea/demo/validation.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/demo/variant.js +34 -0
- package/esm2022/lib/components/form-field/textarea/demo/variant.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/index.js +3 -0
- package/esm2022/lib/components/form-field/textarea/index.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/textarea.js +59 -0
- package/esm2022/lib/components/form-field/textarea/textarea.js.map +1 -0
- package/esm2022/lib/components/form-field/textarea/textarea.variants.js +45 -0
- package/esm2022/lib/components/form-field/textarea/textarea.variants.js.map +1 -0
- package/esm2022/lib/components/icon/demo/icon.js +22 -0
- package/esm2022/lib/components/icon/demo/icon.js.map +1 -0
- package/esm2022/lib/components/icon/demo/searchable.js +188 -0
- package/esm2022/lib/components/icon/demo/searchable.js.map +1 -0
- package/esm2022/lib/components/icon/demo/size.js +31 -0
- package/esm2022/lib/components/icon/demo/size.js.map +1 -0
- package/esm2022/lib/components/icon/demo/type.js +27 -0
- package/esm2022/lib/components/icon/demo/type.js.map +1 -0
- package/esm2022/lib/components/icon/icon-categories.js +745 -0
- package/esm2022/lib/components/icon/icon-categories.js.map +1 -0
- package/esm2022/lib/components/icon/icon.component.js +39 -0
- package/esm2022/lib/components/icon/icon.component.js.map +1 -0
- package/esm2022/lib/components/icon/icon.variants.js +21 -0
- package/esm2022/lib/components/icon/icon.variants.js.map +1 -0
- package/esm2022/lib/components/icon/icons.js +1310 -0
- package/esm2022/lib/components/icon/icons.js.map +1 -0
- package/esm2022/lib/components/icon/index.js +4 -0
- package/esm2022/lib/components/icon/index.js.map +1 -0
- package/esm2022/lib/components/index.js +31 -0
- package/esm2022/lib/components/index.js.map +1 -0
- package/esm2022/lib/components/loader/demo/loader.js +17 -0
- package/esm2022/lib/components/loader/demo/loader.js.map +1 -0
- package/esm2022/lib/components/loader/demo/size.js +45 -0
- package/esm2022/lib/components/loader/demo/size.js.map +1 -0
- package/esm2022/lib/components/loader/demo/type.js +69 -0
- package/esm2022/lib/components/loader/demo/type.js.map +1 -0
- package/esm2022/lib/components/loader/index.js +4 -0
- package/esm2022/lib/components/loader/index.js.map +1 -0
- package/esm2022/lib/components/loader/loader-progess.js +82 -0
- package/esm2022/lib/components/loader/loader-progess.js.map +1 -0
- package/esm2022/lib/components/loader/loader.js +30 -0
- package/esm2022/lib/components/loader/loader.js.map +1 -0
- package/esm2022/lib/components/loader/loader.service.js +24 -0
- package/esm2022/lib/components/loader/loader.service.js.map +1 -0
- package/esm2022/lib/components/loader/loader.variants.js +25 -0
- package/esm2022/lib/components/loader/loader.variants.js.map +1 -0
- package/esm2022/lib/components/markdown/demo/editor.js +35 -0
- package/esm2022/lib/components/markdown/demo/editor.js.map +1 -0
- package/esm2022/lib/components/markdown/demo/markdown.js +17 -0
- package/esm2022/lib/components/markdown/demo/markdown.js.map +1 -0
- package/esm2022/lib/components/markdown/demo/viewer.js +35 -0
- package/esm2022/lib/components/markdown/demo/viewer.js.map +1 -0
- package/esm2022/lib/components/markdown/icon.helper.js +245 -0
- package/esm2022/lib/components/markdown/icon.helper.js.map +1 -0
- package/esm2022/lib/components/markdown/index.js +3 -0
- package/esm2022/lib/components/markdown/index.js.map +1 -0
- package/esm2022/lib/components/markdown/language-icons.js +11 -0
- package/esm2022/lib/components/markdown/language-icons.js.map +1 -0
- package/esm2022/lib/components/markdown/markdown.js +210 -0
- package/esm2022/lib/components/markdown/markdown.js.map +1 -0
- package/esm2022/lib/components/markdown/markdown.service.js +121 -0
- package/esm2022/lib/components/markdown/markdown.service.js.map +1 -0
- package/esm2022/lib/components/pagination/demo/custom.js +93 -0
- package/esm2022/lib/components/pagination/demo/custom.js.map +1 -0
- package/esm2022/lib/components/pagination/demo/default.js +18 -0
- package/esm2022/lib/components/pagination/demo/default.js.map +1 -0
- package/esm2022/lib/components/pagination/demo/info.js +47 -0
- package/esm2022/lib/components/pagination/demo/info.js.map +1 -0
- package/esm2022/lib/components/pagination/demo/intl.js +49 -0
- package/esm2022/lib/components/pagination/demo/intl.js.map +1 -0
- package/esm2022/lib/components/pagination/demo/pagination.js +27 -0
- package/esm2022/lib/components/pagination/demo/pagination.js.map +1 -0
- package/esm2022/lib/components/pagination/index.js +5 -0
- package/esm2022/lib/components/pagination/index.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-button.js +35 -0
- package/esm2022/lib/components/pagination/pagination-button.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-content.js +25 -0
- package/esm2022/lib/components/pagination/pagination-content.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-ellipsis.js +27 -0
- package/esm2022/lib/components/pagination/pagination-ellipsis.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-intl.js +21 -0
- package/esm2022/lib/components/pagination/pagination-intl.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-next.js +40 -0
- package/esm2022/lib/components/pagination/pagination-next.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination-prev.js +40 -0
- package/esm2022/lib/components/pagination/pagination-prev.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination.imports.js +9 -0
- package/esm2022/lib/components/pagination/pagination.imports.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination.js +210 -0
- package/esm2022/lib/components/pagination/pagination.js.map +1 -0
- package/esm2022/lib/components/pagination/pagination.variants.js +7 -0
- package/esm2022/lib/components/pagination/pagination.variants.js.map +1 -0
- package/esm2022/lib/components/progress-bar/demo/indeterminate.js +25 -0
- package/esm2022/lib/components/progress-bar/demo/indeterminate.js.map +1 -0
- package/esm2022/lib/components/progress-bar/demo/progress-bar.js +15 -0
- package/esm2022/lib/components/progress-bar/demo/progress-bar.js.map +1 -0
- package/esm2022/lib/components/progress-bar/demo/shape.js +28 -0
- package/esm2022/lib/components/progress-bar/demo/shape.js.map +1 -0
- package/esm2022/lib/components/progress-bar/demo/size.js +28 -0
- package/esm2022/lib/components/progress-bar/demo/size.js.map +1 -0
- package/esm2022/lib/components/progress-bar/demo/variant.js +26 -0
- package/esm2022/lib/components/progress-bar/demo/variant.js.map +1 -0
- package/esm2022/lib/components/progress-bar/index.js +4 -0
- package/esm2022/lib/components/progress-bar/index.js.map +1 -0
- package/esm2022/lib/components/progress-bar/progress-bar.js +133 -0
- package/esm2022/lib/components/progress-bar/progress-bar.js.map +1 -0
- package/esm2022/lib/components/progress-bar/progress-bar.variants.js +42 -0
- package/esm2022/lib/components/progress-bar/progress-bar.variants.js.map +1 -0
- package/esm2022/lib/components/separator/demo/orientation.js +45 -0
- package/esm2022/lib/components/separator/demo/orientation.js.map +1 -0
- package/esm2022/lib/components/separator/demo/separator.js +12 -0
- package/esm2022/lib/components/separator/demo/separator.js.map +1 -0
- package/esm2022/lib/components/separator/index.js +3 -0
- package/esm2022/lib/components/separator/index.js.map +1 -0
- package/esm2022/lib/components/separator/separator.js +25 -0
- package/esm2022/lib/components/separator/separator.js.map +1 -0
- package/esm2022/lib/components/separator/separator.variants.js +13 -0
- package/esm2022/lib/components/separator/separator.variants.js.map +1 -0
- package/esm2022/lib/components/skeleton/demo/card.js +47 -0
- package/esm2022/lib/components/skeleton/demo/card.js.map +1 -0
- package/esm2022/lib/components/skeleton/demo/chart.js +42 -0
- package/esm2022/lib/components/skeleton/demo/chart.js.map +1 -0
- package/esm2022/lib/components/skeleton/demo/default.js +31 -0
- package/esm2022/lib/components/skeleton/demo/default.js.map +1 -0
- package/esm2022/lib/components/skeleton/demo/skeleton.js +12 -0
- package/esm2022/lib/components/skeleton/demo/skeleton.js.map +1 -0
- package/esm2022/lib/components/skeleton/index.js +3 -0
- package/esm2022/lib/components/skeleton/index.js.map +1 -0
- package/esm2022/lib/components/skeleton/skeleton.js +32 -0
- package/esm2022/lib/components/skeleton/skeleton.js.map +1 -0
- package/esm2022/lib/components/skeleton/skeleton.variants.js +6 -0
- package/esm2022/lib/components/skeleton/skeleton.variants.js.map +1 -0
- package/esm2022/lib/components/stepper/demo/default.js +86 -0
- package/esm2022/lib/components/stepper/demo/default.js.map +1 -0
- package/esm2022/lib/components/stepper/demo/orientation.js +86 -0
- package/esm2022/lib/components/stepper/demo/orientation.js.map +1 -0
- package/esm2022/lib/components/stepper/demo/stepper.js +21 -0
- package/esm2022/lib/components/stepper/demo/stepper.js.map +1 -0
- package/esm2022/lib/components/stepper/demo/validation.js +107 -0
- package/esm2022/lib/components/stepper/demo/validation.js.map +1 -0
- package/esm2022/lib/components/stepper/index.js +3 -0
- package/esm2022/lib/components/stepper/index.js.map +1 -0
- package/esm2022/lib/components/stepper/stepper.js +93 -0
- package/esm2022/lib/components/stepper/stepper.js.map +1 -0
- package/esm2022/lib/components/stepper/stepper.service.js +67 -0
- package/esm2022/lib/components/stepper/stepper.service.js.map +1 -0
- package/esm2022/lib/components/stepper/stepper.variants.js +64 -0
- package/esm2022/lib/components/stepper/stepper.variants.js.map +1 -0
- package/esm2022/lib/components/table/cell-template.directive.js +18 -0
- package/esm2022/lib/components/table/cell-template.directive.js.map +1 -0
- package/esm2022/lib/components/table/demo/border.js +30 -0
- package/esm2022/lib/components/table/demo/border.js.map +1 -0
- package/esm2022/lib/components/table/demo/default.js +48 -0
- package/esm2022/lib/components/table/demo/default.js.map +1 -0
- package/esm2022/lib/components/table/demo/pagination.js +69 -0
- package/esm2022/lib/components/table/demo/pagination.js.map +1 -0
- package/esm2022/lib/components/table/demo/selected.js +34 -0
- package/esm2022/lib/components/table/demo/selected.js.map +1 -0
- package/esm2022/lib/components/table/demo/size.js +55 -0
- package/esm2022/lib/components/table/demo/size.js.map +1 -0
- package/esm2022/lib/components/table/demo/sort.js +59 -0
- package/esm2022/lib/components/table/demo/sort.js.map +1 -0
- package/esm2022/lib/components/table/demo/table.js +37 -0
- package/esm2022/lib/components/table/demo/table.js.map +1 -0
- package/esm2022/lib/components/table/demo/user.js +25 -0
- package/esm2022/lib/components/table/demo/user.js.map +1 -0
- package/esm2022/lib/components/table/index.js +5 -0
- package/esm2022/lib/components/table/index.js.map +1 -0
- package/esm2022/lib/components/table/table.config.js +1 -0
- package/esm2022/lib/components/table/table.config.js.map +1 -0
- package/esm2022/lib/components/table/table.js +121 -0
- package/esm2022/lib/components/table/table.js.map +1 -0
- package/esm2022/lib/components/table/table.variants.js +86 -0
- package/esm2022/lib/components/table/table.variants.js.map +1 -0
- package/esm2022/lib/components/tabs/demo/align.js +55 -0
- package/esm2022/lib/components/tabs/demo/align.js.map +1 -0
- package/esm2022/lib/components/tabs/demo/arrows.js +45 -0
- package/esm2022/lib/components/tabs/demo/arrows.js.map +1 -0
- package/esm2022/lib/components/tabs/demo/default.js +27 -0
- package/esm2022/lib/components/tabs/demo/default.js.map +1 -0
- package/esm2022/lib/components/tabs/demo/position.js +65 -0
- package/esm2022/lib/components/tabs/demo/position.js.map +1 -0
- package/esm2022/lib/components/tabs/demo/tabs.js +15 -0
- package/esm2022/lib/components/tabs/demo/tabs.js.map +1 -0
- package/esm2022/lib/components/tabs/index.js +3 -0
- package/esm2022/lib/components/tabs/index.js.map +1 -0
- package/esm2022/lib/components/tabs/tabs.js +195 -0
- package/esm2022/lib/components/tabs/tabs.js.map +1 -0
- package/esm2022/lib/components/tabs/tabs.variants.js +58 -0
- package/esm2022/lib/components/tabs/tabs.variants.js.map +1 -0
- package/esm2022/lib/components/toast/demo/default.js +32 -0
- package/esm2022/lib/components/toast/demo/default.js.map +1 -0
- package/esm2022/lib/components/toast/demo/position.js +63 -0
- package/esm2022/lib/components/toast/demo/position.js.map +1 -0
- package/esm2022/lib/components/toast/demo/toast.js +22 -0
- package/esm2022/lib/components/toast/demo/toast.js.map +1 -0
- package/esm2022/lib/components/toast/demo/type.js +48 -0
- package/esm2022/lib/components/toast/demo/type.js.map +1 -0
- package/esm2022/lib/components/toast/index.js +4 -0
- package/esm2022/lib/components/toast/index.js.map +1 -0
- package/esm2022/lib/components/toast/toast-content.js +15 -0
- package/esm2022/lib/components/toast/toast-content.js.map +1 -0
- package/esm2022/lib/components/toast/toast.config.js +1 -0
- package/esm2022/lib/components/toast/toast.config.js.map +1 -0
- package/esm2022/lib/components/toast/toast.js +56 -0
- package/esm2022/lib/components/toast/toast.js.map +1 -0
- package/esm2022/lib/components/toast/toast.pipe.js +52 -0
- package/esm2022/lib/components/toast/toast.pipe.js.map +1 -0
- package/esm2022/lib/components/toast/toast.service.js +60 -0
- package/esm2022/lib/components/toast/toast.service.js.map +1 -0
- package/esm2022/lib/components/toast/toast.variants.js +17 -0
- package/esm2022/lib/components/toast/toast.variants.js.map +1 -0
- package/esm2022/lib/components/tooltip/demo/click.js +26 -0
- package/esm2022/lib/components/tooltip/demo/click.js.map +1 -0
- package/esm2022/lib/components/tooltip/demo/events.js +37 -0
- package/esm2022/lib/components/tooltip/demo/events.js.map +1 -0
- package/esm2022/lib/components/tooltip/demo/hover.js +26 -0
- package/esm2022/lib/components/tooltip/demo/hover.js.map +1 -0
- package/esm2022/lib/components/tooltip/demo/position.js +40 -0
- package/esm2022/lib/components/tooltip/demo/position.js.map +1 -0
- package/esm2022/lib/components/tooltip/demo/tooltip.js +27 -0
- package/esm2022/lib/components/tooltip/demo/tooltip.js.map +1 -0
- package/esm2022/lib/components/tooltip/index.js +5 -0
- package/esm2022/lib/components/tooltip/index.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.config.js +40 -0
- package/esm2022/lib/components/tooltip/tooltip.config.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.directive.js +163 -0
- package/esm2022/lib/components/tooltip/tooltip.directive.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.imports.js +20 -0
- package/esm2022/lib/components/tooltip/tooltip.imports.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.js +32 -0
- package/esm2022/lib/components/tooltip/tooltip.js.map +1 -0
- package/esm2022/lib/components/tooltip/tooltip.variants.js +13 -0
- package/esm2022/lib/components/tooltip/tooltip.variants.js.map +1 -0
- package/esm2022/lib/components/tree/demo/default.js +52 -0
- package/esm2022/lib/components/tree/demo/default.js.map +1 -0
- package/esm2022/lib/components/tree/demo/selection.js +56 -0
- package/esm2022/lib/components/tree/demo/selection.js.map +1 -0
- package/esm2022/lib/components/tree/demo/tree.js +10 -0
- package/esm2022/lib/components/tree/demo/tree.js.map +1 -0
- package/esm2022/lib/components/tree/index.js +4 -0
- package/esm2022/lib/components/tree/index.js.map +1 -0
- package/esm2022/lib/components/tree/tree.interface.js +1 -0
- package/esm2022/lib/components/tree/tree.interface.js.map +1 -0
- package/esm2022/lib/components/tree/tree.js +138 -0
- package/esm2022/lib/components/tree/tree.js.map +1 -0
- package/esm2022/lib/components/tree/tree.variants.js +17 -0
- package/esm2022/lib/components/tree/tree.variants.js.map +1 -0
- package/esm2022/lib/components/upload/demo/default.js +42 -0
- package/esm2022/lib/components/upload/demo/default.js.map +1 -0
- package/esm2022/lib/components/upload/demo/dropzone.js +42 -0
- package/esm2022/lib/components/upload/demo/dropzone.js.map +1 -0
- package/esm2022/lib/components/upload/demo/multiple.js +42 -0
- package/esm2022/lib/components/upload/demo/multiple.js.map +1 -0
- package/esm2022/lib/components/upload/demo/selected.js +53 -0
- package/esm2022/lib/components/upload/demo/selected.js.map +1 -0
- package/esm2022/lib/components/upload/demo/upload.js +15 -0
- package/esm2022/lib/components/upload/demo/upload.js.map +1 -0
- package/esm2022/lib/components/upload/index.js +5 -0
- package/esm2022/lib/components/upload/index.js.map +1 -0
- package/esm2022/lib/components/upload/upload.interface.js +1 -0
- package/esm2022/lib/components/upload/upload.interface.js.map +1 -0
- package/esm2022/lib/components/upload/upload.js +227 -0
- package/esm2022/lib/components/upload/upload.js.map +1 -0
- package/esm2022/lib/components/upload/upload.service.js +36 -0
- package/esm2022/lib/components/upload/upload.service.js.map +1 -0
- package/esm2022/lib/components/upload/upload.variants.js +29 -0
- package/esm2022/lib/components/upload/upload.variants.js.map +1 -0
- package/esm2022/lib/core/directives/generate-id.directive.js +29 -0
- package/esm2022/lib/core/directives/generate-id.directive.js.map +1 -0
- package/esm2022/lib/core/directives/index.js +4 -0
- package/esm2022/lib/core/directives/index.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/index.js +4 -0
- package/esm2022/lib/core/directives/normalize/index.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/normalize.config.js +7 -0
- package/esm2022/lib/core/directives/normalize/normalize.config.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/normalize.directive.js +37 -0
- package/esm2022/lib/core/directives/normalize/normalize.directive.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/alfa.strategy.js +14 -0
- package/esm2022/lib/core/directives/normalize/strategies/alfa.strategy.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/alfanum.strategy.js +14 -0
- package/esm2022/lib/core/directives/normalize/strategies/alfanum.strategy.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/index.js +11 -0
- package/esm2022/lib/core/directives/normalize/strategies/index.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/normalize.strategy.js +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/normalize.strategy.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/numeric.strategy.js +6 -0
- package/esm2022/lib/core/directives/normalize/strategies/numeric.strategy.js.map +1 -0
- package/esm2022/lib/core/directives/normalize/strategies/uppercase.strategy.js +6 -0
- package/esm2022/lib/core/directives/normalize/strategies/uppercase.strategy.js.map +1 -0
- package/esm2022/lib/core/directives/string-template-ref.directive.js +69 -0
- package/esm2022/lib/core/directives/string-template-ref.directive.js.map +1 -0
- package/esm2022/lib/core/helpers/index.js +2 -0
- package/esm2022/lib/core/helpers/index.js.map +1 -0
- package/esm2022/lib/core/helpers/merge.helper.js +10 -0
- package/esm2022/lib/core/helpers/merge.helper.js.map +1 -0
- package/esm2022/lib/core/index.js +6 -0
- package/esm2022/lib/core/index.js.map +1 -0
- package/esm2022/lib/core/interfaces/control-value.interface.js +1 -0
- package/esm2022/lib/core/interfaces/control-value.interface.js.map +1 -0
- package/esm2022/lib/core/interfaces/index.js +2 -0
- package/esm2022/lib/core/interfaces/index.js.map +1 -0
- package/esm2022/lib/core/template/index.js +2 -0
- package/esm2022/lib/core/template/index.js.map +1 -0
- package/esm2022/lib/core/template/print/print.js +25 -0
- package/esm2022/lib/core/template/print/print.js.map +1 -0
- package/esm2022/lib/core/template/print/print.pipe.js +18 -0
- package/esm2022/lib/core/template/print/print.pipe.js.map +1 -0
- package/esm2022/lib/core/utils/clipboard.util.js +66 -0
- package/esm2022/lib/core/utils/clipboard.util.js.map +1 -0
- package/esm2022/lib/core/utils/index.js +2 -0
- package/esm2022/lib/core/utils/index.js.map +1 -0
- package/esm2022/lib/infra/index.js +2 -0
- package/esm2022/lib/infra/index.js.map +1 -0
- package/esm2022/lib/infra/stores/index.js +2 -0
- package/esm2022/lib/infra/stores/index.js.map +1 -0
- package/esm2022/lib/infra/stores/theme.store.js +39 -0
- package/esm2022/lib/infra/stores/theme.store.js.map +1 -0
- package/index.d.ts +3 -0
- package/lib/components/accordion/accordion.d.ts +31 -0
- package/lib/components/accordion/accordion.service.d.ts +15 -0
- package/lib/components/accordion/accordion.variants.d.ts +10 -0
- package/lib/components/accordion/demo/accordion.d.ts +8 -0
- package/lib/components/accordion/demo/default.d.ts +5 -0
- package/lib/components/accordion/demo/single.d.ts +5 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/alert/alert.d.ts +13 -0
- package/lib/components/alert/alert.variants.d.ts +6 -0
- package/lib/components/alert/demo/accent.d.ts +7 -0
- package/lib/components/alert/demo/alert.d.ts +9 -0
- package/lib/components/alert/demo/destructive.d.ts +7 -0
- package/lib/components/alert/demo/icon.d.ts +7 -0
- package/lib/components/alert/demo/info.d.ts +7 -0
- package/lib/components/alert/demo/primary.d.ts +7 -0
- package/lib/components/alert/demo/success.d.ts +7 -0
- package/lib/components/alert/demo/warning.d.ts +7 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/alert-dialog/alert-dialog.config.d.ts +27 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts +26 -0
- package/lib/components/alert-dialog/alert-dialog.ref.d.ts +18 -0
- package/lib/components/alert-dialog/alert-dialog.service.d.ts +20 -0
- package/lib/components/alert-dialog/alert-dialog.variants.d.ts +3 -0
- package/lib/components/alert-dialog/demo/alert-dialog.d.ts +9 -0
- package/lib/components/alert-dialog/demo/default.d.ts +7 -0
- package/lib/components/alert-dialog/index.d.ts +5 -0
- package/lib/components/avatar/avatar-group.d.ts +9 -0
- package/lib/components/avatar/avatar.d.ts +23 -0
- package/lib/components/avatar/avatar.variants.d.ts +14 -0
- package/lib/components/avatar/demo/avatar.d.ts +9 -0
- package/lib/components/avatar/demo/default.d.ts +5 -0
- package/lib/components/avatar/demo/shape.d.ts +5 -0
- package/lib/components/avatar/demo/size.d.ts +5 -0
- package/lib/components/avatar/demo/status.d.ts +5 -0
- package/lib/components/avatar/index.d.ts +3 -0
- package/lib/components/badge/badge.d.ts +15 -0
- package/lib/components/badge/badge.variants.d.ts +8 -0
- package/lib/components/badge/demo/badge.d.ts +9 -0
- package/lib/components/badge/demo/close.d.ts +8 -0
- package/lib/components/badge/demo/disabled.d.ts +5 -0
- package/lib/components/badge/demo/fill.d.ts +5 -0
- package/lib/components/badge/demo/icon.d.ts +5 -0
- package/lib/components/badge/demo/shape.d.ts +5 -0
- package/lib/components/badge/demo/variant.d.ts +5 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/breadcrumb/breadcrumb-content.d.ts +8 -0
- package/lib/components/breadcrumb/breadcrumb-item.d.ts +9 -0
- package/lib/components/breadcrumb/breadcrumb-link.d.ts +9 -0
- package/lib/components/breadcrumb/breadcrumb-list.d.ts +9 -0
- package/lib/components/breadcrumb/breadcrumb-page.d.ts +8 -0
- package/lib/components/breadcrumb/breadcrumb-separator.d.ts +10 -0
- package/lib/components/breadcrumb/breadcrumb.config.d.ts +6 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts +12 -0
- package/lib/components/breadcrumb/breadcrumb.directive.d.ts +9 -0
- package/lib/components/breadcrumb/breadcrumb.imports.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb.service.d.ts +17 -0
- package/lib/components/breadcrumb/breadcrumb.variants.d.ts +27 -0
- package/lib/components/breadcrumb/demo/breadcrumb.d.ts +9 -0
- package/lib/components/breadcrumb/demo/content.d.ts +5 -0
- package/lib/components/breadcrumb/demo/custom-separator.d.ts +5 -0
- package/lib/components/breadcrumb/demo/default.d.ts +5 -0
- package/lib/components/breadcrumb/demo/directive.d.ts +5 -0
- package/lib/components/breadcrumb/demo/icon.d.ts +5 -0
- package/lib/components/breadcrumb/demo/router-link.d.ts +5 -0
- package/lib/components/breadcrumb/index.d.ts +4 -0
- package/lib/components/button/button.d.ts +17 -0
- package/lib/components/button/button.variants.d.ts +11 -0
- package/lib/components/button/demo/button.d.ts +9 -0
- package/lib/components/button/demo/disabled.d.ts +5 -0
- package/lib/components/button/demo/fill.d.ts +5 -0
- package/lib/components/button/demo/full.d.ts +5 -0
- package/lib/components/button/demo/icon.d.ts +5 -0
- package/lib/components/button/demo/loading.d.ts +5 -0
- package/lib/components/button/demo/shape.d.ts +5 -0
- package/lib/components/button/demo/size.d.ts +5 -0
- package/lib/components/button/demo/variant.d.ts +5 -0
- package/lib/components/button/index.d.ts +2 -0
- package/lib/components/button-toggle/button-toggle.d.ts +36 -0
- package/lib/components/button-toggle/button-toggle.variants.d.ts +11 -0
- package/lib/components/button-toggle/demo/button-toggle.d.ts +9 -0
- package/lib/components/button-toggle/demo/default.d.ts +9 -0
- package/lib/components/button-toggle/demo/disabled.d.ts +7 -0
- package/lib/components/button-toggle/demo/size.d.ts +7 -0
- package/lib/components/button-toggle/index.d.ts +2 -0
- package/lib/components/card/card.d.ts +17 -0
- package/lib/components/card/card.variants.d.ts +9 -0
- package/lib/components/card/demo/card.d.ts +9 -0
- package/lib/components/card/demo/default.d.ts +5 -0
- package/lib/components/card/demo/disabled.d.ts +5 -0
- package/lib/components/card/index.d.ts +2 -0
- package/lib/components/carousel/carousel.d.ts +41 -0
- package/lib/components/carousel/carousel.service.d.ts +29 -0
- package/lib/components/carousel/carousel.variants.d.ts +18 -0
- package/lib/components/carousel/demo/autoplay.d.ts +11 -0
- package/lib/components/carousel/demo/carousel.d.ts +8 -0
- package/lib/components/carousel/demo/default.d.ts +9 -0
- package/lib/components/carousel/demo/loop.d.ts +9 -0
- package/lib/components/carousel/index.d.ts +2 -0
- package/lib/components/command/command-empty.d.ts +12 -0
- package/lib/components/command/command-input.d.ts +28 -0
- package/lib/components/command/command-item-group.d.ts +20 -0
- package/lib/components/command/command-item.d.ts +29 -0
- package/lib/components/command/command-list.d.ts +8 -0
- package/lib/components/command/command-separator.d.ts +10 -0
- package/lib/components/command/command.config.d.ts +27 -0
- package/lib/components/command/command.d.ts +40 -0
- package/lib/components/command/command.imports.d.ts +8 -0
- package/lib/components/command/command.variants.d.ts +15 -0
- package/lib/components/command/demo/command.d.ts +9 -0
- package/lib/components/command/demo/default.d.ts +12 -0
- package/lib/components/command/index.d.ts +9 -0
- package/lib/components/date-picker/date-picker-overlay.service.d.ts +15 -0
- package/lib/components/date-picker/date-picker.d.ts +37 -0
- package/lib/components/date-picker/date-picker.util.d.ts +18 -0
- package/lib/components/date-picker/date-picker.variants.d.ts +7 -0
- package/lib/components/date-picker/demo/date-picker.d.ts +8 -0
- package/lib/components/date-picker/demo/default.d.ts +6 -0
- package/lib/components/date-picker/demo/disabled.d.ts +5 -0
- package/lib/components/date-picker/demo/range.d.ts +6 -0
- package/lib/components/date-picker/index.d.ts +2 -0
- package/lib/components/dialog/demo/default.d.ts +32 -0
- package/lib/components/dialog/demo/dialog.d.ts +9 -0
- package/lib/components/dialog/dialog-ref.d.ts +16 -0
- package/lib/components/dialog/dialog.config.d.ts +23 -0
- package/lib/components/dialog/dialog.d.ts +22 -0
- package/lib/components/dialog/dialog.module.d.ts +10 -0
- package/lib/components/dialog/dialog.service.d.ts +16 -0
- package/lib/components/dialog/dialog.variants.d.ts +3 -0
- package/lib/components/dialog/index.d.ts +4 -0
- package/lib/components/empty/demo/advanced.d.ts +5 -0
- package/lib/components/empty/demo/custom-image.d.ts +5 -0
- package/lib/components/empty/demo/default.d.ts +5 -0
- package/lib/components/empty/demo/empty.d.ts +9 -0
- package/lib/components/empty/empty.d.ts +19 -0
- package/lib/components/empty/empty.variants.d.ts +7 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/float-button/demo/float-button.d.ts +9 -0
- package/lib/components/float-button/demo/float-group.d.ts +5 -0
- package/lib/components/float-button/demo/float-top.d.ts +5 -0
- package/lib/components/float-button/demo/position.d.ts +5 -0
- package/lib/components/float-button/demo/shape.d.ts +5 -0
- package/lib/components/float-button/demo/size.d.ts +5 -0
- package/lib/components/float-button/demo/variant.d.ts +5 -0
- package/lib/components/float-button/float-button-group.d.ts +26 -0
- package/lib/components/float-button/float-button-top.d.ts +22 -0
- package/lib/components/float-button/float-button.d.ts +17 -0
- package/lib/components/float-button/float-button.variants.d.ts +7 -0
- package/lib/components/float-button/index.d.ts +4 -0
- package/lib/components/form-field/autocomplete/autocomplete-config.d.ts +19 -0
- package/lib/components/form-field/autocomplete/autocomplete.d.ts +54 -0
- package/lib/components/form-field/autocomplete/autocomplete.variants.d.ts +12 -0
- package/lib/components/form-field/autocomplete/demo/autocomplete.d.ts +8 -0
- package/lib/components/form-field/autocomplete/demo/default.d.ts +19 -0
- package/lib/components/form-field/autocomplete/demo/events.d.ts +21 -0
- package/lib/components/form-field/autocomplete/demo/validation.d.ts +21 -0
- package/lib/components/form-field/autocomplete/index.d.ts +3 -0
- package/lib/components/form-field/autocomplete/services/autocomplete-overlay.service.d.ts +15 -0
- package/lib/components/form-field/autocomplete/services/index.d.ts +1 -0
- package/lib/components/form-field/checkbox/checkbox.d.ts +32 -0
- package/lib/components/form-field/checkbox/checkbox.variants.d.ts +12 -0
- package/lib/components/form-field/checkbox/demo/checkbox.d.ts +9 -0
- package/lib/components/form-field/checkbox/demo/default.d.ts +6 -0
- package/lib/components/form-field/checkbox/demo/destructive.d.ts +6 -0
- package/lib/components/form-field/checkbox/demo/disabled.d.ts +7 -0
- package/lib/components/form-field/checkbox/demo/shape.d.ts +5 -0
- package/lib/components/form-field/checkbox/demo/size.d.ts +5 -0
- package/lib/components/form-field/checkbox/demo/validation.d.ts +14 -0
- package/lib/components/form-field/checkbox/index.d.ts +2 -0
- package/lib/components/form-field/datetime/datetime.d.ts +32 -0
- package/lib/components/form-field/datetime/datetime.variants.d.ts +10 -0
- package/lib/components/form-field/datetime/demo/datetime.d.ts +8 -0
- package/lib/components/form-field/datetime/demo/default.d.ts +17 -0
- package/lib/components/form-field/datetime/demo/disabled.d.ts +5 -0
- package/lib/components/form-field/datetime/demo/validation.d.ts +13 -0
- package/lib/components/form-field/datetime/index.d.ts +2 -0
- package/lib/components/form-field/index.d.ts +9 -0
- package/lib/components/form-field/input/currency-mask.service.d.ts +8 -0
- package/lib/components/form-field/input/demo/default.d.ts +11 -0
- package/lib/components/form-field/input/demo/disabled.d.ts +11 -0
- package/lib/components/form-field/input/demo/icon.d.ts +12 -0
- package/lib/components/form-field/input/demo/input.d.ts +29 -0
- package/lib/components/form-field/input/demo/mask.d.ts +19 -0
- package/lib/components/form-field/input/demo/normalize.d.ts +15 -0
- package/lib/components/form-field/input/demo/password.d.ts +11 -0
- package/lib/components/form-field/input/demo/validation.d.ts +18 -0
- package/lib/components/form-field/input/demo/variant.d.ts +15 -0
- package/lib/components/form-field/input/index.d.ts +3 -0
- package/lib/components/form-field/input/input.d.ts +56 -0
- package/lib/components/form-field/input/input.variants.d.ts +13 -0
- package/lib/components/form-field/input/interfaces/feedback.interface.d.ts +21 -0
- package/lib/components/form-field/input/interfaces/index.d.ts +3 -0
- package/lib/components/form-field/input/interfaces/mask-config.interface.d.ts +10 -0
- package/lib/components/form-field/input/interfaces/password-strength.d.ts +16 -0
- package/lib/components/form-field/radio/demo/default.d.ts +11 -0
- package/lib/components/form-field/radio/demo/disabled.d.ts +11 -0
- package/lib/components/form-field/radio/demo/radio.d.ts +12 -0
- package/lib/components/form-field/radio/demo/size.d.ts +11 -0
- package/lib/components/form-field/radio/demo/validation.d.ts +14 -0
- package/lib/components/form-field/radio/index.d.ts +4 -0
- package/lib/components/form-field/radio/radio-group.d.ts +21 -0
- package/lib/components/form-field/radio/radio.d.ts +20 -0
- package/lib/components/form-field/radio/radio.imports.d.ts +3 -0
- package/lib/components/form-field/radio/radio.variants.d.ts +9 -0
- package/lib/components/form-field/segmented/demo/default.d.ts +13 -0
- package/lib/components/form-field/segmented/demo/disabled.d.ts +8 -0
- package/lib/components/form-field/segmented/demo/segmented.d.ts +8 -0
- package/lib/components/form-field/segmented/demo/size.d.ts +7 -0
- package/lib/components/form-field/segmented/index.d.ts +3 -0
- package/lib/components/form-field/segmented/segmented.d.ts +27 -0
- package/lib/components/form-field/segmented/segmented.interface.d.ts +7 -0
- package/lib/components/form-field/segmented/segmented.variants.d.ts +6 -0
- package/lib/components/form-field/select/demo/default.d.ts +6 -0
- package/lib/components/form-field/select/demo/multiple.d.ts +6 -0
- package/lib/components/form-field/select/demo/select.d.ts +13 -0
- package/lib/components/form-field/select/index.d.ts +4 -0
- package/lib/components/form-field/select/select-item.d.ts +29 -0
- package/lib/components/form-field/select/select.d.ts +62 -0
- package/lib/components/form-field/select/select.facade.d.ts +25 -0
- package/lib/components/form-field/select/select.imports.d.ts +3 -0
- package/lib/components/form-field/select/select.variants.d.ts +16 -0
- package/lib/components/form-field/select/services/index.d.ts +5 -0
- package/lib/components/form-field/select/services/select-dom.service.d.ts +10 -0
- package/lib/components/form-field/select/services/select-keyword.service.d.ts +17 -0
- package/lib/components/form-field/select/services/select-labels.service.d.ts +17 -0
- package/lib/components/form-field/select/services/select-overlay.service.d.ts +19 -0
- package/lib/components/form-field/select/services/select.store.d.ts +14 -0
- package/lib/components/form-field/switch/demo/default.d.ts +5 -0
- package/lib/components/form-field/switch/demo/disabled.d.ts +5 -0
- package/lib/components/form-field/switch/demo/size.d.ts +5 -0
- package/lib/components/form-field/switch/demo/switch.d.ts +8 -0
- package/lib/components/form-field/switch/index.d.ts +2 -0
- package/lib/components/form-field/switch/switch.d.ts +21 -0
- package/lib/components/form-field/switch/switch.variants.d.ts +12 -0
- package/lib/components/form-field/textarea/demo/default.d.ts +11 -0
- package/lib/components/form-field/textarea/demo/disabled.d.ts +11 -0
- package/lib/components/form-field/textarea/demo/resize.d.ts +15 -0
- package/lib/components/form-field/textarea/demo/textarea.d.ts +21 -0
- package/lib/components/form-field/textarea/demo/validation.d.ts +13 -0
- package/lib/components/form-field/textarea/demo/variant.d.ts +15 -0
- package/lib/components/form-field/textarea/index.d.ts +2 -0
- package/lib/components/form-field/textarea/textarea.d.ts +37 -0
- package/lib/components/form-field/textarea/textarea.variants.d.ts +14 -0
- package/lib/components/icon/demo/icon.d.ts +9 -0
- package/lib/components/icon/demo/searchable.d.ts +18 -0
- package/lib/components/icon/demo/size.d.ts +5 -0
- package/lib/components/icon/demo/type.d.ts +5 -0
- package/lib/components/icon/icon-categories.d.ts +3 -0
- package/lib/components/icon/icon.component.d.ts +13 -0
- package/lib/components/icon/icon.variants.d.ts +6 -0
- package/lib/components/icon/icons.d.ts +1116 -0
- package/lib/components/icon/index.d.ts +3 -0
- package/lib/components/index.d.ts +30 -0
- package/lib/components/loader/demo/loader.d.ts +9 -0
- package/lib/components/loader/demo/size.d.ts +5 -0
- package/lib/components/loader/demo/type.d.ts +9 -0
- package/lib/components/loader/index.d.ts +3 -0
- package/lib/components/loader/loader-progess.d.ts +13 -0
- package/lib/components/loader/loader.d.ts +19 -0
- package/lib/components/loader/loader.service.d.ts +10 -0
- package/lib/components/loader/loader.variants.d.ts +7 -0
- package/lib/components/markdown/demo/editor.d.ts +8 -0
- package/lib/components/markdown/demo/markdown.d.ts +13 -0
- package/lib/components/markdown/demo/viewer.d.ts +8 -0
- package/lib/components/markdown/icon.helper.d.ts +79 -0
- package/lib/components/markdown/index.d.ts +2 -0
- package/lib/components/markdown/language-icons.d.ts +3 -0
- package/lib/components/markdown/markdown.d.ts +45 -0
- package/lib/components/markdown/markdown.service.d.ts +11 -0
- package/lib/components/pagination/demo/custom.d.ts +11 -0
- package/lib/components/pagination/demo/default.d.ts +6 -0
- package/lib/components/pagination/demo/info.d.ts +9 -0
- package/lib/components/pagination/demo/intl.d.ts +9 -0
- package/lib/components/pagination/demo/pagination.d.ts +21 -0
- package/lib/components/pagination/index.d.ts +4 -0
- package/lib/components/pagination/pagination-button.d.ts +11 -0
- package/lib/components/pagination/pagination-content.d.ts +8 -0
- package/lib/components/pagination/pagination-ellipsis.d.ts +8 -0
- package/lib/components/pagination/pagination-intl.d.ts +20 -0
- package/lib/components/pagination/pagination-item.d.ts +5 -0
- package/lib/components/pagination/pagination-next.d.ts +11 -0
- package/lib/components/pagination/pagination-prev.d.ts +11 -0
- package/lib/components/pagination/pagination.d.ts +30 -0
- package/lib/components/pagination/pagination.imports.d.ts +8 -0
- package/lib/components/pagination/pagination.variants.d.ts +11 -0
- package/lib/components/progress-bar/demo/indeterminate.d.ts +5 -0
- package/lib/components/progress-bar/demo/progress-bar.d.ts +12 -0
- package/lib/components/progress-bar/demo/shape.d.ts +6 -0
- package/lib/components/progress-bar/demo/size.d.ts +6 -0
- package/lib/components/progress-bar/demo/variant.d.ts +6 -0
- package/lib/components/progress-bar/index.d.ts +3 -0
- package/lib/components/progress-bar/progress-bar.d.ts +31 -0
- package/lib/components/progress-bar/progress-bar.variants.d.ts +17 -0
- package/lib/components/separator/demo/orientation.d.ts +5 -0
- package/lib/components/separator/demo/separator.d.ts +9 -0
- package/lib/components/separator/index.d.ts +2 -0
- package/lib/components/separator/separator.d.ts +9 -0
- package/lib/components/separator/separator.variants.d.ts +5 -0
- package/lib/components/skeleton/demo/card.d.ts +5 -0
- package/lib/components/skeleton/demo/chart.d.ts +5 -0
- package/lib/components/skeleton/demo/default.d.ts +5 -0
- package/lib/components/skeleton/demo/skeleton.d.ts +8 -0
- package/lib/components/skeleton/index.d.ts +2 -0
- package/lib/components/skeleton/skeleton.d.ts +8 -0
- package/lib/components/skeleton/skeleton.variants.d.ts +3 -0
- package/lib/components/stepper/demo/default.d.ts +5 -0
- package/lib/components/stepper/demo/orientation.d.ts +5 -0
- package/lib/components/stepper/demo/stepper.d.ts +8 -0
- package/lib/components/stepper/demo/validation.d.ts +12 -0
- package/lib/components/stepper/index.d.ts +2 -0
- package/lib/components/stepper/stepper.d.ts +39 -0
- package/lib/components/stepper/stepper.service.d.ts +22 -0
- package/lib/components/stepper/stepper.variants.d.ts +19 -0
- package/lib/components/table/cell-template.directive.d.ts +8 -0
- package/lib/components/table/demo/border.d.ts +10 -0
- package/lib/components/table/demo/default.d.ts +12 -0
- package/lib/components/table/demo/pagination.d.ts +16 -0
- package/lib/components/table/demo/selected.d.ts +12 -0
- package/lib/components/table/demo/size.d.ts +10 -0
- package/lib/components/table/demo/sort.d.ts +11 -0
- package/lib/components/table/demo/table.d.ts +17 -0
- package/lib/components/table/demo/user.d.ts +15 -0
- package/lib/components/table/index.d.ts +4 -0
- package/lib/components/table/table.config.d.ts +29 -0
- package/lib/components/table/table.d.ts +45 -0
- package/lib/components/table/table.variants.d.ts +21 -0
- package/lib/components/tabs/demo/align.d.ts +8 -0
- package/lib/components/tabs/demo/arrows.d.ts +10 -0
- package/lib/components/tabs/demo/default.d.ts +5 -0
- package/lib/components/tabs/demo/position.d.ts +9 -0
- package/lib/components/tabs/demo/tabs.d.ts +12 -0
- package/lib/components/tabs/index.d.ts +2 -0
- package/lib/components/tabs/tabs.d.ts +45 -0
- package/lib/components/tabs/tabs.variants.d.ts +18 -0
- package/lib/components/toast/demo/default.d.ts +7 -0
- package/lib/components/toast/demo/position.d.ts +12 -0
- package/lib/components/toast/demo/toast.d.ts +17 -0
- package/lib/components/toast/demo/type.d.ts +11 -0
- package/lib/components/toast/index.d.ts +3 -0
- package/lib/components/toast/toast-content.d.ts +8 -0
- package/lib/components/toast/toast.config.d.ts +12 -0
- package/lib/components/toast/toast.d.ts +11 -0
- package/lib/components/toast/toast.pipe.d.ts +16 -0
- package/lib/components/toast/toast.service.d.ts +17 -0
- package/lib/components/toast/toast.variants.d.ts +5 -0
- package/lib/components/tooltip/demo/click.d.ts +5 -0
- package/lib/components/tooltip/demo/events.d.ts +8 -0
- package/lib/components/tooltip/demo/hover.d.ts +5 -0
- package/lib/components/tooltip/demo/position.d.ts +5 -0
- package/lib/components/tooltip/demo/tooltip.d.ts +9 -0
- package/lib/components/tooltip/index.d.ts +4 -0
- package/lib/components/tooltip/tooltip.config.d.ts +12 -0
- package/lib/components/tooltip/tooltip.d.ts +16 -0
- package/lib/components/tooltip/tooltip.directive.d.ts +28 -0
- package/lib/components/tooltip/tooltip.imports.d.ts +13 -0
- package/lib/components/tooltip/tooltip.variants.d.ts +7 -0
- package/lib/components/tree/demo/default.d.ts +7 -0
- package/lib/components/tree/demo/selection.d.ts +9 -0
- package/lib/components/tree/demo/tree.d.ts +8 -0
- package/lib/components/tree/index.d.ts +3 -0
- package/lib/components/tree/tree.d.ts +29 -0
- package/lib/components/tree/tree.interface.d.ts +9 -0
- package/lib/components/tree/tree.variants.d.ts +7 -0
- package/lib/components/upload/demo/default.d.ts +11 -0
- package/lib/components/upload/demo/dropzone.d.ts +11 -0
- package/lib/components/upload/demo/multiple.d.ts +11 -0
- package/lib/components/upload/demo/selected.d.ts +12 -0
- package/lib/components/upload/demo/upload.d.ts +21 -0
- package/lib/components/upload/index.d.ts +4 -0
- package/lib/components/upload/upload.d.ts +32 -0
- package/lib/components/upload/upload.interface.d.ts +8 -0
- package/lib/components/upload/upload.service.d.ts +8 -0
- package/lib/components/upload/upload.variants.d.ts +10 -0
- package/lib/core/directives/generate-id.directive.d.ts +8 -0
- package/lib/core/directives/index.d.ts +3 -0
- package/lib/core/directives/normalize/index.d.ts +3 -0
- package/lib/core/directives/normalize/normalize.config.d.ts +7 -0
- package/lib/core/directives/normalize/normalize.directive.d.ts +13 -0
- package/lib/core/directives/normalize/strategies/alfa.strategy.d.ts +5 -0
- package/lib/core/directives/normalize/strategies/alfanum.strategy.d.ts +5 -0
- package/lib/core/directives/normalize/strategies/index.d.ts +11 -0
- package/lib/core/directives/normalize/strategies/normalize.strategy.d.ts +4 -0
- package/lib/core/directives/normalize/strategies/numeric.strategy.d.ts +4 -0
- package/lib/core/directives/normalize/strategies/uppercase.strategy.d.ts +4 -0
- package/lib/core/directives/string-template-ref.directive.d.ts +19 -0
- package/lib/core/helpers/index.d.ts +1 -0
- package/lib/core/helpers/merge.helper.d.ts +4 -0
- package/lib/core/index.d.ts +5 -0
- package/lib/core/interfaces/control-value.interface.d.ts +2 -0
- package/lib/core/interfaces/index.d.ts +1 -0
- package/lib/core/template/index.d.ts +1 -0
- package/lib/core/template/print/print.d.ts +6 -0
- package/lib/core/template/print/print.pipe.d.ts +7 -0
- package/lib/core/utils/clipboard.util.d.ts +14 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/infra/index.d.ts +1 -0
- package/lib/infra/stores/index.d.ts +1 -0
- package/lib/infra/stores/theme.store.d.ts +12 -0
- package/package.json +58 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, contentChildren, input, output, signal, TemplateRef, viewChild, ViewEncapsulation, } from "@angular/core";
|
|
3
|
+
import { mergeClasses, transform } from "../../core";
|
|
4
|
+
import { AiIcon } from "../icon";
|
|
5
|
+
import { tabButtonVariants, tabIndicatorVariants, tabsGroupVariants, tabsHeaderVariants } from "./tabs.variants";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class AiTab {
|
|
8
|
+
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
9
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
10
|
+
content = viewChild.required(TemplateRef);
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiTab, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.1", type: AiTab, isStandalone: true, selector: "ai-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: none" }, viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], exportAs: ["aiTab"], ngImport: i0, template: `
|
|
13
|
+
<ng-template>
|
|
14
|
+
<ng-content />
|
|
15
|
+
</ng-template>
|
|
16
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiTab, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: "ai-tab",
|
|
22
|
+
exportAs: "aiTab",
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
encapsulation: ViewEncapsulation.None,
|
|
25
|
+
template: `
|
|
26
|
+
<ng-template>
|
|
27
|
+
<ng-content />
|
|
28
|
+
</ng-template>
|
|
29
|
+
`,
|
|
30
|
+
host: {
|
|
31
|
+
style: "display: none",
|
|
32
|
+
},
|
|
33
|
+
}]
|
|
34
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], content: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
35
|
+
export class AiTabsGroup {
|
|
36
|
+
tabs = contentChildren(AiTab, ...(ngDevMode ? [{ debugName: "tabs" }] : []));
|
|
37
|
+
tabsPosition = input("top", ...(ngDevMode ? [{ debugName: "tabsPosition" }] : []));
|
|
38
|
+
activePosition = input("bottom", ...(ngDevMode ? [{ debugName: "activePosition" }] : []));
|
|
39
|
+
alignTabs = input("start", ...(ngDevMode ? [{ debugName: "alignTabs" }] : []));
|
|
40
|
+
showArrows = input(false, { ...(ngDevMode ? { debugName: "showArrows" } : {}), transform });
|
|
41
|
+
class = input("", ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
42
|
+
changeTab = output();
|
|
43
|
+
selectedIndex = signal(0, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : []));
|
|
44
|
+
canScrollLeft = signal(false, ...(ngDevMode ? [{ debugName: "canScrollLeft" }] : []));
|
|
45
|
+
canScrollRight = signal(false, ...(ngDevMode ? [{ debugName: "canScrollRight" }] : []));
|
|
46
|
+
hasOverflow = signal(false, ...(ngDevMode ? [{ debugName: "hasOverflow" }] : []));
|
|
47
|
+
resizeObserver;
|
|
48
|
+
scrollContainer = viewChild("scrollContainer", ...(ngDevMode ? [{ debugName: "scrollContainer" }] : []));
|
|
49
|
+
outerContainer = viewChild("outerContainer", ...(ngDevMode ? [{ debugName: "outerContainer" }] : []));
|
|
50
|
+
arrowsVisible = computed(() => this.showArrows() || this.hasOverflow(), ...(ngDevMode ? [{ debugName: "arrowsVisible" }] : []));
|
|
51
|
+
classes = computed(() => mergeClasses(tabsGroupVariants({ tabsPosition: this.tabsPosition() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
52
|
+
headerClasses = computed(() => mergeClasses(tabsHeaderVariants({ tabsPosition: this.tabsPosition(), alignTabs: this.alignTabs() }), "overflow-x-auto ai-tabs-scroll flex-1 min-w-0"), ...(ngDevMode ? [{ debugName: "headerClasses" }] : []));
|
|
53
|
+
indicatorClasses = computed(() => mergeClasses(tabIndicatorVariants({ activePosition: this.activePosition() })), ...(ngDevMode ? [{ debugName: "indicatorClasses" }] : []));
|
|
54
|
+
tabClasses(index) {
|
|
55
|
+
return mergeClasses(tabButtonVariants({ active: index === this.selectedIndex() }));
|
|
56
|
+
}
|
|
57
|
+
ngAfterContentInit() {
|
|
58
|
+
const tabs = this.tabs();
|
|
59
|
+
const first = tabs.findIndex(t => !t.disabled());
|
|
60
|
+
if (first >= 0) {
|
|
61
|
+
this.selectedIndex.set(first);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
ngAfterViewInit() {
|
|
65
|
+
const container = this.outerContainer()?.nativeElement;
|
|
66
|
+
if (container) {
|
|
67
|
+
this.resizeObserver = new ResizeObserver(() => this.checkOverflow());
|
|
68
|
+
this.resizeObserver.observe(container);
|
|
69
|
+
}
|
|
70
|
+
this.checkOverflow();
|
|
71
|
+
}
|
|
72
|
+
ngOnDestroy() {
|
|
73
|
+
this.resizeObserver?.disconnect();
|
|
74
|
+
}
|
|
75
|
+
selectTab(index) {
|
|
76
|
+
const tab = this.tabs()[index];
|
|
77
|
+
if (tab && !tab.disabled()) {
|
|
78
|
+
this.selectedIndex.set(index);
|
|
79
|
+
this.changeTab.emit({ index, label: tab.label() });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
scrollLeft() {
|
|
83
|
+
const el = this.scrollContainer()?.nativeElement;
|
|
84
|
+
if (el)
|
|
85
|
+
el.scrollBy({ left: -150, behavior: "smooth" });
|
|
86
|
+
}
|
|
87
|
+
scrollRight() {
|
|
88
|
+
const el = this.scrollContainer()?.nativeElement;
|
|
89
|
+
if (el)
|
|
90
|
+
el.scrollBy({ left: 150, behavior: "smooth" });
|
|
91
|
+
}
|
|
92
|
+
updateScrollState() {
|
|
93
|
+
const el = this.scrollContainer()?.nativeElement;
|
|
94
|
+
if (!el)
|
|
95
|
+
return;
|
|
96
|
+
this.canScrollLeft.set(el.scrollLeft > 0);
|
|
97
|
+
this.canScrollRight.set(el.scrollLeft + el.clientWidth < el.scrollWidth - 1);
|
|
98
|
+
}
|
|
99
|
+
checkOverflow() {
|
|
100
|
+
const el = this.scrollContainer()?.nativeElement;
|
|
101
|
+
if (!el)
|
|
102
|
+
return;
|
|
103
|
+
this.hasOverflow.set(el.scrollWidth > el.clientWidth);
|
|
104
|
+
this.updateScrollState();
|
|
105
|
+
}
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiTabsGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: AiTabsGroup, isStandalone: true, selector: "ai-tabs-group", inputs: { tabsPosition: { classPropertyName: "tabsPosition", publicName: "tabsPosition", isSignal: true, isRequired: false, transformFunction: null }, activePosition: { classPropertyName: "activePosition", publicName: "activePosition", isSignal: true, isRequired: false, transformFunction: null }, alignTabs: { classPropertyName: "alignTabs", publicName: "alignTabs", isSignal: true, isRequired: false, transformFunction: null }, showArrows: { classPropertyName: "showArrows", publicName: "showArrows", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changeTab: "changeTab" }, host: { properties: { "class": "classes()" } }, queries: [{ propertyName: "tabs", predicate: AiTab, isSignal: true }], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true, isSignal: true }, { propertyName: "outerContainer", first: true, predicate: ["outerContainer"], descendants: true, isSignal: true }], exportAs: ["aiTabsGroup"], ngImport: i0, template: `
|
|
108
|
+
<div #outerContainer class="flex items-center w-full relative">
|
|
109
|
+
@if (arrowsVisible()) {
|
|
110
|
+
<button
|
|
111
|
+
type="button"
|
|
112
|
+
class="shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none"
|
|
113
|
+
[disabled]="!canScrollLeft()"
|
|
114
|
+
(click)="scrollLeft()"
|
|
115
|
+
>
|
|
116
|
+
<ai-icon icon="arrow-left-s" size="sm" />
|
|
117
|
+
</button>
|
|
118
|
+
}
|
|
119
|
+
<div #scrollContainer [class]="headerClasses()" (scroll)="updateScrollState()">
|
|
120
|
+
@for (tab of tabs(); track $index) {
|
|
121
|
+
<button type="button" [class]="tabClasses($index)" [disabled]="tab.disabled()" (click)="selectTab($index)">
|
|
122
|
+
{{ tab.label() }}
|
|
123
|
+
@if ($index === selectedIndex()) {
|
|
124
|
+
<span [class]="indicatorClasses()"></span>
|
|
125
|
+
}
|
|
126
|
+
</button>
|
|
127
|
+
}
|
|
128
|
+
</div>
|
|
129
|
+
@if (arrowsVisible()) {
|
|
130
|
+
<button
|
|
131
|
+
type="button"
|
|
132
|
+
class="shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none"
|
|
133
|
+
[disabled]="!canScrollRight()"
|
|
134
|
+
(click)="scrollRight()"
|
|
135
|
+
>
|
|
136
|
+
<ai-icon icon="arrow-right-s" size="sm" />
|
|
137
|
+
</button>
|
|
138
|
+
}
|
|
139
|
+
</div>
|
|
140
|
+
<div class="flex-1 min-h-0">
|
|
141
|
+
@for (tab of tabs(); track $index) {
|
|
142
|
+
<div [style.display]="$index === selectedIndex() ? 'block' : 'none'" class="p-4">
|
|
143
|
+
<ng-container [ngTemplateOutlet]="tab.content()" />
|
|
144
|
+
</div>
|
|
145
|
+
}
|
|
146
|
+
</div>
|
|
147
|
+
`, isInline: true, styles: [".ai-tabs-scroll::-webkit-scrollbar{display:none}.ai-tabs-scroll{-ms-overflow-style:none;scrollbar-width:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AiIcon, selector: "ai-icon, [ai-icon]", inputs: ["icon", "size", "type", "disabled", "class"], exportAs: ["aiIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
148
|
+
}
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiTabsGroup, decorators: [{
|
|
150
|
+
type: Component,
|
|
151
|
+
args: [{ selector: "ai-tabs-group", exportAs: "aiTabsGroup", imports: [NgTemplateOutlet, AiIcon], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `
|
|
152
|
+
<div #outerContainer class="flex items-center w-full relative">
|
|
153
|
+
@if (arrowsVisible()) {
|
|
154
|
+
<button
|
|
155
|
+
type="button"
|
|
156
|
+
class="shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none"
|
|
157
|
+
[disabled]="!canScrollLeft()"
|
|
158
|
+
(click)="scrollLeft()"
|
|
159
|
+
>
|
|
160
|
+
<ai-icon icon="arrow-left-s" size="sm" />
|
|
161
|
+
</button>
|
|
162
|
+
}
|
|
163
|
+
<div #scrollContainer [class]="headerClasses()" (scroll)="updateScrollState()">
|
|
164
|
+
@for (tab of tabs(); track $index) {
|
|
165
|
+
<button type="button" [class]="tabClasses($index)" [disabled]="tab.disabled()" (click)="selectTab($index)">
|
|
166
|
+
{{ tab.label() }}
|
|
167
|
+
@if ($index === selectedIndex()) {
|
|
168
|
+
<span [class]="indicatorClasses()"></span>
|
|
169
|
+
}
|
|
170
|
+
</button>
|
|
171
|
+
}
|
|
172
|
+
</div>
|
|
173
|
+
@if (arrowsVisible()) {
|
|
174
|
+
<button
|
|
175
|
+
type="button"
|
|
176
|
+
class="shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none"
|
|
177
|
+
[disabled]="!canScrollRight()"
|
|
178
|
+
(click)="scrollRight()"
|
|
179
|
+
>
|
|
180
|
+
<ai-icon icon="arrow-right-s" size="sm" />
|
|
181
|
+
</button>
|
|
182
|
+
}
|
|
183
|
+
</div>
|
|
184
|
+
<div class="flex-1 min-h-0">
|
|
185
|
+
@for (tab of tabs(); track $index) {
|
|
186
|
+
<div [style.display]="$index === selectedIndex() ? 'block' : 'none'" class="p-4">
|
|
187
|
+
<ng-container [ngTemplateOutlet]="tab.content()" />
|
|
188
|
+
</div>
|
|
189
|
+
}
|
|
190
|
+
</div>
|
|
191
|
+
`, host: {
|
|
192
|
+
"[class]": "classes()",
|
|
193
|
+
}, styles: [".ai-tabs-scroll::-webkit-scrollbar{display:none}.ai-tabs-scroll{-ms-overflow-style:none;scrollbar-width:none}\n"] }]
|
|
194
|
+
}], propDecorators: { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AiTab), { isSignal: true }] }], tabsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsPosition", required: false }] }], activePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "activePosition", required: false }] }], alignTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignTabs", required: false }] }], showArrows: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrows", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], changeTab: [{ type: i0.Output, args: ["changeTab"] }], scrollContainer: [{ type: i0.ViewChild, args: ["scrollContainer", { isSignal: true }] }], outerContainer: [{ type: i0.ViewChild, args: ["outerContainer", { isSignal: true }] }] } });
|
|
195
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/tabs/tabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAGH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,eAAe,EAEf,KAAK,EAEL,MAAM,EACN,MAAM,EACN,WAAW,EACX,SAAS,EACT,iBAAiB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAA+B,iBAAiB,EAAE,oBAAoB,EAAe,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAgB3J,MAAM,OAAO,KAAK;IACL,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU,CAAC;IACjC,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC,CAAC;IACxB,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;uGAH1C,KAAK;2FAAL,KAAK,0ZAGwB,WAAW,qFAZvC;;;;KAIT;;2FAKQ,KAAK;kBAdjB,SAAS;mBAAC;oBACP,QAAQ,EAAE,QAAQ;oBAClB,QAAQ,EAAE,OAAO;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,QAAQ,EAAE;;;;KAIT;oBACD,IAAI,EAAE;wBACF,KAAK,EAAE,eAAe;qBACzB;iBACJ;kRAIyC,WAAW;AA+DrD,MAAM,OAAO,WAAW;IACX,IAAI,GAAG,eAAe,CAAC,KAAK,gDAAC,CAAC;IAE9B,YAAY,GAAG,KAAK,CAAc,KAAK,wDAAC,CAAC;IACzC,cAAc,GAAG,KAAK,CAAoB,QAAQ,0DAAC,CAAC;IACpD,SAAS,GAAG,KAAK,CAAW,OAAO,qDAAC,CAAC;IACrC,UAAU,GAAG,KAAK,CAA4B,KAAK,uDAAI,SAAS,GAAG,CAAC;IACpE,KAAK,GAAG,KAAK,CAAa,EAAE,iDAAC,CAAC;IAE9B,SAAS,GAAG,MAAM,EAAoC,CAAC;IAEvD,aAAa,GAAG,MAAM,CAAC,CAAC,yDAAC,CAAC;IAC1B,aAAa,GAAG,MAAM,CAAC,KAAK,yDAAC,CAAC;IAC9B,cAAc,GAAG,MAAM,CAAC,KAAK,0DAAC,CAAC;IAEvB,WAAW,GAAG,MAAM,CAAC,KAAK,uDAAC,CAAC;IACrC,cAAc,CAAkB;IAE/B,eAAe,GAAG,SAAS,CAA0B,iBAAiB,2DAAC,CAAC;IACxE,cAAc,GAAG,SAAS,CAA0B,gBAAgB,0DAAC,CAAC;IAE5D,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,yDAAC,CAAC;IAExE,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,mDAAC,CAAC;IAC/G,aAAa,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC7C,YAAY,CAAC,kBAAkB,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,+CAA+C,CAAC,yDACxJ,CAAC;IACiB,gBAAgB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,4DAAC,CAAC;IAE1H,UAAU,CAAC,KAAa;QAC9B,OAAO,YAAY,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC;IACvF,CAAC;IAED,kBAAkB;QACd,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjD,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACb,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IAED,eAAe;QACX,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,EAAE,aAAa,CAAC;QACvD,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;YACrE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC3C,CAAC;QACD,IAAI,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC;IAED,WAAW;QACP,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC;IACtC,CAAC;IAED,SAAS,CAAC,KAAa;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;YACzB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAED,UAAU;QACN,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE,EAAE,aAAa,CAAC;QACjD,IAAI,EAAE;YAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,WAAW;QACP,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE,EAAE,aAAa,CAAC;QACjD,IAAI,EAAE;YAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,iBAAiB;QACb,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE,EAAE,aAAa,CAAC;QACjD,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IACjF,CAAC;IAEO,aAAa;QACjB,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE,EAAE,aAAa,CAAC;QACjD,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;uGApFQ,WAAW;2FAAX,WAAW,k2BACY,KAAK,+TA9C3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCT,yLApDS,gBAAgB,oJAAE,MAAM;;2FAyDzB,WAAW;kBA5DvB,SAAS;+BACI,eAAe,YACf,aAAa,WACd,CAAC,gBAAgB,EAAE,MAAM,CAAC,mBAClB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,YAU3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCT,QACK;wBACF,SAAS,EAAE,WAAW;qBACzB;4FAG+B,KAAK,qnBAiByB,iBAAiB,wEAClB,gBAAgB","sourcesContent":["import { ClassValue } from \"clsx\";\r\n\r\nimport { NgTemplateOutlet } from \"@angular/common\";\r\nimport {\r\n AfterContentInit,\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n computed,\r\n contentChildren,\r\n ElementRef,\r\n input,\r\n OnDestroy,\r\n output,\r\n signal,\r\n TemplateRef,\r\n viewChild,\r\n ViewEncapsulation,\r\n} from \"@angular/core\";\r\n\r\nimport { mergeClasses, transform } from \"../../core\";\r\nimport { AiIcon } from \"../icon\";\r\nimport { TabActivePosition, TabAlign, tabButtonVariants, tabIndicatorVariants, TabPosition, tabsGroupVariants, tabsHeaderVariants } from \"./tabs.variants\";\r\n\r\n@Component({\r\n selector: \"ai-tab\",\r\n exportAs: \"aiTab\",\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n template: `\r\n <ng-template>\r\n <ng-content />\r\n </ng-template>\r\n `,\r\n host: {\r\n style: \"display: none\",\r\n },\r\n})\r\nexport class AiTab {\r\n readonly label = input.required<string>();\r\n readonly disabled = input(false);\r\n readonly content = viewChild.required(TemplateRef);\r\n}\r\n\r\n@Component({\r\n selector: \"ai-tabs-group\",\r\n exportAs: \"aiTabsGroup\",\r\n imports: [NgTemplateOutlet, AiIcon],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n styles: `\r\n .ai-tabs-scroll::-webkit-scrollbar {\r\n display: none;\r\n }\r\n .ai-tabs-scroll {\r\n -ms-overflow-style: none;\r\n scrollbar-width: none;\r\n }\r\n `,\r\n template: `\r\n <div #outerContainer class=\"flex items-center w-full relative\">\r\n @if (arrowsVisible()) {\r\n <button\r\n type=\"button\"\r\n class=\"shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none\"\r\n [disabled]=\"!canScrollLeft()\"\r\n (click)=\"scrollLeft()\"\r\n >\r\n <ai-icon icon=\"arrow-left-s\" size=\"sm\" />\r\n </button>\r\n }\r\n <div #scrollContainer [class]=\"headerClasses()\" (scroll)=\"updateScrollState()\">\r\n @for (tab of tabs(); track $index) {\r\n <button type=\"button\" [class]=\"tabClasses($index)\" [disabled]=\"tab.disabled()\" (click)=\"selectTab($index)\">\r\n {{ tab.label() }}\r\n @if ($index === selectedIndex()) {\r\n <span [class]=\"indicatorClasses()\"></span>\r\n }\r\n </button>\r\n }\r\n </div>\r\n @if (arrowsVisible()) {\r\n <button\r\n type=\"button\"\r\n class=\"shrink-0 flex items-center justify-center size-8 cursor-pointer text-muted-foreground hover:text-foreground transition-colors disabled:opacity-30 disabled:pointer-events-none\"\r\n [disabled]=\"!canScrollRight()\"\r\n (click)=\"scrollRight()\"\r\n >\r\n <ai-icon icon=\"arrow-right-s\" size=\"sm\" />\r\n </button>\r\n }\r\n </div>\r\n <div class=\"flex-1 min-h-0\">\r\n @for (tab of tabs(); track $index) {\r\n <div [style.display]=\"$index === selectedIndex() ? 'block' : 'none'\" class=\"p-4\">\r\n <ng-container [ngTemplateOutlet]=\"tab.content()\" />\r\n </div>\r\n }\r\n </div>\r\n `,\r\n host: {\r\n \"[class]\": \"classes()\",\r\n },\r\n})\r\nexport class AiTabsGroup implements AfterContentInit, AfterViewInit, OnDestroy {\r\n readonly tabs = contentChildren(AiTab);\r\n\r\n readonly tabsPosition = input<TabPosition>(\"top\");\r\n readonly activePosition = input<TabActivePosition>(\"bottom\");\r\n readonly alignTabs = input<TabAlign>(\"start\");\r\n readonly showArrows = input<boolean, string | boolean>(false, { transform });\r\n readonly class = input<ClassValue>(\"\");\r\n\r\n readonly changeTab = output<{ index: number; label: string }>();\r\n\r\n readonly selectedIndex = signal(0);\r\n readonly canScrollLeft = signal(false);\r\n readonly canScrollRight = signal(false);\r\n\r\n private readonly hasOverflow = signal(false);\r\n private resizeObserver?: ResizeObserver;\r\n\r\n readonly scrollContainer = viewChild<ElementRef<HTMLElement>>(\"scrollContainer\");\r\n readonly outerContainer = viewChild<ElementRef<HTMLElement>>(\"outerContainer\");\r\n\r\n protected readonly arrowsVisible = computed(() => this.showArrows() || this.hasOverflow());\r\n\r\n protected readonly classes = computed(() => mergeClasses(tabsGroupVariants({ tabsPosition: this.tabsPosition() }), this.class()));\r\n protected readonly headerClasses = computed(() =>\r\n mergeClasses(tabsHeaderVariants({ tabsPosition: this.tabsPosition(), alignTabs: this.alignTabs() }), \"overflow-x-auto ai-tabs-scroll flex-1 min-w-0\"),\r\n );\r\n protected readonly indicatorClasses = computed(() => mergeClasses(tabIndicatorVariants({ activePosition: this.activePosition() })));\r\n\r\n protected tabClasses(index: number) {\r\n return mergeClasses(tabButtonVariants({ active: index === this.selectedIndex() }));\r\n }\r\n\r\n ngAfterContentInit() {\r\n const tabs = this.tabs();\r\n const first = tabs.findIndex(t => !t.disabled());\r\n if (first >= 0) {\r\n this.selectedIndex.set(first);\r\n }\r\n }\r\n\r\n ngAfterViewInit() {\r\n const container = this.outerContainer()?.nativeElement;\r\n if (container) {\r\n this.resizeObserver = new ResizeObserver(() => this.checkOverflow());\r\n this.resizeObserver.observe(container);\r\n }\r\n this.checkOverflow();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n selectTab(index: number) {\r\n const tab = this.tabs()[index];\r\n if (tab && !tab.disabled()) {\r\n this.selectedIndex.set(index);\r\n this.changeTab.emit({ index, label: tab.label() });\r\n }\r\n }\r\n\r\n scrollLeft() {\r\n const el = this.scrollContainer()?.nativeElement;\r\n if (el) el.scrollBy({ left: -150, behavior: \"smooth\" });\r\n }\r\n\r\n scrollRight() {\r\n const el = this.scrollContainer()?.nativeElement;\r\n if (el) el.scrollBy({ left: 150, behavior: \"smooth\" });\r\n }\r\n\r\n updateScrollState() {\r\n const el = this.scrollContainer()?.nativeElement;\r\n if (!el) return;\r\n this.canScrollLeft.set(el.scrollLeft > 0);\r\n this.canScrollRight.set(el.scrollLeft + el.clientWidth < el.scrollWidth - 1);\r\n }\r\n\r\n private checkOverflow() {\r\n const el = this.scrollContainer()?.nativeElement;\r\n if (!el) return;\r\n this.hasOverflow.set(el.scrollWidth > el.clientWidth);\r\n this.updateScrollState();\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const tabsGroupVariants = cva("flex w-full", {
|
|
3
|
+
variants: {
|
|
4
|
+
tabsPosition: {
|
|
5
|
+
top: "flex-col",
|
|
6
|
+
bottom: "flex-col-reverse",
|
|
7
|
+
left: "flex-row",
|
|
8
|
+
right: "flex-row-reverse",
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
tabsPosition: "top",
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
export const tabsHeaderVariants = cva("flex shrink-0 border-border", {
|
|
16
|
+
variants: {
|
|
17
|
+
tabsPosition: {
|
|
18
|
+
top: "flex-row border-b",
|
|
19
|
+
bottom: "flex-row border-t",
|
|
20
|
+
left: "flex-col border-r",
|
|
21
|
+
right: "flex-col border-l",
|
|
22
|
+
},
|
|
23
|
+
alignTabs: {
|
|
24
|
+
start: "justify-start",
|
|
25
|
+
center: "justify-center",
|
|
26
|
+
end: "justify-end",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
tabsPosition: "top",
|
|
31
|
+
alignTabs: "start",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const tabButtonVariants = cva("relative inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium transition-colors cursor-pointer disabled:pointer-events-none disabled:opacity-50 text-muted-foreground hover:text-foreground", {
|
|
35
|
+
variants: {
|
|
36
|
+
active: {
|
|
37
|
+
true: "text-foreground",
|
|
38
|
+
false: "",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
active: false,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
export const tabIndicatorVariants = cva("absolute bg-primary transition-all duration-200", {
|
|
46
|
+
variants: {
|
|
47
|
+
activePosition: {
|
|
48
|
+
top: "top-0 left-0 right-0 h-0.5",
|
|
49
|
+
bottom: "bottom-0 left-0 right-0 h-0.5",
|
|
50
|
+
left: "left-0 top-0 bottom-0 w-0.5",
|
|
51
|
+
right: "right-0 top-0 bottom-0 w-0.5",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
activePosition: "bottom",
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=tabs.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.variants.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/tabs/tabs.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAgB,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC,aAAa,EAAE;IAChD,QAAQ,EAAE;QACN,YAAY,EAAE;YACV,GAAG,EAAE,UAAU;YACf,MAAM,EAAE,kBAAkB;YAC1B,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,kBAAkB;SAC5B;KACJ;IACD,eAAe,EAAE;QACb,YAAY,EAAE,KAAK;KACtB;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC,6BAA6B,EAAE;IACjE,QAAQ,EAAE;QACN,YAAY,EAAE;YACV,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,mBAAmB;YAC3B,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,mBAAmB;SAC7B;QACD,SAAS,EAAE;YACP,KAAK,EAAE,eAAe;YACtB,MAAM,EAAE,gBAAgB;YACxB,GAAG,EAAE,aAAa;SACrB;KACJ;IACD,eAAe,EAAE;QACb,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,OAAO;KACrB;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAChC,gOAAgO,EAChO;IACI,QAAQ,EAAE;QACN,MAAM,EAAE;YACJ,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,EAAE;SACZ;KACJ;IACD,eAAe,EAAE;QACb,MAAM,EAAE,KAAK;KAChB;CACJ,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,iDAAiD,EAAE;IACvF,QAAQ,EAAE;QACN,cAAc,EAAE;YACZ,GAAG,EAAE,4BAA4B;YACjC,MAAM,EAAE,+BAA+B;YACvC,IAAI,EAAE,6BAA6B;YACnC,KAAK,EAAE,8BAA8B;SACxC;KACJ;IACD,eAAe,EAAE;QACb,cAAc,EAAE,QAAQ;KAC3B;CACJ,CAAC,CAAC","sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\r\n\r\nexport const tabsGroupVariants = cva(\"flex w-full\", {\r\n variants: {\r\n tabsPosition: {\r\n top: \"flex-col\",\r\n bottom: \"flex-col-reverse\",\r\n left: \"flex-row\",\r\n right: \"flex-row-reverse\",\r\n },\r\n },\r\n defaultVariants: {\r\n tabsPosition: \"top\",\r\n },\r\n});\r\n\r\nexport const tabsHeaderVariants = cva(\"flex shrink-0 border-border\", {\r\n variants: {\r\n tabsPosition: {\r\n top: \"flex-row border-b\",\r\n bottom: \"flex-row border-t\",\r\n left: \"flex-col border-r\",\r\n right: \"flex-col border-l\",\r\n },\r\n alignTabs: {\r\n start: \"justify-start\",\r\n center: \"justify-center\",\r\n end: \"justify-end\",\r\n },\r\n },\r\n defaultVariants: {\r\n tabsPosition: \"top\",\r\n alignTabs: \"start\",\r\n },\r\n});\r\n\r\nexport const tabButtonVariants = cva(\r\n \"relative inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium transition-colors cursor-pointer disabled:pointer-events-none disabled:opacity-50 text-muted-foreground hover:text-foreground\",\r\n {\r\n variants: {\r\n active: {\r\n true: \"text-foreground\",\r\n false: \"\",\r\n },\r\n },\r\n defaultVariants: {\r\n active: false,\r\n },\r\n },\r\n);\r\n\r\nexport const tabIndicatorVariants = cva(\"absolute bg-primary transition-all duration-200\", {\r\n variants: {\r\n activePosition: {\r\n top: \"top-0 left-0 right-0 h-0.5\",\r\n bottom: \"bottom-0 left-0 right-0 h-0.5\",\r\n left: \"left-0 top-0 bottom-0 w-0.5\",\r\n right: \"right-0 top-0 bottom-0 w-0.5\",\r\n },\r\n },\r\n defaultVariants: {\r\n activePosition: \"bottom\",\r\n },\r\n});\r\n\r\nexport type TabsGroupVariants = VariantProps<typeof tabsGroupVariants>;\r\nexport type TabPosition = NonNullable<TabsGroupVariants[\"tabsPosition\"]>;\r\nexport type TabAlign = NonNullable<VariantProps<typeof tabsHeaderVariants>[\"alignTabs\"]>;\r\nexport type TabActivePosition = NonNullable<VariantProps<typeof tabIndicatorVariants>[\"activePosition\"]>;\r\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, inject } from "@angular/core";
|
|
2
|
+
import { AiButton } from "../../button";
|
|
3
|
+
import { AiToastService } from "../toast.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class DemoToastDefaultComponent {
|
|
6
|
+
#toast = inject(AiToastService);
|
|
7
|
+
showToast() {
|
|
8
|
+
this.#toast.default({
|
|
9
|
+
message: "Toast message",
|
|
10
|
+
description: "Certifique-se de que os campos estejam válidos.",
|
|
11
|
+
icon: "alarm-warning",
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: DemoToastDefaultComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
16
|
+
<div class="flex items-center justify-center w-full max-w-sm">
|
|
17
|
+
<ai-button size="sm" (click)="showToast()">Show toast</ai-button>
|
|
18
|
+
</div>
|
|
19
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AiButton, selector: "ai-button, button[ai-button], a[ai-button]", inputs: ["variant", "size", "shape", "type", "fill", "class", "icon", "full", "loading", "disabled"], exportAs: ["aiButton"] }] });
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastDefaultComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{
|
|
24
|
+
imports: [AiButton],
|
|
25
|
+
template: `
|
|
26
|
+
<div class="flex items-center justify-center w-full max-w-sm">
|
|
27
|
+
<ai-button size="sm" (click)="showToast()">Show toast</ai-button>
|
|
28
|
+
</div>
|
|
29
|
+
`,
|
|
30
|
+
}]
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/toast/demo/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAUlD,MAAM,OAAO,yBAAyB;IAClC,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAEhC,SAAS;QACL,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,eAAe;SACxB,CAAC,CAAC;IACP,CAAC;uGATQ,yBAAyB;2FAAzB,yBAAyB,wEANxB;;;;KAIT,4DALS,QAAQ;;2FAOT,yBAAyB;kBARrC,SAAS;mBAAC;oBACP,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,QAAQ,EAAE;;;;KAIT;iBACJ","sourcesContent":["import { Component, inject } from \"@angular/core\";\r\nimport { AiButton } from \"../../button\";\r\nimport { AiToastService } from \"../toast.service\";\r\n\r\n@Component({\r\n imports: [AiButton],\r\n template: `\r\n <div class=\"flex items-center justify-center w-full max-w-sm\">\r\n <ai-button size=\"sm\" (click)=\"showToast()\">Show toast</ai-button>\r\n </div>\r\n `,\r\n})\r\nexport class DemoToastDefaultComponent {\r\n #toast = inject(AiToastService);\r\n\r\n showToast() {\r\n this.#toast.default({\r\n message: \"Toast message\",\r\n description: \"Certifique-se de que os campos estejam válidos.\",\r\n icon: \"alarm-warning\",\r\n });\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, inject } from "@angular/core";
|
|
2
|
+
import { AiButton } from "../../button";
|
|
3
|
+
import { AiToastService } from "../toast.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class DemoToastPositionComponent {
|
|
6
|
+
#toast = inject(AiToastService);
|
|
7
|
+
showTopLeft() {
|
|
8
|
+
this.#toast.default({ message: "Toast top left", position: "top-left" });
|
|
9
|
+
}
|
|
10
|
+
showTopRight() {
|
|
11
|
+
this.#toast.default({ message: "Toast top right", position: "top-right" });
|
|
12
|
+
}
|
|
13
|
+
showTopCenter() {
|
|
14
|
+
this.#toast.default({ message: "Toast top center", position: "top-center" });
|
|
15
|
+
}
|
|
16
|
+
showBottomLeft() {
|
|
17
|
+
this.#toast.default({ message: "Toast bottom left", position: "bottom-left" });
|
|
18
|
+
}
|
|
19
|
+
showBottomRight() {
|
|
20
|
+
this.#toast.default({ message: "Toast bottom right", position: "bottom-right" });
|
|
21
|
+
}
|
|
22
|
+
showBottomCenter() {
|
|
23
|
+
this.#toast.default({ message: "Toast bottom center", position: "bottom-center" });
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastPositionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: DemoToastPositionComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
27
|
+
<div class="flex items-center flex-col gap-y-4">
|
|
28
|
+
<div class="flex items-center gap-x-2">
|
|
29
|
+
<ai-button size="sm" (click)="showTopLeft()">top-left</ai-button>
|
|
30
|
+
<ai-button size="sm" (click)="showTopCenter()">top-center</ai-button>
|
|
31
|
+
<ai-button size="sm" (click)="showTopRight()">top-right</ai-button>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="flex items-center gap-x-2">
|
|
35
|
+
<ai-button size="sm" (click)="showBottomLeft()">bottom-left</ai-button>
|
|
36
|
+
<ai-button size="sm" (click)="showBottomCenter()">bottom-center</ai-button>
|
|
37
|
+
<ai-button size="sm" (click)="showBottomRight()">bottom-right</ai-button>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AiButton, selector: "ai-button, button[ai-button], a[ai-button]", inputs: ["variant", "size", "shape", "type", "fill", "class", "icon", "full", "loading", "disabled"], exportAs: ["aiButton"] }] });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastPositionComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{
|
|
45
|
+
imports: [AiButton],
|
|
46
|
+
template: `
|
|
47
|
+
<div class="flex items-center flex-col gap-y-4">
|
|
48
|
+
<div class="flex items-center gap-x-2">
|
|
49
|
+
<ai-button size="sm" (click)="showTopLeft()">top-left</ai-button>
|
|
50
|
+
<ai-button size="sm" (click)="showTopCenter()">top-center</ai-button>
|
|
51
|
+
<ai-button size="sm" (click)="showTopRight()">top-right</ai-button>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="flex items-center gap-x-2">
|
|
55
|
+
<ai-button size="sm" (click)="showBottomLeft()">bottom-left</ai-button>
|
|
56
|
+
<ai-button size="sm" (click)="showBottomCenter()">bottom-center</ai-button>
|
|
57
|
+
<ai-button size="sm" (click)="showBottomRight()">bottom-right</ai-button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
`,
|
|
61
|
+
}]
|
|
62
|
+
}] });
|
|
63
|
+
//# sourceMappingURL=position.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/toast/demo/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAoBlD,MAAM,OAAO,0BAA0B;IACnC,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAEhC,WAAW;QACP,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,YAAY;QACR,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,aAAa;QACT,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,cAAc;QACV,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,eAAe;QACX,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,gBAAgB;QACZ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IACvF,CAAC;uGAzBQ,0BAA0B;2FAA1B,0BAA0B,wEAhBzB;;;;;;;;;;;;;;KAcT,4DAfS,QAAQ;;2FAiBT,0BAA0B;kBAlBtC,SAAS;mBAAC;oBACP,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,QAAQ,EAAE;;;;;;;;;;;;;;KAcT;iBACJ","sourcesContent":["import { Component, inject } from \"@angular/core\";\r\nimport { AiButton } from \"../../button\";\r\nimport { AiToastService } from \"../toast.service\";\r\n\r\n@Component({\r\n imports: [AiButton],\r\n template: `\r\n <div class=\"flex items-center flex-col gap-y-4\">\r\n <div class=\"flex items-center gap-x-2\">\r\n <ai-button size=\"sm\" (click)=\"showTopLeft()\">top-left</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showTopCenter()\">top-center</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showTopRight()\">top-right</ai-button>\r\n </div>\r\n\r\n <div class=\"flex items-center gap-x-2\">\r\n <ai-button size=\"sm\" (click)=\"showBottomLeft()\">bottom-left</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showBottomCenter()\">bottom-center</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showBottomRight()\">bottom-right</ai-button>\r\n </div>\r\n </div>\r\n `,\r\n})\r\nexport class DemoToastPositionComponent {\r\n #toast = inject(AiToastService);\r\n\r\n showTopLeft() {\r\n this.#toast.default({ message: \"Toast top left\", position: \"top-left\" });\r\n }\r\n\r\n showTopRight() {\r\n this.#toast.default({ message: \"Toast top right\", position: \"top-right\" });\r\n }\r\n\r\n showTopCenter() {\r\n this.#toast.default({ message: \"Toast top center\", position: \"top-center\" });\r\n }\r\n\r\n showBottomLeft() {\r\n this.#toast.default({ message: \"Toast bottom left\", position: \"bottom-left\" });\r\n }\r\n\r\n showBottomRight() {\r\n this.#toast.default({ message: \"Toast bottom right\", position: \"bottom-right\" });\r\n }\r\n\r\n showBottomCenter() {\r\n this.#toast.default({ message: \"Toast bottom center\", position: \"bottom-center\" });\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DemoToastDefaultComponent } from "./default";
|
|
2
|
+
import { DemoToastPositionComponent } from "./position";
|
|
3
|
+
import { DemoToastTypeComponent } from "./type";
|
|
4
|
+
export const TOAST = {
|
|
5
|
+
componentName: "toast",
|
|
6
|
+
componentType: "toast",
|
|
7
|
+
examples: [
|
|
8
|
+
{
|
|
9
|
+
name: "default",
|
|
10
|
+
component: DemoToastDefaultComponent,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "position",
|
|
14
|
+
component: DemoToastPositionComponent,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "type",
|
|
18
|
+
component: DemoToastTypeComponent,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/toast/demo/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,aAAa,EAAE,OAAO;IACtB,aAAa,EAAE,OAAO;IACtB,QAAQ,EAAE;QACN;YACI,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,yBAAyB;SACvC;QACD;YACI,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,0BAA0B;SACxC;QACD;YACI,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,sBAAsB;SACpC;KACJ;CACJ,CAAC","sourcesContent":["import { DemoToastDefaultComponent } from \"./default\";\r\nimport { DemoToastPositionComponent } from \"./position\";\r\nimport { DemoToastTypeComponent } from \"./type\";\r\n\r\nexport const TOAST = {\r\n componentName: \"toast\",\r\n componentType: \"toast\",\r\n examples: [\r\n {\r\n name: \"default\",\r\n component: DemoToastDefaultComponent,\r\n },\r\n {\r\n name: \"position\",\r\n component: DemoToastPositionComponent,\r\n },\r\n {\r\n name: \"type\",\r\n component: DemoToastTypeComponent,\r\n },\r\n ],\r\n};\r\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Component, inject } from "@angular/core";
|
|
2
|
+
import { AiButton } from "../../button";
|
|
3
|
+
import { AiToastService } from "../toast.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class DemoToastTypeComponent {
|
|
6
|
+
#toast = inject(AiToastService);
|
|
7
|
+
showDefault() {
|
|
8
|
+
this.#toast.default({ message: "Toast default" });
|
|
9
|
+
}
|
|
10
|
+
showSuccess() {
|
|
11
|
+
this.#toast.success({ message: "Toast success" });
|
|
12
|
+
}
|
|
13
|
+
showDestructive() {
|
|
14
|
+
this.#toast.destructive({ message: "Toast destructive" });
|
|
15
|
+
}
|
|
16
|
+
showWarning() {
|
|
17
|
+
this.#toast.warning({ message: "Toast warning" });
|
|
18
|
+
}
|
|
19
|
+
showInfo() {
|
|
20
|
+
this.#toast.info({ message: "Toast info" });
|
|
21
|
+
}
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastTypeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: DemoToastTypeComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
24
|
+
<div class="flex items-center gap-4 flex-wrap">
|
|
25
|
+
<ai-button size="sm" (click)="showDefault()">default</ai-button>
|
|
26
|
+
<ai-button size="sm" (click)="showSuccess()">success</ai-button>
|
|
27
|
+
<ai-button size="sm" (click)="showDestructive()">destructive</ai-button>
|
|
28
|
+
<ai-button size="sm" (click)="showWarning()">warning</ai-button>
|
|
29
|
+
<ai-button size="sm" (click)="showInfo()">info</ai-button>
|
|
30
|
+
</div>
|
|
31
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AiButton, selector: "ai-button, button[ai-button], a[ai-button]", inputs: ["variant", "size", "shape", "type", "fill", "class", "icon", "full", "loading", "disabled"], exportAs: ["aiButton"] }] });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoToastTypeComponent, decorators: [{
|
|
34
|
+
type: Component,
|
|
35
|
+
args: [{
|
|
36
|
+
imports: [AiButton],
|
|
37
|
+
template: `
|
|
38
|
+
<div class="flex items-center gap-4 flex-wrap">
|
|
39
|
+
<ai-button size="sm" (click)="showDefault()">default</ai-button>
|
|
40
|
+
<ai-button size="sm" (click)="showSuccess()">success</ai-button>
|
|
41
|
+
<ai-button size="sm" (click)="showDestructive()">destructive</ai-button>
|
|
42
|
+
<ai-button size="sm" (click)="showWarning()">warning</ai-button>
|
|
43
|
+
<ai-button size="sm" (click)="showInfo()">info</ai-button>
|
|
44
|
+
</div>
|
|
45
|
+
`,
|
|
46
|
+
}]
|
|
47
|
+
}] });
|
|
48
|
+
//# sourceMappingURL=type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/toast/demo/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAclD,MAAM,OAAO,sBAAsB;IAC/B,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAEhC,WAAW;QACP,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,WAAW;QACP,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,eAAe;QACX,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,WAAW;QACP,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,QAAQ;QACJ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAChD,CAAC;uGArBQ,sBAAsB;2FAAtB,sBAAsB,wEAVrB;;;;;;;;KAQT,4DATS,QAAQ;;2FAWT,sBAAsB;kBAZlC,SAAS;mBAAC;oBACP,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,QAAQ,EAAE;;;;;;;;KAQT;iBACJ","sourcesContent":["import { Component, inject } from \"@angular/core\";\r\nimport { AiButton } from \"../../button\";\r\nimport { AiToastService } from \"../toast.service\";\r\n\r\n@Component({\r\n imports: [AiButton],\r\n template: `\r\n <div class=\"flex items-center gap-4 flex-wrap\">\r\n <ai-button size=\"sm\" (click)=\"showDefault()\">default</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showSuccess()\">success</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showDestructive()\">destructive</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showWarning()\">warning</ai-button>\r\n <ai-button size=\"sm\" (click)=\"showInfo()\">info</ai-button>\r\n </div>\r\n `,\r\n})\r\nexport class DemoToastTypeComponent {\r\n #toast = inject(AiToastService);\r\n\r\n showDefault() {\r\n this.#toast.default({ message: \"Toast default\" });\r\n }\r\n\r\n showSuccess() {\r\n this.#toast.success({ message: \"Toast success\" });\r\n }\r\n\r\n showDestructive() {\r\n this.#toast.destructive({ message: \"Toast destructive\" });\r\n }\r\n\r\n showWarning() {\r\n this.#toast.warning({ message: \"Toast warning\" });\r\n }\r\n\r\n showInfo() {\r\n this.#toast.info({ message: \"Toast info\" });\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC","sourcesContent":["export * from \"./demo/toast\";\r\nexport * from \"./toast\";\r\nexport * from \"./toast.service\";\r\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, input, output, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { AiIcon } from "../icon/icon.component";
|
|
3
|
+
import { AiToastPipe } from "./toast.pipe";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class AiToastContent {
|
|
6
|
+
toast = input(...(ngDevMode ? [undefined, { debugName: "toast" }] : []));
|
|
7
|
+
undo = output();
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiToastContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: AiToastContent, isStandalone: true, selector: "ai-toast-content", inputs: { toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { undo: "undo" }, exportAs: ["aiToastContent"], ngImport: i0, template: "@let variant = toast()! | aiToast;\r\n<div [class]=\"`${variant.container} p-4 flex flex-col gap-2 relative rounded-lg shadow-lg`\">\r\n <div class=\"flex gap-x-2 w-full\" [class]=\"toast()?.description ? 'items-start' : 'items-center'\">\r\n @let icon = variant.icon;\r\n @if (icon) {\r\n <ai-icon [icon]=\"icon\" size=\"default\" type=\"fill\" [class]=\"variant.color\" />\r\n }\r\n <div class=\"flex items-center w-full justify-between\">\r\n <h4 [class]=\"`${variant.color} text-sm font-semibold`\">\r\n {{ toast()?.message }}\r\n </h4>\r\n\r\n <button [class]=\"`${variant.bgButton} ms-auto cursor-pointer -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex items-center justify-center h-8 w-8`\"\r\n (click)=\"undo.emit(toast()!.id)\">\r\n <ai-icon icon=\"close\" size=\"default\" />\r\n </button>\r\n </div>\r\n </div>\r\n @if (toast()?.description) {\r\n <span [class]=\"`${variant.color} text-sm font-medium`\">\r\n {{ toast()?.description }}\r\n </span>\r\n }\r\n</div>", dependencies: [{ kind: "component", type: AiIcon, selector: "ai-icon, [ai-icon]", inputs: ["icon", "size", "type", "disabled", "class"], exportAs: ["aiIcon"] }, { kind: "pipe", type: AiToastPipe, name: "aiToast" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiToastContent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: "ai-toast-content", exportAs: "aiToastContent", imports: [AiToastPipe, AiIcon], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@let variant = toast()! | aiToast;\r\n<div [class]=\"`${variant.container} p-4 flex flex-col gap-2 relative rounded-lg shadow-lg`\">\r\n <div class=\"flex gap-x-2 w-full\" [class]=\"toast()?.description ? 'items-start' : 'items-center'\">\r\n @let icon = variant.icon;\r\n @if (icon) {\r\n <ai-icon [icon]=\"icon\" size=\"default\" type=\"fill\" [class]=\"variant.color\" />\r\n }\r\n <div class=\"flex items-center w-full justify-between\">\r\n <h4 [class]=\"`${variant.color} text-sm font-semibold`\">\r\n {{ toast()?.message }}\r\n </h4>\r\n\r\n <button [class]=\"`${variant.bgButton} ms-auto cursor-pointer -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex items-center justify-center h-8 w-8`\"\r\n (click)=\"undo.emit(toast()!.id)\">\r\n <ai-icon icon=\"close\" size=\"default\" />\r\n </button>\r\n </div>\r\n </div>\r\n @if (toast()?.description) {\r\n <span [class]=\"`${variant.color} text-sm font-medium`\">\r\n {{ toast()?.description }}\r\n </span>\r\n }\r\n</div>" }]
|
|
14
|
+
}], propDecorators: { toast: [{ type: i0.Input, args: [{ isSignal: true, alias: "toast", required: false }] }], undo: [{ type: i0.Output, args: ["undo"] }] } });
|
|
15
|
+
//# sourceMappingURL=toast-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-content.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/toast/toast-content.ts","../../../../../../../libs/ai-ui/src/lib/components/toast/toast-content.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;;AAU3C,MAAM,OAAO,cAAc;IACvB,KAAK,GAAG,KAAK,2DAAiB,CAAC;IAC/B,IAAI,GAAG,MAAM,EAAU,CAAC;uGAFf,cAAc;2FAAd,cAAc,yQCb3B,2nCAuBM,4CDfqB,MAAM,uIAAnB,WAAW;;2FAKZ,cAAc;kBAR1B,SAAS;+BACI,kBAAkB,YAClB,gBAAgB,WACjB,CAAC,WAAW,EAAE,MAAM,CAAC,mBACb,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI","sourcesContent":["import { ChangeDetectionStrategy, Component, input, output, ViewEncapsulation } from \"@angular/core\";\r\nimport { AiIcon } from \"../icon/icon.component\";\r\nimport { AiToastConfig } from \"./toast.config\";\r\nimport { AiToastPipe } from \"./toast.pipe\";\r\n\r\n@Component({\r\n selector: \"ai-toast-content\",\r\n exportAs: \"aiToastContent\",\r\n imports: [AiToastPipe, AiIcon],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n templateUrl: \"./toast-content.html\",\r\n})\r\nexport class AiToastContent {\r\n toast = input<AiToastConfig>();\r\n undo = output<number>();\r\n}\r\n","@let variant = toast()! | aiToast;\r\n<div [class]=\"`${variant.container} p-4 flex flex-col gap-2 relative rounded-lg shadow-lg`\">\r\n <div class=\"flex gap-x-2 w-full\" [class]=\"toast()?.description ? 'items-start' : 'items-center'\">\r\n @let icon = variant.icon;\r\n @if (icon) {\r\n <ai-icon [icon]=\"icon\" size=\"default\" type=\"fill\" [class]=\"variant.color\" />\r\n }\r\n <div class=\"flex items-center w-full justify-between\">\r\n <h4 [class]=\"`${variant.color} text-sm font-semibold`\">\r\n {{ toast()?.message }}\r\n </h4>\r\n\r\n <button [class]=\"`${variant.bgButton} ms-auto cursor-pointer -mx-1.5 -my-1.5 rounded-lg p-1.5 inline-flex items-center justify-center h-8 w-8`\"\r\n (click)=\"undo.emit(toast()!.id)\">\r\n <ai-icon icon=\"close\" size=\"default\" />\r\n </button>\r\n </div>\r\n </div>\r\n @if (toast()?.description) {\r\n <span [class]=\"`${variant.color} text-sm font-medium`\">\r\n {{ toast()?.description }}\r\n </span>\r\n }\r\n</div>"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=toast.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.config.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/toast/toast.config.ts"],"names":[],"mappings":"","sourcesContent":["import { AiIconType } from \"../icon/icons\";\r\n\r\nexport type AiToastType = \"info\" | \"success\" | \"warning\" | \"destructive\" | \"default\";\r\n\r\nexport type AiToastPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\r\n\r\nexport interface AiToastConfig {\r\n id: number;\r\n message: string | unknown;\r\n description?: string;\r\n type: AiToastType;\r\n icon?: AiIconType;\r\n duration?: number;\r\n position?: AiToastPosition;\r\n}\r\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { AiToastContent } from "./toast-content";
|
|
3
|
+
import { AiToastService } from "./toast.service";
|
|
4
|
+
import { toastVariants } from "./toast.variants";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class AiToast {
|
|
7
|
+
#toastService = inject(AiToastService);
|
|
8
|
+
positions = ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"];
|
|
9
|
+
toasts = computed(() => {
|
|
10
|
+
const config = this.#toastService.toastConfig;
|
|
11
|
+
const positions = {
|
|
12
|
+
"top-left": [],
|
|
13
|
+
"top-center": [],
|
|
14
|
+
"top-right": [],
|
|
15
|
+
"bottom-left": [],
|
|
16
|
+
"bottom-center": [],
|
|
17
|
+
"bottom-right": [],
|
|
18
|
+
};
|
|
19
|
+
config().forEach(toast => positions[toast.position || "top-right"].push(toast));
|
|
20
|
+
return positions;
|
|
21
|
+
}, ...(ngDevMode ? [{ debugName: "toasts" }] : []));
|
|
22
|
+
positionContainer = (position) => toastVariants({ position });
|
|
23
|
+
remove(id) {
|
|
24
|
+
this.#toastService.remove(id);
|
|
25
|
+
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: AiToast, isStandalone: true, selector: "ai-toast, ai-toaster", exportAs: ["aiToast"], ngImport: i0, template: `
|
|
28
|
+
@for (position of positions; track position) {
|
|
29
|
+
<div [class]="positionContainer(position)">
|
|
30
|
+
@for (toast of toasts()[position]; track toast.id) {
|
|
31
|
+
<ai-toast-content class="w-full" [toast]="toast" (undo)="remove(toast.id)" />
|
|
32
|
+
}
|
|
33
|
+
</div>
|
|
34
|
+
}
|
|
35
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AiToastContent, selector: "ai-toast-content", inputs: ["toast"], outputs: ["undo"], exportAs: ["aiToastContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiToast, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: "ai-toast, ai-toaster",
|
|
41
|
+
exportAs: "aiToast",
|
|
42
|
+
imports: [AiToastContent],
|
|
43
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
encapsulation: ViewEncapsulation.None,
|
|
45
|
+
template: `
|
|
46
|
+
@for (position of positions; track position) {
|
|
47
|
+
<div [class]="positionContainer(position)">
|
|
48
|
+
@for (toast of toasts()[position]; track toast.id) {
|
|
49
|
+
<ai-toast-content class="w-full" [toast]="toast" (undo)="remove(toast.id)" />
|
|
50
|
+
}
|
|
51
|
+
</div>
|
|
52
|
+
}
|
|
53
|
+
`,
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExG,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAkBjD,MAAM,OAAO,OAAO;IAChB,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAE9B,SAAS,GAAsB,CAAC,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IAE7G,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;QAC9C,MAAM,SAAS,GAA6C;YACxD,UAAU,EAAE,EAAE;YACd,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,eAAe,EAAE,EAAE;YACnB,cAAc,EAAE,EAAE;SACrB,CAAC;QAEF,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAChF,OAAO,SAAS,CAAC;IACrB,CAAC,kDAAC,CAAC;IAEgB,iBAAiB,GAAG,CAAC,QAAyB,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAElG,MAAM,CAAC,EAAU;QACb,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;uGAxBQ,OAAO;2FAAP,OAAO,uGAVN;;;;;;;;KAQT,4DAXS,cAAc;;2FAaf,OAAO;kBAhBnB,SAAS;mBAAC;oBACP,QAAQ,EAAE,sBAAsB;oBAChC,QAAQ,EAAE,SAAS;oBACnB,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,QAAQ,EAAE;;;;;;;;KAQT;iBACJ","sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, ViewEncapsulation } from \"@angular/core\";\r\n\r\nimport { AiToastContent } from \"./toast-content\";\r\nimport { AiToastConfig, AiToastPosition } from \"./toast.config\";\r\nimport { AiToastService } from \"./toast.service\";\r\nimport { toastVariants } from \"./toast.variants\";\r\n\r\n@Component({\r\n selector: \"ai-toast, ai-toaster\",\r\n exportAs: \"aiToast\",\r\n imports: [AiToastContent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n template: `\r\n @for (position of positions; track position) {\r\n <div [class]=\"positionContainer(position)\">\r\n @for (toast of toasts()[position]; track toast.id) {\r\n <ai-toast-content class=\"w-full\" [toast]=\"toast\" (undo)=\"remove(toast.id)\" />\r\n }\r\n </div>\r\n }\r\n `,\r\n})\r\nexport class AiToast {\r\n #toastService = inject(AiToastService);\r\n\r\n readonly positions: AiToastPosition[] = [\"top-left\", \"top-center\", \"top-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"];\r\n\r\n protected readonly toasts = computed(() => {\r\n const config = this.#toastService.toastConfig;\r\n const positions: Record<AiToastPosition, AiToastConfig[]> = {\r\n \"top-left\": [],\r\n \"top-center\": [],\r\n \"top-right\": [],\r\n \"bottom-left\": [],\r\n \"bottom-center\": [],\r\n \"bottom-right\": [],\r\n };\r\n\r\n config().forEach(toast => positions[toast.position || \"top-right\"].push(toast));\r\n return positions;\r\n });\r\n\r\n protected readonly positionContainer = (position: AiToastPosition) => toastVariants({ position });\r\n\r\n remove(id: number) {\r\n this.#toastService.remove(id);\r\n }\r\n}\r\n"]}
|