@govbr-ds/webcomponents 2.0.0-next.62 → 2.0.0-next.64
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 +25 -30
- 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 +25 -30
- 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 +42 -49
- 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 +25 -30
- 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 +451 -592
- package/dist/hydrate/index.mjs +451 -592
- 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-61e5421b.entry.js → p-27eb10f9.entry.js} +57 -61
- package/dist/webcomponents/p-27eb10f9.entry.js.map +1 -0
- package/dist/webcomponents/{p-097912c2.entry.js → p-2be1c309.entry.js} +34 -41
- package/dist/webcomponents/p-2be1c309.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.mjs
CHANGED
|
@@ -4122,38 +4122,6 @@ class Button {
|
|
|
4122
4122
|
}; }
|
|
4123
4123
|
}
|
|
4124
4124
|
|
|
4125
|
-
/******************************************************************************
|
|
4126
|
-
Copyright (c) Microsoft Corporation.
|
|
4127
|
-
|
|
4128
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4129
|
-
purpose with or without fee is hereby granted.
|
|
4130
|
-
|
|
4131
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4132
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4133
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4134
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4135
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4136
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4137
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4138
|
-
***************************************************************************** */
|
|
4139
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
4143
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4144
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4145
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4146
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4147
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4148
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4149
|
-
});
|
|
4150
|
-
}
|
|
4151
|
-
|
|
4152
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
4153
|
-
var e = new Error(message);
|
|
4154
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4155
|
-
};
|
|
4156
|
-
|
|
4157
4125
|
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}";
|
|
4158
4126
|
|
|
4159
4127
|
/**
|
|
@@ -4259,30 +4227,24 @@ class Checkbox {
|
|
|
4259
4227
|
* Define o estado indeterminado do checkbox.
|
|
4260
4228
|
* @param value Novo valor para o estado indeterminado.
|
|
4261
4229
|
*/
|
|
4262
|
-
setIndeterminate(value) {
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
this.indeterminateChange.emit(this.indeterminate);
|
|
4267
|
-
});
|
|
4230
|
+
async setIndeterminate(value) {
|
|
4231
|
+
this.indeterminate = value;
|
|
4232
|
+
this.updateIndeterminate(value);
|
|
4233
|
+
this.indeterminateChange.emit(this.indeterminate);
|
|
4268
4234
|
}
|
|
4269
4235
|
/**
|
|
4270
4236
|
* Inverte o valor da prop `checked`
|
|
4271
4237
|
*/
|
|
4272
|
-
toggleChecked() {
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
this.checkedChange.emit(this.checked);
|
|
4276
|
-
});
|
|
4238
|
+
async toggleChecked() {
|
|
4239
|
+
this.checked = !this.checked;
|
|
4240
|
+
this.checkedChange.emit(this.checked);
|
|
4277
4241
|
}
|
|
4278
4242
|
/**
|
|
4279
4243
|
* Define o número de checkboxes filhos em um grupo de checkboxes.
|
|
4280
4244
|
* @param value Número de checkboxes filhos.
|
|
4281
4245
|
*/
|
|
4282
|
-
setNumberOfChildren(value) {
|
|
4283
|
-
|
|
4284
|
-
this.numberOfChildren = value;
|
|
4285
|
-
});
|
|
4246
|
+
async setNumberOfChildren(value) {
|
|
4247
|
+
this.numberOfChildren = value;
|
|
4286
4248
|
}
|
|
4287
4249
|
render() {
|
|
4288
4250
|
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));
|
|
@@ -4569,24 +4531,20 @@ class Collapse {
|
|
|
4569
4531
|
/**
|
|
4570
4532
|
* Abre o collapse programaticamente.
|
|
4571
4533
|
*/
|
|
4572
|
-
openCollapse() {
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
this.brDidOpen.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4579
|
-
});
|
|
4534
|
+
async openCollapse() {
|
|
4535
|
+
this.open = true;
|
|
4536
|
+
this.syncDetailsWithOpen();
|
|
4537
|
+
// Fecha outros do mesmo grupo antes de emitir evento
|
|
4538
|
+
this.closeOthersInGroup();
|
|
4539
|
+
this.brDidOpen.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4580
4540
|
}
|
|
4581
4541
|
/**
|
|
4582
4542
|
* Fecha o collapse programaticamente.
|
|
4583
4543
|
*/
|
|
4584
|
-
closeCollapse() {
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
this.brDidClose.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4589
|
-
});
|
|
4544
|
+
async closeCollapse() {
|
|
4545
|
+
this.open = false;
|
|
4546
|
+
this.syncDetailsWithOpen();
|
|
4547
|
+
this.brDidClose.emit({ id: this.customId, accordionGroup: this.accordionGroup });
|
|
4590
4548
|
}
|
|
4591
4549
|
/**
|
|
4592
4550
|
* Fecha outros collapses abertos no mesmo accordion, buscando apenas no pai imediato.
|
|
@@ -27161,57 +27119,45 @@ class DatetimePicker {
|
|
|
27161
27119
|
/**
|
|
27162
27120
|
* Fecha o dropdown do calendário.
|
|
27163
27121
|
*/
|
|
27164
|
-
close() {
|
|
27165
|
-
|
|
27166
|
-
this.isOpen = false;
|
|
27167
|
-
});
|
|
27122
|
+
async close() {
|
|
27123
|
+
this.isOpen = false;
|
|
27168
27124
|
}
|
|
27169
27125
|
/**
|
|
27170
27126
|
* Retorna a data atualmente selecionada no datetime-picker.
|
|
27171
27127
|
*/
|
|
27172
|
-
getValue() {
|
|
27173
|
-
return
|
|
27174
|
-
return this.currentSelectedDate;
|
|
27175
|
-
});
|
|
27128
|
+
async getValue() {
|
|
27129
|
+
return this.currentSelectedDate;
|
|
27176
27130
|
}
|
|
27177
27131
|
/**
|
|
27178
27132
|
* Abre o dropdown do calendário.
|
|
27179
27133
|
*/
|
|
27180
|
-
open() {
|
|
27181
|
-
|
|
27182
|
-
this.isOpen = true;
|
|
27183
|
-
});
|
|
27134
|
+
async open() {
|
|
27135
|
+
this.isOpen = true;
|
|
27184
27136
|
}
|
|
27185
27137
|
/**
|
|
27186
27138
|
* Reseta o estado interno do componente para os valores iniciais.
|
|
27187
27139
|
*/
|
|
27188
|
-
reset() {
|
|
27189
|
-
|
|
27190
|
-
this.resetInternal();
|
|
27191
|
-
});
|
|
27140
|
+
async reset() {
|
|
27141
|
+
this.resetInternal();
|
|
27192
27142
|
}
|
|
27193
27143
|
/**
|
|
27194
27144
|
* Define a data selecionada no datetime-picker.
|
|
27195
27145
|
* @param value Data a ser definida ou null para resetar o valor
|
|
27196
27146
|
*/
|
|
27197
|
-
setValue(value) {
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
this.currentSelectedDate = date;
|
|
27206
|
-
});
|
|
27147
|
+
async setValue(value) {
|
|
27148
|
+
if (value === null) {
|
|
27149
|
+
this.resetInternal();
|
|
27150
|
+
return;
|
|
27151
|
+
}
|
|
27152
|
+
const date = new Date(value);
|
|
27153
|
+
this.currentBaseDate = date;
|
|
27154
|
+
this.currentSelectedDate = date;
|
|
27207
27155
|
}
|
|
27208
27156
|
/**
|
|
27209
27157
|
* Alterna o estado do dropdown do calendário entre aberto e fechado.
|
|
27210
27158
|
*/
|
|
27211
|
-
toggle() {
|
|
27212
|
-
|
|
27213
|
-
this.isOpen = !this.isOpen;
|
|
27214
|
-
});
|
|
27159
|
+
async toggle() {
|
|
27160
|
+
this.isOpen = !this.isOpen;
|
|
27215
27161
|
}
|
|
27216
27162
|
/**
|
|
27217
27163
|
* Manipulador de reset do formulário.
|
|
@@ -29778,18 +29724,16 @@ class FloatingUIManager {
|
|
|
29778
29724
|
* Além disso, define o atributo de dados `data-placement` no elemento de conteúdo para refletir a posição atual.
|
|
29779
29725
|
* @returns {Promise<void>} Uma promessa que resolve quando a posição é atualizada.
|
|
29780
29726
|
*/
|
|
29781
|
-
updatePosition() {
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
middleware: this.buildMiddleware(),
|
|
29787
|
-
});
|
|
29788
|
-
this.updateTooltipPosition(data);
|
|
29789
|
-
this.updateArrowPosition(data);
|
|
29790
|
-
this.setPlacementDataAttribute(data);
|
|
29791
|
-
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.call(this, data);
|
|
29727
|
+
async updatePosition() {
|
|
29728
|
+
var _a;
|
|
29729
|
+
const data = await computePosition(this.triggerElement, this.contentElement, {
|
|
29730
|
+
placement: this.placement,
|
|
29731
|
+
middleware: this.buildMiddleware(),
|
|
29792
29732
|
});
|
|
29733
|
+
this.updateTooltipPosition(data);
|
|
29734
|
+
this.updateArrowPosition(data);
|
|
29735
|
+
this.setPlacementDataAttribute(data);
|
|
29736
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.call(this, data);
|
|
29793
29737
|
}
|
|
29794
29738
|
/**
|
|
29795
29739
|
* Constrói os middlewares necessários para o Floating UI.
|
|
@@ -30248,22 +30192,18 @@ class Dropdown {
|
|
|
30248
30192
|
* Define a propriedade `isOpen` como verdadeira e retorna o novo estado.
|
|
30249
30193
|
* Este método pode ser chamado externamente.
|
|
30250
30194
|
*/
|
|
30251
|
-
open() {
|
|
30252
|
-
|
|
30253
|
-
|
|
30254
|
-
return { isOpen: this.isOpen };
|
|
30255
|
-
});
|
|
30195
|
+
async open() {
|
|
30196
|
+
this.isOpen = true;
|
|
30197
|
+
return { isOpen: this.isOpen };
|
|
30256
30198
|
}
|
|
30257
30199
|
/**
|
|
30258
30200
|
* Esconde o dropdown.
|
|
30259
30201
|
* Define a propriedade `isOpen` como falsa e retorna o novo estado.
|
|
30260
30202
|
* Este método pode ser chamado externamente.
|
|
30261
30203
|
*/
|
|
30262
|
-
hide() {
|
|
30263
|
-
|
|
30264
|
-
|
|
30265
|
-
return { isOpen: this.isOpen };
|
|
30266
|
-
});
|
|
30204
|
+
async hide() {
|
|
30205
|
+
this.isOpen = false;
|
|
30206
|
+
return { isOpen: this.isOpen };
|
|
30267
30207
|
}
|
|
30268
30208
|
/**
|
|
30269
30209
|
* Foca em um elemento específico com suporte a componentes personalizados
|
|
@@ -30319,15 +30259,13 @@ class Dropdown {
|
|
|
30319
30259
|
* Define o foco no elemento interno do componente.
|
|
30320
30260
|
* Este método pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.
|
|
30321
30261
|
*/
|
|
30322
|
-
setFocus() {
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30326
|
-
|
|
30327
|
-
|
|
30328
|
-
|
|
30329
|
-
}
|
|
30330
|
-
});
|
|
30262
|
+
async setFocus() {
|
|
30263
|
+
if (this.focusableElement !== null && this.focusableElement !== undefined) {
|
|
30264
|
+
this.focusableElement.focus();
|
|
30265
|
+
}
|
|
30266
|
+
else {
|
|
30267
|
+
this.focusOnTriggerElement();
|
|
30268
|
+
}
|
|
30331
30269
|
}
|
|
30332
30270
|
render() {
|
|
30333
30271
|
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" })))));
|
|
@@ -31265,10 +31203,8 @@ class Header {
|
|
|
31265
31203
|
* Reinicializa o estado das listas do cabeçalho, disparando o evento de redimensionamento.
|
|
31266
31204
|
* Pode ser chamado externamente para forçar a atualização das listas.
|
|
31267
31205
|
*/
|
|
31268
|
-
resetHeaderList() {
|
|
31269
|
-
|
|
31270
|
-
this.handleListResize();
|
|
31271
|
-
});
|
|
31206
|
+
async resetHeaderList() {
|
|
31207
|
+
this.handleListResize();
|
|
31272
31208
|
}
|
|
31273
31209
|
/**
|
|
31274
31210
|
* Manipula as mudanças de breakpoint.
|
|
@@ -31884,27 +31820,21 @@ class HeaderList {
|
|
|
31884
31820
|
/**
|
|
31885
31821
|
* Fecha a lista.
|
|
31886
31822
|
*/
|
|
31887
|
-
closeList() {
|
|
31888
|
-
|
|
31889
|
-
this.showList = false;
|
|
31890
|
-
});
|
|
31823
|
+
async closeList() {
|
|
31824
|
+
this.showList = false;
|
|
31891
31825
|
}
|
|
31892
31826
|
/**
|
|
31893
31827
|
* Verifica se a lista está aberta.
|
|
31894
31828
|
* @returns Um booleano indicando se a lista está aberta.
|
|
31895
31829
|
*/
|
|
31896
|
-
isListOpen() {
|
|
31897
|
-
return
|
|
31898
|
-
return this.showList;
|
|
31899
|
-
});
|
|
31830
|
+
async isListOpen() {
|
|
31831
|
+
return this.showList;
|
|
31900
31832
|
}
|
|
31901
31833
|
/**
|
|
31902
31834
|
* Abre a lista.
|
|
31903
31835
|
*/
|
|
31904
|
-
openList() {
|
|
31905
|
-
|
|
31906
|
-
this.showList = true;
|
|
31907
|
-
});
|
|
31836
|
+
async openList() {
|
|
31837
|
+
this.showList = true;
|
|
31908
31838
|
}
|
|
31909
31839
|
/**
|
|
31910
31840
|
* Adiciona os listeners ao botão de disparo.
|
|
@@ -35140,11 +35070,9 @@ class Item {
|
|
|
35140
35070
|
* Define o foco no elemento interno do componente.
|
|
35141
35071
|
* Este método pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.
|
|
35142
35072
|
*/
|
|
35143
|
-
setFocus() {
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
(_a = this.focusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35147
|
-
});
|
|
35073
|
+
async setFocus() {
|
|
35074
|
+
var _a;
|
|
35075
|
+
(_a = this.focusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
35148
35076
|
}
|
|
35149
35077
|
render() {
|
|
35150
35078
|
const TagType = this.getTagType();
|
|
@@ -36919,22 +36847,20 @@ class Message {
|
|
|
36919
36847
|
}
|
|
36920
36848
|
};
|
|
36921
36849
|
}
|
|
36922
|
-
componentDidLoad() {
|
|
36923
|
-
|
|
36924
|
-
|
|
36925
|
-
|
|
36926
|
-
|
|
36927
|
-
|
|
36928
|
-
|
|
36929
|
-
|
|
36930
|
-
|
|
36931
|
-
button === null || button === void 0 ? void 0 : button.focus();
|
|
36932
|
-
}
|
|
36933
|
-
}
|
|
36934
|
-
if (this.isClosable && this.autoRemove) {
|
|
36935
|
-
this.el.addEventListener('keydown', this.handleKeyDown);
|
|
36850
|
+
async componentDidLoad() {
|
|
36851
|
+
var _a, _b;
|
|
36852
|
+
if (this.isClosable && !this.isFeedback) {
|
|
36853
|
+
this.previousFocus = document.activeElement;
|
|
36854
|
+
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
36855
|
+
const closeButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('br-button');
|
|
36856
|
+
if (closeButton != null) {
|
|
36857
|
+
const button = (_b = closeButton.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
|
|
36858
|
+
button === null || button === void 0 ? void 0 : button.focus();
|
|
36936
36859
|
}
|
|
36937
|
-
}
|
|
36860
|
+
}
|
|
36861
|
+
if (this.isClosable && this.autoRemove) {
|
|
36862
|
+
this.el.addEventListener('keydown', this.handleKeyDown);
|
|
36863
|
+
}
|
|
36938
36864
|
}
|
|
36939
36865
|
disconnectedCallback() {
|
|
36940
36866
|
if (this.isClosable && !this.autoRemove) {
|
|
@@ -37171,22 +37097,18 @@ class Modal {
|
|
|
37171
37097
|
/**
|
|
37172
37098
|
* Método público para abrir o modal
|
|
37173
37099
|
*/
|
|
37174
|
-
open() {
|
|
37175
|
-
|
|
37176
|
-
|
|
37177
|
-
this.openParentScrim();
|
|
37178
|
-
});
|
|
37100
|
+
async open() {
|
|
37101
|
+
this.show = true;
|
|
37102
|
+
this.openParentScrim();
|
|
37179
37103
|
}
|
|
37180
37104
|
/**
|
|
37181
37105
|
* Método público para fechar o modal
|
|
37182
37106
|
*/
|
|
37183
|
-
close() {
|
|
37184
|
-
|
|
37185
|
-
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
this.show = false;
|
|
37189
|
-
});
|
|
37107
|
+
async close() {
|
|
37108
|
+
if (!this.autoClose) {
|
|
37109
|
+
return;
|
|
37110
|
+
}
|
|
37111
|
+
this.show = false;
|
|
37190
37112
|
}
|
|
37191
37113
|
render() {
|
|
37192
37114
|
if (!this.show) {
|
|
@@ -37789,19 +37711,15 @@ class Radio {
|
|
|
37789
37711
|
/**
|
|
37790
37712
|
* Inverte o valor da prop `checked`
|
|
37791
37713
|
*/
|
|
37792
|
-
toggleChecked() {
|
|
37793
|
-
|
|
37794
|
-
this.checked = !this.checked;
|
|
37795
|
-
});
|
|
37714
|
+
async toggleChecked() {
|
|
37715
|
+
this.checked = !this.checked;
|
|
37796
37716
|
}
|
|
37797
|
-
setFocus() {
|
|
37798
|
-
|
|
37799
|
-
|
|
37800
|
-
|
|
37801
|
-
|
|
37802
|
-
|
|
37803
|
-
}
|
|
37804
|
-
});
|
|
37717
|
+
async setFocus() {
|
|
37718
|
+
var _a;
|
|
37719
|
+
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('input');
|
|
37720
|
+
if (input) {
|
|
37721
|
+
input.focus();
|
|
37722
|
+
}
|
|
37805
37723
|
}
|
|
37806
37724
|
getCssClassMap() {
|
|
37807
37725
|
return {
|
|
@@ -38078,40 +37996,38 @@ class Scrim {
|
|
|
38078
37996
|
// ======================================================================
|
|
38079
37997
|
// LIFECYCLE HOOKS E WATCHERS
|
|
38080
37998
|
// ======================================================================
|
|
38081
|
-
handleOpenChange(newValue) {
|
|
38082
|
-
|
|
38083
|
-
|
|
38084
|
-
|
|
38085
|
-
|
|
38086
|
-
|
|
38087
|
-
|
|
38088
|
-
|
|
38089
|
-
|
|
38090
|
-
|
|
38091
|
-
|
|
38092
|
-
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38096
|
-
|
|
38097
|
-
|
|
38098
|
-
|
|
38099
|
-
|
|
38100
|
-
|
|
38101
|
-
|
|
38102
|
-
|
|
38103
|
-
this.
|
|
38104
|
-
|
|
38105
|
-
|
|
38106
|
-
|
|
38107
|
-
|
|
38108
|
-
|
|
38109
|
-
|
|
38110
|
-
|
|
38111
|
-
|
|
38112
|
-
|
|
38113
|
-
}
|
|
38114
|
-
});
|
|
37999
|
+
async handleOpenChange(newValue) {
|
|
38000
|
+
// Cancelar qualquer timeout anterior
|
|
38001
|
+
if (this.focusTimeoutId !== null) {
|
|
38002
|
+
clearTimeout(this.focusTimeoutId);
|
|
38003
|
+
this.focusTimeoutId = null;
|
|
38004
|
+
}
|
|
38005
|
+
if (this.restoreFocusTimeoutId !== null) {
|
|
38006
|
+
clearTimeout(this.restoreFocusTimeoutId);
|
|
38007
|
+
this.restoreFocusTimeoutId = null;
|
|
38008
|
+
}
|
|
38009
|
+
this.isActive = newValue;
|
|
38010
|
+
if (newValue && this.scrollStrategy === 'close') {
|
|
38011
|
+
const currentScroll = window.scrollY;
|
|
38012
|
+
this.lastScrollTop = currentScroll;
|
|
38013
|
+
this.scrollOrigin = currentScroll;
|
|
38014
|
+
}
|
|
38015
|
+
this.updateStyles();
|
|
38016
|
+
if (this.isActive) {
|
|
38017
|
+
this.previouslyFocusedElement = document.activeElement;
|
|
38018
|
+
this.applyScrollStrategy();
|
|
38019
|
+
this.addGlobalEventInterception();
|
|
38020
|
+
this.focusTimeoutId = setTimeout(() => {
|
|
38021
|
+
this.focusFirstElement();
|
|
38022
|
+
}, 100);
|
|
38023
|
+
this.brScrimOpen.emit();
|
|
38024
|
+
}
|
|
38025
|
+
else {
|
|
38026
|
+
this.resetScrolling();
|
|
38027
|
+
this.removeGlobalEventInterception();
|
|
38028
|
+
this.restoreFocus();
|
|
38029
|
+
this.brScrimClose.emit();
|
|
38030
|
+
}
|
|
38115
38031
|
}
|
|
38116
38032
|
updateStyles() {
|
|
38117
38033
|
if (this.zIndex !== null && this.zIndex !== undefined) {
|
|
@@ -38508,34 +38424,26 @@ class Scrim {
|
|
|
38508
38424
|
/**
|
|
38509
38425
|
* Define o limite de rolagem para o fechamento automático do scrim.
|
|
38510
38426
|
*/
|
|
38511
|
-
setScrollThreshold(threshold) {
|
|
38512
|
-
|
|
38513
|
-
this.scrollThreshold = threshold;
|
|
38514
|
-
});
|
|
38427
|
+
async setScrollThreshold(threshold) {
|
|
38428
|
+
this.scrollThreshold = threshold;
|
|
38515
38429
|
}
|
|
38516
38430
|
/**
|
|
38517
38431
|
* Método público para exibir o scrim
|
|
38518
38432
|
*/
|
|
38519
|
-
open() {
|
|
38520
|
-
|
|
38521
|
-
this.isOpen = true;
|
|
38522
|
-
});
|
|
38433
|
+
async open() {
|
|
38434
|
+
this.isOpen = true;
|
|
38523
38435
|
}
|
|
38524
38436
|
/**
|
|
38525
38437
|
* Método público para esconder o scrim
|
|
38526
38438
|
*/
|
|
38527
|
-
close() {
|
|
38528
|
-
|
|
38529
|
-
this.isOpen = false;
|
|
38530
|
-
});
|
|
38439
|
+
async close() {
|
|
38440
|
+
this.isOpen = false;
|
|
38531
38441
|
}
|
|
38532
38442
|
/**
|
|
38533
38443
|
* Método público para alternar o estado de exibição do scrim
|
|
38534
38444
|
*/
|
|
38535
|
-
toggle() {
|
|
38536
|
-
|
|
38537
|
-
this.isOpen = !this.isActive;
|
|
38538
|
-
});
|
|
38445
|
+
async toggle() {
|
|
38446
|
+
this.isOpen = !this.isActive;
|
|
38539
38447
|
}
|
|
38540
38448
|
render() {
|
|
38541
38449
|
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' })))));
|
|
@@ -38652,6 +38560,11 @@ class Select {
|
|
|
38652
38560
|
* Útil para casos contextuais como paginação.
|
|
38653
38561
|
*/
|
|
38654
38562
|
this.isInline = false;
|
|
38563
|
+
/**
|
|
38564
|
+
* Desabilita a interação com o componente `br-select`.
|
|
38565
|
+
* Quando `true`, o input e as opções ficam desabilitados e não respondem a cliques ou teclas.
|
|
38566
|
+
*/
|
|
38567
|
+
this.disabled = false;
|
|
38655
38568
|
/**
|
|
38656
38569
|
* Propaga para o input interno a remoção da borda quando desfocado.
|
|
38657
38570
|
*/
|
|
@@ -38967,17 +38880,44 @@ class Select {
|
|
|
38967
38880
|
renderInput() {
|
|
38968
38881
|
// Se estiver focado, mostramos EXATAMENTE o que está sendo digitado (searchTerm), mesmo que seja vazio.
|
|
38969
38882
|
// Se não estiver focado, mostramos o termo de busca (se houver) ou o valor selecionado (inputValue).
|
|
38970
|
-
const displayValue = this.isFocused ? this.searchTerm :
|
|
38971
|
-
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,
|
|
38883
|
+
const displayValue = this.isFocused ? this.searchTerm : this.searchTerm || this.inputValue;
|
|
38884
|
+
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: () => {
|
|
38885
|
+
if (!this.disabled)
|
|
38886
|
+
this.toggleOpen();
|
|
38887
|
+
}, onInput: (event) => this.handleSearchInput(event), onFocus: () => this.handleSearchFocus(), onBlur: (event) => this.handleSearchBlur(event), onKeyDown: (event) => {
|
|
38888
|
+
if (!this.disabled)
|
|
38889
|
+
this.handleKeydownOnInput(event);
|
|
38890
|
+
} }, 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" })));
|
|
38972
38891
|
}
|
|
38973
38892
|
renderSelectAllCheckbox() {
|
|
38974
|
-
return (hAsync("div", { class: `br-item highlighted ${this.isAllSelected ? 'selected' : ''}`, "data-all": "data-all", tabindex: "-1", role: "option", "aria-selected": this.isAllSelected,
|
|
38893
|
+
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) => {
|
|
38894
|
+
if (!this.disabled)
|
|
38895
|
+
this.handleSelectAllKeyDown(event);
|
|
38896
|
+
}, onClick: () => {
|
|
38897
|
+
if (!this.disabled)
|
|
38898
|
+
this.toggleSelectAll();
|
|
38899
|
+
} }, 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: () => {
|
|
38900
|
+
if (!this.disabled)
|
|
38901
|
+
this.toggleSelectAll();
|
|
38902
|
+
} })));
|
|
38975
38903
|
}
|
|
38976
38904
|
renderOptions() {
|
|
38977
38905
|
if (this.filteredOptions.length === 0) {
|
|
38978
38906
|
return (hAsync("div", { class: "br-item empty", role: "option", "aria-selected": "false", tabindex: -1 }, "Nenhum resultado encontrado"));
|
|
38979
38907
|
}
|
|
38980
|
-
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, "
|
|
38908
|
+
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: () => {
|
|
38909
|
+
if (!this.disabled)
|
|
38910
|
+
this.handleSelectionByValue(option.value);
|
|
38911
|
+
}, onKeyDown: (event) => {
|
|
38912
|
+
if (!this.disabled)
|
|
38913
|
+
this.handleKeydownOnItem(event, index);
|
|
38914
|
+
}, 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: () => {
|
|
38915
|
+
if (!this.disabled)
|
|
38916
|
+
this.handleSelectionByValue(option.value);
|
|
38917
|
+
} })) : (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: () => {
|
|
38918
|
+
if (!this.disabled)
|
|
38919
|
+
this.handleSelectionByValue(option.value);
|
|
38920
|
+
} })))));
|
|
38981
38921
|
}
|
|
38982
38922
|
/**
|
|
38983
38923
|
* Determina um id para o radio.
|
|
@@ -38989,50 +38929,42 @@ class Select {
|
|
|
38989
38929
|
/**
|
|
38990
38930
|
* Inverte o valor da prop `isOpen`
|
|
38991
38931
|
*/
|
|
38992
|
-
toggleOpen() {
|
|
38993
|
-
|
|
38994
|
-
this.isExpanded = !this.isExpanded;
|
|
38995
|
-
});
|
|
38932
|
+
async toggleOpen() {
|
|
38933
|
+
this.isExpanded = !this.isExpanded;
|
|
38996
38934
|
}
|
|
38997
38935
|
/**
|
|
38998
38936
|
* Limpa todas as opções selecionadas.
|
|
38999
38937
|
*/
|
|
39000
|
-
clear() {
|
|
39001
|
-
|
|
39002
|
-
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
|
|
39010
|
-
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
}
|
|
39016
|
-
});
|
|
38938
|
+
async clear() {
|
|
38939
|
+
const updatedOptions = this.parsedOptions.map((option) => (Object.assign(Object.assign({}, option), { selected: false })));
|
|
38940
|
+
this.parsedOptions = updatedOptions;
|
|
38941
|
+
const newValue = this.isMultiple ? [] : undefined;
|
|
38942
|
+
this.selectedValue = newValue;
|
|
38943
|
+
this.value = newValue;
|
|
38944
|
+
this.updateSelectedOptions();
|
|
38945
|
+
this.updateSelectedAllState();
|
|
38946
|
+
this.valueChange.emit(newValue);
|
|
38947
|
+
try {
|
|
38948
|
+
this.elementInternals.setFormValue(JSON.stringify(newValue !== null && newValue !== void 0 ? newValue : (this.isMultiple ? [] : null)));
|
|
38949
|
+
}
|
|
38950
|
+
catch (_a) {
|
|
38951
|
+
// Ignora erro em testes onde setFormValue não é implementado
|
|
38952
|
+
}
|
|
39017
38953
|
}
|
|
39018
38954
|
/**
|
|
39019
38955
|
* Retorna o valor selecionado.
|
|
39020
38956
|
* @returns {Promise<string | string[]>} O valor atual.
|
|
39021
38957
|
*/
|
|
39022
|
-
getValue() {
|
|
39023
|
-
return
|
|
39024
|
-
return this.value;
|
|
39025
|
-
});
|
|
38958
|
+
async getValue() {
|
|
38959
|
+
return this.value;
|
|
39026
38960
|
}
|
|
39027
38961
|
/**
|
|
39028
38962
|
* Define o valor do componente.
|
|
39029
38963
|
* @param {string | string[]} newValue O novo valor a ser definido.
|
|
39030
38964
|
*/
|
|
39031
|
-
setValue(newValue) {
|
|
39032
|
-
|
|
39033
|
-
|
|
39034
|
-
// O @Watch('value') cuidará da sincronização
|
|
39035
|
-
});
|
|
38965
|
+
async setValue(newValue) {
|
|
38966
|
+
this.value = newValue;
|
|
38967
|
+
// O @Watch('value') cuidará da sincronização
|
|
39036
38968
|
}
|
|
39037
38969
|
getCssClassMap() {
|
|
39038
38970
|
return {
|
|
@@ -39064,7 +38996,7 @@ class Select {
|
|
|
39064
38996
|
this.filteredOptions = this.getFilteredOptions('');
|
|
39065
38997
|
}
|
|
39066
38998
|
render() {
|
|
39067
|
-
return (hAsync("div", { key: '
|
|
38999
|
+
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()))));
|
|
39068
39000
|
}
|
|
39069
39001
|
static get formAssociated() { return true; }
|
|
39070
39002
|
get el() { return getElement(this); }
|
|
@@ -39088,6 +39020,7 @@ class Select {
|
|
|
39088
39020
|
"isOpen": [516, "is-open"],
|
|
39089
39021
|
"isInline": [516, "is-inline"],
|
|
39090
39022
|
"inputWidth": [513, "input-width"],
|
|
39023
|
+
"disabled": [516],
|
|
39091
39024
|
"borderless": [516],
|
|
39092
39025
|
"customId": [513, "custom-id"],
|
|
39093
39026
|
"value": [1025],
|
|
@@ -39108,7 +39041,7 @@ class Select {
|
|
|
39108
39041
|
},
|
|
39109
39042
|
"$listeners$": undefined,
|
|
39110
39043
|
"$lazyBundleId$": "-",
|
|
39111
|
-
"$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"]]
|
|
39044
|
+
"$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"]]
|
|
39112
39045
|
}; }
|
|
39113
39046
|
}
|
|
39114
39047
|
let selectId = 0;
|
|
@@ -39496,40 +39429,36 @@ class SkipLink {
|
|
|
39496
39429
|
/**
|
|
39497
39430
|
* Oculta o componente programaticamente.
|
|
39498
39431
|
*/
|
|
39499
|
-
hide() {
|
|
39500
|
-
|
|
39501
|
-
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39506
|
-
|
|
39507
|
-
return Promise.resolve();
|
|
39508
|
-
});
|
|
39432
|
+
async hide() {
|
|
39433
|
+
const focusedElement = this.el.querySelector(':focus');
|
|
39434
|
+
if (focusedElement instanceof HTMLElement) {
|
|
39435
|
+
focusedElement.blur();
|
|
39436
|
+
}
|
|
39437
|
+
this.isVisible = false;
|
|
39438
|
+
this.brDidHide.emit();
|
|
39439
|
+
return Promise.resolve();
|
|
39509
39440
|
}
|
|
39510
39441
|
/**
|
|
39511
39442
|
* Exibe o componente programaticamente.
|
|
39512
39443
|
*/
|
|
39513
|
-
show() {
|
|
39514
|
-
|
|
39515
|
-
|
|
39516
|
-
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
if (firstItem
|
|
39520
|
-
|
|
39521
|
-
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
focusableElement.focus();
|
|
39527
|
-
}
|
|
39444
|
+
async show() {
|
|
39445
|
+
var _a;
|
|
39446
|
+
this.isVisible = true;
|
|
39447
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
39448
|
+
const firstItem = this.el.querySelector('br-skiplink-item');
|
|
39449
|
+
if (firstItem !== null) {
|
|
39450
|
+
if (typeof firstItem.itemFocus === 'function') {
|
|
39451
|
+
await firstItem.itemFocus();
|
|
39452
|
+
}
|
|
39453
|
+
else {
|
|
39454
|
+
const focusableElement = (_a = firstItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('a, button');
|
|
39455
|
+
if (focusableElement !== null) {
|
|
39456
|
+
focusableElement.focus();
|
|
39528
39457
|
}
|
|
39529
39458
|
}
|
|
39530
|
-
|
|
39531
|
-
|
|
39532
|
-
|
|
39459
|
+
}
|
|
39460
|
+
this.brDidShow.emit();
|
|
39461
|
+
return Promise.resolve();
|
|
39533
39462
|
}
|
|
39534
39463
|
getEffectivePosition() {
|
|
39535
39464
|
if (this.isSmallScreen) {
|
|
@@ -39548,7 +39477,7 @@ class SkipLink {
|
|
|
39548
39477
|
};
|
|
39549
39478
|
}
|
|
39550
39479
|
render() {
|
|
39551
|
-
return (hAsync(Host, { key: '3da4abe22f44afcfaee67d02edf96ad2b0a96294' }, hAsync("nav", { key: '
|
|
39480
|
+
return (hAsync(Host, { key: '3da4abe22f44afcfaee67d02edf96ad2b0a96294' }, hAsync("nav", { key: '76c38f8f1484039a5134be1396b1d0a98dea4d5e', part: "container", class: this.getCssClassMap(), id: this.customId }, hAsync("br-list", { key: '0d1e37896de8fe5f3e2eb4a057a2418e3e57e666' }, hAsync("slot", { key: '276ee5442e5a119238416c614bef37688e52bd09' })))));
|
|
39552
39481
|
}
|
|
39553
39482
|
get el() { return getElement(this); }
|
|
39554
39483
|
static get watchers() { return {
|
|
@@ -39631,51 +39560,47 @@ class SkipLinkItem {
|
|
|
39631
39560
|
/**
|
|
39632
39561
|
* Move o foco para este item.
|
|
39633
39562
|
*/
|
|
39634
|
-
itemFocus() {
|
|
39635
|
-
|
|
39636
|
-
|
|
39637
|
-
|
|
39638
|
-
|
|
39639
|
-
|
|
39640
|
-
|
|
39641
|
-
|
|
39642
|
-
|
|
39643
|
-
|
|
39644
|
-
|
|
39645
|
-
|
|
39646
|
-
return;
|
|
39647
|
-
}
|
|
39563
|
+
async itemFocus() {
|
|
39564
|
+
var _a;
|
|
39565
|
+
const brItemElement = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('br-item');
|
|
39566
|
+
if (brItemElement !== null) {
|
|
39567
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
39568
|
+
const brItemShadowRoot = brItemElement.shadowRoot;
|
|
39569
|
+
if (brItemShadowRoot !== null) {
|
|
39570
|
+
const focusableElement = brItemShadowRoot.querySelector('a, button');
|
|
39571
|
+
if (focusableElement !== null) {
|
|
39572
|
+
focusableElement.focus();
|
|
39573
|
+
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39574
|
+
return;
|
|
39648
39575
|
}
|
|
39649
|
-
brItemElement.focus();
|
|
39650
|
-
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39651
39576
|
}
|
|
39652
|
-
|
|
39577
|
+
brItemElement.focus();
|
|
39578
|
+
this.brSkiplinkItemFocus.emit({ itemId: this.customId });
|
|
39579
|
+
}
|
|
39653
39580
|
}
|
|
39654
39581
|
/**
|
|
39655
39582
|
* Navega para o target definido.
|
|
39656
39583
|
* Move o foco para o elemento alvo e ajusta a rolagem da página se necessário.
|
|
39657
39584
|
*/
|
|
39658
|
-
navigateToTarget() {
|
|
39659
|
-
|
|
39660
|
-
|
|
39661
|
-
|
|
39662
|
-
|
|
39663
|
-
|
|
39664
|
-
|
|
39665
|
-
|
|
39666
|
-
this.
|
|
39667
|
-
|
|
39668
|
-
|
|
39669
|
-
});
|
|
39670
|
-
}
|
|
39671
|
-
else {
|
|
39672
|
-
console.warn(`Skip Link: Target element "${this.target}" not found`);
|
|
39673
|
-
}
|
|
39585
|
+
async navigateToTarget() {
|
|
39586
|
+
try {
|
|
39587
|
+
const targetElement = document.querySelector(this.target);
|
|
39588
|
+
if (targetElement !== null) {
|
|
39589
|
+
targetElement.setAttribute('tabindex', '-1');
|
|
39590
|
+
targetElement.focus();
|
|
39591
|
+
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
39592
|
+
this.brSkiplinkItemClick.emit({
|
|
39593
|
+
itemId: this.customId,
|
|
39594
|
+
target: this.target,
|
|
39595
|
+
});
|
|
39674
39596
|
}
|
|
39675
|
-
|
|
39676
|
-
console.
|
|
39597
|
+
else {
|
|
39598
|
+
console.warn(`Skip Link: Target element "${this.target}" not found`);
|
|
39677
39599
|
}
|
|
39678
|
-
}
|
|
39600
|
+
}
|
|
39601
|
+
catch (error) {
|
|
39602
|
+
console.error('Skip Link: Error navigating to target', error);
|
|
39603
|
+
}
|
|
39679
39604
|
}
|
|
39680
39605
|
/**
|
|
39681
39606
|
* Listener para cliques no item.
|
|
@@ -39950,14 +39875,12 @@ class Step {
|
|
|
39950
39875
|
elements.setContent(indicatorContent.toString());
|
|
39951
39876
|
});
|
|
39952
39877
|
}
|
|
39953
|
-
setStepItemsContentType() {
|
|
39954
|
-
|
|
39955
|
-
|
|
39956
|
-
|
|
39957
|
-
|
|
39958
|
-
|
|
39959
|
-
elements.setAttribute('aria-setsize', `${slotItems.length}`);
|
|
39960
|
-
});
|
|
39878
|
+
async setStepItemsContentType() {
|
|
39879
|
+
const slotItems = Array.from(this.el.getElementsByTagName('br-step-item'));
|
|
39880
|
+
await Promise.all(slotItems.map((element) => element.setContentType(this.contentType)));
|
|
39881
|
+
slotItems.forEach((elements, index) => {
|
|
39882
|
+
elements.setAttribute('aria-posinset', `${index + 1}`);
|
|
39883
|
+
elements.setAttribute('aria-setsize', `${slotItems.length}`);
|
|
39961
39884
|
});
|
|
39962
39885
|
}
|
|
39963
39886
|
setStepItemsMode(mode) {
|
|
@@ -40003,44 +39926,36 @@ class Step {
|
|
|
40003
39926
|
*
|
|
40004
39927
|
* 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
|
|
40005
39928
|
*/
|
|
40006
|
-
ProceedToNextStep() {
|
|
40007
|
-
|
|
40008
|
-
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
this.stepItems[this.activeStep].removeAttribute('disabled');
|
|
40012
|
-
}
|
|
39929
|
+
async ProceedToNextStep() {
|
|
39930
|
+
if (this.activeStep + 1 < this.stepItems.length) {
|
|
39931
|
+
this.activeStep = this.activeStep + 1;
|
|
39932
|
+
if (this.progressionType === 'linear') {
|
|
39933
|
+
this.stepItems[this.activeStep].removeAttribute('disabled');
|
|
40013
39934
|
}
|
|
40014
|
-
}
|
|
39935
|
+
}
|
|
40015
39936
|
}
|
|
40016
39937
|
/**
|
|
40017
39938
|
*
|
|
40018
39939
|
* 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
|
|
40019
39940
|
*/
|
|
40020
|
-
BackToPreviousStep() {
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
}
|
|
40025
|
-
});
|
|
39941
|
+
async BackToPreviousStep() {
|
|
39942
|
+
if (this.activeStep - 1 >= 0) {
|
|
39943
|
+
this.activeStep = this.activeStep - 1;
|
|
39944
|
+
}
|
|
40026
39945
|
}
|
|
40027
39946
|
/**
|
|
40028
39947
|
*
|
|
40029
39948
|
* 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.
|
|
40030
39949
|
*/
|
|
40031
|
-
StepValidation(validationStatus) {
|
|
40032
|
-
|
|
40033
|
-
this.stepItems[this.activeStep].setAttribute('highlight', validationStatus);
|
|
40034
|
-
});
|
|
39950
|
+
async StepValidation(validationStatus) {
|
|
39951
|
+
this.stepItems[this.activeStep].setAttribute('highlight', validationStatus);
|
|
40035
39952
|
}
|
|
40036
39953
|
/**
|
|
40037
39954
|
*
|
|
40038
39955
|
* Método disponibilizado via API do elemento que permite a um componente externo obter a etapa com o estado ativo do componente Step.
|
|
40039
39956
|
*/
|
|
40040
|
-
GetActiveStep() {
|
|
40041
|
-
return
|
|
40042
|
-
return this.activeStep;
|
|
40043
|
-
});
|
|
39957
|
+
async GetActiveStep() {
|
|
39958
|
+
return this.activeStep;
|
|
40044
39959
|
}
|
|
40045
39960
|
getCssClassMap() {
|
|
40046
39961
|
return {
|
|
@@ -40214,55 +40129,43 @@ class StepItem {
|
|
|
40214
40129
|
*
|
|
40215
40130
|
* Método disponibilizado via api do elemento que indica a posição do step item, ele serve para setar o state stepItemPositionStatus do componente
|
|
40216
40131
|
*/
|
|
40217
|
-
setStepItemPositionStatus(value) {
|
|
40218
|
-
|
|
40219
|
-
this.stepItemPositionStatus = value;
|
|
40220
|
-
});
|
|
40132
|
+
async setStepItemPositionStatus(value) {
|
|
40133
|
+
this.stepItemPositionStatus = value;
|
|
40221
40134
|
}
|
|
40222
40135
|
/**
|
|
40223
40136
|
* Método que define a orientação do stepItem e controla a exibição da linha do tempo após o componente.
|
|
40224
40137
|
*/
|
|
40225
|
-
handleShowTimeLine(value, layout) {
|
|
40226
|
-
|
|
40227
|
-
|
|
40228
|
-
this.stepLayout = layout;
|
|
40229
|
-
});
|
|
40138
|
+
async handleShowTimeLine(value, layout) {
|
|
40139
|
+
this.showTimeLine = value;
|
|
40140
|
+
this.stepLayout = layout;
|
|
40230
40141
|
}
|
|
40231
40142
|
/**
|
|
40232
40143
|
*
|
|
40233
40144
|
* 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
|
|
40234
40145
|
*/
|
|
40235
|
-
setLabelPosition(value) {
|
|
40236
|
-
|
|
40237
|
-
this.labelPosition = value;
|
|
40238
|
-
});
|
|
40146
|
+
async setLabelPosition(value) {
|
|
40147
|
+
this.labelPosition = value;
|
|
40239
40148
|
}
|
|
40240
40149
|
/**
|
|
40241
40150
|
*
|
|
40242
40151
|
* Método disponibilizado via api do elemento que atribui o valor que irá definir o tipo de conteúdo apresentado dentro do componente stepItem
|
|
40243
40152
|
*/
|
|
40244
|
-
setContentType(value) {
|
|
40245
|
-
|
|
40246
|
-
this.contentType = value;
|
|
40247
|
-
});
|
|
40153
|
+
async setContentType(value) {
|
|
40154
|
+
this.contentType = value;
|
|
40248
40155
|
}
|
|
40249
40156
|
/**
|
|
40250
40157
|
*
|
|
40251
40158
|
* 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.
|
|
40252
40159
|
*/
|
|
40253
|
-
setMode(value) {
|
|
40254
|
-
|
|
40255
|
-
this.mode = value;
|
|
40256
|
-
});
|
|
40160
|
+
async setMode(value) {
|
|
40161
|
+
this.mode = value;
|
|
40257
40162
|
}
|
|
40258
40163
|
/**
|
|
40259
40164
|
*
|
|
40260
40165
|
* Método disponibilizado via api do elemento que atribui o valor que irá ser exibido dentro do componente stepItem
|
|
40261
40166
|
*/
|
|
40262
|
-
setContent(value) {
|
|
40263
|
-
|
|
40264
|
-
this.content = value;
|
|
40265
|
-
});
|
|
40167
|
+
async setContent(value) {
|
|
40168
|
+
this.content = value;
|
|
40266
40169
|
}
|
|
40267
40170
|
getStepContainerClassMap() {
|
|
40268
40171
|
return {
|
|
@@ -40445,11 +40348,9 @@ class Switch {
|
|
|
40445
40348
|
/**
|
|
40446
40349
|
* Inverte o valor da prop `checked`
|
|
40447
40350
|
*/
|
|
40448
|
-
toggleChecked() {
|
|
40449
|
-
|
|
40450
|
-
|
|
40451
|
-
this.checkedChange.emit(this.checked);
|
|
40452
|
-
});
|
|
40351
|
+
async toggleChecked() {
|
|
40352
|
+
this.checked = !this.checked;
|
|
40353
|
+
this.checkedChange.emit(this.checked);
|
|
40453
40354
|
}
|
|
40454
40355
|
/**
|
|
40455
40356
|
* Verifica se o componente tem texto visível (via slot ou label)
|
|
@@ -41577,13 +41478,11 @@ class Textarea {
|
|
|
41577
41478
|
* Define um novo valor para o textarea.
|
|
41578
41479
|
* @param newValue - O novo valor a ser definido.
|
|
41579
41480
|
*/
|
|
41580
|
-
setValue(newValue) {
|
|
41581
|
-
|
|
41582
|
-
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
this.valueChange.emit(this.value);
|
|
41586
|
-
});
|
|
41481
|
+
async setValue(newValue) {
|
|
41482
|
+
var _a;
|
|
41483
|
+
this.value = newValue;
|
|
41484
|
+
this.currentLength = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
41485
|
+
this.valueChange.emit(this.value);
|
|
41587
41486
|
}
|
|
41588
41487
|
/**
|
|
41589
41488
|
* Retorna os ids para o atributo aria-describedby do textarea
|
|
@@ -42748,7 +42647,7 @@ class Wizard {
|
|
|
42748
42647
|
* Se for a última etapa, valida e emite evento de conclusão.
|
|
42749
42648
|
* Caso contrário, avança para a próxima etapa.
|
|
42750
42649
|
*/
|
|
42751
|
-
this.handleNext = () =>
|
|
42650
|
+
this.handleNext = async () => {
|
|
42752
42651
|
if (this.currentStep === this.panels.length) {
|
|
42753
42652
|
// Última etapa: validar antes de completar
|
|
42754
42653
|
const eventResult = this.brWizardBeforeStepChange.emit(this.currentStep);
|
|
@@ -42758,16 +42657,16 @@ class Wizard {
|
|
|
42758
42657
|
}
|
|
42759
42658
|
}
|
|
42760
42659
|
else {
|
|
42761
|
-
|
|
42660
|
+
await this.nextStep();
|
|
42762
42661
|
}
|
|
42763
|
-
}
|
|
42662
|
+
};
|
|
42764
42663
|
/**
|
|
42765
42664
|
* Handler do botão "Voltar".
|
|
42766
42665
|
* Navega para a etapa anterior.
|
|
42767
42666
|
*/
|
|
42768
|
-
this.handlePrevious = () =>
|
|
42769
|
-
|
|
42770
|
-
}
|
|
42667
|
+
this.handlePrevious = async () => {
|
|
42668
|
+
await this.previousStep();
|
|
42669
|
+
};
|
|
42771
42670
|
/**
|
|
42772
42671
|
* Handler do botão "Cancelar".
|
|
42773
42672
|
* Emite evento de cancelamento do wizard.
|
|
@@ -42790,12 +42689,10 @@ class Wizard {
|
|
|
42790
42689
|
* Observa mudanças na etapa inicial.
|
|
42791
42690
|
* Reinicializa o wizard quando a prop initialStep é alterada externamente.
|
|
42792
42691
|
*/
|
|
42793
|
-
handleInitialStepChange() {
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42797
|
-
this.updatePanels();
|
|
42798
|
-
});
|
|
42692
|
+
async handleInitialStepChange() {
|
|
42693
|
+
this.setInitialStep();
|
|
42694
|
+
await this.syncWithBrStep();
|
|
42695
|
+
this.updatePanels();
|
|
42799
42696
|
}
|
|
42800
42697
|
/**
|
|
42801
42698
|
* Observa mudanças na etapa atual (fonte única de verdade).
|
|
@@ -42803,15 +42700,13 @@ class Wizard {
|
|
|
42803
42700
|
* @param newStep - Nova etapa
|
|
42804
42701
|
* @param oldStep - Etapa anterior
|
|
42805
42702
|
*/
|
|
42806
|
-
handleCurrentStepChange(newStep, oldStep) {
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
}
|
|
42814
|
-
});
|
|
42703
|
+
async handleCurrentStepChange(newStep, oldStep) {
|
|
42704
|
+
if (newStep !== oldStep) {
|
|
42705
|
+
await this.syncWithBrStep();
|
|
42706
|
+
this.updatePanels();
|
|
42707
|
+
this.announceStepChange(newStep, oldStep);
|
|
42708
|
+
this.setFocusOnActivePanel();
|
|
42709
|
+
}
|
|
42815
42710
|
}
|
|
42816
42711
|
// ========================================
|
|
42817
42712
|
// LISTENERS
|
|
@@ -42821,31 +42716,27 @@ class Wizard {
|
|
|
42821
42716
|
* Redescobre os painéis e ressincroniza o estado.
|
|
42822
42717
|
* @param event - Evento slotchange
|
|
42823
42718
|
*/
|
|
42824
|
-
handleSlotChange(event) {
|
|
42825
|
-
|
|
42826
|
-
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
this.updatePanels();
|
|
42830
|
-
});
|
|
42719
|
+
async handleSlotChange(event) {
|
|
42720
|
+
const slot = event.target;
|
|
42721
|
+
this.discoverPanelsFromSlot(slot);
|
|
42722
|
+
await this.syncWithBrStep();
|
|
42723
|
+
this.updatePanels();
|
|
42831
42724
|
}
|
|
42832
42725
|
/**
|
|
42833
42726
|
* Detecta quando o br-step muda de etapa ativa.
|
|
42834
42727
|
* Valida e sincroniza a navegação com o componente interno br-step.
|
|
42835
42728
|
* @param event - Evento customizado do br-step
|
|
42836
42729
|
*/
|
|
42837
|
-
handleStepChange(event) {
|
|
42838
|
-
|
|
42839
|
-
|
|
42840
|
-
|
|
42841
|
-
|
|
42842
|
-
|
|
42843
|
-
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
|
|
42847
|
-
}
|
|
42848
|
-
});
|
|
42730
|
+
async handleStepChange(event) {
|
|
42731
|
+
if (this.isSyncingWithStep) {
|
|
42732
|
+
return;
|
|
42733
|
+
}
|
|
42734
|
+
const requestedStep = event.detail.activeStep + 1;
|
|
42735
|
+
const success = await this.navigateToStep(requestedStep);
|
|
42736
|
+
if (!success) {
|
|
42737
|
+
event.stopPropagation();
|
|
42738
|
+
await this.syncWithBrStep();
|
|
42739
|
+
}
|
|
42849
42740
|
}
|
|
42850
42741
|
// ========================================
|
|
42851
42742
|
// LIFECYCLE HOOKS
|
|
@@ -42861,24 +42752,22 @@ class Wizard {
|
|
|
42861
42752
|
* Lifecycle: carrega painéis e configura estado inicial.
|
|
42862
42753
|
* Sincroniza com br-step, atualiza painéis e configura detecção mobile.
|
|
42863
42754
|
*/
|
|
42864
|
-
componentDidLoad() {
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
this.panels = slotPanels;
|
|
42873
|
-
}
|
|
42874
|
-
}
|
|
42875
|
-
yield this.syncWithBrStep();
|
|
42876
|
-
this.updatePanels();
|
|
42877
|
-
this.setupMobileDetection();
|
|
42878
|
-
if (this.isMobile) {
|
|
42879
|
-
this.collapsed = true;
|
|
42755
|
+
async componentDidLoad() {
|
|
42756
|
+
var _a;
|
|
42757
|
+
const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
42758
|
+
if (slot !== null && typeof slot !== 'undefined') {
|
|
42759
|
+
const assignedElements = slot.assignedElements();
|
|
42760
|
+
const slotPanels = assignedElements.filter((el) => el.tagName.toLowerCase() === 'br-wizard-panel');
|
|
42761
|
+
if (slotPanels.length !== this.panels.length) {
|
|
42762
|
+
this.panels = slotPanels;
|
|
42880
42763
|
}
|
|
42881
|
-
}
|
|
42764
|
+
}
|
|
42765
|
+
await this.syncWithBrStep();
|
|
42766
|
+
this.updatePanels();
|
|
42767
|
+
this.setupMobileDetection();
|
|
42768
|
+
if (this.isMobile) {
|
|
42769
|
+
this.collapsed = true;
|
|
42770
|
+
}
|
|
42882
42771
|
}
|
|
42883
42772
|
/**
|
|
42884
42773
|
* Lifecycle: limpa listeners quando componente é removido.
|
|
@@ -42896,20 +42785,16 @@ class Wizard {
|
|
|
42896
42785
|
* Executa validação via evento `brWizardBeforeStepChange` antes de navegar.
|
|
42897
42786
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42898
42787
|
*/
|
|
42899
|
-
nextStep() {
|
|
42900
|
-
return
|
|
42901
|
-
return yield this.navigateToStep(this.currentStep + 1);
|
|
42902
|
-
});
|
|
42788
|
+
async nextStep() {
|
|
42789
|
+
return await this.navigateToStep(this.currentStep + 1);
|
|
42903
42790
|
}
|
|
42904
42791
|
/**
|
|
42905
42792
|
* Volta para a etapa anterior.
|
|
42906
42793
|
* Não executa validação ao retornar.
|
|
42907
42794
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42908
42795
|
*/
|
|
42909
|
-
previousStep() {
|
|
42910
|
-
return
|
|
42911
|
-
return yield this.navigateToStep(this.currentStep - 1);
|
|
42912
|
-
});
|
|
42796
|
+
async previousStep() {
|
|
42797
|
+
return await this.navigateToStep(this.currentStep - 1);
|
|
42913
42798
|
}
|
|
42914
42799
|
/**
|
|
42915
42800
|
* Navega para uma etapa específica.
|
|
@@ -42917,67 +42802,53 @@ class Wizard {
|
|
|
42917
42802
|
* @param stepNumber - Número da etapa de destino (numeração começa em 1)
|
|
42918
42803
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42919
42804
|
*/
|
|
42920
|
-
goToStep(stepNumber) {
|
|
42921
|
-
return
|
|
42922
|
-
return yield this.navigateToStep(stepNumber);
|
|
42923
|
-
});
|
|
42805
|
+
async goToStep(stepNumber) {
|
|
42806
|
+
return await this.navigateToStep(stepNumber);
|
|
42924
42807
|
}
|
|
42925
42808
|
/**
|
|
42926
42809
|
* Retorna à primeira etapa do wizard.
|
|
42927
42810
|
* Não executa validação (útil para reiniciar o fluxo).
|
|
42928
42811
|
* @returns Promise<void>
|
|
42929
42812
|
*/
|
|
42930
|
-
reset() {
|
|
42931
|
-
|
|
42932
|
-
yield this.navigateToStep(1, true);
|
|
42933
|
-
});
|
|
42813
|
+
async reset() {
|
|
42814
|
+
await this.navigateToStep(1, true);
|
|
42934
42815
|
}
|
|
42935
42816
|
/**
|
|
42936
42817
|
* Retorna o elemento HTML do painel ativo no momento.
|
|
42937
42818
|
* @returns Promise<HTMLElement | null>
|
|
42938
42819
|
*/
|
|
42939
|
-
getCurrentStep() {
|
|
42940
|
-
return
|
|
42941
|
-
return this.panels[this.currentStep - 1] || null;
|
|
42942
|
-
});
|
|
42820
|
+
async getCurrentStep() {
|
|
42821
|
+
return this.panels[this.currentStep - 1] || null;
|
|
42943
42822
|
}
|
|
42944
42823
|
/**
|
|
42945
42824
|
* Retorna todos os painéis do wizard.
|
|
42946
42825
|
* @returns Promise<HTMLElement[]>
|
|
42947
42826
|
*/
|
|
42948
|
-
getAllSteps() {
|
|
42949
|
-
return
|
|
42950
|
-
return [...this.panels];
|
|
42951
|
-
});
|
|
42827
|
+
async getAllSteps() {
|
|
42828
|
+
return [...this.panels];
|
|
42952
42829
|
}
|
|
42953
42830
|
/**
|
|
42954
42831
|
* Retorna um painel específico pelo índice.
|
|
42955
42832
|
* @param stepNumber - Número da etapa (numeração começa em 1)
|
|
42956
42833
|
* @returns Promise<HTMLElement | null>
|
|
42957
42834
|
*/
|
|
42958
|
-
getStepByIndex(stepNumber) {
|
|
42959
|
-
return
|
|
42960
|
-
return this.panels[stepNumber - 1] || null;
|
|
42961
|
-
});
|
|
42835
|
+
async getStepByIndex(stepNumber) {
|
|
42836
|
+
return this.panels[stepNumber - 1] || null;
|
|
42962
42837
|
}
|
|
42963
42838
|
/**
|
|
42964
42839
|
* Retorna o índice (número) da etapa atual.
|
|
42965
42840
|
* A numeração começa em 1 (primeira etapa = 1, segunda = 2, etc).
|
|
42966
42841
|
* @returns Promise<number>
|
|
42967
42842
|
*/
|
|
42968
|
-
getCurrentStepIndex() {
|
|
42969
|
-
return
|
|
42970
|
-
return this.currentStep;
|
|
42971
|
-
});
|
|
42843
|
+
async getCurrentStepIndex() {
|
|
42844
|
+
return this.currentStep;
|
|
42972
42845
|
}
|
|
42973
42846
|
/**
|
|
42974
42847
|
* Retorna o número total de etapas do wizard.
|
|
42975
42848
|
* @returns Promise<number>
|
|
42976
42849
|
*/
|
|
42977
|
-
getTotalSteps() {
|
|
42978
|
-
return
|
|
42979
|
-
return this.panels.length;
|
|
42980
|
-
});
|
|
42850
|
+
async getTotalSteps() {
|
|
42851
|
+
return this.panels.length;
|
|
42981
42852
|
}
|
|
42982
42853
|
// ========================================
|
|
42983
42854
|
// NAVEGAÇÃO E VALIDAÇÃO
|
|
@@ -42993,64 +42864,62 @@ class Wizard {
|
|
|
42993
42864
|
* @param skipValidation - Se true, pula validação (útil para reset/programático)
|
|
42994
42865
|
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
42995
42866
|
*/
|
|
42996
|
-
navigateToStep(
|
|
42997
|
-
|
|
42998
|
-
|
|
42999
|
-
|
|
43000
|
-
|
|
43001
|
-
|
|
43002
|
-
|
|
43003
|
-
|
|
42867
|
+
async navigateToStep(targetStep, skipValidation = false) {
|
|
42868
|
+
/**
|
|
42869
|
+
* VALIDAÇÕES BÁSICAS
|
|
42870
|
+
* 1. Verifica se targetStep está dentro dos limites válidos
|
|
42871
|
+
* 2. Se já estamos na etapa alvo, retorna sucesso imediatamente
|
|
42872
|
+
*/
|
|
42873
|
+
if (targetStep < 1 || targetStep > this.panels.length) {
|
|
42874
|
+
return false;
|
|
42875
|
+
}
|
|
42876
|
+
if (targetStep === this.currentStep) {
|
|
42877
|
+
return true;
|
|
42878
|
+
}
|
|
42879
|
+
/**
|
|
42880
|
+
* MODO LINEAR: RESTRIÇÕES
|
|
42881
|
+
* No modo linear, não é permitido pular para etapas futuras não visitadas.
|
|
42882
|
+
* É possível voltar, mas não avançar além da próxima etapa sequencial.
|
|
42883
|
+
*/
|
|
42884
|
+
if (this.progressionType === 'linear') {
|
|
42885
|
+
if (targetStep > this.currentStep + 1) {
|
|
42886
|
+
const message = `Não é possível pular etapas. Complete a etapa ${this.currentStep + 1} antes de avançar.`;
|
|
42887
|
+
this.announceToScreenReader(message);
|
|
42888
|
+
this.brWizardNavigationBlocked.emit('linear-progression');
|
|
43004
42889
|
return false;
|
|
43005
42890
|
}
|
|
43006
|
-
|
|
43007
|
-
|
|
43008
|
-
|
|
43009
|
-
|
|
43010
|
-
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
|
|
43015
|
-
|
|
43016
|
-
|
|
43017
|
-
|
|
43018
|
-
|
|
43019
|
-
|
|
43020
|
-
}
|
|
43021
|
-
}
|
|
42891
|
+
}
|
|
42892
|
+
/**
|
|
42893
|
+
* VALIDAÇÃO CUSTOMIZADA
|
|
42894
|
+
* Emite evento brWizardBeforeStepChange APENAS se:
|
|
42895
|
+
* 1. Não estamos pulando validação (skipValidation=false)
|
|
42896
|
+
* 2. Estamos AVANÇANDO (targetStep > currentStep)
|
|
42897
|
+
*
|
|
42898
|
+
* Observações:
|
|
42899
|
+
* - Voltar não precisa validar
|
|
42900
|
+
* - Validação se aplica a ambos os modos (linear e nonlinear)
|
|
42901
|
+
*/
|
|
42902
|
+
const shouldValidate = !skipValidation && targetStep > this.currentStep;
|
|
42903
|
+
if (shouldValidate) {
|
|
42904
|
+
const eventResult = this.brWizardBeforeStepChange.emit(targetStep);
|
|
43022
42905
|
/**
|
|
43023
|
-
*
|
|
43024
|
-
*
|
|
43025
|
-
* 1. Não estamos pulando validação (skipValidation=false)
|
|
43026
|
-
* 2. Estamos AVANÇANDO (targetStep > currentStep)
|
|
43027
|
-
*
|
|
43028
|
-
* Observações:
|
|
43029
|
-
* - Voltar não precisa validar
|
|
43030
|
-
* - Validação se aplica a ambos os modos (linear e nonlinear)
|
|
42906
|
+
* Se preventDefault() foi chamado no listener do evento,
|
|
42907
|
+
* bloqueia a navegação e retorna false
|
|
43031
42908
|
*/
|
|
43032
|
-
|
|
43033
|
-
|
|
43034
|
-
|
|
43035
|
-
|
|
43036
|
-
|
|
43037
|
-
* bloqueia a navegação e retorna false
|
|
43038
|
-
*/
|
|
43039
|
-
if (eventResult.defaultPrevented) {
|
|
43040
|
-
const message = 'Não é possível avançar. Verifique os campos obrigatórios da etapa atual.';
|
|
43041
|
-
this.announceToScreenReader(message);
|
|
43042
|
-
this.brWizardNavigationBlocked.emit('validation-failed');
|
|
43043
|
-
return false;
|
|
43044
|
-
}
|
|
42909
|
+
if (eventResult.defaultPrevented) {
|
|
42910
|
+
const message = 'Não é possível avançar. Verifique os campos obrigatórios da etapa atual.';
|
|
42911
|
+
this.announceToScreenReader(message);
|
|
42912
|
+
this.brWizardNavigationBlocked.emit('validation-failed');
|
|
42913
|
+
return false;
|
|
43045
42914
|
}
|
|
43046
|
-
|
|
43047
|
-
|
|
43048
|
-
|
|
43049
|
-
|
|
43050
|
-
|
|
43051
|
-
|
|
43052
|
-
|
|
43053
|
-
|
|
42915
|
+
}
|
|
42916
|
+
/**
|
|
42917
|
+
* EXECUTA NAVEGAÇÃO
|
|
42918
|
+
* Atualiza o estado interno e emite evento de confirmação
|
|
42919
|
+
*/
|
|
42920
|
+
this.currentStep = targetStep;
|
|
42921
|
+
this.brWizardStepChange.emit(this.currentStep);
|
|
42922
|
+
return true;
|
|
43054
42923
|
}
|
|
43055
42924
|
// ========================================
|
|
43056
42925
|
// SINCRONIZAÇÃO COM BR-STEP
|
|
@@ -43061,35 +42930,33 @@ class Wizard {
|
|
|
43061
42930
|
* O br-step já gerencia completamente os atributos 'active' via componentShouldUpdate
|
|
43062
42931
|
* e requestAnimationFrame, então apenas chamamos os métodos de navegação dele.
|
|
43063
42932
|
*/
|
|
43064
|
-
syncWithBrStep() {
|
|
43065
|
-
|
|
43066
|
-
|
|
43067
|
-
|
|
43068
|
-
|
|
43069
|
-
|
|
43070
|
-
|
|
43071
|
-
|
|
43072
|
-
|
|
43073
|
-
|
|
43074
|
-
|
|
43075
|
-
|
|
43076
|
-
|
|
43077
|
-
|
|
43078
|
-
|
|
43079
|
-
yield this.stepRef.ProceedToNextStep();
|
|
43080
|
-
}
|
|
42933
|
+
async syncWithBrStep() {
|
|
42934
|
+
if (this.stepRef === null)
|
|
42935
|
+
return;
|
|
42936
|
+
if (typeof this.stepRef.GetActiveStep !== 'function') {
|
|
42937
|
+
return;
|
|
42938
|
+
}
|
|
42939
|
+
this.isSyncingWithStep = true;
|
|
42940
|
+
try {
|
|
42941
|
+
const targetStepIndex = this.currentStep - 1;
|
|
42942
|
+
const currentActiveStep = await this.stepRef.GetActiveStep();
|
|
42943
|
+
if (currentActiveStep !== targetStepIndex) {
|
|
42944
|
+
const diff = targetStepIndex - currentActiveStep;
|
|
42945
|
+
if (diff > 0) {
|
|
42946
|
+
for (let i = 0; i < diff; i++) {
|
|
42947
|
+
await this.stepRef.ProceedToNextStep();
|
|
43081
42948
|
}
|
|
43082
|
-
|
|
43083
|
-
|
|
43084
|
-
|
|
43085
|
-
|
|
42949
|
+
}
|
|
42950
|
+
else {
|
|
42951
|
+
for (let i = 0; i < Math.abs(diff); i++) {
|
|
42952
|
+
await this.stepRef.BackToPreviousStep();
|
|
43086
42953
|
}
|
|
43087
42954
|
}
|
|
43088
42955
|
}
|
|
43089
|
-
|
|
43090
|
-
|
|
43091
|
-
|
|
43092
|
-
}
|
|
42956
|
+
}
|
|
42957
|
+
finally {
|
|
42958
|
+
this.isSyncingWithStep = false;
|
|
42959
|
+
}
|
|
43093
42960
|
}
|
|
43094
42961
|
// ========================================
|
|
43095
42962
|
// GERENCIAMENTO DE PAINÉIS
|
|
@@ -43106,16 +42973,14 @@ class Wizard {
|
|
|
43106
42973
|
* Atualiza estados de todos os painéis.
|
|
43107
42974
|
* Define o índice e o estado ativo de cada painel.
|
|
43108
42975
|
*/
|
|
43109
|
-
updatePanels() {
|
|
43110
|
-
|
|
43111
|
-
|
|
43112
|
-
|
|
43113
|
-
|
|
43114
|
-
|
|
43115
|
-
|
|
43116
|
-
|
|
43117
|
-
}
|
|
43118
|
-
});
|
|
42976
|
+
async updatePanels() {
|
|
42977
|
+
for (let idx = 0; idx < this.panels.length; idx++) {
|
|
42978
|
+
const panel = this.panels[idx];
|
|
42979
|
+
const stepNumber = idx + 1;
|
|
42980
|
+
const isActive = stepNumber === this.currentStep;
|
|
42981
|
+
await panel.setIndex(stepNumber);
|
|
42982
|
+
await panel.setActive(isActive);
|
|
42983
|
+
}
|
|
43119
42984
|
}
|
|
43120
42985
|
/**
|
|
43121
42986
|
* Define etapa inicial baseada na prop initialStep.
|
|
@@ -43396,28 +43261,22 @@ class WizardPanel {
|
|
|
43396
43261
|
* Define se o painel está ativo
|
|
43397
43262
|
* @internal Método interno chamado apenas pelo wizard pai
|
|
43398
43263
|
*/
|
|
43399
|
-
setActive(value) {
|
|
43400
|
-
|
|
43401
|
-
this.active = value;
|
|
43402
|
-
});
|
|
43264
|
+
async setActive(value) {
|
|
43265
|
+
this.active = value;
|
|
43403
43266
|
}
|
|
43404
43267
|
/**
|
|
43405
43268
|
* Define o índice do painel
|
|
43406
43269
|
* @internal Método interno chamado apenas pelo wizard pai
|
|
43407
43270
|
*/
|
|
43408
|
-
setIndex(value) {
|
|
43409
|
-
|
|
43410
|
-
this.index = value;
|
|
43411
|
-
});
|
|
43271
|
+
async setIndex(value) {
|
|
43272
|
+
this.index = value;
|
|
43412
43273
|
}
|
|
43413
43274
|
/**
|
|
43414
43275
|
* Retorna se o painel está ativo
|
|
43415
43276
|
* @internal Método interno para o wizard pai consultar o estado
|
|
43416
43277
|
*/
|
|
43417
|
-
isActive() {
|
|
43418
|
-
return
|
|
43419
|
-
return this.active;
|
|
43420
|
-
});
|
|
43278
|
+
async isActive() {
|
|
43279
|
+
return this.active;
|
|
43421
43280
|
}
|
|
43422
43281
|
render() {
|
|
43423
43282
|
const hostAttrs = Object.assign({}, (this.active && { active: 'true' }));
|