@quandis/qbo4.ui-bridge 4.0.1-CI-20241031-130254 → 4.0.1-CI-20241031-205224

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Quandis, Inc.",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "4.0.1-CI-20241031-130254",
6
+ "version": "4.0.1-CI-20241031-205224",
7
7
  "workspaces": [
8
8
  "code"
9
9
  ],
@@ -15,7 +15,8 @@
15
15
  "clean": "rd \"node_modules/@quandis/qbo4.ui\" -force -recurse -ErrorAction SilentlyContinue",
16
16
  "packdev": "webpack --config pack.dev.js --no-color",
17
17
  "packprod": "webpack --config pack.prod.js --no-color",
18
- "sass": "sass --load-path=node_modules --quiet scss/:wwwroot/css && node cssshake.js"
18
+ "sass": "sass --load-path=node_modules --quiet scss/:wwwroot/css && node cssshake.js",
19
+ "quick": "npm run sass && tsc --build --force && npm run packdev && del *.tgz && npm pack && ren *.tgz qbo4.ui-bridge.tgz"
19
20
  },
20
21
  "keywords": [
21
22
  "qbo"
@@ -37,7 +37,8 @@ let QboContact = class QboContact extends LitElement {
37
37
  async connectedCallback() {
38
38
  super.connectedCallback();
39
39
  const service = services.container.isRegistered(this.apiEndpoint) ? services.container.resolve(this.apiEndpoint) : new RestApiService(this.apiEndpoint);
40
- this.jsonData = await service.fetch(`contact/summary/${this.contactId}`);
40
+ const payload = (Object.keys(this.dataset).length > 0) ? { ...this.dataset } : null;
41
+ this.jsonData = await service.fetch(`contact/summary/${this.contactId}`, payload);
41
42
  }
42
43
  render() {
43
44
  if (this.jsonData == undefined || this.jsonData.Root == undefined || (this.jsonData.Root.ContactItem == undefined && this.contactId != null))
@@ -59,9 +59,9 @@ export class QboContact extends LitElement {
59
59
 
60
60
  async connectedCallback() {
61
61
  super.connectedCallback();
62
-
63
62
  const service: IApiService = services.container.isRegistered(this.apiEndpoint) ? services.container.resolve<IApiService>(this.apiEndpoint) : new RestApiService(this.apiEndpoint);
64
- this.jsonData = await service.fetch(`contact/summary/${this.contactId}`);
63
+ const payload = (Object.keys(this.dataset).length > 0) ? { ...this.dataset } as Record<string, string> : null;
64
+ this.jsonData = await service.fetch(`contact/summary/${this.contactId}`, payload);
65
65
  }
66
66
 
67
67
  render() {
@@ -6,7 +6,9 @@
6
6
  <link href="css/ui-bridge.css" rel="stylesheet">
7
7
  </head>
8
8
  <body>
9
- <qbo-api name="qbo" apiEndpoint="/bridge/"></qbo-api>
9
+ <qbo-api name="qbo" apiEndpoint="/bridge/">
10
+ <header name="Accept">application/json</header>
11
+ </qbo-api>
10
12
  <qbo-mainmenu></qbo-mainmenu>
11
13
  <nav class="qbo-breadcrumb">
12
14
  <div>
@@ -102,7 +104,7 @@
102
104
  <h2 id="children">
103
105
  Child Contacts
104
106
  </h2>
105
- <qbo-table apiEndpoint="/bridge/contact/search?ParentContactID=1&Output=Json">
107
+ <qbo-table apiEndpoint="/bridge/contact/smartsearch/json" data-parentcontactid="1">
106
108
  <table class="table table-striped table-hover">
107
109
  <thead>
108
110
  <tr>