@luftborn/custom-elements 2.13.6 → 2.13.8
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/demo/index.js +14 -10
- package/demo/index.min.js +13 -9
- package/demo/index.min.js.map +1 -1
- package/dist/elements/CheckBoxElement/CheckBoxElement.js +2 -2
- package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -1
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +11 -7
- package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/CheckBoxElement/CheckBoxElement.ts +1 -13
- package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +19 -28
|
@@ -74,7 +74,7 @@ var CheckBoxElement = /** @class */ (function (_super) {
|
|
|
74
74
|
fieldset = document.createElement('fieldset');
|
|
75
75
|
wrapper.appendChild(fieldset);
|
|
76
76
|
if (this.label) {
|
|
77
|
-
fieldset.
|
|
77
|
+
fieldset.setAttribute('aria-label', this.label);
|
|
78
78
|
}
|
|
79
79
|
this.options.forEach(function (element, index) {
|
|
80
80
|
fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.checkboxTemplate, _this.name, element, _this.name + "-" + index));
|
|
@@ -101,7 +101,7 @@ var CheckBoxElement = /** @class */ (function (_super) {
|
|
|
101
101
|
(0, custom_element_decorator_1.default)({
|
|
102
102
|
selector: 'checkbox-element',
|
|
103
103
|
template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
|
|
104
|
-
style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.checkbox {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.checkbox:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput[type='checkbox']{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.125rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\
|
|
104
|
+
style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.checkbox {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.checkbox:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput[type='checkbox']{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.125rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\tfieldset {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t",
|
|
105
105
|
useShadow: true,
|
|
106
106
|
})
|
|
107
107
|
], CheckBoxElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxElement.js","sourceRoot":"","sources":["../../../src/elements/CheckBoxElement/CheckBoxElement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE;AACrE,yEAAwE;AACxE,6DAAsE;AACtE,mEAAkE;
|
|
1
|
+
{"version":3,"file":"CheckBoxElement.js","sourceRoot":"","sources":["../../../src/elements/CheckBoxElement/CheckBoxElement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE;AACrE,yEAAwE;AACxE,6DAAsE;AACtE,mEAAkE;AAoClE;IAAqC,mCAAkB;IAQtD;QAAA,YACC,iBAAO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,eAAe,CAkF3B;IAAD,sBAAC;CAAA,AAlFD,CAAqC,uCAAkB,GAkFtD;AAlFY,0CAAe"}
|
|
@@ -76,12 +76,16 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
|
|
|
76
76
|
var _this = this;
|
|
77
77
|
var wrapper = _super.prototype.getChildElement.call(this, '.wrapper');
|
|
78
78
|
var fieldset = wrapper.querySelector('fieldset');
|
|
79
|
-
if (
|
|
80
|
-
fieldset.
|
|
79
|
+
if (!fieldset) {
|
|
80
|
+
fieldset = document.createElement('fieldset');
|
|
81
|
+
wrapper.appendChild(fieldset);
|
|
82
|
+
if (this.label) {
|
|
83
|
+
fieldset.setAttribute('aria-label', this.label);
|
|
84
|
+
}
|
|
85
|
+
this.options.forEach(function (element, index) {
|
|
86
|
+
fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.radioButtonTemplate, _this.name, element, _this.name + "-" + index, "" + (_this.required ? 'required' : '')));
|
|
87
|
+
});
|
|
81
88
|
}
|
|
82
|
-
this.options.forEach(function (element, index) {
|
|
83
|
-
fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.radioButtonTemplate, _this.name, element, _this.name + "-" + index, "" + (_this.required ? 'required' : '')));
|
|
84
|
-
});
|
|
85
89
|
};
|
|
86
90
|
// events
|
|
87
91
|
RadioButtonGroupElement.prototype.change = function ($event) {
|
|
@@ -95,8 +99,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
|
|
|
95
99
|
RadioButtonGroupElement = __decorate([
|
|
96
100
|
(0, custom_element_decorator_1.default)({
|
|
97
101
|
selector: 'radio-group-element',
|
|
98
|
-
template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t
|
|
99
|
-
style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.radio-button {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.radio-button:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.2rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\
|
|
102
|
+
template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
|
|
103
|
+
style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.radio-button {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.radio-button:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.2rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\tfieldset {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t",
|
|
100
104
|
useShadow: true,
|
|
101
105
|
})
|
|
102
106
|
], RadioButtonGroupElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButtonGroupElement.js","sourceRoot":"","sources":["../../../src/elements/RadioButtonGroup/RadioButtonGroupElement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE;AACrE,yEAAwE;AACxE,6DAAsE;AACtE,mEAAkE;
|
|
1
|
+
{"version":3,"file":"RadioButtonGroupElement.js","sourceRoot":"","sources":["../../../src/elements/RadioButtonGroup/Rad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CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,0CAAQ,GAAf;QACC,IAAI,CAAC,KAAK,CAAC;QACX,IAAI,CAAC,UAAU,CAAC,IAAI,CACnB,IAAI,qCAAsB,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAClD,CAAC;IACH,CAAC;IAhFW,uBAAuB;QAlCnC,IAAA,kCAAa,EAAC;YACd,QAAQ,EAAE,qBAAqB;YAC/B,QAAQ,EAAE,+CAED;YACT,KAAK,EAAE,+jBA0BL;YACF,SAAS,EAAE,IAAI;SACf,CAAC;OACW,uBAAuB,CAiFnC;IAAD,8BAAC;CAAA,AAjFD,CAA6C,uCAAkB,GAiF9D;AAjFY,0DAAuB"}
|
package/package.json
CHANGED
|
@@ -30,15 +30,6 @@ import { StringUtil } from '../../framework/Utilities/StringUtil';
|
|
|
30
30
|
margin: 0.125rem;
|
|
31
31
|
resize: none;
|
|
32
32
|
}
|
|
33
|
-
.sr-only:not(:focus):not(:active) {
|
|
34
|
-
clip: rect(0 0 0 0);
|
|
35
|
-
clip-path: inset(50%);
|
|
36
|
-
height: 0.063rem;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
position: absolute;
|
|
39
|
-
white-space: nowrap;
|
|
40
|
-
width: 0.063rem;
|
|
41
|
-
}
|
|
42
33
|
fieldset {
|
|
43
34
|
border: none;
|
|
44
35
|
padding: 0;
|
|
@@ -93,10 +84,7 @@ export class CheckBoxElement extends CustomInputElement {
|
|
|
93
84
|
fieldset = document.createElement('fieldset');
|
|
94
85
|
wrapper.appendChild(fieldset);
|
|
95
86
|
if (this.label) {
|
|
96
|
-
fieldset.
|
|
97
|
-
'beforeend',
|
|
98
|
-
`<legend class="sr-only">${this.label}</legend>`,
|
|
99
|
-
);
|
|
87
|
+
fieldset.setAttribute('aria-label', this.label);
|
|
100
88
|
}
|
|
101
89
|
this.options.forEach((element, index) => {
|
|
102
90
|
fieldset.insertAdjacentHTML(
|
|
@@ -7,7 +7,6 @@ import { StringUtil } from '../../framework/Utilities/StringUtil';
|
|
|
7
7
|
selector: 'radio-group-element',
|
|
8
8
|
template: `
|
|
9
9
|
<div class="wrapper">
|
|
10
|
-
<fieldset></fieldset>
|
|
11
10
|
</div>`,
|
|
12
11
|
style: `
|
|
13
12
|
:host{
|
|
@@ -31,15 +30,6 @@ import { StringUtil } from '../../framework/Utilities/StringUtil';
|
|
|
31
30
|
margin: 0.2rem;
|
|
32
31
|
resize: none;
|
|
33
32
|
}
|
|
34
|
-
.sr-only:not(:focus):not(:active) {
|
|
35
|
-
clip: rect(0 0 0 0);
|
|
36
|
-
clip-path: inset(50%);
|
|
37
|
-
height: 0.063rem;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
position: absolute;
|
|
40
|
-
white-space: nowrap;
|
|
41
|
-
width: 0.063rem;
|
|
42
|
-
}
|
|
43
33
|
fieldset {
|
|
44
34
|
border: none;
|
|
45
35
|
padding: 0;
|
|
@@ -95,25 +85,26 @@ export class RadioButtonGroupElement extends CustomInputElement {
|
|
|
95
85
|
|
|
96
86
|
private addRadioButtons() {
|
|
97
87
|
const wrapper = super.getChildElement('.wrapper');
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
fieldset.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
let fieldset = wrapper.querySelector('fieldset');
|
|
89
|
+
if (!fieldset) {
|
|
90
|
+
fieldset = document.createElement('fieldset');
|
|
91
|
+
wrapper.appendChild(fieldset);
|
|
92
|
+
if (this.label) {
|
|
93
|
+
fieldset.setAttribute('aria-label', this.label);
|
|
94
|
+
}
|
|
95
|
+
this.options.forEach((element, index) => {
|
|
96
|
+
fieldset.insertAdjacentHTML(
|
|
97
|
+
'beforeend',
|
|
98
|
+
StringUtil.StringFormat(
|
|
99
|
+
this.radioButtonTemplate,
|
|
100
|
+
this.name,
|
|
101
|
+
element,
|
|
102
|
+
`${this.name}-${index}`,
|
|
103
|
+
`${this.required ? 'required' : ''}`,
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
});
|
|
104
107
|
}
|
|
105
|
-
this.options.forEach((element, index) => {
|
|
106
|
-
fieldset.insertAdjacentHTML(
|
|
107
|
-
'beforeend',
|
|
108
|
-
StringUtil.StringFormat(
|
|
109
|
-
this.radioButtonTemplate,
|
|
110
|
-
this.name,
|
|
111
|
-
element,
|
|
112
|
-
`${this.name}-${index}`,
|
|
113
|
-
`${this.required ? 'required' : ''}`,
|
|
114
|
-
),
|
|
115
|
-
);
|
|
116
|
-
});
|
|
117
108
|
}
|
|
118
109
|
// events
|
|
119
110
|
public change($event): void {
|