@telia-ace/knowledge-widget-bot-provider 0.0.15-experimental.8 → 0.0.15-experimental.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -736,7 +736,7 @@ const at = ot, rt = (i) => m(void 0, null, function* () {
736
736
  ), x(
737
737
  i,
738
738
  "ace-knowledge-bot-new-notification-list",
739
- import("./new-notification-list.17d34093.js")
739
+ import("./new-notification-list.8acdfeb4.js")
740
740
  ), x(
741
741
  i,
742
742
  f.NotificationList,
@@ -0,0 +1,60 @@
1
+ import { NotificationListUi as m } from "@telia-ace/knowledge-widget-ui";
2
+ import { LitElement as p, nothing as c, html as d, unsafeCSS as u } from "lit";
3
+ import { property as r, customElement as y } from "lit/decorators.js";
4
+ const h = `ui-notification-list{--notification-list-padding: var(--size-medium) 0;--notification-list-margin: 0 var(--size-medium);--notification-list-min-width: 10em}
5
+ `;
6
+ var b = Object.defineProperty, g = Object.getOwnPropertyDescriptor, o = (s, t, l, n) => {
7
+ for (var i = n > 1 ? void 0 : n ? g(t, l) : t, a = s.length - 1, f; a >= 0; a--)
8
+ (f = s[a]) && (i = (n ? f(t, l, i) : f(i)) || i);
9
+ return n && i && b(t, l, i), i;
10
+ };
11
+ customElements.get("ui-notification-list") || customElements.define("ui-notification-list", m);
12
+ let e = class extends p {
13
+ constructor() {
14
+ super(), this.items = [];
15
+ }
16
+ render() {
17
+ if (!this.items.length)
18
+ return c;
19
+ const s = {
20
+ id: this.id,
21
+ title: this.header,
22
+ symbol: this.symbol,
23
+ defaultHeaderOptions: {
24
+ visible: !0
25
+ },
26
+ notifications: this.items.map((t) => ({
27
+ id: t.id.toString(),
28
+ title: t.title,
29
+ body: t.body,
30
+ modified: t.modified,
31
+ expandable: !0
32
+ }))
33
+ };
34
+ return d`<ui-notification-list
35
+ .notificationList=${s}
36
+ .showHeader=${!0}
37
+ .loading=${!1}
38
+ ></ui-notification-list>`;
39
+ }
40
+ };
41
+ e.styles = u(h);
42
+ o([
43
+ r({ type: Array })
44
+ ], e.prototype, "items", 2);
45
+ o([
46
+ r({ type: String })
47
+ ], e.prototype, "header", 2);
48
+ o([
49
+ r({ type: String })
50
+ ], e.prototype, "id", 2);
51
+ o([
52
+ r({ type: Object })
53
+ ], e.prototype, "symbol", 2);
54
+ e = o([
55
+ y("ace-knowledge-bot-notification-list")
56
+ ], e);
57
+ export {
58
+ e as NewNotificationList
59
+ };
60
+ //# sourceMappingURL=new-notification-list.8acdfeb4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-notification-list.8acdfeb4.js","sources":["../src/ui/new-notification-list.ts"],"sourcesContent":["import { NotificationListUi, Symbol } from '@telia-ace/knowledge-widget-ui';\nimport { html, LitElement, nothing, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './notification-list.scss?inline';\n\nif (!customElements.get('ui-notification-list')) {\n customElements.define('ui-notification-list', NotificationListUi);\n}\n\n@customElement('ace-knowledge-bot-notification-list')\nexport class NewNotificationList extends LitElement {\n static styles = unsafeCSS(styles);\n\n @property({ type: Array })\n declare items: any[];\n\n @property({ type: String })\n declare header: string;\n\n @property({ type: String })\n declare id: string;\n\n @property({ type: Object })\n declare symbol: Symbol;\n\n constructor() {\n super();\n this.items = [];\n }\n\n render() {\n if (!this.items.length) {\n return nothing;\n }\n\n const list = {\n id: this.id,\n title: this.header,\n symbol: this.symbol,\n defaultHeaderOptions: {\n visible: true,\n },\n notifications: this.items.map((item) => ({\n id: item.id.toString(),\n title: item.title,\n body: item.body,\n modified: item.modified,\n expandable: true,\n })),\n };\n\n return html`<ui-notification-list\n .notificationList=${list}\n .showHeader=${true}\n .loading=${false}\n ></ui-notification-list>`;\n }\n}\n"],"names":["NotificationListUi","NewNotificationList","LitElement","nothing","list","item","html","unsafeCSS","styles","__decorateClass","property","customElement"],"mappings":";;;;;;;;;;AAKK,eAAe,IAAI,sBAAsB,KAC3B,eAAA,OAAO,wBAAwBA,CAAkB;AAIvD,IAAAC,IAAN,cAAkCC,EAAW;AAAA,EAehD,cAAc;AACJ,aACN,KAAK,QAAQ;EACjB;AAAA,EAEA,SAAS;AACD,QAAA,CAAC,KAAK,MAAM;AACL,aAAAC;AAGX,UAAMC,IAAO;AAAA,MACT,IAAI,KAAK;AAAA,MACT,OAAO,KAAK;AAAA,MACZ,QAAQ,KAAK;AAAA,MACb,sBAAsB;AAAA,QAClB,SAAS;AAAA,MACb;AAAA,MACA,eAAe,KAAK,MAAM,IAAI,CAACC,OAAU;AAAA,QACrC,IAAIA,EAAK,GAAG,SAAS;AAAA,QACrB,OAAOA,EAAK;AAAA,QACZ,MAAMA,EAAK;AAAA,QACX,UAAUA,EAAK;AAAA,QACf,YAAY;AAAA,MAAA,EACd;AAAA,IAAA;AAGC,WAAAC;AAAA,gCACiBF;AAAA,0BACN;AAAA,uBACH;AAAA;AAAA,EAEnB;AACJ;AA/CaH,EACF,SAASM,EAAUC,CAAM;AAGxBC,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,OAAO;AAAA,GAHhBT,EAID,WAAA,SAAA,CAAA;AAGAQ,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GANjBT,EAOD,WAAA,UAAA,CAAA;AAGAQ,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GATjBT,EAUD,WAAA,MAAA,CAAA;AAGAQ,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAZjBT,EAaD,WAAA,UAAA,CAAA;AAbCA,IAANQ,EAAA;AAAA,EADNE,EAAc,qCAAqC;AAAA,GACvCV,CAAA;"}
@@ -1,6 +1,11 @@
1
- import { LitElement } from 'lit';
1
+ import { Symbol } from '@telia-ace/knowledge-widget-ui';
2
+ import { LitElement, nothing } from 'lit';
2
3
  export declare class NewNotificationList extends LitElement {
3
4
  static styles: import("lit").CSSResult;
4
- propName: any;
5
- render(): import("lit").TemplateResult<1>;
5
+ items: any[];
6
+ header: string;
7
+ id: string;
8
+ symbol: Symbol;
9
+ constructor();
10
+ render(): import("lit").TemplateResult<1> | typeof nothing;
6
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-bot-provider",
3
- "version": "0.0.15-experimental.8",
3
+ "version": "0.0.15-experimental.9",
4
4
  "description": "Bot Provider Plugin ACE Knowledge Widgets.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "@telia-ace/knowledge-widget-adapters": "1.0.44-experimental.8",
25
- "@telia-ace/knowledge-widget-types-grid": "1.0.45-experimental.8",
26
- "@telia-ace/knowledge-widget-ui": "1.0.40-experimental.8",
27
- "@telia-ace/widget-conversation": "^1.0.34-experimental.18",
28
- "@telia-ace/widget-forms": "^1.0.28-experimental.18",
29
- "@telia-ace/widget-services": "^1.0.21-experimental.18",
30
- "@telia-ace/widget-ui": "^1.0.28-experimental.18",
31
- "@telia-ace/widget-utilities": "^1.0.10-experimental.18",
24
+ "@telia-ace/knowledge-widget-adapters": "1.0.44-experimental.9",
25
+ "@telia-ace/knowledge-widget-types-grid": "1.0.45-experimental.9",
26
+ "@telia-ace/knowledge-widget-ui": "1.0.40-experimental.9",
27
+ "@telia-ace/widget-conversation": "^1.0.34-experimental.19",
28
+ "@telia-ace/widget-forms": "^1.0.28-experimental.19",
29
+ "@telia-ace/widget-services": "^1.0.21-experimental.19",
30
+ "@telia-ace/widget-ui": "^1.0.28-experimental.19",
31
+ "@telia-ace/widget-utilities": "^1.0.10-experimental.19",
32
32
  "@webprovisions/bootstrapping": "^1.0.12"
33
33
  },
34
34
  "peerDependencies": {
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@emotion/react": "^11.10.5",
42
42
  "@emotion/styled": "^11.10.5",
43
- "@telia-ace/knowledge-widget-core": "1.0.34-experimental.8",
43
+ "@telia-ace/knowledge-widget-core": "1.0.34-experimental.9",
44
44
  "@types/react": "^18.0.26",
45
45
  "@webprovisions/platform": "^1.1.2",
46
46
  "lit": "^2.6.1",
@@ -1,24 +0,0 @@
1
- import { LitElement as f, html as c, unsafeCSS as m } from "lit";
2
- import { property as a, customElement as v } from "lit/decorators.js";
3
- const _ = "";
4
- var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, l = (p, e, s, r) => {
5
- for (var t = r > 1 ? void 0 : r ? y(e, s) : e, i = p.length - 1, n; i >= 0; i--)
6
- (n = p[i]) && (t = (r ? n(e, s, t) : n(t)) || t);
7
- return r && t && u(e, s, t), t;
8
- };
9
- let o = class extends f {
10
- render() {
11
- return c`notificationList`;
12
- }
13
- };
14
- o.styles = m(_);
15
- l([
16
- a({ type: String })
17
- ], o.prototype, "propName", 2);
18
- o = l([
19
- v("ace-knowledge-bot-notification-list")
20
- ], o);
21
- export {
22
- o as NewNotificationList
23
- };
24
- //# sourceMappingURL=new-notification-list.17d34093.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-notification-list.17d34093.js","sources":["../src/ui/new-notification-list.ts"],"sourcesContent":["import { html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './notification-list.scss?inline';\n// import {NotificationListUi} from '@telia-ace/knowledge-widget-ui';\n\n@customElement('ace-knowledge-bot-notification-list')\nexport class NewNotificationList extends LitElement {\n static styles = unsafeCSS(styles);\n\n @property({ type: String })\n declare propName: any;\n\n render() {\n return html`notificationList`;\n }\n}\n"],"names":["NewNotificationList","LitElement","html","unsafeCSS","styles","__decorateClass","property","customElement"],"mappings":";;;;;;;;AAMa,IAAAA,IAAN,cAAkCC,EAAW;AAAA,EAMhD,SAAS;AACE,WAAAC;AAAA,EACX;AACJ;AATaF,EACF,SAASG,EAAUC,CAAM;AAGxBC,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAHjBN,EAID,WAAA,YAAA,CAAA;AAJCA,IAANK,EAAA;AAAA,EADNE,EAAc,qCAAqC;AAAA,GACvCP,CAAA;"}