From 650ccf16e7b506d2c2e4bc696ac51aff87dd2f05 Mon Sep 17 00:00:00 2001 From: Mohammad Shuja Malik Date: Wed, 17 Dec 2025 14:24:44 +0000 Subject: [PATCH 1/2] 2328:VF Chatbot Angular support components --- .../.npmignore | 2 + .../README.md | 63 ++ ...hatbot-action-prompt.angular.component.mjs | 72 ++ ...f-chatbot-action-prompt.angular.module.mjs | 21 + .../esm2022/public-api.mjs | 6 + .../vf-chatbot-action-prompt.angular.mjs | 5 + .../vf-chatbot-action-prompt.angular.mjs | 101 +++ .../vf-chatbot-action-prompt.angular.mjs.map | 1 + .../index.d.ts | 5 + ...atbot-action-prompt.angular.component.d.ts | 16 + ...-chatbot-action-prompt.angular.module.d.ts | 7 + .../package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot-dialog.angular/.npmignore | 2 + .../vf-chatbot-dialog.angular/README.md | 63 ++ .../vf-chatbot-dialog.angular.component.mjs | 128 +++ .../lib/vf-chatbot-dialog.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-dialog.angular.mjs | 5 + .../fesm2022/vf-chatbot-dialog.angular.mjs | 164 ++++ .../vf-chatbot-dialog.angular.mjs.map | 1 + .../vf-chatbot-dialog.angular/index.d.ts | 5 + .../vf-chatbot-dialog.angular.component.d.ts | 13 + .../lib/vf-chatbot-dialog.angular.module.d.ts | 9 + .../vf-chatbot-dialog.angular/package.json | 25 + .../vf-chatbot-dialog.angular/public-api.d.ts | 2 + .../vf-chatbot-fab.angular/.npmignore | 2 + .../vf-chatbot-fab.angular/README.md | 63 ++ .../lib/vf-chatbot-fab.angular.component.mjs | 118 +++ .../lib/vf-chatbot-fab.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-fab.angular.mjs | 5 + .../fesm2022/vf-chatbot-fab.angular.mjs | 154 ++++ .../fesm2022/vf-chatbot-fab.angular.mjs.map | 1 + .../vf-chatbot-fab.angular/index.d.ts | 5 + .../lib/vf-chatbot-fab.angular.component.d.ts | 11 + .../lib/vf-chatbot-fab.angular.module.d.ts | 9 + .../vf-chatbot-fab.angular/package.json | 25 + .../vf-chatbot-fab.angular/public-api.d.ts | 2 + .../vf-chatbot-feedback.angular/.npmignore | 2 + .../vf-chatbot-feedback.angular/README.md | 63 ++ .../vf-chatbot-feedback.angular.component.mjs | 179 +++++ .../vf-chatbot-feedback.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-feedback.angular.mjs | 5 + .../fesm2022/vf-chatbot-feedback.angular.mjs | 215 ++++++ .../vf-chatbot-feedback.angular.mjs.map | 1 + .../vf-chatbot-feedback.angular/index.d.ts | 5 + ...vf-chatbot-feedback.angular.component.d.ts | 27 + .../vf-chatbot-feedback.angular.module.d.ts | 9 + .../vf-chatbot-feedback.angular/package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot-modal.angular/.npmignore | 2 + .../vf-chatbot-modal.angular/README.md | 63 ++ .../vf-chatbot-modal.angular.component.mjs | 672 ++++++++++++++++ .../lib/vf-chatbot-modal.angular.module.mjs | 52 ++ .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-modal.angular.mjs | 5 + .../fesm2022/vf-chatbot-modal.angular.mjs | 731 ++++++++++++++++++ .../fesm2022/vf-chatbot-modal.angular.mjs.map | 1 + .../vf-chatbot-modal.angular/index.d.ts | 5 + .../vf-chatbot-modal.angular.component.d.ts | 36 + .../lib/vf-chatbot-modal.angular.module.d.ts | 15 + .../vf-chatbot-modal.angular/package.json | 25 + .../vf-chatbot-modal.angular/public-api.d.ts | 2 + .../vf-chatbot-prompt.angular/.npmignore | 2 + .../vf-chatbot-prompt.angular/README.md | 63 ++ .../vf-chatbot-prompt.angular.component.mjs | 143 ++++ .../lib/vf-chatbot-prompt.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-prompt.angular.mjs | 5 + .../fesm2022/vf-chatbot-prompt.angular.mjs | 179 +++++ .../vf-chatbot-prompt.angular.mjs.map | 1 + .../vf-chatbot-prompt.angular/index.d.ts | 5 + .../vf-chatbot-prompt.angular.component.d.ts | 15 + .../lib/vf-chatbot-prompt.angular.module.d.ts | 9 + .../vf-chatbot-prompt.angular/package.json | 25 + .../vf-chatbot-prompt.angular/public-api.d.ts | 2 + .../vf-chatbot-selector.angular/.npmignore | 2 + .../vf-chatbot-selector.angular/README.md | 63 ++ .../vf-chatbot-selector.angular.component.mjs | 267 +++++++ .../vf-chatbot-selector.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-selector.angular.mjs | 5 + .../fesm2022/vf-chatbot-selector.angular.mjs | 303 ++++++++ .../vf-chatbot-selector.angular.mjs.map | 1 + .../vf-chatbot-selector.angular/index.d.ts | 5 + ...vf-chatbot-selector.angular.component.d.ts | 21 + .../vf-chatbot-selector.angular.module.d.ts | 9 + .../vf-chatbot-selector.angular/package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot-sources.angular/.npmignore | 2 + .../vf-chatbot-sources.angular/README.md | 63 ++ .../vf-chatbot-sources.angular.component.mjs | 61 ++ .../lib/vf-chatbot-sources.angular.module.mjs | 28 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-sources.angular.mjs | 5 + .../fesm2022/vf-chatbot-sources.angular.mjs | 97 +++ .../vf-chatbot-sources.angular.mjs.map | 1 + .../vf-chatbot-sources.angular/index.d.ts | 5 + .../vf-chatbot-sources.angular.component.d.ts | 14 + .../vf-chatbot-sources.angular.module.d.ts | 9 + .../vf-chatbot-sources.angular/package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot-standalone.angular/.npmignore | 2 + .../vf-chatbot-standalone.angular/README.md | 63 ++ ...f-chatbot-standalone.angular.component.mjs | 652 ++++++++++++++++ .../vf-chatbot-standalone.angular.module.mjs | 52 ++ .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-standalone.angular.mjs | 5 + .../vf-chatbot-standalone.angular.mjs | 711 +++++++++++++++++ .../vf-chatbot-standalone.angular.mjs.map | 1 + .../vf-chatbot-standalone.angular/index.d.ts | 5 + ...-chatbot-standalone.angular.component.d.ts | 36 + .../vf-chatbot-standalone.angular.module.d.ts | 15 + .../package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot-welcome-angular/.npmignore | 2 + .../vf-chatbot-welcome-angular/README.md | 63 ++ .../vf-chatbot-welcome.angular.component.mjs | 169 ++++ .../lib/vf-chatbot-welcome.angular.module.mjs | 32 + .../esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot-welcome-angular.mjs | 5 + .../fesm2022/vf-chatbot-welcome-angular.mjs | 209 +++++ .../vf-chatbot-welcome-angular.mjs.map | 1 + .../vf-chatbot-welcome-angular/index.d.ts | 5 + .../vf-chatbot-welcome.angular.component.d.ts | 22 + .../vf-chatbot-welcome.angular.module.d.ts | 10 + .../vf-chatbot-welcome-angular/package.json | 25 + .../public-api.d.ts | 2 + .../vf-chatbot/vf-chatbot.angular/.npmignore | 2 + .../vf-chatbot/vf-chatbot.angular/README.md | 63 ++ .../lib/vf-chatbot.angular.component.mjs | 80 ++ .../esm2022/lib/vf-chatbot.angular.module.mjs | 40 + .../vf-chatbot.angular/esm2022/public-api.mjs | 6 + .../esm2022/vf-chatbot.angular.mjs | 5 + .../fesm2022/vf-chatbot.angular.mjs | 128 +++ .../fesm2022/vf-chatbot.angular.mjs.map | 1 + .../vf-chatbot/vf-chatbot.angular/index.d.ts | 5 + .../lib/vf-chatbot.angular.component.d.ts | 10 + .../lib/vf-chatbot.angular.module.d.ts | 12 + .../vf-chatbot.angular/package.json | 25 + .../vf-chatbot.angular/public-api.d.ts | 2 + 143 files changed, 7431 insertions(+) create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/.npmignore create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/README.md create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.component.mjs create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.module.mjs create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/vf-chatbot-action-prompt.angular.mjs create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs.map create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/index.d.ts create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.component.d.ts create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module.d.ts create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/package.json create mode 100644 components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/public-api.d.ts create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/.npmignore create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/README.md create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.component.mjs create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.module.mjs create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/vf-chatbot-dialog.angular.mjs create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs.map create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/index.d.ts create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.component.d.ts create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.module.d.ts create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/package.json create mode 100644 components/vf-chatbot-dialog/vf-chatbot-dialog.angular/public-api.d.ts create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/.npmignore create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/README.md create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.component.mjs create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.module.mjs create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/vf-chatbot-fab.angular.mjs create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs.map create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/index.d.ts create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.component.d.ts create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.module.d.ts create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/package.json create mode 100644 components/vf-chatbot-fab/vf-chatbot-fab.angular/public-api.d.ts create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/.npmignore create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/README.md create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.component.mjs create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.module.mjs create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/vf-chatbot-feedback.angular.mjs create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs.map create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/index.d.ts create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.component.d.ts create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.module.d.ts create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/package.json create mode 100644 components/vf-chatbot-feedback/vf-chatbot-feedback.angular/public-api.d.ts create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/.npmignore create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/README.md create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.component.mjs create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.module.mjs create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/vf-chatbot-modal.angular.mjs create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs.map create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/index.d.ts create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.component.d.ts create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.module.d.ts create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/package.json create mode 100644 components/vf-chatbot-modal/vf-chatbot-modal.angular/public-api.d.ts create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/.npmignore create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/README.md create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.component.mjs create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.module.mjs create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/vf-chatbot-prompt.angular.mjs create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs.map create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/index.d.ts create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.component.d.ts create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.module.d.ts create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/package.json create mode 100644 components/vf-chatbot-prompt/vf-chatbot-prompt.angular/public-api.d.ts create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/.npmignore create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/README.md create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.component.mjs create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.module.mjs create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/vf-chatbot-selector.angular.mjs create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs.map create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/index.d.ts create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.component.d.ts create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.module.d.ts create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/package.json create mode 100644 components/vf-chatbot-selector/vf-chatbot-selector.angular/public-api.d.ts create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/.npmignore create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/README.md create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.component.mjs create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.module.mjs create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/vf-chatbot-sources.angular.mjs create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs.map create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/index.d.ts create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.component.d.ts create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.module.d.ts create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/package.json create mode 100644 components/vf-chatbot-sources/vf-chatbot-sources.angular/public-api.d.ts create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/.npmignore create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/README.md create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.component.mjs create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.module.mjs create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/vf-chatbot-standalone.angular.mjs create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs.map create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/index.d.ts create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.component.d.ts create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.module.d.ts create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/package.json create mode 100644 components/vf-chatbot-standalone/vf-chatbot-standalone.angular/public-api.d.ts create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/.npmignore create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/README.md create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.component.mjs create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.module.mjs create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/vf-chatbot-welcome-angular.mjs create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs.map create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/index.d.ts create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.component.d.ts create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.module.d.ts create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/package.json create mode 100644 components/vf-chatbot-welcome/vf-chatbot-welcome-angular/public-api.d.ts create mode 100644 components/vf-chatbot/vf-chatbot.angular/.npmignore create mode 100644 components/vf-chatbot/vf-chatbot.angular/README.md create mode 100644 components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.component.mjs create mode 100644 components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.module.mjs create mode 100644 components/vf-chatbot/vf-chatbot.angular/esm2022/public-api.mjs create mode 100644 components/vf-chatbot/vf-chatbot.angular/esm2022/vf-chatbot.angular.mjs create mode 100644 components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs create mode 100644 components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs.map create mode 100644 components/vf-chatbot/vf-chatbot.angular/index.d.ts create mode 100644 components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.component.d.ts create mode 100644 components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.module.d.ts create mode 100644 components/vf-chatbot/vf-chatbot.angular/package.json create mode 100644 components/vf-chatbot/vf-chatbot.angular/public-api.d.ts diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/.npmignore b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/README.md b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/README.md new file mode 100644 index 0000000000..05c735afe3 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotActionPromptAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-action-prompt.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-action-prompt.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.component.mjs b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.component.mjs new file mode 100644 index 0000000000..14a0a3254e --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.component.mjs @@ -0,0 +1,72 @@ +// vf-chatbot-action-prompt.angular +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import * as i0 from "@angular/core"; +export class VfChatbotActionPromptAngularComponent { + constructor() { + /** Emits when the link/button is clicked (maps to onClick) */ + this.actionClick = new EventEmitter(); + } + onClick(ev) { + this.actionClick.emit(ev); + } + get isExternal() { + return this.actionTarget === '_blank'; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: { actionUrl: ["action_url", "actionUrl"], actionText: ["action_text", "actionText"], actionTarget: ["action_target", "actionTarget"] }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: ` + + {{ actionText }} + + + + + + `, isInline: true }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-action-prompt', + template: ` + + {{ actionText }} + + + + + + ` + }] + }], propDecorators: { actionUrl: [{ + type: Input, + args: [{ alias: 'action_url' }] + }], actionText: [{ + type: Input, + args: [{ alias: 'action_text' }] + }], actionTarget: [{ + type: Input, + args: [{ alias: 'action_target' }] + }], actionClick: [{ + type: Output + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIuY29tcG9uZW50Lmpz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GVudCB0byBhY3Rpb25fdGV4dCAqL1xuICBASW5wdXQoeyBhbGlhczogJ2FjdGlvbl90ZXh0JyB9KSBhY3Rpb25UZXh0ITogc3RyaW5nO1xuXG4gIC8qKiBFcXVpdmFsZW50IHRvIGFjdGlvbl90YXJnZXQgKi9cbiAgQElucHV0KHsgYWxpYXM6ICdhY3Rpb25fdGFyZ2V0JyB9KSBhY3Rpb25UYXJnZXQ/OiBzdHJpbmc7XG5cbiAgLyoqIEVtaXRzIHdoZW4gdGhlIGxpbmsvYnV0dG9uIGlzIGNsaWNrZWQgKG1hcHMgdG8gb25DbGljaykgKi9cbiAgQE91dHB1dCgpIGFjdGlvbkNsaWNrID0gbmV3IEV2ZW50RW1pdHRlcjxNb3VzZUV2ZW50PigpO1xuXG4gIG9uQ2xpY2soZXY6IE1vdXNlRXZlbnQpIHtcbiAgICB0aGlzLmFjdGlvbkNsaWNrLmVtaXQoZXYpO1xuICB9XG5cbiAgZ2V0IGlzRXh0ZXJuYWwoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuYWN0aW9uVGFyZ2V0ID09PSAnX2JsYW5rJztcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.module.mjs b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.module.mjs new file mode 100644 index 0000000000..8377db8c4f --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/lib/vf-chatbot-action-prompt.angular.module.mjs @@ -0,0 +1,21 @@ +import { NgModule } from '@angular/core'; +import { VfChatbotActionPromptAngularComponent } from './vf-chatbot-action-prompt.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotActionPromptAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, declarations: [VfChatbotActionPromptAngularComponent], exports: [VfChatbotActionPromptAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotActionPromptAngularComponent + ], + imports: [], + exports: [ + VfChatbotActionPromptAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUscUNBQXFDLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQzs7QUFjckcsTUFBTSxPQUFPLGtDQUFrQzsrR0FBbEMsa0NBQWtDO2dIQUFsQyxrQ0FBa0MsaUJBUjNDLHFDQUFxQyxhQUtyQyxxQ0FBcUM7Z0hBRzVCLGtDQUFrQzs7NEZBQWxDLGtDQUFrQztrQkFWOUMsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1oscUNBQXFDO3FCQUN0QztvQkFDRCxPQUFPLEVBQUUsRUFDUjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AscUNBQXFDO3FCQUN0QztpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBWZkNoYXRib3RBY3Rpb25Qcm9tcHRBbmd1bGFyQ29tcG9uZW50IH0gZnJvbSAnLi92Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhci5jb21wb25lbnQnO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgVmZDaGF0Ym90QWN0aW9uUHJvbXB0QW5ndWxhckNvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBWZkNoYXRib3RBY3Rpb25Qcm9tcHRBbmd1bGFyQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgVmZDaGF0Ym90QWN0aW9uUHJvbXB0QW5ndWxhck1vZHVsZSB7IH1cbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/public-api.mjs b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..36dfced7c8 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-action-prompt.angular + */ +export * from './lib/vf-chatbot-action-prompt.angular.component'; +export * from './lib/vf-chatbot-action-prompt.angular.module'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtYWN0aW9uLXByb21wdC5hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLCtDQUErQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB2Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZmLWNoYXRib3QtYWN0aW9uLXByb21wdC5hbmd1bGFyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhci5tb2R1bGUnO1xuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/vf-chatbot-action-prompt.angular.mjs b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/vf-chatbot-action-prompt.angular.mjs new file mode 100644 index 0000000000..c3ccd4a525 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/esm2022/vf-chatbot-action-prompt.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhci9zcmMvdmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs new file mode 100644 index 0000000000..d7d99ff45c --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs @@ -0,0 +1,101 @@ +import * as i0 from '@angular/core'; +import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core'; + +// vf-chatbot-action-prompt.angular +class VfChatbotActionPromptAngularComponent { + constructor() { + /** Emits when the link/button is clicked (maps to onClick) */ + this.actionClick = new EventEmitter(); + } + onClick(ev) { + this.actionClick.emit(ev); + } + get isExternal() { + return this.actionTarget === '_blank'; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: { actionUrl: ["action_url", "actionUrl"], actionText: ["action_text", "actionText"], actionTarget: ["action_target", "actionTarget"] }, outputs: { actionClick: "actionClick" }, ngImport: i0, template: ` + + {{ actionText }} + + + + + + `, isInline: true }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-action-prompt', + template: ` + + {{ actionText }} + + + + + + ` + }] + }], propDecorators: { actionUrl: [{ + type: Input, + args: [{ alias: 'action_url' }] + }], actionText: [{ + type: Input, + args: [{ alias: 'action_text' }] + }], actionTarget: [{ + type: Input, + args: [{ alias: 'action_target' }] + }], actionClick: [{ + type: Output + }] } }); + +class VfChatbotActionPromptAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, declarations: [VfChatbotActionPromptAngularComponent], exports: [VfChatbotActionPromptAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotActionPromptAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotActionPromptAngularComponent + ], + imports: [], + exports: [ + VfChatbotActionPromptAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-action-prompt.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotActionPromptAngularComponent, VfChatbotActionPromptAngularModule }; +//# sourceMappingURL=vf-chatbot-action-prompt.angular.mjs.map diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs.map b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs.map new file mode 100644 index 0000000000..03b580803e --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/fesm2022/vf-chatbot-action-prompt.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-action-prompt.angular.mjs","sources":["../../../projects/vf-chatbot-action-prompt.angular/src/lib/vf-chatbot-action-prompt.angular.component.ts","../../../projects/vf-chatbot-action-prompt.angular/src/lib/vf-chatbot-action-prompt.angular.module.ts","../../../projects/vf-chatbot-action-prompt.angular/src/public-api.ts","../../../projects/vf-chatbot-action-prompt.angular/src/vf-chatbot-action-prompt.angular.ts"],"sourcesContent":["// vf-chatbot-action-prompt.angular\n\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'vf-chatbot-action-prompt',\n template: `\n \n {{ actionText }}\n \n\n \n \n {{ actionText }}\n \n \n `\n})\nexport class VfChatbotActionPromptAngularComponent {\n /** Equivalent to action_url */\n @Input({ alias: 'action_url' }) actionUrl?: string;\n\n /** Equivalent to action_text */\n @Input({ alias: 'action_text' }) actionText!: string;\n\n /** Equivalent to action_target */\n @Input({ alias: 'action_target' }) actionTarget?: string;\n\n /** Emits when the link/button is clicked (maps to onClick) */\n @Output() actionClick = new EventEmitter();\n\n onClick(ev: MouseEvent) {\n this.actionClick.emit(ev);\n }\n\n get isExternal(): boolean {\n return this.actionTarget === '_blank';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { VfChatbotActionPromptAngularComponent } from './vf-chatbot-action-prompt.angular.component';\n\n\n\n@NgModule({\n declarations: [\n VfChatbotActionPromptAngularComponent\n ],\n imports: [\n ],\n exports: [\n VfChatbotActionPromptAngularComponent\n ]\n})\nexport class VfChatbotActionPromptAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-action-prompt.angular\n */\n\nexport * from './lib/vf-chatbot-action-prompt.angular.component';\nexport * from './lib/vf-chatbot-action-prompt.angular.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;MA0Ba,qCAAqC,CAAA;AAtBlD,IAAA,WAAA,GAAA;;AAiCY,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAc;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vB,WAAW,EAAA,CAAA;sBAApB;;;MCtBU,kCAAkC,CAAA;+GAAlC,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlC,kCAAkC,EAAA,YAAA,EAAA,CAR3C,qCAAqC,CAAA,EAAA,OAAA,EAAA,CAKrC,qCAAqC,CAAA,EAAA,CAAA,CAAA;gHAG5B,kCAAkC,EAAA,CAAA,CAAA;;4FAAlC,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAV9C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/index.d.ts b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/index.d.ts new file mode 100644 index 0000000000..97148da76c --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.component.d.ts b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.component.d.ts new file mode 100644 index 0000000000..39126bc1f9 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.component.d.ts @@ -0,0 +1,16 @@ +import { EventEmitter } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotActionPromptAngularComponent { + /** Equivalent to action_url */ + actionUrl?: string; + /** Equivalent to action_text */ + actionText: string; + /** Equivalent to action_target */ + actionTarget?: string; + /** Emits when the link/button is clicked (maps to onClick) */ + actionClick: EventEmitter; + onClick(ev: MouseEvent): void; + get isExternal(): boolean; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module.d.ts b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module.d.ts new file mode 100644 index 0000000000..bb93744339 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-action-prompt.angular.component"; +export declare class VfChatbotActionPromptAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/package.json b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/package.json new file mode 100644 index 0000000000..2320dfc90f --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-action-prompt.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-action-prompt.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-action-prompt.angular.mjs", + "esm": "./esm2022/vf-chatbot-action-prompt.angular.mjs", + "default": "./fesm2022/vf-chatbot-action-prompt.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/public-api.d.ts b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/public-api.d.ts new file mode 100644 index 0000000000..99b714c918 --- /dev/null +++ b/components/vf-chatbot-action-prompt/vf-chatbot-action-prompt.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-action-prompt.angular.component'; +export * from './lib/vf-chatbot-action-prompt.angular.module'; diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/.npmignore b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/README.md b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/README.md new file mode 100644 index 0000000000..5981456ccc --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotDialogAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-dialog.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-dialog.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.component.mjs b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.component.mjs new file mode 100644 index 0000000000..e8867b2834 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.component.mjs @@ -0,0 +1,128 @@ +import { Component, Input } from '@angular/core'; +import * as i0 from "@angular/core"; +export class VfChatbotDialogAngularComponent { + constructor(elRef) { + this.elRef = elRef; + this.title = 'Close chat and delete conversation?'; + this.message = 'Are you sure you want to close the chat?
Your current conversation history will be permanently deleted.'; + this.cancelLabel = 'Keep chat open'; + this.confirmLabel = 'Close and delete'; + } + ngAfterViewInit() { + const el = this.elRef.nativeElement; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: { title: "title", message: "message", cancelLabel: "cancelLabel", confirmLabel: "confirmLabel" }, ngImport: i0, template: ` +
+
+
+

{{ title }}

+ + +
+ +
+

+
+ +
+ + + +
+
+
+ `, isInline: true }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-dialog', + template: ` +
+
+
+

{{ title }}

+ + +
+ +
+

