@progressive-development/pd-forms 0.7.14-b → 0.7.14-c
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.
|
@@ -5,6 +5,7 @@ export declare class PdIconButtonSelectGroup extends PdBaseUI {
|
|
|
5
5
|
options: ButtonData[];
|
|
6
6
|
initValue: number;
|
|
7
7
|
private _selectedValue;
|
|
8
|
+
private _buttonGroupEl;
|
|
8
9
|
static styles: CSSResultGroup;
|
|
9
10
|
willUpdate(changedProps: PropertyValues<this>): void;
|
|
10
11
|
reset(selectedValue: number): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pd-icon-button-select-group.d.ts","sourceRoot":"","sources":["../src/pd-icon-button-select-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,wBAAwB,CAAC;AAChC,OAAO,mBAAmB,CAAC;AAE3B,qBACa,uBAAwB,SAAQ,QAAQ;IAEnD,OAAO,EAAE,UAAU,EAAE,CAAM;IAG3B,SAAS,EAAE,MAAM,CAAM;IAGvB,OAAO,CAAC,cAAc,CAAc;
|
|
1
|
+
{"version":3,"file":"pd-icon-button-select-group.d.ts","sourceRoot":"","sources":["../src/pd-icon-button-select-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,wBAAwB,CAAC;AAChC,OAAO,mBAAmB,CAAC;AAE3B,qBACa,uBAAwB,SAAQ,QAAQ;IAEnD,OAAO,EAAE,UAAU,EAAE,CAAM;IAG3B,SAAS,EAAE,MAAM,CAAM;IAGvB,OAAO,CAAC,cAAc,CAAc;IAGpC,OAAO,CAAC,cAAc,CAAM;IAE5B,OAAgB,MAAM,EAAE,cAAc,CAcpC;IAEO,UAAU,CAAC,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAWtD,KAAK,CAAC,aAAa,EAAE,MAAM;IAOzB,MAAM;IAwBf,OAAO,CAAC,qBAAqB;CAe9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, html } from "lit";
|
|
2
|
-
import { property, state, customElement } from "lit/decorators.js";
|
|
2
|
+
import { property, state, query, customElement } from "lit/decorators.js";
|
|
3
3
|
import { PdBaseUI } from "./pd-base-ui.js";
|
|
4
4
|
import "./pd-icon-panel-button.js";
|
|
5
5
|
import "./pd-button-group.js";
|
|
@@ -27,6 +27,9 @@ let PdIconButtonSelectGroup = class extends PdBaseUI {
|
|
|
27
27
|
}
|
|
28
28
|
reset(selectedValue) {
|
|
29
29
|
this._selectedValue = selectedValue;
|
|
30
|
+
if (this._buttonGroupEl) {
|
|
31
|
+
this._buttonGroupEl.reset(selectedValue);
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
render() {
|
|
32
35
|
if (!this.options || this.options.length === 0) {
|
|
@@ -41,6 +44,7 @@ let PdIconButtonSelectGroup = class extends PdBaseUI {
|
|
|
41
44
|
.pdButtonIcon=${(selectedData == null ? void 0 : selectedData.pdIcon) ?? ""}
|
|
42
45
|
>
|
|
43
46
|
<pd-button-group
|
|
47
|
+
id="buttonGroupId"
|
|
44
48
|
class="button-group-style"
|
|
45
49
|
.buttonList=${this.options}
|
|
46
50
|
.initValue=${[this._selectedValue]}
|
|
@@ -88,6 +92,9 @@ __decorateClass([
|
|
|
88
92
|
__decorateClass([
|
|
89
93
|
state()
|
|
90
94
|
], PdIconButtonSelectGroup.prototype, "_selectedValue", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
query("#buttonGroupId")
|
|
97
|
+
], PdIconButtonSelectGroup.prototype, "_buttonGroupEl", 2);
|
|
91
98
|
PdIconButtonSelectGroup = __decorateClass([
|
|
92
99
|
customElement("pd-icon-button-select-group")
|
|
93
100
|
], PdIconButtonSelectGroup);
|
package/package.json
CHANGED