@quandis/qbo4.messages 4.0.1-CI-20240405-163539 → 4.0.1-CI-20241214-002750

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-20240405-163539",
6
+ "version": "4.0.1-CI-20241214-002750",
7
7
  "workspaces": [
8
8
  "code"
9
9
  ],
package/src/Program.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { LitElement, TemplateResult, css, html } from "lit";
2
- export { customElement, property, state } from "lit/decorators.js";
3
- export { services } from '@quandis/qbo4.ui';
4
- export * from './qbo-message.js';
5
- export * from './styles.js';
1
+ export { LitElement, TemplateResult, css, html } from "lit";
2
+ export { customElement, property, state } from "lit/decorators.js";
3
+ export { services } from '@quandis/qbo4.ui';
4
+ export * from './qbo-message.js';
5
+ export * from './styles.js';
package/src/Program.js CHANGED
@@ -1,9 +1,9 @@
1
- import { html } from 'lit';
2
- window.qbo4 = window.qbo4 || {};
3
- window.qbo4.configuration = window.qbo4.configuration || {};
4
- window.qbo4.configuration.html = html;
5
- export { LitElement, css, html } from "lit";
6
- export { customElement, property, state } from "lit/decorators.js";
7
- export { services } from '@quandis/qbo4.ui';
8
- export * from './qbo-message.js';
9
- export * from './styles.js';
1
+ import { html } from 'lit';
2
+ window.qbo4 = window.qbo4 || {};
3
+ window.qbo4.configuration = window.qbo4.configuration || {};
4
+ window.qbo4.configuration.html = html;
5
+ export { LitElement, css, html } from "lit";
6
+ export { customElement, property, state } from "lit/decorators.js";
7
+ export { services } from '@quandis/qbo4.ui';
8
+ export * from './qbo-message.js';
9
+ export * from './styles.js';
@@ -1,17 +1,17 @@
1
- declare const QboMessage_base: (new (...args: any[]) => import("@quandis/qbo4.ui").IFetch) & (new (...args: any[]) => import("@quandis/qbo4.configuration").ITemplate) & typeof import("lit").LitElement;
2
- export declare class QboMessage extends QboMessage_base {
3
- static styles: import("lit").CSSResult[];
4
- apiEndpoint: URL;
5
- imagePath: any;
6
- renderInHost: boolean;
7
- show: boolean;
8
- type: string;
9
- connectedCallback(): Promise<void>;
10
- firstUpdated(changedProperties: any): void;
11
- disconnectedCallback(): void;
12
- createRenderRoot(): HTMLElement | DocumentFragment;
13
- paginate(e: CustomEvent): Promise<void>;
14
- updatePayload(event: Event): Promise<void>;
15
- search(component: QboMessage): import("lit-html").TemplateResult<1>;
16
- }
17
- export {};
1
+ declare const QboMessage_base: (new (...args: any[]) => import("@quandis/qbo4.ui").IFetch) & (new (...args: any[]) => import("@quandis/qbo4.configuration").ITemplate) & typeof import("lit").LitElement;
2
+ export declare class QboMessage extends QboMessage_base {
3
+ static styles: import("lit").CSSResult[];
4
+ apiEndpoint: URL;
5
+ imagePath: any;
6
+ renderInHost: boolean;
7
+ show: boolean;
8
+ type: string;
9
+ connectedCallback(): Promise<void>;
10
+ firstUpdated(changedProperties: any): void;
11
+ disconnectedCallback(): void;
12
+ createRenderRoot(): HTMLElement | DocumentFragment;
13
+ paginate(e: CustomEvent): Promise<void>;
14
+ updatePayload(event: Event): Promise<void>;
15
+ search(component: QboMessage): import("lit-html").TemplateResult<1>;
16
+ }
17
+ export {};
@@ -1,66 +1,66 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { html } from "lit";
11
- import { property } from "lit/decorators.js";
12
- import { QboTemplate, template } from "@quandis/qbo4.configuration";
13
- import { QboFetchMixin, getArray, formatDate, qboui } from "@quandis/qbo4.ui";
14
- import { messageCss } from "./styles.js";
15
- export class QboMessage extends QboFetchMixin(QboTemplate) {
16
- constructor() {
17
- super(...arguments);
18
- this.apiEndpoint = new URL("api://qbo4/messages/message");
19
- this.imagePath = window.qbo4['imagePath'] ?? '/ui/images/qbo-icons.svg';
20
- this.renderInHost = false;
21
- this.show = true;
22
- this.type = 'search';
23
- }
24
- static { this.styles = [
25
- qboui,
26
- messageCss,
27
- ]; }
28
- async connectedCallback() {
29
- if (Object.keys(this.dataset).length > 0)
30
- this.payload = { ...this.dataset };
31
- switch (this.type) {
32
- case "search":
33
- this.apiEndpoint = new URL("api://qbo4/messages/message/search");
34
- break;
35
- }
36
- super.connectedCallback();
37
- }
38
- firstUpdated(changedProperties) {
39
- super.firstUpdated(changedProperties);
40
- }
41
- disconnectedCallback() {
42
- super.disconnectedCallback();
43
- }
44
- createRenderRoot() {
45
- return this.renderInHost ? this : super.createRenderRoot();
46
- }
47
- async paginate(e) {
48
- if (this.payload == null)
49
- this.payload = {};
50
- this.payload['DisplaySize'] = e.detail['display'];
51
- this.payload['RecordStart'] = e.detail['start'];
52
- await this.fetchData(this.headers ?? {}, this.payload);
53
- }
54
- async updatePayload(event) {
55
- const payload = event.detail?.payload;
56
- if (payload) {
57
- this.payload = payload;
58
- await this.fetchData(this.headers, this.payload);
59
- }
60
- }
61
- search(component) {
62
- const json = getArray(component.jsonData);
63
- const count = Number(json?.[0]?.RecordCount) || 25;
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { html } from "lit";
11
+ import { property } from "lit/decorators.js";
12
+ import { QboTemplate, template } from "@quandis/qbo4.configuration";
13
+ import { QboFetchMixin, getArray, formatDate, qboui } from "@quandis/qbo4.ui";
14
+ import { messageCss } from "./styles.js";
15
+ export class QboMessage extends QboFetchMixin(QboTemplate) {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.apiEndpoint = new URL("api://qbo4/messages/message");
19
+ this.imagePath = window.qbo4['imagePath'] ?? '/ui/images/qbo-icons.svg';
20
+ this.renderInHost = false;
21
+ this.show = true;
22
+ this.type = 'search';
23
+ }
24
+ static { this.styles = [
25
+ qboui,
26
+ messageCss,
27
+ ]; }
28
+ async connectedCallback() {
29
+ if (Object.keys(this.dataset).length > 0)
30
+ this.payload = { ...this.dataset };
31
+ switch (this.type) {
32
+ case "search":
33
+ this.apiEndpoint = new URL("api://qbo4/messages/message/search");
34
+ break;
35
+ }
36
+ super.connectedCallback();
37
+ }
38
+ firstUpdated(changedProperties) {
39
+ super.firstUpdated(changedProperties);
40
+ }
41
+ disconnectedCallback() {
42
+ super.disconnectedCallback();
43
+ }
44
+ createRenderRoot() {
45
+ return this.renderInHost ? this : super.createRenderRoot();
46
+ }
47
+ async paginate(e) {
48
+ if (this.payload == null)
49
+ this.payload = {};
50
+ this.payload['DisplaySize'] = e.detail['display'];
51
+ this.payload['RecordStart'] = e.detail['start'];
52
+ await this.fetchData(this.headers ?? {}, this.payload);
53
+ }
54
+ async updatePayload(event) {
55
+ const payload = event.detail?.payload;
56
+ if (payload) {
57
+ this.payload = payload;
58
+ await this.fetchData(this.headers, this.payload);
59
+ }
60
+ }
61
+ search(component) {
62
+ const json = getArray(component.jsonData);
63
+ const count = Number(json?.[0]?.RecordCount) || 25;
64
64
  return html `<slot class=${component.show ? '' : 'collapse'}>
65
65
  <h3 class="title">
66
66
  <button type="button" class="expandcollapse" @click="${(e) => component.show = !component.show}">
@@ -102,34 +102,34 @@ export class QboMessage extends QboFetchMixin(QboTemplate) {
102
102
  </tfoot>
103
103
  </table>
104
104
  </div>
105
- </div></slot>`;
106
- }
107
- }
108
- __decorate([
109
- property({ type: URL }),
110
- __metadata("design:type", Object)
111
- ], QboMessage.prototype, "apiEndpoint", void 0);
112
- __decorate([
113
- property({ type: String }),
114
- __metadata("design:type", Object)
115
- ], QboMessage.prototype, "imagePath", void 0);
116
- __decorate([
117
- property(),
118
- __metadata("design:type", Boolean)
119
- ], QboMessage.prototype, "renderInHost", void 0);
120
- __decorate([
121
- property({ type: Boolean }),
122
- __metadata("design:type", Object)
123
- ], QboMessage.prototype, "show", void 0);
124
- __decorate([
125
- property(),
126
- __metadata("design:type", String)
127
- ], QboMessage.prototype, "type", void 0);
128
- __decorate([
129
- template('search'),
130
- __metadata("design:type", Function),
131
- __metadata("design:paramtypes", [QboMessage]),
132
- __metadata("design:returntype", void 0)
133
- ], QboMessage.prototype, "search", null);
134
- if (!customElements.get('qbo-message'))
135
- customElements.define('qbo-message', QboMessage);
105
+ </div></slot>`;
106
+ }
107
+ }
108
+ __decorate([
109
+ property({ type: URL }),
110
+ __metadata("design:type", Object)
111
+ ], QboMessage.prototype, "apiEndpoint", void 0);
112
+ __decorate([
113
+ property({ type: String }),
114
+ __metadata("design:type", Object)
115
+ ], QboMessage.prototype, "imagePath", void 0);
116
+ __decorate([
117
+ property(),
118
+ __metadata("design:type", Boolean)
119
+ ], QboMessage.prototype, "renderInHost", void 0);
120
+ __decorate([
121
+ property({ type: Boolean }),
122
+ __metadata("design:type", Object)
123
+ ], QboMessage.prototype, "show", void 0);
124
+ __decorate([
125
+ property(),
126
+ __metadata("design:type", String)
127
+ ], QboMessage.prototype, "type", void 0);
128
+ __decorate([
129
+ template('search'),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [QboMessage]),
132
+ __metadata("design:returntype", void 0)
133
+ ], QboMessage.prototype, "search", null);
134
+ if (!customElements.get('qbo-message'))
135
+ customElements.define('qbo-message', QboMessage);
package/src/styles.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const messageCss: import("lit").CSSResult;
1
+ export declare const messageCss: import("lit").CSSResult;
package/src/styles.js CHANGED
@@ -1,2 +1,2 @@
1
- import { css } from 'lit';
2
- export const messageCss = css ``;
1
+ import { css } from 'lit';
2
+ export const messageCss = css ``;
@@ -1,3 +1,3 @@
1
-
2
-
1
+
2
+
3
3
  /*# sourceMappingURL=qbo-message.css.map */