@quandis/qbo4.ui 4.0.1-CI-20240507-201707 → 4.0.1-CI-20240507-231949
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 +1 -1
- package/src/qbo/qbo-form-edit.d.ts +9 -0
- package/src/qbo/qbo-form-edit.js +55 -10
- package/src/qbo/qbo-form-edit.ts +37 -10
- package/wwwroot/js/qbo4.ui.js +56 -11
- package/wwwroot/js/qbo4.ui.min.js +12 -12
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
2
|
export declare class QboFormEdit extends LitElement {
|
|
3
|
+
aDropdownClass: String | null;
|
|
3
4
|
buttonPrimaryClass: String | null;
|
|
5
|
+
buttonPrimaryDropdownClass: String | null;
|
|
6
|
+
buttonType: String | null;
|
|
4
7
|
data: Object;
|
|
5
8
|
divButtonGroupClass: String | null;
|
|
6
9
|
divFormActionClass: String | null;
|
|
7
10
|
divSectionHeaderClass: String | null;
|
|
11
|
+
dropdownToggle: String | null;
|
|
8
12
|
editLabel: String | null;
|
|
13
|
+
helpIcon: String | null;
|
|
14
|
+
helpText: String | null;
|
|
15
|
+
historyIcon: String | null;
|
|
16
|
+
historyText: String | null;
|
|
9
17
|
infoButtonClass: String | null;
|
|
10
18
|
infoIconClass: String | null;
|
|
11
19
|
infoTitle: String | null;
|
|
12
20
|
popoverClass: String | null;
|
|
13
21
|
spanEditClass: String | null;
|
|
22
|
+
ulDropdownClass: String | null;
|
|
14
23
|
type: string | null;
|
|
15
24
|
renderInHost: boolean;
|
|
16
25
|
createRenderRoot(): HTMLElement | DocumentFragment;
|
package/src/qbo/qbo-form-edit.js
CHANGED
|
@@ -48,17 +48,26 @@ formEditMap.set('updatedLayout', (component) => {
|
|
|
48
48
|
let QboFormEdit = class QboFormEdit extends LitElement {
|
|
49
49
|
constructor() {
|
|
50
50
|
super(...arguments);
|
|
51
|
+
this.aDropdownClass = 'dropdown-item';
|
|
51
52
|
this.buttonPrimaryClass = 'qbo-primary';
|
|
53
|
+
this.buttonPrimaryDropdownClass = 'qbo-primary-dropdown';
|
|
54
|
+
this.buttonType = 'button';
|
|
52
55
|
this.data = {};
|
|
53
56
|
this.divButtonGroupClass = 'qbo-btn-group';
|
|
54
57
|
this.divFormActionClass = 'qbo-form-actions';
|
|
55
58
|
this.divSectionHeaderClass = 'qbo-header';
|
|
59
|
+
this.dropdownToggle = 'dropdown';
|
|
56
60
|
this.editLabel = 'Edit';
|
|
61
|
+
this.helpIcon = 'qbo-icon-question';
|
|
62
|
+
this.helpText = 'Help';
|
|
63
|
+
this.historyIcon = 'qbo-icon-clock-history';
|
|
64
|
+
this.historyText = 'History';
|
|
57
65
|
this.infoButtonClass = 'qbo-btn-light';
|
|
58
66
|
this.infoIconClass = 'qbo-icon-info';
|
|
59
67
|
this.infoTitle = 'Last Updated';
|
|
60
68
|
this.popoverClass = 'qbo-float-end';
|
|
61
69
|
this.spanEditClass = 'qbo-icon-edit';
|
|
70
|
+
this.ulDropdownClass = 'dropdown-menu';
|
|
62
71
|
this.type = 'defaultLayout';
|
|
63
72
|
this.renderInHost = true;
|
|
64
73
|
}
|
|
@@ -76,27 +85,27 @@ let QboFormEdit = class QboFormEdit extends LitElement {
|
|
|
76
85
|
</div>
|
|
77
86
|
<div class="${this.divFormActionClass}">
|
|
78
87
|
<div class="${this.divButtonGroupClass}">
|
|
79
|
-
<button type="
|
|
88
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryClass}">
|
|
80
89
|
<span class="${this.spanEditClass}"> ${this.editLabel}</span>
|
|
81
90
|
</button>
|
|
82
|
-
<button type="
|
|
83
|
-
<ul class="
|
|
91
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryDropdownClass}" data-bs-toggle="${this.dropdownToggle}"></button>
|
|
92
|
+
<ul class="${this.ulDropdownClass}">
|
|
84
93
|
<li>
|
|
85
|
-
<a class="
|
|
86
|
-
<i class="
|
|
87
|
-
<span
|
|
94
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show History');">
|
|
95
|
+
<i class="${this.historyIcon}"></i>
|
|
96
|
+
<span>${this.historyText}</span>
|
|
88
97
|
</a>
|
|
89
98
|
</li>
|
|
90
99
|
<li>
|
|
91
|
-
<a class="
|
|
92
|
-
<i class="
|
|
93
|
-
<span
|
|
100
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show Help');">
|
|
101
|
+
<i class="${this.helpIcon}"></i>
|
|
102
|
+
<span>${this.helpText}</span>
|
|
94
103
|
</a>
|
|
95
104
|
</li>
|
|
96
105
|
</ul>
|
|
97
106
|
</div>
|
|
98
107
|
<qbo-popover class="${this.popoverClass}">
|
|
99
|
-
<button type="
|
|
108
|
+
<button type="${this.buttonType}" class="${this.infoButtonClass}" title="${this.infoTitle}">
|
|
100
109
|
<i class="${this.infoIconClass}"></i>
|
|
101
110
|
</button>
|
|
102
111
|
${popover}
|
|
@@ -105,10 +114,22 @@ let QboFormEdit = class QboFormEdit extends LitElement {
|
|
|
105
114
|
</slot>`;
|
|
106
115
|
}
|
|
107
116
|
};
|
|
117
|
+
__decorate([
|
|
118
|
+
property({ type: String }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], QboFormEdit.prototype, "aDropdownClass", void 0);
|
|
108
121
|
__decorate([
|
|
109
122
|
property({ type: String }),
|
|
110
123
|
__metadata("design:type", Object)
|
|
111
124
|
], QboFormEdit.prototype, "buttonPrimaryClass", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ type: String }),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], QboFormEdit.prototype, "buttonPrimaryDropdownClass", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property({ type: String }),
|
|
131
|
+
__metadata("design:type", Object)
|
|
132
|
+
], QboFormEdit.prototype, "buttonType", void 0);
|
|
112
133
|
__decorate([
|
|
113
134
|
property({ type: Object, attribute: false }),
|
|
114
135
|
__metadata("design:type", Object)
|
|
@@ -125,10 +146,30 @@ __decorate([
|
|
|
125
146
|
property({ type: String }),
|
|
126
147
|
__metadata("design:type", Object)
|
|
127
148
|
], QboFormEdit.prototype, "divSectionHeaderClass", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
property({ type: String }),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], QboFormEdit.prototype, "dropdownToggle", void 0);
|
|
128
153
|
__decorate([
|
|
129
154
|
property({ type: String }),
|
|
130
155
|
__metadata("design:type", Object)
|
|
131
156
|
], QboFormEdit.prototype, "editLabel", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
property({ type: String }),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], QboFormEdit.prototype, "helpIcon", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
property({ type: String }),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], QboFormEdit.prototype, "helpText", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ type: String }),
|
|
167
|
+
__metadata("design:type", Object)
|
|
168
|
+
], QboFormEdit.prototype, "historyIcon", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
property({ type: String }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], QboFormEdit.prototype, "historyText", void 0);
|
|
132
173
|
__decorate([
|
|
133
174
|
property({ type: String }),
|
|
134
175
|
__metadata("design:type", Object)
|
|
@@ -149,6 +190,10 @@ __decorate([
|
|
|
149
190
|
property({ type: String }),
|
|
150
191
|
__metadata("design:type", Object)
|
|
151
192
|
], QboFormEdit.prototype, "spanEditClass", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
property({ type: String }),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], QboFormEdit.prototype, "ulDropdownClass", void 0);
|
|
152
197
|
__decorate([
|
|
153
198
|
property(),
|
|
154
199
|
__metadata("design:type", Object)
|
package/src/qbo/qbo-form-edit.ts
CHANGED
|
@@ -42,9 +42,18 @@ formEditMap.set('updatedLayout', (component: any) => {
|
|
|
42
42
|
@customElement('qbo-form-edit')
|
|
43
43
|
export class QboFormEdit extends LitElement {
|
|
44
44
|
|
|
45
|
+
@property({ type: String })
|
|
46
|
+
aDropdownClass: String | null = 'dropdown-item';
|
|
47
|
+
|
|
45
48
|
@property({ type: String })
|
|
46
49
|
buttonPrimaryClass: String | null = 'qbo-primary';
|
|
47
50
|
|
|
51
|
+
@property({ type: String })
|
|
52
|
+
buttonPrimaryDropdownClass: String | null = 'qbo-primary-dropdown';
|
|
53
|
+
|
|
54
|
+
@property({ type: String })
|
|
55
|
+
buttonType: String | null = 'button';
|
|
56
|
+
|
|
48
57
|
@property({ type: Object, attribute: false })
|
|
49
58
|
data: Object = { };
|
|
50
59
|
|
|
@@ -57,9 +66,24 @@ export class QboFormEdit extends LitElement {
|
|
|
57
66
|
@property({ type: String })
|
|
58
67
|
divSectionHeaderClass: String | null = 'qbo-header';
|
|
59
68
|
|
|
69
|
+
@property({ type: String })
|
|
70
|
+
dropdownToggle: String | null = 'dropdown';
|
|
71
|
+
|
|
60
72
|
@property({ type: String })
|
|
61
73
|
editLabel: String | null = 'Edit';
|
|
62
74
|
|
|
75
|
+
@property({ type: String })
|
|
76
|
+
helpIcon: String | null = 'qbo-icon-question';
|
|
77
|
+
|
|
78
|
+
@property({ type: String })
|
|
79
|
+
helpText: String | null = 'Help';
|
|
80
|
+
|
|
81
|
+
@property({ type: String })
|
|
82
|
+
historyIcon: String | null = 'qbo-icon-clock-history';
|
|
83
|
+
|
|
84
|
+
@property({ type: String })
|
|
85
|
+
historyText: String | null = 'History';
|
|
86
|
+
|
|
63
87
|
@property({ type: String })
|
|
64
88
|
infoButtonClass: String | null = 'qbo-btn-light';
|
|
65
89
|
|
|
@@ -75,6 +99,9 @@ export class QboFormEdit extends LitElement {
|
|
|
75
99
|
@property({ type: String })
|
|
76
100
|
spanEditClass: String | null = 'qbo-icon-edit';
|
|
77
101
|
|
|
102
|
+
@property({ type: String })
|
|
103
|
+
ulDropdownClass: String | null = 'dropdown-menu';
|
|
104
|
+
|
|
78
105
|
@property()
|
|
79
106
|
type: string | null = 'defaultLayout';
|
|
80
107
|
|
|
@@ -96,27 +123,27 @@ export class QboFormEdit extends LitElement {
|
|
|
96
123
|
</div>
|
|
97
124
|
<div class="${this.divFormActionClass}">
|
|
98
125
|
<div class="${this.divButtonGroupClass}">
|
|
99
|
-
<button type="
|
|
126
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryClass}">
|
|
100
127
|
<span class="${this.spanEditClass}"> ${this.editLabel}</span>
|
|
101
128
|
</button>
|
|
102
|
-
<button type="
|
|
103
|
-
<ul class="
|
|
129
|
+
<button type="${this.buttonType}" class="${this.buttonPrimaryDropdownClass}" data-bs-toggle="${this.dropdownToggle}"></button>
|
|
130
|
+
<ul class="${this.ulDropdownClass}">
|
|
104
131
|
<li>
|
|
105
|
-
<a class="
|
|
106
|
-
<i class="
|
|
107
|
-
<span
|
|
132
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show History');">
|
|
133
|
+
<i class="${this.historyIcon}"></i>
|
|
134
|
+
<span>${this.historyText}</span>
|
|
108
135
|
</a>
|
|
109
136
|
</li>
|
|
110
137
|
<li>
|
|
111
|
-
<a class="
|
|
112
|
-
<i class="
|
|
113
|
-
<span
|
|
138
|
+
<a class="${this.aDropdownClass}" style="cursor:pointer;" onclick="alert('Show Help');">
|
|
139
|
+
<i class="${this.helpIcon}"></i>
|
|
140
|
+
<span>${this.helpText}</span>
|
|
114
141
|
</a>
|
|
115
142
|
</li>
|
|
116
143
|
</ul>
|
|
117
144
|
</div>
|
|
118
145
|
<qbo-popover class="${this.popoverClass}">
|
|
119
|
-
<button type="
|
|
146
|
+
<button type="${this.buttonType}" class="${this.infoButtonClass}" title="${this.infoTitle}">
|
|
120
147
|
<i class="${this.infoIconClass}"></i>
|
|
121
148
|
</button>
|
|
122
149
|
${popover}
|