@vertexvis/ui 0.1.3-canary.0 → 0.1.3-canary.2
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/dist/cjs/{banner-08c5f50b.js → banner-ee5487c2.js} +1 -1
- package/dist/cjs/{color-picker-000b8ca6.js → color-picker-6aa97d3b.js} +1 -1
- package/dist/cjs/{icon-button-8c4a9cd6.js → icon-button-0447fcec.js} +1 -1
- package/dist/cjs/{icon-dce835e0.js → icon-cd06cbe3.js} +1 -1
- package/dist/cjs/{icon-helper-c076290f.js → icon-helper-0377e5b1.js} +5 -0
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{radio-group-d628f631.js → radio-group-11ecf8bf.js} +10 -0
- package/dist/cjs/vertex-banner.cjs.entry.js +2 -2
- package/dist/cjs/vertex-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
- package/dist/cjs/vertex-radio-group.cjs.entry.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +2 -1
- package/dist/collection/components/icon/icon-helper.js +3 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/icons/rename.js +2 -0
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +10 -0
- package/dist/collection/types/icon.js +1 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/icon-helper.js +5 -0
- package/dist/components/index.esm.js +1 -1
- package/dist/components/{p-b74799f7.js → p-038eeb75.js} +1 -1
- package/dist/components/p-16fc9e9a.entry.js +1 -0
- package/dist/components/p-52af589d.entry.js +1 -0
- package/dist/components/{p-a399434b.js → p-8a5cd281.js} +1 -1
- package/dist/components/p-8bb220db.entry.js +1 -0
- package/dist/components/{p-e5ce8d66.js → p-8c69bb83.js} +1 -1
- package/dist/components/p-9540e00a.entry.js +1 -0
- package/dist/components/{p-c7a13d00.js → p-b229b5ba.js} +1 -1
- package/dist/components/p-dfe98f07.entry.js +1 -0
- package/dist/components/{p-721ca850.js → p-e90f00f9.js} +1 -1
- package/dist/components/p-f55574fb.js +1 -0
- package/dist/components/vertex-color-picker.js +1 -1
- package/dist/components/vertex-radio-group.js +10 -0
- package/dist/esm/{banner-014ee9ee.js → banner-1e53164f.js} +1 -1
- package/dist/esm/{color-picker-16b97934.js → color-picker-b292ad8d.js} +1 -1
- package/dist/esm/{icon-a74a8129.js → icon-20d89396.js} +1 -1
- package/dist/esm/{icon-button-33aa27cb.js → icon-button-fe250e18.js} +1 -1
- package/dist/esm/{icon-helper-2f57104b.js → icon-helper-2f55ad53.js} +5 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/{radio-group-7c35d2f0.js → radio-group-2f5467b5.js} +10 -0
- package/dist/esm/vertex-banner.entry.js +2 -2
- package/dist/esm/vertex-color-picker.entry.js +1 -1
- package/dist/esm/vertex-icon-button.entry.js +2 -2
- package/dist/esm/vertex-icon.entry.js +2 -2
- package/dist/esm/vertex-radio-group.entry.js +1 -1
- package/dist/types/components/icon/icons/rename.d.ts +3 -0
- package/dist/types/components/radio/radio.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/types/icon.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/p-70c6c194.entry.js +0 -1
- package/dist/components/p-8b85ea4a.entry.js +0 -1
- package/dist/components/p-91644b85.entry.js +0 -1
- package/dist/components/p-b22ed1dd.entry.js +0 -1
- package/dist/components/p-ef75393c.entry.js +0 -1
- package/dist/components/p-f693e6f8.js +0 -1
|
@@ -12,8 +12,18 @@ const RadioGroup = class {
|
|
|
12
12
|
this.handleListenOnRadioButtonChange.bind(this);
|
|
13
13
|
}
|
|
14
14
|
updateValue() {
|
|
15
|
+
var _a;
|
|
15
16
|
if (this.value != null) {
|
|
16
17
|
this.valueChanged.emit(this.value);
|
|
18
|
+
// Update the checked state for the radio buttons
|
|
19
|
+
(_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radio) => {
|
|
20
|
+
if (this.value === radio.value) {
|
|
21
|
+
radio.checked = true;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
radio.checked = false;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
connectedCallback() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as vertex_icon_button } from './icon-button-
|
|
1
|
+
export { I as vertex_icon_button } from './icon-button-fe250e18.js';
|
|
2
2
|
import './index-72f28b71.js';
|
|
3
3
|
import './index-9c609209.js';
|
|
4
|
-
import './icon-helper-
|
|
4
|
+
import './icon-helper-2f55ad53.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { R as vertex_radio_group } from './radio-group-
|
|
1
|
+
export { R as vertex_radio_group } from './radio-group-2f5467b5.js';
|
|
2
2
|
import './index-72f28b71.js';
|
|
@@ -537,7 +537,7 @@ export namespace Components {
|
|
|
537
537
|
*/
|
|
538
538
|
"disabled": boolean;
|
|
539
539
|
/**
|
|
540
|
-
* Optional label to be displayed
|
|
540
|
+
* Optional label to be displayed alongside the input
|
|
541
541
|
*/
|
|
542
542
|
"label"?: string;
|
|
543
543
|
/**
|
|
@@ -1849,7 +1849,7 @@ declare namespace LocalJSX {
|
|
|
1849
1849
|
*/
|
|
1850
1850
|
"disabled"?: boolean;
|
|
1851
1851
|
/**
|
|
1852
|
-
* Optional label to be displayed
|
|
1852
|
+
* Optional label to be displayed alongside the input
|
|
1853
1853
|
*/
|
|
1854
1854
|
"label"?: string;
|
|
1855
1855
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/ui",
|
|
3
|
-
"version": "0.1.3-canary.
|
|
3
|
+
"version": "0.1.3-canary.2",
|
|
4
4
|
"description": "The Vertex UI component library.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"@vertexvis/utils": "^0.23.2",
|
|
88
88
|
"fast-deep-equal": "^3.1.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "47fb26320a978cfe9b99f6045893b4bb89f941c3"
|
|
91
91
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{C as vertex_color_picker}from"./p-e5ce8d66.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-3438c441.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{R as vertex_radio_group}from"./p-f693e6f8.js";import"./p-6834631c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{I as vertex_icon}from"./p-c7a13d00.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-721ca850.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{B as vertex_banner}from"./p-b74799f7.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-721ca850.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{I as vertex_icon_button}from"./p-a399434b.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-721ca850.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,e as s,h as i,g as e}from"./p-6834631c.js";const a=class{constructor(i){t(this,i),this.valueChanged=s(this,"valueChanged",7),this.name=void 0,this.value=void 0,this.handleListenOnRadioButtonChange=this.handleListenOnRadioButtonChange.bind(this)}updateValue(){null!=this.value&&this.valueChanged.emit(this.value)}connectedCallback(){this.getVertexRadioButtons(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}render(){return i("div",{class:"radio-group"},i("slot",null))}getVertexRadioButtons(){var t,s;this.radioButtons=(null===(t=this.hostElement)||void 0===t?void 0:t.querySelectorAll("vertex-radio"))||void 0,null===(s=this.radioButtons)||void 0===s||s.forEach((t=>{t.name=this.name,this.value===t.value&&(t.checked=!0)}))}removeEventListeners(){var t;null===(t=this.radioButtons)||void 0===t||t.forEach((t=>{t.removeEventListener("valueChanged",this.handleListenOnRadioButtonChange)}))}addEventListeners(){var t;null===(t=this.radioButtons)||void 0===t||t.forEach((t=>{t.addEventListener("valueChanged",this.handleListenOnRadioButtonChange)}))}handleListenOnRadioButtonChange(t){const s=t;s.stopPropagation(),s.detail.checked&&(this.value=s.detail.value)}get hostElement(){return e(this)}static get watchers(){return{value:["updateValue"]}}};a.style=".radio-group{display:flex;flex-direction:column}";export{a as R}
|