@govbr-ds/webcomponents 2.0.0-next.12 → 2.0.0-next.13
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/br-avatar.cjs.entry.js +1 -1
- package/dist/cjs/br-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/br-button_2.cjs.entry.js +2 -2
- package/dist/cjs/br-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/br-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/br-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/br-input.cjs.entry.js +1 -1
- package/dist/cjs/br-input.cjs.entry.js.map +1 -1
- package/dist/cjs/br-item.cjs.entry.js +15 -4
- package/dist/cjs/br-item.cjs.entry.js.map +1 -1
- package/dist/cjs/br-list.cjs.entry.js +125 -0
- package/dist/cjs/br-list.cjs.entry.js.map +1 -0
- package/dist/cjs/br-loading.cjs.entry.js +2 -2
- package/dist/cjs/br-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/br-message.cjs.entry.js +2 -2
- package/dist/cjs/br-message.cjs.entry.js.map +1 -1
- package/dist/cjs/br-radio.cjs.entry.js +2 -2
- package/dist/cjs/br-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/br-switch.cjs.entry.js +2 -2
- package/dist/cjs/br-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/index-ecdd4399.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/avatar/avatar.css +34 -0
- package/dist/collection/components/button/button.css +34 -0
- package/dist/collection/components/checkbox/checkbox.css +34 -0
- package/dist/collection/components/icon/icon.css +34 -0
- package/dist/collection/components/input/input.css +64 -0
- package/dist/collection/components/item/item.css +39 -0
- package/dist/collection/components/item/item.js +38 -4
- package/dist/collection/components/item/item.js.map +1 -1
- package/dist/collection/components/list/list.css +466 -0
- package/dist/collection/components/list/list.js +383 -0
- package/dist/collection/components/list/list.js.map +1 -0
- package/dist/collection/components/loading/loading.css +34 -0
- package/dist/collection/components/loading/loading.js +1 -1
- package/dist/collection/components/message/message.css +34 -0
- package/dist/collection/components/message/message.js +1 -1
- package/dist/collection/components/radio/radio.css +34 -0
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/switch/switch.css +34 -0
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/pages/list/list.js +19 -0
- package/dist/collection/scripts/menu.js +20 -8
- package/dist/components/br-avatar.js +2 -2
- package/dist/components/br-avatar.js.map +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkbox.js.map +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.js +3 -3
- package/dist/components/br-input.js.map +1 -1
- package/dist/components/br-item.js +19 -5
- package/dist/components/br-item.js.map +1 -1
- package/dist/components/br-list.d.ts +11 -0
- package/dist/components/br-list.js +137 -0
- package/dist/components/br-list.js.map +1 -0
- package/dist/components/br-loading.js +2 -2
- package/dist/components/br-loading.js.map +1 -1
- package/dist/components/br-message.js +4 -4
- package/dist/components/br-message.js.map +1 -1
- package/dist/components/br-radio.js +2 -2
- package/dist/components/br-radio.js.map +1 -1
- package/dist/components/br-switch.js +2 -2
- package/dist/components/br-switch.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-6c7f2b2a.js +140 -0
- package/dist/components/p-6c7f2b2a.js.map +1 -0
- package/dist/components/{p-a32b2d34.js → p-ceec3589.js} +2 -2
- package/dist/components/{p-a32b2d34.js.map → p-ceec3589.js.map} +1 -1
- package/dist/esm/br-avatar.entry.js +1 -1
- package/dist/esm/br-avatar.entry.js.map +1 -1
- package/dist/esm/br-button_2.entry.js +2 -2
- package/dist/esm/br-button_2.entry.js.map +1 -1
- package/dist/esm/br-checkbox.entry.js +1 -1
- package/dist/esm/br-checkbox.entry.js.map +1 -1
- package/dist/esm/br-input.entry.js +1 -1
- package/dist/esm/br-input.entry.js.map +1 -1
- package/dist/esm/br-item.entry.js +15 -4
- package/dist/esm/br-item.entry.js.map +1 -1
- package/dist/esm/br-list.entry.js +121 -0
- package/dist/esm/br-list.entry.js.map +1 -0
- package/dist/esm/br-loading.entry.js +2 -2
- package/dist/esm/br-loading.entry.js.map +1 -1
- package/dist/esm/br-message.entry.js +2 -2
- package/dist/esm/br-message.entry.js.map +1 -1
- package/dist/esm/br-radio.entry.js +2 -2
- package/dist/esm/br-radio.entry.js.map +1 -1
- package/dist/esm/br-switch.entry.js +2 -2
- package/dist/esm/br-switch.entry.js.map +1 -1
- package/dist/esm/index-5866d5ff.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/item/item.d.ts +12 -1
- package/dist/types/components/list/list.d.ts +126 -0
- package/dist/types/components.d.ts +140 -0
- package/dist/webcomponents/p-0178bba0.entry.js +2 -0
- package/dist/webcomponents/{p-f49c9f5d.entry.js.map → p-0178bba0.entry.js.map} +1 -1
- package/dist/webcomponents/p-47812ff4.entry.js +2 -0
- package/dist/webcomponents/{p-462fd7e0.entry.js.map → p-47812ff4.entry.js.map} +1 -1
- package/dist/webcomponents/p-5cb55733.entry.js +2 -0
- package/dist/webcomponents/{p-273a5d72.entry.js.map → p-5cb55733.entry.js.map} +1 -1
- package/dist/webcomponents/p-6f787c6e.entry.js +2 -0
- package/dist/webcomponents/{p-a61a99a5.entry.js.map → p-6f787c6e.entry.js.map} +1 -1
- package/dist/webcomponents/p-9054589f.entry.js +2 -0
- package/dist/webcomponents/{p-0136c397.entry.js.map → p-9054589f.entry.js.map} +1 -1
- package/dist/webcomponents/p-961ad7ab.entry.js +13 -0
- package/dist/webcomponents/{p-d3503211.entry.js.map → p-961ad7ab.entry.js.map} +1 -1
- package/dist/webcomponents/p-9810bb43.entry.js +2 -0
- package/dist/webcomponents/{p-3822c947.entry.js.map → p-9810bb43.entry.js.map} +1 -1
- package/dist/webcomponents/p-a1969013.entry.js +2 -0
- package/dist/webcomponents/p-a1969013.entry.js.map +1 -0
- package/dist/webcomponents/p-ca5f6891.entry.js +2 -0
- package/dist/webcomponents/p-ca5f6891.entry.js.map +1 -0
- package/dist/webcomponents/p-e981b8b4.entry.js +2 -0
- package/dist/webcomponents/{p-39d81381.entry.js.map → p-e981b8b4.entry.js.map} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/hydrate/index.js +171 -19
- package/hydrate/index.mjs +171 -19
- package/package.json +1 -1
- package/vscode-data.json +36 -0
- package/dist/components/p-1b05c8e6.js +0 -140
- package/dist/components/p-1b05c8e6.js.map +0 -1
- package/dist/webcomponents/p-0136c397.entry.js +0 -2
- package/dist/webcomponents/p-273a5d72.entry.js +0 -2
- package/dist/webcomponents/p-3822c947.entry.js +0 -2
- package/dist/webcomponents/p-39d81381.entry.js +0 -2
- package/dist/webcomponents/p-462fd7e0.entry.js +0 -2
- package/dist/webcomponents/p-a61a99a5.entry.js +0 -2
- package/dist/webcomponents/p-d3503211.entry.js +0 -13
- package/dist/webcomponents/p-dd83c07e.entry.js +0 -2
- package/dist/webcomponents/p-dd83c07e.entry.js.map +0 -1
- package/dist/webcomponents/p-f49c9f5d.entry.js +0 -2
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { inheritAriaAttributes } from "../../utils/inherited-attributes";
|
|
3
|
+
/**
|
|
4
|
+
* Para uma descrição detalhada, consulte a [documentação do GovBR-DS](https://www.gov.br/ds/components/list?tab=designer).
|
|
5
|
+
*
|
|
6
|
+
* @slot default - Slot padrão para inclusão dos itens da lista.
|
|
7
|
+
* @slot header - Slot nomeado para inclusão de ações relacionadas ao cabeçalho do list (uso de botões por exemplo).
|
|
8
|
+
*/
|
|
9
|
+
export class List {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.inheritedAttributes = {};
|
|
12
|
+
this.renderHeader = () => {
|
|
13
|
+
if (this.listTitle || this.hasSlotContent('header')) {
|
|
14
|
+
return (h("div", { class: "header" }, this.listTitle && (h("div", { class: "title" }, this.listTitle)), this.hasSlotContent('header') && (h("div", { class: "d-flex" }, h("slot", { name: "header" })))));
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
this.listTitle = undefined;
|
|
19
|
+
this.isHorizontal = false;
|
|
20
|
+
this.hideHeaderDivider = false;
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
this.brDidConnect.emit();
|
|
24
|
+
}
|
|
25
|
+
componentWillLoad() {
|
|
26
|
+
this.brWillLoad.emit();
|
|
27
|
+
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
if (this.isHorizontal) {
|
|
31
|
+
const slotItems = Array.from(this.el.querySelectorAll('br-item'));
|
|
32
|
+
slotItems.forEach((item) => {
|
|
33
|
+
const nextElement = item.nextElementSibling;
|
|
34
|
+
if (nextElement === null || nextElement === void 0 ? void 0 : nextElement.classList.contains('br-divider')) {
|
|
35
|
+
const divider = nextElement;
|
|
36
|
+
divider.style.borderWidth = '0 1px 0 0';
|
|
37
|
+
divider.style.width = '1px';
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const items = Array.from(this.el.querySelectorAll('br-item'));
|
|
42
|
+
items.forEach((item) => {
|
|
43
|
+
item.setAttribute('role', 'listitem');
|
|
44
|
+
});
|
|
45
|
+
this.brDidLoad.emit();
|
|
46
|
+
}
|
|
47
|
+
componentWillRender() {
|
|
48
|
+
this.brWillRender.emit();
|
|
49
|
+
}
|
|
50
|
+
componentDidRender() {
|
|
51
|
+
this.brDidRender.emit();
|
|
52
|
+
}
|
|
53
|
+
componentShouldUpdate() {
|
|
54
|
+
this.brShouldUpdate.emit();
|
|
55
|
+
}
|
|
56
|
+
componentWillUpdate() {
|
|
57
|
+
this.brWillUpdate.emit();
|
|
58
|
+
}
|
|
59
|
+
componentDidUpdate() {
|
|
60
|
+
this.brDidUpdate.emit();
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.brDidDisconnect.emit();
|
|
64
|
+
}
|
|
65
|
+
formAssociatedCallback(form) {
|
|
66
|
+
this.brFormAssociatedCallback.emit(form);
|
|
67
|
+
}
|
|
68
|
+
formDisabledCallback(disabled) {
|
|
69
|
+
this.brFormDisabledCallback.emit(disabled);
|
|
70
|
+
}
|
|
71
|
+
formResetCallback() {
|
|
72
|
+
this.brFormResetCallback.emit();
|
|
73
|
+
}
|
|
74
|
+
formStateRestoreCallback(state, _mode) {
|
|
75
|
+
this.brFormStateRestoreCallback.emit([state, _mode]);
|
|
76
|
+
}
|
|
77
|
+
getCssClassMap() {
|
|
78
|
+
return {
|
|
79
|
+
'br-list': true,
|
|
80
|
+
'horizontal': this.isHorizontal
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
hasSlotContent(slotName) {
|
|
84
|
+
return !!this.el.querySelector(`[slot="${slotName}"]`);
|
|
85
|
+
}
|
|
86
|
+
renderDivider() {
|
|
87
|
+
if ((this.listTitle || this.hasSlotContent('header')) && !this.hideHeaderDivider) {
|
|
88
|
+
return h("div", { class: "br-divider" });
|
|
89
|
+
}
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
return (h(Host, { key: '8a455944df84292a69b3ad4c6a2500b64e78de98' }, h("div", Object.assign({ key: '4098c4f688290e035aa3775df06a6885d058b55c', class: this.getCssClassMap() }, this.inheritedAttributes, { role: "list" }), this.renderHeader(), this.renderDivider(), h("slot", { key: '1358811266e52513572441a0f0039bd16ac35afd' }))));
|
|
94
|
+
}
|
|
95
|
+
static get is() { return "br-list"; }
|
|
96
|
+
static get encapsulation() { return "shadow"; }
|
|
97
|
+
static get formAssociated() { return true; }
|
|
98
|
+
static get originalStyleUrls() {
|
|
99
|
+
return {
|
|
100
|
+
"$": ["list.scss"]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get styleUrls() {
|
|
104
|
+
return {
|
|
105
|
+
"$": ["list.css"]
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
static get properties() {
|
|
109
|
+
return {
|
|
110
|
+
"listTitle": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Define o t\u00EDtulo para a lista."
|
|
123
|
+
},
|
|
124
|
+
"attribute": "list-title",
|
|
125
|
+
"reflect": true
|
|
126
|
+
},
|
|
127
|
+
"isHorizontal": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": true,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Indica se a lista ser\u00E1 horizontal. Por padr\u00E3o, a lista \u00E9 vertical."
|
|
140
|
+
},
|
|
141
|
+
"attribute": "is-horizontal",
|
|
142
|
+
"reflect": true,
|
|
143
|
+
"defaultValue": "false"
|
|
144
|
+
},
|
|
145
|
+
"hideHeaderDivider": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"mutable": true,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "boolean",
|
|
150
|
+
"resolved": "boolean",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Indica que o divider para o t\u00EDtulo da lista estar\u00E1 oculto."
|
|
158
|
+
},
|
|
159
|
+
"attribute": "hide-header-divider",
|
|
160
|
+
"reflect": true,
|
|
161
|
+
"defaultValue": "false"
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
static get events() {
|
|
166
|
+
return [{
|
|
167
|
+
"method": "brDidConnect",
|
|
168
|
+
"name": "brDidConnect",
|
|
169
|
+
"bubbles": true,
|
|
170
|
+
"cancelable": true,
|
|
171
|
+
"composed": true,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Emite um evento quando o componente \u00E9 conectado ao DOM.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#connectedcallback) para mais detalhes."
|
|
175
|
+
},
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "void",
|
|
178
|
+
"resolved": "void",
|
|
179
|
+
"references": {}
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
"method": "brWillLoad",
|
|
183
|
+
"name": "brWillLoad",
|
|
184
|
+
"bubbles": true,
|
|
185
|
+
"cancelable": true,
|
|
186
|
+
"composed": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": "Emite um evento antes que o componente seja carregado pela primeira vez.\nUtilize este evento para realizar tarefas de inicializa\u00E7\u00E3o antes do componente ser exibido.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillload) para mais detalhes."
|
|
190
|
+
},
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "void",
|
|
193
|
+
"resolved": "void",
|
|
194
|
+
"references": {}
|
|
195
|
+
}
|
|
196
|
+
}, {
|
|
197
|
+
"method": "brDidLoad",
|
|
198
|
+
"name": "brDidLoad",
|
|
199
|
+
"bubbles": true,
|
|
200
|
+
"cancelable": true,
|
|
201
|
+
"composed": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": "Emite um evento ap\u00F3s o componente ter sido carregado pela primeira vez.\nUtilize este evento para realizar a\u00E7\u00F5es que devem ocorrer depois que o componente foi totalmente carregado.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidload) para mais detalhes."
|
|
205
|
+
},
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "void",
|
|
208
|
+
"resolved": "void",
|
|
209
|
+
"references": {}
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
"method": "brWillRender",
|
|
213
|
+
"name": "brWillRender",
|
|
214
|
+
"bubbles": true,
|
|
215
|
+
"cancelable": true,
|
|
216
|
+
"composed": true,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": "Emite um evento antes do componente ser renderizado.\nUtilize este evento para preparar o componente antes de sua renderiza\u00E7\u00E3o.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillrender) para mais detalhes."
|
|
220
|
+
},
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "void",
|
|
223
|
+
"resolved": "void",
|
|
224
|
+
"references": {}
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
"method": "brDidRender",
|
|
228
|
+
"name": "brDidRender",
|
|
229
|
+
"bubbles": true,
|
|
230
|
+
"cancelable": true,
|
|
231
|
+
"composed": true,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": "Emite um evento ap\u00F3s o componente ter sido renderizado.\nUtilize este evento para executar a\u00E7\u00F5es que devem ocorrer ap\u00F3s a renderiza\u00E7\u00E3o do componente.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidrender) para mais detalhes."
|
|
235
|
+
},
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "void",
|
|
238
|
+
"resolved": "void",
|
|
239
|
+
"references": {}
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
"method": "brShouldUpdate",
|
|
243
|
+
"name": "brShouldUpdate",
|
|
244
|
+
"bubbles": true,
|
|
245
|
+
"cancelable": true,
|
|
246
|
+
"composed": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": "Emite um evento para indicar se o componente deve ser atualizado ou n\u00E3o.\nEste evento \u00E9 chamado antes de qualquer atualiza\u00E7\u00E3o do componente para decidir se a atualiza\u00E7\u00E3o deve prosseguir.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentshouldupdate) para mais detalhes."
|
|
250
|
+
},
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "void",
|
|
253
|
+
"resolved": "void",
|
|
254
|
+
"references": {}
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
"method": "brWillUpdate",
|
|
258
|
+
"name": "brWillUpdate",
|
|
259
|
+
"bubbles": true,
|
|
260
|
+
"cancelable": true,
|
|
261
|
+
"composed": true,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": "Emite um evento antes de o componente ser atualizado.\nUtilize este evento para realizar a\u00E7\u00F5es preparat\u00F3rias antes da atualiza\u00E7\u00E3o do componente.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillupdate) para mais detalhes."
|
|
265
|
+
},
|
|
266
|
+
"complexType": {
|
|
267
|
+
"original": "void",
|
|
268
|
+
"resolved": "void",
|
|
269
|
+
"references": {}
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
"method": "brDidUpdate",
|
|
273
|
+
"name": "brDidUpdate",
|
|
274
|
+
"bubbles": true,
|
|
275
|
+
"cancelable": true,
|
|
276
|
+
"composed": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Emite um evento ap\u00F3s o componente ter sido atualizado.\nUtilize este evento para realizar a\u00E7\u00F5es ap\u00F3s a atualiza\u00E7\u00E3o do componente.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidupdate) para mais detalhes."
|
|
280
|
+
},
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "void",
|
|
283
|
+
"resolved": "void",
|
|
284
|
+
"references": {}
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
"method": "brDidDisconnect",
|
|
288
|
+
"name": "brDidDisconnect",
|
|
289
|
+
"bubbles": true,
|
|
290
|
+
"cancelable": true,
|
|
291
|
+
"composed": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "Emite um evento quando o componente \u00E9 desconectado do DOM.\nUtilize este evento para realizar a limpeza ou outras a\u00E7\u00F5es necess\u00E1rias quando o componente \u00E9 removido.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/component-lifecycle#disconnectedcallback) para mais detalhes."
|
|
295
|
+
},
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "void",
|
|
298
|
+
"resolved": "void",
|
|
299
|
+
"references": {}
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
"method": "brFormAssociatedCallback",
|
|
303
|
+
"name": "brFormAssociatedCallback",
|
|
304
|
+
"bubbles": true,
|
|
305
|
+
"cancelable": true,
|
|
306
|
+
"composed": true,
|
|
307
|
+
"docs": {
|
|
308
|
+
"tags": [{
|
|
309
|
+
"name": "param",
|
|
310
|
+
"text": "form - Dados do formul\u00E1rio associado."
|
|
311
|
+
}],
|
|
312
|
+
"text": "Emite um evento quando o componente \u00E9 associado ou removido de um `<form>`.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/form-associated#formassociatedcallback) para mais detalhes."
|
|
313
|
+
},
|
|
314
|
+
"complexType": {
|
|
315
|
+
"original": "FormData",
|
|
316
|
+
"resolved": "FormData",
|
|
317
|
+
"references": {
|
|
318
|
+
"FormData": {
|
|
319
|
+
"location": "global",
|
|
320
|
+
"id": "global::FormData"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}, {
|
|
325
|
+
"method": "brFormDisabledCallback",
|
|
326
|
+
"name": "brFormDisabledCallback",
|
|
327
|
+
"bubbles": true,
|
|
328
|
+
"cancelable": true,
|
|
329
|
+
"composed": true,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [{
|
|
332
|
+
"name": "param",
|
|
333
|
+
"text": "disabled - Novo estado `disabled` do componente dentro do formul\u00E1rio."
|
|
334
|
+
}],
|
|
335
|
+
"text": "Emite um evento quando o estado `disabled` do componente muda dentro de um `<form>`.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/form-associated#formdisabledcallback) para mais informa\u00E7\u00F5es."
|
|
336
|
+
},
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "boolean",
|
|
339
|
+
"resolved": "boolean",
|
|
340
|
+
"references": {}
|
|
341
|
+
}
|
|
342
|
+
}, {
|
|
343
|
+
"method": "brFormResetCallback",
|
|
344
|
+
"name": "brFormResetCallback",
|
|
345
|
+
"bubbles": true,
|
|
346
|
+
"cancelable": true,
|
|
347
|
+
"composed": true,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Emite um evento quando um `<form>` \u00E9 resetado.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/form-associated#formresetcallback) para mais detalhes."
|
|
351
|
+
},
|
|
352
|
+
"complexType": {
|
|
353
|
+
"original": "void",
|
|
354
|
+
"resolved": "void",
|
|
355
|
+
"references": {}
|
|
356
|
+
}
|
|
357
|
+
}, {
|
|
358
|
+
"method": "brFormStateRestoreCallback",
|
|
359
|
+
"name": "brFormStateRestoreCallback",
|
|
360
|
+
"bubbles": true,
|
|
361
|
+
"cancelable": true,
|
|
362
|
+
"composed": true,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [{
|
|
365
|
+
"name": "param",
|
|
366
|
+
"text": "state - Estado restaurado do formul\u00E1rio."
|
|
367
|
+
}, {
|
|
368
|
+
"name": "param",
|
|
369
|
+
"text": "_mode - Modo de preenchimento autom\u00E1tico do navegador."
|
|
370
|
+
}],
|
|
371
|
+
"text": "Emite um evento quando o navegador preenche automaticamente os campos de um `<form>`.\nConsulte a documenta\u00E7\u00E3o do [Stencil](https://stenciljs.com/docs/form-associated#formstaterestorecallback) para mais informa\u00E7\u00F5es."
|
|
372
|
+
},
|
|
373
|
+
"complexType": {
|
|
374
|
+
"original": "[state: string, _mode: string]",
|
|
375
|
+
"resolved": "[state: string, _mode: string]",
|
|
376
|
+
"references": {}
|
|
377
|
+
}
|
|
378
|
+
}];
|
|
379
|
+
}
|
|
380
|
+
static get elementRef() { return "el"; }
|
|
381
|
+
static get attachInternalsMemberName() { return "elementInternals"; }
|
|
382
|
+
}
|
|
383
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"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","sourcesContent":["import { AttachInternals, Component, Element, Event, EventEmitter, Host, Prop, h } from '@stencil/core'\nimport { Attributes, inheritAriaAttributes } from '../../utils/inherited-attributes'\nimport { CssClassMap } from '../../utils/interfaces'\n\n/**\n* Para uma descrição detalhada, consulte a [documentação do GovBR-DS](https://www.gov.br/ds/components/list?tab=designer).\n*\n* @slot default - Slot padrão para inclusão dos itens da lista.\n* @slot header - Slot nomeado para inclusão de ações relacionadas ao cabeçalho do list (uso de botões por exemplo).\n*/\n@Component({\n tag: 'br-list',\n styleUrl: 'list.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class List {\n /**\n * Referência ao elemento host do componente.\n * Utilize esta propriedade para acessar e manipular o elemento do DOM associado ao componente.\n */\n @Element() el: HTMLElement\n\n @AttachInternals() elementInternals: ElementInternals\n\n /**\n * Define o título para a lista.\n */\n @Prop({ reflect: true }) listTitle: string\n\n /**\n * Indica se a lista será horizontal. Por padrão, a lista é vertical.\n */\n @Prop({ reflect: true, mutable: true }) isHorizontal: boolean = false;\n\n /**\n * Indica que o divider para o título da lista estará oculto.\n */\n @Prop({ reflect: true, mutable: true }) hideHeaderDivider: boolean = false;\n\n /**\n * Emite um evento quando o componente é conectado ao DOM.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#connectedcallback) para mais detalhes.\n */\n @Event() brDidConnect: EventEmitter<void>\n connectedCallback() {\n this.brDidConnect.emit()\n }\n\n /**\n * Emite um evento antes que o componente seja carregado pela primeira vez.\n * Utilize este evento para realizar tarefas de inicialização antes do componente ser exibido.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillload) para mais detalhes.\n */\n @Event() brWillLoad: EventEmitter<void>\n componentWillLoad() {\n this.brWillLoad.emit()\n this.inheritedAttributes = inheritAriaAttributes(this.el)\n }\n\n /**\n * Emite um evento após o componente ter sido carregado pela primeira vez.\n * Utilize este evento para realizar ações que devem ocorrer depois que o componente foi totalmente carregado.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidload) para mais detalhes.\n */\n @Event() brDidLoad: EventEmitter<void>\n componentDidLoad() {\n if (this.isHorizontal) {\n const slotItems = Array.from(this.el.querySelectorAll('br-item'));\n\n slotItems.forEach((item) => {\n const nextElement = item.nextElementSibling;\n if (nextElement?.classList.contains('br-divider')) {\n const divider = nextElement as HTMLElement;\n divider.style.borderWidth = '0 1px 0 0';\n divider.style.width = '1px';\n }\n });\n }\n\n const items = Array.from(this.el.querySelectorAll('br-item'));\n items.forEach((item) => {\n item.setAttribute('role', 'listitem');\n });\n\n this.brDidLoad.emit()\n }\n\n /**\n * Emite um evento antes do componente ser renderizado.\n * Utilize este evento para preparar o componente antes de sua renderização.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillrender) para mais detalhes.\n */\n @Event() brWillRender: EventEmitter<void>\n componentWillRender() {\n this.brWillRender.emit()\n }\n\n /**\n * Emite um evento após o componente ter sido renderizado.\n * Utilize este evento para executar ações que devem ocorrer após a renderização do componente.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidrender) para mais detalhes.\n */\n @Event() brDidRender: EventEmitter<void>\n componentDidRender() {\n this.brDidRender.emit()\n }\n\n /**\n * Emite um evento para indicar se o componente deve ser atualizado ou não.\n * Este evento é chamado antes de qualquer atualização do componente para decidir se a atualização deve prosseguir.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentshouldupdate) para mais detalhes.\n */\n @Event() brShouldUpdate: EventEmitter<void>\n componentShouldUpdate() {\n this.brShouldUpdate.emit()\n }\n\n /**\n * Emite um evento antes de o componente ser atualizado.\n * Utilize este evento para realizar ações preparatórias antes da atualização do componente.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentwillupdate) para mais detalhes.\n */\n @Event() brWillUpdate: EventEmitter<void>\n componentWillUpdate() {\n this.brWillUpdate.emit()\n }\n\n /**\n * Emite um evento após o componente ter sido atualizado.\n * Utilize este evento para realizar ações após a atualização do componente.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#componentdidupdate) para mais detalhes.\n */\n @Event() brDidUpdate: EventEmitter<void>\n componentDidUpdate() {\n this.brDidUpdate.emit()\n }\n\n /**\n * Emite um evento quando o componente é desconectado do DOM.\n * Utilize este evento para realizar a limpeza ou outras ações necessárias quando o componente é removido.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/component-lifecycle#disconnectedcallback) para mais detalhes.\n */\n @Event() brDidDisconnect: EventEmitter<void>\n disconnectedCallback() {\n this.brDidDisconnect.emit()\n }\n\n /**\n * Emite um evento quando o componente é associado ou removido de um `<form>`.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/form-associated#formassociatedcallback) para mais detalhes.\n *\n * @param form - Dados do formulário associado.\n */\n @Event() brFormAssociatedCallback: EventEmitter<FormData>\n formAssociatedCallback(form: FormData) {\n this.brFormAssociatedCallback.emit(form)\n }\n\n /**\n * Emite um evento quando o estado `disabled` do componente muda dentro de um `<form>`.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/form-associated#formdisabledcallback) para mais informações.\n *\n * @param disabled - Novo estado `disabled` do componente dentro do formulário.\n */\n @Event() brFormDisabledCallback: EventEmitter<boolean>\n formDisabledCallback(disabled: boolean) {\n this.brFormDisabledCallback.emit(disabled)\n }\n\n /**\n * Emite um evento quando um `<form>` é resetado.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/form-associated#formresetcallback) para mais detalhes.\n */\n @Event() brFormResetCallback: EventEmitter<void>\n formResetCallback() {\n this.brFormResetCallback.emit()\n }\n\n /**\n * Emite um evento quando o navegador preenche automaticamente os campos de um `<form>`.\n * Consulte a documentação do [Stencil](https://stenciljs.com/docs/form-associated#formstaterestorecallback) para mais informações.\n *\n * @param state - Estado restaurado do formulário.\n * @param _mode - Modo de preenchimento automático do navegador.\n */\n @Event() brFormStateRestoreCallback: EventEmitter<[state: string, _mode: string]>\n formStateRestoreCallback(state: string, _mode: string) {\n this.brFormStateRestoreCallback.emit([state, _mode])\n }\n\n private getCssClassMap(): CssClassMap {\n return {\n 'br-list': true,\n 'horizontal': this.isHorizontal\n }\n }\n\n private inheritedAttributes: Attributes = {}\n\n private hasSlotContent(slotName: string): boolean {\n return !!this.el.querySelector(`[slot=\"${slotName}\"]`)\n }\n renderHeader = () => {\n if (this.listTitle || this.hasSlotContent('header')) {\n return (\n <div class=\"header\">\n {this.listTitle && (\n <div class=\"title\">\n {this.listTitle}\n </div>\n )}\n {this.hasSlotContent('header') && (\n <div class=\"d-flex\">\n <slot name=\"header\"></slot>\n </div>\n )}\n </div>\n );\n }\n return null;\n }\n\n renderDivider() {\n if ((this.listTitle || this.hasSlotContent('header') ) && !this.hideHeaderDivider) {\n return <div class=\"br-divider\"></div>;\n }\n return null;\n }\n\n render() {\n return (\n <Host>\n <div class={this.getCssClassMap()} {...this.inheritedAttributes} role=\"list\">\n {this.renderHeader()}\n {this.renderDivider()}\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -115,6 +115,30 @@ progress {
|
|
|
115
115
|
display: none;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.d-flex {
|
|
119
|
+
display: flex !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.align-items-center {
|
|
123
|
+
align-items: center !important;
|
|
124
|
+
}
|
|
125
|
+
.col,
|
|
126
|
+
[class*=col-] {
|
|
127
|
+
padding-left: calc(var(--grid-gutter) * 0.5);
|
|
128
|
+
padding-right: calc(var(--grid-gutter) * 0.5);
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.col {
|
|
133
|
+
flex: 1 0 0%;
|
|
134
|
+
min-width: 8.3333333333%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.col-auto {
|
|
138
|
+
flex: 0 0 auto;
|
|
139
|
+
width: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
.row {
|
|
119
143
|
--grid-gutter: var(--grid-portrait-gutter);
|
|
120
144
|
display: flex;
|
|
@@ -155,6 +179,16 @@ progress {
|
|
|
155
179
|
.mb-3 {
|
|
156
180
|
margin-bottom: var(--spacing-scale-2x) !important;
|
|
157
181
|
}
|
|
182
|
+
|
|
183
|
+
.py-3 {
|
|
184
|
+
padding-bottom: var(--spacing-scale-2x) !important;
|
|
185
|
+
padding-top: var(--spacing-scale-2x) !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.py-4 {
|
|
189
|
+
padding-bottom: var(--spacing-scale-3x) !important;
|
|
190
|
+
padding-top: var(--spacing-scale-3x) !important;
|
|
191
|
+
}
|
|
158
192
|
body {
|
|
159
193
|
--bg-color: var(--background);
|
|
160
194
|
--bg-color-rgb: var(--background-rgb);
|
|
@@ -46,7 +46,7 @@ export class Loading {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'c1e9b7535b5ee4c293dd6b0985359d741966d987' }, this.isProgress ? (h("div", Object.assign({}, this.inheritedAttributes, { class: this.getCssClassMap(), role: "progressbar", "data-progress": this.progressPercent, "aria-label": "Carregando exemplo com porcentagem", "aria-valuemin": "0", "aria-valuenow": this.progressPercent, "aria-valuemax": "100" }), h("div", { class: "br-loading-mask full" }, h("div", { class: "br-loading-fill" })), h("div", { class: "br-loading-mask" }, h("div", { class: "br-loading-fill" })))) : (h("div", { class: "loading-progress-alignment" }, h("div", { class: this.getCssClassMap(), role: "progressbar", "aria-label": "Carregando exemplo indeterminado pequeno" }), h("span", { class: "rotulo" }, this.label)))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "br-loading"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,6 +115,30 @@ progress {
|
|
|
115
115
|
display: none;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.d-flex {
|
|
119
|
+
display: flex !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.align-items-center {
|
|
123
|
+
align-items: center !important;
|
|
124
|
+
}
|
|
125
|
+
.col,
|
|
126
|
+
[class*=col-] {
|
|
127
|
+
padding-left: calc(var(--grid-gutter) * 0.5);
|
|
128
|
+
padding-right: calc(var(--grid-gutter) * 0.5);
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.col {
|
|
133
|
+
flex: 1 0 0%;
|
|
134
|
+
min-width: 8.3333333333%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.col-auto {
|
|
138
|
+
flex: 0 0 auto;
|
|
139
|
+
width: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
.row {
|
|
119
143
|
--grid-gutter: var(--grid-portrait-gutter);
|
|
120
144
|
display: flex;
|
|
@@ -155,6 +179,16 @@ progress {
|
|
|
155
179
|
.mb-3 {
|
|
156
180
|
margin-bottom: var(--spacing-scale-2x) !important;
|
|
157
181
|
}
|
|
182
|
+
|
|
183
|
+
.py-3 {
|
|
184
|
+
padding-bottom: var(--spacing-scale-2x) !important;
|
|
185
|
+
padding-top: var(--spacing-scale-2x) !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.py-4 {
|
|
189
|
+
padding-bottom: var(--spacing-scale-3x) !important;
|
|
190
|
+
padding-top: var(--spacing-scale-3x) !important;
|
|
191
|
+
}
|
|
158
192
|
body {
|
|
159
193
|
--bg-color: var(--background);
|
|
160
194
|
--bg-color-rgb: var(--background-rgb);
|
|
@@ -64,7 +64,7 @@ export class Message {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '70cc50ddc65eebdb94bf1876e1e6861381d6550c' }, this.isFeedback ? (h("div", { class: "mb-3" }, h("span", Object.assign({ class: `feedback ${this.state}`, role: "alert" }, this.inheritedAttributes), this.showIcon ? h("br-icon", { class: "icon-space", "icon-name": this.checkIconState() }) : null, !this.message ? h("slot", null) : this.message))) : (h("div", Object.assign({ class: this.getCssClassMap(), role: "alert" }, this.inheritedAttributes), this.showIcon && (h("div", { class: "icon" }, h("br-icon", { "icon-name": this.checkIconState(), height: "20", "aria-hidden": "true" }))), h("div", { class: "content", role: "alert" }, !this.message ? (h("div", null, this.messageTitle && h("strong", null, this.messageTitle), this.messageTitle && !this.isInline && h("br", null), h("slot", null))) : (h("div", null, h("span", { class: "message-title mr-1" }, this.messageTitle), h("span", { class: "message-body" }, this.message)))), this.isClosable && !this.isFeedback && (h("div", { class: "close" }, h("br-button", { shape: "circle", type: "button", "aria-label": "Fechar a mensagem", onClick: () => this.dismissHandler() }, h("br-icon", { "icon-name": "fa-solid:times", "aria-hidden": "true" }))))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "br-message"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,6 +115,30 @@ progress {
|
|
|
115
115
|
display: none;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.d-flex {
|
|
119
|
+
display: flex !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.align-items-center {
|
|
123
|
+
align-items: center !important;
|
|
124
|
+
}
|
|
125
|
+
.col,
|
|
126
|
+
[class*=col-] {
|
|
127
|
+
padding-left: calc(var(--grid-gutter) * 0.5);
|
|
128
|
+
padding-right: calc(var(--grid-gutter) * 0.5);
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.col {
|
|
133
|
+
flex: 1 0 0%;
|
|
134
|
+
min-width: 8.3333333333%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.col-auto {
|
|
138
|
+
flex: 0 0 auto;
|
|
139
|
+
width: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
.row {
|
|
119
143
|
--grid-gutter: var(--grid-portrait-gutter);
|
|
120
144
|
display: flex;
|
|
@@ -155,6 +179,16 @@ progress {
|
|
|
155
179
|
.mb-3 {
|
|
156
180
|
margin-bottom: var(--spacing-scale-2x) !important;
|
|
157
181
|
}
|
|
182
|
+
|
|
183
|
+
.py-3 {
|
|
184
|
+
padding-bottom: var(--spacing-scale-2x) !important;
|
|
185
|
+
padding-top: var(--spacing-scale-2x) !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.py-4 {
|
|
189
|
+
padding-bottom: var(--spacing-scale-3x) !important;
|
|
190
|
+
padding-top: var(--spacing-scale-3x) !important;
|
|
191
|
+
}
|
|
158
192
|
body {
|
|
159
193
|
--bg-color: var(--background);
|
|
160
194
|
--bg-color-rgb: var(--background-rgb);
|
|
@@ -115,7 +115,7 @@ export class Radio {
|
|
|
115
115
|
return this.customId ? this.customId : this.name;
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '6d235669002b93600a2f0bff169090829705e645', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '812175f6ef00534cb2746ad9a73968880a961d54', class: this.getCssClassMap(), onClick: () => this.handleClick(), onKeyDown: (event) => this.handleKeyDown(event) }, h("input", Object.assign({ key: 'e2b25221aa94af34ddc81fa82674fae50c98b915', "aria-label": this.label, type: "radio", id: this.getComputedId(), name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, onClick: (event) => event.stopPropagation() }, this.inheritedAttributes)), h("label", { key: '52fb6cde4877be2f339d509492f92b96477367b1', htmlFor: this.getComputedId() }, this._slotDefault ? h("slot", null) : this.label))));
|
|
119
119
|
}
|
|
120
120
|
static get is() { return "br-radio"; }
|
|
121
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,6 +115,30 @@ progress {
|
|
|
115
115
|
display: none;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.d-flex {
|
|
119
|
+
display: flex !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.align-items-center {
|
|
123
|
+
align-items: center !important;
|
|
124
|
+
}
|
|
125
|
+
.col,
|
|
126
|
+
[class*=col-] {
|
|
127
|
+
padding-left: calc(var(--grid-gutter) * 0.5);
|
|
128
|
+
padding-right: calc(var(--grid-gutter) * 0.5);
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.col {
|
|
133
|
+
flex: 1 0 0%;
|
|
134
|
+
min-width: 8.3333333333%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.col-auto {
|
|
138
|
+
flex: 0 0 auto;
|
|
139
|
+
width: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
.row {
|
|
119
143
|
--grid-gutter: var(--grid-portrait-gutter);
|
|
120
144
|
display: flex;
|
|
@@ -155,6 +179,16 @@ progress {
|
|
|
155
179
|
.mb-3 {
|
|
156
180
|
margin-bottom: var(--spacing-scale-2x) !important;
|
|
157
181
|
}
|
|
182
|
+
|
|
183
|
+
.py-3 {
|
|
184
|
+
padding-bottom: var(--spacing-scale-2x) !important;
|
|
185
|
+
padding-top: var(--spacing-scale-2x) !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.py-4 {
|
|
189
|
+
padding-bottom: var(--spacing-scale-3x) !important;
|
|
190
|
+
padding-top: var(--spacing-scale-3x) !important;
|
|
191
|
+
}
|
|
158
192
|
body {
|
|
159
193
|
--bg-color: var(--background);
|
|
160
194
|
--bg-color-rgb: var(--background-rgb);
|
|
@@ -98,7 +98,7 @@ export class Switch {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '6a321798c94f8322687a54b6c25bc7f86f24b94a' }, h("div", Object.assign({ key: 'd9257697669b62d8e3bca034c8d2b4499b07b736', class: this.getCssClassMap() }, this.inheritedAttributes), h("input", { key: 'b88c30c7fd497e9d691ef8f9367eda6e0a41f751', id: this._getComputedId(), type: "checkbox", name: this.name, checked: this._checkedValue, disabled: this.disabled, role: "switch", "aria-checked": this._checkedValue.toString(), "aria-disabled": this.disabled ? 'true' : null, onChange: (event) => this._handleCheckedChange(event) }), h("label", { key: '4e796fc09b89b259ecef2a367c3995df3b11ae8e', htmlFor: this._getComputedId() }, this._slotDefault ? h("slot", null) : this.label), this.labelOn && this.labelOff && (h("div", { key: '3095c063cbba59f93125c644d55431763bb64be1', class: "switch-data", "data-enabled": this.labelOn, "data-disabled": this.labelOff })))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "br-switch"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|