@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,184 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, forwardRef, input, output, signal, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
3
|
+
import { mergeClasses, noopFn } from "../../core";
|
|
4
|
+
import { AiCommandInput } from "./command-input";
|
|
5
|
+
import { AiCommandItem } from "./command-item";
|
|
6
|
+
import { commandVariants } from "./command.variants";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class AiCommand {
|
|
9
|
+
cmdInputComponent = contentChild(AiCommandInput, ...(ngDevMode ? [{ debugName: "cmdInputComponent" }] : []));
|
|
10
|
+
cmdItemComponents = contentChildren(AiCommandItem, { ...(ngDevMode ? { debugName: "cmdItemComponents" } : {}), descendants: true });
|
|
11
|
+
#registeredItems = signal([], ...(ngDevMode ? [{ debugName: "#registeredItems" }] : []));
|
|
12
|
+
size = input("default", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
13
|
+
class = input("", ...(ngDevMode ? [{ debugName: "class" }] : []));
|
|
14
|
+
_change = () => noopFn;
|
|
15
|
+
_touched = () => noopFn;
|
|
16
|
+
searchTerm = signal("", ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
|
|
17
|
+
selectedIndex = signal(-1, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : []));
|
|
18
|
+
#itemUpdateTrigger = signal(0, ...(ngDevMode ? [{ debugName: "#itemUpdateTrigger" }] : []));
|
|
19
|
+
changeCommand = output();
|
|
20
|
+
selectedCommand = output();
|
|
21
|
+
itemComponents = computed(() => (this.cmdItemComponents().length ? this.cmdItemComponents() : this.#registeredItems()), ...(ngDevMode ? [{ debugName: "itemComponents" }] : []));
|
|
22
|
+
classes = computed(() => mergeClasses(commandVariants({ size: this.size() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : []));
|
|
23
|
+
filteredItems = computed(() => {
|
|
24
|
+
const searchTerm = this.searchTerm();
|
|
25
|
+
this.#itemUpdateTrigger();
|
|
26
|
+
if (!this.itemComponents())
|
|
27
|
+
return [];
|
|
28
|
+
const lowerSearchTerm = searchTerm.toLowerCase().trim();
|
|
29
|
+
if (!lowerSearchTerm)
|
|
30
|
+
return this.itemComponents();
|
|
31
|
+
return this.itemComponents().filter(item => item.label().toLowerCase().includes(lowerSearchTerm) || (item.command()?.toLowerCase() ?? "").includes(lowerSearchTerm));
|
|
32
|
+
}, ...(ngDevMode ? [{ debugName: "filteredItems" }] : []));
|
|
33
|
+
statusMessage = computed(() => {
|
|
34
|
+
const searchTerm = this.searchTerm().trim();
|
|
35
|
+
const filteredCount = this.filteredItems().length;
|
|
36
|
+
if (!searchTerm)
|
|
37
|
+
return searchTerm;
|
|
38
|
+
if (!filteredCount)
|
|
39
|
+
return `No results found for "${searchTerm}"`;
|
|
40
|
+
return `${filteredCount} result${filteredCount === 1 ? "" : "s"} found for "${searchTerm}"`;
|
|
41
|
+
}, ...(ngDevMode ? [{ debugName: "statusMessage" }] : []));
|
|
42
|
+
constructor() {
|
|
43
|
+
this._triggerItemsUpdate();
|
|
44
|
+
}
|
|
45
|
+
register(item) {
|
|
46
|
+
this.#registeredItems.update(items => [...items, item]);
|
|
47
|
+
}
|
|
48
|
+
unregister(item) {
|
|
49
|
+
this.#registeredItems.update(items => items.filter(i => i !== item));
|
|
50
|
+
}
|
|
51
|
+
writeValue(_value) {
|
|
52
|
+
// Implementation here
|
|
53
|
+
}
|
|
54
|
+
registerOnChange(fn) {
|
|
55
|
+
this._change = fn;
|
|
56
|
+
}
|
|
57
|
+
registerOnTouched(fn) {
|
|
58
|
+
this._touched = fn;
|
|
59
|
+
}
|
|
60
|
+
setDisabledState(_isDisabled) {
|
|
61
|
+
// Implementation here
|
|
62
|
+
}
|
|
63
|
+
onSearch(searchTerm) {
|
|
64
|
+
this.searchTerm.set(searchTerm);
|
|
65
|
+
this.selectedIndex.set(-1);
|
|
66
|
+
this._updateSelectedItem();
|
|
67
|
+
}
|
|
68
|
+
selectItem(item) {
|
|
69
|
+
const commandItem = {
|
|
70
|
+
value: item.value(),
|
|
71
|
+
label: item.label(),
|
|
72
|
+
disabled: item.disabled(),
|
|
73
|
+
command: item.command(),
|
|
74
|
+
shortcut: item.shortcut(),
|
|
75
|
+
icon: item.icon(),
|
|
76
|
+
};
|
|
77
|
+
this._change(item.value());
|
|
78
|
+
this.changeCommand.emit(commandItem);
|
|
79
|
+
this.selectedCommand.emit(commandItem);
|
|
80
|
+
}
|
|
81
|
+
onKeyDown(event) {
|
|
82
|
+
const filteredItems = this.filteredItems();
|
|
83
|
+
if (filteredItems.length === 0)
|
|
84
|
+
return;
|
|
85
|
+
const { key } = event;
|
|
86
|
+
const index = this.selectedIndex();
|
|
87
|
+
switch (key) {
|
|
88
|
+
case "ArrowDown": {
|
|
89
|
+
const nextIndex = index < filteredItems.length - 1 ? index + 1 : 0;
|
|
90
|
+
this.selectedIndex.set(nextIndex);
|
|
91
|
+
this._updateSelectedItem();
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case "ArrowUp": {
|
|
95
|
+
const prevIndex = index > 0 ? index - 1 : filteredItems.length - 1;
|
|
96
|
+
this.selectedIndex.set(prevIndex);
|
|
97
|
+
this._updateSelectedItem();
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case "Enter":
|
|
101
|
+
if (index >= 0 && index < filteredItems.length) {
|
|
102
|
+
const selectedItem = filteredItems[index];
|
|
103
|
+
if (!selectedItem.disabled()) {
|
|
104
|
+
this.selectItem(selectedItem);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case "Escape":
|
|
109
|
+
this.selectedIndex.set(-1);
|
|
110
|
+
this._updateSelectedItem();
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
refreshItems() {
|
|
115
|
+
this._triggerItemsUpdate();
|
|
116
|
+
}
|
|
117
|
+
focus() {
|
|
118
|
+
this.cmdInputComponent()?.focus();
|
|
119
|
+
}
|
|
120
|
+
_updateSelectedItem() {
|
|
121
|
+
const filteredItems = this.filteredItems();
|
|
122
|
+
const index = this.selectedIndex();
|
|
123
|
+
for (const option of filteredItems) {
|
|
124
|
+
option.setSelected(false);
|
|
125
|
+
}
|
|
126
|
+
if (index >= 0 && index < filteredItems.length) {
|
|
127
|
+
const selected = filteredItems[index];
|
|
128
|
+
selected.setSelected(true);
|
|
129
|
+
selected.focus();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
_triggerItemsUpdate() {
|
|
133
|
+
this.#itemUpdateTrigger.update(value => value + 1);
|
|
134
|
+
}
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiCommand, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.1", type: AiCommand, isStandalone: true, selector: "ai-command", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { changeCommand: "changeCommand", selectedCommand: "selectedCommand" }, host: { attributes: { "role": "combobox", "aria-haspopup": "listbox" }, listeners: { "keydown.{arrowdown,arrowup,enter,escape}.prevent": "onKeyDown($event)" }, properties: { "attr.aria-expanded": "true" } }, providers: [
|
|
137
|
+
{
|
|
138
|
+
provide: NG_VALUE_ACCESSOR,
|
|
139
|
+
useExisting: forwardRef(() => AiCommand),
|
|
140
|
+
multi: true,
|
|
141
|
+
},
|
|
142
|
+
], queries: [{ propertyName: "cmdInputComponent", first: true, predicate: AiCommandInput, descendants: true, isSignal: true }, { propertyName: "cmdItemComponents", predicate: AiCommandItem, descendants: true, isSignal: true }], exportAs: ["aiCommand"], ngImport: i0, template: `
|
|
143
|
+
<div [class]="classes()">
|
|
144
|
+
<div id="command-instructions" class="sr-only">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>
|
|
145
|
+
<div id="command-status" class="sr-only" aria-live="polite" aria-atomic="true">
|
|
146
|
+
{{ statusMessage() }}
|
|
147
|
+
</div>
|
|
148
|
+
<ng-content />
|
|
149
|
+
</div>
|
|
150
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
151
|
+
}
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiCommand, decorators: [{
|
|
153
|
+
type: Component,
|
|
154
|
+
args: [{
|
|
155
|
+
selector: "ai-command",
|
|
156
|
+
exportAs: "aiCommand",
|
|
157
|
+
imports: [FormsModule],
|
|
158
|
+
encapsulation: ViewEncapsulation.None,
|
|
159
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
160
|
+
template: `
|
|
161
|
+
<div [class]="classes()">
|
|
162
|
+
<div id="command-instructions" class="sr-only">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>
|
|
163
|
+
<div id="command-status" class="sr-only" aria-live="polite" aria-atomic="true">
|
|
164
|
+
{{ statusMessage() }}
|
|
165
|
+
</div>
|
|
166
|
+
<ng-content />
|
|
167
|
+
</div>
|
|
168
|
+
`,
|
|
169
|
+
providers: [
|
|
170
|
+
{
|
|
171
|
+
provide: NG_VALUE_ACCESSOR,
|
|
172
|
+
useExisting: forwardRef(() => AiCommand),
|
|
173
|
+
multi: true,
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
host: {
|
|
177
|
+
role: "combobox",
|
|
178
|
+
"aria-haspopup": "listbox",
|
|
179
|
+
"[attr.aria-expanded]": "true",
|
|
180
|
+
"(keydown.{arrowdown,arrowup,enter,escape}.prevent)": "onKeyDown($event)",
|
|
181
|
+
},
|
|
182
|
+
}]
|
|
183
|
+
}], ctorParameters: () => [], propDecorators: { cmdInputComponent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AiCommandInput), { isSignal: true }] }], cmdItemComponents: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AiCommandItem), { ...{ descendants: true }, isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], changeCommand: [{ type: i0.Output, args: ["changeCommand"] }], selectedCommand: [{ type: i0.Output, args: ["selectedCommand"] }] } });
|
|
184
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClK,OAAO,EAAwB,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,OAAO,EAAY,YAAY,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAuB,eAAe,EAAE,MAAM,oBAAoB,CAAC;;AA+B1E,MAAM,OAAO,SAAS;IACD,iBAAiB,GAAG,YAAY,CAAC,cAAc,6DAAC,CAAC;IACjD,iBAAiB,GAAG,eAAe,CAAC,aAAa,8DAAI,WAAW,EAAE,IAAI,GAAG,CAAC;IAClF,gBAAgB,GAAG,MAAM,CAAkB,EAAE,4DAAC,CAAC;IAE/C,IAAI,GAAG,KAAK,CAAsB,SAAS,gDAAC,CAAC;IAC7C,KAAK,GAAG,KAAK,CAAa,EAAE,iDAAC,CAAC;IAE7B,OAAO,GAAqB,GAAG,EAAE,CAAC,MAAM,CAAC;IACzC,QAAQ,GAAY,GAAG,EAAE,CAAC,MAAM,CAAC;IAElC,UAAU,GAAG,MAAM,CAAS,EAAE,sDAAC,CAAC;IAChC,aAAa,GAAG,MAAM,CAAS,CAAC,CAAC,yDAAC,CAAC;IAC5C,kBAAkB,GAAG,MAAM,CAAS,CAAC,8DAAC,CAAC;IAE9B,aAAa,GAAG,MAAM,EAAuB,CAAC;IAC9C,eAAe,GAAG,MAAM,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uGA5JQ,SAAS;2FAAT,SAAS,mlBAdP;YACP;gBACI,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;gBACxC,KAAK,EAAE,IAAI;aACd;SACJ,yEASiD,cAAc,uFACX,aAAa,yFAzBxD;;;;;;;;KAQT,2DAXS,WAAW;;2FA0BZ,SAAS;kBA7BrB,SAAS;mBAAC;oBACP,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,WAAW;oBACrB,OAAO,EAAE,CAAC,WAAW,CAAC;oBACtB,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;KAQT;oBACD,SAAS,EAAE;wBACP;4BACI,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC;4BACxC,KAAK,EAAE,IAAI;yBACd;qBACJ;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,UAAU;wBAChB,eAAe,EAAE,SAAS;wBAC1B,sBAAsB,EAAE,MAAM;wBAC9B,oDAAoD,EAAE,mBAAmB;qBAC5E;iBACJ;gIAEqD,cAAc,sGACX,aAAa,QAAE,EAAE,WAAW,EAAE,IAAI,EAAE","sourcesContent":["import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, forwardRef, input, output, signal, ViewEncapsulation } from \"@angular/core\";\r\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from \"@angular/forms\";\r\nimport { ClassValue } from \"clsx\";\r\nimport { ChangeFn, mergeClasses, noopFn, TouchFn } from \"../../core\";\r\nimport { AiCommandInput } from \"./command-input\";\r\nimport { AiCommandItem } from \"./command-item\";\r\nimport { AiCommandItemConfig, AiCommandRepository } from \"./command.config\";\r\nimport { CommandSizeVariants, commandVariants } from \"./command.variants\";\r\n\r\n@Component({\r\n selector: \"ai-command\",\r\n exportAs: \"aiCommand\",\r\n imports: [FormsModule],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n template: `\r\n <div [class]=\"classes()\">\r\n <div id=\"command-instructions\" class=\"sr-only\">Use arrow keys to navigate, Enter to select, Escape to clear selection.</div>\r\n <div id=\"command-status\" class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\r\n {{ statusMessage() }}\r\n </div>\r\n <ng-content />\r\n </div>\r\n `,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => AiCommand),\r\n multi: true,\r\n },\r\n ],\r\n host: {\r\n role: \"combobox\",\r\n \"aria-haspopup\": \"listbox\",\r\n \"[attr.aria-expanded]\": \"true\",\r\n \"(keydown.{arrowdown,arrowup,enter,escape}.prevent)\": \"onKeyDown($event)\",\r\n },\r\n})\r\nexport class AiCommand implements ControlValueAccessor, AiCommandRepository {\r\n private readonly cmdInputComponent = contentChild(AiCommandInput);\r\n private readonly cmdItemComponents = contentChildren(AiCommandItem, { descendants: true });\r\n readonly #registeredItems = signal<AiCommandItem[]>([]);\r\n\r\n readonly size = input<CommandSizeVariants>(\"default\");\r\n readonly class = input<ClassValue>(\"\");\r\n\r\n protected _change: ChangeFn<string> = () => noopFn;\r\n protected _touched: TouchFn = () => noopFn;\r\n\r\n readonly searchTerm = signal<string>(\"\");\r\n readonly selectedIndex = signal<number>(-1);\r\n #itemUpdateTrigger = signal<number>(0);\r\n\r\n readonly changeCommand = output<AiCommandItemConfig>();\r\n readonly selectedCommand = output<AiCommandItemConfig>();\r\n\r\n protected readonly itemComponents = computed(() => (this.cmdItemComponents().length ? this.cmdItemComponents() : this.#registeredItems()));\r\n\r\n protected readonly classes = computed(() => mergeClasses(commandVariants({ size: this.size() }), this.class()));\r\n\r\n readonly filteredItems = computed(() => {\r\n const searchTerm = this.searchTerm();\r\n this.#itemUpdateTrigger();\r\n\r\n if (!this.itemComponents()) return [];\r\n\r\n const lowerSearchTerm = searchTerm.toLowerCase().trim();\r\n if (!lowerSearchTerm) return this.itemComponents();\r\n\r\n return this.itemComponents().filter(item => item.label().toLowerCase().includes(lowerSearchTerm) || (item.command()?.toLowerCase() ?? \"\").includes(lowerSearchTerm));\r\n });\r\n\r\n protected readonly statusMessage = computed(() => {\r\n const searchTerm = this.searchTerm().trim();\r\n const filteredCount = this.filteredItems().length;\r\n\r\n if (!searchTerm) return searchTerm;\r\n if (!filteredCount) return `No results found for \"${searchTerm}\"`;\r\n\r\n return `${filteredCount} result${filteredCount === 1 ? \"\" : \"s\"} found for \"${searchTerm}\"`;\r\n });\r\n\r\n constructor() {\r\n this._triggerItemsUpdate();\r\n }\r\n\r\n register(item: AiCommandItem) {\r\n this.#registeredItems.update(items => [...items, item]);\r\n }\r\n\r\n unregister(item: AiCommandItem) {\r\n this.#registeredItems.update(items => items.filter(i => i !== item));\r\n }\r\n\r\n writeValue(_value: string | null) {\r\n // Implementation here\r\n }\r\n\r\n registerOnChange(fn: (value: string) => void): void {\r\n this._change = fn;\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this._touched = fn;\r\n }\r\n\r\n setDisabledState(_isDisabled: boolean): void {\r\n // Implementation here\r\n }\r\n\r\n onSearch(searchTerm: string) {\r\n this.searchTerm.set(searchTerm);\r\n this.selectedIndex.set(-1);\r\n this._updateSelectedItem();\r\n }\r\n\r\n selectItem(item: AiCommandItem) {\r\n const commandItem: AiCommandItemConfig = {\r\n value: item.value(),\r\n label: item.label(),\r\n disabled: item.disabled(),\r\n command: item.command(),\r\n shortcut: item.shortcut(),\r\n icon: item.icon(),\r\n };\r\n\r\n this._change(item.value() as string);\r\n this.changeCommand.emit(commandItem);\r\n this.selectedCommand.emit(commandItem);\r\n }\r\n\r\n onKeyDown(event: Event) {\r\n const filteredItems = this.filteredItems();\r\n if (filteredItems.length === 0) return;\r\n\r\n const { key } = event as KeyboardEvent;\r\n const index = this.selectedIndex();\r\n\r\n switch (key) {\r\n case \"ArrowDown\": {\r\n const nextIndex = index < filteredItems.length - 1 ? index + 1 : 0;\r\n this.selectedIndex.set(nextIndex);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n\r\n case \"ArrowUp\": {\r\n const prevIndex = index > 0 ? index - 1 : filteredItems.length - 1;\r\n this.selectedIndex.set(prevIndex);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n\r\n case \"Enter\":\r\n if (index >= 0 && index < filteredItems.length) {\r\n const selectedItem = filteredItems[index];\r\n if (!selectedItem.disabled()) {\r\n this.selectItem(selectedItem);\r\n }\r\n }\r\n break;\r\n\r\n case \"Escape\":\r\n this.selectedIndex.set(-1);\r\n this._updateSelectedItem();\r\n break;\r\n }\r\n }\r\n\r\n refreshItems() {\r\n this._triggerItemsUpdate();\r\n }\r\n\r\n focus() {\r\n this.cmdInputComponent()?.focus();\r\n }\r\n\r\n private _updateSelectedItem() {\r\n const filteredItems = this.filteredItems();\r\n const index = this.selectedIndex();\r\n\r\n for (const option of filteredItems) {\r\n option.setSelected(false);\r\n }\r\n\r\n if (index >= 0 && index < filteredItems.length) {\r\n const selected = filteredItems[index];\r\n selected.setSelected(true);\r\n selected.focus();\r\n }\r\n }\r\n\r\n private _triggerItemsUpdate(): void {\r\n this.#itemUpdateTrigger.update(value => value + 1);\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const commandVariants = cva("flex h-full w-full flex-col overflow-hidden shadow-md border border-border rounded-md bg-background text-background-foreground", {
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
sm: "min-h-64",
|
|
6
|
+
default: "min-h-80",
|
|
7
|
+
lg: "min-h-96",
|
|
8
|
+
xl: "min-h-120",
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
size: "default",
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
export const commandInputVariants = cva("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", {
|
|
16
|
+
variants: {},
|
|
17
|
+
defaultVariants: {},
|
|
18
|
+
});
|
|
19
|
+
export const commandListVariants = cva("max-h-75 overflow-y-auto overflow-x-hidden p-1", {
|
|
20
|
+
variants: {},
|
|
21
|
+
defaultVariants: {},
|
|
22
|
+
});
|
|
23
|
+
export const commandGroupVariants = cva("overflow-hidden text-foreground", {
|
|
24
|
+
variants: {},
|
|
25
|
+
defaultVariants: {},
|
|
26
|
+
});
|
|
27
|
+
export const commandGroupHeadingVariants = cva("px-2 py-1.5 text-xs font-semibold font-title text-muted-foreground", {
|
|
28
|
+
variants: {},
|
|
29
|
+
defaultVariants: {},
|
|
30
|
+
});
|
|
31
|
+
export const commandItemVariants = cva("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-default hover:text-default-foreground aria-selected:bg-default aria-selected:text-default-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50", {
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
default: "",
|
|
35
|
+
destructive: "aria-selected:bg-destructive aria-selected:text-destructive-foreground hover:bg-destructive hover:text-destructive-foreground",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "default",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
export const commandSeparatorVariants = cva("-mx-1 my-1 h-px bg-border", {
|
|
43
|
+
variants: {},
|
|
44
|
+
defaultVariants: {},
|
|
45
|
+
});
|
|
46
|
+
export const commandShortcutVariants = cva("ml-auto text-xs tracking-widest text-muted-foreground", {
|
|
47
|
+
variants: {},
|
|
48
|
+
defaultVariants: {},
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=command.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.variants.js","sourceRoot":"","sources":["../../../../../../../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AE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC,uDAAuD,EAAE;IAChG,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;CACtB,CAAC,CAAC","sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nexport const commandVariants = cva(\"flex h-full w-full flex-col overflow-hidden shadow-md border border-border rounded-md bg-background text-background-foreground\", {\r\n variants: {\r\n size: {\r\n sm: \"min-h-64\",\r\n default: \"min-h-80\",\r\n lg: \"min-h-96\",\r\n xl: \"min-h-120\",\r\n },\r\n },\r\n defaultVariants: {\r\n size: \"default\",\r\n },\r\n});\r\n\r\nexport const commandInputVariants = cva(\r\n \"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\r\n {\r\n variants: {},\r\n defaultVariants: {},\r\n },\r\n);\r\n\r\nexport const commandListVariants = cva(\"max-h-75 overflow-y-auto overflow-x-hidden p-1\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandGroupVariants = cva(\"overflow-hidden text-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandGroupHeadingVariants = cva(\"px-2 py-1.5 text-xs font-semibold font-title text-muted-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandItemVariants = cva(\r\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-default hover:text-default-foreground aria-selected:bg-default aria-selected:text-default-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"\",\r\n destructive: \"aria-selected:bg-destructive aria-selected:text-destructive-foreground hover:bg-destructive hover:text-destructive-foreground\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport const commandSeparatorVariants = cva(\"-mx-1 my-1 h-px bg-border\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport const commandShortcutVariants = cva(\"ml-auto text-xs tracking-widest text-muted-foreground\", {\r\n variants: {},\r\n defaultVariants: {},\r\n});\r\n\r\nexport type CommandSizeVariants = NonNullable<VariantProps<typeof commandVariants>[\"size\"]>;\r\nexport type CommandItemVariants = NonNullable<VariantProps<typeof commandItemVariants>[\"variant\"]>;\r\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DemoCommandDefaultComponent } from "./default";
|
|
2
|
+
export const COMMAND = {
|
|
3
|
+
componentName: "command",
|
|
4
|
+
componentType: "command",
|
|
5
|
+
examples: [
|
|
6
|
+
{
|
|
7
|
+
name: "default",
|
|
8
|
+
component: DemoCommandDefaultComponent,
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/command/demo/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,aAAa,EAAE,SAAS;IACxB,aAAa,EAAE,SAAS;IACxB,QAAQ,EAAE;QACN;YACI,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,2BAA2B;SACzC;KACJ;CACJ,CAAC","sourcesContent":["import { DemoCommandDefaultComponent } from \"./default\";\r\n\r\nexport const COMMAND = {\r\n componentName: \"command\",\r\n componentType: \"command\",\r\n examples: [\r\n {\r\n name: \"default\",\r\n component: DemoCommandDefaultComponent,\r\n },\r\n ],\r\n};\r\n"]}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { AiCommandImports } from "../command.imports";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../command";
|
|
5
|
+
import * as i2 from "../command-input";
|
|
6
|
+
import * as i3 from "../command-list";
|
|
7
|
+
import * as i4 from "../command-item";
|
|
8
|
+
import * as i5 from "../command-item-group";
|
|
9
|
+
import * as i6 from "../command-separator";
|
|
10
|
+
import * as i7 from "../command-empty";
|
|
11
|
+
export class DemoCommandDefaultComponent {
|
|
12
|
+
commandActions = {
|
|
13
|
+
"new-project": () => this._showAlert("Creating new project..."),
|
|
14
|
+
"open-file": () => this._showAlert("Opening file dialog..."),
|
|
15
|
+
"save-all": () => this._showAlert("Saving all files..."),
|
|
16
|
+
dashboard: () => this._showAlert("Navigating to Dashboard..."),
|
|
17
|
+
projects: () => this._showAlert("Navigating to Projects..."),
|
|
18
|
+
terminal: () => this._showAlert("Opening terminal..."),
|
|
19
|
+
theme: () => this._showAlert("Toggling theme..."),
|
|
20
|
+
};
|
|
21
|
+
keyMap = {
|
|
22
|
+
n: { value: "new-project", label: "Create new project" },
|
|
23
|
+
o: { value: "open-file", label: "Open file" },
|
|
24
|
+
s: { value: "save-all", label: "Save all" },
|
|
25
|
+
"1": { value: "dashboard", label: "Go to Dashboard" },
|
|
26
|
+
"2": { value: "projects", label: "Go to Projects" },
|
|
27
|
+
t: { value: "terminal", label: "Open terminal" },
|
|
28
|
+
d: { value: "theme", label: "Toggle theme" },
|
|
29
|
+
};
|
|
30
|
+
handleCommand(item) {
|
|
31
|
+
const action = `Executed "${item.label}" (value: ${item.value})`;
|
|
32
|
+
console.log(action);
|
|
33
|
+
(this.commandActions[item.value] ?? (() => this._showAlert(`Action: ${item.label}`)))();
|
|
34
|
+
}
|
|
35
|
+
handleKeydown(event) {
|
|
36
|
+
if (event.metaKey || event.ctrlKey) {
|
|
37
|
+
const key = event.key.toLowerCase();
|
|
38
|
+
if (this.keyMap[key]) {
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
this._executeCommand(this.keyMap[key].value, this.keyMap[key].label);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
_executeCommand(value, label) {
|
|
45
|
+
this.handleCommand({ value, label });
|
|
46
|
+
}
|
|
47
|
+
_showAlert(message, warning = false) {
|
|
48
|
+
if (warning) {
|
|
49
|
+
console.warn(message);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log(message);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoCommandDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: DemoCommandDefaultComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "window:keydown": "handleKeydown($event)" } }, ngImport: i0, template: `
|
|
57
|
+
<ai-command class="md:min-w-125" (selectedCommand)="handleCommand($event)">
|
|
58
|
+
<ai-command-input placeholder="Search actions, files, and more..." />
|
|
59
|
+
|
|
60
|
+
<ai-command-list>
|
|
61
|
+
<ai-command-empty />
|
|
62
|
+
|
|
63
|
+
<ai-command-item-group label="Quick Actions">
|
|
64
|
+
<ai-command-item label="Create new project" value="new-project" icon="folder" shortcut="⌘N" />
|
|
65
|
+
<ai-command-item label="Open file" value="open-file" icon="folder-open" shortcut="⌘O" />
|
|
66
|
+
<ai-command-item label="Save all" value="save-all" icon="save-2" shortcut="⌘S" />
|
|
67
|
+
</ai-command-item-group>
|
|
68
|
+
|
|
69
|
+
<ai-command-separator />
|
|
70
|
+
|
|
71
|
+
<ai-command-item-group label="Navigation">
|
|
72
|
+
<ai-command-item label="Go to Dashboard" value="dashboard" icon="dashboard" shortcut="⌘1" />
|
|
73
|
+
<ai-command-item label="Go to Projects" value="projects" icon="folder" shortcut="⌘2" />
|
|
74
|
+
</ai-command-item-group>
|
|
75
|
+
|
|
76
|
+
<ai-command-separator />
|
|
77
|
+
|
|
78
|
+
<ai-command-item-group label="Tools">
|
|
79
|
+
<ai-command-item label="Open terminal" value="terminal" icon="terminal" shortcut="⌘T" />
|
|
80
|
+
<ai-command-item label="Toggle theme" value="theme" icon="moon" shortcut="⌘D" />
|
|
81
|
+
</ai-command-item-group>
|
|
82
|
+
</ai-command-list>
|
|
83
|
+
</ai-command>
|
|
84
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.AiCommand, selector: "ai-command", inputs: ["size", "class"], outputs: ["changeCommand", "selectedCommand"], exportAs: ["aiCommand"] }, { kind: "component", type: i2.AiCommandInput, selector: "ai-command-input", inputs: ["placeholder", "class"], outputs: ["changeValue"], exportAs: ["aiCommandInput"] }, { kind: "component", type: i3.AiCommandList, selector: "ai-command-list", inputs: ["class"], exportAs: ["aiCommandList"] }, { kind: "component", type: i4.AiCommandItem, selector: "ai-command-item", inputs: ["value", "label", "command", "icon", "shortcut", "disabled", "variant", "class", "parentCommand", "commandItemGroup"], exportAs: ["aiCommandItem"] }, { kind: "component", type: i5.AiCommandItemGroup, selector: "ai-command-item-group", inputs: ["label", "class"], exportAs: ["aiCommandItemGroup"] }, { kind: "component", type: i6.AiCommandSeparator, selector: "ai-command-separator", inputs: ["class"], exportAs: ["aiCommandSeparator"] }, { kind: "component", type: i7.AiCommandEmpty, selector: "ai-command-empty", inputs: ["icon", "title", "description", "class"], exportAs: ["aiCommandEmpty"] }] });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: DemoCommandDefaultComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
imports: [AiCommandImports],
|
|
90
|
+
template: `
|
|
91
|
+
<ai-command class="md:min-w-125" (selectedCommand)="handleCommand($event)">
|
|
92
|
+
<ai-command-input placeholder="Search actions, files, and more..." />
|
|
93
|
+
|
|
94
|
+
<ai-command-list>
|
|
95
|
+
<ai-command-empty />
|
|
96
|
+
|
|
97
|
+
<ai-command-item-group label="Quick Actions">
|
|
98
|
+
<ai-command-item label="Create new project" value="new-project" icon="folder" shortcut="⌘N" />
|
|
99
|
+
<ai-command-item label="Open file" value="open-file" icon="folder-open" shortcut="⌘O" />
|
|
100
|
+
<ai-command-item label="Save all" value="save-all" icon="save-2" shortcut="⌘S" />
|
|
101
|
+
</ai-command-item-group>
|
|
102
|
+
|
|
103
|
+
<ai-command-separator />
|
|
104
|
+
|
|
105
|
+
<ai-command-item-group label="Navigation">
|
|
106
|
+
<ai-command-item label="Go to Dashboard" value="dashboard" icon="dashboard" shortcut="⌘1" />
|
|
107
|
+
<ai-command-item label="Go to Projects" value="projects" icon="folder" shortcut="⌘2" />
|
|
108
|
+
</ai-command-item-group>
|
|
109
|
+
|
|
110
|
+
<ai-command-separator />
|
|
111
|
+
|
|
112
|
+
<ai-command-item-group label="Tools">
|
|
113
|
+
<ai-command-item label="Open terminal" value="terminal" icon="terminal" shortcut="⌘T" />
|
|
114
|
+
<ai-command-item label="Toggle theme" value="theme" icon="moon" shortcut="⌘D" />
|
|
115
|
+
</ai-command-item-group>
|
|
116
|
+
</ai-command-list>
|
|
117
|
+
</ai-command>
|
|
118
|
+
`,
|
|
119
|
+
host: {
|
|
120
|
+
"(window:keydown)": "handleKeydown($event)",
|
|
121
|
+
},
|
|
122
|
+
}]
|
|
123
|
+
}] });
|
|
124
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../../../../../../libs/ai-ui/src/lib/components/command/demo/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;;AAqCtD,MAAM,OAAO,2BAA2B;IACnB,cAAc,GAA+B;QAC1D,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC/D,WAAW,EAAE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config\";\r\nimport { AiCommandImports } from \"../command.imports\";\r\n\r\n@Component({\r\n imports: [AiCommandImports],\r\n template: `\r\n <ai-command class=\"md:min-w-125\" (selectedCommand)=\"handleCommand($event)\">\r\n <ai-command-input placeholder=\"Search actions, files, and more...\" />\r\n\r\n <ai-command-list>\r\n <ai-command-empty />\r\n\r\n <ai-command-item-group label=\"Quick Actions\">\r\n <ai-command-item label=\"Create new project\" value=\"new-project\" icon=\"folder\" shortcut=\"⌘N\" />\r\n <ai-command-item label=\"Open file\" value=\"open-file\" icon=\"folder-open\" shortcut=\"⌘O\" />\r\n <ai-command-item label=\"Save all\" value=\"save-all\" icon=\"save-2\" shortcut=\"⌘S\" />\r\n </ai-command-item-group>\r\n\r\n <ai-command-separator />\r\n\r\n <ai-command-item-group label=\"Navigation\">\r\n <ai-command-item label=\"Go to Dashboard\" value=\"dashboard\" icon=\"dashboard\" shortcut=\"⌘1\" />\r\n <ai-command-item label=\"Go to Projects\" value=\"projects\" icon=\"folder\" shortcut=\"⌘2\" />\r\n </ai-command-item-group>\r\n\r\n <ai-command-separator />\r\n\r\n <ai-command-item-group label=\"Tools\">\r\n <ai-command-item label=\"Open terminal\" value=\"terminal\" icon=\"terminal\" shortcut=\"⌘T\" />\r\n <ai-command-item label=\"Toggle theme\" value=\"theme\" icon=\"moon\" shortcut=\"⌘D\" />\r\n </ai-command-item-group>\r\n </ai-command-list>\r\n </ai-command>\r\n `,\r\n host: {\r\n \"(window:keydown)\": \"handleKeydown($event)\",\r\n },\r\n})\r\nexport class DemoCommandDefaultComponent {\r\n private readonly commandActions: Record<string, () => void> = {\r\n \"new-project\": () => this._showAlert(\"Creating new project...\"),\r\n \"open-file\": () => this._showAlert(\"Opening file dialog...\"),\r\n \"save-all\": () => this._showAlert(\"Saving all files...\"),\r\n dashboard: () => this._showAlert(\"Navigating to Dashboard...\"),\r\n projects: () => this._showAlert(\"Navigating to Projects...\"),\r\n terminal: () => this._showAlert(\"Opening terminal...\"),\r\n theme: () => this._showAlert(\"Toggling theme...\"),\r\n };\r\n\r\n private readonly keyMap: Record<string, { value: string; label: string }> = {\r\n n: { value: \"new-project\", label: \"Create new project\" },\r\n o: { value: \"open-file\", label: \"Open file\" },\r\n s: { value: \"save-all\", label: \"Save all\" },\r\n \"1\": { value: \"dashboard\", label: \"Go to Dashboard\" },\r\n \"2\": { value: \"projects\", label: \"Go to Projects\" },\r\n t: { value: \"terminal\", label: \"Open terminal\" },\r\n d: { value: \"theme\", label: \"Toggle theme\" },\r\n };\r\n\r\n handleCommand(item: AiCommandItemConfig) {\r\n const action = `Executed \"${item.label}\" (value: ${item.value})`;\r\n console.log(action);\r\n (this.commandActions[item.value as keyof typeof this.commandActions] ?? (() => this._showAlert(`Action: ${item.label}`)))();\r\n }\r\n\r\n handleKeydown(event: KeyboardEvent) {\r\n if (event.metaKey || event.ctrlKey) {\r\n const key = event.key.toLowerCase();\r\n if (this.keyMap[key]) {\r\n event.preventDefault();\r\n this._executeCommand(this.keyMap[key].value, this.keyMap[key].label);\r\n }\r\n }\r\n }\r\n\r\n private _executeCommand(value: string, label: string) {\r\n this.handleCommand({ value, label } as AiCommandItemConfig);\r\n }\r\n\r\n private _showAlert(message: string, warning = false) {\r\n if (warning) {\r\n console.warn(message);\r\n } else {\r\n console.log(message);\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./command";
|
|
2
|
+
export * from "./command-empty";
|
|
3
|
+
export * from "./command-input";
|
|
4
|
+
export * from "./command-item";
|
|
5
|
+
export * from "./command-item-group";
|
|
6
|
+
export * from "./command-list";
|
|
7
|
+
export * from "./command-separator";
|
|
8
|
+
export * from "./command.imports";
|
|
9
|
+
export * from "./demo/command";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./command\";\r\nexport * from \"./command-empty\";\r\nexport * from \"./command-input\";\r\nexport * from \"./command-item\";\r\nexport * from \"./command-item-group\";\r\nexport * from \"./command-list\";\r\nexport * from \"./command-separator\";\r\nexport * from \"./command.imports\";\r\nexport * from \"./demo/command\";\r\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Overlay, OverlayPositionBuilder } from "@angular/cdk/overlay";
|
|
2
|
+
import { TemplatePortal } from "@angular/cdk/portal";
|
|
3
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
4
|
+
import { inject, Injectable, PLATFORM_ID } from "@angular/core";
|
|
5
|
+
import { EMPTY } from "rxjs";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class AiDatePickerOverlayService {
|
|
8
|
+
#overlay = inject(Overlay);
|
|
9
|
+
#overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
10
|
+
#platformId = inject(PLATFORM_ID);
|
|
11
|
+
#overlayRef;
|
|
12
|
+
#portal;
|
|
13
|
+
create(origin) {
|
|
14
|
+
if (this.#overlayRef)
|
|
15
|
+
return this.#overlayRef;
|
|
16
|
+
if (!isPlatformBrowser(this.#platformId))
|
|
17
|
+
return;
|
|
18
|
+
const positionStrategy = this.#overlayPositionBuilder
|
|
19
|
+
.flexibleConnectedTo(origin)
|
|
20
|
+
.withPositions([
|
|
21
|
+
{ originX: "start", originY: "bottom", overlayX: "start", overlayY: "top", offsetY: 4 },
|
|
22
|
+
{ originX: "start", originY: "top", overlayX: "start", overlayY: "bottom", offsetY: -4 },
|
|
23
|
+
])
|
|
24
|
+
.withPush(false);
|
|
25
|
+
this.#overlayRef = this.#overlay.create({
|
|
26
|
+
positionStrategy,
|
|
27
|
+
hasBackdrop: false,
|
|
28
|
+
scrollStrategy: this.#overlay.scrollStrategies.reposition(),
|
|
29
|
+
});
|
|
30
|
+
return this.#overlayRef;
|
|
31
|
+
}
|
|
32
|
+
attach(template, viewContainerRef) {
|
|
33
|
+
if (!this.#overlayRef)
|
|
34
|
+
return;
|
|
35
|
+
if (this.#overlayRef.hasAttached()) {
|
|
36
|
+
this.#overlayRef.detach();
|
|
37
|
+
}
|
|
38
|
+
this.#portal = new TemplatePortal(template, viewContainerRef);
|
|
39
|
+
this.#overlayRef.attach(this.#portal);
|
|
40
|
+
}
|
|
41
|
+
detach() {
|
|
42
|
+
if (this.#overlayRef?.hasAttached()) {
|
|
43
|
+
this.#overlayRef.detach();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
hasAttached() {
|
|
47
|
+
return !!this.#overlayRef?.hasAttached();
|
|
48
|
+
}
|
|
49
|
+
destroy() {
|
|
50
|
+
this.#overlayRef?.dispose();
|
|
51
|
+
this.#overlayRef = undefined;
|
|
52
|
+
this.#portal = undefined;
|
|
53
|
+
}
|
|
54
|
+
outsidePointerEvents() {
|
|
55
|
+
return this.#overlayRef?.outsidePointerEvents() ?? EMPTY;
|
|
56
|
+
}
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService });
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: AiDatePickerOverlayService, decorators: [{
|
|
61
|
+
type: Injectable
|
|
62
|
+
}] });
|
|
63
|
+
//# sourceMappingURL=date-picker-overlay.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-overlay.service.js","sourceRoot":"","sources":["../../../../../../../libs/ai-ui/src/lib/components/date-picker/date-picker-overlay.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAmB,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAc,MAAM,EAAE,UAAU,EAAE,WAAW,EAAiC,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAE,KAAK,EAAmB,MAAM,MAAM,CAAC;;AAG9C,MAAM,OAAO,0BAA0B;IAC1B,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3B,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACzD,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAE3C,WAAW,CAAc;IACzB,OAAO,CAAkB;IAEzB,MAAM,CAAC,MAA+B;QAClC,IAAI,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC,WAAW,CAAC;QAC9C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC;YAAE,OAAO;QAEjD,MAAM,gBAAgB,GAAG,IAAI,CAAC,uBAAuB;aAChD,mBAAmB,CAAC,MAAM,CAAC;aAC3B,aAAa,CAAC;YACX,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE;YACvF,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE;SAC3F,CAAC;aAC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uilder, type OverlayRef } from \"@angular/cdk/overlay\";\r\nimport { TemplatePortal } from \"@angular/cdk/portal\";\r\nimport { isPlatformBrowser } from \"@angular/common\";\r\nimport { ElementRef, inject, Injectable, PLATFORM_ID, TemplateRef, ViewContainerRef } from \"@angular/core\";\r\nimport { EMPTY, type Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class AiDatePickerOverlayService {\r\n readonly #overlay = inject(Overlay);\r\n readonly #overlayPositionBuilder = inject(OverlayPositionBuilder);\r\n readonly #platformId = inject(PLATFORM_ID);\r\n\r\n #overlayRef?: OverlayRef;\r\n #portal?: TemplatePortal;\r\n\r\n create(origin: ElementRef<HTMLElement>): OverlayRef | undefined {\r\n if (this.#overlayRef) return this.#overlayRef;\r\n if (!isPlatformBrowser(this.#platformId)) return;\r\n\r\n const positionStrategy = this.#overlayPositionBuilder\r\n .flexibleConnectedTo(origin)\r\n .withPositions([\r\n { originX: \"start\", originY: \"bottom\", overlayX: \"start\", overlayY: \"top\", offsetY: 4 },\r\n { originX: \"start\", originY: \"top\", overlayX: \"start\", overlayY: \"bottom\", offsetY: -4 },\r\n ])\r\n .withPush(false);\r\n\r\n this.#overlayRef = this.#overlay.create({\r\n positionStrategy,\r\n hasBackdrop: false,\r\n scrollStrategy: this.#overlay.scrollStrategies.reposition(),\r\n });\r\n\r\n return this.#overlayRef;\r\n }\r\n\r\n attach(template: TemplateRef<void>, viewContainerRef: ViewContainerRef) {\r\n if (!this.#overlayRef) return;\r\n if (this.#overlayRef.hasAttached()) {\r\n this.#overlayRef.detach();\r\n }\r\n this.#portal = new TemplatePortal(template, viewContainerRef);\r\n this.#overlayRef.attach(this.#portal);\r\n }\r\n\r\n detach() {\r\n if (this.#overlayRef?.hasAttached()) {\r\n this.#overlayRef.detach();\r\n }\r\n }\r\n\r\n hasAttached(): boolean {\r\n return !!this.#overlayRef?.hasAttached();\r\n }\r\n\r\n destroy() {\r\n this.#overlayRef?.dispose();\r\n this.#overlayRef = undefined;\r\n this.#portal = undefined;\r\n }\r\n\r\n outsidePointerEvents(): Observable<MouseEvent | TouchEvent> {\r\n return this.#overlayRef?.outsidePointerEvents() ?? EMPTY;\r\n }\r\n}\r\n"]}
|