@govbr-ds/webcomponents 2.0.0-next.25 → 2.0.0-next.26
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-checkbox.cjs.entry.js +40 -8
- package/dist/cjs/br-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +84 -11
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/br-checkbox.js +4 -4
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/{p-971f7fbf.js → p-96b78fb9.js} +54 -18
- package/dist/components/p-96b78fb9.js.map +1 -0
- package/dist/esm/br-checkbox.entry.js +40 -8
- package/dist/esm/br-checkbox.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/esm-es5/br-checkbox.entry.js +50 -10
- package/dist/esm-es5/br-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/loader.js +5 -2
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/webcomponents.js +25 -22
- package/dist/esm-es5/webcomponents.js.map +1 -1
- package/dist/hydrate/index.js +43 -10
- package/dist/hydrate/index.mjs +43 -10
- package/dist/types/components/checkbox/checkbox.d.ts +16 -5
- package/dist/types/components.d.ts +12 -2
- package/dist/webcomponents/p-0f563c6d.system.js +61 -58
- package/dist/webcomponents/p-0f563c6d.system.js.map +1 -1
- package/dist/webcomponents/{p-155ec097.entry.js → p-5df2f563.entry.js} +49 -16
- package/dist/webcomponents/p-5df2f563.entry.js.map +1 -0
- package/dist/webcomponents/{p-10985792.system.entry.js → p-7aa13069.system.entry.js} +51 -11
- package/dist/webcomponents/p-7aa13069.system.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +21 -18
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/p-971f7fbf.js.map +0 -1
- package/dist/webcomponents/p-10985792.system.entry.js.map +0 -1
- package/dist/webcomponents/p-155ec097.entry.js.map +0 -1
|
@@ -30,19 +30,19 @@ var __generator = this && this.__generator || function(e, t) {
|
|
|
30
30
|
var i = {
|
|
31
31
|
label: 0,
|
|
32
32
|
sent: function() {
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
33
|
+
if (n[0] & 1) throw n[1];
|
|
34
|
+
return n[1];
|
|
35
35
|
},
|
|
36
36
|
trys: [],
|
|
37
37
|
ops: []
|
|
38
|
-
}, a, s,
|
|
39
|
-
return
|
|
38
|
+
}, a, s, n, o;
|
|
39
|
+
return o = {
|
|
40
40
|
next: verb(0),
|
|
41
41
|
throw: verb(1),
|
|
42
42
|
return: verb(2)
|
|
43
|
-
}, typeof Symbol === "function" && (
|
|
43
|
+
}, typeof Symbol === "function" && (o[Symbol.iterator] = function() {
|
|
44
44
|
return this;
|
|
45
|
-
}),
|
|
45
|
+
}), o;
|
|
46
46
|
function verb(e) {
|
|
47
47
|
return function(t) {
|
|
48
48
|
return step([ e, t ]);
|
|
@@ -50,14 +50,14 @@ var __generator = this && this.__generator || function(e, t) {
|
|
|
50
50
|
}
|
|
51
51
|
function step(l) {
|
|
52
52
|
if (a) throw new TypeError("Generator is already executing.");
|
|
53
|
-
while (
|
|
54
|
-
if (a = 1, s && (
|
|
55
|
-
0) : s.next) && !(
|
|
56
|
-
if (s = 0,
|
|
53
|
+
while (o && (o = 0, l[0] && (i = 0)), i) try {
|
|
54
|
+
if (a = 1, s && (n = l[0] & 2 ? s["return"] : l[0] ? s["throw"] || ((n = s["return"]) && n.call(s),
|
|
55
|
+
0) : s.next) && !(n = n.call(s, l[1])).done) return n;
|
|
56
|
+
if (s = 0, n) l = [ l[0] & 2, n.value ];
|
|
57
57
|
switch (l[0]) {
|
|
58
58
|
case 0:
|
|
59
59
|
case 1:
|
|
60
|
-
|
|
60
|
+
n = l;
|
|
61
61
|
break;
|
|
62
62
|
|
|
63
63
|
case 4:
|
|
@@ -79,25 +79,25 @@ var __generator = this && this.__generator || function(e, t) {
|
|
|
79
79
|
continue;
|
|
80
80
|
|
|
81
81
|
default:
|
|
82
|
-
if (!(
|
|
82
|
+
if (!(n = i.trys, n = n.length > 0 && n[n.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
83
83
|
i = 0;
|
|
84
84
|
continue;
|
|
85
85
|
}
|
|
86
|
-
if (l[0] === 3 && (!
|
|
86
|
+
if (l[0] === 3 && (!n || l[1] > n[0] && l[1] < n[3])) {
|
|
87
87
|
i.label = l[1];
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
|
-
if (l[0] === 6 && i.label <
|
|
91
|
-
i.label =
|
|
92
|
-
|
|
90
|
+
if (l[0] === 6 && i.label < n[1]) {
|
|
91
|
+
i.label = n[1];
|
|
92
|
+
n = l;
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
|
-
if (
|
|
96
|
-
i.label =
|
|
95
|
+
if (n && i.label < n[2]) {
|
|
96
|
+
i.label = n[2];
|
|
97
97
|
i.ops.push(l);
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
|
-
if (
|
|
100
|
+
if (n[2]) i.ops.pop();
|
|
101
101
|
i.trys.pop();
|
|
102
102
|
continue;
|
|
103
103
|
}
|
|
@@ -106,7 +106,7 @@ var __generator = this && this.__generator || function(e, t) {
|
|
|
106
106
|
l = [ 6, e ];
|
|
107
107
|
s = 0;
|
|
108
108
|
} finally {
|
|
109
|
-
a =
|
|
109
|
+
a = n = 0;
|
|
110
110
|
}
|
|
111
111
|
if (l[0] & 5) throw l[1];
|
|
112
112
|
return {
|
|
@@ -290,7 +290,7 @@ patchBrowser().then((function(e) {
|
|
|
290
290
|
}, null, {
|
|
291
291
|
value: [ "valueChanged" ]
|
|
292
292
|
} ] ] ], [ "br-checkbox", [ [ 65, "br-checkbox", {
|
|
293
|
-
indeterminate: [
|
|
293
|
+
indeterminate: [ 1540 ],
|
|
294
294
|
checked: [ 1540 ],
|
|
295
295
|
customId: [ 513, "custom-id" ],
|
|
296
296
|
disabled: [ 516 ],
|
|
@@ -299,8 +299,11 @@ patchBrowser().then((function(e) {
|
|
|
299
299
|
name: [ 513 ],
|
|
300
300
|
state: [ 513 ],
|
|
301
301
|
value: [ 513 ],
|
|
302
|
-
|
|
302
|
+
slotDefault: [ 32 ],
|
|
303
|
+
setIndeterminate: [ 64 ],
|
|
303
304
|
toggleChecked: [ 64 ]
|
|
305
|
+
}, null, {
|
|
306
|
+
indeterminate: [ "updateIndeterminate" ]
|
|
304
307
|
} ] ] ], [ "br-button_2", [ [ 65, "br-button", {
|
|
305
308
|
colorMode: [ 513, "color-mode" ],
|
|
306
309
|
customId: [ 513, "custom-id" ],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","patchCloneNodeFix","H","prototype","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","HTMLElementPrototype","nativeCloneNodeFn","cloneNode","deep","this","nodeName","call","clonedNode","srcChildNodes","childNodes","i","length","nodeType","appendChild","then","options","__awaiter","globalScripts","_a","sent","bootstrapLazy","label","placeholder","isMultiple","selectAllLabel","unselectAllLabel","showSearchIcon","isOpen","customId","parsedOptions","inputValue","isAllSelected","isExpanded","focusedIndex","toggleOpen","messageTitle","message","isInline","isClosable","autoRemove","showIcon","isFeedback","state","iconName","color","density","shape","status","interaction","disabled","stateIconName","accept","multiple","filesSelected","file","image","imageAlt","isIconic","text","iconWidth","iconHeight","marginTop","labelSelecionado","labelDesselecionado","indeterminate","checked","isIndeterminate","open","hide","isActive","isSelected","isInteractive","target","isButton","type","value","hasSlotDefault","hasSlotStart","hasSlotEnd","selectedValue","isProgress","progressPercent","isMedium","labelPosition","labelOn","labelOff","hasIcon","name","_slotDefault","toggleChecked","maxlength","showCounter","currentLength","setValue","hasHiddenLabel","colorMode","emphasis","isLoading","height","width","cssClasses","rotate","flip","autocomplete","isHighlight","readonly","required","helpText","autocorrect","min","max","minlength","pattern","step","isPasswordVisible","internalState","hasIconSlot","hasActionSlot","hasFeedbackSlot","header","isHorizontal","hideHeaderDivider"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOA,KAAIA,eAAe;EAIO;IACtBC,kBAAkBC,EAAEC;AACxB;EAIE,IAAMC,gBAAyBC;EAC/B,IAAMC,IAAqE;EAC3E,IAAIF,MAAe,IAAI;IACrBE,EAAKC,eAAe,IAAIC,IAAI,KAAKJ,GAAYK;AACjD;EACE,OAAOC,eAAeJ;AACxB;;AACA,IAAIL,oBAAoB,SAACU;EACvB,IAAMC,IAAoBD,EAAqBE;EAC/CF,EAAqBE,YAAY,SAASC;IACxC,IAAIC,KAAKC,aAAa,YAAY;MAChC,OAAOJ,EAAkBK,KAAKF,MAAMD;AAC1C;IACI,IAAMI,IAAaN,EAAkBK,KAAKF,MAAM;IAChD,IAAMI,IAAgBJ,KAAKK;IAC3B,IAAIN,GAAM;MACR,KAAK,IAAIO,IAAI,GAAGA,IAAIF,EAAcG,QAAQD,KAAK;QAC7C,IAAIF,EAAcE,GAAGE,aAAa,GAAG;UACnCL,EAAWM,YAAYL,EAAcE,GAAGR,UAAU;AAC5D;AACA;AACA;IACI,OAAOK;AACX;AACA;;ACrCAlB,eAAeyB,MAAK,SAAOC;EAAO,OAAAC,eAAA;;;;QAChC,uBAAMC;;;QAANC,EAAAC;QACA,wBAAOC,cAAc,sCAA8B;UAAAC,OAAS;UAAAC,aAAA;UAAAC,YAAA;UAAAR,SAAA;UAAAS,gBAAA;UAAAC,kBAAA;UAAAC,gBAAA;UAAAC,QAAA;UAAAC,UAAA;UAAAC,eAAA;UAAAC,YAAA;UAAAC,eAAA;UAAAC,YAAA;U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;UAAAtD,OAAA;UAAAC,aAAA;UAAAM,UAAA;UAAAqB,UAAA;UAAAyC,WAAA;UAAAC,aAAA;UAAAjD,OAAA;UAAAG,SAAA;UAAAR,UAAA;UAAAuD,eAAA;UAAAC,UAAA;WAAA;UAAAlB,OAAA;iBAAA;UAAAX,eAAA;UAAAC,SAAA;UAAArC,UAAA;UAAAqB,UAAA;UAAA6C,gBAAA;UAAAzE,OAAA;UAAAkE,MAAA;UAAA7C,OAAA;UAAAiC,OAAA;
|
|
1
|
+
{"version":3,"names":["patchBrowser","patchCloneNodeFix","H","prototype","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","HTMLElementPrototype","nativeCloneNodeFn","cloneNode","deep","this","nodeName","call","clonedNode","srcChildNodes","childNodes","i","length","nodeType","appendChild","then","options","__awaiter","globalScripts","_a","sent","bootstrapLazy","label","placeholder","isMultiple","selectAllLabel","unselectAllLabel","showSearchIcon","isOpen","customId","parsedOptions","inputValue","isAllSelected","isExpanded","focusedIndex","toggleOpen","messageTitle","message","isInline","isClosable","autoRemove","showIcon","isFeedback","state","iconName","color","density","shape","status","interaction","disabled","stateIconName","accept","multiple","filesSelected","file","image","imageAlt","isIconic","text","iconWidth","iconHeight","marginTop","labelSelecionado","labelDesselecionado","indeterminate","checked","isIndeterminate","open","hide","isActive","isSelected","isInteractive","target","isButton","type","value","hasSlotDefault","hasSlotStart","hasSlotEnd","selectedValue","isProgress","progressPercent","isMedium","labelPosition","labelOn","labelOff","hasIcon","name","_slotDefault","toggleChecked","maxlength","showCounter","currentLength","setValue","hasHiddenLabel","slotDefault","setIndeterminate","colorMode","emphasis","isLoading","height","width","cssClasses","rotate","flip","autocomplete","isHighlight","readonly","required","helpText","autocorrect","min","max","minlength","pattern","step","isPasswordVisible","internalState","hasIconSlot","hasActionSlot","hasFeedbackSlot","header","isHorizontal","hideHeaderDivider"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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eAAA;UAAAC,SAAA;UAAArC,UAAA;UAAAqB,UAAA;UAAA6C,gBAAA;UAAAzE,OAAA;UAAAkE,MAAA;UAAA7C,OAAA;UAAAiC,OAAA;UAAAoB,aAAA;UAAAC,kBAAA;UAAAP,eAAA;WAAA;UAAAzB,eAAA;iBAAA;UAAAiC,WAAA;UAAArE,UAAA;UAAAiB,SAAA;UAAAI,UAAA;UAAAiD,UAAA;UAAA7B,UAAA;UAAA8B,WAAA;UAAArD,OAAA;UAAA4B,MAAA;UAAAC,OAAA;aAAA;UAAAhC,UAAA;UAAAyD,QAAA;UAAAxE,UAAA;UAAAyE,OAAA;UAAAC,YAAA;UAAAjE,UAAA;UAAAkE,QAAA;UAAAC,MAAA;iBAAA;UAAA9B,MAAA;UAAA+B,cAAA;UAAA5D,SAAA;UAAAI,UAAA;UAAAZ,UAAA;UAAAqE,aAAA;UAAAhE,OAAA;UAAArB,OAAA;UAAAO,UAAA;UAAA2D,MAAA;UAAAjE,aAAA;UAAAqF,UAAA;UAAAC,UAAA;UAAAjC,OAAA;UAAAkC,UAAA;UAAAC,aAAA;UAAAC,KAAA;UAAAC,KAAA;UAAAC,WAAA;UAAAvB,WAAA;UAAAtC,UAAA;UAAA8D,SAAA;UAAAC,MAAA;UAAAC,mBAAA;UAAAC,eAAA;UAAAC,aAAA;UAAAC,eAAA;UAAAC,iBAAA;aAAA;UAAAC,QAAA;UAAAC,cAAA;UAAA9F,UAAA;UAAA+F,mBAAA;aAAA;UAAA1D,SAAA;UAAAhB,UAAA;UAAAP,OAAA;UAAAoD,gBAAA;UAAAlE,UAAA;UAAA2D,MAAA;UAAAlE,OAAA;UAAAsD,OAAA;UAAAc,eAAA;WAAA,uDAAA1E","ignoreList":[]}
|
package/dist/hydrate/index.js
CHANGED
|
@@ -2729,6 +2729,7 @@ class Checkbox {
|
|
|
2729
2729
|
constructor(hostRef) {
|
|
2730
2730
|
registerInstance(this, hostRef);
|
|
2731
2731
|
this.checkedChange = createEvent(this, "checkedChange", 7);
|
|
2732
|
+
this.indeterminateChange = createEvent(this, "indeterminateChange", 7);
|
|
2732
2733
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
2733
2734
|
this.elementInternals = hostRef.$hostElement$["s-ei"];
|
|
2734
2735
|
}
|
|
@@ -2745,15 +2746,29 @@ class Checkbox {
|
|
|
2745
2746
|
this.name = undefined;
|
|
2746
2747
|
this.state = undefined;
|
|
2747
2748
|
this.value = undefined;
|
|
2748
|
-
this.
|
|
2749
|
+
this.slotDefault = false;
|
|
2749
2750
|
}
|
|
2750
2751
|
get el() { return getElement(this); }
|
|
2751
2752
|
elementInternals;
|
|
2753
|
+
/**
|
|
2754
|
+
* Disparado depois que o valor do `checked` foi alterado
|
|
2755
|
+
*/
|
|
2756
|
+
checkedChange;
|
|
2757
|
+
/**
|
|
2758
|
+
* Disparado depois que o valor do `indeterminate` foi alterado.
|
|
2759
|
+
*/
|
|
2760
|
+
indeterminateChange;
|
|
2761
|
+
updateIndeterminate(newValue) {
|
|
2762
|
+
const input = this.el.shadowRoot.querySelector('input');
|
|
2763
|
+
if (input) {
|
|
2764
|
+
input.indeterminate = newValue;
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2752
2767
|
componentWillLoad() {
|
|
2753
2768
|
this.hasSlotContentDefault();
|
|
2754
2769
|
}
|
|
2755
2770
|
hasSlotContentDefault() {
|
|
2756
|
-
this.
|
|
2771
|
+
this.slotDefault = this.el.innerHTML !== '';
|
|
2757
2772
|
}
|
|
2758
2773
|
getCssClassMap() {
|
|
2759
2774
|
return {
|
|
@@ -2764,14 +2779,28 @@ class Checkbox {
|
|
|
2764
2779
|
'hidden-label': this.hasHiddenLabel,
|
|
2765
2780
|
};
|
|
2766
2781
|
}
|
|
2767
|
-
/**
|
|
2768
|
-
* Disparado depois que o valor do `checked` foi alterado
|
|
2769
|
-
*/
|
|
2770
|
-
checkedChange;
|
|
2771
2782
|
handleCheckedChange = () => {
|
|
2772
|
-
this.
|
|
2783
|
+
if (this.indeterminate) {
|
|
2784
|
+
// Sai do estado indeterminado ao clicar e define como marcado
|
|
2785
|
+
this.indeterminate = false;
|
|
2786
|
+
this.checked = true;
|
|
2787
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
2788
|
+
}
|
|
2789
|
+
else {
|
|
2790
|
+
// Alterna entre marcado e desmarcado
|
|
2791
|
+
this.checked = !this.checked;
|
|
2792
|
+
}
|
|
2773
2793
|
this.checkedChange.emit(this.checked);
|
|
2774
2794
|
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Define o estado indeterminado do checkbox.
|
|
2797
|
+
* @param value Novo valor para o estado indeterminado.
|
|
2798
|
+
*/
|
|
2799
|
+
async setIndeterminate(value) {
|
|
2800
|
+
this.indeterminate = value;
|
|
2801
|
+
this.updateIndeterminate(value);
|
|
2802
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
2803
|
+
}
|
|
2775
2804
|
/**
|
|
2776
2805
|
* Inverte o valor da prop `checked`
|
|
2777
2806
|
*/
|
|
@@ -2780,15 +2809,18 @@ class Checkbox {
|
|
|
2780
2809
|
this.checkedChange.emit(this.checked);
|
|
2781
2810
|
}
|
|
2782
2811
|
render() {
|
|
2783
|
-
return (hAsync(Host, { key: '
|
|
2812
|
+
return (hAsync(Host, { key: 'c1ba3deb88991d7f0fa600d06ef2dd3141c26176' }, hAsync("div", { key: '93b6eed814dfc2052568466539ddb3de25347fd2', class: this.getCssClassMap() }, hAsync("input", { key: '44d9bda8cf2c384201325e461e159d8d08009917', type: "checkbox", id: this.customId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, onChange: this.handleCheckedChange, ref: (el) => el && (el.indeterminate = this.indeterminate) }), hAsync("label", { key: 'b572e741ab92598e621197bb4211b24745351e3a', htmlFor: this.customId }, this.slotDefault ? hAsync("slot", null) : this.label))));
|
|
2784
2813
|
}
|
|
2785
2814
|
static get formAssociated() { return true; }
|
|
2815
|
+
static get watchers() { return {
|
|
2816
|
+
"indeterminate": ["updateIndeterminate"]
|
|
2817
|
+
}; }
|
|
2786
2818
|
static get style() { return BrCheckboxStyle0; }
|
|
2787
2819
|
static get cmpMeta() { return {
|
|
2788
2820
|
"$flags$": 73,
|
|
2789
2821
|
"$tagName$": "br-checkbox",
|
|
2790
2822
|
"$members$": {
|
|
2791
|
-
"indeterminate": [
|
|
2823
|
+
"indeterminate": [1540],
|
|
2792
2824
|
"checked": [1540],
|
|
2793
2825
|
"customId": [513, "custom-id"],
|
|
2794
2826
|
"disabled": [516],
|
|
@@ -2797,7 +2829,8 @@ class Checkbox {
|
|
|
2797
2829
|
"name": [513],
|
|
2798
2830
|
"state": [513],
|
|
2799
2831
|
"value": [513],
|
|
2800
|
-
"
|
|
2832
|
+
"slotDefault": [32],
|
|
2833
|
+
"setIndeterminate": [64],
|
|
2801
2834
|
"toggleChecked": [64]
|
|
2802
2835
|
},
|
|
2803
2836
|
"$listeners$": undefined,
|
package/dist/hydrate/index.mjs
CHANGED
|
@@ -2725,6 +2725,7 @@ class Checkbox {
|
|
|
2725
2725
|
constructor(hostRef) {
|
|
2726
2726
|
registerInstance(this, hostRef);
|
|
2727
2727
|
this.checkedChange = createEvent(this, "checkedChange", 7);
|
|
2728
|
+
this.indeterminateChange = createEvent(this, "indeterminateChange", 7);
|
|
2728
2729
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
2729
2730
|
this.elementInternals = hostRef.$hostElement$["s-ei"];
|
|
2730
2731
|
}
|
|
@@ -2741,15 +2742,29 @@ class Checkbox {
|
|
|
2741
2742
|
this.name = undefined;
|
|
2742
2743
|
this.state = undefined;
|
|
2743
2744
|
this.value = undefined;
|
|
2744
|
-
this.
|
|
2745
|
+
this.slotDefault = false;
|
|
2745
2746
|
}
|
|
2746
2747
|
get el() { return getElement(this); }
|
|
2747
2748
|
elementInternals;
|
|
2749
|
+
/**
|
|
2750
|
+
* Disparado depois que o valor do `checked` foi alterado
|
|
2751
|
+
*/
|
|
2752
|
+
checkedChange;
|
|
2753
|
+
/**
|
|
2754
|
+
* Disparado depois que o valor do `indeterminate` foi alterado.
|
|
2755
|
+
*/
|
|
2756
|
+
indeterminateChange;
|
|
2757
|
+
updateIndeterminate(newValue) {
|
|
2758
|
+
const input = this.el.shadowRoot.querySelector('input');
|
|
2759
|
+
if (input) {
|
|
2760
|
+
input.indeterminate = newValue;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2748
2763
|
componentWillLoad() {
|
|
2749
2764
|
this.hasSlotContentDefault();
|
|
2750
2765
|
}
|
|
2751
2766
|
hasSlotContentDefault() {
|
|
2752
|
-
this.
|
|
2767
|
+
this.slotDefault = this.el.innerHTML !== '';
|
|
2753
2768
|
}
|
|
2754
2769
|
getCssClassMap() {
|
|
2755
2770
|
return {
|
|
@@ -2760,14 +2775,28 @@ class Checkbox {
|
|
|
2760
2775
|
'hidden-label': this.hasHiddenLabel,
|
|
2761
2776
|
};
|
|
2762
2777
|
}
|
|
2763
|
-
/**
|
|
2764
|
-
* Disparado depois que o valor do `checked` foi alterado
|
|
2765
|
-
*/
|
|
2766
|
-
checkedChange;
|
|
2767
2778
|
handleCheckedChange = () => {
|
|
2768
|
-
this.
|
|
2779
|
+
if (this.indeterminate) {
|
|
2780
|
+
// Sai do estado indeterminado ao clicar e define como marcado
|
|
2781
|
+
this.indeterminate = false;
|
|
2782
|
+
this.checked = true;
|
|
2783
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
2784
|
+
}
|
|
2785
|
+
else {
|
|
2786
|
+
// Alterna entre marcado e desmarcado
|
|
2787
|
+
this.checked = !this.checked;
|
|
2788
|
+
}
|
|
2769
2789
|
this.checkedChange.emit(this.checked);
|
|
2770
2790
|
};
|
|
2791
|
+
/**
|
|
2792
|
+
* Define o estado indeterminado do checkbox.
|
|
2793
|
+
* @param value Novo valor para o estado indeterminado.
|
|
2794
|
+
*/
|
|
2795
|
+
async setIndeterminate(value) {
|
|
2796
|
+
this.indeterminate = value;
|
|
2797
|
+
this.updateIndeterminate(value);
|
|
2798
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
2799
|
+
}
|
|
2771
2800
|
/**
|
|
2772
2801
|
* Inverte o valor da prop `checked`
|
|
2773
2802
|
*/
|
|
@@ -2776,15 +2805,18 @@ class Checkbox {
|
|
|
2776
2805
|
this.checkedChange.emit(this.checked);
|
|
2777
2806
|
}
|
|
2778
2807
|
render() {
|
|
2779
|
-
return (hAsync(Host, { key: '
|
|
2808
|
+
return (hAsync(Host, { key: 'c1ba3deb88991d7f0fa600d06ef2dd3141c26176' }, hAsync("div", { key: '93b6eed814dfc2052568466539ddb3de25347fd2', class: this.getCssClassMap() }, hAsync("input", { key: '44d9bda8cf2c384201325e461e159d8d08009917', type: "checkbox", id: this.customId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, onChange: this.handleCheckedChange, ref: (el) => el && (el.indeterminate = this.indeterminate) }), hAsync("label", { key: 'b572e741ab92598e621197bb4211b24745351e3a', htmlFor: this.customId }, this.slotDefault ? hAsync("slot", null) : this.label))));
|
|
2780
2809
|
}
|
|
2781
2810
|
static get formAssociated() { return true; }
|
|
2811
|
+
static get watchers() { return {
|
|
2812
|
+
"indeterminate": ["updateIndeterminate"]
|
|
2813
|
+
}; }
|
|
2782
2814
|
static get style() { return BrCheckboxStyle0; }
|
|
2783
2815
|
static get cmpMeta() { return {
|
|
2784
2816
|
"$flags$": 73,
|
|
2785
2817
|
"$tagName$": "br-checkbox",
|
|
2786
2818
|
"$members$": {
|
|
2787
|
-
"indeterminate": [
|
|
2819
|
+
"indeterminate": [1540],
|
|
2788
2820
|
"checked": [1540],
|
|
2789
2821
|
"customId": [513, "custom-id"],
|
|
2790
2822
|
"disabled": [516],
|
|
@@ -2793,7 +2825,8 @@ class Checkbox {
|
|
|
2793
2825
|
"name": [513],
|
|
2794
2826
|
"state": [513],
|
|
2795
2827
|
"value": [513],
|
|
2796
|
-
"
|
|
2828
|
+
"slotDefault": [32],
|
|
2829
|
+
"setIndeterminate": [64],
|
|
2797
2830
|
"toggleChecked": [64]
|
|
2798
2831
|
},
|
|
2799
2832
|
"$listeners$": undefined,
|
|
@@ -15,8 +15,9 @@ export declare class Checkbox {
|
|
|
15
15
|
* Define o estado intermediário do checkbox.
|
|
16
16
|
* Se definido como verdadeiro, o checkbox exibirá um estado intermediário, que é um estado visual que indica que a opção está parcialmente selecionada.
|
|
17
17
|
* Este estado é útil quando o checkbox faz parte de um grupo com seleção parcial.
|
|
18
|
+
* Este estado será resetado automaticamente ao clicar no checkbox, alterando para marcado ou desmarcado.
|
|
18
19
|
*/
|
|
19
|
-
|
|
20
|
+
indeterminate: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Define o estado de seleção do checkbox.
|
|
22
23
|
* Se definido como verdadeiro, o checkbox estará marcado. Caso contrário, estará desmarcado.
|
|
@@ -60,15 +61,25 @@ export declare class Checkbox {
|
|
|
60
61
|
* **Nota:** Esta propriedade não deve ser utilizada para determinar se o checkbox está selecionado; para verificar o estado de seleção, use a propriedade `checked`.
|
|
61
62
|
*/
|
|
62
63
|
readonly value: string;
|
|
63
|
-
|
|
64
|
+
slotDefault: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Disparado depois que o valor do `checked` foi alterado
|
|
67
|
+
*/
|
|
68
|
+
checkedChange: EventEmitter<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Disparado depois que o valor do `indeterminate` foi alterado.
|
|
71
|
+
*/
|
|
72
|
+
indeterminateChange: EventEmitter<boolean>;
|
|
73
|
+
updateIndeterminate(newValue: boolean): void;
|
|
64
74
|
componentWillLoad(): void;
|
|
65
75
|
private hasSlotContentDefault;
|
|
66
76
|
private getCssClassMap;
|
|
77
|
+
private readonly handleCheckedChange;
|
|
67
78
|
/**
|
|
68
|
-
*
|
|
79
|
+
* Define o estado indeterminado do checkbox.
|
|
80
|
+
* @param value Novo valor para o estado indeterminado.
|
|
69
81
|
*/
|
|
70
|
-
|
|
71
|
-
private readonly handleCheckedChange;
|
|
82
|
+
setIndeterminate(value: boolean): Promise<void>;
|
|
72
83
|
/**
|
|
73
84
|
* Inverte o valor da prop `checked`
|
|
74
85
|
*/
|
|
@@ -113,7 +113,7 @@ export namespace Components {
|
|
|
113
113
|
*/
|
|
114
114
|
"hasHiddenLabel": boolean;
|
|
115
115
|
/**
|
|
116
|
-
* Define o estado intermediário do checkbox. Se definido como verdadeiro, o checkbox exibirá um estado intermediário, que é um estado visual que indica que a opção está parcialmente selecionada. Este estado é útil quando o checkbox faz parte de um grupo com seleção parcial.
|
|
116
|
+
* Define o estado intermediário do checkbox. Se definido como verdadeiro, o checkbox exibirá um estado intermediário, que é um estado visual que indica que a opção está parcialmente selecionada. Este estado é útil quando o checkbox faz parte de um grupo com seleção parcial. Este estado será resetado automaticamente ao clicar no checkbox, alterando para marcado ou desmarcado.
|
|
117
117
|
*/
|
|
118
118
|
"indeterminate": boolean;
|
|
119
119
|
/**
|
|
@@ -124,6 +124,11 @@ export namespace Components {
|
|
|
124
124
|
* Define o nome do checkbox, que é utilizado para agrupar checkboxes em formulários e identificar o campo. O valor é obrigatório e deve ser fornecido para garantir o correto funcionamento em formulários.
|
|
125
125
|
*/
|
|
126
126
|
"name": string;
|
|
127
|
+
/**
|
|
128
|
+
* Define o estado indeterminado do checkbox.
|
|
129
|
+
* @param value Novo valor para o estado indeterminado.
|
|
130
|
+
*/
|
|
131
|
+
"setIndeterminate": (value: boolean) => Promise<void>;
|
|
127
132
|
/**
|
|
128
133
|
* Indica a validade do checkbox. Valores possíveis: 'valid': O checkbox é considerado válido. 'invalid': O checkbox é considerado inválido. Se não for especificado, o valor padrão é `null`, indicando que a validade não foi definida.
|
|
129
134
|
*/
|
|
@@ -781,6 +786,7 @@ declare global {
|
|
|
781
786
|
};
|
|
782
787
|
interface HTMLBrCheckboxElementEventMap {
|
|
783
788
|
"checkedChange": boolean;
|
|
789
|
+
"indeterminateChange": boolean;
|
|
784
790
|
}
|
|
785
791
|
/**
|
|
786
792
|
* Para uma descrição detalhada, consulte a [documentação do GovBR-DS](https://www.gov.br/ds/components/checkbox?tab=designer).
|
|
@@ -1145,7 +1151,7 @@ declare namespace LocalJSX {
|
|
|
1145
1151
|
*/
|
|
1146
1152
|
"hasHiddenLabel"?: boolean;
|
|
1147
1153
|
/**
|
|
1148
|
-
* Define o estado intermediário do checkbox. Se definido como verdadeiro, o checkbox exibirá um estado intermediário, que é um estado visual que indica que a opção está parcialmente selecionada. Este estado é útil quando o checkbox faz parte de um grupo com seleção parcial.
|
|
1154
|
+
* Define o estado intermediário do checkbox. Se definido como verdadeiro, o checkbox exibirá um estado intermediário, que é um estado visual que indica que a opção está parcialmente selecionada. Este estado é útil quando o checkbox faz parte de um grupo com seleção parcial. Este estado será resetado automaticamente ao clicar no checkbox, alterando para marcado ou desmarcado.
|
|
1149
1155
|
*/
|
|
1150
1156
|
"indeterminate"?: boolean;
|
|
1151
1157
|
/**
|
|
@@ -1160,6 +1166,10 @@ declare namespace LocalJSX {
|
|
|
1160
1166
|
* Disparado depois que o valor do `checked` foi alterado
|
|
1161
1167
|
*/
|
|
1162
1168
|
"onCheckedChange"?: (event: BrCheckboxCustomEvent<boolean>) => void;
|
|
1169
|
+
/**
|
|
1170
|
+
* Disparado depois que o valor do `indeterminate` foi alterado.
|
|
1171
|
+
*/
|
|
1172
|
+
"onIndeterminateChange"?: (event: BrCheckboxCustomEvent<boolean>) => void;
|
|
1163
1173
|
/**
|
|
1164
1174
|
* Indica a validade do checkbox. Valores possíveis: 'valid': O checkbox é considerado válido. 'invalid': O checkbox é considerado inválido. Se não for especificado, o valor padrão é `null`, indicando que a validade não foi definida.
|
|
1165
1175
|
*/
|