@mgdis/mg-components 6.27.0 → 6.28.0
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/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_36.cjs.entry.js +365 -77
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js +36 -2
- package/dist/cjs/mg-input-file.cjs.entry.js +25 -2
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +717 -504
- package/dist/collection/assets/jodit/jodit.css +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +86 -13
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +24 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +36 -2
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +25 -9
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +25 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +24 -6
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +24 -5
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +64 -16
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +32 -10
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +24 -5
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +24 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +74 -8
- package/dist/components/mg-button2.js +1 -1
- package/dist/components/mg-form.js +1 -1
- package/dist/components/mg-input-checkbox.js +1 -1
- package/dist/components/mg-input-combobox.js +1 -1
- package/dist/components/mg-input-date.js +1 -1
- package/dist/components/mg-input-file.js +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-radio.js +1 -1
- package/dist/components/mg-input-rich-text-editor.js +262 -262
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-modal.js +1 -1
- package/dist/custom-elements.json +12 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_36.entry.js +366 -78
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-input-combobox.entry.js +36 -2
- package/dist/esm/mg-input-file.entry.js +25 -2
- package/dist/esm/mg-input-rich-text-editor.entry.js +717 -504
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-2198f145.entry.js +1 -0
- package/dist/mg-components/p-d4a4eb78.entry.js +1 -0
- package/dist/mg-components/{p-6f492676.entry.js → p-e8b5e8d8.entry.js} +261 -261
- package/dist/mg-components/p-fdcce8d5.entry.js +1 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +41 -2
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +1 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +10 -1
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-file/mg-input-file.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +29 -2
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +10 -1
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +9 -0
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +9 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +18 -0
- package/dist/types/components.d.ts +10 -2
- package/ide/intellij/web-types.json +4 -4
- package/ide/vscode/html-custom-data.json +3 -3
- package/package.json +19 -19
- package/dist/mg-components/p-32a55ddb.entry.js +0 -1
- package/dist/mg-components/p-813d69c7.entry.js +0 -1
- package/dist/mg-components/p-a2445605.entry.js +0 -1
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy(JSON.parse("[[\"mg-action-more_36\",[[1,\"mg-input-checkbox\",{\"value\":[1040],\"type\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"displaySelectedValues\":[4,\"display-selected-values\"],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"editButtonMessage\":[1,\"edit-button-message\"],\"showButtonMessage\":[1,\"show-button-message\"],\"selectButtonMessage\":[1,\"select-button-message\"],\"classCollection\":[32],\"errorMessage\":[32],\"checkboxItems\":[32],\"displaySearchInput\":[32],\"searchValue\":[32],\"searchResults\":[32],\"selectValuesButtonKey\":[32],\"activeTab\":[32],\"paginatedLimits\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"type\":[{\"validateType\":0}],\"inputVerticalList\":[{\"watchInputVerticalList\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"displaySelectedValues\":[{\"watchDisplaySelectedValues\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"validateDisabled\":0}],\"checkboxItems\":[{\"validateCheckboxItems\":0}],\"displaySearchInput\":[{\"watchDisplaySearchInput\":0}],\"searchValue\":[{\"validateSearchValue\":0}]}],[1,\"mg-action-more\",{\"items\":[16],\"icon\":[1040],\"button\":[16],\"displayChevron\":[4,\"display-chevron\"],\"expanded\":[32]},null,{\"items\":[{\"validateItems\":0}],\"icon\":[{\"validateIcon\":0}],\"button\":[{\"validateButton\":0}],\"displayChevron\":[{\"validateDisplayChevron\":0}]}],[257,\"mg-panel\",{\"identifier\":[1],\"panelTitle\":[1025,\"panel-title\"],\"titlePattern\":[1,\"title-pattern\"],\"titlePatternErrorMessage\":[1,\"title-pattern-error-message\"],\"titleEditable\":[1028,\"title-editable\"],\"titlePosition\":[1025,\"title-position\"],\"expanded\":[1028],\"expandToggleDisplay\":[1025,\"expand-toggle-display\"],\"expandToggleDisabled\":[4,\"expand-toggle-disabled\"],\"shadow\":[4],\"classCollection\":[32],\"isEditing\":[32],\"updatedPanelTitle\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"panelTitle\":[{\"validatePanelTitle\":0}],\"titlePattern\":[{\"validateTitlePattern\":0}],\"titlePatternErrorMessage\":[{\"validateTitlePattern\":0}],\"titleEditable\":[{\"validateTitleEditable\":0}],\"titlePosition\":[{\"validateTitlePosition\":0}],\"expanded\":[{\"handleExpanded\":0}],\"expandToggleDisplay\":[{\"validateExpandToggleDisplay\":0}]}],[1,\"mg-pagination\",{\"identifier\":[1],\"label\":[1025],\"hideNavigationLabels\":[4,\"hide-navigation-labels\"],\"hidePageCount\":[4,\"hide-page-count\"],\"totalPages\":[2,\"total-pages\"],\"currentPage\":[1538,\"current-page\"],\"messages\":[16]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"totalPages\":[{\"validateTotalPages\":0}],\"currentPage\":[{\"validateCurrentPage\":0}],\"messages\":[{\"watchPaginationMessages\":0}]}],[1,\"mg-input-password\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"displayPassword\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}]}],[1,\"mg-input-textarea\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"rows\":[2],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1,\"help-text\"],\"resizable\":[1],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"validateDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"pattern\":[{\"validatePattern\":0}],\"patternErrorMessage\":[{\"validatePattern\":0}],\"characterLeftHide\":[{\"validatecharacterLeftHide\":0}]}],[1,\"mg-input-date\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"required\":[4],\"readonly\":[4],\"min\":[1],\"max\":[1],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"min\":[{\"validateMinMax\":0},{\"handleValidityChange\":0}],\"max\":[{\"validateMinMax\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}]}],[257,\"mg-input-numeric\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"max\":[2],\"min\":[2],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"type\":[1],\"format\":[1],\"currency\":[1],\"unit\":[1],\"unitDisplay\":[1,\"unit-display\"],\"integerLength\":[2,\"integer-length\"],\"decimalLength\":[2,\"decimal-length\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"hasFocus\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"min\":[{\"handleValidityChange\":0}],\"max\":[{\"handleValidityChange\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"type\":[{\"validateType\":0}],\"format\":[{\"watchFormat\":0}],\"integerLength\":[{\"validateIntegerLength\":0}],\"decimalLength\":[{\"validateDecimalLength\":0}]}],[1,\"mg-input-radio\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"readonlyValue\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"validateItems\":0}],\"inputVerticalList\":[{\"watchInputVerticalList\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}]}],[257,\"mg-input-toggle\",{\"value\":[1040],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"isOnOff\":[1028,\"is-on-off\"],\"isIcon\":[4,\"is-icon\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"classCollection\":[32],\"options\":[32],\"errorMessage\":[32],\"valid\":[32],\"setFocus\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"watchItems\":0}],\"isOnOff\":[{\"watchIsOnOff\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"readonly\":[{\"watchReadonly\":0}],\"disabled\":[{\"watchDisabled\":0}]}],[257,\"mg-modal\",{\"identifier\":[1],\"dialogRole\":[1,\"dialog-role\"],\"modalTitle\":[1,\"modal-title\"],\"closeButton\":[4,\"close-button\"],\"open\":[1028],\"hasActions\":[32],\"classCollection\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"dialogRole\":[{\"validateDialogRole\":0}],\"modalTitle\":[{\"validateModalTitle\":0}],\"open\":[{\"watchOpen\":0}]}],[257,\"mg-details\",{\"toggleClosed\":[1,\"toggle-closed\"],\"toggleOpened\":[1,\"toggle-opened\"],\"hideSummary\":[4,\"hide-summary\"],\"expanded\":[1028]},null,{\"toggleClosed\":[{\"validateTitles\":0}],\"toggleOpened\":[{\"validateTitles\":0}],\"expanded\":[{\"handleExpanded\":0}]}],[1,\"mg-table\",{\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"borderHide\":[4,\"border-hide\"],\"columns\":[16],\"classCollection\":[32]},null,{\"size\":[{\"watchSize\":0}],\"fullWidth\":[{\"watchFullWidth\":0}],\"borderHide\":[{\"watchBorderHide\":0}],\"columns\":[{\"watchColumns\":0}]}],[257,\"mg-form\",{\"identifier\":[1],\"name\":[1],\"readonly\":[4],\"requiredMessage\":[1,\"required-message\"],\"ariaRole\":[1,\"aria-role\"],\"labelOnTop\":[4,\"label-on-top\"],\"disabled\":[4],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"requiredMessageText\":[32],\"hasActions\":[32],\"displayError\":[64],\"reset\":[64]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"requiredMessage\":[{\"validateRequiredMessage\":0},{\"handleAttributeChange\":0}],\"ariaRole\":[{\"validateAriaRole\":0}],\"labelOnTop\":[{\"handlelabelOnTop\":0}],\"readonly\":[{\"handleAttributeChange\":0}],\"disabled\":[{\"handleAttributeChange\":0}]}],[257,\"mg-illustrated-message\",{\"size\":[1],\"direction\":[1],\"align\":[1],\"classCollection\":[32]},null,{\"size\":[{\"watchSize\":0}],\"direction\":[{\"watchDirection\":0}],\"align\":[{\"watchAlign\":0}]}],[1,\"mg-skip-links\",{\"links\":[16]},null,{\"links\":[{\"validateLinks\":0}]}],[257,\"mg-tag\",{\"variant\":[1],\"outline\":[4],\"soft\":[4],\"classCollection\":[32]},null,{\"variant\":[{\"validateVariant\":0}],\"outline\":[{\"validateOutline\":0}],\"soft\":[{\"validateSoft\":0}]}],[1,\"mg-input-select\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1025],\"placeholderHide\":[4,\"placeholder-hide\"],\"placeholderDisabled\":[4,\"placeholder-disabled\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[520,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"valueExist\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"items\":[{\"validateItems\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}]}],[257,\"mg-message\",{\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"fullWidth\":[516,\"full-width\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"variant\":[{\"watchVariant\":0}],\"variantStyle\":[{\"watchVariantStyle\":0}],\"fullWidth\":[{\"watchFullWidth\":0}]}],[257,\"mg-tabs\",{\"identifier\":[1],\"label\":[1],\"size\":[16],\"items\":[16],\"activeTab\":[1538,\"active-tab\"],\"tabs\":[32],\"classCollection\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"label\":[{\"validateLabel\":0}],\"items\":[{\"validateItems\":0}],\"activeTab\":[{\"validateActiveTab\":0}]}],[1,\"mg-divider\",{\"fullWidth\":[4,\"full-width\"],\"direction\":[1025]},null,{\"direction\":[{\"validateDirection\":0}]}],[257,\"mg-input-text\",{\"value\":[1544],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"type\":[1],\"icon\":[1],\"placeholder\":[1],\"datalistoptions\":[16],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"type\":[{\"validateType\":0}],\"icon\":[{\"validateIcon\":0}],\"datalistoptions\":[{\"validateDatalistoptions\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"pattern\":[{\"watchPattern\":0}],\"patternErrorMessage\":[{\"watchPattern\":0}],\"characterLeftHide\":[{\"validateCharacterLeftHide\":0}],\"helpText\":[{\"watchHelpText\":0}]}],[1,\"mg-item-more\",{\"icon\":[16],\"slotlabel\":[16],\"parentMenu\":[32]},null,{\"icon\":[{\"validateIcon\":0}],\"slotlabel\":[{\"validateSlotLabel\":0}]}],[257,\"mg-menu\",{\"label\":[1],\"direction\":[513],\"size\":[16],\"itemmore\":[16]},[[0,\"item-loaded\",\"updateItemListener\"]],{\"label\":[{\"validateLabel\":0}],\"direction\":[{\"validateDirection\":0}],\"itemmore\":[{\"validateItemMore\":0}]}],[257,\"mg-menu-item\",{\"identifier\":[513],\"href\":[1],\"target\":[1],\"status\":[1537],\"isIcon\":[1028,\"is-icon\"],\"expanded\":[1028],\"classNavigationButtonClassList\":[32],\"direction\":[32],\"isItemMore\":[32],\"hasChildren\":[32],\"displayNotificationBadge\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"target\":[{\"watchTarget\":0}],\"status\":[{\"watchStatus\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"expanded\":[{\"watchExpanded\":0}],\"direction\":[{\"validateDirection\":0}],\"hasChildren\":[{\"validateHasChildren\":0}],\"data-style-direction\":[{\"watchDataStyleDirection\":0}],\"data-has-focus\":[{\"watchDataHasFocus\":0}]}],[2,\"mg-character-left\",{\"identifier\":[1],\"characters\":[1],\"maxlength\":[2]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"maxlength\":[{\"validateMaxlength\":0}]}],[257,\"mg-popover\",{\"identifier\":[1],\"placement\":[1],\"arrowHide\":[16],\"closeButton\":[4,\"close-button\"],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[{\"validateIdentifier\":0}],\"closeButton\":[{\"validateCloseButton\":0}],\"display\":[{\"handleDisplay\":0}]}],[1,\"mg-badge\",{\"value\":[8],\"label\":[1],\"variant\":[1025],\"outline\":[4],\"classCollection\":[32]},null,{\"value\":[{\"validateValue\":0}],\"label\":[{\"validateLabel\":0}],\"variant\":[{\"validateVariant\":0}],\"outline\":[{\"validateOutline\":0}]}],[257,\"mg-popover-content\",{\"closeButton\":[4,\"close-button\"],\"classCollection\":[32]}],[257,\"mg-card\",{\"shadow\":[4],\"radiusSize\":[1025,\"radius-size\"],\"classCollection\":[32]},null,{\"shadow\":[{\"watchShadow\":0}],\"radiusSize\":[{\"watchRadiusSize\":0}]}],[257,\"mg-button\",{\"variant\":[1025],\"label\":[1],\"type\":[1],\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"form\":[1],\"disabled\":[1028],\"isIcon\":[4,\"is-icon\"],\"disableOnClick\":[4,\"disable-on-click\"],\"loading\":[32],\"classCollection\":[32]},null,{\"variant\":[{\"validateVariant\":0}],\"size\":[{\"validateSize\":0}],\"fullWidth\":[{\"validateFullWidth\":0}],\"disabled\":[{\"disabledHandler\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"loading\":[{\"loadingHandler\":0}]}],[257,\"mg-input\",{\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"labelHeading\":[1025,\"label-heading\"],\"labelBorderDisplay\":[4,\"label-border-display\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"required\":[4],\"errorMessage\":[1,\"error-message\"],\"helpText\":[1,\"help-text\"],\"inputsOnBottom\":[4,\"inputs-on-bottom\"],\"ariaDescribedbyIDs\":[1025,\"aria-describedby-i-ds\"],\"isFieldset\":[32],\"isReadonly\":[32],\"isDisabled\":[32],\"isVerticalList\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0},{\"watchAriaDescribedbyIDs\":0}],\"labelOnTop\":[{\"watchLabelOnTop\":0},{\"watchLabelConfig\":0}],\"labelHide\":[{\"watchLabelConfig\":0}],\"labelHeading\":[{\"watchlabelHeading\":0}],\"labelBorderDisplay\":[{\"watchLabelBorderDisplay\":0}],\"tooltipPosition\":[{\"watchTooltipPosition\":0}],\"errorMessage\":[{\"watchErrorMessage\":0},{\"watchAriaDescribedbyIDs\":0}],\"helpText\":[{\"watchHelpText\":0},{\"watchAriaDescribedbyIDs\":0}],\"inputsOnBottom\":[{\"watchInputsOnBottom\":0}],\"ariaDescribedbyIDs\":[{\"watchAriaDescribedbyIDs\":0}],\"class\":[{\"watchClass\":0},{\"watchLabel\":0}],\"label\":[{\"watchLabel\":0}],\"required\":[{\"watchLabel\":0}],\"isReadonly\":[{\"watchLabel\":0}],\"isFieldset\":[{\"watchLabel\":0}]}],[257,\"mg-tooltip\",{\"identifier\":[1],\"message\":[1],\"placement\":[1],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"message\":[{\"watchMessage\":0}],\"display\":[{\"watchDisplay\":0}],\"disabled\":[{\"watchDisabled\":0}]}],[262,\"mg-input-title\",{\"identifier\":[1],\"required\":[4],\"readonly\":[4],\"isLegend\":[4,\"is-legend\"],\"tagName\":[32]},null,{\"identifier\":[{\"validateIdentifier\":0}],\"isLegend\":[{\"validateIsLegend\":0}]}],[257,\"mg-tooltip-content\",{\"message\":[1]}],[1,\"mg-icon\",{\"icon\":[1],\"size\":[1025],\"variant\":[1],\"variantStyle\":[1025,\"variant-style\"],\"spin\":[4],\"classCollection\":[32]},null,{\"icon\":[{\"validateIcon\":0}],\"size\":[{\"validateSize\":0}],\"variant\":[{\"validateVariant\":0}],\"variantStyle\":[{\"validateVariantStyle\":0}],\"spin\":[{\"handleSpin\":0}]}]]],[\"mg-input-combobox\",[[1,\"mg-input-combobox\",{\"value\":[1537],\"items\":[16],\"itemsLabel\":[1,\"items-label\"],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"popoverPlacement\":[1,\"popover-placement\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"fetchurl\":[1],\"fetchoptions\":[16],\"fetchmappings\":[16],\"valid\":[1028],\"invalid\":[1028],\"isLoading\":[32],\"options\":[32],\"option\":[32],\"filter\":[32],\"classCollection\":[32],\"errorMessage\":[32],\"popoverDisplay\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"watchItems\":0}],\"identifier\":[{\"watchIdentifier\":0}],\"readonly\":[{\"watchReadonly\":0},{\"watchValidityChange\":0}],\"required\":[{\"watchValidityChange\":0}],\"disabled\":[{\"watchValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"fetchurl\":[{\"watchFetchUrl\":0}],\"fetchoptions\":[{\"watchFetchOptions\":0}],\"fetchmappings\":[{\"watchFetchMappings\":0}],\"options\":[{\"watchOptions\":0}],\"filter\":[{\"watchFilter\":0}],\"popoverDisplay\":[{\"watchPopoverDisplay\":0}]}]]],[\"mg-input-file\",[[1,\"mg-input-file\",{\"value\":[1032],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"multiple\":[4],\"accept\":[1],\"maxSize\":[2,\"max-size\"],\"capture\":[1],\"required\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"files\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0},{\"watchMultiple\":0}],\"multiple\":[{\"watchMultiple\":0}],\"accept\":[{\"watchAccept\":0},{\"watchHelpText\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"helpText\":[{\"watchHelpText\":0}],\"maxSize\":[{\"watchHelpText\":0}],\"files\":[{\"watchFiles\":0}]}]]],[\"mg-fieldset\",[[257,\"mg-fieldset\",{\"identifier\":[1],\"name\":[1],\"legend\":[1],\"legendHide\":[4,\"legend-hide\"],\"legendHeading\":[1,\"legend-heading\"],\"legendBorderDisplay\":[4,\"legend-border-display\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"helpText\":[1,\"help-text\"],\"errorMessage\":[32],\"valid\":[32],\"classCollection\":[32],\"setCustomValidity\":[64],\"displayError\":[64]},null,{\"legendBorderDisplay\":[{\"watchLegendBorderDisplay\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleAttributeChange\":0}],\"disabled\":[{\"handleAttributeChange\":0}]}]]],[\"mg-input-rich-text-editor\",[[1,\"mg-input-rich-text-editor\",{\"value\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"rows\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"modules\":[1],\"customActions\":[16],\"sanitizerOptions\":[16],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"getEditorHTML\":[64],\"getEditorText\":[64],\"getSelectedText\":[64],\"getSelectedHTML\":[64],\"replaceSelection\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"disabled\":[{\"watchDisabled\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"pattern\":[{\"validatePattern\":0}],\"patternErrorMessage\":[{\"validatePattern\":0}],\"modules\":[{\"watchModules\":0}],\"customActions\":[{\"watchCustomActions\":0}],\"sanitizerOptions\":[{\"watchSanitizerOptions\":0}]}]]],[\"mg-alert\",[[257,\"mg-alert\",{\"delay\":[2],\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"fullWidth\":[4,\"full-width\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"delay\":[{\"watchDelay\":0}],\"variant\":[{\"watchVariant\":0}],\"variantStyle\":[{\"watchVariantStyle\":0}],\"hidden\":[{\"watchHidden\":0}]}]]],[\"mg-breadcrumb\",[[1,\"mg-breadcrumb\",{\"items\":[16]},null,{\"items\":[{\"validateItems\":0}]}]]],[\"mg-illustration\",[[1,\"mg-illustration\",{\"illustration\":[1]},null,{\"illustration\":[{\"validateIllustration\":0}]}]]],[\"mg-progress\",[[1,\"mg-progress\",{\"label\":[1],\"ariaRole\":[1,\"aria-role\"],\"value\":[2],\"min\":[2],\"max\":[2]},null,{\"label\":[{\"watchLabel\":0}],\"ariaRole\":[{\"watchAriaRole\":0}],\"value\":[{\"watchValue\":0}],\"min\":[{\"watchMin\":0}],\"max\":[{\"watchMax\":0}]}]]],[\"mg-loader\",[[1,\"mg-loader\",{\"message\":[1],\"messageHide\":[4,\"message-hide\"]},null,{\"message\":[{\"watchMessage\":0}]}]]]]"), options);
|
|
19
|
+
return bootstrapLazy(JSON.parse("[[\"mg-action-more_36\",[[1,\"mg-input-checkbox\",{\"value\":[1040],\"type\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"displaySelectedValues\":[4,\"display-selected-values\"],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"editButtonMessage\":[1,\"edit-button-message\"],\"showButtonMessage\":[1,\"show-button-message\"],\"selectButtonMessage\":[1,\"select-button-message\"],\"classCollection\":[32],\"errorMessage\":[32],\"checkboxItems\":[32],\"displaySearchInput\":[32],\"searchValue\":[32],\"searchResults\":[32],\"selectValuesButtonKey\":[32],\"activeTab\":[32],\"paginatedLimits\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"type\":[{\"validateType\":0}],\"inputVerticalList\":[{\"watchInputVerticalList\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"displaySelectedValues\":[{\"watchDisplaySelectedValues\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"validateDisabled\":0}],\"checkboxItems\":[{\"validateCheckboxItems\":0}],\"displaySearchInput\":[{\"watchDisplaySearchInput\":0}],\"searchValue\":[{\"validateSearchValue\":0}]}],[1,\"mg-action-more\",{\"items\":[16],\"icon\":[1040],\"button\":[16],\"displayChevron\":[4,\"display-chevron\"],\"expanded\":[32]},null,{\"items\":[{\"validateItems\":0}],\"icon\":[{\"validateIcon\":0}],\"button\":[{\"validateButton\":0}],\"displayChevron\":[{\"validateDisplayChevron\":0}]}],[257,\"mg-panel\",{\"identifier\":[1],\"panelTitle\":[1025,\"panel-title\"],\"titlePattern\":[1,\"title-pattern\"],\"titlePatternErrorMessage\":[1,\"title-pattern-error-message\"],\"titleEditable\":[1028,\"title-editable\"],\"titlePosition\":[1025,\"title-position\"],\"expanded\":[1028],\"expandToggleDisplay\":[1025,\"expand-toggle-display\"],\"expandToggleDisabled\":[4,\"expand-toggle-disabled\"],\"shadow\":[4],\"classCollection\":[32],\"isEditing\":[32],\"updatedPanelTitle\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"panelTitle\":[{\"validatePanelTitle\":0}],\"titlePattern\":[{\"validateTitlePattern\":0}],\"titlePatternErrorMessage\":[{\"validateTitlePattern\":0}],\"titleEditable\":[{\"validateTitleEditable\":0}],\"titlePosition\":[{\"validateTitlePosition\":0}],\"expanded\":[{\"handleExpanded\":0}],\"expandToggleDisplay\":[{\"validateExpandToggleDisplay\":0}]}],[1,\"mg-pagination\",{\"identifier\":[1],\"label\":[1025],\"hideNavigationLabels\":[4,\"hide-navigation-labels\"],\"hidePageCount\":[4,\"hide-page-count\"],\"totalPages\":[2,\"total-pages\"],\"currentPage\":[1538,\"current-page\"],\"messages\":[16]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"totalPages\":[{\"validateTotalPages\":0}],\"currentPage\":[{\"validateCurrentPage\":0}],\"messages\":[{\"watchPaginationMessages\":0}]}],[1,\"mg-input-password\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"displayPassword\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}]}],[1,\"mg-input-textarea\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"rows\":[2],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1,\"help-text\"],\"resizable\":[1],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"validateDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"pattern\":[{\"validatePattern\":0}],\"patternErrorMessage\":[{\"validatePattern\":0}],\"characterLeftHide\":[{\"validatecharacterLeftHide\":0}]}],[1,\"mg-input-date\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"required\":[4],\"readonly\":[4],\"min\":[1],\"max\":[1],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"min\":[{\"validateMinMax\":0},{\"handleValidityChange\":0}],\"max\":[{\"validateMinMax\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}]}],[257,\"mg-input-numeric\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"max\":[2],\"min\":[2],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"type\":[1],\"format\":[1],\"currency\":[1],\"unit\":[1],\"unitDisplay\":[1,\"unit-display\"],\"integerLength\":[2,\"integer-length\"],\"decimalLength\":[2,\"decimal-length\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"hasFocus\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"min\":[{\"handleValidityChange\":0}],\"max\":[{\"handleValidityChange\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"type\":[{\"validateType\":0}],\"format\":[{\"watchFormat\":0}],\"integerLength\":[{\"validateIntegerLength\":0}],\"decimalLength\":[{\"validateDecimalLength\":0}]}],[1,\"mg-input-radio\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"readonlyValue\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"validateItems\":0}],\"inputVerticalList\":[{\"watchInputVerticalList\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}]}],[257,\"mg-input-toggle\",{\"value\":[1040],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"isOnOff\":[1028,\"is-on-off\"],\"isIcon\":[4,\"is-icon\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"classCollection\":[32],\"options\":[32],\"errorMessage\":[32],\"valid\":[32],\"setFocus\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"watchItems\":0}],\"isOnOff\":[{\"watchIsOnOff\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"readonly\":[{\"watchReadonly\":0}],\"disabled\":[{\"watchDisabled\":0}]}],[257,\"mg-modal\",{\"identifier\":[1],\"dialogRole\":[1,\"dialog-role\"],\"modalTitle\":[1,\"modal-title\"],\"closeButton\":[4,\"close-button\"],\"open\":[1028],\"hasActions\":[32],\"classCollection\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"dialogRole\":[{\"validateDialogRole\":0}],\"modalTitle\":[{\"validateModalTitle\":0}],\"open\":[{\"watchOpen\":0}]}],[257,\"mg-details\",{\"toggleClosed\":[1,\"toggle-closed\"],\"toggleOpened\":[1,\"toggle-opened\"],\"hideSummary\":[4,\"hide-summary\"],\"expanded\":[1028]},null,{\"toggleClosed\":[{\"validateTitles\":0}],\"toggleOpened\":[{\"validateTitles\":0}],\"expanded\":[{\"handleExpanded\":0}]}],[1,\"mg-table\",{\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"borderHide\":[4,\"border-hide\"],\"columns\":[16],\"classCollection\":[32]},null,{\"size\":[{\"watchSize\":0}],\"fullWidth\":[{\"watchFullWidth\":0}],\"borderHide\":[{\"watchBorderHide\":0}],\"columns\":[{\"watchColumns\":0}]}],[257,\"mg-form\",{\"identifier\":[1],\"name\":[1],\"readonly\":[4],\"requiredMessage\":[1,\"required-message\"],\"ariaRole\":[1,\"aria-role\"],\"labelOnTop\":[4,\"label-on-top\"],\"disabled\":[4],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"requiredMessageText\":[32],\"hasActions\":[32],\"displayError\":[64],\"reset\":[64],\"requestSubmit\":[64],\"focusFirstInvalidInput\":[64]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"requiredMessage\":[{\"validateRequiredMessage\":0},{\"handleAttributeChange\":0}],\"ariaRole\":[{\"validateAriaRole\":0}],\"labelOnTop\":[{\"handlelabelOnTop\":0}],\"readonly\":[{\"handleAttributeChange\":0}],\"disabled\":[{\"handleAttributeChange\":0}]}],[257,\"mg-illustrated-message\",{\"size\":[1],\"direction\":[1],\"align\":[1],\"classCollection\":[32]},null,{\"size\":[{\"watchSize\":0}],\"direction\":[{\"watchDirection\":0}],\"align\":[{\"watchAlign\":0}]}],[1,\"mg-skip-links\",{\"links\":[16]},null,{\"links\":[{\"validateLinks\":0}]}],[257,\"mg-tag\",{\"variant\":[1],\"outline\":[4],\"soft\":[4],\"classCollection\":[32]},null,{\"variant\":[{\"validateVariant\":0}],\"outline\":[{\"validateOutline\":0}],\"soft\":[{\"validateSoft\":0}]}],[1,\"mg-input-select\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1025],\"placeholderHide\":[4,\"placeholder-hide\"],\"placeholderDisabled\":[4,\"placeholder-disabled\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[520,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"valueExist\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"validateValue\":0}],\"items\":[{\"validateItems\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}]}],[257,\"mg-message\",{\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"fullWidth\":[516,\"full-width\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"variant\":[{\"watchVariant\":0}],\"variantStyle\":[{\"watchVariantStyle\":0}],\"fullWidth\":[{\"watchFullWidth\":0}]}],[257,\"mg-tabs\",{\"identifier\":[1],\"label\":[1],\"size\":[16],\"items\":[16],\"activeTab\":[1538,\"active-tab\"],\"tabs\":[32],\"classCollection\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"label\":[{\"validateLabel\":0}],\"items\":[{\"validateItems\":0}],\"activeTab\":[{\"validateActiveTab\":0}]}],[1,\"mg-divider\",{\"fullWidth\":[4,\"full-width\"],\"direction\":[1025]},null,{\"direction\":[{\"validateDirection\":0}]}],[257,\"mg-input-text\",{\"value\":[1544],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"type\":[1],\"icon\":[1],\"placeholder\":[1],\"datalistoptions\":[16],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"handleValue\":0}],\"type\":[{\"validateType\":0}],\"icon\":[{\"validateIcon\":0}],\"datalistoptions\":[{\"validateDatalistoptions\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"pattern\":[{\"watchPattern\":0}],\"patternErrorMessage\":[{\"watchPattern\":0}],\"characterLeftHide\":[{\"validateCharacterLeftHide\":0}],\"helpText\":[{\"watchHelpText\":0}]}],[1,\"mg-item-more\",{\"icon\":[16],\"slotlabel\":[16],\"parentMenu\":[32]},null,{\"icon\":[{\"validateIcon\":0}],\"slotlabel\":[{\"validateSlotLabel\":0}]}],[257,\"mg-menu\",{\"label\":[1],\"direction\":[513],\"size\":[16],\"itemmore\":[16]},[[0,\"item-loaded\",\"updateItemListener\"]],{\"label\":[{\"validateLabel\":0}],\"direction\":[{\"validateDirection\":0}],\"itemmore\":[{\"validateItemMore\":0}]}],[257,\"mg-menu-item\",{\"identifier\":[513],\"href\":[1],\"target\":[1],\"status\":[1537],\"isIcon\":[1028,\"is-icon\"],\"expanded\":[1028],\"classNavigationButtonClassList\":[32],\"direction\":[32],\"isItemMore\":[32],\"hasChildren\":[32],\"displayNotificationBadge\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"target\":[{\"watchTarget\":0}],\"status\":[{\"watchStatus\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"expanded\":[{\"watchExpanded\":0}],\"direction\":[{\"validateDirection\":0}],\"hasChildren\":[{\"validateHasChildren\":0}],\"data-style-direction\":[{\"watchDataStyleDirection\":0}],\"data-has-focus\":[{\"watchDataHasFocus\":0}]}],[2,\"mg-character-left\",{\"identifier\":[1],\"characters\":[1],\"maxlength\":[2]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"maxlength\":[{\"validateMaxlength\":0}]}],[257,\"mg-popover\",{\"identifier\":[1],\"placement\":[1],\"arrowHide\":[16],\"closeButton\":[4,\"close-button\"],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[{\"validateIdentifier\":0}],\"closeButton\":[{\"validateCloseButton\":0}],\"display\":[{\"handleDisplay\":0}]}],[1,\"mg-badge\",{\"value\":[8],\"label\":[1],\"variant\":[1025],\"outline\":[4],\"classCollection\":[32]},null,{\"value\":[{\"validateValue\":0}],\"label\":[{\"validateLabel\":0}],\"variant\":[{\"validateVariant\":0}],\"outline\":[{\"validateOutline\":0}]}],[257,\"mg-popover-content\",{\"closeButton\":[4,\"close-button\"],\"classCollection\":[32]}],[257,\"mg-card\",{\"shadow\":[4],\"radiusSize\":[1025,\"radius-size\"],\"classCollection\":[32]},null,{\"shadow\":[{\"watchShadow\":0}],\"radiusSize\":[{\"watchRadiusSize\":0}]}],[257,\"mg-button\",{\"variant\":[1025],\"label\":[1],\"type\":[1],\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"form\":[1],\"disabled\":[1028],\"isIcon\":[4,\"is-icon\"],\"disableOnClick\":[4,\"disable-on-click\"],\"loading\":[32],\"classCollection\":[32]},null,{\"variant\":[{\"validateVariant\":0}],\"size\":[{\"validateSize\":0}],\"fullWidth\":[{\"validateFullWidth\":0}],\"disabled\":[{\"disabledHandler\":0}],\"isIcon\":[{\"watchIsIcon\":0}],\"loading\":[{\"loadingHandler\":0}]}],[257,\"mg-input\",{\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"labelHeading\":[1025,\"label-heading\"],\"labelBorderDisplay\":[4,\"label-border-display\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"required\":[4],\"errorMessage\":[1,\"error-message\"],\"helpText\":[1,\"help-text\"],\"inputsOnBottom\":[4,\"inputs-on-bottom\"],\"ariaDescribedbyIDs\":[1025,\"aria-describedby-i-ds\"],\"isFieldset\":[32],\"isReadonly\":[32],\"isDisabled\":[32],\"isVerticalList\":[32]},null,{\"identifier\":[{\"watchIdentifier\":0},{\"watchAriaDescribedbyIDs\":0}],\"labelOnTop\":[{\"watchLabelOnTop\":0},{\"watchLabelConfig\":0}],\"labelHide\":[{\"watchLabelConfig\":0}],\"labelHeading\":[{\"watchlabelHeading\":0}],\"labelBorderDisplay\":[{\"watchLabelBorderDisplay\":0}],\"tooltipPosition\":[{\"watchTooltipPosition\":0}],\"errorMessage\":[{\"watchErrorMessage\":0},{\"watchAriaDescribedbyIDs\":0}],\"helpText\":[{\"watchHelpText\":0},{\"watchAriaDescribedbyIDs\":0}],\"inputsOnBottom\":[{\"watchInputsOnBottom\":0}],\"ariaDescribedbyIDs\":[{\"watchAriaDescribedbyIDs\":0}],\"class\":[{\"watchClass\":0},{\"watchLabel\":0}],\"label\":[{\"watchLabel\":0}],\"required\":[{\"watchLabel\":0}],\"isReadonly\":[{\"watchLabel\":0}],\"isFieldset\":[{\"watchLabel\":0}]}],[257,\"mg-tooltip\",{\"identifier\":[1],\"message\":[1],\"placement\":[1],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[{\"watchIdentifier\":0}],\"message\":[{\"watchMessage\":0}],\"display\":[{\"watchDisplay\":0}],\"disabled\":[{\"watchDisabled\":0}]}],[262,\"mg-input-title\",{\"identifier\":[1],\"required\":[4],\"readonly\":[4],\"isLegend\":[4,\"is-legend\"],\"tagName\":[32]},null,{\"identifier\":[{\"validateIdentifier\":0}],\"isLegend\":[{\"validateIsLegend\":0}]}],[257,\"mg-tooltip-content\",{\"message\":[1]}],[1,\"mg-icon\",{\"icon\":[1],\"size\":[1025],\"variant\":[1],\"variantStyle\":[1025,\"variant-style\"],\"spin\":[4],\"classCollection\":[32]},null,{\"icon\":[{\"validateIcon\":0}],\"size\":[{\"validateSize\":0}],\"variant\":[{\"validateVariant\":0}],\"variantStyle\":[{\"validateVariantStyle\":0}],\"spin\":[{\"handleSpin\":0}]}]]],[\"mg-input-combobox\",[[1,\"mg-input-combobox\",{\"value\":[1537],\"items\":[16],\"itemsLabel\":[1,\"items-label\"],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"popoverPlacement\":[1,\"popover-placement\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"fetchurl\":[1],\"fetchoptions\":[16],\"fetchmappings\":[16],\"valid\":[1028],\"invalid\":[1028],\"isLoading\":[32],\"options\":[32],\"option\":[32],\"filter\":[32],\"classCollection\":[32],\"errorMessage\":[32],\"popoverDisplay\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0}],\"items\":[{\"watchItems\":0}],\"identifier\":[{\"watchIdentifier\":0}],\"readonly\":[{\"watchReadonly\":0},{\"watchValidityChange\":0}],\"required\":[{\"watchValidityChange\":0}],\"disabled\":[{\"watchValidityChange\":0},{\"watchDisabled\":0}],\"mgWidth\":[{\"watchMgWidth\":0}],\"fetchurl\":[{\"watchFetchUrl\":0}],\"fetchoptions\":[{\"watchFetchOptions\":0}],\"fetchmappings\":[{\"watchFetchMappings\":0}],\"options\":[{\"watchOptions\":0}],\"filter\":[{\"watchFilter\":0}],\"popoverDisplay\":[{\"watchPopoverDisplay\":0}]}]]],[\"mg-input-file\",[[1,\"mg-input-file\",{\"value\":[1032],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"multiple\":[4],\"accept\":[1],\"maxSize\":[2,\"max-size\"],\"capture\":[1],\"required\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"files\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[{\"watchValue\":0},{\"watchMultiple\":0}],\"multiple\":[{\"watchMultiple\":0}],\"accept\":[{\"watchAccept\":0},{\"watchHelpText\":0}],\"required\":[{\"handleValidityChange\":0}],\"disabled\":[{\"handleValidityChange\":0},{\"watchDisabled\":0}],\"helpText\":[{\"watchHelpText\":0}],\"maxSize\":[{\"watchHelpText\":0}],\"files\":[{\"watchFiles\":0}]}]]],[\"mg-fieldset\",[[257,\"mg-fieldset\",{\"identifier\":[1],\"name\":[1],\"legend\":[1],\"legendHide\":[4,\"legend-hide\"],\"legendHeading\":[1,\"legend-heading\"],\"legendBorderDisplay\":[4,\"legend-border-display\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"helpText\":[1,\"help-text\"],\"errorMessage\":[32],\"valid\":[32],\"classCollection\":[32],\"setCustomValidity\":[64],\"displayError\":[64]},null,{\"legendBorderDisplay\":[{\"watchLegendBorderDisplay\":0}],\"readonly\":[{\"watchReadonly\":0},{\"handleAttributeChange\":0}],\"disabled\":[{\"handleAttributeChange\":0}]}]]],[\"mg-input-rich-text-editor\",[[1,\"mg-input-rich-text-editor\",{\"value\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"rows\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"modules\":[1],\"customActions\":[16],\"sanitizerOptions\":[16],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"getEditorHTML\":[64],\"getEditorText\":[64],\"getSelectedText\":[64],\"getSelectedHTML\":[64],\"replaceSelection\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"readonly\":[{\"watchReadonly\":0},{\"handleValidityChange\":0}],\"disabled\":[{\"watchDisabled\":0},{\"handleValidityChange\":0}],\"required\":[{\"handleValidityChange\":0}],\"pattern\":[{\"validatePattern\":0}],\"patternErrorMessage\":[{\"validatePattern\":0}],\"modules\":[{\"watchModules\":0}],\"customActions\":[{\"watchCustomActions\":0}],\"sanitizerOptions\":[{\"watchSanitizerOptions\":0}]}]]],[\"mg-alert\",[[257,\"mg-alert\",{\"delay\":[2],\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"fullWidth\":[4,\"full-width\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"delay\":[{\"watchDelay\":0}],\"variant\":[{\"watchVariant\":0}],\"variantStyle\":[{\"watchVariantStyle\":0}],\"hidden\":[{\"watchHidden\":0}]}]]],[\"mg-breadcrumb\",[[1,\"mg-breadcrumb\",{\"items\":[16]},null,{\"items\":[{\"validateItems\":0}]}]]],[\"mg-illustration\",[[1,\"mg-illustration\",{\"illustration\":[1]},null,{\"illustration\":[{\"validateIllustration\":0}]}]]],[\"mg-progress\",[[1,\"mg-progress\",{\"label\":[1],\"ariaRole\":[1,\"aria-role\"],\"value\":[2],\"min\":[2],\"max\":[2]},null,{\"label\":[{\"watchLabel\":0}],\"ariaRole\":[{\"watchAriaRole\":0}],\"value\":[{\"watchValue\":0}],\"min\":[{\"watchMin\":0}],\"max\":[{\"watchMax\":0}]}]]],[\"mg-loader\",[[1,\"mg-loader\",{\"message\":[1],\"messageHide\":[4,\"message-hide\"]},null,{\"message\":[{\"watchMessage\":0}]}]]]]"), options);
|
|
20
20
|
});
|
|
@@ -56,6 +56,8 @@ const MgInputCombobox = class {
|
|
|
56
56
|
this.fetchError = createEvent(this, "fetch-error", 7);
|
|
57
57
|
// hasDisplayedError (triggered by blur event)
|
|
58
58
|
this.hasDisplayedError = false;
|
|
59
|
+
// raised when `value` or `items` changed, so componentDidUpdate revalidates once the DOM is in sync
|
|
60
|
+
this.validityCheckPending = false;
|
|
59
61
|
this.customErrorMessage = { lock: false };
|
|
60
62
|
/**
|
|
61
63
|
* Input name
|
|
@@ -529,10 +531,11 @@ const MgInputCombobox = class {
|
|
|
529
531
|
};
|
|
530
532
|
}
|
|
531
533
|
watchValue(newValue) {
|
|
534
|
+
this.validityCheckPending = true;
|
|
532
535
|
this.filter = this.getValueTitle();
|
|
533
536
|
this.valueChange.emit(newValue);
|
|
534
537
|
}
|
|
535
|
-
watchItems(newValue) {
|
|
538
|
+
watchItems(newValue, oldValue) {
|
|
536
539
|
if (this.fetchurl !== undefined && newValue === undefined) {
|
|
537
540
|
// skip newValue check
|
|
538
541
|
return;
|
|
@@ -555,6 +558,17 @@ const MgInputCombobox = class {
|
|
|
555
558
|
else {
|
|
556
559
|
throw new Error(`<mg-input-combobox> prop "items" values must be the same type, string or Option. Passed value: ${toString(newValue)}.`);
|
|
557
560
|
}
|
|
561
|
+
// `oldValue` is undefined on init
|
|
562
|
+
if (oldValue !== undefined) {
|
|
563
|
+
// the input displays the value's own title, so an unoffered value cannot stay. An empty list is a
|
|
564
|
+
// reload in progress rather than an answer: the value is kept, as `mg-input-select` keeps its own.
|
|
565
|
+
if (this.value !== undefined &&
|
|
566
|
+
this.options.items.length > 0 &&
|
|
567
|
+
!this.options.items.some((option) => this.isCurrentOption(option))) {
|
|
568
|
+
this.value = undefined;
|
|
569
|
+
}
|
|
570
|
+
this.validityCheckPending = true;
|
|
571
|
+
}
|
|
558
572
|
}
|
|
559
573
|
watchIdentifier(newValue) {
|
|
560
574
|
if (isValidString(newValue)) {
|
|
@@ -684,6 +698,8 @@ const MgInputCombobox = class {
|
|
|
684
698
|
lock: valid ? false : errorMessageLock,
|
|
685
699
|
message: valid ? undefined : errorMessage,
|
|
686
700
|
};
|
|
701
|
+
// setError() states the validity explicitly, so drop any pending recomputation
|
|
702
|
+
this.validityCheckPending = false;
|
|
687
703
|
this.setValidity(valid);
|
|
688
704
|
this.setErrorMessage(true);
|
|
689
705
|
this.hasDisplayedError = this.invalid;
|
|
@@ -773,8 +789,26 @@ const MgInputCombobox = class {
|
|
|
773
789
|
// https://stenciljs.com/docs/component-lifecycle#componentwillload
|
|
774
790
|
return setTimeout(() => {
|
|
775
791
|
this.checkValidity();
|
|
792
|
+
// the initial check covers the initial value: nothing is pending yet
|
|
793
|
+
this.validityCheckPending = false;
|
|
776
794
|
}, 0);
|
|
777
795
|
}
|
|
796
|
+
/**
|
|
797
|
+
* Recompute validity once the DOM is in sync with `value`.
|
|
798
|
+
* `@Watch('value')` fires before Stencil re-renders, so the rendered control still holds the
|
|
799
|
+
* previous value at that point (visible with a programmatic value change, e.g. a `v-model`
|
|
800
|
+
* default value). The watcher therefore only raises a flag, and the check runs here, after the
|
|
801
|
+
* render. Renders unrelated to `value` leave the flag down and recompute nothing.
|
|
802
|
+
*/
|
|
803
|
+
componentDidUpdate() {
|
|
804
|
+
if (this.validityCheckPending && this.input !== undefined) {
|
|
805
|
+
this.validityCheckPending = false;
|
|
806
|
+
this.checkValidity();
|
|
807
|
+
if (this.hasDisplayedError) {
|
|
808
|
+
this.setErrorMessage();
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
778
812
|
/**
|
|
779
813
|
* Render
|
|
780
814
|
* @returns HTML Element
|
|
@@ -804,7 +838,7 @@ const MgInputCombobox = class {
|
|
|
804
838
|
else {
|
|
805
839
|
activeDescendant = (_e = this.value) === null || _e === void 0 ? void 0 : _e.value;
|
|
806
840
|
}
|
|
807
|
-
return (h("mg-input", { key: '
|
|
841
|
+
return (h("mg-input", { key: '20006f3066f661cd9cf8ec25b4090221d3925b04', label: this.label, identifier: this.identifier, class: this.classCollection.classes.join(' '), ariaDescribedbyIDs: popoverContent && popoverContent !== 'list' ? popoverContent : undefined, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (readonlyValue && h("b", { class: "mg-c-input__readonly-value" }, readonlyValue)) : (h("mg-popover", { identifier: this.popoverId, placement: this.popoverPlacement, display: this.popoverDisplay, style: {
|
|
808
842
|
'--mg-c-input-list-width': ((_f = this.input) === null || _f === void 0 ? void 0 : _f.offsetWidth) > 0 ? `${this.input.offsetWidth}px` : undefined,
|
|
809
843
|
}, "data-fallback-placement": "bottom-end", "onDisplay-change": this.handlePopoverDisplay }, h("div", { class: "mg-c-input__input-group-container" }, h("mg-icon", { icon: "magnifying-glass" }), h("input", { type: "text", role: "combobox", class: "mg-c-input__box mg-c-input__box--width", value: this.filter, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.popoverDisplay.toString(), "aria-controls": listId, "aria-invalid": (this.invalid === true).toString(), "aria-activedescendant": formatID(activeDescendant), onInput: this.handleFilterInput, onBlur: this.handleFilterBlur, onFocus: this.handleFilterFocus, onKeyDown: this.handleFilterKeydown, ref: (el) => {
|
|
810
844
|
if (el !== null)
|
|
@@ -16,6 +16,8 @@ const MgInputFile = class {
|
|
|
16
16
|
this.inputValid = createEvent(this, "input-valid", 7);
|
|
17
17
|
// hasDisplayedError (triggered by blur event)
|
|
18
18
|
this.hasDisplayedError = false;
|
|
19
|
+
// raised when `value` changed, so componentDidUpdate revalidates once the DOM is in sync
|
|
20
|
+
this.validityCheckPending = false;
|
|
19
21
|
this.customErrorMessage = { lock: false };
|
|
20
22
|
/**
|
|
21
23
|
* Input name
|
|
@@ -176,6 +178,7 @@ const MgInputFile = class {
|
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
watchValue(newValue) {
|
|
181
|
+
this.validityCheckPending = true;
|
|
179
182
|
if (allItemsAreString(newValue)) {
|
|
180
183
|
this.files = this.value.map((fileName) => new File([], fileName));
|
|
181
184
|
}
|
|
@@ -281,6 +284,8 @@ const MgInputFile = class {
|
|
|
281
284
|
lock: valid ? false : errorMessageLock,
|
|
282
285
|
message: valid ? undefined : errorMessage,
|
|
283
286
|
};
|
|
287
|
+
// setError() states the validity explicitly, so drop any pending recomputation
|
|
288
|
+
this.validityCheckPending = false;
|
|
284
289
|
this.setValidity(valid);
|
|
285
290
|
this.setErrorMessage(true);
|
|
286
291
|
this.hasDisplayedError = this.invalid;
|
|
@@ -332,16 +337,34 @@ const MgInputFile = class {
|
|
|
332
337
|
// https://stenciljs.com/docs/component-lifecycle#componentwillload
|
|
333
338
|
return setTimeout(() => {
|
|
334
339
|
this.checkValidity();
|
|
340
|
+
// the initial check covers the initial value: nothing is pending yet
|
|
341
|
+
this.validityCheckPending = false;
|
|
335
342
|
}, 0);
|
|
336
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Recompute validity once the DOM is in sync with `value`.
|
|
346
|
+
* `@Watch('value')` fires before Stencil re-renders, so the rendered control still holds the
|
|
347
|
+
* previous value at that point (visible with a programmatic value change, e.g. a `v-model`
|
|
348
|
+
* default value). The watcher therefore only raises a flag, and the check runs here, after the
|
|
349
|
+
* render. Renders unrelated to `value` leave the flag down and recompute nothing.
|
|
350
|
+
*/
|
|
351
|
+
componentDidUpdate() {
|
|
352
|
+
if (this.validityCheckPending && this.inputElement !== undefined) {
|
|
353
|
+
this.validityCheckPending = false;
|
|
354
|
+
this.checkValidity();
|
|
355
|
+
if (this.hasDisplayedError) {
|
|
356
|
+
this.setErrorMessage();
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
337
360
|
/**
|
|
338
361
|
* Render
|
|
339
362
|
* @returns HTML Element
|
|
340
363
|
*/
|
|
341
364
|
render() {
|
|
342
|
-
return (h("mg-input", { key: '
|
|
365
|
+
return (h("mg-input", { key: 'f1613e1105c1eea0c08624ffc270a74889d85ce0', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, h("div", { key: '23897ae896de9569ea68bf88e26f1349eb5bc909', class: "mg-c-input__file-container" }, h("input", { key: '0601a8af1c3f17331cb671184353b8b63a5f4fa8', name: this.name, id: this.identifier, class: "mg-u-visually-hidden", type: "file", multiple: this.multiple === true, capture: this.capture, accept: this.accept, disabled: this.disabled, required: this.files.length === 0 && this.required, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onChange: this.handleInputChange, "aria-invalid": (this.invalid === true).toString(), ref: (el) => {
|
|
343
366
|
this.inputElement = el;
|
|
344
|
-
} }), h("mg-button", { key: '
|
|
367
|
+
} }), h("mg-button", { key: '5ac1076a443cc1a0bb2d7168b1d248d31faeedfd', variant: "secondary", class: "mg-c-input__file-button", type: "button", disabled: this.disabled, onClick: this.handleButtonClick, onBlur: this.handleButtonBlur, tabindex: "-1", ref: (el) => {
|
|
345
368
|
this.fileButtonElement = el;
|
|
346
369
|
} }, this.messages.input.file.browse), this.renderFiles())));
|
|
347
370
|
}
|