ids-enterprise 4.59.2 → 4.59.3
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/css/theme-classic-contrast.css +3 -3
- package/dist/css/theme-classic-contrast.min.css +3 -3
- package/dist/css/theme-classic-dark.css +3 -3
- package/dist/css/theme-classic-dark.min.css +3 -3
- package/dist/css/theme-classic-light.css +3 -3
- package/dist/css/theme-classic-light.min.css +3 -3
- package/dist/css/theme-new-contrast.css +3 -3
- package/dist/css/theme-new-contrast.min.css +3 -3
- package/dist/css/theme-new-dark.css +3 -3
- package/dist/css/theme-new-dark.min.css +3 -3
- package/dist/css/theme-new-light.css +3 -3
- package/dist/css/theme-new-light.min.css +3 -3
- package/dist/css/theme-soho-contrast.css +3 -3
- package/dist/css/theme-soho-contrast.min.css +3 -3
- package/dist/css/theme-soho-dark.css +3 -3
- package/dist/css/theme-soho-dark.min.css +3 -3
- package/dist/css/theme-soho-light.css +3 -3
- package/dist/css/theme-soho-light.min.css +3 -3
- package/dist/css/theme-uplift-contrast.css +3 -3
- package/dist/css/theme-uplift-contrast.min.css +3 -3
- package/dist/css/theme-uplift-dark.css +3 -3
- package/dist/css/theme-uplift-dark.min.css +3 -3
- package/dist/css/theme-uplift-light.css +3 -3
- package/dist/css/theme-uplift-light.min.css +3 -3
- package/dist/js/sohoxi.esm.js +38 -15
- package/dist/js/sohoxi.js +38 -15
- package/dist/js/sohoxi.js.map +1 -1
- package/dist/js/sohoxi.min.js +4 -4
- package/dist/js/sohoxi.min.js.map +1 -1
- package/dist/svg/theme-classic-svg-empty.html +6 -6
- package/dist/svg/theme-classic-svg.html +203 -203
- package/dist/svg/theme-new-svg-empty.html +9 -9
- package/dist/svg/theme-new-svg.html +202 -202
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* IDS Enterprise Components - v4.59.
|
|
4
|
-
* Date: 2022-
|
|
5
|
-
* Revision:
|
|
3
|
+
* IDS Enterprise Components - v4.59.3
|
|
4
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
5
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* Apache License
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:15.861Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
package/dist/js/sohoxi.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:16.686Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -345,7 +345,7 @@ if (!isIE11) {
|
|
|
345
345
|
|
|
346
346
|
var name = "ids-enterprise";
|
|
347
347
|
var slug = "ids-enterprise";
|
|
348
|
-
var version = "4.59.
|
|
348
|
+
var version = "4.59.3";
|
|
349
349
|
var description = "Infor Design System (IDS) Enterprise Components for the web";
|
|
350
350
|
var repository = {
|
|
351
351
|
type: "git",
|
|
@@ -76934,24 +76934,41 @@ Modal.prototype = {
|
|
|
76934
76934
|
function focusElement(thisElem) {
|
|
76935
76935
|
if (!self.settings.autoFocus) {
|
|
76936
76936
|
return;
|
|
76937
|
-
}
|
|
76937
|
+
}
|
|
76938
|
+
|
|
76939
|
+
self.setFocusableElems();
|
|
76940
|
+
var focusableElements = $(self.focusableElems).not('.modal-header .searchfield');
|
|
76941
|
+
var hiddenFieldTagNames = ['INPUT', 'BUTTON']; // When changes happen within the subtree on the Modal, rebuilds the internal hash of
|
|
76938
76942
|
// tabbable elements used for retaining focus.
|
|
76939
76943
|
|
|
76944
|
+
self.changeObserver = new MutationObserver(function (mutationsList) {
|
|
76945
|
+
var updateFocusableElems = false;
|
|
76946
|
+
mutationsList.forEach(function (mutation) {
|
|
76947
|
+
if (['childList', 'subtree'].includes(mutation.type)) {
|
|
76948
|
+
updateFocusableElems = true;
|
|
76949
|
+
} else {
|
|
76950
|
+
var mutationTarget = $(mutation.target);
|
|
76940
76951
|
|
|
76941
|
-
|
|
76942
|
-
|
|
76952
|
+
if (hiddenFieldTagNames.includes(mutation.target.tagName)) {
|
|
76953
|
+
if (mutationTarget.is(':visible')) {
|
|
76954
|
+
mutationTarget.attr('tabindex', '0');
|
|
76955
|
+
} else {
|
|
76956
|
+
mutationTarget.attr('tabindex', '-1');
|
|
76957
|
+
}
|
|
76958
|
+
}
|
|
76959
|
+
}
|
|
76960
|
+
});
|
|
76961
|
+
|
|
76962
|
+
if (updateFocusableElems) {
|
|
76963
|
+
self.setFocusableElems();
|
|
76964
|
+
}
|
|
76943
76965
|
});
|
|
76944
76966
|
self.changeObserver.observe(self.element[0], {
|
|
76967
|
+
attributes: true,
|
|
76968
|
+
attributeFilter: ['class', 'style'],
|
|
76945
76969
|
childList: true,
|
|
76946
76970
|
subtree: true
|
|
76947
76971
|
});
|
|
76948
|
-
self.setFocusableElems();
|
|
76949
|
-
var focusableElements = $(self.focusableElems).not('.modal-header .searchfield'); // The element/s will be disabled if detects that it has inline display: none; style.
|
|
76950
|
-
|
|
76951
|
-
if (focusableElements.css('display') === 'none') {
|
|
76952
|
-
focusableElements.not(':visible').attr('disabled', 'disabled');
|
|
76953
|
-
}
|
|
76954
|
-
|
|
76955
76972
|
var focusElem = focusableElements.not(':hidden').first();
|
|
76956
76973
|
|
|
76957
76974
|
if (focusElem.length === 0) {
|
|
@@ -77212,7 +77229,13 @@ Modal.prototype = {
|
|
|
77212
77229
|
*/
|
|
77213
77230
|
setFocusableElems: function setFocusableElems() {
|
|
77214
77231
|
var extraSelectors = [];
|
|
77215
|
-
var ignoredSelectors = ['option'];
|
|
77232
|
+
var ignoredSelectors = ['option']; // Pre-configure some element types that can be visually-hidden when the Modal opens
|
|
77233
|
+
// to make it impossible to become focused while hidden (see infor-design/enterprise#6806)
|
|
77234
|
+
|
|
77235
|
+
var nonFocusableElems = $(this.element).find('input:hidden');
|
|
77236
|
+
nonFocusableElems.each(function (i, elem) {
|
|
77237
|
+
elem.tabIndex = -1;
|
|
77238
|
+
});
|
|
77216
77239
|
var elems = DOM.focusableElems(this.element[0], extraSelectors, ignoredSelectors);
|
|
77217
77240
|
this.focusableElems = elems;
|
|
77218
77241
|
this.focusableElems.first = elems[0];
|
package/dist/js/sohoxi.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* IDS Enterprise Components - v4.59.
|
|
3
|
-
* Date: 2022-
|
|
4
|
-
* Revision:
|
|
2
|
+
* IDS Enterprise Components - v4.59.3
|
|
3
|
+
* Date: 2022-02-04T18:06:16.686Z
|
|
4
|
+
* Revision: ad0aab79db17cff3c380fc486eefe565f08077eb
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* Apache License
|
|
@@ -348,7 +348,7 @@ var Soho = (function (exports) {
|
|
|
348
348
|
|
|
349
349
|
var name = "ids-enterprise";
|
|
350
350
|
var slug = "ids-enterprise";
|
|
351
|
-
var version = "4.59.
|
|
351
|
+
var version = "4.59.3";
|
|
352
352
|
var description = "Infor Design System (IDS) Enterprise Components for the web";
|
|
353
353
|
var repository = {
|
|
354
354
|
type: "git",
|
|
@@ -76937,24 +76937,41 @@ var Soho = (function (exports) {
|
|
|
76937
76937
|
function focusElement(thisElem) {
|
|
76938
76938
|
if (!self.settings.autoFocus) {
|
|
76939
76939
|
return;
|
|
76940
|
-
}
|
|
76940
|
+
}
|
|
76941
|
+
|
|
76942
|
+
self.setFocusableElems();
|
|
76943
|
+
var focusableElements = $(self.focusableElems).not('.modal-header .searchfield');
|
|
76944
|
+
var hiddenFieldTagNames = ['INPUT', 'BUTTON']; // When changes happen within the subtree on the Modal, rebuilds the internal hash of
|
|
76941
76945
|
// tabbable elements used for retaining focus.
|
|
76942
76946
|
|
|
76947
|
+
self.changeObserver = new MutationObserver(function (mutationsList) {
|
|
76948
|
+
var updateFocusableElems = false;
|
|
76949
|
+
mutationsList.forEach(function (mutation) {
|
|
76950
|
+
if (['childList', 'subtree'].includes(mutation.type)) {
|
|
76951
|
+
updateFocusableElems = true;
|
|
76952
|
+
} else {
|
|
76953
|
+
var mutationTarget = $(mutation.target);
|
|
76943
76954
|
|
|
76944
|
-
|
|
76945
|
-
|
|
76955
|
+
if (hiddenFieldTagNames.includes(mutation.target.tagName)) {
|
|
76956
|
+
if (mutationTarget.is(':visible')) {
|
|
76957
|
+
mutationTarget.attr('tabindex', '0');
|
|
76958
|
+
} else {
|
|
76959
|
+
mutationTarget.attr('tabindex', '-1');
|
|
76960
|
+
}
|
|
76961
|
+
}
|
|
76962
|
+
}
|
|
76963
|
+
});
|
|
76964
|
+
|
|
76965
|
+
if (updateFocusableElems) {
|
|
76966
|
+
self.setFocusableElems();
|
|
76967
|
+
}
|
|
76946
76968
|
});
|
|
76947
76969
|
self.changeObserver.observe(self.element[0], {
|
|
76970
|
+
attributes: true,
|
|
76971
|
+
attributeFilter: ['class', 'style'],
|
|
76948
76972
|
childList: true,
|
|
76949
76973
|
subtree: true
|
|
76950
76974
|
});
|
|
76951
|
-
self.setFocusableElems();
|
|
76952
|
-
var focusableElements = $(self.focusableElems).not('.modal-header .searchfield'); // The element/s will be disabled if detects that it has inline display: none; style.
|
|
76953
|
-
|
|
76954
|
-
if (focusableElements.css('display') === 'none') {
|
|
76955
|
-
focusableElements.not(':visible').attr('disabled', 'disabled');
|
|
76956
|
-
}
|
|
76957
|
-
|
|
76958
76975
|
var focusElem = focusableElements.not(':hidden').first();
|
|
76959
76976
|
|
|
76960
76977
|
if (focusElem.length === 0) {
|
|
@@ -77215,7 +77232,13 @@ var Soho = (function (exports) {
|
|
|
77215
77232
|
*/
|
|
77216
77233
|
setFocusableElems: function setFocusableElems() {
|
|
77217
77234
|
var extraSelectors = [];
|
|
77218
|
-
var ignoredSelectors = ['option'];
|
|
77235
|
+
var ignoredSelectors = ['option']; // Pre-configure some element types that can be visually-hidden when the Modal opens
|
|
77236
|
+
// to make it impossible to become focused while hidden (see infor-design/enterprise#6806)
|
|
77237
|
+
|
|
77238
|
+
var nonFocusableElems = $(this.element).find('input:hidden');
|
|
77239
|
+
nonFocusableElems.each(function (i, elem) {
|
|
77240
|
+
elem.tabIndex = -1;
|
|
77241
|
+
});
|
|
77219
77242
|
var elems = DOM.focusableElems(this.element[0], extraSelectors, ignoredSelectors);
|
|
77220
77243
|
this.focusableElems = elems;
|
|
77221
77244
|
this.focusableElems.first = elems[0];
|