+
+ +
+ + + +
+
+
+ ` + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { title: [{ + type: Input + }], message: [{ + type: Input + }], cancelLabel: [{ + type: Input + }], confirmLabel: [{ + type: Input + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1kaWFsb2cuYW5ndWxhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LWRpYWxvZy5hbmd1bGFyL3NyYy9saWIvdmYtY2hhdGJvdC1kaWFsb2cuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFJVCxLQUFLLEVBRU4sTUFBTSxlQUFlLENBQUM7O0FBdUR2QixNQUFNLE9BQU8sK0JBQStCO0lBTzFDLFlBQW9CLEtBQWlCO1FBQWpCLFVBQUssR0FBTCxLQUFLLENBQVk7UUFONUIsVUFBSyxHQUFHLHFDQUFxQyxDQUFDO1FBQzlDLFlBQU8sR0FBRyw2R0FBNkcsQ0FBQztRQUN4SCxnQkFBVyxHQUFHLGdCQUFnQixDQUFDO1FBQy9CLGlCQUFZLEdBQUcsa0JBQWtCLENBQUM7SUFHSCxDQUFDO0lBRXpDLGVBQWU7UUFDYixNQUFNLEVBQUUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQTRCLENBQUM7SUFDckQsQ0FBQzsrR0FYVSwrQkFBK0I7bUdBQS9CLCtCQUErQixtS0FsRGhDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnRFQ7OzRGQUVVLCtCQUErQjtrQkFwRDNDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLG1CQUFtQjtvQkFDN0IsUUFBUSxFQUFFOzs7Ozs7Ozs7Ozs7Ozs7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DbG9zZSBkaWFsb2dcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxzdmcgd2lkdGg9XCIyNFwiIGhlaWdodD1cIjI0XCIgdmlld0JveD1cIjAgMCAyNCAyNFwiPlxuICAgICAgICAgICAgICA8cGF0aFxuICAgICAgICAgICAgICAgIGQ9XCJNMTkgNi40MUwxNy41OSA1IDEyIDEwLjU5IDYuNDEgNSA1IDYuNDEgXG4gICAgICAgICAgICAgICAgICAgMTAuNTkgMTIgNSAxNy41OSA2LjQxIDE5IDEyIDEzLjQxIFxuICAgICAgICAgICAgICAgICAgIDE3LjU5IDE5IDE5IDE3LjU5IDEzLjQxIDEyelwiXG4gICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8L3N2Zz5cbiAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgPGRpdiBjbGFzcz1cInZmLWNoYXRib3QtZGlhbG9nX19ib2R5IHZmLXUtbWFyZ2luX19ib3R0b20tLTgwMFwiPlxuICAgICAgICAgIDxwXG4gICAgICAgICAgICBjbGFzcz1cInZmLXRleHQgdmYtdGV4dC1ib2R5LS0zXCJcbiAgICAgICAgICAgIFtpbm5lckhUTUxdPVwibWVzc2FnZVwiXG4gICAgICAgICAgPjwvcD5cbiAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgPGRpdiBjbGFzcz1cInZmLWNoYXRib3QtZGlhbG9nX19hY3Rpb25zXCI+XG4gICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgY2xhc3M9XCJ2Zi1jaGF0Ym90LWRpYWxvZ19fYnV0dG9uIHZmLWNoYXRib3QtZGlhbG9nX19idXR0b24tLW91dGxpbmVcIlxuICAgICAgICAgICAgZGF0YS12Zi1qcy1kaWFsb2ctY2FuY2VsXG4gICAgICAgICAgPlxuICAgICAgICAgICAge3sgY2FuY2VsTGFiZWwgfX1cbiAgICAgICAgICA8L2J1dHRvbj5cblxuICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1kaWFsb2dfX2J1dHRvbiB2Zi1jaGF0Ym90LWRpYWxvZ19fYnV0dG9uLS1wcmltYXJ5XCJcbiAgICAgICAgICAgIGRhdGEtdmYtanMtZGlhbG9nLWNvbmZpcm1cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7eyBjb25maXJtTGFiZWwgfX1cbiAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgYFxufSlcbmV4cG9ydCBjbGFzcyBWZkNoYXRib3REaWFsb2dBbmd1bGFyQ29tcG9uZW50IGltcGxlbWVudHMgQWZ0ZXJWaWV3SW5pdCB7XG4gIEBJbnB1dCgpIHRpdGxlID0gJ0Nsb3NlIGNoYXQgYW5kIGRlbGV0ZSBjb252ZXJzYXRpb24/JztcbiAgQElucHV0KCkgbWVzc2FnZSA9ICdBcmUgeW91IHN1cmUgeW91IHdhbnQgdG8gY2xvc2UgdGhlIGNoYXQ/IDxicj5Zb3VyIGN1cnJlbnQgY29udmVyc2F0aW9uIGhpc3Rvcnkgd2lsbCBiZSBwZXJtYW5lbnRseSBkZWxldGVkLic7XG4gIEBJbnB1dCgpIGNhbmNlbExhYmVsID0gJ0tlZXAgY2hhdCBvcGVuJztcbiAgQElucHV0KCkgY29uZmlybUxhYmVsID0gJ0Nsb3NlIGFuZCBkZWxldGUnO1xuXG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBlbFJlZjogRWxlbWVudFJlZikge31cblxuICBuZ0FmdGVyVmlld0luaXQoKTogdm9pZCB7XG4gICAgY29uc3QgZWwgPSB0aGlzLmVsUmVmLm5hdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQ7XG4gIH1cblxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.module.mjs b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.module.mjs new file mode 100644 index 0000000000..9dfc74ce13 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/lib/vf-chatbot-dialog.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotDialogAngularComponent } from './vf-chatbot-dialog.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotDialogAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, declarations: [VfChatbotDialogAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotDialogAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotDialogAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotDialogAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1kaWFsb2cuYW5ndWxhci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LWRpYWxvZy5hbmd1bGFyL3NyYy9saWIvdmYtY2hhdGJvdC1kaWFsb2cuYW5ndWxh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vdERpYWxvZ0FuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90RGlhbG9nQW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdERpYWxvZ0FuZ3VsYXJNb2R1bGUgeyB9XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/public-api.mjs b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..39113176ec --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-dialog.angular + */ +export * from './lib/vf-chatbot-dialog.angular.module'; +export * from './lib/vf-chatbot-dialog.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZGlhbG9nLmFuZ3VsYXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZmLWNoYXRib3QtZGlhbG9nLmFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWRpYWxvZy5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWRpYWxvZy5hbmd1bGFyLmNvbXBvbmVudCc7XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/vf-chatbot-dialog.angular.mjs b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/vf-chatbot-dialog.angular.mjs new file mode 100644 index 0000000000..a5793a3b3e --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/esm2022/vf-chatbot-dialog.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1kaWFsb2cuYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZGlhbG9nLmFuZ3VsYXIvc3JjL3ZmLWNoYXRib3QtZGlhbG9nLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs new file mode 100644 index 0000000000..40e99ea339 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs @@ -0,0 +1,164 @@ +import * as i0 from '@angular/core'; +import { Component, Input, NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotDialogAngularComponent { + constructor(elRef) { + this.elRef = elRef; + this.title = 'Close chat and delete conversation?'; + this.message = 'Are you sure you want to close the chat?
Your current conversation history will be permanently deleted.'; + this.cancelLabel = 'Keep chat open'; + this.confirmLabel = 'Close and delete'; + } + ngAfterViewInit() { + const el = this.elRef.nativeElement; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: { title: "title", message: "message", cancelLabel: "cancelLabel", confirmLabel: "confirmLabel" }, ngImport: i0, template: ` +
+
+
+

{{ title }}

+ + +
+ +
+

+
+ +
+ + + +
+
+
+ `, isInline: true }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-dialog', + template: ` +
+
+
+

{{ title }}

+ + +
+ +
+

+
+ +
+ + + +
+
+
+ ` + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { title: [{ + type: Input + }], message: [{ + type: Input + }], cancelLabel: [{ + type: Input + }], confirmLabel: [{ + type: Input + }] } }); + +class VfChatbotDialogAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, declarations: [VfChatbotDialogAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotDialogAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotDialogAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotDialogAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotDialogAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-dialog.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotDialogAngularComponent, VfChatbotDialogAngularModule }; +//# sourceMappingURL=vf-chatbot-dialog.angular.mjs.map diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs.map b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs.map new file mode 100644 index 0000000000..17cd7a4385 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/fesm2022/vf-chatbot-dialog.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-dialog.angular.mjs","sources":["../../../projects/vf-chatbot-dialog.angular/src/lib/vf-chatbot-dialog.angular.component.ts","../../../projects/vf-chatbot-dialog.angular/src/lib/vf-chatbot-dialog.angular.module.ts","../../../projects/vf-chatbot-dialog.angular/src/public-api.ts","../../../projects/vf-chatbot-dialog.angular/src/vf-chatbot-dialog.angular.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n EventEmitter,\n Output,\n Input,\n AfterViewInit\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'vf-chatbot-dialog',\n template: `\n \n
\n
\n

{{ title }}

\n\n \n \n \n \n \n
\n\n
\n

