@matdata/yasgui 4.6.1 → 4.7.5
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/CHANGELOG.md +175 -175
- package/build/yasgui.html +23 -23
- package/build/yasgui.min.css +1 -1
- package/build/yasgui.min.css.map +1 -1
- package/build/yasgui.min.js +1 -1
- package/build/yasgui.min.js.LICENSE.txt +36 -0
- package/build/yasgui.min.js.map +1 -1
- package/package.json +48 -48
- package/src/TabContextMenu.scss +42 -42
- package/src/TabElements.scss +134 -134
- package/src/TabSettingsModal.ts +8 -8
- package/src/endpointSelect.scss +122 -122
- package/static/yasgui.bootstrap.css +35 -35
- package/static/yasgui.polyfill.min.js +3 -3
- package/typings-custom/@tarekraafat/autocomplete.js/index.d.ts +48 -48
- package/typings-custom/main.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@matdata/yasgui",
|
|
3
|
-
"description": "Yet Another SPARQL GUI",
|
|
4
|
-
"version": "4.
|
|
5
|
-
"main": "build/yasgui.min.js",
|
|
6
|
-
"types": "build/ts/src/index.d.ts",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"author": "Triply <info@triply.cc>",
|
|
9
|
-
"homepage": "https://github.com/Matdata-eu/Yasgui",
|
|
10
|
-
"keywords": [
|
|
11
|
-
"JavaScript",
|
|
12
|
-
"SPARQL",
|
|
13
|
-
"Editor",
|
|
14
|
-
"Semantic Web",
|
|
15
|
-
"Linked Data"
|
|
16
|
-
],
|
|
17
|
-
"bugs": "https://github.com/Matdata-eu/Yasgui/issues/",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/Matdata-eu/Yasgui.git",
|
|
21
|
-
"directory": "packages/yasgui"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@tarekraafat/autocomplete.js": "^7.2.0",
|
|
25
|
-
"@matdata/yasgui-utils": "^4.6.1",
|
|
26
|
-
"@matdata/yasqe": "^4.6.1",
|
|
27
|
-
"@matdata/yasr": "^4.6.1",
|
|
28
|
-
"autosuggest-highlight": "^3.1.1",
|
|
29
|
-
"blueimp-md5": "^2.12.0",
|
|
30
|
-
"choices.js": "^9.0.1",
|
|
31
|
-
"dompurify": "^3.2.4",
|
|
32
|
-
"es6-object-assign": "^1.1.0",
|
|
33
|
-
"jsuri": "^1.3.1",
|
|
34
|
-
"lodash-es": "^4.17.15",
|
|
35
|
-
"sortablejs": "^1.10.2",
|
|
36
|
-
"@matdata/yasgui-graph-plugin": "^1.0.0"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@types/autosuggest-highlight": "^3.1.0",
|
|
40
|
-
"@types/blueimp-md5": "^2.7.0",
|
|
41
|
-
"@types/jsuri": "^1.3.30",
|
|
42
|
-
"@types/lodash-es": "^4.17.3",
|
|
43
|
-
"@types/node": "^22.5.4"
|
|
44
|
-
},
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"access": "public"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@matdata/yasgui",
|
|
3
|
+
"description": "Yet Another SPARQL GUI",
|
|
4
|
+
"version": "4.7.5",
|
|
5
|
+
"main": "build/yasgui.min.js",
|
|
6
|
+
"types": "build/ts/src/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "Triply <info@triply.cc>",
|
|
9
|
+
"homepage": "https://github.com/Matdata-eu/Yasgui",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"JavaScript",
|
|
12
|
+
"SPARQL",
|
|
13
|
+
"Editor",
|
|
14
|
+
"Semantic Web",
|
|
15
|
+
"Linked Data"
|
|
16
|
+
],
|
|
17
|
+
"bugs": "https://github.com/Matdata-eu/Yasgui/issues/",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/Matdata-eu/Yasgui.git",
|
|
21
|
+
"directory": "packages/yasgui"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@tarekraafat/autocomplete.js": "^7.2.0",
|
|
25
|
+
"@matdata/yasgui-utils": "^4.6.1",
|
|
26
|
+
"@matdata/yasqe": "^4.6.1",
|
|
27
|
+
"@matdata/yasr": "^4.6.1",
|
|
28
|
+
"autosuggest-highlight": "^3.1.1",
|
|
29
|
+
"blueimp-md5": "^2.12.0",
|
|
30
|
+
"choices.js": "^9.0.1",
|
|
31
|
+
"dompurify": "^3.2.4",
|
|
32
|
+
"es6-object-assign": "^1.1.0",
|
|
33
|
+
"jsuri": "^1.3.1",
|
|
34
|
+
"lodash-es": "^4.17.15",
|
|
35
|
+
"sortablejs": "^1.10.2",
|
|
36
|
+
"@matdata/yasgui-graph-plugin": "^1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/autosuggest-highlight": "^3.1.0",
|
|
40
|
+
"@types/blueimp-md5": "^2.7.0",
|
|
41
|
+
"@types/jsuri": "^1.3.30",
|
|
42
|
+
"@types/lodash-es": "^4.17.3",
|
|
43
|
+
"@types/node": "^22.5.4"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/src/TabContextMenu.scss
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.yasgui.context-menu {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 10;
|
|
4
|
-
background: white;
|
|
5
|
-
min-width: 160px;
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
8
|
-
border-bottom-right-radius: 4px;
|
|
9
|
-
border-bottom-left-radius: 4px;
|
|
10
|
-
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
|
11
|
-
background-clip: padding-box;
|
|
12
|
-
hr {
|
|
13
|
-
margin: 8px auto;
|
|
14
|
-
border: none;
|
|
15
|
-
border-top: 1px solid #aaaaaa;
|
|
16
|
-
border-bottom: 1px solid #ffffff;
|
|
17
|
-
}
|
|
18
|
-
.context-menu-list {
|
|
19
|
-
padding: 0;
|
|
20
|
-
}
|
|
21
|
-
.context-menu-item {
|
|
22
|
-
display: block;
|
|
23
|
-
padding: 3px 20px;
|
|
24
|
-
clear: both;
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
line-height: 1.42857;
|
|
27
|
-
color: #333;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
&:hover {
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
color: black;
|
|
33
|
-
background-color: #f5f5f5;
|
|
34
|
-
}
|
|
35
|
-
&.disabled {
|
|
36
|
-
text-decoration: none;
|
|
37
|
-
color: gray;
|
|
38
|
-
background-color: #e5e5e5;
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
.yasgui.context-menu {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 10;
|
|
4
|
+
background: white;
|
|
5
|
+
min-width: 160px;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
8
|
+
border-bottom-right-radius: 4px;
|
|
9
|
+
border-bottom-left-radius: 4px;
|
|
10
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
|
11
|
+
background-clip: padding-box;
|
|
12
|
+
hr {
|
|
13
|
+
margin: 8px auto;
|
|
14
|
+
border: none;
|
|
15
|
+
border-top: 1px solid #aaaaaa;
|
|
16
|
+
border-bottom: 1px solid #ffffff;
|
|
17
|
+
}
|
|
18
|
+
.context-menu-list {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
.context-menu-item {
|
|
22
|
+
display: block;
|
|
23
|
+
padding: 3px 20px;
|
|
24
|
+
clear: both;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
line-height: 1.42857;
|
|
27
|
+
color: #333;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
&:hover {
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
color: black;
|
|
33
|
+
background-color: #f5f5f5;
|
|
34
|
+
}
|
|
35
|
+
&.disabled {
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
color: gray;
|
|
38
|
+
background-color: #e5e5e5;
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
package/src/TabElements.scss
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
$minTabHeight: 35px;
|
|
3
|
-
.yasgui {
|
|
4
|
-
.tabsList {
|
|
5
|
-
.sortable-placeholder {
|
|
6
|
-
min-width: 100px;
|
|
7
|
-
min-height: $minTabHeight;
|
|
8
|
-
border: 2px dotted color.adjust(#555, $lightness: 20%);
|
|
9
|
-
}
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
a {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
min-height: $minTabHeight;
|
|
18
|
-
border-bottom: 2px solid transparent;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
|
-
.addTab {
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
height: 100%;
|
|
24
|
-
font-size: 120%;
|
|
25
|
-
font-weight: 800;
|
|
26
|
-
margin-left: 15px;
|
|
27
|
-
padding: 0px 5px 2px 5px;
|
|
28
|
-
background: inherit;
|
|
29
|
-
border: none;
|
|
30
|
-
color: #337ab7;
|
|
31
|
-
|
|
32
|
-
&:hover,
|
|
33
|
-
&:focus-visible {
|
|
34
|
-
transform: scale(1.1);
|
|
35
|
-
}
|
|
36
|
-
&:focus {
|
|
37
|
-
color: #faa857;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.tab {
|
|
41
|
-
position: relative;
|
|
42
|
-
$activeColor: #337ab7;
|
|
43
|
-
$hoverColor: color.adjust($activeColor, $lightness: 30%);
|
|
44
|
-
|
|
45
|
-
.loader {
|
|
46
|
-
display: none;
|
|
47
|
-
background-color: color.adjust(#555, $lightness: 50%);
|
|
48
|
-
height: 2px;
|
|
49
|
-
position: absolute;
|
|
50
|
-
bottom: 0;
|
|
51
|
-
left: 0;
|
|
52
|
-
right: 100%;
|
|
53
|
-
animation-name: slide;
|
|
54
|
-
animation-duration: 2s;
|
|
55
|
-
animation-timing-function: ease;
|
|
56
|
-
animation-iteration-count: infinite;
|
|
57
|
-
}
|
|
58
|
-
@keyframes slide {
|
|
59
|
-
0% {
|
|
60
|
-
left: 0;
|
|
61
|
-
right: 100%;
|
|
62
|
-
}
|
|
63
|
-
70% {
|
|
64
|
-
left: 0;
|
|
65
|
-
right: 0;
|
|
66
|
-
}
|
|
67
|
-
100% {
|
|
68
|
-
left: 100%;
|
|
69
|
-
right: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&.active .loader {
|
|
73
|
-
background-color: $hoverColor;
|
|
74
|
-
}
|
|
75
|
-
&:hover .loader {
|
|
76
|
-
background-color: $activeColor;
|
|
77
|
-
}
|
|
78
|
-
&.querying .loader {
|
|
79
|
-
display: block;
|
|
80
|
-
}
|
|
81
|
-
&.active a {
|
|
82
|
-
border-bottom-color: $activeColor;
|
|
83
|
-
color: #555;
|
|
84
|
-
}
|
|
85
|
-
input {
|
|
86
|
-
display: none;
|
|
87
|
-
outline: none;
|
|
88
|
-
border: none;
|
|
89
|
-
}
|
|
90
|
-
&.renaming {
|
|
91
|
-
span {
|
|
92
|
-
display: none;
|
|
93
|
-
}
|
|
94
|
-
.closeTab {
|
|
95
|
-
display: none;
|
|
96
|
-
}
|
|
97
|
-
input {
|
|
98
|
-
display: block;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
a {
|
|
102
|
-
font-weight: 600;
|
|
103
|
-
color: color.adjust(#555, $lightness: 20%);
|
|
104
|
-
font-size: 15px;
|
|
105
|
-
line-height: 1.5rem;
|
|
106
|
-
font-weight: 500;
|
|
107
|
-
min-width: 120px;
|
|
108
|
-
padding: 0px 24px 0px 30px;
|
|
109
|
-
white-space: nowrap;
|
|
110
|
-
overflow: hidden;
|
|
111
|
-
&:hover {
|
|
112
|
-
border-bottom-color: $hoverColor;
|
|
113
|
-
color: #555;
|
|
114
|
-
}
|
|
115
|
-
&:focus {
|
|
116
|
-
border-bottom-color: #faa857;
|
|
117
|
-
color: #555;
|
|
118
|
-
}
|
|
119
|
-
.closeTab {
|
|
120
|
-
color: #000;
|
|
121
|
-
margin-left: 7px;
|
|
122
|
-
font-size: 15px;
|
|
123
|
-
text-shadow: 0 1px 0 #fff;
|
|
124
|
-
opacity: 0.2;
|
|
125
|
-
font-weight: 700;
|
|
126
|
-
padding: 2px;
|
|
127
|
-
&:hover {
|
|
128
|
-
opacity: 0.5;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
$minTabHeight: 35px;
|
|
3
|
+
.yasgui {
|
|
4
|
+
.tabsList {
|
|
5
|
+
.sortable-placeholder {
|
|
6
|
+
min-width: 100px;
|
|
7
|
+
min-height: $minTabHeight;
|
|
8
|
+
border: 2px dotted color.adjust(#555, $lightness: 20%);
|
|
9
|
+
}
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
a {
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
min-height: $minTabHeight;
|
|
18
|
+
border-bottom: 2px solid transparent;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
.addTab {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
height: 100%;
|
|
24
|
+
font-size: 120%;
|
|
25
|
+
font-weight: 800;
|
|
26
|
+
margin-left: 15px;
|
|
27
|
+
padding: 0px 5px 2px 5px;
|
|
28
|
+
background: inherit;
|
|
29
|
+
border: none;
|
|
30
|
+
color: #337ab7;
|
|
31
|
+
|
|
32
|
+
&:hover,
|
|
33
|
+
&:focus-visible {
|
|
34
|
+
transform: scale(1.1);
|
|
35
|
+
}
|
|
36
|
+
&:focus {
|
|
37
|
+
color: #faa857;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.tab {
|
|
41
|
+
position: relative;
|
|
42
|
+
$activeColor: #337ab7;
|
|
43
|
+
$hoverColor: color.adjust($activeColor, $lightness: 30%);
|
|
44
|
+
|
|
45
|
+
.loader {
|
|
46
|
+
display: none;
|
|
47
|
+
background-color: color.adjust(#555, $lightness: 50%);
|
|
48
|
+
height: 2px;
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 100%;
|
|
53
|
+
animation-name: slide;
|
|
54
|
+
animation-duration: 2s;
|
|
55
|
+
animation-timing-function: ease;
|
|
56
|
+
animation-iteration-count: infinite;
|
|
57
|
+
}
|
|
58
|
+
@keyframes slide {
|
|
59
|
+
0% {
|
|
60
|
+
left: 0;
|
|
61
|
+
right: 100%;
|
|
62
|
+
}
|
|
63
|
+
70% {
|
|
64
|
+
left: 0;
|
|
65
|
+
right: 0;
|
|
66
|
+
}
|
|
67
|
+
100% {
|
|
68
|
+
left: 100%;
|
|
69
|
+
right: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&.active .loader {
|
|
73
|
+
background-color: $hoverColor;
|
|
74
|
+
}
|
|
75
|
+
&:hover .loader {
|
|
76
|
+
background-color: $activeColor;
|
|
77
|
+
}
|
|
78
|
+
&.querying .loader {
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
&.active a {
|
|
82
|
+
border-bottom-color: $activeColor;
|
|
83
|
+
color: #555;
|
|
84
|
+
}
|
|
85
|
+
input {
|
|
86
|
+
display: none;
|
|
87
|
+
outline: none;
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
90
|
+
&.renaming {
|
|
91
|
+
span {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
.closeTab {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
input {
|
|
98
|
+
display: block;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
a {
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
color: color.adjust(#555, $lightness: 20%);
|
|
104
|
+
font-size: 15px;
|
|
105
|
+
line-height: 1.5rem;
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
min-width: 120px;
|
|
108
|
+
padding: 0px 24px 0px 30px;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
&:hover {
|
|
112
|
+
border-bottom-color: $hoverColor;
|
|
113
|
+
color: #555;
|
|
114
|
+
}
|
|
115
|
+
&:focus {
|
|
116
|
+
border-bottom-color: #faa857;
|
|
117
|
+
color: #555;
|
|
118
|
+
}
|
|
119
|
+
.closeTab {
|
|
120
|
+
color: #000;
|
|
121
|
+
margin-left: 7px;
|
|
122
|
+
font-size: 15px;
|
|
123
|
+
text-shadow: 0 1px 0 #fff;
|
|
124
|
+
opacity: 0.2;
|
|
125
|
+
font-weight: 700;
|
|
126
|
+
padding: 2px;
|
|
127
|
+
&:hover {
|
|
128
|
+
opacity: 0.5;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
package/src/TabSettingsModal.ts
CHANGED
|
@@ -9,14 +9,14 @@ const AcceptOptionsMap: { key: string; value: string }[] = [
|
|
|
9
9
|
{ key: "TSV", value: "text/tab-separated-values" },
|
|
10
10
|
];
|
|
11
11
|
const AcceptHeaderGraphMap: { key: string; value: string }[] = [
|
|
12
|
-
{ key: "Turtle", value: "text/turtle" },
|
|
13
|
-
{ key: "JSON", value: "application/rdf+json" },
|
|
14
|
-
{ key: "RDF/XML", value: "application/rdf+xml" },
|
|
15
|
-
{ key: "TriG", value: "application/trig" },
|
|
16
|
-
{ key: "N-Triples", value: "application/n-triples" },
|
|
17
|
-
{ key: "N-Quads", value: "application/n-quads" },
|
|
18
|
-
{ key: "CSV", value: "text/csv" },
|
|
19
|
-
{ key: "TSV", value: "text/tab-separated-values" },
|
|
12
|
+
{ key: "Turtle", value: "text/turtle,*/*;q=0.9" },
|
|
13
|
+
{ key: "JSON", value: "application/rdf+json,*/*;q=0.9" },
|
|
14
|
+
{ key: "RDF/XML", value: "application/rdf+xml,*/*;q=0.9" },
|
|
15
|
+
{ key: "TriG", value: "application/trig,*/*;q=0.9" },
|
|
16
|
+
{ key: "N-Triples", value: "application/n-triples,*/*;q=0.9" },
|
|
17
|
+
{ key: "N-Quads", value: "application/n-quads,*/*;q=0.9" },
|
|
18
|
+
{ key: "CSV", value: "text/csv,*/*;q=0.9" },
|
|
19
|
+
{ key: "TSV", value: "text/tab-separated-values,*/*;q=0.9" },
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
export default class TabSettingsModal {
|