@quandis/qbo4.ui 4.0.1-CI-20241108-002603 → 4.0.1-CI-20241108-220729

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.
Files changed (56) hide show
  1. package/package.json +1 -1
  2. package/scss/qbo.scss +10 -88
  3. package/src/qbo/qbo-api.js +7 -5
  4. package/src/qbo/qbo-api.ts +1 -2
  5. package/src/qbo/qbo-card.js +7 -5
  6. package/src/qbo/qbo-card.ts +2 -4
  7. package/src/qbo/qbo-contextmenu.js +7 -5
  8. package/src/qbo/qbo-contextmenu.ts +1 -3
  9. package/src/qbo/qbo-datalist.js +7 -5
  10. package/src/qbo/qbo-datalist.ts +2 -4
  11. package/src/qbo/qbo-docviewer.js +7 -5
  12. package/src/qbo/qbo-docviewer.ts +1 -3
  13. package/src/qbo/qbo-fetch.js +0 -4
  14. package/src/qbo/qbo-fetch.ts +0 -3
  15. package/src/qbo/qbo-form-edit.js +7 -5
  16. package/src/qbo/qbo-form-edit.ts +1 -3
  17. package/src/qbo/qbo-form-element.js +12 -7
  18. package/src/qbo/qbo-form-element.ts +1 -2
  19. package/src/qbo/qbo-icon.js +11 -7
  20. package/src/qbo/qbo-icon.ts +1 -3
  21. package/src/qbo/qbo-microphone.js +11 -7
  22. package/src/qbo/qbo-microphone.ts +1 -3
  23. package/src/qbo/qbo-paginate.js +7 -5
  24. package/src/qbo/qbo-paginate.ts +1 -3
  25. package/src/qbo/qbo-popover.js +7 -5
  26. package/src/qbo/qbo-popover.ts +2 -4
  27. package/src/qbo/qbo-popup-listener.js +7 -5
  28. package/src/qbo/qbo-popup-listener.ts +1 -3
  29. package/src/qbo/qbo-popup.js +7 -5
  30. package/src/qbo/qbo-popup.ts +1 -3
  31. package/src/qbo/qbo-resize.js +7 -5
  32. package/src/qbo/qbo-resize.ts +2 -3
  33. package/src/qbo/qbo-select.js +7 -5
  34. package/src/qbo/qbo-select.ts +1 -3
  35. package/src/qbo/qbo-selectable.js +7 -5
  36. package/src/qbo/qbo-selectable.ts +1 -3
  37. package/src/qbo/qbo-table.js +7 -5
  38. package/src/qbo/qbo-table.ts +1 -2
  39. package/src/qbo/qbo-user-preferences.js +8 -5
  40. package/src/qbo/qbo-user-preferences.ts +1 -3
  41. package/src/qbo/qbo-validate.js +8 -5
  42. package/src/qbo/qbo-validate.ts +1 -3
  43. package/src/qbo/styles.js +2 -2
  44. package/src/qbo/styles.ts +2 -2
  45. package/wwwroot/css/qbo.css +9 -90
  46. package/wwwroot/css/qbo.css.map +1 -1
  47. package/wwwroot/css/qbo.min.css +1 -1
  48. package/wwwroot/css/qboui.css +9 -90
  49. package/wwwroot/css/qboui.css.map +1 -1
  50. package/wwwroot/css/qboui.min.css +1 -1
  51. package/wwwroot/js/esm/qbo4.ui.js +132 -89
  52. package/wwwroot/js/esm/qbo4.ui.min.js +25 -25
  53. package/wwwroot/js/esm/qbo4.ui.min.js.map +1 -1
  54. package/wwwroot/js/qbo4.ui.js +132 -89
  55. package/wwwroot/js/qbo4.ui.min.js +24 -24
  56. package/wwwroot/js/qbo4.ui.min.js.map +1 -1
@@ -7,12 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
+ var QboMicrophone_1;
10
11
  import { html, LitElement } from 'lit';
11
- import { property } from 'lit/decorators.js';
12
+ import { customElement, property } from 'lit/decorators.js';
12
13
  /**
13
14
  * Collect text input from the user.
14
15
  */