\n
\n\n
\n \n {{ cancelLabel }}\n \n\n \n {{ confirmLabel }}\n \n
\n
\n \n `\n})\nexport class VfChatbotDialogAngularComponent implements AfterViewInit {\n @Input() title = 'Close chat and delete conversation?';\n @Input() message = 'Are you sure you want to close the chat?
Your current conversation history will be permanently deleted.';\n @Input() cancelLabel = 'Keep chat open';\n @Input() confirmLabel = 'Close and delete';\n\n\n constructor(private elRef: ElementRef) {}\n\n ngAfterViewInit(): void {\n const el = this.elRef.nativeElement as HTMLElement;\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotDialogAngularComponent } from './vf-chatbot-dialog.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotDialogAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotDialogAngularComponent\n ]\n})\nexport class VfChatbotDialogAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-dialog.angular\n */\n\nexport * from './lib/vf-chatbot-dialog.angular.module';\nexport * from './lib/vf-chatbot-dialog.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MA8Da,+BAA+B,CAAA;AAO1C,IAAA,WAAA,CAAoB,KAAiB,EAAA;QAAjB,IAAK,CAAA,KAAA,GAAL,KAAK;QANhB,IAAK,CAAA,KAAA,GAAG,qCAAqC;QAC7C,IAAO,CAAA,OAAA,GAAG,6GAA6G;QACvH,IAAW,CAAA,WAAA,GAAG,gBAAgB;QAC9B,IAAY,CAAA,YAAA,GAAG,kBAAkB;;IAK1C,eAAe,GAAA;AACb,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,aAA4B;;+GAVzC,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAA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AAA,CAAA;;4FAMF,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAZxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/index.d.ts b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/index.d.ts new file mode 100644 index 0000000000..dd54175d05 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.component.d.ts b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.component.d.ts new file mode 100644 index 0000000000..6337cad338 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.component.d.ts @@ -0,0 +1,13 @@ +import { ElementRef, AfterViewInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotDialogAngularComponent implements AfterViewInit { + private elRef; + title: string; + message: string; + cancelLabel: string; + confirmLabel: string; + constructor(elRef: ElementRef); + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.module.d.ts b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.module.d.ts new file mode 100644 index 0000000000..40e25d859a --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/lib/vf-chatbot-dialog.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-dialog.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotDialogAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/package.json b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/package.json new file mode 100644 index 0000000000..4be9da26ff --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-dialog.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-dialog.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-dialog.angular.mjs", + "esm": "./esm2022/vf-chatbot-dialog.angular.mjs", + "default": "./fesm2022/vf-chatbot-dialog.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/public-api.d.ts b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/public-api.d.ts new file mode 100644 index 0000000000..11017a3ab9 --- /dev/null +++ b/components/vf-chatbot-dialog/vf-chatbot-dialog.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-dialog.angular.module'; +export * from './lib/vf-chatbot-dialog.angular.component'; diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/.npmignore b/components/vf-chatbot-fab/vf-chatbot-fab.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/README.md b/components/vf-chatbot-fab/vf-chatbot-fab.angular/README.md new file mode 100644 index 0000000000..9a0b946de4 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotFabAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-fab.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-fab.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.component.mjs b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.component.mjs new file mode 100644 index 0000000000..88971d9a4b --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.component.mjs @@ -0,0 +1,118 @@ +import { Component, Input, } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +export class VfChatbotFabAngularComponent { + constructor(elementRef) { + this.elementRef = elementRef; + this.notificationCount = 0; + this.isInactive = false; + } + ngAfterViewInit() { + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotFabAngularComponent, selector: "vf-chatbot-fab", inputs: { notificationCount: "notificationCount", isInactive: "isInactive" }, ngImport: i0, template: ` + + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-fab', + template: ` + + `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { notificationCount: [{ + type: Input + }], isInactive: [{ + type: Input + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mYWIuYW5ndWxhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LWZhYi5hbmd1bGFyL3NyYy9saWIvdmYtY2hhdGJvdC1mYWIuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEdBR04sTUFBTSxlQUFlLENBQUM7OztBQXFEdkIsTUFBTSxPQUFPLDRCQUE0QjtJQUl2QyxZQUFvQixVQUFzQjtRQUF0QixlQUFVLEdBQVYsVUFBVSxDQUF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AgIDwvc3ZnPlxuXG4gICAgICA8c3BhblxuICAgICAgICAqbmdJZj1cIm5vdGlmaWNhdGlvbkNvdW50ID4gMFwiXG4gICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1mYWJfX2JhZGdlXCJcbiAgICAgID5cbiAgICAgICAge3sgbm90aWZpY2F0aW9uQ291bnQgfX1cbiAgICAgIDwvc3Bhbj5cbiAgICA8L2J1dHRvbj5cbiAgYCxcbn0pXG5leHBvcnQgY2xhc3MgVmZDaGF0Ym90RmFiQW5ndWxhckNvbXBvbmVudCBpbXBsZW1lbnRzIEFmdGVyVmlld0luaXQge1xuICBASW5wdXQoKSBub3RpZmljYXRpb25Db3VudCA9IDA7XG4gIEBJbnB1dCgpIGlzSW5hY3RpdmUgPSBmYWxzZTtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYpIHt9XG5cbiAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.module.mjs b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.module.mjs new file mode 100644 index 0000000000..0e2d51cef6 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/lib/vf-chatbot-fab.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotFabAngularComponent } from './vf-chatbot-fab.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotFabAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, declarations: [VfChatbotFabAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotFabAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotFabAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotFabAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mYWIuYW5ndWxhci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LWZhYi5hbmd1bGFyL3NyYy9saWIvdmYtY2hhdGJvdC1mYWIuYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDOztBQWNsRixNQUFNLE9BQU8seUJBQXlCOytHQUF6Qix5QkFBeUI7Z0hBQXpCLHlCQUF5QixpQkFWbEMsNEJBQTRCLGFBRzVCLFlBQVk7WUFDWixXQUFXLGFBR1gsNEJBQTRCO2dIQUduQix5QkFBeUIsWUFQbEMsWUFBWTtZQUNaLFdBQVc7OzRGQU1GLHlCQUF5QjtrQkFackMsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osNEJBQTRCO3FCQUM3QjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsWUFBWTt3QkFDWixXQUFXO3FCQUNaO29CQUNELE9BQU8sRUFBRTt3QkFDUCw0QkFBNEI7cUJBQzdCO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBGb3Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJzsgXG5pbXBvcnQgeyBWZkNoYXRib3RGYWJBbmd1bGFyQ29tcG9uZW50IH0gZnJvbSAnLi92Zi1jaGF0Ym90LWZhYi5hbmd1bGFyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFZmQ2hhdGJvdEZhYkFuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90RmFiQW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdEZhYkFuZ3VsYXJNb2R1bGUgeyB9XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/public-api.mjs b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..ec85d2f19a --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-fab.angular + */ +export * from './lib/vf-chatbot-fab.angular.component'; +export * from './lib/vf-chatbot-fab.angular.module'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZmFiLmFuZ3VsYXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMscUNBQXFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZmLWNoYXRib3QtZmFiLmFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWZhYi5hbmd1bGFyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWZhYi5hbmd1bGFyLm1vZHVsZSc7XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/vf-chatbot-fab.angular.mjs b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/vf-chatbot-fab.angular.mjs new file mode 100644 index 0000000000..991d26ce2b --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/esm2022/vf-chatbot-fab.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mYWIuYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZmFiLmFuZ3VsYXIvc3JjL3ZmLWNoYXRib3QtZmFiLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs b/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs new file mode 100644 index 0000000000..cff259da78 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs @@ -0,0 +1,154 @@ +import * as i0 from '@angular/core'; +import { Component, Input, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotFabAngularComponent { + constructor(elementRef) { + this.elementRef = elementRef; + this.notificationCount = 0; + this.isInactive = false; + } + ngAfterViewInit() { + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotFabAngularComponent, selector: "vf-chatbot-fab", inputs: { notificationCount: "notificationCount", isInactive: "isInactive" }, ngImport: i0, template: ` + + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-fab', + template: ` + + `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { notificationCount: [{ + type: Input + }], isInactive: [{ + type: Input + }] } }); + +class VfChatbotFabAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, declarations: [VfChatbotFabAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotFabAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFabAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotFabAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotFabAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-fab.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotFabAngularComponent, VfChatbotFabAngularModule }; +//# sourceMappingURL=vf-chatbot-fab.angular.mjs.map diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs.map b/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs.map new file mode 100644 index 0000000000..63906a2185 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/fesm2022/vf-chatbot-fab.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-fab.angular.mjs","sources":["../../../projects/vf-chatbot-fab.angular/src/lib/vf-chatbot-fab.angular.component.ts","../../../projects/vf-chatbot-fab.angular/src/lib/vf-chatbot-fab.angular.module.ts","../../../projects/vf-chatbot-fab.angular/src/public-api.ts","../../../projects/vf-chatbot-fab.angular/src/vf-chatbot-fab.angular.ts"],"sourcesContent":["import {\n Component,\n Input,\n ElementRef,\n AfterViewInit,\n} from '@angular/core';\n\n\n@Component({\n selector: 'vf-chatbot-fab',\n template: `\n \n \n \n \n \n \n \n \n \n \n \n \n\n 0\"\n class=\"vf-chatbot-fab__badge\"\n >\n {{ notificationCount }}\n \n \n `,\n})\nexport class VfChatbotFabAngularComponent implements AfterViewInit {\n @Input() notificationCount = 0;\n @Input() isInactive = false;\n\n constructor(private elementRef: ElementRef) {}\n\n ngAfterViewInit(): void {\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotFabAngularComponent } from './vf-chatbot-fab.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotFabAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotFabAngularComponent\n ]\n})\nexport class VfChatbotFabAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-fab.angular\n */\n\nexport * from './lib/vf-chatbot-fab.angular.component';\nexport * from './lib/vf-chatbot-fab.angular.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MA0Da,4BAA4B,CAAA;AAIvC,IAAA,WAAA,CAAoB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU;QAHrB,IAAiB,CAAA,iBAAA,GAAG,CAAC;QACrB,IAAU,CAAA,UAAA,GAAG,KAAK;;IAI3B,eAAe,GAAA;;+GANJ,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AA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A,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAPlC,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA,CAAA;;4FAMF,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAZrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/index.d.ts b/components/vf-chatbot-fab/vf-chatbot-fab.angular/index.d.ts new file mode 100644 index 0000000000..f17961f898 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.component.d.ts b/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.component.d.ts new file mode 100644 index 0000000000..74e0aefee5 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.component.d.ts @@ -0,0 +1,11 @@ +import { ElementRef, AfterViewInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotFabAngularComponent implements AfterViewInit { + private elementRef; + notificationCount: number; + isInactive: boolean; + constructor(elementRef: ElementRef); + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.module.d.ts b/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.module.d.ts new file mode 100644 index 0000000000..d8408430c0 --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/lib/vf-chatbot-fab.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-fab.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotFabAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/package.json b/components/vf-chatbot-fab/vf-chatbot-fab.angular/package.json new file mode 100644 index 0000000000..59c7a914cf --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-fab.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-fab.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-fab.angular.mjs", + "esm": "./esm2022/vf-chatbot-fab.angular.mjs", + "default": "./fesm2022/vf-chatbot-fab.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-fab/vf-chatbot-fab.angular/public-api.d.ts b/components/vf-chatbot-fab/vf-chatbot-fab.angular/public-api.d.ts new file mode 100644 index 0000000000..671a7d981b --- /dev/null +++ b/components/vf-chatbot-fab/vf-chatbot-fab.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-fab.angular.component'; +export * from './lib/vf-chatbot-fab.angular.module'; diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/.npmignore b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/README.md b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/README.md new file mode 100644 index 0000000000..fa08e18b8b --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotFeedbackAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-feedback.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-feedback.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.component.mjs b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.component.mjs new file mode 100644 index 0000000000..c80a532e8e --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.component.mjs @@ -0,0 +1,179 @@ +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "@angular/forms"; +export class VfChatbotFeedbackAngularComponent { + constructor(el) { + this.el = el; + this.feedback_options = []; + this.type = ''; + this.comment = ''; + this.feedback = new EventEmitter(); + this.commentChange = new EventEmitter(); + this.close = new EventEmitter(); + this.submit = new EventEmitter(); + } + ngAfterViewInit() { + } + onFeedbackClick(optionId) { + this.feedback.emit({ type: this.type, id: optionId }); + } + onCloseClick() { + this.close.emit(); + } + onSubmitClick() { + this.submit.emit(); + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: { feedback_options: "feedback_options", type: "type", comment: "comment" }, outputs: { feedback: "feedback", commentChange: "commentChange", close: "close", submit: "submit" }, ngImport: i0, template: ` +
+
+ +
+
+ Tell us more (optional) +
+ +
+ + +
+ +
+ + + + + + + +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-feedback', + template: ` +
+
+ +
+
+ Tell us more (optional) +
+ +
+ + +
+ +
+ + + + + + + +
+
+ `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { feedback_options: [{ + type: Input + }], type: [{ + type: Input + }], comment: [{ + type: Input + }], feedback: [{ + type: Output + }], commentChange: [{ + type: Output + }], close: [{ + type: Output + }], submit: [{ + type: Output + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci9zcmMvbGliL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBaUIsTUFBTSxlQUFlLENBQUM7Ozs7QUE0RWxHLE1BQU0sT0FBTyxpQ0FBaUM7SUFVNUMsWUFBb0IsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFUekIscUJBQWdCLEdBQXFCLEVBQUUsQ0FBQztRQUN4QyxTQUFJLEdBQVcsRUFBRSxDQUFDO1FBQ2xCLFlBQU8sR0FBVyxFQUFFLENBQUM7UUFFcEIsYUFBUSxHQUFHLElBQUksWUFBWSxFQUFnQyxDQUFDO1FBQzVELGtCQUFhLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztRQUMzQyxVQUFLLEdBQUcsSUF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wibGV0IG9wdGlvbiBvZiBmZWVkYmFja19vcHRpb25zXCJcbiAgICAgICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1mZWVkYmFja19fb3B0aW9uXCJcbiAgICAgICAgICAgIFthdHRyLmRhdGEtZmVlZGJhY2stb3B0aW9uXT1cIm9wdGlvbi5pZFwiXG4gICAgICAgICAgICAoY2xpY2spPVwib25GZWVkYmFja0NsaWNrKG9wdGlvbi5pZClcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHt7IG9wdGlvbi5sYWJlbCB9fVxuICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICA8L2Rpdj5cblxuICAgICAgICA8IS0tIENvbW1lbnQgRmllbGQgLS0+XG4gICAgICAgIDxsYWJlbFxuICAgICAgICAgIGlkPVwidmYtY2hhdGJvdC1mZWVkYmFjay1jb21tZW50LXRpdGxlXCJcbiAgICAgICAgICBmb3I9XCJ2Zi1jaGF0Ym90LWZlZWRiYWNrLWNvbW1lbnRcIlxuICAgICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1mZWVkYmFja19fY29tbWVudC10aXRsZVwiXG4gICAgICAgID5cbiAgICAgICAgICBDb21tZW50c1xuICAgICAgICA8L2xhYmVsPlxuICAgICAgICA8dGV4dGFyZWFcbiAgICAgICAgICBpZD1cInZmLWNoYXRib3QtZmVlZGJhY2stY29tbWVudFwiXG4gICAgICAgICAgYXJpYS1sYWJlbGxlZGJ5PVwidmYtY2hhdGJvdC1mZWVkYmFjay1jb21tZW50LXRpdGxlXCJcbiAgICAgICAgICBjbGFzcz1cInZmLWNoYXRib3QtZmVlZGJhY2tfX2NvbW1lbnRcIlxuICAgICAgICAgIHJvd3M9XCI0XCJcbiAgICAgICAgICBbKG5nTW9kZWwpXT1cImNvbW1lbnRcIlxuICAgICAgICA+PC90ZXh0YXJlYT5cblxuICAgICAgICA8IS0tIFN1Ym1pdCBCdXR0b24gLS0+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICB0eXBlP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GlzLnR5cGUsIGlkOiBvcHRpb25JZCB9KTtcbiAgfVxuXG4gIG9uQ2xvc2VDbGljaygpIHtcbiAgICB0aGlzLmNsb3NlLmVtaXQoKTtcbiAgfVxuXG4gIG9uU3VibWl0Q2xpY2soKSB7XG4gICAgdGhpcy5zdWJtaXQuZW1pdCgpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.module.mjs b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.module.mjs new file mode 100644 index 0000000000..14cfc98138 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/lib/vf-chatbot-feedback.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotFeedbackAngularComponent } from './vf-chatbot-feedback.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotFeedbackAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, declarations: [VfChatbotFeedbackAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotFeedbackAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotFeedbackAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotFeedbackAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci9zcmMvbGliL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxpQ0FBaUMsRUFBRSxNQUFNLHlDQUF5QyxDQUFDOztBQWM1RixNQUFNLE9BQU8sOEJBQThCOytHQUE5Qiw4QkFBOEI7Z0hBQTlCLDhCQUE4QixpQkFWdkMsaUNBQWlDLGFBR2pDLFlBQVk7WUFDWixXQUFXLGFBR1gsaUNBQWlDO2dIQUd4Qiw4QkFBOEIsWUFQdkMsWUFBWTtZQUNaLFdBQVc7OzRGQU1GLDhCQUE4QjtrQkFaMUMsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osaUNBQWlDO3FCQUNsQztvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsWUFBWTt3QkFDWixXQUFXO3FCQUNaO29CQUNELE9BQU8sRUFBRTt3QkFDUCxpQ0FBaUM7cUJBQ2xDO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBGb3Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJzsgXG5pbXBvcnQgeyBWZkNoYXRib3RGZWVkYmFja0FuZ3VsYXJDb21wb25lbnQgfSBmcm9tICcuL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBWZkNoYXRib3RGZWVkYmFja0FuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90RmVlZGJhY2tBbmd1bGFyQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgVmZDaGF0Ym90RmVlZGJhY2tBbmd1bGFyTW9kdWxlIHsgfVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/public-api.mjs b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..7b203027c6 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-feedback.angular + */ +export * from './lib/vf-chatbot-feedback.angular.module'; +export * from './lib/vf-chatbot-feedback.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtZmVlZGJhY2suYW5ndWxhci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyw2Q0FBNkMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvdmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LWZlZWRiYWNrLmFuZ3VsYXIuY29tcG9uZW50JztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/vf-chatbot-feedback.angular.mjs b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/vf-chatbot-feedback.angular.mjs new file mode 100644 index 0000000000..37f4b20104 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/esm2022/vf-chatbot-feedback.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1mZWVkYmFjay5hbmd1bGFyL3NyYy92Zi1jaGF0Ym90LWZlZWRiYWNrLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs new file mode 100644 index 0000000000..0841b5459e --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs @@ -0,0 +1,215 @@ +import * as i0 from '@angular/core'; +import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import * as i2 from '@angular/forms'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotFeedbackAngularComponent { + constructor(el) { + this.el = el; + this.feedback_options = []; + this.type = ''; + this.comment = ''; + this.feedback = new EventEmitter(); + this.commentChange = new EventEmitter(); + this.close = new EventEmitter(); + this.submit = new EventEmitter(); + } + ngAfterViewInit() { + } + onFeedbackClick(optionId) { + this.feedback.emit({ type: this.type, id: optionId }); + } + onCloseClick() { + this.close.emit(); + } + onSubmitClick() { + this.submit.emit(); + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: { feedback_options: "feedback_options", type: "type", comment: "comment" }, outputs: { feedback: "feedback", commentChange: "commentChange", close: "close", submit: "submit" }, ngImport: i0, template: ` +
+
+ +
+
+ Tell us more (optional) +
+ +
+ + +
+ +
+ + + + + + + +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-feedback', + template: ` +
+
+ +
+
+ Tell us more (optional) +
+ +
+ + +
+ +
+ + + + + + + +
+
+ `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { feedback_options: [{ + type: Input + }], type: [{ + type: Input + }], comment: [{ + type: Input + }], feedback: [{ + type: Output + }], commentChange: [{ + type: Output + }], close: [{ + type: Output + }], submit: [{ + type: Output + }] } }); + +class VfChatbotFeedbackAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, declarations: [VfChatbotFeedbackAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotFeedbackAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotFeedbackAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotFeedbackAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotFeedbackAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-feedback.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotFeedbackAngularComponent, VfChatbotFeedbackAngularModule }; +//# sourceMappingURL=vf-chatbot-feedback.angular.mjs.map diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs.map b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs.map new file mode 100644 index 0000000000..a9f8b601cd --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/fesm2022/vf-chatbot-feedback.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-feedback.angular.mjs","sources":["../../../projects/vf-chatbot-feedback.angular/src/lib/vf-chatbot-feedback.angular.component.ts","../../../projects/vf-chatbot-feedback.angular/src/lib/vf-chatbot-feedback.angular.module.ts","../../../projects/vf-chatbot-feedback.angular/src/public-api.ts","../../../projects/vf-chatbot-feedback.angular/src/vf-chatbot-feedback.angular.ts"],"sourcesContent":["import { Component, ElementRef, EventEmitter, Input, Output, AfterViewInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\ninterface FeedbackOption {\n id: string;\n label: string;\n}\n\n@Component({\n selector: 'vf-chatbot-feedback',\n template: `\n \n
\n \n
\n
\n Tell us more (optional)\n
\n \n \n dismiss banner\n \n \n \n
\n\n \n
\n \n {{ option.label }}\n \n
\n\n \n \n Comments\n \n \n\n \n \n Submit\n \n
\n \n `,\n})\nexport class VfChatbotFeedbackAngularComponent implements AfterViewInit {\n @Input() feedback_options: FeedbackOption[] = [];\n @Input() type: string = '';\n @Input() comment: string = '';\n\n @Output() feedback = new EventEmitter<{ type: string; id: string }>();\n @Output() commentChange = new EventEmitter();\n @Output() close = new EventEmitter();\n @Output() submit = new EventEmitter();\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n }\n\n onFeedbackClick(optionId: string) {\n this.feedback.emit({ type: this.type, id: optionId });\n }\n\n onCloseClick() {\n this.close.emit();\n }\n\n onSubmitClick() {\n this.submit.emit();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotFeedbackAngularComponent } from './vf-chatbot-feedback.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotFeedbackAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotFeedbackAngularComponent\n ]\n})\nexport class VfChatbotFeedbackAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-feedback.angular\n */\n\nexport * from './lib/vf-chatbot-feedback.angular.module';\nexport * from './lib/vf-chatbot-feedback.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA4Ea,iCAAiC,CAAA;AAU5C,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAE,CAAA,EAAA,GAAF,EAAE;QATb,IAAgB,CAAA,gBAAA,GAAqB,EAAE;QACvC,IAAI,CAAA,IAAA,GAAW,EAAE;QACjB,IAAO,CAAA,OAAA,GAAW,EAAE;AAEnB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAgC;AAC3D,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAU;AAC1C,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,YAAY,EAAQ;AAChC,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAQ;;IAI3C,eAAe,GAAA;;AAGf,IAAA,eAAe,CAAC,QAAgB,EAAA;AAC9B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EA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,EAAA,CAAA,CAAA;;4FAMF,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAZ1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/index.d.ts b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/index.d.ts new file mode 100644 index 0000000000..3f00443fe3 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.component.d.ts b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.component.d.ts new file mode 100644 index 0000000000..7f66847bef --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.component.d.ts @@ -0,0 +1,27 @@ +import { ElementRef, EventEmitter, AfterViewInit } from '@angular/core'; +import * as i0 from "@angular/core"; +interface FeedbackOption { + id: string; + label: string; +} +export declare class VfChatbotFeedbackAngularComponent implements AfterViewInit { + private el; + feedback_options: FeedbackOption[]; + type: string; + comment: string; + feedback: EventEmitter<{ + type: string; + id: string; + }>; + commentChange: EventEmitter; + close: EventEmitter; + submit: EventEmitter; + constructor(el: ElementRef); + ngAfterViewInit(): void; + onFeedbackClick(optionId: string): void; + onCloseClick(): void; + onSubmitClick(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} +export {}; diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.module.d.ts b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.module.d.ts new file mode 100644 index 0000000000..39af0bfc60 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/lib/vf-chatbot-feedback.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-feedback.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotFeedbackAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/package.json b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/package.json new file mode 100644 index 0000000000..dc4078db1c --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-feedback.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-feedback.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-feedback.angular.mjs", + "esm": "./esm2022/vf-chatbot-feedback.angular.mjs", + "default": "./fesm2022/vf-chatbot-feedback.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/public-api.d.ts b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/public-api.d.ts new file mode 100644 index 0000000000..c5fd300325 --- /dev/null +++ b/components/vf-chatbot-feedback/vf-chatbot-feedback.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-feedback.angular.module'; +export * from './lib/vf-chatbot-feedback.angular.component'; diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/.npmignore b/components/vf-chatbot-modal/vf-chatbot-modal.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/README.md b/components/vf-chatbot-modal/vf-chatbot-modal.angular/README.md new file mode 100644 index 0000000000..2994d5157b --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotModalAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-modal.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-modal.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.component.mjs b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.component.mjs new file mode 100644 index 0000000000..1cdbf9f5f0 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.component.mjs @@ -0,0 +1,672 @@ +import { Component, Input, Output, EventEmitter, ViewChild, Inject, } from '@angular/core'; +import { DOCUMENT } from '@angular/common'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "vf-chatbot-action-prompt.angular"; +import * as i3 from "vf-chatbot-selector.angular"; +import * as i4 from "vf-chatbot-welcome.angular"; +import * as i5 from "vf-chatbot-prompt.angular"; +import * as i6 from "vf-chatbot-feedback.angular"; +import * as i7 from "vf-chatbot-dialog.angular"; +export class VfChatbotModalAngularComponent { + constructor(renderer, document) { + this.renderer = renderer; + this.document = document; + this.messages = []; + this.sources = []; + this.prompts = []; + this.inputValue = ''; + this.onSendMessage = new EventEmitter(); + this.onInputChange = new EventEmitter(); + this.onFeedback = new EventEmitter(); + this.onDialogConfirm = new EventEmitter(); + this.onDialogCancel = new EventEmitter(); + this.qaData = []; + this.loadedScripts = new Set(); + } + ngOnInit() { } + async ngAfterViewInit() { + console.log('VF Chatbot modal component initializing...'); + try { + // Load only the working scripts individually + await this.loadWorkingScripts(); + // Initialize chatbot functionality + this.initializeChatbot(); + } + catch (error) { + console.error('Failed to load chatbot scripts:', error); + // Fallback: try basic initialization in case scripts are already loaded + console.log('Trying fallback initialization...'); + this.initializeChatbot(); + } + console.log('Chatbot modal component ready', this.modalRef); + } + /** + * Load chatbot scripts as ES6 modules + */ + async loadWorkingScripts() { + console.log('Loading ES6 modules...'); + // All chatbot files are ES6 modules (have exports) + const moduleScripts = [ + 'assets/vf-chatbot-fab/vf-chatbot-fab.js', + 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js', + 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js', + 'assets/vf-chatbot-selector/vf-chatbot-selector.js', + 'assets/vf-chatbot-sources/vf-chatbot-sources.js', + 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js' + ]; + // These have both imports AND exports, so they need their dependencies loaded first + const moduleScriptsWithDependencies = [ + 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules + 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules + 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules + ]; + // Load independent modules first + for (const scriptSrc of moduleScripts) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + // Then load modules with dependencies + for (const scriptSrc of moduleScriptsWithDependencies) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + } + /** + * Load a single script as ES6 module + */ + loadSingleScript(src) { + return new Promise((resolve, reject) => { + if (this.loadedScripts.has(src)) { + console.log(`Script already loaded in cache: ${src}`); + resolve(); + return; + } + // Check if script already exists in DOM + const existingScript = this.document.querySelector(`script[src="${src}"]`); + if (existingScript) { + console.log(`Script already loaded in DOM: ${src}`); + this.loadedScripts.add(src); + resolve(); + return; + } + const script = this.renderer.createElement('script'); + script.type = 'module'; // Load as ES6 module + script.src = src; + script.async = true; + script.onload = () => { + this.loadedScripts.add(src); + console.log(`Loaded ES6 module: ${src}`); + resolve(); + }; + script.onerror = (error) => { + console.error(`Failed to load module: ${src}`, error); + // Mark as failed but resolve to continue with other scripts + this.loadedScripts.add(src + '_failed'); + resolve(); + }; + this.renderer.appendChild(this.document.head, script); + }); + } + /** + * Initialize chatbot functionality after scripts are loaded + */ + initializeChatbot() { + console.log('Initializing chatbot functionality...'); + // Access the globally exposed initialization functions + try { + let initializedCount = 0; + // All potential initialization functions from ES6 modules + const allInitFunctions = [ + 'initVFChatbotFab', + 'initVFChatbotDialog', + 'initVFChatbotFeedback', + 'initVFChatbotSelector', + 'initVFChatbotSources', + 'initVFChatbotWelcome', + 'initVFChatbot' + ]; + allInitFunctions.forEach(funcName => { + if (typeof window[funcName] === 'function') { + try { + if (funcName === 'initVFChatbot') { + window[funcName](this.config); + } + else { + window[funcName](); + } + console.log(`${funcName} initialized`); + initializedCount++; + } + catch (error) { + console.warn(`${funcName} failed to initialize:`, error); + } + } + else { + console.log(`${funcName} not available (module may not have loaded)`); + } + }); + console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`); + if (initializedCount === 0) { + console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.'); + } + } + catch (error) { + console.error('Error initializing chatbot functionality:', error); + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularComponent, deps: [{ token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotModalAngularComponent, selector: "vf-chatbot-modal", inputs: { config: "config", messages: "messages", sources: "sources", prompts: "prompts", inputValue: "inputValue" }, outputs: { onSendMessage: "onSendMessage", onInputChange: "onInputChange", onFeedback: "onFeedback", onDialogConfirm: "onDialogConfirm", onDialogCancel: "onDialogCancel" }, viewQueries: [{ propertyName: "modalRef", first: true, predicate: ["modalRef"], descendants: true }], ngImport: i0, template: ` + + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: ["action_url", "action_text", "action_target"], outputs: ["actionClick"] }, { kind: "component", type: i3.VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: ["chatbotRoutes", "context"] }, { kind: "component", type: i4.VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: ["qaData", "welcome_logo", "welcome_logo_url", "welcome_logo_alt", "welcome_title", "welcome_message", "welcome_suggestions_title", "enable_welcome_suggestions", "welcome_max_suggestions", "enable_qa_data_loading", "enable_predefined_qa", "enable_fallback_responses", "qa_data_url"] }, { kind: "component", type: i5.VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: ["type", "isLoading", "avatar", "content", "sources", "prompts", "allowFeedback"] }, { kind: "component", type: i6.VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: ["feedback_options", "type", "comment"], outputs: ["feedback", "commentChange", "close", "submit"] }, { kind: "component", type: i7.VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: ["title", "message", "cancelLabel", "confirmLabel"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-modal', + template: ` + + `, + }] + }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: Document, decorators: [{ + type: Inject, + args: [DOCUMENT] + }] }], propDecorators: { config: [{ + type: Input + }], messages: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], inputValue: [{ + type: Input + }], onSendMessage: [{ + type: Output + }], onInputChange: [{ + type: Output + }], onFeedback: [{ + type: Output + }], onDialogConfirm: [{ + type: Output + }], onDialogCancel: [{ + type: Output + }], modalRef: [{ + type: ViewChild, + args: ['modalRef'] + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtbW9kYWwuYW5ndWxhci9zcmMvbGliL3Zm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ICAgICA+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwidmYtYmFubmVyIHZmLWJhbm5lci0tYWxlcnQgdmYtYmFubmVyLS1pbmZvXCI+XG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ2Zi1iYW5uZXJfX2NvbnRlbnRcIj5cbiAgICAgICAgICAgICAgICA8cFxuICAgICAgICAgICAgICAgICAgY2xhc3M9XCJ2Zi1iYW5uZXJfX3RleHRcIlxuICAgICAgICAgICAgICAgICAgW2lubmVySFRNTF09XCJjb25maWcuZGlzY2xhaW1lclwiXG4gICAgICAgICAgICAgICAgPjwvcD5cbiAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICByb2xlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICAgIGFyaWEtbGFiZWw9XCJjbG9zZSBub3RpZmljYXRpb24gYmFubmVyXCJcbiAgICAgICAgICAgICAgICAgIGNsYXNzPVwidmYtYnV0dG9uIHZmLWJ1dHRvbi0taWNvbiB2Zi1idXR0b24tLWRpc21pc3MgfCB2Zi1iYW5uZXJfX2J1dHRvblwiXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwiY29uZmlnPy5vbkRpc21pc3NEaXNjbGFpbWVyPy4oKVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgPHN2ZyB4bWxucz1cImh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnXCIgdmlld0JveD1cIjAgMCAyNCAyNFwiPlxuICAgICAgICAgICAgICAgICAgICA8dGl0bGU+ZGlzbWlzcyBiYW5uZXI8L3RpdGxlPlxuICAgICAgICAgICAgICAgICAgICA8cGF0aFxuICAgICAgICAgICAgICAgICAgICAgIGQ9XCJNMTQuMywxMi4xNzlhLjI1LjI1LDAsMCwxLDAtLjM1NGw5LjI2My05LjI2MkExLjUsMS41LDAsMCwwLDIxLjQzOS40NDJMMTIuMTc3LDkuN2EuMjUuMjUsMCwwLDEtLjM1NCww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50J1wiXG4gICAgICAgICAgICAgIFtpc0xvYWRpbmddPVwidHJ1ZVwiXG4gICAgICAgICAgICAgIFthdmF0YXJdPVwie1xuICAgICAgICAgICAgICAgIHNyYzogY29uZmlnLmljb25zLmFzc2lzdGFudF9hdmF0YXIsXG4gICAgICAgICAgICAgICAgYWx0OiBjb25maWcudGl0bGUsXG4gICAgICAgICAgICAgICAgbmFtZTogY29uZmlnLnRpdGxlXG4gICAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgPjwvdmYtY2hhdGJvdC1wcm9tcHQ+XG4gICAgICAgICAgPC90ZW1wbGF0ZT5cblxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPHRlbXBsYXRlIGlkPVwiYXNzaXN0YW50LW1lc3NhZ2UtdGVtcGxhdGVcIj5cbiAgICAgICAgPHZmLWNoYXRib3QtcHJvbXB0XG4gICAgICAgICAgW3R5cGVdPSBcIidhc3Npc3RhbnQnXCJcbiAgICAgICAgICBbY29udGVudF09IFwiJ0hvdyBjYW4gSSBoZWxwIHlvdT8nXCJcbiAgICAgICAgICBbYXZhdGFyXT1cIntcbiAgICAgICAgICAgIHNyYzogY29uZmlnLmljb25zLmFzc2lzdGFudF9hdmF0YXIsXG4gICAgICAgICAgICBhbHQ6IGNvbmZpZy50aXRsZSxcbiAgICAgICAgICAgIG5hbWU6IGNvbmZpZy50aXRsZVxuICAgICAgICAgIH1cIlxuICAgICAgICAgIFthbGxvd0ZlZWRiYWNrXT0gXCJjb25maWcuZmVhdHVyZXMuZW5hYmxlX2ZlZWRiYWNrXCJcbiAgICAgICAgICA+PC92Zi1jaGF0Ym90LXByb21wdD5cbiAgICAgICAgPCEtLSBGZWVkYmFjayAtLT5cbiAgICAgICAgPGRpdiBcbiAgICAgICAgICBjbGFzcz1cInZmLWNoYXRib3QtZmVlZGJhY2sgdmYtdS1tYXJnaW5fX3RvcC0tMjAwXCIgXG4gICAgICAgICAgKm5nSWY9XCJjb25maWcuZmVhdHVyZX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cHRzLmFkZChzcmMpO1xuICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgXG4gICAgICAgIGNvbnN0IHNjcmlwdCA9IHRoaXMucmVuZGVyZXIuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7XG4gICAgICAgIHNjcmlwdC50eXBlID0gJ21vZHVsZSc7IC8vIExvYWQgYXMgRVM2IG1vZHVsZVxuICAgICAgICBzY3JpcHQuc3JjID0gc3JjO1xuICAgICAgICBzY3JpcHQuYXN5bmMgPSB0cnVlO1xuICAgICAgICBcbiAgICAgICAgc2NyaXB0Lm9ubG9hZCA9ICgpID0+IHtcbiAgICAgICAgICB0aGlzLmxvYWRlZFNjcmlwdHMuYWRkKHNyYyk7XG4gICAgICAgICAgY29uc29sZS5sb2coYExvYWRlZCBFUzYgbW9kdWxlOiAke3NyY31gKTtcbiAgICAgICAgICByZXNvbHZlKCk7XG4gICAgICAgIH07XG4gICAgICAgIFxuICAgICAgICBzY3JpcHQub25lcnJvciA9IChlcnJvcjogYW55KSA9PiB7XG4gICAgICAgICAgY29uc29sZS5lcnJvcihgRmFpbGVkIHRvIGxvYWQgbW9kdWxlOiAke3NyY31gLCBlcnJvcik7XG4gICAgICAgICAgLy8gTWFyayBhcyBmYWlsZWQgYnV0IHJlc29sdmUgdG8gY29udGludWUgd2l0aCBvdGhlciBzY3JpcHRzXG4gICAgICAgICAgdGhpcy5sb2FkZWRTY3JpcHRzLmFkZChzcmMgKyAnX2ZhaWxlZCcpO1xuICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgfTtcbiAgICAgICAgXG4gICAgICAgIHRoaXMucmVuZGVyZXIuYXBwZW5kQ2hpbGQodGhpcy5kb2N1bWVudC5oZWFkLCBzY3JpcHQpO1xuICAgICAgfSk7XG4gICAgfVxuICBcbiAgICAvKipcbiAgICAgKiBJbml0aWFsaXplIGNoYXRib3QgZnVuY3Rpb25hbGl0eSBhZnRlciBzY3JpcHRzIGFyZSBsb2FkZWRcbiAgICAgKi9cbiAgICBwcml2YXRlIGluaXRpYWxpemVDaGF0Ym90KCk6IHZvaWQge1xuICAgICAgY29uc29sZS5sb2coJ0luaXRpYWxpemluZyBjaGF0Ym90IGZ1bmN0aW9uYWxpdHkuLi4nKTtcbiAgICAgIFxuICAgICAgLy8gQWNjZXNzIHRoZSBnbG9iYWxseSBleHBvc2VkIGluaXRpYWxpemF0aW9uIGZ1bmN0aW9uc1xuICAgICAgdHJ5IHtcbiAgICAgICAgbGV0IGluaXRpYWxpemVkQ291bnQgPSAwO1xuICAgICAgICBcbiAgICAgICAgLy8gQWxsIHBvdGVudGlhbCBpbml0aWFsaXphdGlvbiBmdW5jdGlvbnMgZnJvbSBFUzYgbW9kdWxlc1xuICAgICAgICBjb25zdCBhbGxJbml0RnVuY3Rpb25zID0gW1xuICAgICAgICAgICdpbml0VkZDaGF0Ym90RmFiJyxcbiAgICAgICAgICAnaW5pdFZGQ2hhdGJvdERpYWxvZycsIFxuICAgICAgICAgICdpbml0VkZDaGF0Ym90RmVlZGJhY2snLFxuICAgICAgICAgICdpbml0VkZDaGF0Ym90U2VsZWN0b3InLFxuICAgICAgICAgICdpbml0VkZDaGF0Ym90U291cmNlcycsXG4gICAgICAgICAgJ2luaXRWRkNoYXRib3RXZWxjb21lJyxcbiAgICAgICAgICAnaW5pdFZGQ2hhdGJvdCcgXG4gICAgICAgIF07XG4gICAgICAgIFxuICAgICAgICBhbGxJbml0RnVuY3Rpb25zLmZvckVhY2goZnVuY05hbWUgPT4ge1xuICAgICAgICAgIGlmICh0eXBlb2YgKHdpbmRvdyBhcyBhbnkpW2Z1bmNOYW1lXSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgaWYgKGZ1bmNOYW1lID09PSAnaW5pdFZGQ2hhdGJvdCcpIHtcbiAgICAgICAgICAgICAgICAod2luZG93IGFzIGFueSlbZnVuY05hbWVdKHRoaXMuY29uZmlnKTtcbiAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAod2luZG93IGFzIGFueSlbZnVuY05hbWVdKCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgY29uc29sZS5sb2coYCR7ZnVuY05hbWV9IGluaXRpYWxpemVkYCk7XG4gICAgICAgICAgICAgIGluaXRpYWxpemVkQ291bnQrKztcbiAgICAgICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICAgIGNvbnNvbGUud2FybihgJHtmdW5jTmFtZX0gZmFpbGVkIHRvIGluaXRpYWxpemU6YCwgZXJyb3IpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhgJHtmdW5jTmFtZX0gbm90IGF2YWlsYWJsZSAobW9kdWxlIG1heSBub3QgaGF2ZSBsb2FkZWQpYCk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgXG4gICAgICAgIGNvbnNvbGUubG9nKGBDaGF0Ym90IGluaXRpYWxpemF0aW9uIGNvbXBsZXRlLiAke2luaXRpYWxpemVkQ291bnR9IGNvbXBvbmVudHMgaW5pdGlhbGl6ZWQuYCk7XG4gICAgICAgIFxuICAgICAgICBpZiAoaW5pdGlhbGl6ZWRDb3VudCA9PT0gMCkge1xuICAgICAgICAgIGNvbnNvbGUud2FybignTm8gY2hhdGJvdCBmdW5jdGlvbnMgd2VyZSBpbml0aWFsaXplZC4gQ2hlY2sgdGhhdCBFUzYgbW9kdWxlcyBsb2FkZWQgY29ycmVjdGx5LicpO1xuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcignRXJyb3IgaW5pdGlhbGl6aW5nIGNoYXRib3QgZnVuY3Rpb25hbGl0eTonLCBlcnJvcik7XG4gICAgICB9XG4gICAgfVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.module.mjs b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.module.mjs new file mode 100644 index 0000000000..2955868545 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/lib/vf-chatbot-modal.angular.module.mjs @@ -0,0 +1,52 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotModalAngularComponent } from './vf-chatbot-modal.angular.component'; +import { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular'; +import { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular'; +import { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular'; +import { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular'; +import { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular'; +import { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular'; +import * as i0 from "@angular/core"; +export class VfChatbotModalAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, declarations: [VfChatbotModalAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule], exports: [VfChatbotModalAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotModalAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule + ], + exports: [ + VfChatbotModalAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtbW9kYWwuYW5ndWxhci9zcmMvbGliL3ZmLWNoYXRib3QtbW9kYWwuYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQ3RGLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQzdFLE9BQU8sRUFBRSw2QkFBNkIsRUFBRS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VmZDaGF0Ym90U2VsZWN0b3JBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdFdlbGNvbWVBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdFByb21wdEFuZ3VsYXJNb2R1bGUsXG4gICAgVmZDaGF0Ym90RmVlZGJhY2tBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdERpYWxvZ0FuZ3VsYXJNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFZmQ2hhdGJvdE1vZGFsQW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdE1vZGFsQW5ndWxhck1vZHVsZSB7IH1cbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/public-api.mjs b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..d02b7589d9 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-modal.angular + */ +export * from './lib/vf-chatbot-modal.angular.module'; +export * from './lib/vf-chatbot-modal.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtbW9kYWwuYW5ndWxhci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYywwQ0FBMEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvdmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LW1vZGFsLmFuZ3VsYXIuY29tcG9uZW50JztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/vf-chatbot-modal.angular.mjs b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/vf-chatbot-modal.angular.mjs new file mode 100644 index 0000000000..7a42b19866 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/esm2022/vf-chatbot-modal.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1tb2RhbC5hbmd1bGFyL3NyYy92Zi1jaGF0Ym90LW1vZGFsLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs b/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs new file mode 100644 index 0000000000..8e1aae59f7 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs @@ -0,0 +1,731 @@ +import * as i0 from '@angular/core'; +import { EventEmitter, Component, Inject, Input, Output, ViewChild, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { DOCUMENT, CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import * as i2 from 'vf-chatbot-action-prompt.angular'; +import { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular'; +import * as i3 from 'vf-chatbot-selector.angular'; +import { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular'; +import * as i4 from 'vf-chatbot-welcome.angular'; +import { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular'; +import * as i5 from 'vf-chatbot-prompt.angular'; +import { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular'; +import * as i6 from 'vf-chatbot-feedback.angular'; +import { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular'; +import * as i7 from 'vf-chatbot-dialog.angular'; +import { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular'; + +class VfChatbotModalAngularComponent { + constructor(renderer, document) { + this.renderer = renderer; + this.document = document; + this.messages = []; + this.sources = []; + this.prompts = []; + this.inputValue = ''; + this.onSendMessage = new EventEmitter(); + this.onInputChange = new EventEmitter(); + this.onFeedback = new EventEmitter(); + this.onDialogConfirm = new EventEmitter(); + this.onDialogCancel = new EventEmitter(); + this.qaData = []; + this.loadedScripts = new Set(); + } + ngOnInit() { } + async ngAfterViewInit() { + console.log('VF Chatbot modal component initializing...'); + try { + // Load only the working scripts individually + await this.loadWorkingScripts(); + // Initialize chatbot functionality + this.initializeChatbot(); + } + catch (error) { + console.error('Failed to load chatbot scripts:', error); + // Fallback: try basic initialization in case scripts are already loaded + console.log('Trying fallback initialization...'); + this.initializeChatbot(); + } + console.log('Chatbot modal component ready', this.modalRef); + } + /** + * Load chatbot scripts as ES6 modules + */ + async loadWorkingScripts() { + console.log('Loading ES6 modules...'); + // All chatbot files are ES6 modules (have exports) + const moduleScripts = [ + 'assets/vf-chatbot-fab/vf-chatbot-fab.js', + 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js', + 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js', + 'assets/vf-chatbot-selector/vf-chatbot-selector.js', + 'assets/vf-chatbot-sources/vf-chatbot-sources.js', + 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js' + ]; + // These have both imports AND exports, so they need their dependencies loaded first + const moduleScriptsWithDependencies = [ + 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules + 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules + 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules + ]; + // Load independent modules first + for (const scriptSrc of moduleScripts) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + // Then load modules with dependencies + for (const scriptSrc of moduleScriptsWithDependencies) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + } + /** + * Load a single script as ES6 module + */ + loadSingleScript(src) { + return new Promise((resolve, reject) => { + if (this.loadedScripts.has(src)) { + console.log(`Script already loaded in cache: ${src}`); + resolve(); + return; + } + // Check if script already exists in DOM + const existingScript = this.document.querySelector(`script[src="${src}"]`); + if (existingScript) { + console.log(`Script already loaded in DOM: ${src}`); + this.loadedScripts.add(src); + resolve(); + return; + } + const script = this.renderer.createElement('script'); + script.type = 'module'; // Load as ES6 module + script.src = src; + script.async = true; + script.onload = () => { + this.loadedScripts.add(src); + console.log(`Loaded ES6 module: ${src}`); + resolve(); + }; + script.onerror = (error) => { + console.error(`Failed to load module: ${src}`, error); + // Mark as failed but resolve to continue with other scripts + this.loadedScripts.add(src + '_failed'); + resolve(); + }; + this.renderer.appendChild(this.document.head, script); + }); + } + /** + * Initialize chatbot functionality after scripts are loaded + */ + initializeChatbot() { + console.log('Initializing chatbot functionality...'); + // Access the globally exposed initialization functions + try { + let initializedCount = 0; + // All potential initialization functions from ES6 modules + const allInitFunctions = [ + 'initVFChatbotFab', + 'initVFChatbotDialog', + 'initVFChatbotFeedback', + 'initVFChatbotSelector', + 'initVFChatbotSources', + 'initVFChatbotWelcome', + 'initVFChatbot' + ]; + allInitFunctions.forEach(funcName => { + if (typeof window[funcName] === 'function') { + try { + if (funcName === 'initVFChatbot') { + window[funcName](this.config); + } + else { + window[funcName](); + } + console.log(`${funcName} initialized`); + initializedCount++; + } + catch (error) { + console.warn(`${funcName} failed to initialize:`, error); + } + } + else { + console.log(`${funcName} not available (module may not have loaded)`); + } + }); + console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`); + if (initializedCount === 0) { + console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.'); + } + } + catch (error) { + console.error('Error initializing chatbot functionality:', error); + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularComponent, deps: [{ token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotModalAngularComponent, selector: "vf-chatbot-modal", inputs: { config: "config", messages: "messages", sources: "sources", prompts: "prompts", inputValue: "inputValue" }, outputs: { onSendMessage: "onSendMessage", onInputChange: "onInputChange", onFeedback: "onFeedback", onDialogConfirm: "onDialogConfirm", onDialogCancel: "onDialogCancel" }, viewQueries: [{ propertyName: "modalRef", first: true, predicate: ["modalRef"], descendants: true }], ngImport: i0, template: ` + + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: ["action_url", "action_text", "action_target"], outputs: ["actionClick"] }, { kind: "component", type: i3.VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: ["chatbotRoutes", "context"] }, { kind: "component", type: i4.VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: ["qaData", "welcome_logo", "welcome_logo_url", "welcome_logo_alt", "welcome_title", "welcome_message", "welcome_suggestions_title", "enable_welcome_suggestions", "welcome_max_suggestions", "enable_qa_data_loading", "enable_predefined_qa", "enable_fallback_responses", "qa_data_url"] }, { kind: "component", type: i5.VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: ["type", "isLoading", "avatar", "content", "sources", "prompts", "allowFeedback"] }, { kind: "component", type: i6.VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: ["feedback_options", "type", "comment"], outputs: ["feedback", "commentChange", "close", "submit"] }, { kind: "component", type: i7.VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: ["title", "message", "cancelLabel", "confirmLabel"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-modal', + template: ` + + `, + }] + }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: Document, decorators: [{ + type: Inject, + args: [DOCUMENT] + }] }], propDecorators: { config: [{ + type: Input + }], messages: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], inputValue: [{ + type: Input + }], onSendMessage: [{ + type: Output + }], onInputChange: [{ + type: Output + }], onFeedback: [{ + type: Output + }], onDialogConfirm: [{ + type: Output + }], onDialogCancel: [{ + type: Output + }], modalRef: [{ + type: ViewChild, + args: ['modalRef'] + }] } }); + +class VfChatbotModalAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, declarations: [VfChatbotModalAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule], exports: [VfChatbotModalAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotModalAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotModalAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule + ], + exports: [ + VfChatbotModalAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-modal.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotModalAngularComponent, VfChatbotModalAngularModule }; +//# sourceMappingURL=vf-chatbot-modal.angular.mjs.map diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs.map b/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs.map new file mode 100644 index 0000000000..96c395f437 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/fesm2022/vf-chatbot-modal.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-modal.angular.mjs","sources":["../../../projects/vf-chatbot-modal.angular/src/lib/vf-chatbot-modal.angular.component.ts","../../../projects/vf-chatbot-modal.angular/src/lib/vf-chatbot-modal.angular.module.ts","../../../projects/vf-chatbot-modal.angular/src/public-api.ts","../../../projects/vf-chatbot-modal.angular/src/vf-chatbot-modal.angular.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n Input,\n Output,\n EventEmitter,\n OnInit,\n AfterViewInit,\n ViewChild,\n ViewEncapsulation,\n Renderer2,\n Inject,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n\n@Component({\n selector: 'vf-chatbot-modal',\n template: `\n\n \n
\n
\n \n \n \n \n
\n
\n \n
\n \n {{ config?.selectorContext?.selector_logo_title }}\n \n
\n
\n
\n
\n
\n\n
\n \n \"Minimize\n \n \n \"Close\n \n
\n
\n\n \n
\n
\n \n \n\n \n \n \n \n
\n\n \n \n
\n
\n

\n \n \n dismiss banner\n \n \n \n
\n
\n
\n \n\n \n
\n
\n Ask me\n \n \n \"Send\"\n \n
\n
\n \n\n\n \n Your current conversation history will be permanently deleted.'\"\n [cancelLabel] = \"'Keep chat open'\"\n [confirmLabel] = \"'Close and delete'\"\n >\n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n `,\n})\nexport class VfChatbotModalAngularComponent implements AfterViewInit {\n @Input() config: any;\n @Input() messages: any[] = [];\n @Input() sources: any[] = [];\n @Input() prompts: any[] = [];\n @Input() inputValue = '';\n \n @Output() onSendMessage = new EventEmitter();\n @Output() onInputChange = new EventEmitter();\n @Output() onFeedback = new EventEmitter();\n @Output() onDialogConfirm = new EventEmitter();\n @Output() onDialogCancel = new EventEmitter();\n \n @ViewChild('modalRef') modalRef!: ElementRef;\n \n qaData: any[] = [];\n private loadedScripts = new Set();\n \n constructor(\n private renderer: Renderer2,\n @Inject(DOCUMENT) private document: Document\n ) {}\n \n ngOnInit() {}\n \n async ngAfterViewInit() {\n console.log('VF Chatbot modal component initializing...');\n \n try {\n // Load only the working scripts individually\n await this.loadWorkingScripts();\n \n // Initialize chatbot functionality \n this.initializeChatbot();\n \n } catch (error) {\n console.error('Failed to load chatbot scripts:', error);\n \n // Fallback: try basic initialization in case scripts are already loaded\n console.log('Trying fallback initialization...');\n this.initializeChatbot();\n }\n \n console.log('Chatbot modal component ready', this.modalRef);\n }\n \n /**\n * Load chatbot scripts as ES6 modules\n */\n private async loadWorkingScripts(): Promise {\n console.log('Loading ES6 modules...');\n \n // All chatbot files are ES6 modules (have exports)\n const moduleScripts = [\n 'assets/vf-chatbot-fab/vf-chatbot-fab.js',\n 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js',\n 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js',\n 'assets/vf-chatbot-selector/vf-chatbot-selector.js',\n 'assets/vf-chatbot-sources/vf-chatbot-sources.js',\n 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js'\n ];\n \n // These have both imports AND exports, so they need their dependencies loaded first\n const moduleScriptsWithDependencies = [\n 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules\n 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules\n 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules\n ];\n \n // Load independent modules first\n for (const scriptSrc of moduleScripts) {\n try {\n await this.loadSingleScript(scriptSrc);\n } catch (error) {\n console.warn(`Skipped ${scriptSrc}:`, error);\n }\n }\n \n // Then load modules with dependencies\n for (const scriptSrc of moduleScriptsWithDependencies) {\n try {\n await this.loadSingleScript(scriptSrc);\n } catch (error) {\n console.warn(`Skipped ${scriptSrc}:`, error);\n }\n }\n }\n \n /**\n * Load a single script as ES6 module\n */\n private loadSingleScript(src: string): Promise {\n return new Promise((resolve, reject) => {\n if (this.loadedScripts.has(src)) {\n console.log(`Script already loaded in cache: ${src}`);\n resolve();\n return;\n }\n \n // Check if script already exists in DOM\n const existingScript = this.document.querySelector(`script[src=\"${src}\"]`);\n if (existingScript) {\n console.log(`Script already loaded in DOM: ${src}`);\n this.loadedScripts.add(src);\n resolve();\n return;\n }\n \n const script = this.renderer.createElement('script');\n script.type = 'module'; // Load as ES6 module\n script.src = src;\n script.async = true;\n \n script.onload = () => {\n this.loadedScripts.add(src);\n console.log(`Loaded ES6 module: ${src}`);\n resolve();\n };\n \n script.onerror = (error: any) => {\n console.error(`Failed to load module: ${src}`, error);\n // Mark as failed but resolve to continue with other scripts\n this.loadedScripts.add(src + '_failed');\n resolve();\n };\n \n this.renderer.appendChild(this.document.head, script);\n });\n }\n \n /**\n * Initialize chatbot functionality after scripts are loaded\n */\n private initializeChatbot(): void {\n console.log('Initializing chatbot functionality...');\n \n // Access the globally exposed initialization functions\n try {\n let initializedCount = 0;\n \n // All potential initialization functions from ES6 modules\n const allInitFunctions = [\n 'initVFChatbotFab',\n 'initVFChatbotDialog', \n 'initVFChatbotFeedback',\n 'initVFChatbotSelector',\n 'initVFChatbotSources',\n 'initVFChatbotWelcome',\n 'initVFChatbot' \n ];\n \n allInitFunctions.forEach(funcName => {\n if (typeof (window as any)[funcName] === 'function') {\n try {\n if (funcName === 'initVFChatbot') {\n (window as any)[funcName](this.config);\n } else {\n (window as any)[funcName]();\n }\n console.log(`${funcName} initialized`);\n initializedCount++;\n } catch (error) {\n console.warn(`${funcName} failed to initialize:`, error);\n }\n } else {\n console.log(`${funcName} not available (module may not have loaded)`);\n }\n });\n \n console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`);\n \n if (initializedCount === 0) {\n console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.');\n }\n \n } catch (error) {\n console.error('Error initializing chatbot functionality:', error);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotModalAngularComponent } from './vf-chatbot-modal.angular.component';\nimport { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular';\nimport { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular';\nimport { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular';\nimport { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular';\nimport { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular';\nimport { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular';\n\n@NgModule({\n declarations: [\n VfChatbotModalAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n VfChatbotActionPromptAngularModule,\n VfChatbotSelectorAngularModule,\n VfChatbotWelcomeAngularModule,\n VfChatbotPromptAngularModule,\n VfChatbotFeedbackAngularModule,\n VfChatbotDialogAngularModule\n ],\n exports: [\n VfChatbotModalAngularComponent\n ]\n})\nexport class VfChatbotModalAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-modal.angular\n */\n\nexport * from './lib/vf-chatbot-modal.angular.module';\nexport * from './lib/vf-chatbot-modal.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MA+Pa,8BAA8B,CAAA;IAkBvC,WACU,CAAA,QAAmB,EACD,QAAkB,EAAA;QADpC,IAAQ,CAAA,QAAA,GAAR,QAAQ;QACU,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAlB3B,IAAQ,CAAA,QAAA,GAAU,EAAE;QACpB,IAAO,CAAA,OAAA,GAAU,EAAE;QACnB,IAAO,CAAA,OAAA,GAAU,EAAE;QACnB,IAAU,CAAA,UAAA,GAAG,EAAE;AAEd,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAQ;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAS;AACzC,QAAA,IAAA,CAAA,UAAU,GAAG,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,CAAA;;4FAMnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAlBvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,kCAAkC;wBAClC,8BAA8B;wBAC9B,6BAA6B;wBAC7B,4BAA4B;wBAC5B,8BAA8B;wBAC9B;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AC5BD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/index.d.ts b/components/vf-chatbot-modal/vf-chatbot-modal.angular/index.d.ts new file mode 100644 index 0000000000..b55ed1b418 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.component.d.ts b/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.component.d.ts new file mode 100644 index 0000000000..82b20d0582 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.component.d.ts @@ -0,0 +1,36 @@ +import { ElementRef, EventEmitter, AfterViewInit, Renderer2 } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotModalAngularComponent implements AfterViewInit { + private renderer; + private document; + config: any; + messages: any[]; + sources: any[]; + prompts: any[]; + inputValue: string; + onSendMessage: EventEmitter; + onInputChange: EventEmitter; + onFeedback: EventEmitter; + onDialogConfirm: EventEmitter; + onDialogCancel: EventEmitter; + modalRef: ElementRef; + qaData: any[]; + private loadedScripts; + constructor(renderer: Renderer2, document: Document); + ngOnInit(): void; + ngAfterViewInit(): Promise; + /** + * Load chatbot scripts as ES6 modules + */ + private loadWorkingScripts; + /** + * Load a single script as ES6 module + */ + private loadSingleScript; + /** + * Initialize chatbot functionality after scripts are loaded + */ + private initializeChatbot; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.module.d.ts b/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.module.d.ts new file mode 100644 index 0000000000..6d0cd48eb9 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/lib/vf-chatbot-modal.angular.module.d.ts @@ -0,0 +1,15 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-modal.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +import * as i4 from "vf-chatbot-action-prompt.angular"; +import * as i5 from "vf-chatbot-selector.angular"; +import * as i6 from "vf-chatbot-welcome.angular"; +import * as i7 from "vf-chatbot-prompt.angular"; +import * as i8 from "vf-chatbot-feedback.angular"; +import * as i9 from "vf-chatbot-dialog.angular"; +export declare class VfChatbotModalAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/package.json b/components/vf-chatbot-modal/vf-chatbot-modal.angular/package.json new file mode 100644 index 0000000000..a8572a4a64 --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-modal.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-modal.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-modal.angular.mjs", + "esm": "./esm2022/vf-chatbot-modal.angular.mjs", + "default": "./fesm2022/vf-chatbot-modal.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-modal/vf-chatbot-modal.angular/public-api.d.ts b/components/vf-chatbot-modal/vf-chatbot-modal.angular/public-api.d.ts new file mode 100644 index 0000000000..c887b966fc --- /dev/null +++ b/components/vf-chatbot-modal/vf-chatbot-modal.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-modal.angular.module'; +export * from './lib/vf-chatbot-modal.angular.component'; diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/.npmignore b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/README.md b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/README.md new file mode 100644 index 0000000000..d1329d7caa --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotPromptAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-prompt.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-prompt.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.component.mjs b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.component.mjs new file mode 100644 index 0000000000..837460ea5b --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.component.mjs @@ -0,0 +1,143 @@ +import { Component, Input } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +export class VfChatbotPromptAngularComponent { + constructor() { + this.type = ''; + this.isLoading = false; + this.avatar = {}; + this.content = ''; + this.sources = ''; + this.prompts = ''; + this.allowFeedback = true; + } + shouldShowAvatarName(position) { + return this.avatar?.name && this.type === position; + } + hasAvatarImage() { + return !!this.avatar?.src; + } + messageClasses() { + let classes = `vf-chatbot-message vf-chatbot-message--${this.type} vf-u-margin__top--400`; + if (this.isLoading) { + classes += ' vf-chatbot-message--loading'; + } + return classes; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: { type: "type", isLoading: "isLoading", avatar: "avatar", content: "content", sources: "sources", prompts: "prompts", allowFeedback: "allowFeedback" }, ngImport: i0, template: ` +
+ + +
+ + + + {{ avatar?.name }} + + + + + + + + {{ avatar?.name }} + +
+ + +
+ + +
+ + + +
+ + +
+
+
+ +
+ + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-prompt', + template: ` +
+ + +
+ + + + {{ avatar?.name }} + + + + + + + + {{ avatar?.name }} + +
+ + +
+ + +
+ + + +
+ + +
+
+
+ +
+ + ` + }] + }], propDecorators: { type: [{ + type: Input + }], isLoading: [{ + type: Input + }], avatar: [{ + type: Input + }], content: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], allowFeedback: [{ + type: Input + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1wcm9tcHQuYW5ndWxhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LXByb21wdC5hbmd1bGFyL3NyYy9saWIvdmYtY2hhdGJvdC1wcm9tcHQuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQXFEakQsTUFBTSxPQUFPLCtCQUErQjtJQWxENUM7UUFvRFcsU0FBSSxHQUFXLEVBQUUsQ0FBQztRQUNsQixjQUFTLEdBQVksS0FBSyxDQUFDO1FBQzNCLFdBQU0sR0FBUSxFQUFFLENBQUM7UUFDakIsWUFBTyxHQUFXLEVBQUUsQ0FBQztRQUNyQixZQUFPLEdBQVEsRUFBRSx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nRlbnRcIj5cbiAgICAgICAgPC9kaXY+XG4gICAgICA8L2Rpdj5cbiAgICAgIFxuICAgIDwvZGl2PlxuICAgIFxuICBgXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdFByb21wdEFuZ3VsYXJDb21wb25lbnQge1xuICBcbiAgQElucHV0KCkgdHlwZTogc3RyaW5nID0gJyc7XG4gIEBJbnB1dCgpIGlzTG9hZGluZzogYm9vbGVhbiA9IGZhbHNlO1xuICBASW5wdXQoKSBhdmF0YXI6IGFueSA9IHt9O1xuICBASW5wdXQoKSBjb250ZW50OiBzdHJpbmcgPSAnJztcbiAgQElucHV0KCkgc291cmNlczogYW55ID0gJyc7XG4gIEBJbnB1dCgpIHByb21wdHM6IGFueSA9ICcnO1xuICBASW5wdXQoKSBhbGxvd0ZlZWRiYWNrOiBib29sZWFuID0gdHJ1ZTtcblxuXG4gIHNob3VsZFNob3dBdmF0YXJOYW1lKHBvc2l0aW9uOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5hdmF0YXI/Lm5hbWUgJiYgdGhpcy50eXBlID09PSBwb3NpdGlvbjtcbiAgfVxuXG4gIGhhc0F2YXRhckltYWdlKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiAhIXRoaXMuYXZhdGFyPy5zcmM7XG4gIH1cblxuICBtZXNzYWdlQ2xhc3NlcygpOiBzdHJpbmcge1xuICAgIFxuICAgIGxldCBjbGFzc2VzID0gYHZmLWNoYXRib3QtbWVzc2FnZSB2Zi1jaGF0Ym90LW1lc3NhZ2UtLSR7dGhpcy50eXBlfSB2Zi11LW1hcmdpbl9fdG9wLS00MDBgO1xuICAgIGlmICh0aGlzLmlzTG9hZGluZykge1xuICAgICAgY2xhc3NlcyArPSAnIHZmLWNoYXRib3QtbWVzc2FnZS0tbG9hZGluZyc7XG4gICAgfVxuICAgIHJldHVybiBjbGFzc2VzO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.module.mjs b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.module.mjs new file mode 100644 index 0000000000..c705f7f8d9 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/lib/vf-chatbot-prompt.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotPromptAngularComponent } from './vf-chatbot-prompt.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotPromptAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, declarations: [VfChatbotPromptAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotPromptAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotPromptAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotPromptAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1wcm9tcHQuYW5ndWxhci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LXBy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bkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFZmQ2hhdGJvdFByb21wdEFuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90UHJvbXB0QW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdFByb21wdEFuZ3VsYXJNb2R1bGUgeyB9XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/public-api.mjs b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..9b480555bf --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-prompt.angular + */ +export * from './lib/vf-chatbot-prompt.angular.module'; +export * from './lib/vf-chatbot-prompt.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtcHJvbXB0LmFuZ3VsYXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZmLWNoYXRib3QtcHJvbXB0LmFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LXByb21wdC5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LXByb21wdC5hbmd1bGFyLmNvbXBvbmVudCc7XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/vf-chatbot-prompt.angular.mjs b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/vf-chatbot-prompt.angular.mjs new file mode 100644 index 0000000000..ff4f3e1da0 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/esm2022/vf-chatbot-prompt.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1wcm9tcHQuYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QtcHJvbXB0LmFuZ3VsYXIvc3JjL3ZmLWNoYXRib3QtcHJvbXB0LmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs new file mode 100644 index 0000000000..17da54db47 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs @@ -0,0 +1,179 @@ +import * as i0 from '@angular/core'; +import { Component, Input, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotPromptAngularComponent { + constructor() { + this.type = ''; + this.isLoading = false; + this.avatar = {}; + this.content = ''; + this.sources = ''; + this.prompts = ''; + this.allowFeedback = true; + } + shouldShowAvatarName(position) { + return this.avatar?.name && this.type === position; + } + hasAvatarImage() { + return !!this.avatar?.src; + } + messageClasses() { + let classes = `vf-chatbot-message vf-chatbot-message--${this.type} vf-u-margin__top--400`; + if (this.isLoading) { + classes += ' vf-chatbot-message--loading'; + } + return classes; + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: { type: "type", isLoading: "isLoading", avatar: "avatar", content: "content", sources: "sources", prompts: "prompts", allowFeedback: "allowFeedback" }, ngImport: i0, template: ` +
+ + +
+ + + + {{ avatar?.name }} + + + + + + + + {{ avatar?.name }} + +
+ + +
+ + +
+ + + +
+ + +
+
+
+ +
+ + `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-prompt', + template: ` +
+ + +
+ + + + {{ avatar?.name }} + + + + + + + + {{ avatar?.name }} + +
+ + +
+ + +
+ + + +
+ + +
+
+
+ +
+ + ` + }] + }], propDecorators: { type: [{ + type: Input + }], isLoading: [{ + type: Input + }], avatar: [{ + type: Input + }], content: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], allowFeedback: [{ + type: Input + }] } }); + +class VfChatbotPromptAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, declarations: [VfChatbotPromptAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotPromptAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotPromptAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotPromptAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotPromptAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-prompt.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotPromptAngularComponent, VfChatbotPromptAngularModule }; +//# sourceMappingURL=vf-chatbot-prompt.angular.mjs.map diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs.map b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs.map new file mode 100644 index 0000000000..fc4ce6ddce --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/fesm2022/vf-chatbot-prompt.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-prompt.angular.mjs","sources":["../../../projects/vf-chatbot-prompt.angular/src/lib/vf-chatbot-prompt.angular.component.ts","../../../projects/vf-chatbot-prompt.angular/src/lib/vf-chatbot-prompt.angular.module.ts","../../../projects/vf-chatbot-prompt.angular/src/public-api.ts","../../../projects/vf-chatbot-prompt.angular/src/vf-chatbot-prompt.angular.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Component({\n selector: 'vf-chatbot-prompt',\n template: `\n
\n \n \n
\n\n \n \n {{ avatar?.name }}\n \n\n \n \n\n \n \n {{ avatar?.name }}\n \n
\n\n \n
\n\n \n
\n \n \n \n
\n\n \n
\n
\n
\n \n
\n \n `\n})\nexport class VfChatbotPromptAngularComponent {\n \n @Input() type: string = '';\n @Input() isLoading: boolean = false;\n @Input() avatar: any = {};\n @Input() content: string = '';\n @Input() sources: any = '';\n @Input() prompts: any = '';\n @Input() allowFeedback: boolean = true;\n\n\n shouldShowAvatarName(position: string): boolean {\n return this.avatar?.name && this.type === position;\n }\n\n hasAvatarImage(): boolean {\n return !!this.avatar?.src;\n }\n\n messageClasses(): string {\n \n let classes = `vf-chatbot-message vf-chatbot-message--${this.type} vf-u-margin__top--400`;\n if (this.isLoading) {\n classes += ' vf-chatbot-message--loading';\n }\n return classes;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotPromptAngularComponent } from './vf-chatbot-prompt.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotPromptAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotPromptAngularComponent\n ]\n})\nexport class VfChatbotPromptAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-prompt.angular\n */\n\nexport * from './lib/vf-chatbot-prompt.angular.module';\nexport * from './lib/vf-chatbot-prompt.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAqDa,+BAA+B,CAAA;AAl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EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAPrC,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA,CAAA;;4FAMF,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAZxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/index.d.ts b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/index.d.ts new file mode 100644 index 0000000000..481b3cb562 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.component.d.ts b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.component.d.ts new file mode 100644 index 0000000000..45fc8faac3 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.component.d.ts @@ -0,0 +1,15 @@ +import * as i0 from "@angular/core"; +export declare class VfChatbotPromptAngularComponent { + type: string; + isLoading: boolean; + avatar: any; + content: string; + sources: any; + prompts: any; + allowFeedback: boolean; + shouldShowAvatarName(position: string): boolean; + hasAvatarImage(): boolean; + messageClasses(): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.module.d.ts b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.module.d.ts new file mode 100644 index 0000000000..1209ce3597 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/lib/vf-chatbot-prompt.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-prompt.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotPromptAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/package.json b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/package.json new file mode 100644 index 0000000000..3716862312 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-prompt.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-prompt.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-prompt.angular.mjs", + "esm": "./esm2022/vf-chatbot-prompt.angular.mjs", + "default": "./fesm2022/vf-chatbot-prompt.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/public-api.d.ts b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/public-api.d.ts new file mode 100644 index 0000000000..21f2363901 --- /dev/null +++ b/components/vf-chatbot-prompt/vf-chatbot-prompt.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-prompt.angular.module'; +export * from './lib/vf-chatbot-prompt.angular.component'; diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/.npmignore b/components/vf-chatbot-selector/vf-chatbot-selector.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/README.md b/components/vf-chatbot-selector/vf-chatbot-selector.angular/README.md new file mode 100644 index 0000000000..d6c779ade6 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotSelectorAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-selector.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-selector.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.component.mjs b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.component.mjs new file mode 100644 index 0000000000..8a884700da --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.component.mjs @@ -0,0 +1,267 @@ +import { Component, Input } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common/http"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export class VfChatbotSelectorAngularComponent { + constructor(elRef, http) { + this.elRef = elRef; + this.http = http; + this.chatbotRoutes = {}; + this.context = {}; + this.config = {}; + this.search = ''; + this.selected = []; + this.showSearchBox = true; + this.maxSelect = 1; + } + ngOnInit() { + const defaults = { + routes: [], + multiSelect: false, + maxMultiSelect: 1, + showSearch: true, + showSearchThreshold: 5, + showAllServices: false, + showAllServicesSelected: false, + selector_logo_url: '../../assets/vf-chatbot/assets/vf-chatbot--icon-24x24-dark-green.svg', + selector_logo_title: 'AI Assistant', + title: 'Select option', + placeholder: 'Search...', + }; + // Prefer any explicit `context` input; otherwise fall back to `chatbotRoutes`. + const source = (this.context && Object.keys(this.context).length > 0) + ? this.context + : (this.chatbotRoutes || {}); + // Merge defaults into the chosen source so template bindings exist and are objects + this.context = { ...defaults, ...source }; + this.config = this.context; // keep `config` for backwards compatibility + this.maxSelect = this.config.maxMultiSelect || 3; + this.showSearchBox = + this.context.chatbotRoutes.showSearch && + (this.context.chatbotRoutes.routes || []).length > this.context.chatbotRoutes.showSearchThreshold; + this.loadRoutesFromApi(); + } + clearAll(event) { + event.preventDefault(); + this.selected = []; + } + toggleSelect(routeId) { + if (this.context.chatbotRoutes.multiSelect) { + if (this.selected.includes(routeId)) { + this.selected = this.selected.filter(id => id !== routeId); + } + else if (this.selected.length < this.maxSelect) { + this.selected.push(routeId); + } + } + else { + this.selected = [routeId]; + } + } + loadRoutesFromApi() { + const url = this.context.chatbotRoutes.routes; + this.http.get(url).subscribe(config => { + this.context.chatbotRoutes.array_routes = config['routes']; + }); + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularComponent, deps: [{ token: i0.ElementRef }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: { chatbotRoutes: "chatbotRoutes", context: "context" }, ngImport: i0, template: ` +
+ + +
+ + +
+ + Select up to {{context.chatbotRoutes.maxMultiSelect.toString()}} services + + + Clear all + +
+ +
    +
  • + {{ route.title }} +
  • +
+
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularComponent, decorators: [{ + type: Component, + args: [{ selector: 'vf-chatbot-selector', template: ` +
+ + +
+ + +
+ + Select up to {{context.chatbotRoutes.maxMultiSelect.toString()}} services + + + Clear all + +
+ +
    +
  • + {{ route.title }} +
  • +
+
+
+ ` }] + }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.HttpClient }], propDecorators: { chatbotRoutes: [{ + type: Input + }], context: [{ + type: Input + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zZ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AgdGhpcy5odHRwLmdldDxDb25maWc+KHVybCkuc3Vic2NyaWJlKGNvbmZpZyA9PiB7XG4gIHRoaXMuY29udGV4dC5jaGF0Ym90Um91dGVzLmFycmF5X3JvdXRlcyA9IGNvbmZpZ1sncm91dGVzJ107XG59KTtcbiAgXG4gIFxufVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.module.mjs b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.module.mjs new file mode 100644 index 0000000000..b086ec8aab --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/lib/vf-chatbot-selector.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotSelectorAngularComponent } from './vf-chatbot-selector.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotSelectorAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, declarations: [VfChatbotSelectorAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotSelectorAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotSelectorAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotSelect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b20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBGb3Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJzsgXG5pbXBvcnQgeyBWZkNoYXRib3RTZWxlY3RvckFuZ3VsYXJDb21wb25lbnQgfSBmcm9tICcuL3ZmLWNoYXRib3Qtc2VsZWN0b3IuYW5ndWxhci5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBWZkNoYXRib3RTZWxlY3RvckFuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90U2VsZWN0b3JBbmd1bGFyQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgVmZDaGF0Ym90U2VsZWN0b3JBbmd1bGFyTW9kdWxlIHsgfVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/public-api.mjs b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..1252b957d0 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-selector.angular + */ +export * from './lib/vf-chatbot-selector.angular.component'; +export * from './lib/vf-chatbot-selector.angular.module'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3Qtc2VsZWN0b3IuYW5ndWxhci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsNkNBQTZDLENBQUM7QUFDNUQsY0FBYywwQ0FBMEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdmYtY2hhdGJvdC1zZWxlY3Rvci5hbmd1bGFyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvdmYtY2hhdGJvdC1zZWxlY3Rvci5hbmd1bGFyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LXNlbGVjdG9yLmFuZ3VsYXIubW9kdWxlJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/vf-chatbot-selector.angular.mjs b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/vf-chatbot-selector.angular.mjs new file mode 100644 index 0000000000..86348b4902 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/esm2022/vf-chatbot-selector.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zZWxlY3Rvci5hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1zZWxlY3Rvci5hbmd1bGFyL3NyYy92Zi1jaGF0Ym90LXNlbGVjdG9yLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs b/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs new file mode 100644 index 0000000000..91fe5ca84f --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs @@ -0,0 +1,303 @@ +import * as i0 from '@angular/core'; +import { Component, Input, NgModule } from '@angular/core'; +import * as i1 from '@angular/common/http'; +import * as i2 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import * as i3 from '@angular/forms'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotSelectorAngularComponent { + constructor(elRef, http) { + this.elRef = elRef; + this.http = http; + this.chatbotRoutes = {}; + this.context = {}; + this.config = {}; + this.search = ''; + this.selected = []; + this.showSearchBox = true; + this.maxSelect = 1; + } + ngOnInit() { + const defaults = { + routes: [], + multiSelect: false, + maxMultiSelect: 1, + showSearch: true, + showSearchThreshold: 5, + showAllServices: false, + showAllServicesSelected: false, + selector_logo_url: '../../assets/vf-chatbot/assets/vf-chatbot--icon-24x24-dark-green.svg', + selector_logo_title: 'AI Assistant', + title: 'Select option', + placeholder: 'Search...', + }; + // Prefer any explicit `context` input; otherwise fall back to `chatbotRoutes`. + const source = (this.context && Object.keys(this.context).length > 0) + ? this.context + : (this.chatbotRoutes || {}); + // Merge defaults into the chosen source so template bindings exist and are objects + this.context = { ...defaults, ...source }; + this.config = this.context; // keep `config` for backwards compatibility + this.maxSelect = this.config.maxMultiSelect || 3; + this.showSearchBox = + this.context.chatbotRoutes.showSearch && + (this.context.chatbotRoutes.routes || []).length > this.context.chatbotRoutes.showSearchThreshold; + this.loadRoutesFromApi(); + } + clearAll(event) { + event.preventDefault(); + this.selected = []; + } + toggleSelect(routeId) { + if (this.context.chatbotRoutes.multiSelect) { + if (this.selected.includes(routeId)) { + this.selected = this.selected.filter(id => id !== routeId); + } + else if (this.selected.length < this.maxSelect) { + this.selected.push(routeId); + } + } + else { + this.selected = [routeId]; + } + } + loadRoutesFromApi() { + const url = this.context.chatbotRoutes.routes; + this.http.get(url).subscribe(config => { + this.context.chatbotRoutes.array_routes = config['routes']; + }); + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularComponent, deps: [{ token: i0.ElementRef }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: { chatbotRoutes: "chatbotRoutes", context: "context" }, ngImport: i0, template: ` +
+ + +
+ + +
+ + Select up to {{context.chatbotRoutes.maxMultiSelect.toString()}} services + + + Clear all + +
+ +
    +
  • + {{ route.title }} +
  • +
+
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularComponent, decorators: [{ + type: Component, + args: [{ selector: 'vf-chatbot-selector', template: ` +
+ + +
+ + +
+ + Select up to {{context.chatbotRoutes.maxMultiSelect.toString()}} services + + + Clear all + +
+ +
    +
  • + {{ route.title }} +
  • +
+
+
+ ` }] + }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.HttpClient }], propDecorators: { chatbotRoutes: [{ + type: Input + }], context: [{ + type: Input + }] } }); + +class VfChatbotSelectorAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, declarations: [VfChatbotSelectorAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotSelectorAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSelectorAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotSelectorAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotSelectorAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-selector.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotSelectorAngularComponent, VfChatbotSelectorAngularModule }; +//# sourceMappingURL=vf-chatbot-selector.angular.mjs.map diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs.map b/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs.map new file mode 100644 index 0000000000..5cc8c8315c --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/fesm2022/vf-chatbot-selector.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-selector.angular.mjs","sources":["../../../projects/vf-chatbot-selector.angular/src/lib/vf-chatbot-selector.angular.component.ts","../../../projects/vf-chatbot-selector.angular/src/lib/vf-chatbot-selector.angular.module.ts","../../../projects/vf-chatbot-selector.angular/src/public-api.ts","../../../projects/vf-chatbot-selector.angular/src/vf-chatbot-selector.angular.ts"],"sourcesContent":["import { Component, ElementRef, Input, OnInit } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\ninterface Config {\n routes: any[];\n [key: string]: any;\n}\n\n@Component({\n selector: 'vf-chatbot-selector',\n template: `\n \n \n \n
\n \n {{ context.chatbotRoutes.selector_logo_title }}\n \n \n {{\n selected.length === 0 ? context.chatbotRoutes.title : context.chatbotRoutes.routes\n }}\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
\n
\n \n Type to search\n \n \n
\n\n
\n \n Select up to {{context.chatbotRoutes.maxMultiSelect.toString()}} services\n \n \n Clear all\n \n
\n\n
    \n \n {{ route.title }}\n \n
\n
\n \n `,\n styles: [],\n})\nexport class VfChatbotSelectorAngularComponent implements OnInit {\n @Input() chatbotRoutes: any = {};\n @Input() context: any = {};\n config: any = {};\n search = '';\n selected: string[] = [];\n showSearchBox = true;\n maxSelect = 1;\n\n constructor(private elRef: ElementRef, private http: HttpClient) {}\n\n ngOnInit(): void {\n const defaults = {\n routes: [],\n multiSelect: false,\n maxMultiSelect: 1,\n showSearch: true,\n showSearchThreshold: 5,\n showAllServices: false,\n showAllServicesSelected: false,\n selector_logo_url: '../../assets/vf-chatbot/assets/vf-chatbot--icon-24x24-dark-green.svg',\n selector_logo_title: 'AI Assistant',\n title: 'Select option',\n placeholder: 'Search...',\n };\n\n // Prefer any explicit `context` input; otherwise fall back to `chatbotRoutes`.\n const source = (this.context && Object.keys(this.context).length > 0)\n ? this.context\n : (this.chatbotRoutes || {});\n\n // Merge defaults into the chosen source so template bindings exist and are objects\n this.context = { ...defaults, ...source };\n this.config = this.context; // keep `config` for backwards compatibility\n\n this.maxSelect = this.config.maxMultiSelect || 3;\n this.showSearchBox =\n this.context.chatbotRoutes.showSearch &&\n (this.context.chatbotRoutes.routes || []).length > this.context.chatbotRoutes.showSearchThreshold;\n this.loadRoutesFromApi();\n }\n\n clearAll(event: Event): void {\n event.preventDefault();\n this.selected = [];\n }\n\n toggleSelect(routeId: string): void {\n if (this.context.chatbotRoutes.multiSelect) {\n if (this.selected.includes(routeId)) {\n this.selected = this.selected.filter(id => id !== routeId);\n } else if (this.selected.length < this.maxSelect) {\n this.selected.push(routeId);\n }\n } else {\n this.selected = [routeId];\n }\n }\n loadRoutesFromApi(): void {\n const url = this.context.chatbotRoutes.routes;\n this.http.get(url).subscribe(config => {\n this.context.chatbotRoutes.array_routes = config['routes'];\n});\n \n \n}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotSelectorAngularComponent } from './vf-chatbot-selector.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotSelectorAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotSelectorAngularComponent\n ]\n})\nexport class VfChatbotSelectorAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-selector.angular\n */\n\nexport * from './lib/vf-chatbot-selector.angular.component';\nexport * from './lib/vf-chatbot-selector.angular.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MA2Ga,iCAAiC,CAAA;IAS5C,WAAoB,CAAA,KAAiB,EAAU,IAAgB,EAAA;QAA3C,IAAK,CAAA,KAAA,GAAL,KAAK;QAAsB,IAAI,CAAA,IAAA,GAAJ,IAAI;QAR1C,IAAa,CAAA,aAAA,GAAQ,EAAE;QACvB,IAAO,CAAA,OAAA,GAAQ,EAAE;QAC1B,IAAM,CAAA,MAAA,GAAQ,EAAE;QAChB,IAAM,CAAA,MAAA,GAAG,EAAE;QACX,IAAQ,CAAA,QAAA,GAAa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AA,EAAA;wGAIQ,aAAa,EAAA,CAAA;sBAArB;gBACQ,OAAO,EAAA,CAAA;sBAAf;;;MC5FU,8BAA8B,CAAA;+GAA9B,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA9B,8BAA8B,EAAA,YAAA,EAAA,CAVvC,iCAAiC,CAAA,EAAA,OAAA,EAAA,CAGjC,YAAY;AACZ,YAAA,WAAW,aAGX,iCAAiC,CAAA,EAAA,CAAA,CAAA;AAGxB,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,8BAA8B,YAPvC,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA,CAAA;;4FAMF,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAZ1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/index.d.ts b/components/vf-chatbot-selector/vf-chatbot-selector.angular/index.d.ts new file mode 100644 index 0000000000..363332cda2 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.component.d.ts b/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.component.d.ts new file mode 100644 index 0000000000..87849b91dd --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.component.d.ts @@ -0,0 +1,21 @@ +import { ElementRef, OnInit } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import * as i0 from "@angular/core"; +export declare class VfChatbotSelectorAngularComponent implements OnInit { + private elRef; + private http; + chatbotRoutes: any; + context: any; + config: any; + search: string; + selected: string[]; + showSearchBox: boolean; + maxSelect: number; + constructor(elRef: ElementRef, http: HttpClient); + ngOnInit(): void; + clearAll(event: Event): void; + toggleSelect(routeId: string): void; + loadRoutesFromApi(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.module.d.ts b/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.module.d.ts new file mode 100644 index 0000000000..c871dd3d08 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/lib/vf-chatbot-selector.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-selector.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotSelectorAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/package.json b/components/vf-chatbot-selector/vf-chatbot-selector.angular/package.json new file mode 100644 index 0000000000..ae20583bfa --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-selector.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-selector.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-selector.angular.mjs", + "esm": "./esm2022/vf-chatbot-selector.angular.mjs", + "default": "./fesm2022/vf-chatbot-selector.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-selector/vf-chatbot-selector.angular/public-api.d.ts b/components/vf-chatbot-selector/vf-chatbot-selector.angular/public-api.d.ts new file mode 100644 index 0000000000..7cade10de5 --- /dev/null +++ b/components/vf-chatbot-selector/vf-chatbot-selector.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-selector.angular.component'; +export * from './lib/vf-chatbot-selector.angular.module'; diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/.npmignore b/components/vf-chatbot-sources/vf-chatbot-sources.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/README.md b/components/vf-chatbot-sources/vf-chatbot-sources.angular/README.md new file mode 100644 index 0000000000..70f0f67b3a --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotSourcesAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-sources.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-sources.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.component.mjs b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.component.mjs new file mode 100644 index 0000000000..8e51e94fca --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.component.mjs @@ -0,0 +1,61 @@ +import { Component, Input } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +export class VfChatbotSourcesAngularComponent { + constructor(elementRef) { + this.elementRef = elementRef; + this.sources = []; + } + ngAfterViewInit() { + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotSourcesAngularComponent, selector: "vf-chatbot-sources", inputs: { sources: "sources" }, ngImport: i0, template: ` +
+

Sources

+ +
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-sources', + template: ` +
+

Sources

+ +
+ `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { sources: [{ + type: Input + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LXNvdXJjZXMuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBR04sTUFBTSxlQUFlLENBQUM7OztBQWdDdkIsTUFBTSxPQUFPLGdDQUFnQztJQUczQyxZQUFvQixVQUFzQjtRQUF0QixlQUFVLEdBQVYsVUFBVSxDQUFZO1FBRmpDLFlBQU8sR0FBc0IsRUFBRSxDQUFDO0lBRUksQ0FBQztJQUU5QyxlQUFlO0lBQ2YsQ0FBQzsrR0FOVSxnQ0FBZ0M7bUdBQWhDLGdDQUFnQywwRkFyQmpDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJUOzs0RkFFVSxnQ0FBZ0M7a0JBdkI1QyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxvQkFBb0I7b0JBQzlCLFFBQVEsRUFBRTs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW1CVDtpQkFDRjsrRUFFVSxPQUFPO3NCQUFmLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBDb21wb25lbnQsXG4gIElucHV0LFxuICBFbGVtZW50UmVmLFxuICBBZnRlclZpZXdJbml0XG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdW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uXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpOiB2b2lkIHtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.module.mjs b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.module.mjs new file mode 100644 index 0000000000..ccbceb9a70 --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/lib/vf-chatbot-sources.angular.module.mjs @@ -0,0 +1,28 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotSourcesAngularComponent } from './vf-chatbot-sources.angular.component'; +import * as i0 from "@angular/core"; +export class VfChatbotSourcesAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, declarations: [VfChatbotSourcesAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotSourcesAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotSourcesAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotSourcesAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIubW9kd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WZkNoYXRib3RTb3VyY2VzQW5ndWxhckNvbXBvbmVudCB9IGZyb20gJy4vdmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgVmZDaGF0Ym90U291cmNlc0FuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90U291cmNlc0FuZ3VsYXJDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBWZkNoYXRib3RTb3VyY2VzQW5ndWxhck1vZHVsZSB7IH1cbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/public-api.mjs b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..67ed9f8305 --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-sources.angular + */ +export * from './lib/vf-chatbot-sources.angular.module'; +export * from './lib/vf-chatbot-sources.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3Qtc291cmNlcy5hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx5Q0FBeUMsQ0FBQztBQUN4RCxjQUFjLDRDQUE0QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB2Zi1jaGF0Ym90LXNvdXJjZXMuYW5ndWxhclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZmLWNoYXRib3Qtc291cmNlcy5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LXNvdXJjZXMuYW5ndWxhci5jb21wb25lbnQnO1xuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/vf-chatbot-sources.angular.mjs b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/vf-chatbot-sources.angular.mjs new file mode 100644 index 0000000000..361530e119 --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/esm2022/vf-chatbot-sources.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LXNvdXJjZXMuYW5ndWxhci9zcmMvdmYtY2hhdGJvdC1zb3VyY2VzLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs b/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs new file mode 100644 index 0000000000..44ca2e261e --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs @@ -0,0 +1,97 @@ +import * as i0 from '@angular/core'; +import { Component, Input, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +class VfChatbotSourcesAngularComponent { + constructor(elementRef) { + this.elementRef = elementRef; + this.sources = []; + } + ngAfterViewInit() { + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotSourcesAngularComponent, selector: "vf-chatbot-sources", inputs: { sources: "sources" }, ngImport: i0, template: ` +
+

Sources

+ +
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-sources', + template: ` +
+

Sources

+ +
+ `, + }] + }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { sources: [{ + type: Input + }] } }); + +class VfChatbotSourcesAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, declarations: [VfChatbotSourcesAngularComponent], imports: [CommonModule, + FormsModule], exports: [VfChatbotSourcesAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, imports: [CommonModule, + FormsModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotSourcesAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotSourcesAngularComponent + ], + imports: [ + CommonModule, + FormsModule + ], + exports: [ + VfChatbotSourcesAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-sources.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotSourcesAngularComponent, VfChatbotSourcesAngularModule }; +//# sourceMappingURL=vf-chatbot-sources.angular.mjs.map diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs.map b/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs.map new file mode 100644 index 0000000000..5b0e6be20d --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/fesm2022/vf-chatbot-sources.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-sources.angular.mjs","sources":["../../../projects/vf-chatbot-sources.angular/src/lib/vf-chatbot-sources.angular.component.ts","../../../projects/vf-chatbot-sources.angular/src/lib/vf-chatbot-sources.angular.module.ts","../../../projects/vf-chatbot-sources.angular/src/public-api.ts","../../../projects/vf-chatbot-sources.angular/src/vf-chatbot-sources.angular.ts"],"sourcesContent":["import {\n Component,\n Input,\n ElementRef,\n AfterViewInit\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n\nexport interface VFChatbotSource {\n title: string;\n url: string;\n}\n\n@Component({\n selector: 'vf-chatbot-sources',\n template: `\n \n

Sources

\n
    \n
  • \n \n {{ source.title }}\n \n
  • \n
\n \n `,\n})\nexport class VfChatbotSourcesAngularComponent implements AfterViewInit {\n @Input() sources: VFChatbotSource[] = [];\n\n constructor(private elementRef: ElementRef) {}\n\n ngAfterViewInit(): void {\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotSourcesAngularComponent } from './vf-chatbot-sources.angular.component';\n\n@NgModule({\n declarations: [\n VfChatbotSourcesAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule\n ],\n exports: [\n VfChatbotSourcesAngularComponent\n ]\n})\nexport class VfChatbotSourcesAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-sources.angular\n */\n\nexport * from './lib/vf-chatbot-sources.angular.module';\nexport * from './lib/vf-chatbot-sources.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAqCa,gCAAgC,CAAA;AAG3C,IAAA,WAAA,CAAoB,UAAsB,EAAA;QAAtB,IAAU,CAAA,UAAA,GAAV,UAAU;QAFrB,IAAO,CAAA,OAAA,GAAsB,EAAE;;IAIxC,eAAe,GAAA;;+GALJ,gCAAgC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gCAAgC,EArBjC,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAEU,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAvB5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;AAmBT,EAAA,CAAA;AACF,iBAAA;+EAEU,OAAO,EAAA,CAAA;sBAAf;;;MCrBU,6BAA6B,CAAA;+GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA7B,6BAA6B,EAAA,YAAA,EAAA,CAVtC,gCAAgC,CAAA,EAAA,OAAA,EAAA,CAGhC,YAAY;AACZ,YAAA,WAAW,aAGX,gCAAgC,CAAA,EAAA,CAAA,CAAA;AAGvB,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,6BAA6B,YAPtC,YAAY;YACZ,WAAW,CAAA,EAAA,CAAA,CAAA;;4FAMF,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAZzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AChBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/index.d.ts b/components/vf-chatbot-sources/vf-chatbot-sources.angular/index.d.ts new file mode 100644 index 0000000000..bc8101a3ed --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.component.d.ts b/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.component.d.ts new file mode 100644 index 0000000000..457dd49a3f --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.component.d.ts @@ -0,0 +1,14 @@ +import { ElementRef, AfterViewInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export interface VFChatbotSource { + title: string; + url: string; +} +export declare class VfChatbotSourcesAngularComponent implements AfterViewInit { + private elementRef; + sources: VFChatbotSource[]; + constructor(elementRef: ElementRef); + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.module.d.ts b/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.module.d.ts new file mode 100644 index 0000000000..f5fca802be --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/lib/vf-chatbot-sources.angular.module.d.ts @@ -0,0 +1,9 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-sources.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +export declare class VfChatbotSourcesAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/package.json b/components/vf-chatbot-sources/vf-chatbot-sources.angular/package.json new file mode 100644 index 0000000000..3fa6dd3fea --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-sources.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-sources.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-sources.angular.mjs", + "esm": "./esm2022/vf-chatbot-sources.angular.mjs", + "default": "./fesm2022/vf-chatbot-sources.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-sources/vf-chatbot-sources.angular/public-api.d.ts b/components/vf-chatbot-sources/vf-chatbot-sources.angular/public-api.d.ts new file mode 100644 index 0000000000..c321178176 --- /dev/null +++ b/components/vf-chatbot-sources/vf-chatbot-sources.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-sources.angular.module'; +export * from './lib/vf-chatbot-sources.angular.component'; diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/.npmignore b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/README.md b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/README.md new file mode 100644 index 0000000000..47fc9a9a42 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotStandaloneAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-standalone.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-standalone.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.component.mjs b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.component.mjs new file mode 100644 index 0000000000..959ba7d7d4 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.component.mjs @@ -0,0 +1,652 @@ +import { Component, Input, Output, EventEmitter, ViewChild, ViewEncapsulation, Inject, } from '@angular/core'; +import { DOCUMENT } from '@angular/common'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "vf-chatbot-action-prompt.angular"; +import * as i3 from "vf-chatbot-selector.angular"; +import * as i4 from "vf-chatbot-welcome.angular"; +import * as i5 from "vf-chatbot-prompt.angular"; +import * as i6 from "vf-chatbot-feedback.angular"; +import * as i7 from "vf-chatbot-dialog.angular"; +export class VfChatbotStandaloneAngularComponent { + constructor(renderer, document) { + this.renderer = renderer; + this.document = document; + this.messages = []; + this.sources = []; + this.prompts = []; + this.inputValue = ''; + this.onSendMessage = new EventEmitter(); + this.onInputChange = new EventEmitter(); + this.onFeedback = new EventEmitter(); + this.onDialogConfirm = new EventEmitter(); + this.onDialogCancel = new EventEmitter(); + this.qaData = []; + this.loadedScripts = new Set(); + } + ngOnInit() { } + async ngAfterViewInit() { + console.log('VF Chatbot Standalone component initializing...'); + try { + // Load only the working scripts individually + await this.loadWorkingScripts(); + // Initialize chatbot functionality + this.initializeChatbot(); + } + catch (error) { + console.error('Failed to load chatbot scripts:', error); + // Fallback: try basic initialization in case scripts are already loaded + console.log('Trying fallback initialization...'); + this.initializeChatbot(); + } + console.log('Chatbot standalone component ready', this.standaloneRef); + } + /** + * Load chatbot scripts as ES6 modules + */ + async loadWorkingScripts() { + console.log('Loading ES6 modules...'); + // All chatbot files are ES6 modules (have exports) + const moduleScripts = [ + 'assets/vf-chatbot-fab/vf-chatbot-fab.js', + 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js', + 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js', + 'assets/vf-chatbot-selector/vf-chatbot-selector.js', + 'assets/vf-chatbot-sources/vf-chatbot-sources.js', + 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js' + ]; + // These have both imports AND exports, so they need their dependencies loaded first + const moduleScriptsWithDependencies = [ + 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules + 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules + 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules + ]; + // Load independent modules first + for (const scriptSrc of moduleScripts) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + // Then load modules with dependencies + for (const scriptSrc of moduleScriptsWithDependencies) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + } + /** + * Load a single script as ES6 module + */ + loadSingleScript(src) { + return new Promise((resolve, reject) => { + if (this.loadedScripts.has(src)) { + console.log(`Script already loaded in cache: ${src}`); + resolve(); + return; + } + // Check if script already exists in DOM + const existingScript = this.document.querySelector(`script[src="${src}"]`); + if (existingScript) { + console.log(`Script already loaded in DOM: ${src}`); + this.loadedScripts.add(src); + resolve(); + return; + } + const script = this.renderer.createElement('script'); + script.type = 'module'; // Load as ES6 module + script.src = src; + script.async = true; + script.onload = () => { + this.loadedScripts.add(src); + console.log(`Loaded ES6 module: ${src}`); + resolve(); + }; + script.onerror = (error) => { + console.error(`Failed to load module: ${src}`, error); + // Mark as failed but resolve to continue with other scripts + this.loadedScripts.add(src + '_failed'); + resolve(); + }; + this.renderer.appendChild(this.document.head, script); + }); + } + /** + * Initialize chatbot functionality after scripts are loaded + */ + initializeChatbot() { + console.log('Initializing chatbot functionality...'); + // Access the globally exposed initialization functions + try { + let initializedCount = 0; + // All potential initialization functions from ES6 modules + const allInitFunctions = [ + 'initVFChatbotFab', + 'initVFChatbotDialog', + 'initVFChatbotFeedback', + 'initVFChatbotSelector', + 'initVFChatbotSources', + 'initVFChatbotWelcome', + 'initVFChatbotStandalone', // Now loaded as ES6 module + 'initVFChatbotModal', // Now loaded as ES6 module + 'initVFChatbot' // Now loaded as ES6 module + ]; + allInitFunctions.forEach(funcName => { + if (typeof window[funcName] === 'function') { + try { + window[funcName](); + console.log(`${funcName} initialized`); + initializedCount++; + } + catch (error) { + console.warn(`${funcName} failed to initialize:`, error); + } + } + else { + console.log(`${funcName} not available (module may not have loaded)`); + } + }); + console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`); + if (initializedCount === 0) { + console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.'); + } + } + catch (error) { + console.error('Error initializing chatbot functionality:', error); + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularComponent, deps: [{ token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotStandaloneAngularComponent, selector: "vf-chatbot-standalone", inputs: { config: "config", messages: "messages", sources: "sources", prompts: "prompts", inputValue: "inputValue" }, outputs: { onSendMessage: "onSendMessage", onInputChange: "onInputChange", onFeedback: "onFeedback", onDialogConfirm: "onDialogConfirm", onDialogCancel: "onDialogCancel" }, viewQueries: [{ propertyName: "standaloneRef", first: true, predicate: ["standaloneRef"], descendants: true }], ngImport: i0, template: `
+ +
+
+ + + + +
+
+ +
+ + {{ config?.selectorContext?.selector_logo_title }} + +
+
+
+
+
+
+ + +
+
+ + + + +
+ + +
+ + +
+
+
+

+ +
+
+
+
+ + +
+
+ + + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: ["action_url", "action_text", "action_target"], outputs: ["actionClick"] }, { kind: "component", type: i3.VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: ["chatbotRoutes", "context"] }, { kind: "component", type: i4.VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: ["qaData", "welcome_logo", "welcome_logo_url", "welcome_logo_alt", "welcome_title", "welcome_message", "welcome_suggestions_title", "enable_welcome_suggestions", "welcome_max_suggestions", "enable_qa_data_loading", "enable_predefined_qa", "enable_fallback_responses", "qa_data_url"] }, { kind: "component", type: i5.VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: ["type", "isLoading", "avatar", "content", "sources", "prompts", "allowFeedback"] }, { kind: "component", type: i6.VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: ["feedback_options", "type", "comment"], outputs: ["feedback", "commentChange", "close", "submit"] }, { kind: "component", type: i7.VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: ["title", "message", "cancelLabel", "confirmLabel"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }], encapsulation: i0.ViewEncapsulation.None }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-standalone', + template: `
+ +
+
+ + + + +
+
+ +
+ + {{ config?.selectorContext?.selector_logo_title }} + +
+
+
+
+
+
+ + +
+
+ + + + +
+ + +
+ + +
+
+
+

+ +
+
+
+
+ + +
+
+ + + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+
+ `, + encapsulation: ViewEncapsulation.None, + }] + }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: Document, decorators: [{ + type: Inject, + args: [DOCUMENT] + }] }], propDecorators: { config: [{ + type: Input + }], messages: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], inputValue: [{ + type: Input + }], onSendMessage: [{ + type: Output + }], onInputChange: [{ + type: Output + }], onFeedback: [{ + type: Output + }], onDialogConfirm: [{ + type: Output + }], onDialogCancel: [{ + type: Output + }], standaloneRef: [{ + type: ViewChild, + args: ['standaloneRef'] + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LXN0YW5kYWxvbmUuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsR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c/LnNlbGVjdG9yQ29udGV4dD8uc2VsZWN0b3JfbG9nb191cmxcIlxuICAgICAgICAgICAgICAgICAgW2FsdF09XCJjb25maWc/LnNlbGVjdG9yQ29udGV4dD8uc2VsZWN0b3JfbG9nb190aXRsZVwiXG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidmYtY2hhdGJvdC1zZWxlY3Rvcl9fdGl0bGUtY29udGVudFwiPlxuICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJ2Zi1jaGF0Ym90LXNlbGVjdG9yX19tYWluLXRleHRcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgY29uZmlnPy5zZWxlY3RvckNvbnRleHQ/LnNlbGVjdG9yX2xvZ29fdGl0bGUgfX1cbiAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuXG4gICAgICA8IS0tIENoYXRib3QgTWFpbiAtLT5cbiAgICAgIDxkaXZcbiAgICAgICAgY2xhc3M9XCJ2Zi1jaGF0Ym90LXN0YW5kYWxvbmUgfCB2Zi11LWJhY2tncm91bmQtY29sb3ItdWktLWdyZXktLWxpZ2h0IHZmLXUtbWFyZ2luX19ib3R0b20tLTQwMFwiXG4gICAgICAgIGRhdGEtdmYtanMtY2hhdGJvdC1zdGFuZGFsb25lXG4gICAgICA+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBjbGFzcz1cInZmLWNoYXRib3Qtc3RhbmRhbG9uZV9fY29udGVudFwiXG4gICAgICAgICAgZGF0YS12Zi1qcy1jaGF0Ym90LXN0YW5kYWxvbmUtY29udGVudFxuICAgICAgICA+XG4gICAgICAgICAgPCEtLSBXZWxjb21lIC0tPlxuICAgICAg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0ZlZWRiYWNrXT1cImNvbmZpZz8uZmVhdHVyZXM/LmVuYWJsZV9mZWVkYmFja1wiXG4gICAgICAgID48L3ZmLWNoYXRib3QtcHJvbXB0PlxuICAgICAgICAgICAgXG4gICAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgICA8IS0tIERpc2NsYWltZXIgLS0+XG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAgKm5nSWY9XCJjb25maWc/LmRpc2NsYWltZXIgJiYgY29uZmlnPy5mZWF0dXJlcz8uZW5hYmxlX2Rpc2NsYWltZXJcIlxuICAgICAgICAgICAgY2xhc3M9XCJ2Zi1jaGF0Ym90LXN0YW5kYWxvbmVfX2Rpc2NsYWltZXJcIiBkYXRhLXZmLWpzLWNoYXRib3Qtc3RhbmRhbG9uZS1kaXNjbGFpbWVyXG4gICAgICAgICAgPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInZmLWJhbm5lciB2Zi1iYW5uZXItLWFsZXJ0IHZmLWJhbm5lci0taW5mb1wiPlxuICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwidmYtYmFubmVyX19jb250ZW50XCI+XG4gICAgICAgICAgICAgICAgPHBcbiAgICAgICAgICAgICAgICAgIGNsYXNzPVwidmYtYmFubmVyX190ZXh0XCJcbiAgICAgICAgICAgICAgICAgIFtpbm5lckhUTUxdPVwiY29uZmlnLmRpc2NsYWltZXJcIlxuICAgICAgICAgICAgICAgID48L3A+XG4gICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgcm9sZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICBhcmlhLWxhYmVsPVwiY2xvc2Ugbm90aWZpY2F0aW9uIGJhbm5lclwiXG4gICAgICAgICAgICAgICAgICBjbGFzcz1cInZmLWJ1dHRvbiB2Zi1idXR0b24tLWljb24gdmYtYnV0dG9uLS1kaXNtaXNzIHwgdmYtYmFubmVyX19idXR0b25cIlxuICAgICAgICAgICAgICAgICAgKGNsaWNr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iAgICAgICAgICAgIDxsYWJlbFxuICAgICAgICAgICAgICBjbGFzcz1cInZmLXUtc3Itb25seVwiXG4gICAgICAgICAgICAgIGlkPVwidmYtY2hhdGJvdC1zdGFuZGFsb25lLWlucHV0LWxhYmVsXCJcbiAgICAgICAgICAgICAgZm9yPVwidmYtY2hhdGJvdC1zdGFuZGFsb25lLWlucHV0XCJcbiAgICAgICAgICAgICAgPkFzayBtZTwvbGFiZWxcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgIDx0ZXh0YXJlYVxuICAgICAgICAgICAgICBpZD1cInZmLWNoYXRib3Qtc3RhbmRhbG9uZS1pbnB1dFwiXG4gICAgICAgICAgICAgIGRhdGEtdmYtanMtY2hhdGJvdC1zdGFuZGFsb25lLWlucHV0XG4gICAgICAgICAgICAgIGFyaWEtbGFiZWxsZWRieT1cInZmLWNoYXRib3Qtc3RhbmRhbG9uZS1pbnB1dC1sYWJlbFwiXG4gICAgICAgICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1zdGFuZGFsb25lX19pbnB1dCB2Zi1mb3JtX190ZXh0YXJlYSB2Zi11LXBhZGRpbmdfX2xlZnQtLTQwMFwiXG4gICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJjb25maWc/LmlucHV0X3BsYWNlaG9sZGVyXCJcbiAgICAgICAgICAgICAgcm93cz1cIjFcIlxuICAgICAgICAgICAgPjwvdGV4dGFyZWE+XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgIGNsYXNzPVwidmYtY2hhdGJvdC1zdGFuZGFsb25lX19zZW5kLWJ1dHRvblwiXG4gICAgICAgICAgICAgIGFyaWEtbGFiZWw9XCJTZW5kIG1lc3NhZ2VcIlxuICAgICAgICAgICAgICBkYXRhLXZmLWpzLWNoYXRib3Qtc3RhbmRhbG9uZS1zZW5kXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDxpbWcgW3NyY109XCJjb25maWc/Lmljb25zPy5zZW5kX2J1dHRv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dPSBcIid1c2VyJ1wiXG4gICAgICAgICAgW2NvbnRlbnRdPSBcIidIZWxsbyEnXCJcbiAgICAgICAgICBbYXZhdGFyXT1cIntcbiAgICAgICAgICAgIHNyYzogY29uZmlnLmljb25zLnVzZXJfYXZhdGFyLFxuICAgICAgICAgICAgYWx0OiAnWW91ciBhdmF0YXInLFxuICAgICAgICAgICAgbmFtZTogJ1lvdSdcbiAgICAgICAgICB9XCJcbiAgICAgICAgPjwvdmYtY2hhdGJvdC1wcm9tcHQ+XG4gICAgICAgIDwvdGVtcGxhdGU+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb25maWcuZmVhdHVyZXMuZW5hYmxlX3R5cGluZ19pbmRpY2F0b3JcIj5cblxuICAgICAgICAgIDx0ZW1wbGF0ZSBpZCA9IFwibG9hZGluZy1pbmRpY2F0b3ItdGVtcGxhdGVcIj5cbiAgICAgICAgICAgIDx2Zi1jaGF0Ym90LXByb21wdFxuICAgICAgICAgICAgICBbdHlwZV09XCInYXNzaXN0YW50J1wiXG4gICAgICAgICAgICAgIFtpc0xvYWRpbmddPVwidHJ1ZVwiXG4gICAgICAgICAgICAgIFthdmF0YXJdPVwie1xuICAgICAgICAgICAgICAgIHNyYzogY29uZmlnLmljb25zLmFzc2lzdGFudF9hdmF0YXIsXG4gICAgICAgICAgICAgICAgYWx0OiBjb25maWcudGl0bGUsXG4gICAgICAgICAgICAgICAgbmFtZTogY29uZmlnLnRpdGxlXG4gICAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgPjwvdmYtY2hhdGJvdC1wcm9tcHQ+XG4gICAgICAgICAgPC90ZW1wbGF0ZT5cblxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPHRlbXBsYXRlIGlkPVwiYXNzaXN0YW50LW1lc3NhZ2UtdGVtcGxhdGVcIj5cbiAgICAgICAgPHZmLWNoYXRib3QtcHJvbXB0XG4gICAgICAgICAgW3R5cGVdPSBcIidhc3Npc3RhbnQn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W5pdGlhbGl6ZWQuYCk7XG4gICAgICBcbiAgICAgIGlmIChpbml0aWFsaXplZENvdW50ID09PSAwKSB7XG4gICAgICAgIGNvbnNvbGUud2FybignTm8gY2hhdGJvdCBmdW5jdGlvbnMgd2VyZSBpbml0aWFsaXplZC4gQ2hlY2sgdGhhdCBFUzYgbW9kdWxlcyBsb2FkZWQgY29ycmVjdGx5LicpO1xuICAgICAgfVxuICAgICAgXG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgIGNvbnNvbGUuZXJyb3IoJ0Vycm9yIGluaXRpYWxpemluZyBjaGF0Ym90IGZ1bmN0aW9uYWxpdHk6JywgZXJyb3IpO1xuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.module.mjs b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.module.mjs new file mode 100644 index 0000000000..db80bdf4a1 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/lib/vf-chatbot-standalone.angular.module.mjs @@ -0,0 +1,52 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotStandaloneAngularComponent } from './vf-chatbot-standalone.angular.component'; +import { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular'; +import { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular'; +import { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular'; +import { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular'; +import { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular'; +import { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular'; +import * as i0 from "@angular/core"; +export class VfChatbotStandaloneAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, declarations: [VfChatbotStandaloneAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule], exports: [VfChatbotStandaloneAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotStandaloneAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule + ], + exports: [ + VfChatbotStandaloneAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LXN0YW5kYWxvbm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IH0gZnJvbSAndmYtY2hhdGJvdC1wcm9tcHQuYW5ndWxhcic7XG5pbXBvcnQgeyBWZkNoYXRib3RGZWVkYmFja0FuZ3VsYXJNb2R1bGUgfSBmcm9tICd2Zi1jaGF0Ym90LWZlZWRiYWNrLmFuZ3VsYXInO1xuaW1wb3J0IHsgVmZDaGF0Ym90RGlhbG9nQW5ndWxhck1vZHVsZSB9IGZyb20gJ3ZmLWNoYXRib3QtZGlhbG9nLmFuZ3VsYXInO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBWZkNoYXRib3RTdGFuZGFsb25lQW5ndWxhckNvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIFZmQ2hhdGJvdEFjdGlvblByb21wdEFuZ3VsYXJNb2R1bGUsXG4gICAgVmZDaGF0Ym90U2VsZWN0b3JBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdFdlbGNvbWVBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdFByb21wdEFuZ3VsYXJNb2R1bGUsXG4gICAgVmZDaGF0Ym90RmVlZGJhY2tBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdERpYWxvZ0FuZ3VsYXJNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFZmQ2hhdGJvdFN0YW5kYWxvbmVBbmd1bGFyQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgVmZDaGF0Ym90U3RhbmRhbG9uZUFuZ3VsYXJNb2R1bGUgeyB9XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/public-api.mjs b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..acdcedaf1c --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-standalone.angular + */ +export * from './lib/vf-chatbot-standalone.angular.module'; +export * from './lib/vf-chatbot-standalone.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3Qtc3RhbmRhbG9uZS5hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCxjQUFjLCtDQUErQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB2Zi1jaGF0Ym90LXN0YW5kYWxvbmUuYW5ndWxhclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZmLWNoYXRib3Qtc3RhbmRhbG9uZS5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LXN0YW5kYWxvbmUuYW5ndWxhci5jb21wb25lbnQnO1xuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/vf-chatbot-standalone.angular.mjs b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/vf-chatbot-standalone.angular.mjs new file mode 100644 index 0000000000..23ce307b44 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/esm2022/vf-chatbot-standalone.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LXN0YW5kYWxvbmUuYW5ndWxhci9zcmMvdmYtY2hhdGJvdC1zdGFuZGFsb25lLmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs new file mode 100644 index 0000000000..6f3744a68c --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs @@ -0,0 +1,711 @@ +import * as i0 from '@angular/core'; +import { EventEmitter, Component, ViewEncapsulation, Inject, Input, Output, ViewChild, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { DOCUMENT, CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import * as i2 from 'vf-chatbot-action-prompt.angular'; +import { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular'; +import * as i3 from 'vf-chatbot-selector.angular'; +import { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular'; +import * as i4 from 'vf-chatbot-welcome.angular'; +import { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular'; +import * as i5 from 'vf-chatbot-prompt.angular'; +import { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular'; +import * as i6 from 'vf-chatbot-feedback.angular'; +import { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular'; +import * as i7 from 'vf-chatbot-dialog.angular'; +import { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular'; + +class VfChatbotStandaloneAngularComponent { + constructor(renderer, document) { + this.renderer = renderer; + this.document = document; + this.messages = []; + this.sources = []; + this.prompts = []; + this.inputValue = ''; + this.onSendMessage = new EventEmitter(); + this.onInputChange = new EventEmitter(); + this.onFeedback = new EventEmitter(); + this.onDialogConfirm = new EventEmitter(); + this.onDialogCancel = new EventEmitter(); + this.qaData = []; + this.loadedScripts = new Set(); + } + ngOnInit() { } + async ngAfterViewInit() { + console.log('VF Chatbot Standalone component initializing...'); + try { + // Load only the working scripts individually + await this.loadWorkingScripts(); + // Initialize chatbot functionality + this.initializeChatbot(); + } + catch (error) { + console.error('Failed to load chatbot scripts:', error); + // Fallback: try basic initialization in case scripts are already loaded + console.log('Trying fallback initialization...'); + this.initializeChatbot(); + } + console.log('Chatbot standalone component ready', this.standaloneRef); + } + /** + * Load chatbot scripts as ES6 modules + */ + async loadWorkingScripts() { + console.log('Loading ES6 modules...'); + // All chatbot files are ES6 modules (have exports) + const moduleScripts = [ + 'assets/vf-chatbot-fab/vf-chatbot-fab.js', + 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js', + 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js', + 'assets/vf-chatbot-selector/vf-chatbot-selector.js', + 'assets/vf-chatbot-sources/vf-chatbot-sources.js', + 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js' + ]; + // These have both imports AND exports, so they need their dependencies loaded first + const moduleScriptsWithDependencies = [ + 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules + 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules + 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules + ]; + // Load independent modules first + for (const scriptSrc of moduleScripts) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + // Then load modules with dependencies + for (const scriptSrc of moduleScriptsWithDependencies) { + try { + await this.loadSingleScript(scriptSrc); + } + catch (error) { + console.warn(`Skipped ${scriptSrc}:`, error); + } + } + } + /** + * Load a single script as ES6 module + */ + loadSingleScript(src) { + return new Promise((resolve, reject) => { + if (this.loadedScripts.has(src)) { + console.log(`Script already loaded in cache: ${src}`); + resolve(); + return; + } + // Check if script already exists in DOM + const existingScript = this.document.querySelector(`script[src="${src}"]`); + if (existingScript) { + console.log(`Script already loaded in DOM: ${src}`); + this.loadedScripts.add(src); + resolve(); + return; + } + const script = this.renderer.createElement('script'); + script.type = 'module'; // Load as ES6 module + script.src = src; + script.async = true; + script.onload = () => { + this.loadedScripts.add(src); + console.log(`Loaded ES6 module: ${src}`); + resolve(); + }; + script.onerror = (error) => { + console.error(`Failed to load module: ${src}`, error); + // Mark as failed but resolve to continue with other scripts + this.loadedScripts.add(src + '_failed'); + resolve(); + }; + this.renderer.appendChild(this.document.head, script); + }); + } + /** + * Initialize chatbot functionality after scripts are loaded + */ + initializeChatbot() { + console.log('Initializing chatbot functionality...'); + // Access the globally exposed initialization functions + try { + let initializedCount = 0; + // All potential initialization functions from ES6 modules + const allInitFunctions = [ + 'initVFChatbotFab', + 'initVFChatbotDialog', + 'initVFChatbotFeedback', + 'initVFChatbotSelector', + 'initVFChatbotSources', + 'initVFChatbotWelcome', + 'initVFChatbotStandalone', // Now loaded as ES6 module + 'initVFChatbotModal', // Now loaded as ES6 module + 'initVFChatbot' // Now loaded as ES6 module + ]; + allInitFunctions.forEach(funcName => { + if (typeof window[funcName] === 'function') { + try { + window[funcName](); + console.log(`${funcName} initialized`); + initializedCount++; + } + catch (error) { + console.warn(`${funcName} failed to initialize:`, error); + } + } + else { + console.log(`${funcName} not available (module may not have loaded)`); + } + }); + console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`); + if (initializedCount === 0) { + console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.'); + } + } + catch (error) { + console.error('Error initializing chatbot functionality:', error); + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularComponent, deps: [{ token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotStandaloneAngularComponent, selector: "vf-chatbot-standalone", inputs: { config: "config", messages: "messages", sources: "sources", prompts: "prompts", inputValue: "inputValue" }, outputs: { onSendMessage: "onSendMessage", onInputChange: "onInputChange", onFeedback: "onFeedback", onDialogConfirm: "onDialogConfirm", onDialogCancel: "onDialogCancel" }, viewQueries: [{ propertyName: "standaloneRef", first: true, predicate: ["standaloneRef"], descendants: true }], ngImport: i0, template: `
+ +
+
+ + + + +
+
+ +
+ + {{ config?.selectorContext?.selector_logo_title }} + +
+
+
+
+
+
+ + +
+
+ + + + +
+ + +
+ + +
+
+
+

+ +
+
+
+
+ + +
+
+ + + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotActionPromptAngularComponent, selector: "vf-chatbot-action-prompt", inputs: ["action_url", "action_text", "action_target"], outputs: ["actionClick"] }, { kind: "component", type: i3.VfChatbotSelectorAngularComponent, selector: "vf-chatbot-selector", inputs: ["chatbotRoutes", "context"] }, { kind: "component", type: i4.VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: ["qaData", "welcome_logo", "welcome_logo_url", "welcome_logo_alt", "welcome_title", "welcome_message", "welcome_suggestions_title", "enable_welcome_suggestions", "welcome_max_suggestions", "enable_qa_data_loading", "enable_predefined_qa", "enable_fallback_responses", "qa_data_url"] }, { kind: "component", type: i5.VfChatbotPromptAngularComponent, selector: "vf-chatbot-prompt", inputs: ["type", "isLoading", "avatar", "content", "sources", "prompts", "allowFeedback"] }, { kind: "component", type: i6.VfChatbotFeedbackAngularComponent, selector: "vf-chatbot-feedback", inputs: ["feedback_options", "type", "comment"], outputs: ["feedback", "commentChange", "close", "submit"] }, { kind: "component", type: i7.VfChatbotDialogAngularComponent, selector: "vf-chatbot-dialog", inputs: ["title", "message", "cancelLabel", "confirmLabel"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }], encapsulation: i0.ViewEncapsulation.None }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot-standalone', + template: `
+ +
+
+ + + + +
+
+ +
+ + {{ config?.selectorContext?.selector_logo_title }} + +
+
+
+
+
+
+ + +
+
+ + + + +
+ + +
+ + +
+
+
+

