@govbr-ds/webcomponents 2.0.0-next.62 → 2.0.0-next.63
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.br-input.br-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/br-checkbox_3.cjs.entry.js +17 -28
- package/dist/cjs/br-collapse.br-list.entry.cjs.js.map +1 -1
- package/dist/cjs/br-collapse_2.cjs.entry.js +10 -15
- package/dist/cjs/br-datetime-picker.cjs.entry.js +18 -31
- package/dist/cjs/br-datetime-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/br-dropdown.br-select.entry.cjs.js.map +1 -1
- package/dist/cjs/br-dropdown_2.cjs.entry.js +73 -56
- package/dist/cjs/br-header-list.cjs.entry.js +6 -13
- package/dist/cjs/br-header-list.entry.cjs.js.map +1 -1
- package/dist/cjs/br-header.cjs.entry.js +2 -5
- package/dist/cjs/br-header.entry.cjs.js.map +1 -1
- package/dist/cjs/br-item.cjs.entry.js +3 -6
- package/dist/cjs/br-item.entry.cjs.js.map +1 -1
- package/dist/cjs/br-message.cjs.entry.js +13 -16
- package/dist/cjs/br-message.entry.cjs.js.map +1 -1
- package/dist/cjs/br-modal.cjs.entry.js +8 -13
- package/dist/cjs/br-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/br-scrim.cjs.entry.js +40 -51
- package/dist/cjs/br-scrim.entry.cjs.js.map +1 -1
- package/dist/cjs/br-skip-link.cjs.entry.js +24 -29
- package/dist/cjs/br-skip-link.entry.cjs.js.map +1 -1
- package/dist/cjs/br-skiplink-item.cjs.entry.js +32 -37
- package/dist/cjs/br-skiplink-item.entry.cjs.js.map +1 -1
- package/dist/cjs/br-step.br-step-item.entry.cjs.js.map +1 -1
- package/dist/cjs/br-step_2.cjs.entry.js +33 -56
- package/dist/cjs/br-switch.cjs.entry.js +3 -6
- package/dist/cjs/br-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/br-textarea.cjs.entry.js +5 -8
- package/dist/cjs/br-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/br-tooltip.cjs.entry.js +1 -2
- package/dist/cjs/br-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/br-wizard-panel.cjs.entry.js +6 -13
- package/dist/cjs/br-wizard-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/br-wizard.cjs.entry.js +147 -182
- package/dist/cjs/br-wizard.entry.cjs.js.map +1 -1
- package/dist/cjs/{floating-ui-D_WzFT9x.js → floating-ui-CkTJEp-y.js} +11 -15
- package/dist/{esm/floating-ui-DBIzWbO2.js.map → cjs/floating-ui-CkTJEp-y.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 +9 -16
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/collapse/collapse.js +10 -15
- package/dist/collection/components/collapse/collapse.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +18 -31
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +13 -20
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/header/header-list/header-list.js +6 -13
- package/dist/collection/components/header/header-list/header-list.js.map +1 -1
- package/dist/collection/components/header/header.js +2 -5
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/item/item.js +3 -6
- package/dist/collection/components/item/item.js.map +1 -1
- package/dist/collection/components/message/message.js +13 -16
- package/dist/collection/components/message/message.js.map +1 -1
- package/dist/collection/components/modal/modal.js +8 -13
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/radio/radio.js +8 -13
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/scrim/scrim.js +40 -51
- package/dist/collection/components/scrim/scrim.js.map +1 -1
- package/dist/collection/components/select/select.js +79 -36
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +32 -37
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js.map +1 -1
- package/dist/collection/components/skip-link/skip-link.js +24 -29
- package/dist/collection/components/skip-link/skip-link.js.map +1 -1
- package/dist/collection/components/step/step-item/step-item.js +13 -26
- package/dist/collection/components/step/step-item/step-item.js.map +1 -1
- package/dist/collection/components/step/step.js +20 -31
- package/dist/collection/components/step/step.js.map +1 -1
- package/dist/collection/components/switch/switch.js +3 -6
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +5 -8
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +6 -13
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js.map +1 -1
- package/dist/collection/components/wizard/wizard.js +147 -182
- package/dist/collection/components/wizard/wizard.js.map +1 -1
- package/dist/collection/utils/floating-ui.js +9 -12
- package/dist/collection/utils/floating-ui.js.map +1 -1
- package/dist/components/br-breadcrumb.js +3 -3
- package/dist/components/br-checkbox.js +4 -4
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.js +4 -4
- package/dist/components/br-datetime-picker.js +1981 -1995
- package/dist/components/br-datetime-picker.js.map +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.js +3 -3
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.js +31 -39
- package/dist/components/br-header-list.js.map +1 -1
- package/dist/components/br-header.js +63 -67
- package/dist/components/br-header.js.map +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-list.js +3 -3
- package/dist/components/br-message.js +28 -32
- package/dist/components/br-message.js.map +1 -1
- package/dist/components/br-modal.js +21 -27
- package/dist/components/br-modal.js.map +1 -1
- package/dist/components/br-pagination.js +7 -7
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.js +49 -61
- package/dist/components/br-scrim.js.map +1 -1
- package/dist/components/br-select.js +3 -3
- package/dist/components/br-skip-link.js +38 -44
- package/dist/components/br-skip-link.js.map +1 -1
- package/dist/components/br-skiplink-item.js +55 -61
- package/dist/components/br-skiplink-item.js.map +1 -1
- package/dist/components/br-step-item.js +4 -4
- package/dist/components/br-step.js +4 -4
- package/dist/components/br-switch.js +12 -16
- package/dist/components/br-switch.js.map +1 -1
- package/dist/components/br-textarea.js +14 -18
- package/dist/components/br-textarea.js.map +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-wizard-panel.js +13 -21
- package/dist/components/br-wizard-panel.js.map +1 -1
- package/dist/components/br-wizard.js +190 -228
- package/dist/components/br-wizard.js.map +1 -1
- package/dist/components/{p-Cc75U9ZX.js → p-B_YesJM8.js} +26 -34
- package/dist/components/{p-Cc75U9ZX.js.map → p-B_YesJM8.js.map} +1 -1
- package/dist/components/{p-xFn46pdm.js → p-Bc03PTAW.js} +27 -39
- package/dist/components/{p-xFn46pdm.js.map → p-Bc03PTAW.js.map} +1 -1
- package/dist/components/{p-DzKEfDGA.js → p-Bri6ECVa.js} +27 -33
- package/dist/components/{p-DzKEfDGA.js.map → p-Bri6ECVa.js.map} +1 -1
- package/dist/components/{p-BZ8BetvD.js → p-CJSXIVVe.js} +17 -23
- package/dist/components/{p-BZ8BetvD.js.map → p-CJSXIVVe.js.map} +1 -1
- package/dist/components/{p-D9c7NikS.js → p-CWRBs6PD.js} +24 -38
- package/dist/components/{p-D9c7NikS.js.map → p-CWRBs6PD.js.map} +1 -1
- package/dist/components/{p-D0dPo1K5.js → p-CwtLw60M.js} +12 -16
- package/dist/components/{p-D0dPo1K5.js.map → p-CwtLw60M.js.map} +1 -1
- package/dist/components/{p-z1PVVVFI.js → p-DW63EY0U.js} +27 -35
- package/dist/components/{p-z1PVVVFI.js.map → p-DW63EY0U.js.map} +1 -1
- package/dist/components/{p-7kxAU6Gr.js → p-DdjKNpU3.js} +92 -72
- package/dist/components/p-DdjKNpU3.js.map +1 -0
- package/dist/{webcomponents/p-B4au_byv.js → components/p-k0WZfTfL.js} +121 -124
- package/dist/components/{p-B4au_byv.js.map → p-k0WZfTfL.js.map} +1 -1
- package/dist/components/{p-OKkBxn1z.js → p-lIb35q2K.js} +3 -3
- package/dist/custom-elements.json +19459 -0
- package/dist/esm/br-checkbox.br-input.br-radio.entry.js.map +1 -1
- package/dist/esm/br-checkbox_3.entry.js +17 -28
- package/dist/esm/br-collapse.br-list.entry.js.map +1 -1
- package/dist/esm/br-collapse_2.entry.js +10 -15
- package/dist/esm/br-datetime-picker.entry.js +18 -31
- package/dist/esm/br-datetime-picker.entry.js.map +1 -1
- package/dist/esm/br-dropdown.br-select.entry.js.map +1 -1
- package/dist/esm/br-dropdown_2.entry.js +73 -56
- package/dist/esm/br-header-list.entry.js +6 -13
- package/dist/esm/br-header-list.entry.js.map +1 -1
- package/dist/esm/br-header.entry.js +2 -5
- package/dist/esm/br-header.entry.js.map +1 -1
- package/dist/esm/br-item.entry.js +3 -6
- package/dist/esm/br-item.entry.js.map +1 -1
- package/dist/esm/br-message.entry.js +13 -16
- package/dist/esm/br-message.entry.js.map +1 -1
- package/dist/esm/br-modal.entry.js +8 -13
- package/dist/esm/br-modal.entry.js.map +1 -1
- package/dist/esm/br-scrim.entry.js +40 -51
- package/dist/esm/br-scrim.entry.js.map +1 -1
- package/dist/esm/br-skip-link.entry.js +24 -29
- package/dist/esm/br-skip-link.entry.js.map +1 -1
- package/dist/esm/br-skiplink-item.entry.js +32 -37
- package/dist/esm/br-skiplink-item.entry.js.map +1 -1
- package/dist/esm/br-step.br-step-item.entry.js.map +1 -1
- package/dist/esm/br-step_2.entry.js +33 -56
- package/dist/esm/br-switch.entry.js +3 -6
- package/dist/esm/br-switch.entry.js.map +1 -1
- package/dist/esm/br-textarea.entry.js +5 -8
- package/dist/esm/br-textarea.entry.js.map +1 -1
- package/dist/esm/br-tooltip.entry.js +1 -2
- package/dist/esm/br-tooltip.entry.js.map +1 -1
- package/dist/esm/br-wizard-panel.entry.js +6 -13
- package/dist/esm/br-wizard-panel.entry.js.map +1 -1
- package/dist/esm/br-wizard.entry.js +147 -182
- package/dist/esm/br-wizard.entry.js.map +1 -1
- package/dist/esm/{floating-ui-DBIzWbO2.js → floating-ui-k0WZfTfL.js} +11 -15
- package/dist/{cjs/floating-ui-D_WzFT9x.js.map → esm/floating-ui-k0WZfTfL.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/hydrate/index.js +450 -591
- package/dist/hydrate/index.mjs +450 -591
- package/dist/types/components/select/select.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/webcomponents/br-checkbox.br-input.br-radio.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-collapse.br-list.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-datetime-picker.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-dropdown.br-select.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-header-list.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-header.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-item.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-message.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-modal.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-scrim.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-skip-link.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-skiplink-item.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-step.br-step-item.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-switch.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-textarea.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-tooltip.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-wizard-panel.entry.esm.js.map +1 -1
- package/dist/webcomponents/br-wizard.entry.esm.js.map +1 -1
- package/dist/webcomponents/{p-2fe329d6.entry.js → p-10e25a32.entry.js} +28 -34
- package/dist/webcomponents/p-10e25a32.entry.js.map +1 -0
- package/dist/webcomponents/{p-097912c2.entry.js → p-1991135d.entry.js} +30 -36
- package/dist/webcomponents/p-1991135d.entry.js.map +1 -0
- package/dist/webcomponents/{p-61e5421b.entry.js → p-27eb10f9.entry.js} +57 -61
- package/dist/webcomponents/p-27eb10f9.entry.js.map +1 -0
- package/dist/webcomponents/{p-5070161f.entry.js → p-30af66b3.entry.js} +45 -51
- package/dist/webcomponents/p-30af66b3.entry.js.map +1 -0
- package/dist/webcomponents/{p-9464b692.entry.js → p-336071a5.entry.js} +2 -4
- package/dist/webcomponents/p-336071a5.entry.js.map +1 -0
- package/dist/webcomponents/{p-8a034433.entry.js → p-462c5647.entry.js} +20 -24
- package/dist/webcomponents/p-462c5647.entry.js.map +1 -0
- package/dist/webcomponents/{p-d674cee3.entry.js → p-46dfc3ee.entry.js} +12 -16
- package/dist/webcomponents/p-46dfc3ee.entry.js.map +1 -0
- package/dist/webcomponents/{p-821b896c.entry.js → p-56aabe89.entry.js} +36 -44
- package/dist/webcomponents/p-56aabe89.entry.js.map +1 -0
- package/dist/webcomponents/{p-a615baaa.entry.js → p-5710a3e9.entry.js} +41 -65
- package/dist/webcomponents/p-5710a3e9.entry.js.map +1 -0
- package/dist/webcomponents/{p-1799a082.entry.js → p-6a9d2a0b.entry.js} +1996 -2010
- package/dist/webcomponents/p-6a9d2a0b.entry.js.map +1 -0
- package/dist/webcomponents/{p-8ad1f003.entry.js → p-83001853.entry.js} +175 -213
- package/dist/webcomponents/p-83001853.entry.js.map +1 -0
- package/dist/webcomponents/{p-463b06a4.entry.js → p-90401ecd.entry.js} +32 -38
- package/dist/webcomponents/p-90401ecd.entry.js.map +1 -0
- package/dist/webcomponents/{p-216dc111.entry.js → p-a2eec4fb.entry.js} +49 -61
- package/dist/webcomponents/p-a2eec4fb.entry.js.map +1 -0
- package/dist/webcomponents/{p-d6475852.entry.js → p-c1b0a116.entry.js} +11 -19
- package/dist/webcomponents/p-c1b0a116.entry.js.map +1 -0
- package/dist/webcomponents/{p-c90a089a.entry.js → p-ca2d95f7.entry.js} +96 -83
- package/dist/webcomponents/p-ca2d95f7.entry.js.map +1 -0
- package/dist/webcomponents/{p-7ff6698f.entry.js → p-cfa86a23.entry.js} +10 -14
- package/dist/webcomponents/p-cfa86a23.entry.js.map +1 -0
- package/dist/webcomponents/{p-abc0ecbe.entry.js → p-e5875d3d.entry.js} +10 -14
- package/dist/webcomponents/p-e5875d3d.entry.js.map +1 -0
- package/dist/webcomponents/{p-0bfb0edf.entry.js → p-f2ea0d7e.entry.js} +133 -145
- package/dist/webcomponents/p-f2ea0d7e.entry.js.map +1 -0
- package/dist/{components/p-B4au_byv.js → webcomponents/p-k0WZfTfL.js} +121 -124
- package/dist/webcomponents/{p-B4au_byv.js.map → p-k0WZfTfL.js.map} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents.html-custom-data.json +2573 -0
- package/package.json +1 -1
- package/dist/cjs/tslib.es6-CF44W9Bn.js +0 -42
- package/dist/cjs/tslib.es6-CF44W9Bn.js.map +0 -1
- package/dist/components/p-7kxAU6Gr.js.map +0 -1
- package/dist/components/p-DIPMDb5E.js +0 -55
- package/dist/components/p-DIPMDb5E.js.map +0 -1
- package/dist/esm/tslib.es6-DIPMDb5E.js +0 -40
- package/dist/esm/tslib.es6-DIPMDb5E.js.map +0 -1
- package/dist/webcomponents/p-097912c2.entry.js.map +0 -1
- package/dist/webcomponents/p-0bfb0edf.entry.js.map +0 -1
- package/dist/webcomponents/p-1799a082.entry.js.map +0 -1
- package/dist/webcomponents/p-216dc111.entry.js.map +0 -1
- package/dist/webcomponents/p-2fe329d6.entry.js.map +0 -1
- package/dist/webcomponents/p-463b06a4.entry.js.map +0 -1
- package/dist/webcomponents/p-5070161f.entry.js.map +0 -1
- package/dist/webcomponents/p-61e5421b.entry.js.map +0 -1
- package/dist/webcomponents/p-7ff6698f.entry.js.map +0 -1
- package/dist/webcomponents/p-821b896c.entry.js.map +0 -1
- package/dist/webcomponents/p-8a034433.entry.js.map +0 -1
- package/dist/webcomponents/p-8ad1f003.entry.js.map +0 -1
- package/dist/webcomponents/p-9464b692.entry.js.map +0 -1
- package/dist/webcomponents/p-DIPMDb5E.js +0 -55
- package/dist/webcomponents/p-DIPMDb5E.js.map +0 -1
- package/dist/webcomponents/p-a615baaa.entry.js.map +0 -1
- package/dist/webcomponents/p-abc0ecbe.entry.js.map +0 -1
- package/dist/webcomponents/p-c90a089a.entry.js.map +0 -1
- package/dist/webcomponents/p-d6475852.entry.js.map +0 -1
- package/dist/webcomponents/p-d674cee3.entry.js.map +0 -1
- /package/dist/components/{p-OKkBxn1z.js.map → p-lIb35q2K.js.map} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -4124,38 +4124,6 @@ class Button {
|
|
|
4124
4124
|
}; }
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
|
-
/******************************************************************************
|
|
4128
|
-
Copyright (c) Microsoft Corporation.
|
|
4129
|
-
|
|
4130
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4131
|
-
purpose with or without fee is hereby granted.
|
|
4132
|
-
|
|
4133
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4134
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4135
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4136
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4137
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4138
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4139
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4140
|
-
***************************************************************************** */
|
|
4141
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
4145
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4146
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4147
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4148
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4149
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4150
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4151
|
-
});
|
|
4152
|
-
}
|
|
4153
|
-
|
|
4154
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
4155
|
-
var e = new Error(message);
|
|
4156
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4157
|
-
};
|
|
4158
|
-
|
|
4159
4127
|
const checkboxCss = "*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}main{display:block}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}.d-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}}.justify-content-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.align-items-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{-webkit-box-flex:1;-ms-flex:1 0 0%;flex:1 0 0%;min-width:8.3333333333%}.col-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.col-2{-ms-flex-preferred-size:16.6666666667%;flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{-ms-flex-preferred-size:33.3333333333%;flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mr-n2{margin-right:calc(var(--spacing-scale-base)*-1) !important}.ml-2{margin-left:var(--spacing-scale-base) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mr-auto{margin-right:auto !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}.py-3{padding-bottom:var(--spacing-scale-2x) !important;padding-top:var(--spacing-scale-2x) !important}.py-4{padding-bottom:var(--spacing-scale-3x) !important;padding-top:var(--spacing-scale-3x) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}body{--bg-color:var(--background);--bg-color-rgb:var(--background-rgb);--bg-color-hsl:var(--background-hsl);--font-size:var(--font-size-scale-base);--font-weight:var(--font-weight-regular);--link-color:var(--interactive);--link-color-rgb:var(--interactive-rgb);--link-color-hsl:var(--interactive-hsl);--line-height:var(--font-line-height-medium);--text-color:var(--color);--text-color-rgb:var(--color-rgb);--text-color-hsl:var(--color-hsl);background:var(--bg-color);color:var(--text-color);font-family:var(--font-family-base);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height)}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--hover))), to(rgba(var(--interactive-rgb), var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--pressed))), to(rgba(var(--interactive-rgb), var(--pressed))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}::-webkit-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-moz-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::-ms-input-placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}.text-pure-0{color:var(--pure-0) !important}.bg-interactive{--background:var(--interactive);background:var(--interactive) !important}.text-primary-default{color:var(--color-primary-default) !important}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-medium{font-weight:500 !important}.text-bold{font-weight:700 !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}.ease{-webkit-animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1);animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-in-out{-webkit-animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1);animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fab{--icon-size:var(--icon-size-base);display:inline-block;font-size:var(--icon-size);text-align:center;width:calc(var(--icon-size) + 8px)}.highlight{background:var(--status-highlight-background) -webkit-gradient(linear, left top, left bottom, from(var(--status-highlight-overlay)), to(var(--status-highlight-overlay)));background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{-webkit-box-shadow:var(--surface-shadow-sm);box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}*[data-toggle=collapse]:not(:disabled):hover{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--hover))), to(rgba(var(--interactive-rgb), var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-checkbox{--checkbox-padding:var(--spacing-scale-base);--checkbox-size:24px;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.br-checkbox+.br-checkbox{margin-top:var(--spacing-scale-base)}.br-checkbox input{margin:0;opacity:0;position:absolute}.br-checkbox input+label{cursor:pointer;display:inline-block;margin-bottom:0;min-height:var(--checkbox-size);min-width:var(--checkbox-size);padding-left:calc(var(--spacing-scale-base) + var(--checkbox-size));position:relative}.br-checkbox input+label::before{background:var(--background-light);border:1px solid var(--border-color);border-radius:4px;content:\"\";height:var(--checkbox-size);left:0;position:absolute;width:var(--checkbox-size)}.br-checkbox input+label:empty{padding:0}.br-checkbox label{font-weight:var(--font-weight-medium)}.br-checkbox.hidden-label label{padding-left:calc(var(--checkbox-size) + var(--surface-width-md)*2);text-indent:-10000px;white-space:nowrap;width:0}.br-checkbox input:checked+label::after,.br-checkbox input:indeterminate+label::after{border:solid var(--selected);border-width:0 3px 3px 0;content:\"\";height:var(--icon-size-sm);left:8px;position:absolute;top:4px;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:8px}.br-checkbox input[indeterminate]+label::before,.br-checkbox input:indeterminate+label::before{--interactive-rgb:var(--color-rgb);background:var(--selected);border-color:var(--selected)}.br-checkbox input[indeterminate]:hover:not(:disabled)+label::before,.br-checkbox input:indeterminate:hover:not(:disabled)+label::before{--interactive-rgb:var(--color-dark-rgb)}.br-checkbox input[indeterminate]:checked+label::after,.br-checkbox input[indeterminate]+label::after,.br-checkbox input:indeterminate:checked+label::after,.br-checkbox input:indeterminate+label::after{border-color:var(--background-light);border-width:0 0 3px;top:2px;-webkit-transform:none;transform:none}.br-checkbox.invalid input+label::before,.br-checkbox[invalid] input+label::before{--border-color:var(--danger)}.br-checkbox.invalid input:focus-visible:checked+label::before,.br-checkbox.invalid input:focus-visible+label::before,.br-checkbox[invalid] input:focus-visible:checked+label::before,.br-checkbox[invalid] input:focus-visible+label::before{--border-color:var(--focus-color)}.br-checkbox.invalid input:checked+label::before,.br-checkbox[invalid] input:checked+label::before{--border-color:var(--danger)}.br-checkbox.valid input+label::before,.br-checkbox[valid] input+label::before{--border-color:var(--success)}.br-checkbox.valid input:focus-visible:checked+label::before,.br-checkbox.valid input:focus-visible+label::before,.br-checkbox[valid] input:focus-visible:checked+label::before,.br-checkbox[valid] input:focus-visible+label::before{--border-color:var(--focus-color)}.br-checkbox.valid input:checked+label::before,.br-checkbox[valid] input:checked+label::before{--border-color:var(--success)}.br-checkbox.small input+label,.br-checkbox[small] input+label{line-height:var(--spacing-scale-2xh);min-height:var(--spacing-scale-2xh)}.br-checkbox.small input+label::before,.br-checkbox[small] input+label::before{height:var(--spacing-scale-2xh);width:var(--spacing-scale-2xh)}.br-checkbox.small input:checked+label::after,.br-checkbox[small] input:checked+label::after{border-width:0 2px 2px 0;height:var(--icon-size-sm);left:7px;top:4px;width:6px}.br-checkbox.small input[indeterminate]+label::after,.br-checkbox.small input:indeterminate+label::after,.br-checkbox[small] input[indeterminate]+label::after,.br-checkbox[small] input:indeterminate+label::after{border-color:var(--background-light);border-width:0 0 3px;left:7px;top:1px;-webkit-transform:none;transform:none;width:6px}.br-checkbox input:invalid+label::before{--border-color:var(--danger)}.br-checkbox input:focus-visible:checked+label::before,.br-checkbox input:focus-visible+label::before{border-color:var(--focus) !important;-webkit-box-shadow:0 0 0 var(--surface-width-md) var(--focus);box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}.br-checkbox input:hover:not(:disabled)+label::before{--interactive-rgb:var(--interactive-light-rgb);background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(var(--interactive-rgb), var(--hover))), to(rgba(var(--interactive-rgb), var(--hover))));background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-checkbox:not(.disabled) input:disabled+label{cursor:not-allowed;opacity:var(--disabled)}.br-checkbox:not(.disabled) input:disabled+label *{pointer-events:none}.br-checkbox.inverted,.br-checkbox.inverted label,.br-checkbox.dark-mode,.br-checkbox.dark-mode label{color:var(--color-dark)}:host{display:inline-block}:host .br-checkbox{--checkbox-padding:var(--spacing-scale-half);--checkbox-size:24px;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}:host .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0}";
|
|
4160
4128
|
|
|
4161
4129
|
/**
|
|
@@ -4261,30 +4229,24 @@ class Checkbox {
|
|
|
4261
4229
|
* Define o estado indeterminado do checkbox.
|
|
4262
4230
|
* @param value Novo valor para o estado indeterminado.
|
|
4263
4231
|
*/
|
|
4264
|
-
setIndeterminate(value) {
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
this.indeterminateChange.emit(this.indeterminate);
|
|
4269
|
-
});
|
|
4232
|
+
async setIndeterminate(value) {
|
|
4233
|
+
this.indeterminate = value;
|
|
4234
|
+
this.updateIndeterminate(value);
|
|
4235
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
4270
4236
|
}
|
|
4271
4237
|
/**
|
|
4272
4238
|
* Inverte o valor da prop `checked`
|
|
4273
4239
|
*/
|
|
4274
|
-
toggleChecked() {
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
this.checkedChange.emit(this.checked);
|
|
4278
|
-
});
|
|
4240
|
+
async toggleChecked() {
|
|
4241
|
+
this.checked = !this.checked;
|
|
4242
|
+
this.checkedChange.emit(this.checked);
|
|
4279
4243
|
}
|
|
4280
4244
|
/**
|
|
4281
4245
|
* Define o número de checkboxes filhos em um grupo de checkboxes.
|
|
4282
4246
|
* @param value Número de checkboxes filhos.
|
|
4283
4247
|
*/
|
|
4284
|
-
setNumberOfChildren(value) {
|
|
4285
|
-
|
|
4286
|
-
this.numberOfChildren = value;
|
|
4287
|
-
});
|
|
4248
|
+
async setNumberOfChildren(value) {
|
|
4249
|
+
this.numberOfChildren = value;
|
|
4288
4250
|
}
|
|
4289
4251
|
render() {
|
|
4290
4252
|
return (hAsync(Host, { key: '9b59d349f3bc58cf43e668035d8c9d4778e74cdc' }, hAsync("div", { key: '58cd8b77fc77dcad639a79e8284d521d2f0bd940', class: this.getCssClassMap() }, hAsync("input", { key: '155fa67ad05467008162c1fe1fd429afe8291a1d', 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), "aria-checked": this.getAriaCheckedValue(), "aria-describedby": this.numberOfChildren > 0 ? 'children-number' : null }), hAsync("label", { key: 'ca122a41698c6123d2726400f6e521f0053821d0', htmlFor: this.customId, class: this.hasHiddenLabel ? 'visually-hidden' : undefined }, this.slotDefault ? hAsync("slot", null) : this.label)), this.isFather ? (hAsync("span", { id: "children-number", class: "sr-only" }, "N\u00FAmero de op\u00E7\u00F5es: ", this.numberOfChildren)) : null));
|
|
@@ -4571,24 +4533,20 @@ class Collapse {
|
|
|
4571
4533
|
/**
|
|
4572
4534
|
* Abre o collapse programaticamente.
|
|
4573
4535
|
*/
|
|
4574
|
-
openCollapse() {
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
this.brDidOpen.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4581
|
-
});
|
|
4536
|
+
async openCollapse() {
|
|
4537
|
+
this.open = true;
|
|
4538
|
+
this.syncDetailsWithOpen();
|
|
4539
|
+
// Fecha outros do mesmo grupo antes de emitir evento
|
|
4540
|
+
this.closeOthersInGroup();
|
|
4541
|
+
this.brDidOpen.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4582
4542
|
}
|
|
4583
4543
|
/**
|
|
4584
4544
|
* Fecha o collapse programaticamente.
|
|
4585
4545
|
*/
|
|
4586
|
-
closeCollapse() {
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
this.brDidClose.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4591
|
-
});
|
|
4546
|
+
async closeCollapse() {
|
|
4547
|
+
this.open = false;
|
|
4548
|
+
this.syncDetailsWithOpen();
|
|
4549
|
+
this.brDidClose.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4592
4550
|
}
|
|
4593
4551
|
/**
|
|
4594
4552
|
* Fecha outros collapses abertos no mesmo accordion, buscando apenas no pai imediato.
|
|
@@ -27163,57 +27121,45 @@ class DatetimePicker {
|
|
|
27163
27121
|
/**
|
|
27164
27122
|
* Fecha o dropdown do calendário.
|
|
27165
27123
|
*/
|
|
27166
|
-
close() {
|
|
27167
|
-
|
|
27168
|
-
this.isOpen = false;
|
|
27169
|
-
});
|
|
27124
|
+
async close() {
|
|
27125
|
+
this.isOpen = false;
|
|
27170
27126
|
}
|
|
27171
27127
|
/**
|
|
27172
27128
|
* Retorna a data atualmente selecionada no datetime-picker.
|
|
27173
27129
|
*/
|
|
27174
|
-
getValue() {
|
|
27175
|
-
return
|
|
27176
|
-
return this.currentSelectedDate;
|
|
27177
|
-
});
|
|
27130
|
+
async getValue() {
|
|
27131
|
+
return this.currentSelectedDate;
|
|
27178
27132
|
}
|
|
27179
27133
|
/**
|
|
27180
27134
|
* Abre o dropdown do calendário.
|
|
27181
27135
|
*/
|
|
27182
|
-
open() {
|
|
27183
|
-
|
|
27184
|
-
this.isOpen = true;
|
|
27185
|
-
});
|
|
27136
|
+
async open() {
|
|
27137
|
+
this.isOpen = true;
|
|
27186
27138
|
}
|
|
27187
27139
|
/**
|
|
27188
27140
|
* Reseta o estado interno do componente para os valores iniciais.
|
|
27189
27141
|
*/
|
|
27190
|
-
reset() {
|
|
27191
|
-
|
|
27192
|
-
this.resetInternal();
|
|
27193
|
-
});
|
|
27142
|
+
async reset() {
|
|
27143
|
+
this.resetInternal();
|
|
27194
27144
|
}
|
|
27195
27145
|
/**
|
|
27196
27146
|
* Define a data selecionada no datetime-picker.
|
|
27197
27147
|
* @param value Data a ser definida ou null para resetar o valor
|
|
27198
27148
|
*/
|
|
27199
|
-
setValue(value) {
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
this.currentSelectedDate = date;
|
|
27208
|
-
});
|
|
27149
|
+
async setValue(value) {
|
|
27150
|
+
if (value === null) {
|
|
27151
|
+
this.resetInternal();
|
|
27152
|
+
return;
|
|
27153
|
+
}
|
|
27154
|
+
const date = new Date(value);
|
|
27155
|
+
this.currentBaseDate = date;
|
|
27156
|
+
this.currentSelectedDate = date;
|
|
27209
27157
|
}
|
|
27210
27158
|
/**
|
|
27211
27159
|
* Alterna o estado do dropdown do calendário entre aberto e fechado.
|
|
27212
27160
|
*/
|
|
27213
|
-
toggle() {
|
|
27214
|
-
|
|
27215
|
-
this.isOpen = !this.isOpen;
|
|
27216
|
-
});
|
|
27161
|
+
async toggle() {
|
|
27162
|
+
this.isOpen = !this.isOpen;
|
|
27217
27163
|
}
|
|
27218
27164
|
/**
|
|
27219
27165
|
* Manipulador de reset do formulário.
|
|
@@ -29780,18 +29726,16 @@ class FloatingUIManager {
|
|
|
29780
29726
|
* Além disso, define o atributo de dados `data-placement` no elemento de conteúdo para refletir a posição atual.
|
|
29781
29727
|
* @returns {Promise<void>} Uma promessa que resolve quando a posição é atualizada.
|
|
29782
29728
|
*/
|
|
29783
|
-
updatePosition() {
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
middleware: this.buildMiddleware(),
|
|
29789
|
-
});
|
|
29790
|
-
this.updateTooltipPosition(data);
|
|
29791
|
-
this.updateArrowPosition(data);
|
|
29792
|
-
this.setPlacementDataAttribute(data);
|
|
29793
|
-
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.call(this, data);
|
|
29729
|
+
async updatePosition() {
|
|
29730
|
+
var _a;
|
|
29731
|
+
const data = await computePosition(this.triggerElement, this.contentElement, {
|
|
29732
|
+
placement: this.placement,
|
|
29733
|
+
middleware: this.buildMiddleware(),
|
|
29794
29734
|
});
|
|
29735
|
+
this.updateTooltipPosition(data);
|
|
29736
|
+
this.updateArrowPosition(data);
|
|
29737
|
+
this.setPlacementDataAttribute(data);
|
|
29738
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.call(this, data);
|
|
29795
29739
|
}
|
|
29796
29740
|
/**
|
|
29797
29741
|
* Constrói os middlewares necessários para o Floating UI.
|
|
@@ -30250,22 +30194,18 @@ class Dropdown {
|
|
|
30250
30194
|
* Define a propriedade `isOpen` como verdadeira e retorna o novo estado.
|
|
30251
30195
|
* Este método pode ser chamado externamente.
|
|
30252
30196
|
*/
|
|
30253
|
-
open() {
|
|
30254
|
-
|
|
30255
|
-
|
|
30256
|
-
return { isOpen: this.isOpen };
|
|
30257
|
-
});
|
|
30197
|
+
async open() {
|
|
30198
|
+
this.isOpen = true;
|
|
30199
|
+
return { isOpen: this.isOpen };
|
|
30258
30200
|
}
|
|
30259
30201
|
/**
|
|
30260
30202
|
* Esconde o dropdown.
|
|
30261
30203
|
* Define a propriedade `isOpen` como falsa e retorna o novo estado.
|
|
30262
30204
|
* Este método pode ser chamado externamente.
|
|
30263
30205
|
*/
|
|
30264
|
-
hide() {
|
|
30265
|
-
|
|
30266
|
-
|
|
30267
|
-
return { isOpen: this.isOpen };
|
|
30268
|
-
});
|
|
30206
|
+
async hide() {
|
|
30207
|
+
this.isOpen = false;
|
|
30208
|
+
return { isOpen: this.isOpen };
|
|
30269
30209
|
}
|
|
30270
30210
|
/**
|
|
30271
30211
|
* Foca em um elemento específico com suporte a componentes personalizados
|
|
@@ -30321,15 +30261,13 @@ class Dropdown {
|
|
|
30321
30261
|
* Define o foco no elemento interno do componente.
|
|
30322
30262
|
* Este método pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.
|
|
30323
30263
|
*/
|
|
30324
|
-
setFocus() {
|
|
30325
|
-
|
|
30326
|
-
|
|
30327
|
-
|
|
30328
|
-
|
|
30329
|
-
|
|
30330
|
-
|
|
30331
|
-
}
|
|
30332
|
-
});
|
|
30264
|
+
async setFocus() {
|
|
30265
|
+
if (this.focusableElement !== null && this.focusableElement !== undefined) {
|
|
30266
|
+
this.focusableElement.focus();
|
|
30267
|
+
}
|
|
30268
|
+
else {
|
|
30269
|
+
this.focusOnTriggerElement();
|
|
30270
|
+
}
|
|
30333
30271
|
}
|
|
30334
30272
|
render() {
|
|
30335
30273
|
return (hAsync(Host, { key: 'ace8369063aaebea08e9dda7ceaee5df229a247e', "is-open": this.isOpen, placement: this.placement, "prevent-auto-dismiss": this.preventAutoDismiss }, hAsync("div", { key: '21f85062c8490852b88ef55c948d332678088137', class: this.getCssClassMap(), id: this.customId }, hAsync("div", { key: '58e55ee7fe8445682a08d117f412593640198c84', id: "trigger", onClick: this.toggle, "aria-controls": "target", "aria-haspopup": "true", "aria-expanded": this.isOpen ? 'true' : 'false' }, hAsync("slot", { key: '0f95c368ec27b2eb71eea1ef4a5fdaa0b9587af5', name: "trigger" })), hAsync("div", { key: '2eb72f2596b06376979e9b8ead83b1a07ad8ada8', id: "target", "aria-hidden": this.isOpen ? 'false' : 'true' }, hAsync("slot", { key: 'b231bb498abfa1d98572ae22385eabdfc20d0620', name: "target" })))));
|
|
@@ -31267,10 +31205,8 @@ class Header {
|
|
|
31267
31205
|
* Reinicializa o estado das listas do cabeçalho, disparando o evento de redimensionamento.
|
|
31268
31206
|
* Pode ser chamado externamente para forçar a atualização das listas.
|
|
31269
31207
|
*/
|
|
31270
|
-
resetHeaderList() {
|
|
31271
|
-
|
|
31272
|
-
this.handleListResize();
|
|
31273
|
-
});
|
|
31208
|
+
async resetHeaderList() {
|
|
31209
|
+
this.handleListResize();
|
|
31274
31210
|
}
|
|
31275
31211
|
/**
|
|
31276
31212
|
* Manipula as mudanças de breakpoint.
|
|
@@ -31886,27 +31822,21 @@ class HeaderList {
|
|
|
31886
31822
|
/**
|
|
31887
31823
|
* Fecha a lista.
|
|
31888
31824
|
*/
|
|
31889
|
-
closeList() {
|
|
31890
|
-
|
|
31891
|
-
this.showList = false;
|
|
31892
|
-
});
|
|
31825
|
+
async closeList() {
|
|
31826
|
+
this.showList = false;
|
|
31893
31827
|
}
|
|
31894
31828
|
/**
|
|
31895
31829
|
* Verifica se a lista está aberta.
|
|
31896
31830
|
* @returns Um booleano indicando se a lista está aberta.
|
|
31897
31831
|
*/
|
|
31898
|
-
isListOpen() {
|
|
31899
|
-
return
|
|
31900
|
-
return this.showList;
|
|
31901
|
-
});
|
|
31832
|
+
async isListOpen() {
|
|
31833
|
+
return this.showList;
|
|
31902
31834
|
}
|
|
31903
31835
|
/**
|
|
31904
31836
|
* Abre a lista.
|
|
31905
31837
|
*/
|
|
31906
|
-
openList() {
|
|
31907
|
-
|
|
31908
|
-
this.showList = true;
|
|
31909
|
-
});
|
|
31838
|
+
async openList() {
|
|
31839
|
+
this.showList = true;
|
|
31910
31840
|
}
|
|
31911
31841
|
/**
|
|
31912
31842
|
* Adiciona os listeners ao botão de disparo.
|
|
@@ -35142,11 +35072,9 @@ class Item {
|
|
|
35142
35072
|
* Define o foco no elemento interno do componente.
|
|
35143
35073
|
* Este método pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.
|
|
35144
35074
|
*/
|
|
35145
|
-
setFocus() {
|
|
35146
|
-
|
|
35147
|
-
|
|
35148
|
-
(_a = this.focusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35149
|
-
});
|
|
35075
|
+
async setFocus() {
|
|
35076
|
+
var _a;
|
|
35077
|
+
(_a = this.focusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35150
35078
|
}
|
|
35151
35079
|
render() {
|
|
35152
35080
|
const TagType = this.getTagType();
|
|
@@ -36921,22 +36849,20 @@ class Message {
|
|
|
36921
36849
|
}
|
|
36922
36850
|
};
|
|
36923
36851
|
}
|
|
36924
|
-
componentDidLoad() {
|
|
36925
|
-
|
|
36926
|
-
|
|
36927
|
-
|
|
36928
|
-
|
|
36929
|
-
|
|
36930
|
-
|
|
36931
|
-
|
|
36932
|
-
|
|
36933
|
-
button === null || button === void 0 ? void 0 : button.focus();
|
|
36934
|
-
}
|
|
36935
|
-
}
|
|
36936
|
-
if (this.isClosable && this.autoRemove) {
|
|
36937
|
-
this.el.addEventListener('keydown', this.handleKeyDown);
|
|
36852
|
+
async componentDidLoad() {
|
|
36853
|
+
var _a, _b;
|
|
36854
|
+
if (this.isClosable && !this.isFeedback) {
|
|
36855
|
+
this.previousFocus = document.activeElement;
|
|
36856
|
+
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
36857
|
+
const closeButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('br-button');
|
|
36858
|
+
if (closeButton != null) {
|
|
36859
|
+
const button = (_b = closeButton.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
|
|
36860
|
+
button === null || button === void 0 ? void 0 : button.focus();
|
|
36938
36861
|
}
|
|
36939
|
-
}
|
|
36862
|
+
}
|
|
36863
|
+
if (this.isClosable && this.autoRemove) {
|
|
36864
|
+
this.el.addEventListener('keydown', this.handleKeyDown);
|
|
36865
|
+
}
|
|
36940
36866
|
}
|
|
36941
36867
|
disconnectedCallback() {
|
|
36942
36868
|
if (this.isClosable && !this.autoRemove) {
|
|
@@ -37173,22 +37099,18 @@ class Modal {
|
|
|
37173
37099
|
/**
|
|
37174
37100
|
* Método público para abrir o modal
|
|
37175
37101
|
*/
|
|
37176
|
-
open() {
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
this.openParentScrim();
|
|
37180
|
-
});
|
|
37102
|
+
async open() {
|
|
37103
|
+
this.show = true;
|
|
37104
|
+
this.openParentScrim();
|
|
37181
37105
|
}
|
|
37182
37106
|
/**
|
|
37183
37107
|
* Método público para fechar o modal
|
|
37184
37108
|
*/
|
|
37185
|
-
close() {
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
|
|
37189
|
-
|
|
37190
|
-
this.show = false;
|
|
37191
|
-
});
|
|
37109
|
+
async close() {
|
|
37110
|
+
if (!this.autoClose) {
|
|
37111
|
+
return;
|
|
37112
|
+
}
|
|
37113
|
+
this.show = false;
|
|
37192
37114
|
}
|
|
37193
37115
|
render() {
|
|
37194
37116
|
if (!this.show) {
|
|
@@ -37791,19 +37713,15 @@ class Radio {
|
|
|
37791
37713
|
/**
|
|
37792
37714
|
* Inverte o valor da prop `checked`
|
|
37793
37715
|
*/
|
|
37794
|
-
toggleChecked() {
|
|
37795
|
-
|
|
37796
|
-
this.checked = !this.checked;
|
|
37797
|
-
});
|
|
37716
|
+
async toggleChecked() {
|
|
37717
|
+
this.checked = !this.checked;
|
|
37798
37718
|
}
|
|
37799
|
-
setFocus() {
|
|
37800
|
-
|
|
37801
|
-
|
|
37802
|
-
|
|
37803
|
-
|
|
37804
|
-
|
|
37805
|
-
}
|
|
37806
|
-
});
|
|
37719
|
+
async setFocus() {
|
|
37720
|
+
var _a;
|
|
37721
|
+
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('input');
|
|
37722
|
+
if (input) {
|
|
37723
|
+
input.focus();
|
|
37724
|
+
}
|
|
37807
37725
|
}
|
|
37808
37726
|
getCssClassMap() {
|
|
37809
37727
|
return {
|
|
@@ -38080,40 +37998,38 @@ class Scrim {
|
|
|
38080
37998
|
// ======================================================================
|
|
38081
37999
|
// LIFECYCLE HOOKS E WATCHERS
|
|
38082
38000
|
// ======================================================================
|
|
38083
|
-
handleOpenChange(newValue) {
|
|
38084
|
-
|
|
38085
|
-
|
|
38086
|
-
|
|
38087
|
-
|
|
38088
|
-
|
|
38089
|
-
|
|
38090
|
-
|
|
38091
|
-
|
|
38092
|
-
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38096
|
-
|
|
38097
|
-
|
|
38098
|
-
|
|
38099
|
-
|
|
38100
|
-
|
|
38101
|
-
|
|
38102
|
-
|
|
38103
|
-
|
|
38104
|
-
|
|
38105
|
-
this.
|
|
38106
|
-
|
|
38107
|
-
|
|
38108
|
-
|
|
38109
|
-
|
|
38110
|
-
|
|
38111
|
-
|
|
38112
|
-
|
|
38113
|
-
|
|
38114
|
-
|
|
38115
|
-
}
|
|
38116
|
-
});
|
|
38001
|
+
async handleOpenChange(newValue) {
|
|
38002
|
+
// Cancelar qualquer timeout anterior
|
|
38003
|
+
if (this.focusTimeoutId !== null) {
|
|
38004
|
+
clearTimeout(this.focusTimeoutId);
|
|
38005
|
+
this.focusTimeoutId = null;
|
|
38006
|
+
}
|
|
38007
|
+
if (this.restoreFocusTimeoutId !== null) {
|
|
38008
|
+
clearTimeout(this.restoreFocusTimeoutId);
|
|
38009
|
+
this.restoreFocusTimeoutId = null;
|
|
38010
|
+
}
|
|
38011
|
+
this.isActive = newValue;
|
|
38012
|
+
if (newValue && this.scrollStrategy === 'close') {
|
|
38013
|
+
const currentScroll = window.scrollY;
|
|
38014
|
+
this.lastScrollTop = currentScroll;
|
|
38015
|
+
this.scrollOrigin = currentScroll;
|
|
38016
|
+
}
|
|
38017
|
+
this.updateStyles();
|
|
38018
|
+
if (this.isActive) {
|
|
38019
|
+
this.previouslyFocusedElement = document.activeElement;
|
|
38020
|
+
this.applyScrollStrategy();
|
|
38021
|
+
this.addGlobalEventInterception();
|
|
38022
|
+
this.focusTimeoutId = setTimeout(() => {
|
|
38023
|
+
this.focusFirstElement();
|
|
38024
|
+
}, 100);
|
|
38025
|
+
this.brScrimOpen.emit();
|
|
38026
|
+
}
|
|
38027
|
+
else {
|
|
38028
|
+
this.resetScrolling();
|
|
38029
|
+
this.removeGlobalEventInterception();
|
|
38030
|
+
this.restoreFocus();
|
|
38031
|
+
this.brScrimClose.emit();
|
|
38032
|
+
}
|
|
38117
38033
|
}
|
|
38118
38034
|
updateStyles() {
|
|
38119
38035
|
if (this.zIndex !== null && this.zIndex !== undefined) {
|
|
@@ -38510,34 +38426,26 @@ class Scrim {
|
|
|
38510
38426
|
/**
|
|
38511
38427
|
* Define o limite de rolagem para o fechamento automático do scrim.
|
|
38512
38428
|
*/
|
|
38513
|
-
setScrollThreshold(threshold) {
|
|
38514
|
-
|
|
38515
|
-
this.scrollThreshold = threshold;
|
|
38516
|
-
});
|
|
38429
|
+
async setScrollThreshold(threshold) {
|
|
38430
|
+
this.scrollThreshold = threshold;
|
|
38517
38431
|
}
|
|
38518
38432
|
/**
|
|
38519
38433
|
* Método público para exibir o scrim
|
|
38520
38434
|
*/
|
|
38521
|
-
open() {
|
|
38522
|
-
|
|
38523
|
-
this.isOpen = true;
|
|
38524
|
-
});
|
|
38435
|
+
async open() {
|
|
38436
|
+
this.isOpen = true;
|
|
38525
38437
|
}
|
|
38526
38438
|
/**
|
|
38527
38439
|
* Método público para esconder o scrim
|
|
38528
38440
|
*/
|
|
38529
|
-
close() {
|
|
38530
|
-
|
|
38531
|
-
this.isOpen = false;
|
|
38532
|
-
});
|
|
38441
|
+
async close() {
|
|
38442
|
+
this.isOpen = false;
|
|
38533
38443
|
}
|
|
38534
38444
|
/**
|
|
38535
38445
|
* Método público para alternar o estado de exibição do scrim
|
|
38536
38446
|
*/
|
|
38537
|
-
toggle() {
|
|
38538
|
-
|
|
38539
|
-
this.isOpen = !this.isActive;
|
|
38540
|
-
});
|
|
38447
|
+
async toggle() {
|
|
38448
|
+
this.isOpen = !this.isActive;
|
|
38541
38449
|
}
|
|
38542
38450
|
render() {
|
|
38543
38451
|
return (hAsync(Host, { key: '249de7af4056263464615cbe086b419f74b8981b' }, hAsync("slot", { key: '1698faa6b492e1ec594eba8425f20582a2af0e4a', name: "activator" }), hAsync("div", { key: 'adedf3eb84f3d8f79ac9bb19209022301453c019', class: this.getCssClassMap(), id: this.customId, role: "dialog", "aria-modal": "true", "aria-label": this.ariaLabel || 'Conteúdo do diálogo', "data-visible": this.isActive ? 'true' : 'false' }, hAsync("div", { key: 'ef7408a6672fabf4d2f79bc7922f301fd102652e', class: "mask", onClick: this.handleMaskClick }), hAsync("div", { key: '91ffb1a84478f09fc90cefbb97180c5db13dba5c', ref: (el) => (this.contentRef = el), id: `${this.customId}-content`, class: "content", tabIndex: -1, onKeyDown: this.handleKeyDown }, hAsync("slot", { key: '0600ac804980446103154cebf83389ac92e44d9d' })))));
|
|
@@ -38654,6 +38562,11 @@ class Select {
|
|
|
38654
38562
|
* Útil para casos contextuais como paginação.
|
|
38655
38563
|
*/
|
|
38656
38564
|
this.isInline = false;
|
|
38565
|
+
/**
|
|
38566
|
+
* Desabilita a interação com o componente `br-select`.
|
|
38567
|
+
* Quando `true`, o input e as opções ficam desabilitados e não respondem a cliques ou teclas.
|
|
38568
|
+
*/
|
|
38569
|
+
this.disabled = false;
|
|
38657
38570
|
/**
|
|
38658
38571
|
* Propaga para o input interno a remoção da borda quando desfocado.
|
|
38659
38572
|
*/
|
|
@@ -38969,17 +38882,44 @@ class Select {
|
|
|
38969
38882
|
renderInput() {
|
|
38970
38883
|
// Se estiver focado, mostramos EXATAMENTE o que está sendo digitado (searchTerm), mesmo que seja vazio.
|
|
38971
38884
|
// Se não estiver focado, mostramos o termo de busca (se houver) ou o valor selecionado (inputValue).
|
|
38972
|
-
const displayValue = this.isFocused ? this.searchTerm :
|
|
38973
|
-
return (hAsync("br-input", { exportparts: "label", value: displayValue, label: this.label, isInline: this.isInline, controlWidth: this.inputWidth, borderless: this.borderless, placeholder: this.placeholder, actionLabel: this.isExpanded ? 'Recolher lista de opções' : 'Exibir lista de opções', actionTabIndex: -1, readonly: false,
|
|
38885
|
+
const displayValue = this.isFocused ? this.searchTerm : this.searchTerm || this.inputValue;
|
|
38886
|
+
return (hAsync("br-input", { exportparts: "label", value: displayValue, label: this.label, isInline: this.isInline, controlWidth: this.inputWidth, borderless: this.borderless, placeholder: this.placeholder, actionLabel: this.isExpanded ? 'Recolher lista de opções' : 'Exibir lista de opções', actionTabIndex: -1, readonly: false, disabled: this.disabled, onClick: () => {
|
|
38887
|
+
if (!this.disabled)
|
|
38888
|
+
this.toggleOpen();
|
|
38889
|
+
}, onInput: (event) => this.handleSearchInput(event), onFocus: () => this.handleSearchFocus(), onBlur: (event) => this.handleSearchBlur(event), onKeyDown: (event) => {
|
|
38890
|
+
if (!this.disabled)
|
|
38891
|
+
this.handleKeydownOnInput(event);
|
|
38892
|
+
} }, this.showSearchIcon && hAsync("br-icon", { slot: "icon", "icon-name": "fa-solid:search", "aria-hidden": "true" }), hAsync("br-icon", { slot: "action", "icon-name": this.isExpanded ? 'fa-solid:angle-up' : 'fa-solid:angle-down', height: "16", "aria-hidden": "true" })));
|
|
38974
38893
|
}
|
|
38975
38894
|
renderSelectAllCheckbox() {
|
|
38976
|
-
return (hAsync("div", { class: `br-item highlighted ${this.isAllSelected ? 'selected' : ''}`, "data-all": "data-all", tabindex: "-1", role: "option", "aria-selected": this.isAllSelected,
|
|
38895
|
+
return (hAsync("div", { class: `br-item highlighted ${this.isAllSelected ? 'selected' : ''} ${this.disabled ? 'disabled' : ''}`, "data-all": "data-all", tabindex: "-1", role: "option", "aria-selected": this.isAllSelected, "aria-disabled": this.disabled, onKeyDown: (event) => {
|
|
38896
|
+
if (!this.disabled)
|
|
38897
|
+
this.handleSelectAllKeyDown(event);
|
|
38898
|
+
}, onClick: () => {
|
|
38899
|
+
if (!this.disabled)
|
|
38900
|
+
this.toggleSelectAll();
|
|
38901
|
+
} }, hAsync("br-checkbox", { name: `checkbox-${this.customId}`, label: this.isAllSelected ? this.unselectAllLabel : this.selectAllLabel, checked: this.isAllSelected, indeterminate: this.isIndeterminate, disabled: this.disabled, onClick: (e) => e.stopPropagation(), onCheckedChange: () => {
|
|
38902
|
+
if (!this.disabled)
|
|
38903
|
+
this.toggleSelectAll();
|
|
38904
|
+
} })));
|
|
38977
38905
|
}
|
|
38978
38906
|
renderOptions() {
|
|
38979
38907
|
if (this.filteredOptions.length === 0) {
|
|
38980
38908
|
return (hAsync("div", { class: "br-item empty", role: "option", "aria-selected": "false", tabindex: -1 }, "Nenhum resultado encontrado"));
|
|
38981
38909
|
}
|
|
38982
|
-
return this.filteredOptions.map((option, index) => (hAsync("div", { class: `br-item ${option.selected ? 'selected' : ''}`, key: `${option.label}-${this.customId}`, role: "option", tabindex: this.focusedIndex === index ? 0 : -1, "aria-selected": option.selected, "
|
|
38910
|
+
return this.filteredOptions.map((option, index) => (hAsync("div", { class: `br-item ${option.selected ? 'selected' : ''} ${this.disabled ? 'disabled' : ''}`, key: `${option.label}-${this.customId}`, role: "option", tabindex: this.disabled ? -1 : this.focusedIndex === index ? 0 : -1, "aria-selected": option.selected, "aria-disabled": this.disabled, "data-value": option.value, onClick: () => {
|
|
38911
|
+
if (!this.disabled)
|
|
38912
|
+
this.handleSelectionByValue(option.value);
|
|
38913
|
+
}, onKeyDown: (event) => {
|
|
38914
|
+
if (!this.disabled)
|
|
38915
|
+
this.handleKeydownOnItem(event, index);
|
|
38916
|
+
}, onMouseOver: () => this.emitHoverFromOption(option), onPointerOver: () => this.emitHoverFromOption(option), onFocus: () => this.emitHoverFromOption(option) }, this.isMultiple ? (hAsync("br-checkbox", { name: `checkbox-${index}-${this.customId}`, label: option.label || option.value, checked: option.selected === true, disabled: this.disabled, onClick: (e) => e.stopPropagation(), onCheckedChange: () => {
|
|
38917
|
+
if (!this.disabled)
|
|
38918
|
+
this.handleSelectionByValue(option.value);
|
|
38919
|
+
} })) : (hAsync("br-radio", { exportparts: "radio-input, radio-label", name: `radio-${index}-${this.customId}`, label: option.label || option.value, checked: option.selected === true, disabled: this.disabled, onClick: (e) => e.stopPropagation(), onCheckedChange: () => {
|
|
38920
|
+
if (!this.disabled)
|
|
38921
|
+
this.handleSelectionByValue(option.value);
|
|
38922
|
+
} })))));
|
|
38983
38923
|
}
|
|
38984
38924
|
/**
|
|
38985
38925
|
* Determina um id para o radio.
|
|
@@ -38991,50 +38931,42 @@ class Select {
|
|
|
38991
38931
|
/**
|
|
38992
38932
|
* Inverte o valor da prop `isOpen`
|
|
38993
38933
|
*/
|
|
38994
|
-
toggleOpen() {
|
|
38995
|
-
|
|
38996
|
-
this.isExpanded = !this.isExpanded;
|
|
38997
|
-
});
|
|
38934
|
+
async toggleOpen() {
|
|
38935
|
+
this.isExpanded = !this.isExpanded;
|
|
38998
38936
|
}
|
|
38999
38937
|
/**
|
|
39000
38938
|
* Limpa todas as opções selecionadas.
|
|
39001
38939
|
*/
|
|
39002
|
-
clear() {
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
|
|
39010
|
-
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
|
|
39016
|
-
|
|
39017
|
-
}
|
|
39018
|
-
});
|
|
38940
|
+
async clear() {
|
|
38941
|
+
const updatedOptions = this.parsedOptions.map((option) => (Object.assign(Object.assign({}, option), { selected: false })));
|
|
38942
|
+
this.parsedOptions = updatedOptions;
|
|
38943
|
+
const newValue = this.isMultiple ? [] : undefined;
|
|
38944
|
+
this.selectedValue = newValue;
|
|
38945
|
+
this.value = newValue;
|
|
38946
|
+
this.updateSelectedOptions();
|
|
38947
|
+
this.updateSelectedAllState();
|
|
38948
|
+
this.valueChange.emit(newValue);
|
|
38949
|
+
try {
|
|
38950
|
+
this.elementInternals.setFormValue(JSON.stringify(newValue !== null && newValue !== void 0 ? newValue : (this.isMultiple ? [] : null)));
|
|
38951
|
+
}
|
|
38952
|
+
catch (_a) {
|
|
38953
|
+
// Ignora erro em testes onde setFormValue não é implementado
|
|
38954
|
+
}
|
|
39019
38955
|
}
|
|
39020
38956
|
/**
|
|
39021
38957
|
* Retorna o valor selecionado.
|
|
39022
38958
|
* @returns {Promise<string | string[]>} O valor atual.
|
|
39023
38959
|
*/
|
|
39024
|
-
getValue() {
|
|
39025
|
-
return
|
|
39026
|
-
return this.value;
|
|
39027
|
-
});
|
|
38960
|
+
async getValue() {
|
|
38961
|
+
return this.value;
|
|
39028
38962
|
}
|
|
39029
38963
|
/**
|
|
39030
38964
|
* Define o valor do componente.
|
|
39031
38965
|
* @param {string | string[]} newValue O novo valor a ser definido.
|
|
39032
38966
|
*/
|
|
39033
|
-
setValue(newValue) {
|
|
39034
|
-
|
|
39035
|
-
|
|
39036
|
-
// O @Watch('value') cuidará da sincronização
|
|
39037
|
-
});
|
|
38967
|
+
async setValue(newValue) {
|
|
38968
|
+
this.value = newValue;
|
|
38969
|
+
// O @Watch('value') cuidará da sincronização
|
|
39038
38970
|
}
|
|
39039
38971
|
getCssClassMap() {
|
|
39040
38972
|
return {
|
|
@@ -39066,7 +38998,7 @@ class Select {
|
|
|
39066
38998
|
this.filteredOptions = this.getFilteredOptions('');
|
|
39067
38999
|
}
|
|
39068
39000
|
render() {
|
|
39069
|
-
return (hAsync("div", { key: '
|
|
39001
|
+
return (hAsync("div", { key: '94bc55d4369cb86db9253fef83ab491f90998dd5', class: this.getCssClassMap(), id: this.getComputedId(), "aria-disabled": this.disabled }, this.renderInput(), this.isExpanded && (hAsync("br-list", { key: 'fb5d789013c6a1c7e858161c1a370b746f4c9e1e', tabindex: -1, onKeyDown: (event) => this.handleKeydownOnList(event), style: this.inputWidth !== undefined ? { width: this.inputWidth } : undefined }, this.isMultiple && this.renderSelectAllCheckbox(), this.renderOptions()))));
|
|
39070
39002
|
}
|
|
39071
39003
|
static get formAssociated() { return true; }
|
|
39072
39004
|
get el() { return getElement(this); }
|
|
@@ -39090,6 +39022,7 @@ class Select {
|
|
|
39090
39022
|
"isOpen": [516, "is-open"],
|
|
39091
39023
|
"isInline": [516, "is-inline"],
|
|
39092
39024
|
"inputWidth": [513, "input-width"],
|
|
39025
|
+
"disabled": [516],
|
|
39093
39026
|
"borderless": [516],
|
|
39094
39027
|
"customId": [513, "custom-id"],
|
|
39095
39028
|
"value": [1025],
|
|
@@ -39110,7 +39043,7 @@ class Select {
|
|
|
39110
39043
|
},
|
|
39111
39044
|
"$listeners$": undefined,
|
|
39112
39045
|
"$lazyBundleId$": "-",
|
|
39113
|
-
"$attrsToReflect$": [["label", "label"], ["placeholder", "placeholder"], ["isMultiple", "is-multiple"], ["options", "options"], ["selectAllLabel", "select-all-label"], ["unselectAllLabel", "unselect-all-label"], ["showSearchIcon", "show-search-icon"], ["isOpen", "is-open"], ["isInline", "is-inline"], ["inputWidth", "input-width"], ["borderless", "borderless"], ["customId", "custom-id"]]
|
|
39046
|
+
"$attrsToReflect$": [["label", "label"], ["placeholder", "placeholder"], ["isMultiple", "is-multiple"], ["options", "options"], ["selectAllLabel", "select-all-label"], ["unselectAllLabel", "unselect-all-label"], ["showSearchIcon", "show-search-icon"], ["isOpen", "is-open"], ["isInline", "is-inline"], ["inputWidth", "input-width"], ["disabled", "disabled"], ["borderless", "borderless"], ["customId", "custom-id"]]
|
|
39114
39047
|
}; }
|
|
39115
39048
|
}
|
|
39116
39049
|
let selectId = 0;
|
|
@@ -39498,40 +39431,36 @@ class SkipLink {
|
|
|
39498
39431
|
/**
|
|
39499
39432
|
* Oculta o componente programaticamente.
|
|
39500
39433
|
*/
|
|
39501
|
-
hide() {
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39506
|
-
|
|
39507
|
-
|
|
39508
|
-
|
|
39509
|
-
return Promise.resolve();
|
|
39510
|
-
});
|
|
39434
|
+
async hide() {
|
|
39435
|
+
const focusedElement = this.el.querySelector(':focus');
|
|
39436
|
+
if (focusedElement instanceof HTMLElement) {
|
|
39437
|
+
focusedElement.blur();
|
|
39438
|
+
}
|
|
39439
|
+
this.isVisible = false;
|
|
39440
|
+
this.brDidHide.emit();
|
|
39441
|
+
return Promise.resolve();
|
|
39511
39442
|
}
|
|
39512
39443
|
/**
|
|
39513
39444
|
* Exibe o componente programaticamente.
|
|
39514
39445
|
*/
|
|
39515
|
-
show() {
|
|
39516
|
-
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
|
|
39520
|
-
|
|
39521
|
-
if (firstItem
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
|
|
39527
|
-
|
|
39528
|
-
focusableElement.focus();
|
|
39529
|
-
}
|
|
39446
|
+
async show() {
|
|
39447
|
+
var _a;
|
|
39448
|
+
this.isVisible = true;
|
|
39449
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
39450
|
+
const firstItem = this.el.querySelector('br-skiplink-item');
|
|
39451
|
+
if (firstItem !== null) {
|
|
39452
|
+
if (typeof firstItem.itemFocus === 'function') {
|
|
39453
|
+
await firstItem.itemFocus();
|
|
39454
|
+
}
|
|
39455
|
+
else {
|
|
39456
|
+
const focusableElement = (_a = firstItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('a, button');
|
|
39457
|
+
if (focusableElement !== null) {
|
|
39458
|
+
focusableElement.focus();
|
|
39530
39459
|
}
|
|
39531
39460
|
}
|
|
39532
|
-
|
|
39533
|
-
|
|
39534
|
-
|
|
39461
|
+
}
|
|
39462
|
+
this.brDidShow.emit();
|
|
39463
|
+
return Promise.resolve();
|
|
39535
39464
|
}
|
|
39536
39465
|
getEffectivePosition() {
|
|
39537
39466
|
if (this.isSmallScreen) {
|
|
@@ -39633,51 +39562,47 @@ class SkipLinkItem {
|
|
|
39633
39562
|
/**
|
|
39634
39563
|
* Move o foco para este item.
|
|
39635
39564
|
*/
|
|
39636
|
-
itemFocus() {
|
|
39637
|
-
|
|
39638
|
-
|
|
39639
|
-
|
|
39640
|
-
|
|
39641
|
-
|
|
39642
|
-
|
|
39643
|
-
|
|
39644
|
-
|
|
39645
|
-
|
|
39646
|
-
|
|
39647
|
-
|
|
39648
|
-
return;
|
|
39649
|
-
}
|
|
39565
|
+
async itemFocus() {
|
|
39566
|
+
var _a;
|
|
39567
|
+
const brItemElement = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('br-item');
|
|
39568
|
+
if (brItemElement !== null) {
|
|
39569
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
39570
|
+
const brItemShadowRoot = brItemElement.shadowRoot;
|
|
39571
|
+
if (brItemShadowRoot !== null) {
|
|
39572
|
+
const focusableElement = brItemShadowRoot.querySelector('a, button');
|
|
39573
|
+
if (focusableElement !== null) {
|
|
39574
|
+
focusableElement.focus();
|
|
39575
|
+
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39576
|
+
return;
|
|
39650
39577
|
}
|
|
39651
|
-
brItemElement.focus();
|
|
39652
|
-
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39653
39578
|
}
|
|
39654
|
-
|
|
39579
|
+
brItemElement.focus();
|
|
39580
|
+
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39581
|
+
}
|
|
39655
39582
|
}
|
|
39656
39583
|
/**
|
|
39657
39584
|
* Navega para o target definido.
|
|
39658
39585
|
* Move o foco para o elemento alvo e ajusta a rolagem da página se necessário.
|
|
39659
39586
|
*/
|
|
39660
|
-
navigateToTarget() {
|
|
39661
|
-
|
|
39662
|
-
|
|
39663
|
-
|
|
39664
|
-
|
|
39665
|
-
|
|
39666
|
-
|
|
39667
|
-
|
|
39668
|
-
this.
|
|
39669
|
-
|
|
39670
|
-
|
|
39671
|
-
});
|
|
39672
|
-
}
|
|
39673
|
-
else {
|
|
39674
|
-
console.warn(`Skip Link: Target element "${this.target}" not found`);
|
|
39675
|
-
}
|
|
39587
|
+
async navigateToTarget() {
|
|
39588
|
+
try {
|
|
39589
|
+
const targetElement = document.querySelector(this.target);
|
|
39590
|
+
if (targetElement !== null) {
|
|
39591
|
+
targetElement.setAttribute('tabindex', '-1');
|
|
39592
|
+
targetElement.focus();
|
|
39593
|
+
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
39594
|
+
this.brSkiplinkItemClick.emit({
|
|
39595
|
+
itemId: this.customId,
|
|
39596
|
+
target: this.target,
|
|
39597
|
+
});
|
|
39676
39598
|
}
|
|
39677
|
-
|
|
39678
|
-
console.
|
|
39599
|
+
else {
|
|
39600
|
+
console.warn(`Skip Link: Target element "${this.target}" not found`);
|
|
39679
39601
|
}
|
|
39680
|
-
}
|
|
39602
|
+
}
|
|
39603
|
+
catch (error) {
|
|
39604
|
+
console.error('Skip Link: Error navigating to target', error);
|
|
39605
|
+
}
|
|
39681
39606
|
}
|
|
39682
39607
|
/**
|
|
39683
39608
|
* Listener para cliques no item.
|
|
@@ -39952,14 +39877,12 @@ class Step {
|
|
|
39952
39877
|
elements.setContent(indicatorContent.toString());
|
|
39953
39878
|
});
|
|
39954
39879
|
}
|
|
39955
|
-
setStepItemsContentType() {
|
|
39956
|
-
|
|
39957
|
-
|
|
39958
|
-
|
|
39959
|
-
|
|
39960
|
-
|
|
39961
|
-
elements.setAttribute('aria-setsize', `${slotItems.length}`);
|
|
39962
|
-
});
|
|
39880
|
+
async setStepItemsContentType() {
|
|
39881
|
+
const slotItems = Array.from(this.el.getElementsByTagName('br-step-item'));
|
|
39882
|
+
await Promise.all(slotItems.map((element) => element.setContentType(this.contentType)));
|
|
39883
|
+
slotItems.forEach((elements, index) => {
|
|
39884
|
+
elements.setAttribute('aria-posinset', `${index + 1}`);
|
|
39885
|
+
elements.setAttribute('aria-setsize', `${slotItems.length}`);
|
|
39963
39886
|
});
|
|
39964
39887
|
}
|
|
39965
39888
|
setStepItemsMode(mode) {
|
|
@@ -40005,44 +39928,36 @@ class Step {
|
|
|
40005
39928
|
*
|
|
40006
39929
|
* Método disponibilizado via API do elemento que controla o componente Step, responsável por avançar para o próximo passo e atualizar o valor do estado activeStep
|
|
40007
39930
|
*/
|
|
40008
|
-
ProceedToNextStep() {
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
|
|
40012
|
-
|
|
40013
|
-
this.stepItems[this.activeStep].removeAttribute('disabled');
|
|
40014
|
-
}
|
|
39931
|
+
async ProceedToNextStep() {
|
|
39932
|
+
if (this.activeStep + 1 < this.stepItems.length) {
|
|
39933
|
+
this.activeStep = this.activeStep + 1;
|
|
39934
|
+
if (this.progressionType === 'linear') {
|
|
39935
|
+
this.stepItems[this.activeStep].removeAttribute('disabled');
|
|
40015
39936
|
}
|
|
40016
|
-
}
|
|
39937
|
+
}
|
|
40017
39938
|
}
|
|
40018
39939
|
/**
|
|
40019
39940
|
*
|
|
40020
39941
|
* Método disponibilizado via API do elemento que controla o componente Step, responsável por retornar ao passo anterior e atualizar o valor do estado activeStep
|
|
40021
39942
|
*/
|
|
40022
|
-
BackToPreviousStep() {
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
}
|
|
40027
|
-
});
|
|
39943
|
+
async BackToPreviousStep() {
|
|
39944
|
+
if (this.activeStep - 1 >= 0) {
|
|
39945
|
+
this.activeStep = this.activeStep - 1;
|
|
39946
|
+
}
|
|
40028
39947
|
}
|
|
40029
39948
|
/**
|
|
40030
39949
|
*
|
|
40031
39950
|
* Método disponibilizado via API do elemento que integra um componente externo ao componente Step, permitindo sinalizar validações ou destacar a etapa com estado ativo.
|
|
40032
39951
|
*/
|
|
40033
|
-
StepValidation(validationStatus) {
|
|
40034
|
-
|
|
40035
|
-
this.stepItems[this.activeStep].setAttribute('highlight', validationStatus);
|
|
40036
|
-
});
|
|
39952
|
+
async StepValidation(validationStatus) {
|
|
39953
|
+
this.stepItems[this.activeStep].setAttribute('highlight', validationStatus);
|
|
40037
39954
|
}
|
|
40038
39955
|
/**
|
|
40039
39956
|
*
|
|
40040
39957
|
* Método disponibilizado via API do elemento que permite a um componente externo obter a etapa com o estado ativo do componente Step.
|
|
40041
39958
|
*/
|
|
40042
|
-
GetActiveStep() {
|
|
40043
|
-
return
|
|
40044
|
-
return this.activeStep;
|
|
40045
|
-
});
|
|
39959
|
+
async GetActiveStep() {
|
|
39960
|
+
return this.activeStep;
|
|
40046
39961
|
}
|
|
40047
39962
|
getCssClassMap() {
|
|
40048
39963
|
return {
|
|
@@ -40216,55 +40131,43 @@ class StepItem {
|
|
|
40216
40131
|
*
|
|
40217
40132
|
* Método disponibilizado via api do elemento que indica a posição do step item, ele serve para setar o state stepItemPositionStatus do componente
|
|
40218
40133
|
*/
|
|
40219
|
-
setStepItemPositionStatus(value) {
|
|
40220
|
-
|
|
40221
|
-
this.stepItemPositionStatus = value;
|
|
40222
|
-
});
|
|
40134
|
+
async setStepItemPositionStatus(value) {
|
|
40135
|
+
this.stepItemPositionStatus = value;
|
|
40223
40136
|
}
|
|
40224
40137
|
/**
|
|
40225
40138
|
* Método que define a orientação do stepItem e controla a exibição da linha do tempo após o componente.
|
|
40226
40139
|
*/
|
|
40227
|
-
handleShowTimeLine(value, layout) {
|
|
40228
|
-
|
|
40229
|
-
|
|
40230
|
-
this.stepLayout = layout;
|
|
40231
|
-
});
|
|
40140
|
+
async handleShowTimeLine(value, layout) {
|
|
40141
|
+
this.showTimeLine = value;
|
|
40142
|
+
this.stepLayout = layout;
|
|
40232
40143
|
}
|
|
40233
40144
|
/**
|
|
40234
40145
|
*
|
|
40235
40146
|
* Método disponibilizado via api do elemento que atribui o valor ao estado que define onde o label, o texto de destaque, irá ficar localizado
|
|
40236
40147
|
*/
|
|
40237
|
-
setLabelPosition(value) {
|
|
40238
|
-
|
|
40239
|
-
this.labelPosition = value;
|
|
40240
|
-
});
|
|
40148
|
+
async setLabelPosition(value) {
|
|
40149
|
+
this.labelPosition = value;
|
|
40241
40150
|
}
|
|
40242
40151
|
/**
|
|
40243
40152
|
*
|
|
40244
40153
|
* Método disponibilizado via api do elemento que atribui o valor que irá definir o tipo de conteúdo apresentado dentro do componente stepItem
|
|
40245
40154
|
*/
|
|
40246
|
-
setContentType(value) {
|
|
40247
|
-
|
|
40248
|
-
this.contentType = value;
|
|
40249
|
-
});
|
|
40155
|
+
async setContentType(value) {
|
|
40156
|
+
this.contentType = value;
|
|
40250
40157
|
}
|
|
40251
40158
|
/**
|
|
40252
40159
|
*
|
|
40253
40160
|
* Método disponibilizado via api do elemento que atribui o valor que irá definir o modo como o componente irá se comportar e exibir seu estilo.
|
|
40254
40161
|
*/
|
|
40255
|
-
setMode(value) {
|
|
40256
|
-
|
|
40257
|
-
this.mode = value;
|
|
40258
|
-
});
|
|
40162
|
+
async setMode(value) {
|
|
40163
|
+
this.mode = value;
|
|
40259
40164
|
}
|
|
40260
40165
|
/**
|
|
40261
40166
|
*
|
|
40262
40167
|
* Método disponibilizado via api do elemento que atribui o valor que irá ser exibido dentro do componente stepItem
|
|
40263
40168
|
*/
|
|
40264
|
-
setContent(value) {
|
|
40265
|
-
|
|
40266
|
-
this.content = value;
|
|
40267
|
-
});
|
|
40169
|
+
async setContent(value) {
|
|
40170
|
+
this.content = value;
|
|
40268
40171
|
}
|
|
40269
40172
|
getStepContainerClassMap() {
|
|
40270
40173
|
return {
|
|
@@ -40447,11 +40350,9 @@ class Switch {
|
|
|
40447
40350
|
/**
|
|
40448
40351
|
* Inverte o valor da prop `checked`
|
|
40449
40352
|
*/
|
|
40450
|
-
toggleChecked() {
|
|
40451
|
-
|
|
40452
|
-
|
|
40453
|
-
this.checkedChange.emit(this.checked);
|
|
40454
|
-
});
|
|
40353
|
+
async toggleChecked() {
|
|
40354
|
+
this.checked = !this.checked;
|
|
40355
|
+
this.checkedChange.emit(this.checked);
|
|
40455
40356
|
}
|
|
40456
40357
|
/**
|
|
40457
40358
|
* Verifica se o componente tem texto visível (via slot ou label)
|
|
@@ -41579,13 +41480,11 @@ class Textarea {
|
|
|
41579
41480
|
* Define um novo valor para o textarea.
|
|
41580
41481
|
* @param newValue - O novo valor a ser definido.
|
|
41581
41482
|
*/
|
|
41582
|
-
setValue(newValue) {
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
|
|
41586
|
-
|
|
41587
|
-
this.valueChange.emit(this.value);
|
|
41588
|
-
});
|
|
41483
|
+
async setValue(newValue) {
|
|
41484
|
+
var _a;
|
|
41485
|
+
this.value = newValue;
|
|
41486
|
+
this.currentLength = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
41487
|
+
this.valueChange.emit(this.value);
|
|
41589
41488
|
}
|
|
41590
41489
|
/**
|
|
41591
41490
|
* Retorna os ids para o atributo aria-describedby do textarea
|
|
@@ -42750,7 +42649,7 @@ class Wizard {
|
|
|
42750
42649
|
* Se for a última etapa, valida e emite evento de conclusão.
|
|
42751
42650
|
* Caso contrário, avança para a próxima etapa.
|
|
42752
42651
|
*/
|
|
42753
|
-
this.handleNext = () =>
|
|
42652
|
+
this.handleNext = async () => {
|
|
42754
42653
|
if (this.currentStep === this.panels.length) {
|
|
42755
42654
|
// Última etapa: validar antes de completar
|
|
42756
42655
|
const eventResult = this.brWizardBeforeStepChange.emit(this.currentStep);
|
|
@@ -42760,16 +42659,16 @@ class Wizard {
|
|
|
42760
42659
|
}
|
|
42761
42660
|
}
|
|
42762
42661
|
else {
|
|
42763
|
-
|
|
42662
|
+
await this.nextStep();
|
|
42764
42663
|
}
|
|
42765
|
-
}
|
|
42664
|
+
};
|
|
42766
42665
|
/**
|
|
42767
42666
|
* Handler do botão "Voltar".
|
|
42768
42667
|
* Navega para a etapa anterior.
|
|
42769
42668
|
*/
|
|
42770
|
-
this.handlePrevious = () =>
|
|
42771
|
-
|
|
42772
|
-
}
|
|
42669
|
+
this.handlePrevious = async () => {
|
|
42670
|
+
await this.previousStep();
|
|
42671
|
+
};
|
|
42773
42672
|
/**
|
|
42774
42673
|
* Handler do botão "Cancelar".
|
|
42775
42674
|
* Emite evento de cancelamento do wizard.
|
|
@@ -42792,12 +42691,10 @@ class Wizard {
|
|
|
42792
42691
|
* Observa mudanças na etapa inicial.
|
|
42793
42692
|
* Reinicializa o wizard quando a prop initialStep é alterada externamente.
|
|
42794
42693
|
*/
|
|
42795
|
-
handleInitialStepChange() {
|
|
42796
|
-
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
this.updatePanels();
|
|
42800
|
-
});
|
|
42694
|
+
async handleInitialStepChange() {
|
|
42695
|
+
this.setInitialStep();
|
|
42696
|
+
await this.syncWithBrStep();
|
|
42697
|
+
this.updatePanels();
|
|
42801
42698
|
}
|
|
42802
42699
|
/**
|
|
42803
42700
|
* Observa mudanças na etapa atual (fonte única de verdade).
|
|
@@ -42805,15 +42702,13 @@ class Wizard {
|
|
|
42805
42702
|
* @param newStep - Nova etapa
|
|
42806
42703
|
* @param oldStep - Etapa anterior
|
|
42807
42704
|
*/
|
|
42808
|
-
handleCurrentStepChange(newStep, oldStep) {
|
|
42809
|
-
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
|
|
42814
|
-
|
|
42815
|
-
}
|
|
42816
|
-
});
|
|
42705
|
+
async handleCurrentStepChange(newStep, oldStep) {
|
|
42706
|
+
if (newStep !== oldStep) {
|
|
42707
|
+
await this.syncWithBrStep();
|
|
42708
|
+
this.updatePanels();
|
|
42709
|
+
this.announceStepChange(newStep, oldStep);
|
|
42710
|
+
this.setFocusOnActivePanel();
|
|
42711
|
+
}
|
|
42817
42712
|
}
|
|
42818
42713
|
// ========================================
|
|
42819
42714
|
// LISTENERS
|
|
@@ -42823,31 +42718,27 @@ class Wizard {
|
|
|
42823
42718
|
* Redescobre os painéis e ressincroniza o estado.
|
|
42824
42719
|
* @param event - Evento slotchange
|
|
42825
42720
|
*/
|
|
42826
|
-
handleSlotChange(event) {
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
|
|
42830
|
-
|
|
42831
|
-
this.updatePanels();
|
|
42832
|
-
});
|
|
42721
|
+
async handleSlotChange(event) {
|
|
42722
|
+
const slot = event.target;
|
|
42723
|
+
this.discoverPanelsFromSlot(slot);
|
|
42724
|
+
await this.syncWithBrStep();
|
|
42725
|
+
this.updatePanels();
|
|
42833
42726
|
}
|
|
42834
42727
|
/**
|
|
42835
42728
|
* Detecta quando o br-step muda de etapa ativa.
|
|
42836
42729
|
* Valida e sincroniza a navegação com o componente interno br-step.
|
|
42837
42730
|
* @param event - Evento customizado do br-step
|
|
42838
42731
|
*/
|
|
42839
|
-
handleStepChange(event) {
|
|
42840
|
-
|
|
42841
|
-
|
|
42842
|
-
|
|
42843
|
-
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
|
|
42847
|
-
|
|
42848
|
-
|
|
42849
|
-
}
|
|
42850
|
-
});
|
|
42732
|
+
async handleStepChange(event) {
|
|
42733
|
+
if (this.isSyncingWithStep) {
|
|
42734
|
+
return;
|
|
42735
|
+
}
|
|
42736
|
+
const requestedStep = event.detail.activeStep + 1;
|
|
42737
|
+
const success = await this.navigateToStep(requestedStep);
|
|
42738
|
+
if (!success) {
|
|
42739
|
+
event.stopPropagation();
|
|
42740
|
+
await this.syncWithBrStep();
|
|
42741
|
+
}
|
|
42851
42742
|
}
|
|
42852
42743
|
// ========================================
|
|
42853
42744
|
// LIFECYCLE HOOKS
|
|
@@ -42863,24 +42754,22 @@ class Wizard {
|
|
|
42863
42754
|
* Lifecycle: carrega painéis e configura estado inicial.
|
|
42864
42755
|
* Sincroniza com br-step, atualiza painéis e configura detecção mobile.
|
|
42865
42756
|
*/
|
|
42866
|
-
componentDidLoad() {
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
this.panels = slotPanels;
|
|
42875
|
-
}
|
|
42876
|
-
}
|
|
42877
|
-
yield this.syncWithBrStep();
|
|
42878
|
-
this.updatePanels();
|
|
42879
|
-
this.setupMobileDetection();
|
|
42880
|
-
if (this.isMobile) {
|
|
42881
|
-
this.collapsed = true;
|
|
42757
|
+
async componentDidLoad() {
|
|
42758
|
+
var _a;
|
|
42759
|
+
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
42760
|
+
if (slot !== null && typeof slot !== 'undefined') {
|
|
42761
|
+
const assignedElements = slot.assignedElements();
|
|
42762
|
+
const slotPanels = assignedElements.filter((el) => el.tagName.toLowerCase() === 'br-wizard-panel');
|
|
42763
|
+
if (slotPanels.length !== this.panels.length) {
|
|
42764
|
+
this.panels = slotPanels;
|
|
42882
42765
|
}
|
|
42883
|
-
}
|
|
42766
|
+
}
|
|
42767
|
+
await this.syncWithBrStep();
|
|
42768
|
+
this.updatePanels();
|
|
42769
|
+
this.setupMobileDetection();
|
|
42770
|
+
if (this.isMobile) {
|
|
42771
|
+
this.collapsed = true;
|
|
42772
|
+
}
|
|
42884
42773
|
}
|
|
42885
42774
|
/**
|
|
42886
42775
|
* Lifecycle: limpa listeners quando componente é removido.
|
|
@@ -42898,20 +42787,16 @@ class Wizard {
|
|
|
42898
42787
|
* Executa validação via evento `brWizardBeforeStepChange` antes de navegar.
|
|
42899
42788
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42900
42789
|
*/
|
|
42901
|
-
nextStep() {
|
|
42902
|
-
return
|
|
42903
|
-
return yield this.navigateToStep(this.currentStep + 1);
|
|
42904
|
-
});
|
|
42790
|
+
async nextStep() {
|
|
42791
|
+
return await this.navigateToStep(this.currentStep + 1);
|
|
42905
42792
|
}
|
|
42906
42793
|
/**
|
|
42907
42794
|
* Volta para a etapa anterior.
|
|
42908
42795
|
* Não executa validação ao retornar.
|
|
42909
42796
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42910
42797
|
*/
|
|
42911
|
-
previousStep() {
|
|
42912
|
-
return
|
|
42913
|
-
return yield this.navigateToStep(this.currentStep - 1);
|
|
42914
|
-
});
|
|
42798
|
+
async previousStep() {
|
|
42799
|
+
return await this.navigateToStep(this.currentStep - 1);
|
|
42915
42800
|
}
|
|
42916
42801
|
/**
|
|
42917
42802
|
* Navega para uma etapa específica.
|
|
@@ -42919,67 +42804,53 @@ class Wizard {
|
|
|
42919
42804
|
* @param stepNumber - Número da etapa de destino (numeração começa em 1)
|
|
42920
42805
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42921
42806
|
*/
|
|
42922
|
-
goToStep(stepNumber) {
|
|
42923
|
-
return
|
|
42924
|
-
return yield this.navigateToStep(stepNumber);
|
|
42925
|
-
});
|
|
42807
|
+
async goToStep(stepNumber) {
|
|
42808
|
+
return await this.navigateToStep(stepNumber);
|
|
42926
42809
|
}
|
|
42927
42810
|
/**
|
|
42928
42811
|
* Retorna à primeira etapa do wizard.
|
|
42929
42812
|
* Não executa validação (útil para reiniciar o fluxo).
|
|
42930
42813
|
* @returns Promise<void>
|
|
42931
42814
|
*/
|
|
42932
|
-
reset() {
|
|
42933
|
-
|
|
42934
|
-
yield this.navigateToStep(1, true);
|
|
42935
|
-
});
|
|
42815
|
+
async reset() {
|
|
42816
|
+
await this.navigateToStep(1, true);
|
|
42936
42817
|
}
|
|
42937
42818
|
/**
|
|
42938
42819
|
* Retorna o elemento HTML do painel ativo no momento.
|
|
42939
42820
|
* @returns Promise<HTMLElement | null>
|
|
42940
42821
|
*/
|
|
42941
|
-
getCurrentStep() {
|
|
42942
|
-
return
|
|
42943
|
-
return this.panels[this.currentStep - 1] || null;
|
|
42944
|
-
});
|
|
42822
|
+
async getCurrentStep() {
|
|
42823
|
+
return this.panels[this.currentStep - 1] || null;
|
|
42945
42824
|
}
|
|
42946
42825
|
/**
|
|
42947
42826
|
* Retorna todos os painéis do wizard.
|
|
42948
42827
|
* @returns Promise<HTMLElement[]>
|
|
42949
42828
|
*/
|
|
42950
|
-
getAllSteps() {
|
|
42951
|
-
return
|
|
42952
|
-
return [...this.panels];
|
|
42953
|
-
});
|
|
42829
|
+
async getAllSteps() {
|
|
42830
|
+
return [...this.panels];
|
|
42954
42831
|
}
|
|
42955
42832
|
/**
|
|
42956
42833
|
* Retorna um painel específico pelo índice.
|
|
42957
42834
|
* @param stepNumber - Número da etapa (numeração começa em 1)
|
|
42958
42835
|
* @returns Promise<HTMLElement | null>
|
|
42959
42836
|
*/
|
|
42960
|
-
getStepByIndex(stepNumber) {
|
|
42961
|
-
return
|
|
42962
|
-
return this.panels[stepNumber - 1] || null;
|
|
42963
|
-
});
|
|
42837
|
+
async getStepByIndex(stepNumber) {
|
|
42838
|
+
return this.panels[stepNumber - 1] || null;
|
|
42964
42839
|
}
|
|
42965
42840
|
/**
|
|
42966
42841
|
* Retorna o índice (número) da etapa atual.
|
|
42967
42842
|
* A numeração começa em 1 (primeira etapa = 1, segunda = 2, etc).
|
|
42968
42843
|
* @returns Promise<number>
|
|
42969
42844
|
*/
|
|
42970
|
-
getCurrentStepIndex() {
|
|
42971
|
-
return
|
|
42972
|
-
return this.currentStep;
|
|
42973
|
-
});
|
|
42845
|
+
async getCurrentStepIndex() {
|
|
42846
|
+
return this.currentStep;
|
|
42974
42847
|
}
|
|
42975
42848
|
/**
|
|
42976
42849
|
* Retorna o número total de etapas do wizard.
|
|
42977
42850
|
* @returns Promise<number>
|
|
42978
42851
|
*/
|
|
42979
|
-
getTotalSteps() {
|
|
42980
|
-
return
|
|
42981
|
-
return this.panels.length;
|
|
42982
|
-
});
|
|
42852
|
+
async getTotalSteps() {
|
|
42853
|
+
return this.panels.length;
|
|
42983
42854
|
}
|
|
42984
42855
|
// ========================================
|
|
42985
42856
|
// NAVEGAÇÃO E VALIDAÇÃO
|
|
@@ -42995,64 +42866,62 @@ class Wizard {
|
|
|
42995
42866
|
* @param skipValidation - Se true, pula validação (útil para reset/programático)
|
|
42996
42867
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42997
42868
|
*/
|
|
42998
|
-
navigateToStep(
|
|
42999
|
-
|
|
43000
|
-
|
|
43001
|
-
|
|
43002
|
-
|
|
43003
|
-
|
|
43004
|
-
|
|
43005
|
-
|
|
42869
|
+
async navigateToStep(targetStep, skipValidation = false) {
|
|
42870
|
+
/**
|
|
42871
|
+
* VALIDAÇÕES BÁSICAS
|
|
42872
|
+
* 1. Verifica se targetStep está dentro dos limites válidos
|
|
42873
|
+
* 2. Se já estamos na etapa alvo, retorna sucesso imediatamente
|
|
42874
|
+
*/
|
|
42875
|
+
if (targetStep < 1 || targetStep > this.panels.length) {
|
|
42876
|
+
return false;
|
|
42877
|
+
}
|
|
42878
|
+
if (targetStep === this.currentStep) {
|
|
42879
|
+
return true;
|
|
42880
|
+
}
|
|
42881
|
+
/**
|
|
42882
|
+
* MODO LINEAR: RESTRIÇÕES
|
|
42883
|
+
* No modo linear, não é permitido pular para etapas futuras não visitadas.
|
|
42884
|
+
* É possível voltar, mas não avançar além da próxima etapa sequencial.
|
|
42885
|
+
*/
|
|
42886
|
+
if (this.progressionType === 'linear') {
|
|
42887
|
+
if (targetStep > this.currentStep + 1) {
|
|
42888
|
+
const message = `Não é possível pular etapas. Complete a etapa ${this.currentStep + 1} antes de avançar.`;
|
|
42889
|
+
this.announceToScreenReader(message);
|
|
42890
|
+
this.brWizardNavigationBlocked.emit('linear-progression');
|
|
43006
42891
|
return false;
|
|
43007
42892
|
}
|
|
43008
|
-
|
|
43009
|
-
|
|
43010
|
-
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
|
|
43015
|
-
|
|
43016
|
-
|
|
43017
|
-
|
|
43018
|
-
|
|
43019
|
-
|
|
43020
|
-
|
|
43021
|
-
|
|
43022
|
-
}
|
|
43023
|
-
}
|
|
42893
|
+
}
|
|
42894
|
+
/**
|
|
42895
|
+
* VALIDAÇÃO CUSTOMIZADA
|
|
42896
|
+
* Emite evento brWizardBeforeStepChange APENAS se:
|
|
42897
|
+
* 1. Não estamos pulando validação (skipValidation=false)
|
|
42898
|
+
* 2. Estamos AVANÇANDO (targetStep > currentStep)
|
|
42899
|
+
*
|
|
42900
|
+
* Observações:
|
|
42901
|
+
* - Voltar não precisa validar
|
|
42902
|
+
* - Validação se aplica a ambos os modos (linear e nonlinear)
|
|
42903
|
+
*/
|
|
42904
|
+
const shouldValidate = !skipValidation && targetStep > this.currentStep;
|
|
42905
|
+
if (shouldValidate) {
|
|
42906
|
+
const eventResult = this.brWizardBeforeStepChange.emit(targetStep);
|
|
43024
42907
|
/**
|
|
43025
|
-
*
|
|
43026
|
-
*
|
|
43027
|
-
* 1. Não estamos pulando validação (skipValidation=false)
|
|
43028
|
-
* 2. Estamos AVANÇANDO (targetStep > currentStep)
|
|
43029
|
-
*
|
|
43030
|
-
* Observações:
|
|
43031
|
-
* - Voltar não precisa validar
|
|
43032
|
-
* - Validação se aplica a ambos os modos (linear e nonlinear)
|
|
42908
|
+
* Se preventDefault() foi chamado no listener do evento,
|
|
42909
|
+
* bloqueia a navegação e retorna false
|
|
43033
42910
|
*/
|
|
43034
|
-
|
|
43035
|
-
|
|
43036
|
-
|
|
43037
|
-
|
|
43038
|
-
|
|
43039
|
-
* bloqueia a navegação e retorna false
|
|
43040
|
-
*/
|
|
43041
|
-
if (eventResult.defaultPrevented) {
|
|
43042
|
-
const message = 'Não é possível avançar. Verifique os campos obrigatórios da etapa atual.';
|
|
43043
|
-
this.announceToScreenReader(message);
|
|
43044
|
-
this.brWizardNavigationBlocked.emit('validation-failed');
|
|
43045
|
-
return false;
|
|
43046
|
-
}
|
|
42911
|
+
if (eventResult.defaultPrevented) {
|
|
42912
|
+
const message = 'Não é possível avançar. Verifique os campos obrigatórios da etapa atual.';
|
|
42913
|
+
this.announceToScreenReader(message);
|
|
42914
|
+
this.brWizardNavigationBlocked.emit('validation-failed');
|
|
42915
|
+
return false;
|
|
43047
42916
|
}
|
|
43048
|
-
|
|
43049
|
-
|
|
43050
|
-
|
|
43051
|
-
|
|
43052
|
-
|
|
43053
|
-
|
|
43054
|
-
|
|
43055
|
-
|
|
42917
|
+
}
|
|
42918
|
+
/**
|
|
42919
|
+
* EXECUTA NAVEGAÇÃO
|
|
42920
|
+
* Atualiza o estado interno e emite evento de confirmação
|
|
42921
|
+
*/
|
|
42922
|
+
this.currentStep = targetStep;
|
|
42923
|
+
this.brWizardStepChange.emit(this.currentStep);
|
|
42924
|
+
return true;
|
|
43056
42925
|
}
|
|
43057
42926
|
// ========================================
|
|
43058
42927
|
// SINCRONIZAÇÃO COM BR-STEP
|
|
@@ -43063,35 +42932,33 @@ class Wizard {
|
|
|
43063
42932
|
* O br-step já gerencia completamente os atributos 'active' via componentShouldUpdate
|
|
43064
42933
|
* e requestAnimationFrame, então apenas chamamos os métodos de navegação dele.
|
|
43065
42934
|
*/
|
|
43066
|
-
syncWithBrStep() {
|
|
43067
|
-
|
|
43068
|
-
|
|
43069
|
-
|
|
43070
|
-
|
|
43071
|
-
|
|
43072
|
-
|
|
43073
|
-
|
|
43074
|
-
|
|
43075
|
-
|
|
43076
|
-
|
|
43077
|
-
|
|
43078
|
-
|
|
43079
|
-
|
|
43080
|
-
|
|
43081
|
-
yield this.stepRef.ProceedToNextStep();
|
|
43082
|
-
}
|
|
42935
|
+
async syncWithBrStep() {
|
|
42936
|
+
if (this.stepRef === null)
|
|
42937
|
+
return;
|
|
42938
|
+
if (typeof this.stepRef.GetActiveStep !== 'function') {
|
|
42939
|
+
return;
|
|
42940
|
+
}
|
|
42941
|
+
this.isSyncingWithStep = true;
|
|
42942
|
+
try {
|
|
42943
|
+
const targetStepIndex = this.currentStep - 1;
|
|
42944
|
+
const currentActiveStep = await this.stepRef.GetActiveStep();
|
|
42945
|
+
if (currentActiveStep !== targetStepIndex) {
|
|
42946
|
+
const diff = targetStepIndex - currentActiveStep;
|
|
42947
|
+
if (diff > 0) {
|
|
42948
|
+
for (let i = 0; i < diff; i++) {
|
|
42949
|
+
await this.stepRef.ProceedToNextStep();
|
|
43083
42950
|
}
|
|
43084
|
-
|
|
43085
|
-
|
|
43086
|
-
|
|
43087
|
-
|
|
42951
|
+
}
|
|
42952
|
+
else {
|
|
42953
|
+
for (let i = 0; i < Math.abs(diff); i++) {
|
|
42954
|
+
await this.stepRef.BackToPreviousStep();
|
|
43088
42955
|
}
|
|
43089
42956
|
}
|
|
43090
42957
|
}
|
|
43091
|
-
|
|
43092
|
-
|
|
43093
|
-
|
|
43094
|
-
}
|
|
42958
|
+
}
|
|
42959
|
+
finally {
|
|
42960
|
+
this.isSyncingWithStep = false;
|
|
42961
|
+
}
|
|
43095
42962
|
}
|
|
43096
42963
|
// ========================================
|
|
43097
42964
|
// GERENCIAMENTO DE PAINÉIS
|
|
@@ -43108,16 +42975,14 @@ class Wizard {
|
|
|
43108
42975
|
* Atualiza estados de todos os painéis.
|
|
43109
42976
|
* Define o índice e o estado ativo de cada painel.
|
|
43110
42977
|
*/
|
|
43111
|
-
updatePanels() {
|
|
43112
|
-
|
|
43113
|
-
|
|
43114
|
-
|
|
43115
|
-
|
|
43116
|
-
|
|
43117
|
-
|
|
43118
|
-
|
|
43119
|
-
}
|
|
43120
|
-
});
|
|
42978
|
+
async updatePanels() {
|
|
42979
|
+
for (let idx = 0; idx < this.panels.length; idx++) {
|
|
42980
|
+
const panel = this.panels[idx];
|
|
42981
|
+
const stepNumber = idx + 1;
|
|
42982
|
+
const isActive = stepNumber === this.currentStep;
|
|
42983
|
+
await panel.setIndex(stepNumber);
|
|
42984
|
+
await panel.setActive(isActive);
|
|
42985
|
+
}
|
|
43121
42986
|
}
|
|
43122
42987
|
/**
|
|
43123
42988
|
* Define etapa inicial baseada na prop initialStep.
|
|
@@ -43398,28 +43263,22 @@ class WizardPanel {
|
|
|
43398
43263
|
* Define se o painel está ativo
|
|
43399
43264
|
* @internal Método interno chamado apenas pelo wizard pai
|
|
43400
43265
|
*/
|
|
43401
|
-
setActive(value) {
|
|
43402
|
-
|
|
43403
|
-
this.active = value;
|
|
43404
|
-
});
|
|
43266
|
+
async setActive(value) {
|
|
43267
|
+
this.active = value;
|
|
43405
43268
|
}
|
|
43406
43269
|
/**
|
|
43407
43270
|
* Define o índice do painel
|
|
43408
43271
|
* @internal Método interno chamado apenas pelo wizard pai
|
|
43409
43272
|
*/
|
|
43410
|
-
setIndex(value) {
|
|
43411
|
-
|
|
43412
|
-
this.index = value;
|
|
43413
|
-
});
|
|
43273
|
+
async setIndex(value) {
|
|
43274
|
+
this.index = value;
|
|
43414
43275
|
}
|
|
43415
43276
|
/**
|
|
43416
43277
|
* Retorna se o painel está ativo
|
|
43417
43278
|
* @internal Método interno para o wizard pai consultar o estado
|
|
43418
43279
|
*/
|
|
43419
|
-
isActive() {
|
|
43420
|
-
return
|
|
43421
|
-
return this.active;
|
|
43422
|
-
});
|
|
43280
|
+
async isActive() {
|
|
43281
|
+
return this.active;
|
|
43423
43282
|
}
|
|
43424
43283
|
render() {
|
|
43425
43284
|
const hostAttrs = Object.assign({}, (this.active && { active: 'true' }));
|