15
- export class QboMicrophone extends LitElement {
16
+ let QboMicrophone = class QboMicrophone extends LitElement {
16
17
  constructor() {
17
18
  super(...arguments);
18
19
  this.renderInHost = true;
@@ -26,6 +27,7 @@ export class QboMicrophone extends LitElement {
26
27
  this.target = null;
27
28
  this.listening = false;
28
29
  }
30
+ static { QboMicrophone_1 = this; }
29
31
  static { this.activeInstance = null; }
30
32
  connectedCallback() {
31
33
  super.connectedCallback();
@@ -91,7 +93,7 @@ export class QboMicrophone extends LitElement {
91
93
  }
92
94
  start() {
93
95
  this.listening = true;
94
- QboMicrophone.activeInstance = this;
96
+ QboMicrophone_1.activeInstance = this;
95
97
  if (this.activeClass)
96
98
  this.classList.add(this.activeClass);
97
99
  console.log('listening');
@@ -99,7 +101,7 @@ export class QboMicrophone extends LitElement {
99
101
  }
100
102
  stop(e) {
101
103
  this.listening = false;
102
- QboMicrophone.activeInstance = null;
104
+ QboMicrophone_1.activeInstance = null;
103
105
  if (this.activeClass)
104
106
  this.classList.remove(this.activeClass);
105
107
  console.log('stopped listening');
@@ -112,7 +114,7 @@ export class QboMicrophone extends LitElement {
112
114
  render() {
113
115
  return html `<slot></slot>`;
114
116
  }
115
- }
117
+ };
116
118
  __decorate([
117
119
  property({ type: Boolean }),
118
120
  __metadata("design:type", Object)
@@ -141,5 +143,7 @@ __decorate([
141
143
  property({ type: String }),
142
144
  __metadata("design:type", Object)
143
145
  ], QboMicrophone.prototype, "activeClass", void 0);
144
- if (!customElements.get('qbo-microphone'))
145
- customElements.define('qbo-microphone', QboMicrophone);
146
+ QboMicrophone = QboMicrophone_1 = __decorate([
147
+ customElement('qbo-microphone')
148
+ ], QboMicrophone);
149
+ export { QboMicrophone };
@@ -11,6 +11,7 @@ declare global {
11
11
  /**
12
12
  * Collect text input from the user.
13
13
  */
14
+ @customElement('qbo-microphone')
14
15
  export class QboMicrophone extends LitElement
15
16
  {
16
17
  static activeInstance: QboMicrophone | null = null;
@@ -134,6 +135,3 @@ export class QboMicrophone extends LitElement
134
135
  return html`<slot></slot>`;
135
136
  }
136
137
  }
137
-
138
- if (!customElements.get('qbo-microphone'))
139
- customElements.define('qbo-microphone', QboMicrophone)
@@ -8,9 +8,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { html, css, LitElement } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  import { qboui } from './styles.js';
13
- export class QboPaginate extends LitElement {
13
+ let QboPaginate = class QboPaginate extends LitElement {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  this.display = 25;
@@ -104,7 +104,7 @@ export class QboPaginate extends LitElement {
104
104
  </ul>
105
105
  </nav>`;
106
106
  }
107
- }
107
+ };
108
108
  __decorate([
109
109
  property({ type: Number }),
110
110
  __metadata("design:type", Object)
@@ -133,5 +133,7 @@ __decorate([
133
133
  property({ type: Boolean }),
134
134
  __metadata("design:type", Object)
135
135
  ], QboPaginate.prototype, "editSize", void 0);
136
- if (!customElements.get('qbo-paginate'))
137
- customElements.define('qbo-paginate', QboPaginate);
136
+ QboPaginate = __decorate([
137
+ customElement('qbo-paginate')
138
+ ], QboPaginate);
139
+ export { QboPaginate };
@@ -2,6 +2,7 @@
2
2
  import { customElement, property } from 'lit/decorators.js';
3
3
  import { qboui } from './styles.js';
4
4
 
5
+ @customElement('qbo-paginate')
5
6
  export class QboPaginate extends LitElement {
6
7
  @property({ type: Number })
7
8
  display = 25;
@@ -119,6 +120,3 @@ export class QboPaginate extends LitElement {
119
120
  }
120
121
 
121
122
  }
122
-
123
- if (!customElements.get('qbo-paginate'))
124
- customElements.define('qbo-paginate', QboPaginate)
@@ -8,9 +8,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, html } from "lit";
11
- import { property, state } from "lit/decorators.js";
11
+ import { customElement, property, state } from "lit/decorators.js";
12
12
  import { computePosition, shift, flip } from "@floating-ui/dom";
13
- export class QboPopover extends LitElement {
13
+ let QboPopover = class QboPopover extends LitElement {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  this.placement = "bottom";
@@ -78,7 +78,7 @@ export class QboPopover extends LitElement {
78
78
  render() {
79
79
  return html `<slot></slot>`;
80
80
  }
81
- }
81
+ };
82
82
  __decorate([
83
83
  property({ type: String }),
84
84
  __metadata("design:type", String)
@@ -91,5 +91,7 @@ __decorate([
91
91
  state(),
92
92
  __metadata("design:type", Object)
93
93
  ], QboPopover.prototype, "isOpen", void 0);
94
- if (!customElements.get('qbo-popover'))
95
- customElements.define('qbo-popover', QboPopover);
94
+ QboPopover = __decorate([
95
+ customElement('qbo-popover')
96
+ ], QboPopover);
97
+ export { QboPopover };
@@ -2,6 +2,7 @@
2
2
  import { customElement, property, state } from "lit/decorators.js";
3
3
  import { computePosition, Placement, shift, flip } from "@floating-ui/dom";
4
4
 
5
+ @customElement('qbo-popover')
5
6
  export class QboPopover extends LitElement {
6
7
 
7
8
  @property({ type: String })
@@ -96,7 +97,4 @@ export class QboPopover extends LitElement {
96
97
  render() {
97
98
  return html`<slot></slot>`;
98
99
  }
99
- }
100
-
101
- if (!customElements.get('qbo-popover'))
102
- customElements.define('qbo-popover', QboPopover)
100
+ }
@@ -8,11 +8,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, html } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  /**
13
13
  * Listens for a popup event, and renders popup with the content.
14
14
  */
15
- export class QboPopupListener extends LitElement {
15
+ let QboPopupListener = class QboPopupListener extends LitElement {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  this.open = false;
@@ -102,7 +102,7 @@ export class QboPopupListener extends LitElement {
102
102
  </slot>
103
103
  `;
104
104
  }
105
- }
105
+ };
106
106
  __decorate([
107
107
  property({ type: Boolean }),
108
108
  __metadata("design:type", Object)
@@ -139,5 +139,7 @@ __decorate([
139
139
  property({ type: Boolean }),
140
140
  __metadata("design:type", Object)
141
141
  ], QboPopupListener.prototype, "listen", void 0);
142
- if (!customElements.get('qbo-popup-listener'))
143
- customElements.define('qbo-popup-listener', QboPopupListener);
142
+ QboPopupListener = __decorate([
143
+ customElement('qbo-popup-listener')
144
+ ], QboPopupListener);
145
+ export { QboPopupListener };
@@ -4,6 +4,7 @@ import { customElement, property } from 'lit/decorators.js';
4
4
  /**
5
5
  * Listens for a popup event, and renders popup with the content.
6
6
  */
7
+ @customElement('qbo-popup-listener')
7
8
  export class QboPopupListener extends LitElement {
8
9
  @property({ type: Boolean })
9
10
  open = false;
@@ -126,6 +127,3 @@ export class QboPopupListener extends LitElement {
126
127
  `;
127
128
  }
128
129
  }
129
-
130
- if (!customElements.get('qbo-popup-listener'))
131
- customElements.define('qbo-popup-listener', QboPopupListener)
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { html, css } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  import { QboFetch } from './qbo-fetch.js';
13
13
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
14
14
  /**
@@ -17,7 +17,7 @@ import { unsafeHTML } from 'lit/directives/unsafe-html.js';
17
17
  * @remarks
18
18
  * This element is a thin wrapper around {@link QboFetch} that renders a <select> element with options populated from a JSON array.
19
19
  */
20
- export class QboPopup extends QboFetch {
20
+ let QboPopup = class QboPopup extends QboFetch {
21
21
  constructor() {
22
22
  super(...arguments);
23
23
  this.open = false;
@@ -76,7 +76,7 @@ export class QboPopup extends QboFetch {
76
76
  <slot name="content" @click="${this.hide}" style="display:${this.open ? 'flex' : 'none'}">${unsafeHTML(this.html)}</slot>
77
77
  `;
78
78
  }
79
- }
79
+ };
80
80
  __decorate([
81
81
  property({ type: Boolean }),
82
82
  __metadata("design:type", Object)
@@ -89,5 +89,7 @@ __decorate([
89
89
  property({ type: Boolean }),
90
90
  __metadata("design:type", Object)
91
91
  ], QboPopup.prototype, "renderInHost", void 0);
92
- if (!customElements.get('qbo-popup'))
93
- customElements.define('qbo-popup', QboPopup);
92
+ QboPopup = __decorate([
93
+ customElement('qbo-popup')
94
+ ], QboPopup);
95
+ export { QboPopup };
@@ -9,6 +9,7 @@ import { unsafeHTML } from 'lit/directives/unsafe-html.js';
9
9
  * @remarks
10
10
  * This element is a thin wrapper around {@link QboFetch} that renders a <select> element with options populated from a JSON array.
11
11
  */
12
+ @customElement('qbo-popup')
12
13
  export class QboPopup extends QboFetch {
13
14
  @property({ type: Boolean })
14
15
  open = false;
@@ -81,6 +82,3 @@ export class QboPopup extends QboFetch {
81
82
  `;
82
83
  }
83
84
  }
84
-
85
- if (!customElements.get('qbo-popup'))
86
- customElements.define('qbo-popup', QboPopup)
@@ -8,13 +8,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, html, css } from 'lit';
11
- import { property, state } from 'lit/decorators.js';
11
+ import { customElement, property, state } from 'lit/decorators.js';
12
12
  export var ResizeType;
13
13
  (function (ResizeType) {
14
14
  ResizeType["Horizontal"] = "horizontal";
15
15
  ResizeType["Vertical"] = "vertical";
16
16
  })(ResizeType || (ResizeType = {}));
17
- export class QboResize extends LitElement {
17
+ let QboResize = class QboResize extends LitElement {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.isResizing = false;
@@ -93,7 +93,7 @@ export class QboResize extends LitElement {
93
93
  render() {
94
94
  return html `<slot><span></span></slot>`;
95
95
  }
96
- }
96
+ };
97
97
  __decorate([
98
98
  state(),
99
99
  __metadata("design:type", Object)
@@ -102,5 +102,7 @@ __decorate([
102
102
  property(),
103
103
  __metadata("design:type", String)
104
104
  ], QboResize.prototype, "type", void 0);
105
- if (!customElements.get('qbo-resize'))
106
- customElements.define('qbo-resize', QboResize);
105
+ QboResize = __decorate([
106
+ customElement('qbo-resize')
107
+ ], QboResize);
108
+ export { QboResize };
@@ -6,6 +6,8 @@ export enum ResizeType {
6
6
  Vertical = 'vertical'
7
7
  }
8
8
 
9
+
10
+ @customElement('qbo-resize')
9
11
  export class QboResize extends LitElement {
10
12
  static styles = css`
11
13
  `;
@@ -99,6 +101,3 @@ export class QboResize extends LitElement {
99
101
  return html`<slot><span></span></slot>`;
100
102
  }
101
103
  }
102
-
103
- if (!customElements.get('qbo-resize'))
104
- customElements.define('qbo-resize', QboResize)
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { html, css } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  import { getArray } from './qbo-json.js';
13
13
  import { QboFormElement, getApiService } from './Program.js';
14
14
  /**
@@ -17,7 +17,7 @@ import { QboFormElement, getApiService } from './Program.js';
17
17
  * @remarks
18
18
  * This element is a thin wrapper around {@link QboFetch} that renders a <select> element with options populated from a JSON array.
19
19
  */
20
- export class QboSelect extends QboFormElement {
20
+ let QboSelect = class QboSelect extends QboFormElement {
21
21
  constructor() {
22
22
  super(...arguments);
23
23
  this.apiEndpoint = 'default';
@@ -59,7 +59,7 @@ export class QboSelect extends QboFormElement {
59
59
  ${this.options.map(option => html `<option value="${option[this.optionValue]}" ?selected="${option[this.optionValue] == this.defaultValue}">${option[this.optionText]}</option>`)}
60
60
  </select>`;
61
61
  }
62
- }
62
+ };
63
63
  __decorate([
64
64
  property({ type: String }),
65
65
  __metadata("design:type", Object)
@@ -100,5 +100,7 @@ __decorate([
100
100
  property({ type: Boolean }),
101
101
  __metadata("design:type", Object)
102
102
  ], QboSelect.prototype, "renderInHost", void 0);
103
- if (!customElements.get('qbo-select'))
104
- customElements.define('qbo-select', QboSelect);
103
+ QboSelect = __decorate([
104
+ customElement('qbo-select')
105
+ ], QboSelect);
106
+ export { QboSelect };
@@ -10,6 +10,7 @@ import { IApiService, QboFormElement, getApiService } from './Program.js';
10
10
  * @remarks
11
11
  * This element is a thin wrapper around {@link QboFetch} that renders a <select> element with options populated from a JSON array.
12
12
  */
13
+ @customElement('qbo-select')
13
14
  export class QboSelect extends QboFormElement
14
15
  {
15
16
  @property({ type: String })
@@ -76,6 +77,3 @@ export class QboSelect extends QboFormElement
76
77
  </select>`;
77
78
  }
78
79
  }
79
-
80
- if (!customElements.get('qbo-select'))
81
- customElements.define('qbo-select', QboSelect)
@@ -8,14 +8,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, css, html } from "lit";
11
- import { property } from "lit/decorators.js";
11
+ import { customElement, property } from "lit/decorators.js";
12
12
  import { qboui } from "./styles.js";
13
13
  export var Mode;
14
14
  (function (Mode) {
15
15
  Mode["Single"] = "single";
16
16
  Mode["Multi"] = "multi";
17
17
  })(Mode || (Mode = {}));
18
- export class QboSelectable extends LitElement {
18
+ let QboSelectable = class QboSelectable extends LitElement {
19
19
  constructor() {
20
20
  super(...arguments);
21
21
  this.classSelected = 'qbo-select-on';
@@ -129,7 +129,7 @@ export class QboSelectable extends LitElement {
129
129
  });
130
130
  this.dispatchEvent(event);
131
131
  }
132
- }
132
+ };
133
133
  __decorate([
134
134
  property(),
135
135
  __metadata("design:type", String)
@@ -166,5 +166,7 @@ __decorate([
166
166
  property({ attribute: false }),
167
167
  __metadata("design:type", Object)
168
168
  ], QboSelectable.prototype, "target", void 0);
169
- if (!customElements.get('qbo-selectable'))
170
- customElements.define('qbo-selectable', QboSelectable);
169
+ QboSelectable = __decorate([
170
+ customElement('qbo-selectable')
171
+ ], QboSelectable);
172
+ export { QboSelectable };
@@ -7,6 +7,7 @@ export enum Mode {
7
7
  Multi = 'multi'
8
8
  }
9
9
 
10
+ @customElement('qbo-selectable')
10
11
  export class QboSelectable extends LitElement {
11
12
 
12
13
  @property()
@@ -153,6 +154,3 @@ export class QboSelectable extends LitElement {
153
154
  this.dispatchEvent(event);
154
155
  }
155
156
  }
156
-
157
- if (!customElements.get('qbo-selectable'))
158
- customElements.define('qbo-selectable', QboSelectable)
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { html } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  import { getArray, replicate } from './qbo-json.js';
13
13
  import { QboFetch } from './qbo-fetch.js';
14
14
  /**
@@ -18,7 +18,7 @@ import { QboFetch } from './qbo-fetch.js';
18
18
  * This element is a thin wrapper around {@link QboFetch} that renders a <table> element with options populated from a JSON array.
19
19
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template#examples
20
20
  */
21
- export class QboTable extends QboFetch {
21
+ let QboTable = class QboTable extends QboFetch {
22
22
  constructor() {
23
23
  super(...arguments);
24
24
  this.loading = false;
@@ -67,7 +67,7 @@ export class QboTable extends QboFetch {
67
67
  }
68
68
  return null;
69
69
  }
70
- }
70
+ };
71
71
  __decorate([
72
72
  property({ type: Boolean }),
73
73
  __metadata("design:type", Object)
@@ -88,5 +88,7 @@ __decorate([
88
88
  property(),
89
89
  __metadata("design:type", Object)
90
90
  ], QboTable.prototype, "options", void 0);
91
- if (!customElements.get('qbo-table'))
92
- customElements.define('qbo-table', QboTable);
91
+ QboTable = __decorate([
92
+ customElement('qbo-table')
93
+ ], QboTable);
94
+ export { QboTable };
@@ -10,6 +10,7 @@ import { QboFetch } from './qbo-fetch.js';
10
10
  * This element is a thin wrapper around {@link QboFetch} that renders a <table> element with options populated from a JSON array.
11
11
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template#examples
12
12
  */
13
+ @customElement('qbo-table')
13
14
  export class QboTable extends QboFetch {
14
15
  @property({ type: Boolean })
15
16
  loading = false;
@@ -77,5 +78,3 @@ export class QboTable extends QboFetch {
77
78
 
78
79
  }
79
80
 
80
- if (!customElements.get('qbo-table'))
81
- customElements.define('qbo-table', QboTable)
@@ -8,9 +8,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, html, css } from 'lit';
11
- import { property, state } from 'lit/decorators.js';
11
+ import { customElement, property, state } from 'lit/decorators.js';
12
12
  import { qboui } from './styles.js';
13
- export class QboUserPreferences extends LitElement {
13
+ let QboUserPreferences = class QboUserPreferences extends LitElement {
14
14
  static { this.styles = [qboui, css `
15
15
  :host {
16
16
  display: block;
@@ -89,7 +89,7 @@ export class QboUserPreferences extends LitElement {
89
89
  </dialog>
90
90
  ` : html ``}`;
91
91
  }
92
- }
92
+ };
93
93
  __decorate([
94
94
  property({ type: Object }),
95
95
  __metadata("design:type", Object)
@@ -102,6 +102,11 @@ __decorate([
102
102
  state(),
103
103
  __metadata("design:type", Object)
104
104
  ], QboUserPreferences.prototype, "isEditing", void 0);
105
+ QboUserPreferences = __decorate([
106
+ customElement('qbo-user-preferences'),
107
+ __metadata("design:paramtypes", [])
108
+ ], QboUserPreferences);
109
+ export { QboUserPreferences };
105
110
  export function setUserPreference(preference, value, storageKey = 'qbo4.ui.preferences') {
106
111
  // Get the current stored preferences
107
112
  const storedPreferences = localStorage.getItem(storageKey);
@@ -171,5 +176,3 @@ export function formatDate(dateString, format = null) {
171
176
  const formattedDate = new Intl.DateTimeFormat(undefined, options).format(new Date(dateString));
172
177
  return formattedDate;
173
178
  }
174
- if (!customElements.get('qbo-user-preferences'))
175
- customElements.define('qbo-user-preferences', QboUserPreferences);
@@ -2,6 +2,7 @@
2
2
  import { customElement, property, state } from 'lit/decorators.js';
3
3
  import { qboui } from './styles.js';
4
4
 
5
+ @customElement('qbo-user-preferences')
5
6
  export class QboUserPreferences extends LitElement {
6
7
  @property({ type: Object }) preferences = {};
7
8
 
@@ -164,6 +165,3 @@ export function formatDate(dateString: string | Date | undefined | null, format:
164
165
 
165
166
  return formattedDate;
166
167
  }
167
-
168
- if (!customElements.get('qbo-user-preferences'))
169
- customElements.define('qbo-user-preferences', QboUserPreferences)
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { LitElement, html } from 'lit';
11
- import { property } from 'lit/decorators.js';
11
+ import { customElement, property } from 'lit/decorators.js';
12
12
  import { ValidateToken } from './IValidate.js';
13
13
  import { services } from './Services.js';
14
14
  /**
@@ -34,7 +34,7 @@ import { services } from './Services.js';
34
34
  * });
35
35
  * ```
36
36
  */
37
- export class QboValidate extends LitElement {
37
+ let QboValidate = class QboValidate extends LitElement {
38
38
  constructor() {
39
39
  super();
40
40
  this.renderInHost = false;
@@ -120,7 +120,7 @@ export class QboValidate extends LitElement {
120
120
  render() {
121
121
  return html ``;
122
122
  }
123
- }
123
+ };
124
124
  __decorate([
125
125
  property({ type: Boolean }),
126
126
  __metadata("design:type", Object)
@@ -142,5 +142,8 @@ __decorate([
142
142
  }),
143
143
  __metadata("design:type", Object)
144
144
  ], QboValidate.prototype, "workingClass", void 0);
145
- if (!customElements.get('qbo-validate'))
146
- customElements.define('qbo-validate', QboValidate);
145
+ QboValidate = __decorate([
146
+ customElement('qbo-validate'),
147
+ __metadata("design:paramtypes", [])
148
+ ], QboValidate);
149
+ export { QboValidate };
@@ -27,6 +27,7 @@ import { DependencyContainer } from 'tsyringe';
27
27
  * });
28
28
  * ```
29
29
  */
30
+ @customElement('qbo-validate')
30
31
  export class QboValidate extends LitElement {
31
32
 
32
33
  @property({ type: Boolean })
@@ -138,6 +139,3 @@ export class QboValidate extends LitElement {
138
139
  }
139
140
 
140
141
  }
141
-
142
- if (!customElements.get('qbo-validate'))
143
- customElements.define('qbo-validate', QboValidate)