+ +
+
+
+
+ + +
+
+ + + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+
+ `, + encapsulation: ViewEncapsulation.None, + }] + }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: Document, decorators: [{ + type: Inject, + args: [DOCUMENT] + }] }], propDecorators: { config: [{ + type: Input + }], messages: [{ + type: Input + }], sources: [{ + type: Input + }], prompts: [{ + type: Input + }], inputValue: [{ + type: Input + }], onSendMessage: [{ + type: Output + }], onInputChange: [{ + type: Output + }], onFeedback: [{ + type: Output + }], onDialogConfirm: [{ + type: Output + }], onDialogCancel: [{ + type: Output + }], standaloneRef: [{ + type: ViewChild, + args: ['standaloneRef'] + }] } }); + +class VfChatbotStandaloneAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, declarations: [VfChatbotStandaloneAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule], exports: [VfChatbotStandaloneAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotStandaloneAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotStandaloneAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule, + VfChatbotSelectorAngularModule, + VfChatbotWelcomeAngularModule, + VfChatbotPromptAngularModule, + VfChatbotFeedbackAngularModule, + VfChatbotDialogAngularModule + ], + exports: [ + VfChatbotStandaloneAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-standalone.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotStandaloneAngularComponent, VfChatbotStandaloneAngularModule }; +//# sourceMappingURL=vf-chatbot-standalone.angular.mjs.map diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs.map b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs.map new file mode 100644 index 0000000000..2be9d68694 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/fesm2022/vf-chatbot-standalone.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-standalone.angular.mjs","sources":["../../../projects/vf-chatbot-standalone.angular/src/lib/vf-chatbot-standalone.angular.component.ts","../../../projects/vf-chatbot-standalone.angular/src/lib/vf-chatbot-standalone.angular.module.ts","../../../projects/vf-chatbot-standalone.angular/src/public-api.ts","../../../projects/vf-chatbot-standalone.angular/src/vf-chatbot-standalone.angular.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n Input,\n Output,\n EventEmitter,\n OnInit,\n AfterViewInit,\n ViewChild,\n ViewEncapsulation,\n Renderer2,\n Inject,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n@Component({\n selector: 'vf-chatbot-standalone',\n template: `\n \n
\n
\n \n \n \n \n
\n
\n \n
\n \n {{ config?.selectorContext?.selector_logo_title }}\n \n
\n
\n
\n
\n
\n
\n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n
\n
\n

