@testgorilla/tgo-ui 6.4.5 → 7.0.0-beta.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/components/accordion/index.d.ts +118 -5
- package/components/ai-audio-circle/index.d.ts +70 -5
- package/components/ai-caveat/index.d.ts +47 -3
- package/components/ai-feedback/index.d.ts +92 -5
- package/components/alert-banner/index.d.ts +165 -5
- package/components/audio-waveform/index.d.ts +71 -5
- package/components/autocomplete/index.d.ts +414 -3
- package/components/avatar/index.d.ts +107 -5
- package/components/badge/index.d.ts +125 -5
- package/components/breadcrumb/index.d.ts +62 -5
- package/components/button/index.d.ts +298 -3
- package/components/card/index.d.ts +103 -5
- package/components/checkbox/index.d.ts +221 -5
- package/components/checklist/index.d.ts +97 -5
- package/components/core/index.d.ts +346 -3
- package/components/datepicker/index.d.ts +305 -5
- package/components/dialog/index.d.ts +308 -5
- package/components/divider/index.d.ts +53 -5
- package/components/donut-chart/index.d.ts +39 -5
- package/components/dropdown/index.d.ts +240 -5
- package/components/elevation-shadow/index.d.ts +45 -5
- package/components/empty-state/index.d.ts +217 -5
- package/components/field/index.d.ts +396 -3
- package/components/file-upload/index.d.ts +169 -5
- package/components/filter-button/index.d.ts +173 -5
- package/components/gaussian-chart/index.d.ts +96 -5
- package/components/icon/index.d.ts +109 -5
- package/components/icon-label/index.d.ts +62 -5
- package/components/inline-field/index.d.ts +273 -3
- package/components/logo/index.d.ts +106 -5
- package/components/media-card/index.d.ts +35 -5
- package/components/media-dialog/index.d.ts +47 -5
- package/components/multi-input/index.d.ts +185 -5
- package/components/navbar/index.d.ts +203 -5
- package/components/overflow-menu/index.d.ts +163 -5
- package/components/page-header/index.d.ts +51 -5
- package/components/paginator/index.d.ts +70 -5
- package/components/password-criteria/index.d.ts +60 -5
- package/components/password-strength/index.d.ts +59 -5
- package/components/phone-input/index.d.ts +179 -3
- package/components/popover/index.d.ts +34 -5
- package/components/progress-bar/index.d.ts +86 -5
- package/components/prompt/index.d.ts +95 -5
- package/components/radial-progress/index.d.ts +99 -5
- package/components/radio-button/index.d.ts +211 -5
- package/components/rating/index.d.ts +97 -5
- package/components/scale/index.d.ts +65 -5
- package/components/scale-table/index.d.ts +49 -5
- package/components/segmented-bar/index.d.ts +92 -5
- package/components/segmented-button/index.d.ts +77 -5
- package/components/selectable-card/index.d.ts +50 -5
- package/components/side-panel/index.d.ts +97 -3
- package/components/side-sheet/index.d.ts +81 -5
- package/components/skeleton/index.d.ts +34 -5
- package/components/slider/index.d.ts +144 -5
- package/components/snackbar/index.d.ts +162 -5
- package/components/spider-chart/index.d.ts +127 -5
- package/components/spinner/index.d.ts +74 -5
- package/components/stepper/index.d.ts +341 -3
- package/components/table/index.d.ts +251 -3
- package/components/tabs/index.d.ts +145 -5
- package/components/tag/index.d.ts +166 -5
- package/components/toggle/index.d.ts +130 -5
- package/components/tooltip/index.d.ts +111 -5
- package/components/universal-skills/index.d.ts +153 -5
- package/components/validation-error/index.d.ts +36 -5
- package/components/write-with-ai/index.d.ts +131 -3
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +16 -16
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +24 -24
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +24 -24
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +23 -23
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +22 -23
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs +8 -9
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +16 -16
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs +33 -33
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +21 -21
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +31 -31
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +13 -13
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +10 -10
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +12 -12
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs +18 -18
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +12 -12
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +26 -26
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +12 -13
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +10 -10
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +33 -33
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +8 -9
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +3 -3
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +3 -3
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +33 -34
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +19 -21
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +9 -9
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +12 -12
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +16 -16
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +28 -28
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +9 -9
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +9 -9
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +9 -9
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +14 -14
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +13 -13
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +17 -17
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +5 -5
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +15 -15
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +32 -14
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +7 -7
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +20 -20
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +27 -27
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +12 -12
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +9 -9
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +23 -23
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +11 -11
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +38 -38
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +8 -8
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/index.d.ts +46 -5
- package/package.json +51 -52
- package/projects/tgo-canopy-ui/theme/_tooltip.scss +2 -0
- package/components/accordion/accordion.component.d.ts +0 -100
- package/components/accordion/accordion.component.module.d.ts +0 -12
- package/components/accordion/accordion.model.d.ts +0 -2
- package/components/accordion/public-api.d.ts +0 -4
- package/components/ai-audio-circle/ai-audio-circle.component.d.ts +0 -60
- package/components/ai-audio-circle/ai-audio-circle.module.d.ts +0 -8
- package/components/ai-audio-circle/public-api.d.ts +0 -2
- package/components/ai-caveat/ai-caveat.component.d.ts +0 -36
- package/components/ai-caveat/ai-caveat.component.module.d.ts +0 -10
- package/components/ai-caveat/public-api.d.ts +0 -3
- package/components/ai-feedback/ai-feedback.component.d.ts +0 -52
- package/components/ai-feedback/ai-feedback.model.d.ts +0 -19
- package/components/ai-feedback/ai-feedback.module.d.ts +0 -16
- package/components/ai-feedback/public-api.d.ts +0 -4
- package/components/alert-banner/alert-banner.component.d.ts +0 -144
- package/components/alert-banner/alert-banner.component.module.d.ts +0 -12
- package/components/alert-banner/alert-banner.model.d.ts +0 -6
- package/components/alert-banner/public-api.d.ts +0 -4
- package/components/audio-waveform/audio-waveform.component.d.ts +0 -32
- package/components/audio-waveform/audio-waveform.model.d.ts +0 -8
- package/components/audio-waveform/audio-waveform.module.d.ts +0 -7
- package/components/audio-waveform/audio-waveform.service.d.ts +0 -21
- package/components/audio-waveform/public-api.d.ts +0 -4
- package/components/autocomplete/autocomplete.component.d.ts +0 -324
- package/components/autocomplete/autocomplete.component.module.d.ts +0 -23
- package/components/autocomplete/autocomplete.model.d.ts +0 -23
- package/components/autocomplete/includes.pipe.d.ts +0 -12
- package/components/autocomplete/prevent-input.directive.d.ts +0 -7
- package/components/autocomplete/public-api.d.ts +0 -4
- package/components/autocomplete/select-text.directive.d.ts +0 -19
- package/components/autocomplete/transform-Item.pipe.d.ts +0 -11
- package/components/avatar/avatar.component.d.ts +0 -67
- package/components/avatar/avatar.component.module.d.ts +0 -13
- package/components/avatar/avatar.model.d.ts +0 -18
- package/components/avatar/name-initials.pipe.d.ts +0 -7
- package/components/avatar/public-api.d.ts +0 -4
- package/components/badge/badge.component.d.ts +0 -73
- package/components/badge/badge.component.module.d.ts +0 -10
- package/components/badge/badge.model.d.ts +0 -38
- package/components/badge/public-api.d.ts +0 -4
- package/components/breadcrumb/breadcrumb.component.d.ts +0 -40
- package/components/breadcrumb/breadcrumb.component.module.d.ts +0 -14
- package/components/breadcrumb/breadcrumb.model.d.ts +0 -5
- package/components/breadcrumb/public-api.d.ts +0 -4
- package/components/button/button.component.d.ts +0 -238
- package/components/button/button.component.module.d.ts +0 -15
- package/components/button/button.model.d.ts +0 -14
- package/components/button/color-contrast.d.ts +0 -28
- package/components/button/public-api.d.ts +0 -5
- package/components/card/card.component.d.ts +0 -87
- package/components/card/card.component.module.d.ts +0 -9
- package/components/card/card.model.d.ts +0 -3
- package/components/card/public-api.d.ts +0 -4
- package/components/checkbox/checkbox.component.d.ts +0 -193
- package/components/checkbox/checkbox.component.module.d.ts +0 -16
- package/components/checkbox/focus-visible.directive.d.ts +0 -12
- package/components/checkbox/public-api.d.ts +0 -4
- package/components/checklist/checklist.component.d.ts +0 -82
- package/components/checklist/checklist.model.d.ts +0 -9
- package/components/checklist/public-api.d.ts +0 -3
- package/components/core/alert-bar.model.d.ts +0 -2
- package/components/core/alert-bars.utils.d.ts +0 -6
- package/components/core/application-theme.model.d.ts +0 -7
- package/components/core/autocomplete-utils.d.ts +0 -12
- package/components/core/checkbox.model.d.ts +0 -1
- package/components/core/color-contrast.d.ts +0 -28
- package/components/core/colors.model.d.ts +0 -63
- package/components/core/data-property-getter.pipe.d.ts +0 -8
- package/components/core/digits-only.directive.d.ts +0 -17
- package/components/core/dynamic-component.directive.d.ts +0 -20
- package/components/core/ellipse-text.directive.d.ts +0 -20
- package/components/core/has-validation-error.pipe.d.ts +0 -15
- package/components/core/hex-to-rgb.d.ts +0 -1
- package/components/core/is-large-tablet.d.ts +0 -2
- package/components/core/is-mobile.d.ts +0 -2
- package/components/core/keyboard-events.model.d.ts +0 -11
- package/components/core/language.model.d.ts +0 -14
- package/components/core/language.service.d.ts +0 -20
- package/components/core/link-target.model.d.ts +0 -1
- package/components/core/memoize-func.pipe.d.ts +0 -26
- package/components/core/public-api.d.ts +0 -25
- package/components/core/screen-breakpoints.model.d.ts +0 -5
- package/components/core/select-text.directive.d.ts +0 -19
- package/components/core/truncate.pipe.d.ts +0 -7
- package/components/core/ui-ordinal-suffix.pipe.d.ts +0 -7
- package/components/core/ui-translate.pipe.d.ts +0 -32
- package/components/datepicker/date-adapter.d.ts +0 -34
- package/components/datepicker/datepicker.component.d.ts +0 -235
- package/components/datepicker/datepicker.component.module.d.ts +0 -17
- package/components/datepicker/datepicker.service.d.ts +0 -8
- package/components/datepicker/no-date-format.directive.d.ts +0 -11
- package/components/datepicker/public-api.d.ts +0 -6
- package/components/deprecated-paginator/deprecated-paginator.component.d.ts +0 -34
- package/components/deprecated-paginator/deprecated-paginator.component.module.d.ts +0 -9
- package/components/dialog/confirm-dialog/confirm-dialog.component.d.ts +0 -38
- package/components/dialog/confirm-dialog/confirm-dialog.component.module.d.ts +0 -12
- package/components/dialog/confirm-dialog/confirm-dialog.model.d.ts +0 -47
- package/components/dialog/dialog-custom/dialog-custom.component.d.ts +0 -22
- package/components/dialog/dialog-custom/dialog-custom.component.module.d.ts +0 -10
- package/components/dialog/dialog.component.d.ts +0 -163
- package/components/dialog/dialog.component.module.d.ts +0 -11
- package/components/dialog/dialog.model.d.ts +0 -12
- package/components/dialog/dialog.service.d.ts +0 -14
- package/components/dialog/public-api.d.ts +0 -10
- package/components/divider/divider.component.d.ts +0 -39
- package/components/divider/divider.component.module.d.ts +0 -9
- package/components/divider/divider.model.d.ts +0 -1
- package/components/divider/public-api.d.ts +0 -4
- package/components/donut-chart/donut-chart.component.d.ts +0 -22
- package/components/donut-chart/donut-chart.component.model.d.ts +0 -6
- package/components/donut-chart/donut-chart.component.module.d.ts +0 -8
- package/components/donut-chart/public-api.d.ts +0 -3
- package/components/dropdown/dropdown.component.d.ts +0 -214
- package/components/dropdown/dropdown.component.module.d.ts +0 -16
- package/components/dropdown/dropdown.model.d.ts +0 -6
- package/components/dropdown/public-api.d.ts +0 -4
- package/components/elevation-shadow/elevation-shadow.component.d.ts +0 -26
- package/components/elevation-shadow/elevation-shadow.component.module.d.ts +0 -8
- package/components/elevation-shadow/elevation-shadow.constant.d.ts +0 -8
- package/components/elevation-shadow/public-api.d.ts +0 -3
- package/components/empty-state/empty-state.component.d.ts +0 -199
- package/components/empty-state/empty-state.component.module.d.ts +0 -11
- package/components/empty-state/empty-state.model.d.ts +0 -3
- package/components/empty-state/public-api.d.ts +0 -4
- package/components/field/field.component.d.ts +0 -376
- package/components/field/field.component.module.d.ts +0 -17
- package/components/field/field.model.d.ts +0 -1
- package/components/field/public-api.d.ts +0 -4
- package/components/file-upload/drag-drop.directive.d.ts +0 -12
- package/components/file-upload/file-upload.component.d.ts +0 -142
- package/components/file-upload/file-upload.component.module.d.ts +0 -14
- package/components/file-upload/public-api.d.ts +0 -3
- package/components/filter-button/filter-button.component.d.ts +0 -140
- package/components/filter-button/filter-button.component.module.d.ts +0 -17
- package/components/filter-button/filter-button.model.d.ts +0 -13
- package/components/filter-button/public-api.d.ts +0 -4
- package/components/gaussian-chart/gaussian-chart.component.d.ts +0 -82
- package/components/gaussian-chart/gaussian-chart.module.d.ts +0 -12
- package/components/gaussian-chart/public-api.d.ts +0 -2
- package/components/icon/icon-svg-content.d.ts +0 -16
- package/components/icon/icon.component.d.ts +0 -72
- package/components/icon/icon.component.module.d.ts +0 -10
- package/components/icon/icon.config.d.ts +0 -10
- package/components/icon/icon.model.d.ts +0 -7
- package/components/icon/icons.service.d.ts +0 -8
- package/components/icon/public-api.d.ts +0 -6
- package/components/icon-label/icon-label.component.d.ts +0 -51
- package/components/icon-label/icon-label.component.module.d.ts +0 -9
- package/components/icon-label/public-api.d.ts +0 -2
- package/components/inline-field/inline-field.component.d.ts +0 -153
- package/components/inline-field/inline-field.component.module.d.ts +0 -13
- package/components/inline-field/inline-field.model.d.ts +0 -107
- package/components/inline-field/public-api.d.ts +0 -4
- package/components/logo/logo.component.d.ts +0 -66
- package/components/logo/logo.component.module.d.ts +0 -8
- package/components/logo/logo.model.d.ts +0 -29
- package/components/logo/public-api.d.ts +0 -4
- package/components/media-card/media-card.component.d.ts +0 -32
- package/components/media-card/public-api.d.ts +0 -1
- package/components/media-dialog/media-dialog.component.d.ts +0 -28
- package/components/media-dialog/media-dialog.model.d.ts +0 -16
- package/components/media-dialog/public-api.d.ts +0 -2
- package/components/multi-input/multi-input.component.d.ts +0 -158
- package/components/multi-input/multi-input.component.module.d.ts +0 -17
- package/components/multi-input/multi-input.model.d.ts +0 -4
- package/components/multi-input/public-api.d.ts +0 -5
- package/components/multi-input/required-multi-input.validator.d.ts +0 -3
- package/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.d.ts +0 -28
- package/components/navbar/navbar.component.d.ts +0 -133
- package/components/navbar/navbar.component.module.d.ts +0 -21
- package/components/navbar/navbar.model.d.ts +0 -21
- package/components/navbar/public-api.d.ts +0 -5
- package/components/overflow-menu/overflow-menu.component.d.ts +0 -117
- package/components/overflow-menu/overflow-menu.component.module.d.ts +0 -14
- package/components/overflow-menu/overflow-menu.model.d.ts +0 -32
- package/components/overflow-menu/public-api.d.ts +0 -4
- package/components/page-header/page-header.component.d.ts +0 -38
- package/components/page-header/page-header.component.module.d.ts +0 -10
- package/components/page-header/public-api.d.ts +0 -3
- package/components/paginator/paginator.component.d.ts +0 -58
- package/components/paginator/paginator.component.module.d.ts +0 -9
- package/components/paginator/public-api.d.ts +0 -3
- package/components/password-criteria/password.component.d.ts +0 -44
- package/components/password-criteria/password.component.module.d.ts +0 -13
- package/components/password-criteria/public-api.d.ts +0 -3
- package/components/password-strength/password-strength.component.d.ts +0 -45
- package/components/password-strength/password-strength.component.module.d.ts +0 -11
- package/components/password-strength/public-api.d.ts +0 -3
- package/components/phone-input/join-strings.pipe.d.ts +0 -7
- package/components/phone-input/phone-input.component.d.ts +0 -145
- package/components/phone-input/phone-input.component.module.d.ts +0 -19
- package/components/phone-input/phone-input.model.d.ts +0 -8
- package/components/phone-input/public-api.d.ts +0 -5
- package/components/popover/popover.component.d.ts +0 -9
- package/components/popover/popover.directive.d.ts +0 -31
- package/components/popover/public-api.d.ts +0 -1
- package/components/progress-bar/progress-bar.component.d.ts +0 -73
- package/components/progress-bar/progress-bar.component.module.d.ts +0 -10
- package/components/progress-bar/public-api.d.ts +0 -3
- package/components/prompt/prompt.component.d.ts +0 -62
- package/components/prompt/prompt.model.d.ts +0 -9
- package/components/prompt/prompt.module.d.ts +0 -20
- package/components/prompt/public-api.d.ts +0 -4
- package/components/radial-progress/public-api.d.ts +0 -4
- package/components/radial-progress/radial-progress.component.d.ts +0 -75
- package/components/radial-progress/radial-progress.component.module.d.ts +0 -10
- package/components/radial-progress/radial-progress.model.d.ts +0 -10
- package/components/radio-button/public-api.d.ts +0 -4
- package/components/radio-button/radio-button.component.d.ts +0 -189
- package/components/radio-button/radio-button.component.module.d.ts +0 -15
- package/components/radio-button/radio-button.model.d.ts +0 -4
- package/components/rating/half-star.pipe.d.ts +0 -14
- package/components/rating/public-api.d.ts +0 -3
- package/components/rating/rating.component.d.ts +0 -71
- package/components/rating/rating.component.module.d.ts +0 -10
- package/components/scale/public-api.d.ts +0 -3
- package/components/scale/scale.component.d.ts +0 -54
- package/components/scale/scale.component.module.d.ts +0 -8
- package/components/scale-table/public-api.d.ts +0 -3
- package/components/scale-table/scale-table.component.d.ts +0 -39
- package/components/scale-table/scale-table.model.d.ts +0 -5
- package/components/segmented-bar/public-api.d.ts +0 -4
- package/components/segmented-bar/segmented-bar.component.d.ts +0 -64
- package/components/segmented-bar/segmented-bar.component.module.d.ts +0 -12
- package/components/segmented-bar/segmented-bar.model.d.ts +0 -12
- package/components/segmented-button/public-api.d.ts +0 -4
- package/components/segmented-button/segmented-button.component.d.ts +0 -55
- package/components/segmented-button/segmented-button.component.module.d.ts +0 -11
- package/components/segmented-button/segmented-button.model.d.ts +0 -8
- package/components/selectable-card/public-api.d.ts +0 -2
- package/components/selectable-card/selectable-card.component.d.ts +0 -38
- package/components/selectable-card/selectable-card.component.module.d.ts +0 -10
- package/components/side-panel/public-api.d.ts +0 -5
- package/components/side-panel/side-panel-data-injection-token.d.ts +0 -2
- package/components/side-panel/side-panel.animations.d.ts +0 -3
- package/components/side-panel/side-panel.component.d.ts +0 -22
- package/components/side-panel/side-panel.model.d.ts +0 -46
- package/components/side-panel/side-panel.service.d.ts +0 -22
- package/components/side-sheet/public-api.d.ts +0 -4
- package/components/side-sheet/side-sheet.component.d.ts +0 -43
- package/components/side-sheet/side-sheet.component.module.d.ts +0 -14
- package/components/side-sheet/side-sheet.model.d.ts +0 -10
- package/components/side-sheet/side-sheet.service.d.ts +0 -14
- package/components/skeleton/public-api.d.ts +0 -3
- package/components/skeleton/skeleton.component.d.ts +0 -27
- package/components/skeleton/skeleton.model.d.ts +0 -2
- package/components/slider/public-api.d.ts +0 -4
- package/components/slider/slider.component.d.ts +0 -128
- package/components/slider/slider.component.module.d.ts +0 -7
- package/components/slider/slider.model.d.ts +0 -5
- package/components/snackbar/public-api.d.ts +0 -5
- package/components/snackbar/snackbar.component.d.ts +0 -126
- package/components/snackbar/snackbar.component.module.d.ts +0 -13
- package/components/snackbar/snackbar.model.d.ts +0 -7
- package/components/snackbar/snackbar.service.d.ts +0 -16
- package/components/spider-chart/public-api.d.ts +0 -3
- package/components/spider-chart/spider-chart.component.d.ts +0 -90
- package/components/spider-chart/spider-chart.model.d.ts +0 -12
- package/components/spider-chart/spider-chart.module.d.ts +0 -12
- package/components/spinner/public-api.d.ts +0 -4
- package/components/spinner/spinner.component.d.ts +0 -59
- package/components/spinner/spinner.model.d.ts +0 -1
- package/components/spinner/spinner.module.d.ts +0 -10
- package/components/stepper/public-api.d.ts +0 -7
- package/components/stepper/step-line-element.directive.d.ts +0 -17
- package/components/stepper/step.component.d.ts +0 -184
- package/components/stepper/step.component.module.d.ts +0 -11
- package/components/stepper/stepper.component.d.ts +0 -102
- package/components/stepper/stepper.component.module.d.ts +0 -15
- package/components/stepper/stepper.model.d.ts +0 -23
- package/components/table/public-api.d.ts +0 -6
- package/components/table/sentence-case.pipe.d.ts +0 -7
- package/components/table/table.component.d.ts +0 -117
- package/components/table/table.component.module.d.ts +0 -17
- package/components/table/table.model.d.ts +0 -104
- package/components/table/table.utils.d.ts +0 -6
- package/components/tabs/public-api.d.ts +0 -5
- package/components/tabs/tab.directive.d.ts +0 -28
- package/components/tabs/tabs.component.d.ts +0 -79
- package/components/tabs/tabs.component.module.d.ts +0 -13
- package/components/tabs/tabs.model.d.ts +0 -26
- package/components/tag/public-api.d.ts +0 -4
- package/components/tag/tag.component.d.ts +0 -145
- package/components/tag/tag.component.module.d.ts +0 -14
- package/components/tag/tag.model.d.ts +0 -1
- package/components/toggle/public-api.d.ts +0 -3
- package/components/toggle/toggle.component.d.ts +0 -113
- package/components/toggle/toggle.component.module.d.ts +0 -13
- package/components/toggle/toggle.model.d.ts +0 -1
- package/components/tooltip/public-api.d.ts +0 -5
- package/components/tooltip/tooltip-template.directive.d.ts +0 -27
- package/components/tooltip/tooltip.component.d.ts +0 -64
- package/components/tooltip/tooltip.component.module.d.ts +0 -11
- package/components/tooltip/tooltip.model.d.ts +0 -8
- package/components/universal-skills/public-api.d.ts +0 -6
- package/components/universal-skills/spider-charts/universal-skills-spider-charts.component.d.ts +0 -47
- package/components/universal-skills/spider-charts/universal-skills-spider-charts.component.module.d.ts +0 -14
- package/components/universal-skills/universal-skills-report.component.d.ts +0 -33
- package/components/universal-skills/universal-skills-report.component.module.d.ts +0 -12
- package/components/universal-skills/universal-skills-report.model.d.ts +0 -44
- package/components/universal-skills/universal-skills.service.d.ts +0 -13
- package/components/validation-error/public-api.d.ts +0 -3
- package/components/validation-error/validation-error.component.d.ts +0 -22
- package/components/validation-error/validation-error.model.d.ts +0 -1
- package/components/validation-error/validation-error.module.d.ts +0 -10
- package/components/write-with-ai/llm.service.d.ts +0 -22
- package/components/write-with-ai/public-api.d.ts +0 -4
- package/components/write-with-ai/write-with-ai.component.d.ts +0 -79
- package/components/write-with-ai/write-with-ai.model.d.ts +0 -24
- package/components/write-with-ai/write-with-ai.module.d.ts +0 -7
- package/public-api.d.ts +0 -81
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { HostBinding, Input, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@testgorilla/tgo-ui/components/icon';
|
|
3
|
+
import * as i1 from '@testgorilla/tgo-ui/components/icon';
|
|
6
4
|
import { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i3 from '@testgorilla/tgo-ui/components/core';
|
|
8
8
|
import { UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';
|
|
9
9
|
|
|
@@ -36,12 +36,12 @@ class ValidationErrorComponent {
|
|
|
36
36
|
return 0;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: ValidationErrorComponent, isStandalone: false, selector: "ui-validation-error", inputs: { ngControl: "ngControl", touchedOn: "touchedOn", errorMessage: "errorMessage", label: "label", applicationTheme: "applicationTheme" }, host: { properties: { "attr.theme": "this.applicationTheme" } }, ngImport: i0, template: "@if (ngControl?.hasError('maxlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MAX_LENGTH' | uiTranslate: { maxlength: getErrorValue('maxlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('minlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MIN_LENGTH' | uiTranslate: { maxlength: getErrorValue('minlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('min')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MIN' | uiTranslate: { min: getErrorValue('min') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('max')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MAX' | uiTranslate: { max: getErrorValue('max') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('required') && (touchedOn ? ngControl?.touched : true)) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + (label ? 'REQUIRED_FIELD' : 'REQUIRED') | uiTranslate: { label } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('email')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'EMAIL_INCORRECT' | uiTranslate | async }}</span>\n </div>\n}\n\n@if (errorMessage) {\n <div class=\"custom-errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ errorMessage }}</span>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1.IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color", "filled", "toggleIconStyle", "applicationTheme", "useFullIconName"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.UiTranslatePipe, name: "uiTranslate" }] }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
|
-
args: [{ selector: 'ui-validation-error', standalone: false, template: "
|
|
44
|
+
args: [{ selector: 'ui-validation-error', standalone: false, template: "@if (ngControl?.hasError('maxlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MAX_LENGTH' | uiTranslate: { maxlength: getErrorValue('maxlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('minlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MIN_LENGTH' | uiTranslate: { maxlength: getErrorValue('minlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('min')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MIN' | uiTranslate: { min: getErrorValue('min') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('max')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MAX' | uiTranslate: { max: getErrorValue('max') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('required') && (touchedOn ? ngControl?.touched : true)) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + (label ? 'REQUIRED_FIELD' : 'REQUIRED') | uiTranslate: { label } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('email')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'EMAIL_INCORRECT' | uiTranslate | async }}</span>\n </div>\n}\n\n@if (errorMessage) {\n <div class=\"custom-errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ errorMessage }}</span>\n </div>\n}\n" }]
|
|
45
45
|
}], propDecorators: { ngControl: [{
|
|
46
46
|
type: Input
|
|
47
47
|
}], touchedOn: [{
|
|
@@ -58,11 +58,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
58
58
|
}] } });
|
|
59
59
|
|
|
60
60
|
class ValidationErrorModule {
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
63
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
62
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorModule, declarations: [ValidationErrorComponent], imports: [CommonModule, IconComponentModule, UiTranslatePipe], exports: [ValidationErrorComponent] }); }
|
|
63
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorModule, imports: [CommonModule, IconComponentModule] }); }
|
|
64
64
|
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ValidationErrorModule, decorators: [{
|
|
66
66
|
type: NgModule,
|
|
67
67
|
args: [{
|
|
68
68
|
declarations: [ValidationErrorComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testgorilla-tgo-ui-components-validation-error.mjs","sources":["../../../components/validation-error/validation-error.component.ts","../../../components/validation-error/validation-error.component.html","../../../components/validation-error/validation-error.module.ts","../../../components/validation-error/testgorilla-tgo-ui-components-validation-error.ts"],"sourcesContent":["import { Component, HostBinding, Input } from '@angular/core';\nimport { errorType } from './validation-error.model';\nimport { NgControl } from '@angular/forms';\nimport { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';\n\n@Component({\n selector: 'ui-validation-error',\n templateUrl: './validation-error.component.html',\n styleUrls: ['./validation-error.component.scss'],\n standalone: false,\n})\nexport class ValidationErrorComponent {\n @Input() ngControl: NgControl;\n @Input() touchedOn = true;\n @Input() errorMessage = '';\n\n @Input() label: string | undefined | null;\n\n /**\n *\n * Defines the application theme\n *\n * @type {ApplicationTheme}\n * @memberof ValidationErrorComponent\n */\n @HostBinding('attr.theme')\n @Input()\n applicationTheme: ApplicationTheme = 'light';\n\n getErrorValue(type: errorType): number {\n const ngControlErrors: any = this.ngControl.errors;\n switch (type) {\n case 'maxlength':\n return ngControlErrors.maxlength.requiredLength;\n case 'minlength':\n return ngControlErrors.minlength.requiredLength;\n case 'max':\n return ngControlErrors.max.max;\n case 'min':\n return ngControlErrors.min.min;\n default:\n return 0;\n }\n }\n\n translationContextErrors = 'ERRORS.';\n}\n","
|
|
1
|
+
{"version":3,"file":"testgorilla-tgo-ui-components-validation-error.mjs","sources":["../../../components/validation-error/validation-error.component.ts","../../../components/validation-error/validation-error.component.html","../../../components/validation-error/validation-error.module.ts","../../../components/validation-error/testgorilla-tgo-ui-components-validation-error.ts"],"sourcesContent":["import { Component, HostBinding, Input } from '@angular/core';\nimport { errorType } from './validation-error.model';\nimport { NgControl } from '@angular/forms';\nimport { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';\n\n@Component({\n selector: 'ui-validation-error',\n templateUrl: './validation-error.component.html',\n styleUrls: ['./validation-error.component.scss'],\n standalone: false,\n})\nexport class ValidationErrorComponent {\n @Input() ngControl: NgControl;\n @Input() touchedOn = true;\n @Input() errorMessage = '';\n\n @Input() label: string | undefined | null;\n\n /**\n *\n * Defines the application theme\n *\n * @type {ApplicationTheme}\n * @memberof ValidationErrorComponent\n */\n @HostBinding('attr.theme')\n @Input()\n applicationTheme: ApplicationTheme = 'light';\n\n getErrorValue(type: errorType): number {\n const ngControlErrors: any = this.ngControl.errors;\n switch (type) {\n case 'maxlength':\n return ngControlErrors.maxlength.requiredLength;\n case 'minlength':\n return ngControlErrors.minlength.requiredLength;\n case 'max':\n return ngControlErrors.max.max;\n case 'min':\n return ngControlErrors.min.min;\n default:\n return 0;\n }\n }\n\n translationContextErrors = 'ERRORS.';\n}\n","@if (ngControl?.hasError('maxlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MAX_LENGTH' | uiTranslate: { maxlength: getErrorValue('maxlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('minlength')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + 'MIN_LENGTH' | uiTranslate: { maxlength: getErrorValue('minlength') } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('min')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MIN' | uiTranslate: { min: getErrorValue('min') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('max')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'MAX' | uiTranslate: { max: getErrorValue('max') } | async }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('required') && (touchedOn ? ngControl?.touched : true)) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{\n translationContextErrors + (label ? 'REQUIRED_FIELD' : 'REQUIRED') | uiTranslate: { label } | async\n }}</span>\n </div>\n}\n\n@if (ngControl?.hasError('email')) {\n <div class=\"errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ translationContextErrors + 'EMAIL_INCORRECT' | uiTranslate | async }}</span>\n </div>\n}\n\n@if (errorMessage) {\n <div class=\"custom-errors\">\n <ui-icon [applicationTheme]=\"applicationTheme\" [name]=\"'Error'\"></ui-icon>\n <span>{{ errorMessage }}</span>\n </div>\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ValidationErrorComponent } from './validation-error.component';\nimport { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';\nimport { UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';\n\n@NgModule({\n declarations: [ValidationErrorComponent],\n exports: [ValidationErrorComponent],\n imports: [CommonModule, IconComponentModule, UiTranslatePipe],\n})\nexport class ValidationErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAWa,wBAAwB,CAAA;AANrC,IAAA,WAAA,GAAA;QAQW,IAAA,CAAA,SAAS,GAAG,IAAI;QAChB,IAAA,CAAA,YAAY,GAAG,EAAE;AAI1B;;;;;;AAMG;QAGH,IAAA,CAAA,gBAAgB,GAAqB,OAAO;QAkB5C,IAAA,CAAA,wBAAwB,GAAG,SAAS;AACrC,IAAA;AAjBC,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,MAAM,eAAe,GAAQ,IAAI,CAAC,SAAS,CAAC,MAAM;QAClD,QAAQ,IAAI;AACV,YAAA,KAAK,WAAW;AACd,gBAAA,OAAO,eAAe,CAAC,SAAS,CAAC,cAAc;AACjD,YAAA,KAAK,WAAW;AACd,gBAAA,OAAO,eAAe,CAAC,SAAS,CAAC,cAAc;AACjD,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,eAAe,CAAC,GAAG,CAAC,GAAG;AAChC,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,eAAe,CAAC,GAAG,CAAC,GAAG;AAChC,YAAA;AACE,gBA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B,EAAE,eAAe,CAAA,EAAA,OAAA,EAAA,CADlD,wBAAwB,CAAA,EAAA,CAAA,CAAA;gHAGvB,qBAAqB,EAAA,OAAA,EAAA,CAFtB,YAAY,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4FAEhC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,eAAe,CAAC;AAC9D,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -128,33 +128,33 @@ class WriteWithAiLlmService {
|
|
|
128
128
|
parts.push('Respond with only the requested content. Do not include explanations or preamble.');
|
|
129
129
|
return parts.join('\n\n');
|
|
130
130
|
}
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiLlmService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
132
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiLlmService, providedIn: 'root' }); }
|
|
133
133
|
}
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiLlmService, decorators: [{
|
|
135
135
|
type: Injectable,
|
|
136
136
|
args: [{ providedIn: 'root' }]
|
|
137
137
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
138
138
|
|
|
139
139
|
class WriteWithAiComponent {
|
|
140
140
|
constructor() {
|
|
141
|
-
this.value = input('');
|
|
142
|
-
this.standalone = input(false);
|
|
143
|
-
this.defaultOpen = input(false);
|
|
144
|
-
this.fieldLabel = input('');
|
|
145
|
-
this.header = input('');
|
|
146
|
-
this.placeholder = input('');
|
|
147
|
-
this.promptValue = input('');
|
|
148
|
-
this.tags = input([]);
|
|
149
|
-
this.status = input('idle');
|
|
150
|
-
this.subheader = input(undefined);
|
|
151
|
-
this.llmConfig = input(undefined);
|
|
141
|
+
this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
142
|
+
this.standalone = input(false, ...(ngDevMode ? [{ debugName: "standalone" }] : []));
|
|
143
|
+
this.defaultOpen = input(false, ...(ngDevMode ? [{ debugName: "defaultOpen" }] : []));
|
|
144
|
+
this.fieldLabel = input('', ...(ngDevMode ? [{ debugName: "fieldLabel" }] : []));
|
|
145
|
+
this.header = input('', ...(ngDevMode ? [{ debugName: "header" }] : []));
|
|
146
|
+
this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
147
|
+
this.promptValue = input('', ...(ngDevMode ? [{ debugName: "promptValue" }] : []));
|
|
148
|
+
this.tags = input([], ...(ngDevMode ? [{ debugName: "tags" }] : []));
|
|
149
|
+
this.status = input('idle', ...(ngDevMode ? [{ debugName: "status" }] : []));
|
|
150
|
+
this.subheader = input(undefined, ...(ngDevMode ? [{ debugName: "subheader" }] : []));
|
|
151
|
+
this.llmConfig = input(undefined, ...(ngDevMode ? [{ debugName: "llmConfig" }] : []));
|
|
152
152
|
/** Layout: make the inner field stretch to fill its container height. */
|
|
153
|
-
this.fullHeight = input(false);
|
|
153
|
+
this.fullHeight = input(false, ...(ngDevMode ? [{ debugName: "fullHeight" }] : []));
|
|
154
154
|
/** Layout: render the inner field without a visible border. */
|
|
155
|
-
this.borderless = input(false);
|
|
155
|
+
this.borderless = input(false, ...(ngDevMode ? [{ debugName: "borderless" }] : []));
|
|
156
156
|
/** Opaque host metadata emitted with promptSubmit for backend integrations. */
|
|
157
|
-
this.metadata = input({});
|
|
157
|
+
this.metadata = input({}, ...(ngDevMode ? [{ debugName: "metadata" }] : []));
|
|
158
158
|
this.valueChange = output();
|
|
159
159
|
this.promptChange = output();
|
|
160
160
|
this.promptSubmit = output();
|
|
@@ -164,13 +164,13 @@ class WriteWithAiComponent {
|
|
|
164
164
|
this.destroyRef = inject(DestroyRef);
|
|
165
165
|
this.llmService = inject(WriteWithAiLlmService);
|
|
166
166
|
this.uiTranslate = inject(UiTranslatePipe);
|
|
167
|
-
this.promptModel = signal('');
|
|
168
|
-
this.isPanelManuallyOpen = signal(false);
|
|
169
|
-
this.internalStatus = signal('idle');
|
|
170
|
-
this.internalValue = signal('');
|
|
167
|
+
this.promptModel = signal('', ...(ngDevMode ? [{ debugName: "promptModel" }] : []));
|
|
168
|
+
this.isPanelManuallyOpen = signal(false, ...(ngDevMode ? [{ debugName: "isPanelManuallyOpen" }] : []));
|
|
169
|
+
this.internalStatus = signal('idle', ...(ngDevMode ? [{ debugName: "internalStatus" }] : []));
|
|
170
|
+
this.internalValue = signal('', ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
171
171
|
this.cancelRequest$ = new Subject();
|
|
172
172
|
/** ControlValueAccessor: whether the form control is disabled. */
|
|
173
|
-
this.cvaDisabled = signal(false);
|
|
173
|
+
this.cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "cvaDisabled" }] : []));
|
|
174
174
|
/** ControlValueAccessor callbacks. */
|
|
175
175
|
this.onChange = () => { };
|
|
176
176
|
this.onTouched = () => { };
|
|
@@ -181,11 +181,11 @@ class WriteWithAiComponent {
|
|
|
181
181
|
this.uiTranslate.transform(`${this.translationContext}MAKE_CHANGES`),
|
|
182
182
|
this.uiTranslate.transform(`${this.translationContext}TRY_AGAIN`),
|
|
183
183
|
]).pipe(map(([cancel, accept, makeChanges, tryAgain]) => ({ cancel, accept, makeChanges, tryAgain }))), { initialValue: { cancel: '', accept: '', makeChanges: '', tryAgain: '' } });
|
|
184
|
-
this.isDefaultMode = computed(() => this.llmConfig()?.default === true);
|
|
185
|
-
this.effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()));
|
|
186
|
-
this.effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()));
|
|
187
|
-
this.isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen());
|
|
188
|
-
this.promptTags = computed(() => this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' })));
|
|
184
|
+
this.isDefaultMode = computed(() => this.llmConfig()?.default === true, ...(ngDevMode ? [{ debugName: "isDefaultMode" }] : []));
|
|
185
|
+
this.effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()), ...(ngDevMode ? [{ debugName: "effectiveStatus" }] : []));
|
|
186
|
+
this.effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()), ...(ngDevMode ? [{ debugName: "effectiveValue" }] : []));
|
|
187
|
+
this.isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen(), ...(ngDevMode ? [{ debugName: "isPanelVisible" }] : []));
|
|
188
|
+
this.promptTags = computed(() => this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' })), ...(ngDevMode ? [{ debugName: "promptTags" }] : []));
|
|
189
189
|
this.statusConfig = computed(() => {
|
|
190
190
|
const l = this.labels();
|
|
191
191
|
switch (this.effectiveStatus()) {
|
|
@@ -216,8 +216,8 @@ class WriteWithAiComponent {
|
|
|
216
216
|
default:
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
|
-
});
|
|
220
|
-
this.promptModelData = computed(() => ({ text: this.promptModel(), files: [] }));
|
|
219
|
+
}, ...(ngDevMode ? [{ debugName: "statusConfig" }] : []));
|
|
220
|
+
this.promptModelData = computed(() => ({ text: this.promptModel(), files: [] }), ...(ngDevMode ? [{ debugName: "promptModelData" }] : []));
|
|
221
221
|
effect(() => {
|
|
222
222
|
const promptValue = this.promptValue();
|
|
223
223
|
const isDefault = this.isDefaultMode();
|
|
@@ -353,17 +353,17 @@ class WriteWithAiComponent {
|
|
|
353
353
|
}
|
|
354
354
|
this.requestRefine.emit();
|
|
355
355
|
}
|
|
356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
357
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
357
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: WriteWithAiComponent, isStandalone: true, selector: "ui-write-with-ai", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, standalone: { classPropertyName: "standalone", publicName: "standalone", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, fieldLabel: { classPropertyName: "fieldLabel", publicName: "fieldLabel", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, promptValue: { classPropertyName: "promptValue", publicName: "promptValue", isSignal: true, isRequired: false, transformFunction: null }, tags: { classPropertyName: "tags", publicName: "tags", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, llmConfig: { classPropertyName: "llmConfig", publicName: "llmConfig", isSignal: true, isRequired: false, transformFunction: null }, fullHeight: { classPropertyName: "fullHeight", publicName: "fullHeight", isSignal: true, isRequired: false, transformFunction: null }, borderless: { classPropertyName: "borderless", publicName: "borderless", isSignal: true, isRequired: false, transformFunction: null }, metadata: { classPropertyName: "metadata", publicName: "metadata", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", promptChange: "promptChange", promptSubmit: "promptSubmit", cancelPending: "cancelPending", acceptResult: "acceptResult", requestRefine: "requestRefine" }, host: { styleAttribute: "display: block" }, providers: [
|
|
358
358
|
UiTranslatePipe,
|
|
359
359
|
{
|
|
360
360
|
provide: NG_VALUE_ACCESSOR,
|
|
361
361
|
useExisting: forwardRef(() => WriteWithAiComponent),
|
|
362
362
|
multi: true,
|
|
363
363
|
},
|
|
364
|
-
], ngImport: i0, template: "<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.write-with-ai{display:flex;flex-direction:column;gap:8px;padding-top:8px;max-width:100%;overflow:hidden}.write-with-ai--full-height{height:100%}.write-with-ai--full-height .write-with-ai__host{flex:1}.write-with-ai__host{position:relative;display:flex;flex-direction:column}.write-with-ai__cta{position:absolute;right:8px;bottom:8px;z-index:1;background-color:#fff;border-radius:100px}.write-with-ai__panel{border:none;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px;background-color:#f4f4f4}.write-with-ai__panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.write-with-ai__panel-heading{display:flex;flex-direction:column;gap:8px}.write-with-ai__title-row{display:flex;align-items:center;gap:8px}.write-with-ai__title{margin:0}.write-with-ai__subheader{margin:0;font-size:14px;line-height:22px;font-weight:400;color:#242424}.write-with-ai__quick-actions{display:flex;gap:8px;flex-wrap:wrap}.write-with-ai__prompt{display:flex;flex-direction:column;gap:4px}.write-with-ai__status-actions{display:flex;gap:8px;justify-content:flex-end}.write-with-ai__caveat{font-size:12px}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.5}}:host ::ng-deep .write-with-ai__host textarea{padding-bottom:48px!important}\n"], dependencies: [{ kind: "
|
|
364
|
+
], ngImport: i0, template: "<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.write-with-ai{display:flex;flex-direction:column;gap:8px;padding-top:8px;max-width:100%;overflow:hidden}.write-with-ai--full-height{height:100%}.write-with-ai--full-height .write-with-ai__host{flex:1}.write-with-ai__host{position:relative;display:flex;flex-direction:column}.write-with-ai__cta{position:absolute;right:8px;bottom:8px;z-index:1;background-color:#fff;border-radius:100px}.write-with-ai__panel{border:none;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px;background-color:#f4f4f4}.write-with-ai__panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.write-with-ai__panel-heading{display:flex;flex-direction:column;gap:8px}.write-with-ai__title-row{display:flex;align-items:center;gap:8px}.write-with-ai__title{margin:0}.write-with-ai__subheader{margin:0;font-size:14px;line-height:22px;font-weight:400;color:#242424}.write-with-ai__quick-actions{display:flex;gap:8px;flex-wrap:wrap}.write-with-ai__prompt{display:flex;flex-direction:column;gap:4px}.write-with-ai__status-actions{display:flex;gap:8px;justify-content:flex-end}.write-with-ai__caveat{font-size:12px}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.5}}:host ::ng-deep .write-with-ai__host textarea{padding-bottom:48px!important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: FieldComponentModule }, { kind: "component", type: i2.FieldComponent, selector: "ui-field", inputs: ["fullWidth", "fullHeight", "label", "labelHtml", "labelIcon", "fieldName", "placeholder", "id", "value", "badgeVariant", "errors", "disabled", "required", "readOnly", "hintMessage", "type", "updateOnBlur", "allowOnlyDigits", "isAutocompleteOff", "allowNegative", "showBottomContent", "applicationTheme", "ariaLabel", "loading", "isValid", "maxCharacters", "trimOnBlur", "trimOnSubmit", "maxRows", "hasTextAreaCounter", "hideBuiltInErrors", "hideLabelInErrors", "max", "min", "textareaHeight", "borderless", "autosizableTextarea", "isAIVariant", "ariaLabelledby", "ariaDescribedby", "hasError"], outputs: ["validateEvent", "fieldBlur"] }, { kind: "ngmodule", type: ButtonComponentModule }, { kind: "component", type: i3.ButtonComponent, selector: "ui-button", inputs: ["size", "variant", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value", "tooltip", "isPremium", "type", "companyColor", "buttonBadgeConfig", "applicationTheme", "disabledScaleOnClick", "ariaLabel", "ariaRequired", "ariaLabelledby", "ariaDescribedby", "preventDefault", "hasBackground", "tooltipPosition", "role", "iconFilled"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "ngmodule", type: IconComponentModule }, { kind: "component", type: i4.IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color", "filled", "toggleIconStyle", "applicationTheme", "useFullIconName"] }, { kind: "ngmodule", type: PromptModule }, { kind: "component", type: i5.PromptComponent, selector: "ui-prompt", inputs: ["tags", "maxCharacters", "supportedFileTypes", "autoClear", "showSendButton", "enableFileUpload", "placeholder", "errorMessage"], outputs: ["promptData"] }, { kind: "ngmodule", type: AiCaveatComponentModule }, { kind: "component", type: i6.AiCaveatComponent, selector: "ui-ai-caveat", inputs: ["applicationTheme"] }, { kind: "ngmodule", type: AlertBannerComponentModule }, { kind: "component", type: i7.AlertBannerComponent, selector: "ui-alert-banner", inputs: ["alertType", "alertVariant", "message", "includeDismissButton", "shadow", "linkText", "linkUrl", "linkTarget", "actions", "applicationTheme", "isFullWidth", "closeButtonTooltip", "hasIcon", "isLoading", "fixed", "ariaDescribedby", "secondaryAlerts"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: UiTranslatePipe, name: "uiTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
365
365
|
}
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponent, decorators: [{
|
|
367
367
|
type: Component,
|
|
368
368
|
args: [{ selector: 'ui-write-with-ai', changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'display: block' }, providers: [
|
|
369
369
|
UiTranslatePipe,
|
|
@@ -383,14 +383,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
383
383
|
AlertBannerComponentModule,
|
|
384
384
|
UiTranslatePipe,
|
|
385
385
|
], template: "<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.write-with-ai{display:flex;flex-direction:column;gap:8px;padding-top:8px;max-width:100%;overflow:hidden}.write-with-ai--full-height{height:100%}.write-with-ai--full-height .write-with-ai__host{flex:1}.write-with-ai__host{position:relative;display:flex;flex-direction:column}.write-with-ai__cta{position:absolute;right:8px;bottom:8px;z-index:1;background-color:#fff;border-radius:100px}.write-with-ai__panel{border:none;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px;background-color:#f4f4f4}.write-with-ai__panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.write-with-ai__panel-heading{display:flex;flex-direction:column;gap:8px}.write-with-ai__title-row{display:flex;align-items:center;gap:8px}.write-with-ai__title{margin:0}.write-with-ai__subheader{margin:0;font-size:14px;line-height:22px;font-weight:400;color:#242424}.write-with-ai__quick-actions{display:flex;gap:8px;flex-wrap:wrap}.write-with-ai__prompt{display:flex;flex-direction:column;gap:4px}.write-with-ai__status-actions{display:flex;gap:8px;justify-content:flex-end}.write-with-ai__caveat{font-size:12px}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.5}}:host ::ng-deep .write-with-ai__host textarea{padding-bottom:48px!important}\n"] }]
|
|
386
|
-
}], ctorParameters: () => [] });
|
|
386
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], standalone: [{ type: i0.Input, args: [{ isSignal: true, alias: "standalone", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], fieldLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "fieldLabel", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], promptValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "promptValue", required: false }] }], tags: [{ type: i0.Input, args: [{ isSignal: true, alias: "tags", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], subheader: [{ type: i0.Input, args: [{ isSignal: true, alias: "subheader", required: false }] }], llmConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "llmConfig", required: false }] }], fullHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullHeight", required: false }] }], borderless: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderless", required: false }] }], metadata: [{ type: i0.Input, args: [{ isSignal: true, alias: "metadata", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], promptChange: [{ type: i0.Output, args: ["promptChange"] }], promptSubmit: [{ type: i0.Output, args: ["promptSubmit"] }], cancelPending: [{ type: i0.Output, args: ["cancelPending"] }], acceptResult: [{ type: i0.Output, args: ["acceptResult"] }], requestRefine: [{ type: i0.Output, args: ["requestRefine"] }] } });
|
|
387
387
|
|
|
388
388
|
class WriteWithAiComponentModule {
|
|
389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
390
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
391
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
390
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponentModule, imports: [WriteWithAiComponent], exports: [WriteWithAiComponent] }); }
|
|
391
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponentModule, imports: [WriteWithAiComponent] }); }
|
|
392
392
|
}
|
|
393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: WriteWithAiComponentModule, decorators: [{
|
|
394
394
|
type: NgModule,
|
|
395
395
|
args: [{
|
|
396
396
|
imports: [WriteWithAiComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testgorilla-tgo-ui-components-write-with-ai.mjs","sources":["../../../components/write-with-ai/llm.service.ts","../../../components/write-with-ai/write-with-ai.component.ts","../../../components/write-with-ai/write-with-ai.component.html","../../../components/write-with-ai/write-with-ai.module.ts","../../../components/write-with-ai/testgorilla-tgo-ui-components-write-with-ai.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Observable, of, delay, map } from 'rxjs';\nimport { WriteWithAiLlmConfig } from './write-with-ai.model';\n\nexport interface LlmRequest {\n sourceText: string;\n prompt: string;\n context?: string;\n}\n\ninterface OpenAiChatResponse {\n choices: { message: { content: string } }[];\n}\n\ninterface GeminiResponse {\n candidates: { content: { parts: { text: string }[] } }[];\n}\n\nconst OPENAI_DEFAULT_ENDPOINT = 'https://api.openai.com/v1/chat/completions';\nconst OPENAI_DEFAULT_MODEL = 'gpt-5-mini';\nconst GEMINI_DEFAULT_MODEL = 'gemini-3.0-flash';\n\n@Injectable({ providedIn: 'root' })\nexport class WriteWithAiLlmService {\n constructor(private readonly http: HttpClient) {}\n\n generate(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n if (!config.apiKey) {\n return this.simulateResponse(request, config);\n }\n\n if (config.provider === 'gemini') {\n return this.callGemini(request, config);\n }\n\n return this.callOpenAi(request, config);\n }\n\n private resolveEndpoint(config: WriteWithAiLlmConfig): string {\n return config.endpoint ?? config.baseUrl ?? OPENAI_DEFAULT_ENDPOINT;\n }\n\n private callOpenAi(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const endpoint = this.resolveEndpoint(config);\n const model = config.model ?? OPENAI_DEFAULT_MODEL;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n model,\n messages: [\n { role: 'system', content: systemMessage },\n { role: 'user', content: request.prompt },\n ],\n };\n\n const headers = new HttpHeaders({\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${config.apiKey}`,\n });\n\n return this.http\n .post<OpenAiChatResponse>(endpoint, body, { headers })\n .pipe(map(res => res.choices[0]?.message?.content ?? ''));\n }\n\n private callGemini(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const model = config.model ?? GEMINI_DEFAULT_MODEL;\n const baseUrl =\n config.endpoint ??\n config.baseUrl ??\n `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent`;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n system_instruction: { parts: [{ text: systemMessage }] },\n contents: [{ role: 'user', parts: [{ text: request.prompt }] }],\n };\n\n const apiKey = config.apiKey;\n if (!apiKey) {\n return this.simulateResponse(request, config);\n }\n\n const headers = new HttpHeaders({ 'Content-Type': 'application/json' });\n const params = new HttpParams().set('key', apiKey);\n\n return this.http\n .post<GeminiResponse>(baseUrl, body, { headers, params })\n .pipe(map(res => res.candidates?.[0]?.content?.parts?.[0]?.text ?? ''));\n }\n\n private simulateResponse(request: LlmRequest, _config: WriteWithAiLlmConfig): Observable<string> {\n const source = request.sourceText?.trim();\n const prompt = request.prompt?.trim();\n\n let response: string;\n\n if (source && prompt) {\n const truncated = source.length > 200 ? `${source.substring(0, 200)}…` : source;\n response =\n `Based on the following text:\\n\\n\"${truncated}\"\\n\\n` +\n `Here is the result for \"${prompt}\":\\n\\n${this.generatePlaceholderContent(prompt, source)}`;\n } else if (prompt) {\n response = this.generatePlaceholderContent(prompt, '');\n } else {\n response = 'Please provide a prompt describing what you would like me to write.';\n }\n\n return of(response).pipe(delay(1200));\n }\n\n private generatePlaceholderContent(prompt: string, source: string): string {\n const lower = prompt.toLowerCase();\n\n if (lower.includes('shorter') || lower.includes('concise') || lower.includes('summarize')) {\n const sentences = source.split(/[.!?]+/).filter(s => s.trim());\n if (sentences.length > 1) {\n return `${sentences\n .slice(0, Math.ceil(sentences.length / 2))\n .join('. ')\n .trim()}.`;\n }\n return `${source.substring(0, Math.ceil(source.length * 0.6)).trim()}…`;\n }\n\n if (lower.includes('formal') || lower.includes('professional') || lower.includes('tone')) {\n return `Dear Recipient,\\n\\nI hope this message finds you well. ${source || 'I am writing to follow up on our recent discussion.'}\\n\\nPlease do not hesitate to reach out should you require further information.\\n\\nBest regards`;\n }\n\n if (lower.includes('email') || lower.includes('draft') || lower.includes('write')) {\n return `Subject: Follow-up\\n\\nHi there,\\n\\n${source || 'Thank you for your time. I wanted to reach out regarding the next steps.'}\\n\\nLooking forward to hearing from you.\\n\\nBest regards`;\n }\n\n return `[Simulated LLM response]\\n\\nPrompt: ${prompt}\\n\\nThis is a simulated response. To enable real LLM calls, provide an apiKey in the llmConfig input. The service supports OpenAI-compatible and Gemini endpoints.`;\n }\n\n private buildSystemMessage(sourceText: string, context?: string): string {\n const parts: string[] = [];\n\n if (context) {\n parts.push(context);\n }\n\n if (sourceText) {\n parts.push(`The user is working with the following source text:\\n\\n\"\"\"${sourceText}\"\"\"`);\n }\n\n parts.push('Respond with only the requested content. Do not include explanations or preamble.');\n\n return parts.join('\\n\\n');\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n OnInit,\n untracked,\n} from '@angular/core';\nimport { AsyncPipe } from '@angular/common';\nimport { FormsModule, NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { combineLatest, map, Subject, takeUntil } from 'rxjs';\nimport { PromptData, PromptTag, PromptModule } from '@testgorilla/tgo-ui/components/prompt';\nimport { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';\nimport { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';\nimport { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';\nimport { AiCaveatComponentModule } from '@testgorilla/tgo-ui/components/ai-caveat';\nimport { AlertBannerComponentModule, AlertBannerAction } from '@testgorilla/tgo-ui/components/alert-banner';\nimport { AlertBarType, UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';\nimport {\n WriteWithAiStatus,\n WriteWithAiTagOption,\n WriteWithAiLlmConfig,\n WriteWithAiSubmitEvent,\n} from './write-with-ai.model';\nimport { WriteWithAiLlmService } from './llm.service';\n\ninterface StatusConfig {\n variant: 'loading' | 'success' | 'error';\n alertType: AlertBarType;\n messageKey: string;\n actions: AlertBannerAction[];\n}\n\n@Component({\n selector: 'ui-write-with-ai',\n templateUrl: './write-with-ai.component.html',\n styleUrl: './write-with-ai.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { style: 'display: block' },\n providers: [\n UiTranslatePipe,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WriteWithAiComponent),\n multi: true,\n },\n ],\n imports: [\n AsyncPipe,\n FormsModule,\n FieldComponentModule,\n ButtonComponentModule,\n IconComponentModule,\n PromptModule,\n AiCaveatComponentModule,\n AlertBannerComponentModule,\n UiTranslatePipe,\n ],\n})\nexport class WriteWithAiComponent implements OnInit, ControlValueAccessor {\n readonly value = input('');\n readonly standalone = input(false);\n readonly defaultOpen = input(false);\n readonly fieldLabel = input('');\n readonly header = input('');\n readonly placeholder = input('');\n readonly promptValue = input('');\n readonly tags = input<WriteWithAiTagOption[]>([]);\n readonly status = input<WriteWithAiStatus>('idle');\n readonly subheader = input<string | undefined>(undefined);\n readonly llmConfig = input<WriteWithAiLlmConfig | undefined>(undefined);\n\n /** Layout: make the inner field stretch to fill its container height. */\n readonly fullHeight = input(false);\n\n /** Layout: render the inner field without a visible border. */\n readonly borderless = input(false);\n\n /** Opaque host metadata emitted with promptSubmit for backend integrations. */\n readonly metadata = input<Record<string, unknown>>({});\n\n readonly valueChange = output<string>();\n readonly promptChange = output<string>();\n readonly promptSubmit = output<WriteWithAiSubmitEvent>();\n readonly cancelPending = output<void>();\n readonly acceptResult = output<void>();\n readonly requestRefine = output<void>();\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly llmService = inject(WriteWithAiLlmService);\n private readonly uiTranslate = inject(UiTranslatePipe);\n private readonly promptModel = signal('');\n private readonly isPanelManuallyOpen = signal(false);\n private readonly internalStatus = signal<WriteWithAiStatus>('idle');\n private readonly internalValue = signal('');\n private readonly cancelRequest$ = new Subject<void>();\n\n /** ControlValueAccessor: whether the form control is disabled. */\n readonly cvaDisabled = signal(false);\n\n /** ControlValueAccessor callbacks. */\n private onChange: (value: string) => void = () => {};\n private onTouched: () => void = () => {};\n\n readonly translationContext = 'WRITE_WITH_AI.';\n\n private readonly labels = toSignal(\n combineLatest([\n this.uiTranslate.transform(`${this.translationContext}CANCEL`),\n this.uiTranslate.transform(`${this.translationContext}ACCEPT`),\n this.uiTranslate.transform(`${this.translationContext}MAKE_CHANGES`),\n this.uiTranslate.transform(`${this.translationContext}TRY_AGAIN`),\n ]).pipe(map(([cancel, accept, makeChanges, tryAgain]) => ({ cancel, accept, makeChanges, tryAgain }))),\n { initialValue: { cancel: '', accept: '', makeChanges: '', tryAgain: '' } }\n );\n\n readonly isDefaultMode = computed(() => this.llmConfig()?.default === true);\n\n readonly effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()));\n\n readonly effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()));\n\n readonly isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen());\n\n readonly promptTags = computed<PromptTag[]>(() =>\n this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' }))\n );\n\n readonly statusConfig = computed<StatusConfig | null>(() => {\n const l = this.labels();\n switch (this.effectiveStatus()) {\n case 'loading':\n return {\n variant: 'loading',\n alertType: 'info',\n messageKey: `${this.translationContext}WRITING`,\n actions: [{ label: l.cancel, onClick: () => this.handleCancel() }],\n };\n case 'success':\n return {\n variant: 'success',\n alertType: 'success',\n messageKey: `${this.translationContext}CONTENT_GENERATED`,\n actions: [\n { label: l.accept, onClick: () => this.handleAccept() },\n { label: l.makeChanges, onClick: () => this.handleRefine() },\n ],\n };\n case 'error':\n return {\n variant: 'error',\n alertType: 'error',\n messageKey: `${this.translationContext}ERROR_MESSAGE`,\n actions: [{ label: l.tryAgain, onClick: () => this.handleRefine() }],\n };\n default:\n return null;\n }\n });\n\n constructor() {\n effect(() => {\n const promptValue = this.promptValue();\n const isDefault = this.isDefaultMode();\n if (!isDefault) {\n untracked(() => this.promptModel.set(promptValue));\n }\n });\n\n effect(() => {\n const value = this.value();\n const isDefault = this.isDefaultMode();\n if (isDefault) {\n untracked(() => this.internalValue.set(value));\n }\n });\n }\n\n readonly promptModelData = computed<PromptData>(() => ({ text: this.promptModel(), files: [] }));\n\n handlePromptModelChange(value: PromptData | string): void {\n const text = typeof value === 'string' ? value : (value?.text ?? '');\n this.promptModel.set(text);\n this.promptChange.emit(text);\n }\n\n ngOnInit() {\n if (this.defaultOpen()) {\n this.isPanelManuallyOpen.set(true);\n }\n }\n\n togglePanel(): void {\n if (this.standalone()) {\n return;\n }\n this.isPanelManuallyOpen.update(current => !current);\n }\n\n handleValueInput(value: string): void {\n if (this.isDefaultMode()) {\n this.internalValue.set(value);\n }\n this.valueChange.emit(value);\n this.onChange(value);\n this.onTouched();\n }\n\n handlePromptSubmit(promptData?: PromptData | string): void {\n const prompt = typeof promptData === 'string' ? promptData : (promptData?.text ?? this.promptModel());\n this.promptModel.set(prompt);\n this.promptChange.emit(prompt);\n\n const submitEvent: WriteWithAiSubmitEvent = {\n prompt,\n content: this.effectiveValue(),\n metadata: this.metadata(),\n };\n\n if (this.isDefaultMode()) {\n this.executeDefaultFlow(prompt);\n }\n\n this.promptSubmit.emit(submitEvent);\n }\n\n handlePrimaryAction(): void {\n const status = this.effectiveStatus();\n if (status === 'loading') {\n this.handleCancel();\n } else if (status === 'success') {\n this.handleAccept();\n } else if (status === 'error') {\n this.handleRefine();\n }\n }\n\n handleSecondaryAction(): void {\n if (this.effectiveStatus() === 'success') {\n this.handleRefine();\n }\n }\n\n // --- ControlValueAccessor ---\n\n writeValue(value: string): void {\n const v = value ?? '';\n if (this.isDefaultMode()) {\n this.internalValue.set(v);\n }\n // For integration mode the host uses the [value] input directly,\n // but we still keep internal state in sync for CVA consumers.\n this.internalValue.set(v);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.cvaDisabled.set(isDisabled);\n }\n\n // --- Private helpers ---\n\n private executeDefaultFlow(prompt: string): void {\n const config = this.llmConfig();\n if (!config) {\n return;\n }\n\n this.cancelRequest$.next();\n this.internalStatus.set('loading');\n\n this.llmService\n .generate({ sourceText: this.effectiveValue(), prompt, context: config.context }, config)\n .pipe(takeUntil(this.cancelRequest$), takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: result => {\n this.internalValue.set(result);\n this.valueChange.emit(result);\n this.onChange(result);\n this.internalStatus.set('success');\n },\n error: () => {\n this.internalStatus.set('error');\n },\n });\n }\n\n private handleCancel(): void {\n if (this.isDefaultMode()) {\n this.cancelRequest$.next();\n this.internalStatus.set('idle');\n }\n this.cancelPending.emit();\n }\n\n private handleAccept(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n this.promptModel.set('');\n }\n if (!this.standalone()) {\n this.isPanelManuallyOpen.set(false);\n }\n this.acceptResult.emit();\n }\n\n private handleRefine(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n }\n this.requestRefine.emit();\n }\n}\n","<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { WriteWithAiComponent } from './write-with-ai.component';\n\n@NgModule({\n imports: [WriteWithAiComponent],\n exports: [WriteWithAiComponent],\n})\nexport class WriteWithAiComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB,GAAG,4CAA4C;AAC5E,MAAM,oBAAoB,GAAG,YAAY;AACzC,MAAM,oBAAoB,GAAG,kBAAkB;MAGlC,qBAAqB,CAAA;AAChC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAA,CAAA,IAAI,GAAJ,IAAI;IAAe;IAEhD,QAAQ,CAAC,OAAmB,EAAE,MAA4B,EAAA;AACxD,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAClB,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC;QAC/C;AAEA,QAAA,IAAI,MAAM,CAAC,QAAQ,K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AA,EAAA,CAAA,CAAA;AAEnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,YAH3B,oBAAoB,CAAA,EAAA,CAAA,CAAA;;4FAGnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAChC,iBAAA;;;ACND;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"testgorilla-tgo-ui-components-write-with-ai.mjs","sources":["../../../components/write-with-ai/llm.service.ts","../../../components/write-with-ai/write-with-ai.component.ts","../../../components/write-with-ai/write-with-ai.component.html","../../../components/write-with-ai/write-with-ai.module.ts","../../../components/write-with-ai/testgorilla-tgo-ui-components-write-with-ai.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Observable, of, delay, map } from 'rxjs';\nimport { WriteWithAiLlmConfig } from './write-with-ai.model';\n\nexport interface LlmRequest {\n sourceText: string;\n prompt: string;\n context?: string;\n}\n\ninterface OpenAiChatResponse {\n choices: { message: { content: string } }[];\n}\n\ninterface GeminiResponse {\n candidates: { content: { parts: { text: string }[] } }[];\n}\n\nconst OPENAI_DEFAULT_ENDPOINT = 'https://api.openai.com/v1/chat/completions';\nconst OPENAI_DEFAULT_MODEL = 'gpt-5-mini';\nconst GEMINI_DEFAULT_MODEL = 'gemini-3.0-flash';\n\n@Injectable({ providedIn: 'root' })\nexport class WriteWithAiLlmService {\n constructor(private readonly http: HttpClient) {}\n\n generate(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n if (!config.apiKey) {\n return this.simulateResponse(request, config);\n }\n\n if (config.provider === 'gemini') {\n return this.callGemini(request, config);\n }\n\n return this.callOpenAi(request, config);\n }\n\n private resolveEndpoint(config: WriteWithAiLlmConfig): string {\n return config.endpoint ?? config.baseUrl ?? OPENAI_DEFAULT_ENDPOINT;\n }\n\n private callOpenAi(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const endpoint = this.resolveEndpoint(config);\n const model = config.model ?? OPENAI_DEFAULT_MODEL;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n model,\n messages: [\n { role: 'system', content: systemMessage },\n { role: 'user', content: request.prompt },\n ],\n };\n\n const headers = new HttpHeaders({\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${config.apiKey}`,\n });\n\n return this.http\n .post<OpenAiChatResponse>(endpoint, body, { headers })\n .pipe(map(res => res.choices[0]?.message?.content ?? ''));\n }\n\n private callGemini(request: LlmRequest, config: WriteWithAiLlmConfig): Observable<string> {\n const model = config.model ?? GEMINI_DEFAULT_MODEL;\n const baseUrl =\n config.endpoint ??\n config.baseUrl ??\n `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent`;\n const systemMessage = this.buildSystemMessage(request.sourceText, request.context ?? config.context);\n\n const body = {\n system_instruction: { parts: [{ text: systemMessage }] },\n contents: [{ role: 'user', parts: [{ text: request.prompt }] }],\n };\n\n const apiKey = config.apiKey;\n if (!apiKey) {\n return this.simulateResponse(request, config);\n }\n\n const headers = new HttpHeaders({ 'Content-Type': 'application/json' });\n const params = new HttpParams().set('key', apiKey);\n\n return this.http\n .post<GeminiResponse>(baseUrl, body, { headers, params })\n .pipe(map(res => res.candidates?.[0]?.content?.parts?.[0]?.text ?? ''));\n }\n\n private simulateResponse(request: LlmRequest, _config: WriteWithAiLlmConfig): Observable<string> {\n const source = request.sourceText?.trim();\n const prompt = request.prompt?.trim();\n\n let response: string;\n\n if (source && prompt) {\n const truncated = source.length > 200 ? `${source.substring(0, 200)}…` : source;\n response =\n `Based on the following text:\\n\\n\"${truncated}\"\\n\\n` +\n `Here is the result for \"${prompt}\":\\n\\n${this.generatePlaceholderContent(prompt, source)}`;\n } else if (prompt) {\n response = this.generatePlaceholderContent(prompt, '');\n } else {\n response = 'Please provide a prompt describing what you would like me to write.';\n }\n\n return of(response).pipe(delay(1200));\n }\n\n private generatePlaceholderContent(prompt: string, source: string): string {\n const lower = prompt.toLowerCase();\n\n if (lower.includes('shorter') || lower.includes('concise') || lower.includes('summarize')) {\n const sentences = source.split(/[.!?]+/).filter(s => s.trim());\n if (sentences.length > 1) {\n return `${sentences\n .slice(0, Math.ceil(sentences.length / 2))\n .join('. ')\n .trim()}.`;\n }\n return `${source.substring(0, Math.ceil(source.length * 0.6)).trim()}…`;\n }\n\n if (lower.includes('formal') || lower.includes('professional') || lower.includes('tone')) {\n return `Dear Recipient,\\n\\nI hope this message finds you well. ${source || 'I am writing to follow up on our recent discussion.'}\\n\\nPlease do not hesitate to reach out should you require further information.\\n\\nBest regards`;\n }\n\n if (lower.includes('email') || lower.includes('draft') || lower.includes('write')) {\n return `Subject: Follow-up\\n\\nHi there,\\n\\n${source || 'Thank you for your time. I wanted to reach out regarding the next steps.'}\\n\\nLooking forward to hearing from you.\\n\\nBest regards`;\n }\n\n return `[Simulated LLM response]\\n\\nPrompt: ${prompt}\\n\\nThis is a simulated response. To enable real LLM calls, provide an apiKey in the llmConfig input. The service supports OpenAI-compatible and Gemini endpoints.`;\n }\n\n private buildSystemMessage(sourceText: string, context?: string): string {\n const parts: string[] = [];\n\n if (context) {\n parts.push(context);\n }\n\n if (sourceText) {\n parts.push(`The user is working with the following source text:\\n\\n\"\"\"${sourceText}\"\"\"`);\n }\n\n parts.push('Respond with only the requested content. Do not include explanations or preamble.');\n\n return parts.join('\\n\\n');\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n OnInit,\n untracked,\n} from '@angular/core';\nimport { AsyncPipe } from '@angular/common';\nimport { FormsModule, NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { combineLatest, map, Subject, takeUntil } from 'rxjs';\nimport { PromptData, PromptTag, PromptModule } from '@testgorilla/tgo-ui/components/prompt';\nimport { FieldComponentModule } from '@testgorilla/tgo-ui/components/field';\nimport { ButtonComponentModule } from '@testgorilla/tgo-ui/components/button';\nimport { IconComponentModule } from '@testgorilla/tgo-ui/components/icon';\nimport { AiCaveatComponentModule } from '@testgorilla/tgo-ui/components/ai-caveat';\nimport { AlertBannerComponentModule, AlertBannerAction } from '@testgorilla/tgo-ui/components/alert-banner';\nimport { AlertBarType, UiTranslatePipe } from '@testgorilla/tgo-ui/components/core';\nimport {\n WriteWithAiStatus,\n WriteWithAiTagOption,\n WriteWithAiLlmConfig,\n WriteWithAiSubmitEvent,\n} from './write-with-ai.model';\nimport { WriteWithAiLlmService } from './llm.service';\n\ninterface StatusConfig {\n variant: 'loading' | 'success' | 'error';\n alertType: AlertBarType;\n messageKey: string;\n actions: AlertBannerAction[];\n}\n\n@Component({\n selector: 'ui-write-with-ai',\n templateUrl: './write-with-ai.component.html',\n styleUrl: './write-with-ai.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { style: 'display: block' },\n providers: [\n UiTranslatePipe,\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => WriteWithAiComponent),\n multi: true,\n },\n ],\n imports: [\n AsyncPipe,\n FormsModule,\n FieldComponentModule,\n ButtonComponentModule,\n IconComponentModule,\n PromptModule,\n AiCaveatComponentModule,\n AlertBannerComponentModule,\n UiTranslatePipe,\n ],\n})\nexport class WriteWithAiComponent implements OnInit, ControlValueAccessor {\n readonly value = input('');\n readonly standalone = input(false);\n readonly defaultOpen = input(false);\n readonly fieldLabel = input('');\n readonly header = input('');\n readonly placeholder = input('');\n readonly promptValue = input('');\n readonly tags = input<WriteWithAiTagOption[]>([]);\n readonly status = input<WriteWithAiStatus>('idle');\n readonly subheader = input<string | undefined>(undefined);\n readonly llmConfig = input<WriteWithAiLlmConfig | undefined>(undefined);\n\n /** Layout: make the inner field stretch to fill its container height. */\n readonly fullHeight = input(false);\n\n /** Layout: render the inner field without a visible border. */\n readonly borderless = input(false);\n\n /** Opaque host metadata emitted with promptSubmit for backend integrations. */\n readonly metadata = input<Record<string, unknown>>({});\n\n readonly valueChange = output<string>();\n readonly promptChange = output<string>();\n readonly promptSubmit = output<WriteWithAiSubmitEvent>();\n readonly cancelPending = output<void>();\n readonly acceptResult = output<void>();\n readonly requestRefine = output<void>();\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly llmService = inject(WriteWithAiLlmService);\n private readonly uiTranslate = inject(UiTranslatePipe);\n private readonly promptModel = signal('');\n private readonly isPanelManuallyOpen = signal(false);\n private readonly internalStatus = signal<WriteWithAiStatus>('idle');\n private readonly internalValue = signal('');\n private readonly cancelRequest$ = new Subject<void>();\n\n /** ControlValueAccessor: whether the form control is disabled. */\n readonly cvaDisabled = signal(false);\n\n /** ControlValueAccessor callbacks. */\n private onChange: (value: string) => void = () => {};\n private onTouched: () => void = () => {};\n\n readonly translationContext = 'WRITE_WITH_AI.';\n\n private readonly labels = toSignal(\n combineLatest([\n this.uiTranslate.transform(`${this.translationContext}CANCEL`),\n this.uiTranslate.transform(`${this.translationContext}ACCEPT`),\n this.uiTranslate.transform(`${this.translationContext}MAKE_CHANGES`),\n this.uiTranslate.transform(`${this.translationContext}TRY_AGAIN`),\n ]).pipe(map(([cancel, accept, makeChanges, tryAgain]) => ({ cancel, accept, makeChanges, tryAgain }))),\n { initialValue: { cancel: '', accept: '', makeChanges: '', tryAgain: '' } }\n );\n\n readonly isDefaultMode = computed(() => this.llmConfig()?.default === true);\n\n readonly effectiveStatus = computed(() => (this.isDefaultMode() ? this.internalStatus() : this.status()));\n\n readonly effectiveValue = computed(() => (this.isDefaultMode() ? this.internalValue() : this.value()));\n\n readonly isPanelVisible = computed(() => this.standalone() || this.isPanelManuallyOpen());\n\n readonly promptTags = computed<PromptTag[]>(() =>\n this.tags().map(tag => ({ id: tag.id, label: tag.label, autocomplete: tag.description ?? '' }))\n );\n\n readonly statusConfig = computed<StatusConfig | null>(() => {\n const l = this.labels();\n switch (this.effectiveStatus()) {\n case 'loading':\n return {\n variant: 'loading',\n alertType: 'info',\n messageKey: `${this.translationContext}WRITING`,\n actions: [{ label: l.cancel, onClick: () => this.handleCancel() }],\n };\n case 'success':\n return {\n variant: 'success',\n alertType: 'success',\n messageKey: `${this.translationContext}CONTENT_GENERATED`,\n actions: [\n { label: l.accept, onClick: () => this.handleAccept() },\n { label: l.makeChanges, onClick: () => this.handleRefine() },\n ],\n };\n case 'error':\n return {\n variant: 'error',\n alertType: 'error',\n messageKey: `${this.translationContext}ERROR_MESSAGE`,\n actions: [{ label: l.tryAgain, onClick: () => this.handleRefine() }],\n };\n default:\n return null;\n }\n });\n\n constructor() {\n effect(() => {\n const promptValue = this.promptValue();\n const isDefault = this.isDefaultMode();\n if (!isDefault) {\n untracked(() => this.promptModel.set(promptValue));\n }\n });\n\n effect(() => {\n const value = this.value();\n const isDefault = this.isDefaultMode();\n if (isDefault) {\n untracked(() => this.internalValue.set(value));\n }\n });\n }\n\n readonly promptModelData = computed<PromptData>(() => ({ text: this.promptModel(), files: [] }));\n\n handlePromptModelChange(value: PromptData | string): void {\n const text = typeof value === 'string' ? value : (value?.text ?? '');\n this.promptModel.set(text);\n this.promptChange.emit(text);\n }\n\n ngOnInit() {\n if (this.defaultOpen()) {\n this.isPanelManuallyOpen.set(true);\n }\n }\n\n togglePanel(): void {\n if (this.standalone()) {\n return;\n }\n this.isPanelManuallyOpen.update(current => !current);\n }\n\n handleValueInput(value: string): void {\n if (this.isDefaultMode()) {\n this.internalValue.set(value);\n }\n this.valueChange.emit(value);\n this.onChange(value);\n this.onTouched();\n }\n\n handlePromptSubmit(promptData?: PromptData | string): void {\n const prompt = typeof promptData === 'string' ? promptData : (promptData?.text ?? this.promptModel());\n this.promptModel.set(prompt);\n this.promptChange.emit(prompt);\n\n const submitEvent: WriteWithAiSubmitEvent = {\n prompt,\n content: this.effectiveValue(),\n metadata: this.metadata(),\n };\n\n if (this.isDefaultMode()) {\n this.executeDefaultFlow(prompt);\n }\n\n this.promptSubmit.emit(submitEvent);\n }\n\n handlePrimaryAction(): void {\n const status = this.effectiveStatus();\n if (status === 'loading') {\n this.handleCancel();\n } else if (status === 'success') {\n this.handleAccept();\n } else if (status === 'error') {\n this.handleRefine();\n }\n }\n\n handleSecondaryAction(): void {\n if (this.effectiveStatus() === 'success') {\n this.handleRefine();\n }\n }\n\n // --- ControlValueAccessor ---\n\n writeValue(value: string): void {\n const v = value ?? '';\n if (this.isDefaultMode()) {\n this.internalValue.set(v);\n }\n // For integration mode the host uses the [value] input directly,\n // but we still keep internal state in sync for CVA consumers.\n this.internalValue.set(v);\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.cvaDisabled.set(isDisabled);\n }\n\n // --- Private helpers ---\n\n private executeDefaultFlow(prompt: string): void {\n const config = this.llmConfig();\n if (!config) {\n return;\n }\n\n this.cancelRequest$.next();\n this.internalStatus.set('loading');\n\n this.llmService\n .generate({ sourceText: this.effectiveValue(), prompt, context: config.context }, config)\n .pipe(takeUntil(this.cancelRequest$), takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: result => {\n this.internalValue.set(result);\n this.valueChange.emit(result);\n this.onChange(result);\n this.internalStatus.set('success');\n },\n error: () => {\n this.internalStatus.set('error');\n },\n });\n }\n\n private handleCancel(): void {\n if (this.isDefaultMode()) {\n this.cancelRequest$.next();\n this.internalStatus.set('idle');\n }\n this.cancelPending.emit();\n }\n\n private handleAccept(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n this.promptModel.set('');\n }\n if (!this.standalone()) {\n this.isPanelManuallyOpen.set(false);\n }\n this.acceptResult.emit();\n }\n\n private handleRefine(): void {\n if (this.isDefaultMode()) {\n this.internalStatus.set('idle');\n }\n this.requestRefine.emit();\n }\n}\n","<div\n class=\"write-with-ai\"\n [class.write-with-ai--standalone]=\"standalone()\"\n [class.write-with-ai--full-height]=\"fullHeight()\"\n>\n @if (!standalone()) {\n <div class=\"write-with-ai__host\">\n <ui-field\n [label]=\"fieldLabel() || (translationContext + 'FIELD_LABEL' | uiTranslate | async)!\"\n type=\"textarea\"\n [showBottomContent]=\"false\"\n [fullHeight]=\"fullHeight()\"\n [borderless]=\"borderless()\"\n [disabled]=\"cvaDisabled()\"\n [ngModel]=\"effectiveValue()\"\n (ngModelChange)=\"handleValueInput($event)\"\n ></ui-field>\n <ui-button\n class=\"write-with-ai__cta\"\n variant=\"ghost-ai\"\n size=\"small\"\n [label]=\"(translationContext + 'AI_ASSIST' | uiTranslate | async)!\"\n iconName=\"Sparkle-in-line\"\n iconPosition=\"left\"\n [disabled]=\"isPanelVisible() || cvaDisabled()\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n </div>\n }\n\n @if (isPanelVisible()) {\n <section\n class=\"write-with-ai__panel\"\n [class.write-with-ai__panel--loading]=\"effectiveStatus() === 'loading'\"\n role=\"region\"\n [attr.aria-label]=\"(translationContext + 'AI_WRITING_ASSISTANT' | uiTranslate | async)!\"\n >\n <header class=\"write-with-ai__panel-header\">\n <div class=\"write-with-ai__panel-heading\">\n <div class=\"write-with-ai__title-row\">\n @if (effectiveStatus() !== 'loading') {\n <ui-icon class=\"write-with-ai__title-icon\" name=\"Sparkle-in-line\" color=\"ai\"></ui-icon>\n }\n <h4 class=\"write-with-ai__title\">\n {{ header() || (translationContext + 'HEADER' | uiTranslate | async) }}\n </h4>\n </div>\n @if (subheader()) {\n <p class=\"write-with-ai__subheader\">{{ subheader() }}</p>\n }\n </div>\n @if (!standalone()) {\n <ui-button\n variant=\"icon-button\"\n iconName=\"Close\"\n size=\"small\"\n [tooltip]=\"(translationContext + 'CLOSE' | uiTranslate | async)!\"\n [ariaLabel]=\"(translationContext + 'CLOSE_AI_ASSISTANT' | uiTranslate | async)!\"\n (buttonClickEvent)=\"togglePanel()\"\n ></ui-button>\n }\n </header>\n\n @if (effectiveStatus() === 'idle') {\n <div class=\"write-with-ai__prompt\">\n <ui-prompt\n [ngModel]=\"promptModelData()\"\n (ngModelChange)=\"handlePromptModelChange($event)\"\n [tags]=\"promptTags()\"\n [placeholder]=\"placeholder() || (translationContext + 'PLACEHOLDER' | uiTranslate | async)!\"\n [showSendButton]=\"true\"\n (promptData)=\"handlePromptSubmit($event)\"\n ></ui-prompt>\n </div>\n }\n\n @if (statusConfig(); as cfg) {\n <ui-alert-banner\n [alertType]=\"cfg.alertType\"\n alertVariant=\"callout\"\n [message]=\"(cfg.messageKey | uiTranslate | async)!\"\n [includeDismissButton]=\"false\"\n [isLoading]=\"cfg.variant === 'loading'\"\n [hasIcon]=\"cfg.variant !== 'loading'\"\n [actions]=\"cfg.actions\"\n [isFullWidth]=\"true\"\n ></ui-alert-banner>\n }\n\n <div class=\"write-with-ai__caveat\">\n <ui-ai-caveat></ui-ai-caveat>\n </div>\n </section>\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { WriteWithAiComponent } from './write-with-ai.component';\n\n@NgModule({\n imports: [WriteWithAiComponent],\n exports: [WriteWithAiComponent],\n})\nexport class WriteWithAiComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB,GAAG,4CAA4C;AAC5E,MAAM,oBAAoB,GAAG,YAAY;AACzC,MAAM,oBAAoB,GAAG,kBAAkB;MAGlC,qBAAqB,CAAA;AAChC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAA,CAAA,IAAI,GAAJ,IAAI;IAAe;IAEhD,QAAQ,CAAC,OAAmB,EAAE,MAA4B,EAAA;AACxD,Q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