@oat-sa/tao-core-ui 3.24.0 → 3.24.1
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/resourcemgr/assetSearch.js +3 -3
- package/dist/resourcemgr/assetSearchContract.js +1 -1
- package/dist/resourcemgr/css/resourcemgr.css +96 -3
- package/dist/resourcemgr/css/resourcemgr.css.map +1 -1
- package/dist/resourcemgr/fileBrowser.js +370 -15
- package/dist/resourcemgr/filePreview.js +42 -3
- package/dist/resourcemgr/fileSelector.js +15 -0
- package/dist/resourcemgr.js +15 -10
- package/package.json +1 -1
- package/src/resourcemgr/assetSearch.js +3 -3
- package/src/resourcemgr/assetSearchContract.js +1 -1
- package/src/resourcemgr/css/resourcemgr.css +96 -3
- package/src/resourcemgr/css/resourcemgr.css.map +1 -1
- package/src/resourcemgr/fileBrowser.js +434 -33
- package/src/resourcemgr/filePreview.js +43 -4
- package/src/resourcemgr/fileSelector.js +18 -0
- package/src/resourcemgr/scss/resourcemgr.scss +103 -5
- package/src/resourcemgr/tpl/layout.tpl +30 -18
- package/src/resourcemgr.js +9 -4
|
@@ -48,7 +48,7 @@ define(['jquery', 'i18n', 'ui/pagination', 'ui/searchModal/advancedSearch', 'han
|
|
|
48
48
|
*/
|
|
49
49
|
const ns = 'resourcemgr';
|
|
50
50
|
const EVENT_NS = 'resourcemgrAssetSearch';
|
|
51
|
-
const DEFAULT_AJAX_TIMEOUT_MS =
|
|
51
|
+
const DEFAULT_AJAX_TIMEOUT_MS = 30000;
|
|
52
52
|
const DEFAULT_ROOT_CLASS_URI = 'http://www.tao.lu/Ontologies/TAOMedia.rdf#Media';
|
|
53
53
|
const SEARCH_MODE_MODAL_TITLE = __('Please select a file from the resource manager.');
|
|
54
54
|
|
|
@@ -753,7 +753,7 @@ define(['jquery', 'i18n', 'ui/pagination', 'ui/searchModal/advancedSearch', 'han
|
|
|
753
753
|
function showLoading() {
|
|
754
754
|
searchInFlight = true;
|
|
755
755
|
$searchButton.prop('disabled', true).addClass('is-searching').attr('aria-busy', 'true');
|
|
756
|
-
$searchButtonSpinner.removeClass('hidden')
|
|
756
|
+
$searchButtonSpinner.removeClass('hidden');
|
|
757
757
|
$searchButtonLabel.text(__('Searching'));
|
|
758
758
|
$resultsRegion.attr('aria-busy', 'true');
|
|
759
759
|
}
|
|
@@ -764,7 +764,7 @@ define(['jquery', 'i18n', 'ui/pagination', 'ui/searchModal/advancedSearch', 'han
|
|
|
764
764
|
function hideLoading() {
|
|
765
765
|
searchInFlight = false;
|
|
766
766
|
$searchButton.removeClass('is-searching').attr('aria-busy', 'false');
|
|
767
|
-
$searchButtonSpinner.addClass('hidden')
|
|
767
|
+
$searchButtonSpinner.addClass('hidden');
|
|
768
768
|
$searchButtonLabel.text(__('Search'));
|
|
769
769
|
$resultsRegion.attr('aria-busy', 'false');
|
|
770
770
|
updateSearchActionState();
|
|
@@ -48,7 +48,7 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
48
48
|
* Default page size for search results.
|
|
49
49
|
* @type {number}
|
|
50
50
|
*/
|
|
51
|
-
const DEFAULT_PAGE_SIZE =
|
|
51
|
+
const DEFAULT_PAGE_SIZE = 11;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Minimum universal query length before Search is enabled (matches indexed prefix rules).
|
|
@@ -764,8 +764,12 @@ Usage:
|
|
|
764
764
|
.resourcemgr .file-browser .asset-search-actions .asset-search-submit .asset-search-submit-spinner.hidden, .resourcemgr .file-browser .asset-search-actions .asset-search-submit .asset-search-submit-spinner[hidden] {
|
|
765
765
|
display: none;
|
|
766
766
|
}
|
|
767
|
-
.resourcemgr .file-browser .asset-search-actions .asset-search-submit.is-searching .asset-search-submit-spinner:not(.hidden)
|
|
767
|
+
.resourcemgr .file-browser .asset-search-actions .asset-search-submit.is-searching .asset-search-submit-spinner:not(.hidden) {
|
|
768
768
|
display: inline-block;
|
|
769
|
+
}
|
|
770
|
+
.resourcemgr .file-browser .asset-search-actions .asset-search-submit.is-searching .asset-search-submit-spinner:not(.hidden).icon-loop::before {
|
|
771
|
+
display: inline-block;
|
|
772
|
+
transform-origin: 50% 50%;
|
|
769
773
|
animation: rm-search-button-spin 1.4s linear infinite;
|
|
770
774
|
}
|
|
771
775
|
.resourcemgr .file-browser .asset-search-actions .asset-search-submit:disabled, .resourcemgr .file-browser .asset-search-actions .asset-search-submit[disabled] {
|
|
@@ -805,11 +809,56 @@ Usage:
|
|
|
805
809
|
}
|
|
806
810
|
}
|
|
807
811
|
.resourcemgr .file-browser .file-browser-wrapper {
|
|
808
|
-
|
|
812
|
+
position: relative;
|
|
813
|
+
display: flex;
|
|
814
|
+
flex-direction: column;
|
|
809
815
|
flex: 1 1 auto;
|
|
810
816
|
min-height: 0;
|
|
817
|
+
overflow: hidden;
|
|
818
|
+
}
|
|
819
|
+
.resourcemgr .file-browser .file-browser-wrapper.is-tree-loading {
|
|
820
|
+
pointer-events: none;
|
|
821
|
+
}
|
|
822
|
+
.resourcemgr .file-browser .file-browser-wrapper.is-tree-loading .file-browser-scroll {
|
|
823
|
+
overflow: hidden;
|
|
824
|
+
}
|
|
825
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-scroll {
|
|
826
|
+
flex: 1 1 auto;
|
|
827
|
+
min-height: 0;
|
|
828
|
+
overflow: auto;
|
|
811
829
|
padding: 8px 4px 12px;
|
|
812
830
|
}
|
|
831
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-tree-loading {
|
|
832
|
+
position: absolute;
|
|
833
|
+
inset: 0;
|
|
834
|
+
z-index: 3;
|
|
835
|
+
display: flex;
|
|
836
|
+
align-items: center;
|
|
837
|
+
justify-content: center;
|
|
838
|
+
background-color: rgba(255, 255, 255, 0.75);
|
|
839
|
+
}
|
|
840
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-tree-loading.hidden {
|
|
841
|
+
display: none;
|
|
842
|
+
}
|
|
843
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-tree-loading .icon-loop {
|
|
844
|
+
color: #286d9c;
|
|
845
|
+
font-size: 22px;
|
|
846
|
+
font-size: 2.2rem;
|
|
847
|
+
}
|
|
848
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-tree-loading .icon-loop::before {
|
|
849
|
+
display: inline-block;
|
|
850
|
+
transform-origin: 50% 50%;
|
|
851
|
+
animation: rm-search-button-spin 1.4s linear infinite;
|
|
852
|
+
}
|
|
853
|
+
.resourcemgr .file-browser .file-browser-wrapper .file-browser-tree-loading .file-browser-tree-loading-status {
|
|
854
|
+
position: absolute;
|
|
855
|
+
width: 1px;
|
|
856
|
+
height: 1px;
|
|
857
|
+
overflow: hidden;
|
|
858
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
859
|
+
margin: 0;
|
|
860
|
+
padding: 0;
|
|
861
|
+
}
|
|
813
862
|
.resourcemgr .file-browser ul {
|
|
814
863
|
list-style-type: none;
|
|
815
864
|
padding-left: 5px;
|
|
@@ -974,9 +1023,53 @@ Usage:
|
|
|
974
1023
|
}
|
|
975
1024
|
.resourcemgr .file-selector .files-wrapper {
|
|
976
1025
|
position: relative;
|
|
1026
|
+
display: flex;
|
|
1027
|
+
flex-direction: column;
|
|
977
1028
|
flex-grow: 1;
|
|
978
|
-
overflow-y: auto;
|
|
979
1029
|
min-height: 0;
|
|
1030
|
+
overflow: hidden;
|
|
1031
|
+
}
|
|
1032
|
+
.resourcemgr .file-selector .files-wrapper.is-files-loading {
|
|
1033
|
+
pointer-events: none;
|
|
1034
|
+
}
|
|
1035
|
+
.resourcemgr .file-selector .files-wrapper.is-files-loading .files-scroll {
|
|
1036
|
+
overflow-y: hidden;
|
|
1037
|
+
}
|
|
1038
|
+
.resourcemgr .file-selector .files-wrapper .files-scroll {
|
|
1039
|
+
flex: 1 1 auto;
|
|
1040
|
+
min-height: 0;
|
|
1041
|
+
overflow-y: auto;
|
|
1042
|
+
}
|
|
1043
|
+
.resourcemgr .file-selector .files-wrapper .files-list-loading {
|
|
1044
|
+
position: absolute;
|
|
1045
|
+
inset: 0;
|
|
1046
|
+
z-index: 2;
|
|
1047
|
+
display: flex;
|
|
1048
|
+
align-items: center;
|
|
1049
|
+
justify-content: center;
|
|
1050
|
+
background-color: rgba(255, 255, 255, 0.82);
|
|
1051
|
+
}
|
|
1052
|
+
.resourcemgr .file-selector .files-wrapper .files-list-loading.hidden {
|
|
1053
|
+
display: none;
|
|
1054
|
+
}
|
|
1055
|
+
.resourcemgr .file-selector .files-wrapper .files-list-loading .icon-loop {
|
|
1056
|
+
color: #286d9c;
|
|
1057
|
+
font-size: 22px;
|
|
1058
|
+
font-size: 2.2rem;
|
|
1059
|
+
}
|
|
1060
|
+
.resourcemgr .file-selector .files-wrapper .files-list-loading .icon-loop::before {
|
|
1061
|
+
display: inline-block;
|
|
1062
|
+
transform-origin: 50% 50%;
|
|
1063
|
+
animation: rm-search-button-spin 1.4s linear infinite;
|
|
1064
|
+
}
|
|
1065
|
+
.resourcemgr .file-selector .files-wrapper .files-list-loading .files-list-loading-status {
|
|
1066
|
+
position: absolute;
|
|
1067
|
+
width: 1px;
|
|
1068
|
+
height: 1px;
|
|
1069
|
+
overflow: hidden;
|
|
1070
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
1071
|
+
margin: 0;
|
|
1072
|
+
padding: 0;
|
|
980
1073
|
}
|
|
981
1074
|
.resourcemgr .file-selector table.files {
|
|
982
1075
|
width: 100%;
|