\n \n \n dismiss banner\n \n \n \n
\n
\n \n \n\n \n
\n
\n Ask me\n \n \n \"Send\"\n \n
\n\n
\n \n\n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n `,\n encapsulation: ViewEncapsulation.None,\n})\nexport class VfChatbotStandaloneAngularComponent implements OnInit, AfterViewInit {\n @Input() config: any;\n @Input() messages: any[] = [];\n @Input() sources: any[] = [];\n @Input() prompts: any[] = [];\n @Input() inputValue = '';\n\n @Output() onSendMessage = new EventEmitter();\n @Output() onInputChange = new EventEmitter();\n @Output() onFeedback = new EventEmitter();\n @Output() onDialogConfirm = new EventEmitter();\n @Output() onDialogCancel = new EventEmitter();\n\n @ViewChild('standaloneRef') standaloneRef!: ElementRef;\n\n qaData: any[] = [];\n private loadedScripts = new Set();\n\n constructor(\n private renderer: Renderer2,\n @Inject(DOCUMENT) private document: Document\n ) {}\n\n ngOnInit() {}\n\n async ngAfterViewInit() {\n console.log('VF Chatbot Standalone component initializing...');\n \n try {\n // Load only the working scripts individually\n await this.loadWorkingScripts();\n \n // Initialize chatbot functionality \n this.initializeChatbot();\n \n } catch (error) {\n console.error('Failed to load chatbot scripts:', error);\n \n // Fallback: try basic initialization in case scripts are already loaded\n console.log('Trying fallback initialization...');\n this.initializeChatbot();\n }\n \n console.log('Chatbot standalone component ready', this.standaloneRef);\n }\n\n /**\n * Load chatbot scripts as ES6 modules\n */\n private async loadWorkingScripts(): Promise {\n console.log('Loading ES6 modules...');\n \n // All chatbot files are ES6 modules (have exports)\n const moduleScripts = [\n 'assets/vf-chatbot-fab/vf-chatbot-fab.js',\n 'assets/vf-chatbot-dialog/vf-chatbot-dialog.js',\n 'assets/vf-chatbot-feedback/vf-chatbot-feedback.js',\n 'assets/vf-chatbot-selector/vf-chatbot-selector.js',\n 'assets/vf-chatbot-sources/vf-chatbot-sources.js',\n 'assets/vf-chatbot-welcome/vf-chatbot-welcome.js'\n ];\n \n // These have both imports AND exports, so they need their dependencies loaded first\n const moduleScriptsWithDependencies = [\n 'assets/vf-chatbot/vf-chatbot.js', // Has imports from other modules\n 'assets/vf-chatbot-modal/vf-chatbot-modal.js', // Has imports from other modules\n 'assets/vf-chatbot-standalone/vf-chatbot-standalone.js' // Has imports from other modules\n ];\n \n // Load independent modules first\n for (const scriptSrc of moduleScripts) {\n try {\n await this.loadSingleScript(scriptSrc);\n } catch (error) {\n console.warn(`Skipped ${scriptSrc}:`, error);\n }\n }\n \n // Then load modules with dependencies\n for (const scriptSrc of moduleScriptsWithDependencies) {\n try {\n await this.loadSingleScript(scriptSrc);\n } catch (error) {\n console.warn(`Skipped ${scriptSrc}:`, error);\n }\n }\n }\n\n /**\n * Load a single script as ES6 module\n */\n private loadSingleScript(src: string): Promise {\n return new Promise((resolve, reject) => {\n if (this.loadedScripts.has(src)) {\n console.log(`Script already loaded in cache: ${src}`);\n resolve();\n return;\n }\n\n // Check if script already exists in DOM\n const existingScript = this.document.querySelector(`script[src=\"${src}\"]`);\n if (existingScript) {\n console.log(`Script already loaded in DOM: ${src}`);\n this.loadedScripts.add(src);\n resolve();\n return;\n }\n\n const script = this.renderer.createElement('script');\n script.type = 'module'; // Load as ES6 module\n script.src = src;\n script.async = true;\n \n script.onload = () => {\n this.loadedScripts.add(src);\n console.log(`Loaded ES6 module: ${src}`);\n resolve();\n };\n \n script.onerror = (error: any) => {\n console.error(`Failed to load module: ${src}`, error);\n // Mark as failed but resolve to continue with other scripts\n this.loadedScripts.add(src + '_failed');\n resolve();\n };\n \n this.renderer.appendChild(this.document.head, script);\n });\n }\n\n /**\n * Initialize chatbot functionality after scripts are loaded\n */\n private initializeChatbot(): void {\n console.log('Initializing chatbot functionality...');\n \n // Access the globally exposed initialization functions\n try {\n let initializedCount = 0;\n \n // All potential initialization functions from ES6 modules\n const allInitFunctions = [\n 'initVFChatbotFab',\n 'initVFChatbotDialog', \n 'initVFChatbotFeedback',\n 'initVFChatbotSelector',\n 'initVFChatbotSources',\n 'initVFChatbotWelcome',\n 'initVFChatbotStandalone', // Now loaded as ES6 module\n 'initVFChatbotModal', // Now loaded as ES6 module \n 'initVFChatbot' // Now loaded as ES6 module\n ];\n \n allInitFunctions.forEach(funcName => {\n if (typeof (window as any)[funcName] === 'function') {\n try {\n (window as any)[funcName]();\n console.log(`${funcName} initialized`);\n initializedCount++;\n } catch (error) {\n console.warn(`${funcName} failed to initialize:`, error);\n }\n } else {\n console.log(`${funcName} not available (module may not have loaded)`);\n }\n });\n \n console.log(`Chatbot initialization complete. ${initializedCount} components initialized.`);\n \n if (initializedCount === 0) {\n console.warn('No chatbot functions were initialized. Check that ES6 modules loaded correctly.');\n }\n \n } catch (error) {\n console.error('Error initializing chatbot functionality:', error);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotStandaloneAngularComponent } from './vf-chatbot-standalone.angular.component';\nimport { VfChatbotActionPromptAngularModule } from 'vf-chatbot-action-prompt.angular';\nimport { VfChatbotSelectorAngularModule } from 'vf-chatbot-selector.angular';\nimport { VfChatbotWelcomeAngularModule } from 'vf-chatbot-welcome.angular';\nimport { VfChatbotPromptAngularModule } from 'vf-chatbot-prompt.angular';\nimport { VfChatbotFeedbackAngularModule } from 'vf-chatbot-feedback.angular';\nimport { VfChatbotDialogAngularModule } from 'vf-chatbot-dialog.angular';\n\n@NgModule({\n declarations: [\n VfChatbotStandaloneAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n VfChatbotActionPromptAngularModule,\n VfChatbotSelectorAngularModule,\n VfChatbotWelcomeAngularModule,\n VfChatbotPromptAngularModule,\n VfChatbotFeedbackAngularModule,\n VfChatbotDialogAngularModule\n ],\n exports: [\n VfChatbotStandaloneAngularComponent\n ]\n})\nexport class VfChatbotStandaloneAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-standalone.angular\n */\n\nexport * from './lib/vf-chatbot-standalone.angular.module';\nexport * from './lib/vf-chatbot-standalone.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAsPa,mCAAmC,CAAA;IAkB9C,WACU,CAAA,QAAmB,EACD,QAAkB,EAAA;QADpC,IAAQ,CAAA,QAAA,GAAR,QAAQ;QACU,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAlB3B,IAAQ,CAAA,QAAA,GAAU,EAAE;QACpB,IAAO,CAAA,OAAA,GAAU,EAAE;QACnB,IAAO,CAAA,OAAA,GAAU,EAAE;QACnB,IAAU,CAAA,UAAA,GAAG,EAAE;AAEd,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAQ;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAS;AACzC,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAO;AACpC,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,YAAY,EAAQ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,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,kCAAkC;wBAClC,8BAA8B;wBAC9B,6BAA6B;wBAC7B,4BAA4B;wBAC5B,8BAA8B;wBAC9B;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AC5BD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/index.d.ts b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/index.d.ts new file mode 100644 index 0000000000..e4cf66ea1c --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.component.d.ts b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.component.d.ts new file mode 100644 index 0000000000..aa4503a117 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.component.d.ts @@ -0,0 +1,36 @@ +import { ElementRef, EventEmitter, OnInit, AfterViewInit, Renderer2 } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotStandaloneAngularComponent implements OnInit, AfterViewInit { + private renderer; + private document; + config: any; + messages: any[]; + sources: any[]; + prompts: any[]; + inputValue: string; + onSendMessage: EventEmitter; + onInputChange: EventEmitter; + onFeedback: EventEmitter; + onDialogConfirm: EventEmitter; + onDialogCancel: EventEmitter; + standaloneRef: ElementRef; + qaData: any[]; + private loadedScripts; + constructor(renderer: Renderer2, document: Document); + ngOnInit(): void; + ngAfterViewInit(): Promise; + /** + * Load chatbot scripts as ES6 modules + */ + private loadWorkingScripts; + /** + * Load a single script as ES6 module + */ + private loadSingleScript; + /** + * Initialize chatbot functionality after scripts are loaded + */ + private initializeChatbot; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.module.d.ts b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.module.d.ts new file mode 100644 index 0000000000..f340e656c5 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/lib/vf-chatbot-standalone.angular.module.d.ts @@ -0,0 +1,15 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-standalone.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +import * as i4 from "vf-chatbot-action-prompt.angular"; +import * as i5 from "vf-chatbot-selector.angular"; +import * as i6 from "vf-chatbot-welcome.angular"; +import * as i7 from "vf-chatbot-prompt.angular"; +import * as i8 from "vf-chatbot-feedback.angular"; +import * as i9 from "vf-chatbot-dialog.angular"; +export declare class VfChatbotStandaloneAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/package.json b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/package.json new file mode 100644 index 0000000000..68ba496b74 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-standalone.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-standalone.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-standalone.angular.mjs", + "esm": "./esm2022/vf-chatbot-standalone.angular.mjs", + "default": "./fesm2022/vf-chatbot-standalone.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/public-api.d.ts b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/public-api.d.ts new file mode 100644 index 0000000000..40e3980776 --- /dev/null +++ b/components/vf-chatbot-standalone/vf-chatbot-standalone.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-standalone.angular.module'; +export * from './lib/vf-chatbot-standalone.angular.component'; diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/.npmignore b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/README.md b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/README.md new file mode 100644 index 0000000000..19298db5d4 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotWelcomeAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot-welcome-angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot-welcome-angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.component.mjs b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.component.mjs new file mode 100644 index 0000000000..f0514994ae --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.component.mjs @@ -0,0 +1,169 @@ +import { Component, Input, ViewChild } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +export class VfChatbotWelcomeAngularComponent { + constructor() { + this.qaData = []; + this.welcome_logo = false; + this.welcome_logo_url = ''; + this.welcome_logo_alt = 'AI Assistant'; + this.welcome_title = ''; + this.welcome_message = ''; + this.welcome_suggestions_title = ''; + this.enable_welcome_suggestions = false; + this.welcome_max_suggestions = 4; + this.enable_qa_data_loading = true; + this.enable_predefined_qa = true; + this.enable_fallback_responses = true; + this.qa_data_url = ''; + } + ngAfterViewInit() { + // Initialize chatbot welcome + // Render the action prompt template + if (this.templateRef?.nativeElement) { + const el = this.templateRef.nativeElement; + el.innerHTML = ` +
+ +
+ `; + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: { qaData: "qaData", welcome_logo: "welcome_logo", welcome_logo_url: "welcome_logo_url", welcome_logo_alt: "welcome_logo_alt", welcome_title: "welcome_title", welcome_message: "welcome_message", welcome_suggestions_title: "welcome_suggestions_title", enable_welcome_suggestions: "enable_welcome_suggestions", welcome_max_suggestions: "welcome_max_suggestions", enable_qa_data_loading: "enable_qa_data_loading", enable_predefined_qa: "enable_predefined_qa", enable_fallback_responses: "enable_fallback_responses", qa_data_url: "qa_data_url" }, viewQueries: [{ propertyName: "welcomeRef", first: true, predicate: ["welcomeRef"], descendants: true, static: true }, { propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, static: true }], ngImport: i0, template: ` +
+
+ + +

+ {{ welcome_title }} +

+ +
+ {{ welcome_message }} +
+
+ +
+

+ {{ welcome_suggestions_title }} +

+ +
+
+ + +
+ `, isInline: true, styles: [".vf-chatbot-welcome{display:block}.vf-chatbot-welcome__logo{text-align:center;margin-bottom:1rem}.vf-chatbot-welcome__logo-image{max-width:64px;height:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularComponent, decorators: [{ + type: Component, + args: [{ selector: 'vf-chatbot-welcome', template: ` +
+
+ + +

+ {{ welcome_title }} +

+ +
+ {{ welcome_message }} +
+
+ +
+

+ {{ welcome_suggestions_title }} +

+ +
+
+ + +
+ `, styles: [".vf-chatbot-welcome{display:block}.vf-chatbot-welcome__logo{text-align:center;margin-bottom:1rem}.vf-chatbot-welcome__logo-image{max-width:64px;height:auto}\n"] }] + }], propDecorators: { qaData: [{ + type: Input + }], welcome_logo: [{ + type: Input + }], welcome_logo_url: [{ + type: Input + }], welcome_logo_alt: [{ + type: Input + }], welcome_title: [{ + type: Input + }], welcome_message: [{ + type: Input + }], welcome_suggestions_title: [{ + type: Input + }], enable_welcome_suggestions: [{ + type: Input + }], welcome_max_suggestions: [{ + type: Input + }], enable_qa_data_loading: [{ + type: Input + }], enable_predefined_qa: [{ + type: Input + }], enable_fallback_responses: [{ + type: Input + }], qa_data_url: [{ + type: Input + }], welcomeRef: [{ + type: ViewChild, + args: ['welcomeRef', { static: true }] + }], templateRef: [{ + type: ViewChild, + args: ['templateRef', { static: true }] + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC13ZWxjb21lLmFuZ3VsYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC13ZWxjb21lLmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LXdlbGNvbWUuYW5ndWxhci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQWlCLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBNkR2RixNQUFNLE9BQU8sZ0NBQWdDO0lBMUQ3QztRQTJEVyxXQUFNLEdBQVUsRUFBRSxDQUFDO1FBQ25CLGlCQUFZLEdBQUcsS0FBSyxDQUFDO1FBQ3JCLHFCQUFnQixHQUFHLEVBQUUsQ0FBQztRQUN0QixxQkFBZ0IsR0FBRyxjQUFjLENBQUM7UUFDbEMsa0JBQWEsR0FBRyxFQUFFLENBQUM7UUFDbkIsb0JBQWUsR0FBRyxFQUFFLENBQUM7UUFDckIsOEJBQXlCLEdBQUcsRUFBRSxDQUFDO1FBQy9CLCtCQUEwQixHQUFHLEtBQUssQ0FBQztRQUNuQyw0QkFBdUIsR0FBRyxDQUFDLENBQUM7UUFDNUIsMkJBQXNCLEdBQUcsSUFBSSxDQUFDO1FBQzlCLHlCQUFvQixHQUFHLElBQUksQ0FBQztRQUM1Qiw4QkFBeUIsR0FBRyxJQUFJL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YtY2hhdGJvdC1hY3Rpb24tcHJvbXB0X19saW5rXCI+PC9hPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIGA7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.module.mjs b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.module.mjs new file mode 100644 index 0000000000..abbdbea9fa --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/lib/vf-chatbot-welcome.angular.module.mjs @@ -0,0 +1,32 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotWelcomeAngularComponent } from './vf-chatbot-welcome.angular.component'; +import { VfChatbotActionPromptAngularModule } from 'dist/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module'; +import * as i0 from "@angular/core"; +export class VfChatbotWelcomeAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, declarations: [VfChatbotWelcomeAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule], exports: [VfChatbotWelcomeAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotWelcomeAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule + ], + exports: [ + VfChatbotWelcomeAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC13ZWxjb21lLmFuZ3VsYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC13ZWxjb21lLmFuZ3VsYXIvc3JjL2xpYi92Zi1jaGF0Ym90LXdlbGNvbWUuYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQzFGLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLG1GQUFtRixDQUFDOztBQWV2SSxNQUFNLE9BQU8sNkJBQTZCOytHQUE3Qiw2QkFBNkI7Z0hBQTdCLDZCQUE2QixpQkFYdEMsZ0NBQWdDLGFBR2hDLFlBQVk7WUFDWixXQUFXO1lBQ1gsa0NBQWtDLGFBR2xDLGdDQUFnQztnSEFHdkIsNkJBQTZCLFlBUnRDLFlBQVk7WUFDWixXQUFXO1lBQ1gsa0NBQWtDOzs0RkFNekIsNkJBQTZCO2tCQWJ6QyxRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRTt3QkFDWixnQ0FBZ0M7cUJBQ2pDO29CQUNELE9BQU8sRUFBRTt3QkFDUCxZQUFZO3dCQUNaLFdBQVc7d0JBQ1gsa0NBQWtDO3FCQUNuQztvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsZ0NBQWdDO3FCQUNqQztpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgRm9ybXNNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9mb3Jtcyc7IFxuaW1wb3J0IHsgVmZDaGF0Ym90V2VsY29tZUFuZ3VsYXJDb21wb25lbnQgfSBmcm9tICcuL3ZmLWNoYXRib3Qtd2VsY29tZS5hbmd1bGFyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBWZkNoYXRib3RBY3Rpb25Qcm9tcHRBbmd1bGFyTW9kdWxlIH0gZnJvbSAnZGlzdC92Zi1jaGF0Ym90LWFjdGlvbi1wcm9tcHQuYW5ndWxhci9saWIvdmYtY2hhdGJvdC1hY3Rpb24tcHJvbXB0LmFuZ3VsYXIubW9kdWxlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgVmZDaGF0Ym90V2VsY29tZUFuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZSxcbiAgICBWZkNoYXRib3RBY3Rpb25Qcm9tcHRBbmd1bGFyTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBWZkNoYXRib3RXZWxjb21lQW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdFdlbGNvbWVBbmd1bGFyTW9kdWxlIHsgfVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/public-api.mjs b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..bbc5d9461b --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot-welcome-angular + */ +export * from './lib/vf-chatbot-welcome.angular.component'; +export * from './lib/vf-chatbot-welcome.angular.module'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3Qtd2VsY29tZS5hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBR0gsY0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCxjQUFjLHlDQUF5QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB2Zi1jaGF0Ym90LXdlbGNvbWUtYW5ndWxhclxuICovXG5cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvdmYtY2hhdGJvdC13ZWxjb21lLmFuZ3VsYXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZmLWNoYXRib3Qtd2VsY29tZS5hbmd1bGFyLm1vZHVsZSc7Il19 \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/vf-chatbot-welcome-angular.mjs b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/vf-chatbot-welcome-angular.mjs new file mode 100644 index 0000000000..678c1601a3 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/esm2022/vf-chatbot-welcome-angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC13ZWxjb21lLWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy92Zi1jaGF0Ym90LXdlbGNvbWUuYW5ndWxhci9zcmMvdmYtY2hhdGJvdC13ZWxjb21lLWFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs new file mode 100644 index 0000000000..2a40a30d5b --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs @@ -0,0 +1,209 @@ +import * as i0 from '@angular/core'; +import { Component, Input, ViewChild, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotActionPromptAngularModule } from 'dist/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module'; + +class VfChatbotWelcomeAngularComponent { + constructor() { + this.qaData = []; + this.welcome_logo = false; + this.welcome_logo_url = ''; + this.welcome_logo_alt = 'AI Assistant'; + this.welcome_title = ''; + this.welcome_message = ''; + this.welcome_suggestions_title = ''; + this.enable_welcome_suggestions = false; + this.welcome_max_suggestions = 4; + this.enable_qa_data_loading = true; + this.enable_predefined_qa = true; + this.enable_fallback_responses = true; + this.qa_data_url = ''; + } + ngAfterViewInit() { + // Initialize chatbot welcome + // Render the action prompt template + if (this.templateRef?.nativeElement) { + const el = this.templateRef.nativeElement; + el.innerHTML = ` +
+ +
+ `; + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotWelcomeAngularComponent, selector: "vf-chatbot-welcome", inputs: { qaData: "qaData", welcome_logo: "welcome_logo", welcome_logo_url: "welcome_logo_url", welcome_logo_alt: "welcome_logo_alt", welcome_title: "welcome_title", welcome_message: "welcome_message", welcome_suggestions_title: "welcome_suggestions_title", enable_welcome_suggestions: "enable_welcome_suggestions", welcome_max_suggestions: "welcome_max_suggestions", enable_qa_data_loading: "enable_qa_data_loading", enable_predefined_qa: "enable_predefined_qa", enable_fallback_responses: "enable_fallback_responses", qa_data_url: "qa_data_url" }, viewQueries: [{ propertyName: "welcomeRef", first: true, predicate: ["welcomeRef"], descendants: true, static: true }, { propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, static: true }], ngImport: i0, template: ` +
+
+ + +

+ {{ welcome_title }} +

+ +
+ {{ welcome_message }} +
+
+ +
+

+ {{ welcome_suggestions_title }} +

+ +
+
+ + +
+ `, isInline: true, styles: [".vf-chatbot-welcome{display:block}.vf-chatbot-welcome__logo{text-align:center;margin-bottom:1rem}.vf-chatbot-welcome__logo-image{max-width:64px;height:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularComponent, decorators: [{ + type: Component, + args: [{ selector: 'vf-chatbot-welcome', template: ` +
+
+ + +

+ {{ welcome_title }} +

+ +
+ {{ welcome_message }} +
+
+ +
+

+ {{ welcome_suggestions_title }} +

+ +
+
+ + +
+ `, styles: [".vf-chatbot-welcome{display:block}.vf-chatbot-welcome__logo{text-align:center;margin-bottom:1rem}.vf-chatbot-welcome__logo-image{max-width:64px;height:auto}\n"] }] + }], propDecorators: { qaData: [{ + type: Input + }], welcome_logo: [{ + type: Input + }], welcome_logo_url: [{ + type: Input + }], welcome_logo_alt: [{ + type: Input + }], welcome_title: [{ + type: Input + }], welcome_message: [{ + type: Input + }], welcome_suggestions_title: [{ + type: Input + }], enable_welcome_suggestions: [{ + type: Input + }], welcome_max_suggestions: [{ + type: Input + }], enable_qa_data_loading: [{ + type: Input + }], enable_predefined_qa: [{ + type: Input + }], enable_fallback_responses: [{ + type: Input + }], qa_data_url: [{ + type: Input + }], welcomeRef: [{ + type: ViewChild, + args: ['welcomeRef', { static: true }] + }], templateRef: [{ + type: ViewChild, + args: ['templateRef', { static: true }] + }] } }); + +class VfChatbotWelcomeAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, declarations: [VfChatbotWelcomeAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule], exports: [VfChatbotWelcomeAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotWelcomeAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotWelcomeAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotActionPromptAngularModule + ], + exports: [ + VfChatbotWelcomeAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot-welcome-angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotWelcomeAngularComponent, VfChatbotWelcomeAngularModule }; +//# sourceMappingURL=vf-chatbot-welcome-angular.mjs.map diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs.map b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs.map new file mode 100644 index 0000000000..49be21f85f --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/fesm2022/vf-chatbot-welcome-angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot-welcome-angular.mjs","sources":["../../../projects/vf-chatbot-welcome.angular/src/lib/vf-chatbot-welcome.angular.component.ts","../../../projects/vf-chatbot-welcome.angular/src/lib/vf-chatbot-welcome.angular.module.ts","../../../projects/vf-chatbot-welcome.angular/src/public-api.ts","../../../projects/vf-chatbot-welcome.angular/src/vf-chatbot-welcome-angular.ts"],"sourcesContent":["import { Component, ElementRef, Input, AfterViewInit, ViewChild } from '@angular/core';\n\n\n@Component({\n selector: 'vf-chatbot-welcome',\n template: `\n \n
\n
\n \n
\n\n

\n {{ welcome_title }}\n

\n\n
\n {{ welcome_message }}\n
\n
\n\n \n \n {{ welcome_suggestions_title }}\n \n\n \n \n\n \n \n `,\n styles: [`\n .vf-chatbot-welcome { display: block; }\n .vf-chatbot-welcome__logo { text-align: center; margin-bottom: 1rem; }\n .vf-chatbot-welcome__logo-image { max-width: 64px; height: auto; }\n `]\n})\nexport class VfChatbotWelcomeAngularComponent implements AfterViewInit {\n @Input() qaData: any[] = [];\n @Input() welcome_logo = false;\n @Input() welcome_logo_url = '';\n @Input() welcome_logo_alt = 'AI Assistant';\n @Input() welcome_title = '';\n @Input() welcome_message = '';\n @Input() welcome_suggestions_title = '';\n @Input() enable_welcome_suggestions = false;\n @Input() welcome_max_suggestions = 4;\n @Input() enable_qa_data_loading = true;\n @Input() enable_predefined_qa = true;\n @Input() enable_fallback_responses = true;\n @Input() qa_data_url = '';\n\n @ViewChild('welcomeRef', { static: true }) welcomeRef!: ElementRef;\n @ViewChild('templateRef', { static: true }) templateRef!: ElementRef;\n\n ngAfterViewInit(): void {\n // Initialize chatbot welcome\n \n\n // Render the action prompt template\n if (this.templateRef?.nativeElement) {\n const el = this.templateRef.nativeElement as HTMLElement;\n el.innerHTML = `\n
\n \n
\n `;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotWelcomeAngularComponent } from './vf-chatbot-welcome.angular.component';\nimport { VfChatbotActionPromptAngularModule } from 'dist/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module';\n\n@NgModule({\n declarations: [\n VfChatbotWelcomeAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n VfChatbotActionPromptAngularModule\n ],\n exports: [\n VfChatbotWelcomeAngularComponent\n ]\n})\nexport class VfChatbotWelcomeAngularModule { }\n","/*\n * Public API Surface of vf-chatbot-welcome-angular\n */\n\n\nexport * from './lib/vf-chatbot-welcome.angular.component';\nexport * from './lib/vf-chatbot-welcome.angular.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA6Da,gCAAgC,CAAA;AA1D7C,IAAA,WAAA,GAAA;QA2DW,IAAM,CAAA,MAAA,GAAU,EAAE;QAClB,IAAY,CAAA,YAAA,GAAG,KAAK;QACpB,IAAgB,CAAA,gBAAA,GAAG,EAAE;QACrB,IAAgB,CAAA,gBAAA,GAAG,cAAc;QACjC,IAAa,CAAA,aAAA,GAAG,EAAE;QAClB,IAAe,CAAA,eAAA,GAAG,EAAE;QACpB,IAAyB,CAAA,yBAAA,GAAG,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,UAAU,EAAA,CAAA;sBAApD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBACG,WAAW,EAAA,CAAA;sBAAtD,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;MC1D/B,6BAA6B,CAAA;+GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA7B,6BAA6B,EAAA,YAAA,EAAA,CAXtC,gCAAgC,CAAA,EAAA,OAAA,EAAA,CAGhC,YAAY;YACZ,WAAW;AACX,YAAA,kCAAkC,aAGlC,gCAAgC,CAAA,EAAA,CAAA,CAAA;AAGvB,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,6BAA6B,YARtC,YAAY;YACZ,WAAW;YACX,kCAAkC,CAAA,EAAA,CAAA,CAAA;;4FAMzB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAbzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/index.d.ts b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/index.d.ts new file mode 100644 index 0000000000..1304eac9b2 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.component.d.ts b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.component.d.ts new file mode 100644 index 0000000000..5dba3e0657 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.component.d.ts @@ -0,0 +1,22 @@ +import { ElementRef, AfterViewInit } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotWelcomeAngularComponent implements AfterViewInit { + qaData: any[]; + welcome_logo: boolean; + welcome_logo_url: string; + welcome_logo_alt: string; + welcome_title: string; + welcome_message: string; + welcome_suggestions_title: string; + enable_welcome_suggestions: boolean; + welcome_max_suggestions: number; + enable_qa_data_loading: boolean; + enable_predefined_qa: boolean; + enable_fallback_responses: boolean; + qa_data_url: string; + welcomeRef: ElementRef; + templateRef: ElementRef; + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.module.d.ts b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.module.d.ts new file mode 100644 index 0000000000..a51908b1c7 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/lib/vf-chatbot-welcome.angular.module.d.ts @@ -0,0 +1,10 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot-welcome.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +import * as i4 from "dist/vf-chatbot-action-prompt.angular/lib/vf-chatbot-action-prompt.angular.module"; +export declare class VfChatbotWelcomeAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/package.json b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/package.json new file mode 100644 index 0000000000..2fb5732f5c --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot-welcome-angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot-welcome-angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot-welcome-angular.mjs", + "esm": "./esm2022/vf-chatbot-welcome-angular.mjs", + "default": "./fesm2022/vf-chatbot-welcome-angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/public-api.d.ts b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/public-api.d.ts new file mode 100644 index 0000000000..a15fec8e52 --- /dev/null +++ b/components/vf-chatbot-welcome/vf-chatbot-welcome-angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot-welcome.angular.component'; +export * from './lib/vf-chatbot-welcome.angular.module'; diff --git a/components/vf-chatbot/vf-chatbot.angular/.npmignore b/components/vf-chatbot/vf-chatbot.angular/.npmignore new file mode 100644 index 0000000000..c97ccf2941 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/.npmignore @@ -0,0 +1,2 @@ +# Nested package.json's are only needed for development. +**/package.json \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/README.md b/components/vf-chatbot/vf-chatbot.angular/README.md new file mode 100644 index 0000000000..1dd5cf0b72 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/README.md @@ -0,0 +1,63 @@ +# VfChatbotAngular + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the library, run: + +```bash +ng build vf-chatbot.angular +``` + +This command will compile your project, and the build artifacts will be placed in the `dist/` directory. + +### Publishing the Library + +Once the project is built, you can publish your library by following these steps: + +1. Navigate to the `dist` directory: + ```bash + cd dist/vf-chatbot.angular + ``` + +2. Run the `npm publish` command to publish your library to the npm registry: + ```bash + npm publish + ``` + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.component.mjs b/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.component.mjs new file mode 100644 index 0000000000..3cbc65dc4e --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.component.mjs @@ -0,0 +1,80 @@ +import { Component, Input, ViewChild, } from '@angular/core'; +import * as i0 from "@angular/core"; +import * as i1 from "@angular/common"; +import * as i2 from "vf-chatbot-fab.angular"; +import * as i3 from "vf-chatbot-modal.angular"; +import * as i4 from "vf-chatbot-standalone.angular"; +export class VfChatbotAngularComponent { + ngAfterViewInit() { + // Initialize chatbot scripts after view loads + if (this.config?.type === 'modal' && this.chatbotRef?.nativeElement) { + } + else if (this.config?.type === 'standalone' && + this.standaloneRef?.nativeElement) { + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotAngularComponent, selector: "vf-chatbot", inputs: { config: "config" }, viewQueries: [{ propertyName: "chatbotRef", first: true, predicate: ["chatbotRef"], descendants: true }, { propertyName: "standaloneRef", first: true, predicate: ["standaloneRef"], descendants: true }], ngImport: i0, template: ` + +
+ + + + +
+ + + +
+ +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotFabAngularComponent, selector: "vf-chatbot-fab", inputs: ["notificationCount", "isInactive"] }, { kind: "component", type: i3.VfChatbotModalAngularComponent, selector: "vf-chatbot-modal", inputs: ["config", "messages", "sources", "prompts", "inputValue"], outputs: ["onSendMessage", "onInputChange", "onFeedback", "onDialogConfirm", "onDialogCancel"] }, { kind: "component", type: i4.VfChatbotStandaloneAngularComponent, selector: "vf-chatbot-standalone", inputs: ["config", "messages", "sources", "prompts", "inputValue"], outputs: ["onSendMessage", "onInputChange", "onFeedback", "onDialogConfirm", "onDialogCancel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot', + template: ` + +
+ + + + +
+ + + +
+ +
+
+ `, + }] + }], propDecorators: { config: [{ + type: Input + }], chatbotRef: [{ + type: ViewChild, + args: ['chatbotRef', { static: false }] + }], standaloneRef: [{ + type: ViewChild, + args: ['standaloneRef', { static: false }] + }] } }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC5hbmd1bGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY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pZXdDaGlsZCgnY2hhdGJvdFJlZicsIHsgc3RhdGljOiBmYWxzZSB9KSBjaGF0Ym90UmVmPzogRWxlbWVudFJlZjtcbiAgQFZpZXdDaGlsZCgnc3RhbmRhbG9uZVJlZicsIHsgc3RhdGljOiBmYWxzZSB9KSBzdGFuZGFsb25lUmVmPzogRWxlbWVudFJlZjtcblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgLy8gSW5pdGlhbGl6ZSBjaGF0Ym90IHNjcmlwdHMgYWZ0ZXIgdmlldyBsb2Fkc1xuICAgIGlmICh0aGlzLmNvbmZpZz8udHlwZSA9PT0gJ21vZGFsJyAmJiB0aGlzLmNoYXRib3RSZWY/Lm5hdGl2ZUVsZW1lbnQpIHtcbiAgICAgIFxuICAgIH0gZWxzZSBpZiAoXG4gICAgICB0aGlzLmNvbmZpZz8udHlwZSA9PT0gJ3N0YW5kYWxvbmUnICYmXG4gICAgICB0aGlzLnN0YW5kYWxvbmVSZWY/Lm5hdGl2ZUVsZW1lbnRcbiAgICApIHtcbiAgICAgIFxuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.module.mjs b/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.module.mjs new file mode 100644 index 0000000000..3894436d69 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/esm2022/lib/vf-chatbot.angular.module.mjs @@ -0,0 +1,40 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { VfChatbotAngularComponent } from './vf-chatbot.angular.component'; +import { VfChatbotModalAngularModule } from 'vf-chatbot-modal.angular'; +import { VfChatbotFabAngularModule } from 'vf-chatbot-fab.angular'; +import { VfChatbotStandaloneAngularModule } from 'vf-chatbot-standalone.angular'; +import * as i0 from "@angular/core"; +export class VfChatbotAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, declarations: [VfChatbotAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule], exports: [VfChatbotAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule + ], + exports: [ + VfChatbotAngularComponent + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC5hbmd1bGFyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QuYW5ndWxhci9zcmMvbGliL3ZmLWNoYXRib3QuYW5ndWxhci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0F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VudCB9IGZyb20gJy4vdmYtY2hhdGJvdC5hbmd1bGFyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBWZkNoYXRib3RNb2RhbEFuZ3VsYXJNb2R1bGUgfSBmcm9tICd2Zi1jaGF0Ym90LW1vZGFsLmFuZ3VsYXInO1xuaW1wb3J0IHsgVmZDaGF0Ym90RmFiQW5ndWxhck1vZHVsZSB9IGZyb20gJ3ZmLWNoYXRib3QtZmFiLmFuZ3VsYXInO1xuaW1wb3J0IHsgVmZDaGF0Ym90U3RhbmRhbG9uZUFuZ3VsYXJNb2R1bGUgfSBmcm9tICd2Zi1jaGF0Ym90LXN0YW5kYWxvbmUuYW5ndWxhcic7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFZmQ2hhdGJvdEFuZ3VsYXJDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBGb3Jtc01vZHVsZSxcbiAgICBWZkNoYXRib3RGYWJBbmd1bGFyTW9kdWxlLFxuICAgIFZmQ2hhdGJvdE1vZGFsQW5ndWxhck1vZHVsZSxcbiAgICBWZkNoYXRib3RTdGFuZGFsb25lQW5ndWxhck1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVmZDaGF0Ym90QW5ndWxhckNvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFZmQ2hhdGJvdEFuZ3VsYXJNb2R1bGUgeyB9XG4iXX0= \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/esm2022/public-api.mjs b/components/vf-chatbot/vf-chatbot.angular/esm2022/public-api.mjs new file mode 100644 index 0000000000..fb0d76075a --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/esm2022/public-api.mjs @@ -0,0 +1,6 @@ +/* + * Public API Surface of vf-chatbot.angular + */ +export * from './lib/vf-chatbot.angular.module'; +export * from './lib/vf-chatbot.angular.component'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZmLWNoYXRib3QuYW5ndWxhci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdmYtY2hhdGJvdC5hbmd1bGFyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvdmYtY2hhdGJvdC5hbmd1bGFyLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi92Zi1jaGF0Ym90LmFuZ3VsYXIuY29tcG9uZW50JztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/esm2022/vf-chatbot.angular.mjs b/components/vf-chatbot/vf-chatbot.angular/esm2022/vf-chatbot.angular.mjs new file mode 100644 index 0000000000..3e5b0b6850 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/esm2022/vf-chatbot.angular.mjs @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmYtY2hhdGJvdC5hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdmYtY2hhdGJvdC5hbmd1bGFyL3NyYy92Zi1jaGF0Ym90LmFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs b/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs new file mode 100644 index 0000000000..4655203a64 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs @@ -0,0 +1,128 @@ +import * as i0 from '@angular/core'; +import { Component, Input, ViewChild, NgModule } from '@angular/core'; +import * as i1 from '@angular/common'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import * as i2 from 'vf-chatbot-fab.angular'; +import { VfChatbotFabAngularModule } from 'vf-chatbot-fab.angular'; +import * as i3 from 'vf-chatbot-modal.angular'; +import { VfChatbotModalAngularModule } from 'vf-chatbot-modal.angular'; +import * as i4 from 'vf-chatbot-standalone.angular'; +import { VfChatbotStandaloneAngularModule } from 'vf-chatbot-standalone.angular'; + +class VfChatbotAngularComponent { + ngAfterViewInit() { + // Initialize chatbot scripts after view loads + if (this.config?.type === 'modal' && this.chatbotRef?.nativeElement) { + } + else if (this.config?.type === 'standalone' && + this.standaloneRef?.nativeElement) { + } + } + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } + static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.10", type: VfChatbotAngularComponent, selector: "vf-chatbot", inputs: { config: "config" }, viewQueries: [{ propertyName: "chatbotRef", first: true, predicate: ["chatbotRef"], descendants: true }, { propertyName: "standaloneRef", first: true, predicate: ["standaloneRef"], descendants: true }], ngImport: i0, template: ` + +
+ + + + +
+ + + +
+ +
+
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VfChatbotFabAngularComponent, selector: "vf-chatbot-fab", inputs: ["notificationCount", "isInactive"] }, { kind: "component", type: i3.VfChatbotModalAngularComponent, selector: "vf-chatbot-modal", inputs: ["config", "messages", "sources", "prompts", "inputValue"], outputs: ["onSendMessage", "onInputChange", "onFeedback", "onDialogConfirm", "onDialogCancel"] }, { kind: "component", type: i4.VfChatbotStandaloneAngularComponent, selector: "vf-chatbot-standalone", inputs: ["config", "messages", "sources", "prompts", "inputValue"], outputs: ["onSendMessage", "onInputChange", "onFeedback", "onDialogConfirm", "onDialogCancel"] }] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularComponent, decorators: [{ + type: Component, + args: [{ + selector: 'vf-chatbot', + template: ` + +
+ + + + +
+ + + +
+ +
+
+ `, + }] + }], propDecorators: { config: [{ + type: Input + }], chatbotRef: [{ + type: ViewChild, + args: ['chatbotRef', { static: false }] + }], standaloneRef: [{ + type: ViewChild, + args: ['standaloneRef', { static: false }] + }] } }); + +class VfChatbotAngularModule { + static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } + static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, declarations: [VfChatbotAngularComponent], imports: [CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule], exports: [VfChatbotAngularComponent] }); } + static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, imports: [CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule] }); } +} +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: VfChatbotAngularModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + VfChatbotAngularComponent + ], + imports: [ + CommonModule, + FormsModule, + VfChatbotFabAngularModule, + VfChatbotModalAngularModule, + VfChatbotStandaloneAngularModule + ], + exports: [ + VfChatbotAngularComponent + ] + }] + }] }); + +/* + * Public API Surface of vf-chatbot.angular + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { VfChatbotAngularComponent, VfChatbotAngularModule }; +//# sourceMappingURL=vf-chatbot.angular.mjs.map diff --git a/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs.map b/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs.map new file mode 100644 index 0000000000..2fe6718594 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/fesm2022/vf-chatbot.angular.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"vf-chatbot.angular.mjs","sources":["../../../projects/vf-chatbot.angular/src/lib/vf-chatbot.angular.component.ts","../../../projects/vf-chatbot.angular/src/lib/vf-chatbot.angular.module.ts","../../../projects/vf-chatbot.angular/src/public-api.ts","../../../projects/vf-chatbot.angular/src/vf-chatbot.angular.ts"],"sourcesContent":["import {\n Component,\n Input,\n AfterViewInit,\n ViewChild,\n ElementRef,\n} from '@angular/core';\n\n\n\n\n@Component({\n selector: 'vf-chatbot',\n template: `\n \n \n \n \n\n \n \n\n \n \n
\n \n
\n
\n `,\n})\nexport class VfChatbotAngularComponent implements AfterViewInit {\n @Input() config: any;\n\n @ViewChild('chatbotRef', { static: false }) chatbotRef?: ElementRef;\n @ViewChild('standaloneRef', { static: false }) standaloneRef?: ElementRef;\n\n ngAfterViewInit() {\n // Initialize chatbot scripts after view loads\n if (this.config?.type === 'modal' && this.chatbotRef?.nativeElement) {\n \n } else if (\n this.config?.type === 'standalone' &&\n this.standaloneRef?.nativeElement\n ) {\n \n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms'; \nimport { VfChatbotAngularComponent } from './vf-chatbot.angular.component';\nimport { VfChatbotModalAngularModule } from 'vf-chatbot-modal.angular';\nimport { VfChatbotFabAngularModule } from 'vf-chatbot-fab.angular';\nimport { VfChatbotStandaloneAngularModule } from 'vf-chatbot-standalone.angular';\n\n@NgModule({\n declarations: [\n VfChatbotAngularComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n VfChatbotFabAngularModule,\n VfChatbotModalAngularModule,\n VfChatbotStandaloneAngularModule\n ],\n exports: [\n VfChatbotAngularComponent\n ]\n})\nexport class VfChatbotAngularModule { }\n","/*\n * Public API Surface of vf-chatbot.angular\n */\n\nexport * from './lib/vf-chatbot.angular.module';\nexport * from './lib/vf-chatbot.angular.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAsCa,yBAAyB,CAAA;IAMpC,eAAe,GAAA;;AAEb,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE;;AAE9D,aAAA,IACL,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,YAAY;AAClC,YAAA,IAAI,CAAC,aAAa,EAAE,aAAa,EACjC;;;+GAbO,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,EAzB1B,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,WAAA,EAAA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;wBACX,yBAAyB;wBACzB,2BAA2B;wBAC3B;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP;AACD;AACF,iBAAA;;;ACtBD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/index.d.ts b/components/vf-chatbot/vf-chatbot.angular/index.d.ts new file mode 100644 index 0000000000..8cc8c5aefc --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/index.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.component.d.ts b/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.component.d.ts new file mode 100644 index 0000000000..cd8ccc0c66 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.component.d.ts @@ -0,0 +1,10 @@ +import { AfterViewInit, ElementRef } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class VfChatbotAngularComponent implements AfterViewInit { + config: any; + chatbotRef?: ElementRef; + standaloneRef?: ElementRef; + ngAfterViewInit(): void; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.module.d.ts b/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.module.d.ts new file mode 100644 index 0000000000..f215824d80 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/lib/vf-chatbot.angular.module.d.ts @@ -0,0 +1,12 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./vf-chatbot.angular.component"; +import * as i2 from "@angular/common"; +import * as i3 from "@angular/forms"; +import * as i4 from "vf-chatbot-fab.angular"; +import * as i5 from "vf-chatbot-modal.angular"; +import * as i6 from "vf-chatbot-standalone.angular"; +export declare class VfChatbotAngularModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/components/vf-chatbot/vf-chatbot.angular/package.json b/components/vf-chatbot/vf-chatbot.angular/package.json new file mode 100644 index 0000000000..be48d5b984 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/package.json @@ -0,0 +1,25 @@ +{ + "name": "vf-chatbot.angular", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "sideEffects": false, + "module": "fesm2022/vf-chatbot.angular.mjs", + "typings": "index.d.ts", + "exports": { + "./package.json": { + "default": "./package.json" + }, + ".": { + "types": "./index.d.ts", + "esm2022": "./esm2022/vf-chatbot.angular.mjs", + "esm": "./esm2022/vf-chatbot.angular.mjs", + "default": "./fesm2022/vf-chatbot.angular.mjs" + } + } +} \ No newline at end of file diff --git a/components/vf-chatbot/vf-chatbot.angular/public-api.d.ts b/components/vf-chatbot/vf-chatbot.angular/public-api.d.ts new file mode 100644 index 0000000000..2efe1b6406 --- /dev/null +++ b/components/vf-chatbot/vf-chatbot.angular/public-api.d.ts @@ -0,0 +1,2 @@ +export * from './lib/vf-chatbot.angular.module'; +export * from './lib/vf-chatbot.angular.component'; From 30db8b9b77442937531f6a22159aa2895106782a Mon Sep 17 00:00:00 2001 From: Mohammad Shuja Malik Date: Wed, 17 Dec 2025 15:38:44 +0000 Subject: [PATCH 2/2] 2328:VF Chatbot Angular support components --- .../src/site/_includes/layouts/components.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vf-component-library/src/site/_includes/layouts/components.njk b/tools/vf-component-library/src/site/_includes/layouts/components.njk index 4d485e27be..dfe5201c6d 100644 --- a/tools/vf-component-library/src/site/_includes/layouts/components.njk +++ b/tools/vf-component-library/src/site/_includes/layouts/components.njk @@ -289,7 +289,7 @@ This approach is best for bare-bones Nunjucks environments, such as precompiled %}{% endraw %} - {% set angularComponents = "vf-badge, vf-banner, vf-hero, vf-button, vf-blockquote, vf-tabs, vf-back-to-top" %} + {% set angularComponents = "vf-badge, vf-banner, vf-hero, vf-button, vf-blockquote, vf-tabs, vf-back-to-top, vf-chatbot, vf-chatbot-standalone, vf-chatbot-modal" %} {% if component.baseHandle in angularComponents %}
Angular syntax