forked from odpi/egeria-js-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icons-and-data-mappings.js
165 lines (162 loc) · 29 KB
/
icons-and-data-mappings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
export const iconsMap = {
'bi-file-earmark': `<svg width="20" height="20" viewBox="0 0 17 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.85714 0H10V1.42857H2.85714C2.47826 1.42857 2.1149 1.57908 1.84699 1.84699C1.57908 2.1149 1.42857 2.47826 1.42857 2.85714V17.1429C1.42857 17.5217 1.57908 17.8851 1.84699 18.153C2.1149 18.4209 2.47826 18.5714 2.85714 18.5714H14.2857C14.6646 18.5714 15.028 18.4209 15.2959 18.153C15.5638 17.8851 15.7143 17.5217 15.7143 17.1429V7.14286H17.1429V17.1429C17.1429 17.9006 16.8418 18.6273 16.306 19.1632C15.7702 19.699 15.0435 20 14.2857 20H2.85714C2.09938 20 1.37266 19.699 0.836838 19.1632C0.301019 18.6273 0 17.9006 0 17.1429V2.85714C0 2.09938 0.301019 1.37266 0.836838 0.836838C1.37266 0.30102 2.09938 0 2.85714 0Z" fill="white"/><path d="M10 5V0L17.1429 7.14286H12.1429C11.5745 7.14286 11.0295 6.91709 10.6276 6.51523C10.2258 6.11337 10 5.56832 10 5Z" fill="white"/></svg>`,
'bi-folder': `<svg width="20" height="20" viewBox="0 0 20 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.3386 3.84113C11.3204 3.84057 10.344 3.43576 9.62417 2.71568L8.56146 1.65553C8.32202 1.41602 7.99745 1.28113 7.65879 1.28038H2.95597C2.62057 1.28032 2.29853 1.41187 2.0591 1.64675C1.81967 1.88163 1.68197 2.20108 1.67559 2.53642L1.73449 3.84113H0.454117L0.395219 2.56075C0.395219 1.8816 0.665012 1.23026 1.14525 0.750027C1.62548 0.269793 2.27682 0 2.95597 0H7.65751C8.33661 0.000145034 8.98784 0.270033 9.46796 0.7503L10.5281 1.81045C11.0082 2.29072 11.6595 2.56061 12.3386 2.56075V3.84113Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.439 3.84113H2.56102C2.38315 3.84112 2.20724 3.87816 2.04449 3.94991C1.88174 4.02165 1.73572 4.12651 1.61574 4.25781C1.49576 4.38912 1.40446 4.54398 1.34764 4.71252C1.29083 4.88106 1.26975 5.0596 1.28576 5.23674L2.10136 14.1994C2.13011 14.5175 2.27673 14.8134 2.51244 15.029C2.74814 15.2445 3.05592 15.3642 3.37534 15.3645H16.6247C16.9441 15.3642 17.2519 15.2445 17.4876 15.029C17.7233 14.8134 17.8699 14.5175 17.8986 14.1994L18.7142 5.23674C18.7302 5.0596 18.7092 4.88106 18.6524 4.71252C18.5955 4.54398 18.5042 4.38912 18.3843 4.25781C18.2643 4.12651 18.1183 4.02165 17.9555 3.94991C17.7928 3.87816 17.6168 3.84112 17.439 3.84113ZM2.56102 2.56075C2.20517 2.56071 1.85323 2.63484 1.52763 2.7784C1.20203 2.92197 0.909932 3.13181 0.669955 3.39456C0.429979 3.6573 0.247397 3.96718 0.133855 4.30442C0.0203134 4.64166 -0.0216954 4.99887 0.0105084 5.35325L0.826108 14.3159C0.883924 14.9521 1.17747 15.5438 1.64913 15.9747C2.12078 16.4056 2.73648 16.6446 3.37534 16.6449H16.6247C17.2635 16.6446 17.8792 16.4056 18.3509 15.9747C18.8225 15.5438 19.1161 14.9521 19.1739 14.3159L19.9895 5.35325C20.0217 4.99887 19.9797 4.64166 19.8661 4.30442C19.7526 3.96718 19.57 3.6573 19.33 3.39456C19.0901 3.13181 18.798 2.92197 18.4724 2.7784C18.1468 2.63484 17.7948 2.56071 17.439 2.56075H2.56102Z" fill="white"/></svg>`,
'bi-table': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 2.5C0 1.83696 0.263392 1.20107 0.732233 0.732233C1.20107 0.263392 1.83696 0 2.5 0H17.5C18.163 0 18.7989 0.263392 19.2678 0.732233C19.7366 1.20107 20 1.83696 20 2.5V17.5C20 18.163 19.7366 18.7989 19.2678 19.2678C18.7989 19.7366 18.163 20 17.5 20H2.5C1.83696 20 1.20107 19.7366 0.732233 19.2678C0.263392 18.7989 0 18.163 0 17.5V2.5ZM18.75 5H13.75V8.75H18.75V5ZM18.75 10H13.75V13.75H18.75V10ZM18.75 15H13.75V18.75H17.5C17.8315 18.75 18.1495 18.6183 18.3839 18.3839C18.6183 18.1495 18.75 17.8315 18.75 17.5V15ZM12.5 18.75V15H7.5V18.75H12.5ZM6.25 18.75V15H1.25V17.5C1.25 17.8315 1.3817 18.1495 1.61612 18.3839C1.85054 18.6183 2.16848 18.75 2.5 18.75H6.25ZM1.25 13.75H6.25V10H1.25V13.75ZM1.25 8.75H6.25V5H1.25V8.75ZM7.5 5V8.75H12.5V5H7.5ZM12.5 10H7.5V13.75H12.5V10Z" fill="white"/></svg>`,
'carbon-category': `<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.8571 14.3864V11.4286C17.8571 11.0497 17.7066 10.6863 17.4387 10.4184C17.1708 10.1505 16.8074 9.99999 16.4286 9.99999H10.7143V7.14285H12.1429C12.5216 7.14247 12.8848 6.99184 13.1526 6.72402C13.4204 6.45619 13.571 6.09305 13.5714 5.71428V1.42857C13.571 1.04981 13.4204 0.686663 13.1526 0.418836C12.8848 0.151009 12.5216 0.000378197 12.1429 0H7.85714C7.47838 0.000378197 7.11524 0.151009 6.84741 0.418836C6.57958 0.686663 6.42895 1.04981 6.42857 1.42857V5.71428C6.42895 6.09305 6.57958 6.45619 6.84741 6.72402C7.11524 6.99184 7.47838 7.14247 7.85714 7.14285H9.28571V9.99999H3.57143C3.19255 9.99999 2.82919 10.1505 2.56128 10.4184C2.29337 10.6863 2.14286 11.0497 2.14286 11.4286V14.3871C1.46954 14.561 0.882728 14.9744 0.492434 15.55C0.10214 16.1256 -0.0648453 16.8237 0.0227792 17.5136C0.110404 18.2034 0.446622 18.8377 0.968412 19.2974C1.4902 19.7571 2.16174 20.0107 2.85715 20.0107C3.55256 20.0107 4.22409 19.7571 4.74588 19.2974C5.26767 18.8377 5.60389 18.2034 5.69152 17.5136C5.77914 16.8237 5.61216 16.1256 5.22186 15.55C4.83157 14.9744 4.24476 14.561 3.57143 14.3871V11.4286H9.28571V14.3871C8.61239 14.561 8.02558 14.9744 7.63529 15.55C7.24499 16.1256 7.07801 16.8237 7.16563 17.5136C7.25326 18.2034 7.58947 18.8377 8.11126 19.2974C8.63305 19.7571 9.30459 20.0107 10 20.0107C10.6954 20.0107 11.3669 19.7571 11.8887 19.2974C12.4105 18.8377 12.7467 18.2034 12.8344 17.5136C12.922 16.8237 12.755 16.1256 12.3647 15.55C11.9744 14.9744 11.3876 14.561 10.7143 14.3871V11.4286H16.4286V14.3864C15.7552 14.5603 15.1684 14.9737 14.7781 15.5493C14.3878 16.1248 14.2209 16.823 14.3085 17.5128C14.3961 18.2027 14.7323 18.8369 15.2541 19.2966C15.7759 19.7564 16.4474 20.01 17.1429 20.01C17.8383 20.01 18.5098 19.7564 19.0316 19.2966C19.5534 18.8369 19.8896 18.2027 19.9772 17.5128C20.0648 16.823 19.8979 16.1248 19.5076 15.5493C19.1173 14.9737 18.5305 14.5603 17.8571 14.3864ZM7.85714 1.42857H12.1429L12.1436 5.71428H7.85714V1.42857ZM4.28572 17.1428C4.28572 17.4254 4.20193 17.7016 4.04496 17.9365C3.88799 18.1714 3.66488 18.3545 3.40384 18.4627C3.1428 18.5708 2.85556 18.5991 2.57845 18.544C2.30133 18.4888 2.04679 18.3528 1.847 18.153C1.64721 17.9532 1.51115 17.6987 1.45603 17.4215C1.40091 17.1444 1.4292 16.8572 1.53732 16.5962C1.64545 16.3351 1.82855 16.112 2.06348 15.955C2.2984 15.7981 2.5746 15.7143 2.85715 15.7143C3.23591 15.7147 3.59905 15.8653 3.86688 16.1331C4.13471 16.4009 4.28534 16.7641 4.28572 17.1428ZM11.4286 17.1428C11.4286 17.4254 11.3448 17.7016 11.1878 17.9365C11.0308 18.1714 10.8077 18.3545 10.5467 18.4627C10.2857 18.5708 9.99842 18.5991 9.7213 18.544C9.44418 18.4888 9.18964 18.3528 8.98985 18.153C8.79006 17.9532 8.654 17.6987 8.59888 17.4215C8.54376 17.1444 8.57205 16.8572 8.68017 16.5962C8.7883 16.3351 8.9714 16.112 9.20633 15.955C9.44126 15.7981 9.71746 15.7143 10 15.7143C10.3787 15.7148 10.7417 15.8655 11.0095 16.1333C11.2773 16.4011 11.428 16.7641 11.4286 17.1428ZM17.1429 18.5714C16.8603 18.5714 16.5841 18.4876 16.3492 18.3307C16.1143 18.1737 15.9312 17.9506 15.823 17.6895C15.7149 17.4285 15.6866 17.1413 15.7417 16.8641C15.7969 16.587 15.9329 16.3325 16.1327 16.1327C16.3325 15.9329 16.587 15.7968 16.8642 15.7417C17.1413 15.6866 17.4285 15.7149 17.6895 15.823C17.9506 15.9311 18.1737 16.1142 18.3307 16.3492C18.4876 16.5841 18.5714 16.8603 18.5714 17.1428C18.571 17.5216 18.4204 17.8848 18.1526 18.1526C17.8848 18.4204 17.5216 18.571 17.1429 18.5714Z" fill="white"/></svg>`,
'carbon-column': `<svg width="20" height="20" viewBox="0 0 17 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 0H16.6667V20H15V0Z" fill="white"/><path d="M10 1.66667V18.3333H6.66667V1.66667H10ZM10 0H6.66667C6.22464 0 5.80072 0.175595 5.48816 0.488155C5.17559 0.800716 5 1.22464 5 1.66667V18.3333C5 18.7754 5.17559 19.1993 5.48816 19.5118C5.80072 19.8244 6.22464 20 6.66667 20H10C10.442 20 10.866 19.8244 11.1785 19.5118C11.4911 19.1993 11.6667 18.7754 11.6667 18.3333V1.66667C11.6667 1.22464 11.4911 0.800716 11.1785 0.488155C10.866 0.175595 10.442 0 10 0Z" fill="white"/><path d="M0 0H1.66667V20H0V0Z" fill="white"/></svg>`,
'carbon-data-structured': `<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.28571C5.39449 4.28571 5.71428 3.96592 5.71428 3.57143C5.71428 3.17694 5.39449 2.85714 5 2.85714C4.60551 2.85714 4.28571 3.17694 4.28571 3.57143C4.28571 3.96592 4.60551 4.28571 5 4.28571Z" fill="white"/><path d="M17.8571 14.3857V11.4286C17.8571 11.0497 17.7066 10.6863 17.4387 10.4184C17.1708 10.1505 16.8074 9.99999 16.4286 9.99999H10.7143V7.14285H17.1429C17.5217 7.14285 17.8851 6.99234 18.153 6.72443C18.4209 6.45652 18.5714 6.09316 18.5714 5.71428V1.42857C18.5714 1.04969 18.4209 0.686327 18.153 0.418419C17.8851 0.15051 17.5217 0 17.1429 0H2.85715C2.47827 0 2.1149 0.15051 1.847 0.418419C1.57909 0.686327 1.42858 1.04969 1.42858 1.42857V5.71428C1.42858 6.09316 1.57909 6.45652 1.847 6.72443C2.1149 6.99234 2.47827 7.14285 2.85715 7.14285H9.28571V9.99999H3.57143C3.19255 9.99999 2.82919 10.1505 2.56128 10.4184C2.29337 10.6863 2.14286 11.0497 2.14286 11.4286V14.3857C1.46954 14.5596 0.882728 14.973 0.492434 15.5486C0.10214 16.1241 -0.0648453 16.8223 0.0227792 17.5121C0.110404 18.202 0.446622 18.8362 0.968412 19.2959C1.4902 19.7556 2.16174 20.0093 2.85715 20.0093C3.55256 20.0093 4.22409 19.7556 4.74588 19.2959C5.26767 18.8362 5.60389 18.202 5.69152 17.5121C5.77914 16.8223 5.61216 16.1241 5.22186 15.5486C4.83157 14.973 4.24476 14.5596 3.57143 14.3857V11.4286H9.28571V14.2857H7.14286V20H12.8571V14.2857H10.7143V11.4286H16.4286V14.3857C15.7552 14.5596 15.1684 14.973 14.7781 15.5486C14.3878 16.1241 14.2209 16.8223 14.3085 17.5121C14.3961 18.202 14.7323 18.8362 15.2541 19.2959C15.7759 19.7556 16.4474 20.0093 17.1429 20.0093C17.8383 20.0093 18.5098 19.7556 19.0316 19.2959C19.5534 18.8362 19.8896 18.202 19.9772 17.5121C20.0648 16.8223 19.8979 16.1241 19.5076 15.5486C19.1173 14.973 18.5305 14.5596 17.8571 14.3857ZM4.28572 17.1428C4.28572 17.4254 4.20193 17.7016 4.04496 17.9365C3.88799 18.1714 3.66488 18.3545 3.40384 18.4627C3.1428 18.5708 2.85556 18.5991 2.57845 18.544C2.30133 18.4888 2.04679 18.3528 1.847 18.153C1.64721 17.9532 1.51115 17.6987 1.45603 17.4215C1.40091 17.1444 1.4292 16.8572 1.53732 16.5962C1.64545 16.3351 1.82855 16.112 2.06348 15.955C2.2984 15.7981 2.5746 15.7143 2.85715 15.7143C3.23603 15.7143 3.59939 15.8648 3.8673 16.1327C4.13521 16.4006 4.28572 16.764 4.28572 17.1428ZM11.4286 15.7143V18.5714H8.57143V15.7143H11.4286ZM2.85715 5.71428V1.42857H17.1429V5.71428H2.85715ZM17.1429 18.5714C16.8603 18.5714 16.5841 18.4876 16.3492 18.3307C16.1143 18.1737 15.9312 17.9506 15.823 17.6895C15.7149 17.4285 15.6866 17.1413 15.7417 16.8641C15.7969 16.587 15.9329 16.3325 16.1327 16.1327C16.3325 15.9329 16.587 15.7968 16.8642 15.7417C17.1413 15.6866 17.4285 15.7149 17.6895 15.823C17.9506 15.9311 18.1737 16.1142 18.3307 16.3492C18.4876 16.5841 18.5714 16.8603 18.5714 17.1428C18.5714 17.5217 18.4209 17.8851 18.153 18.153C17.8851 18.4209 17.5217 18.5714 17.1429 18.5714Z" fill="white"/></svg>`,
'dashicons-database': `<svg width="20" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.75 5C13.625 5 17.5 3.875 17.5 2.5C17.5 1.125 13.625 0 8.75 0C3.875 0 0 1.125 0 2.5C0 3.875 3.875 5 8.75 5ZM8.75 16.25C3.875 16.25 0 15.125 0 13.75V17.5C0 18.875 3.875 20 8.75 20C13.625 20 17.5 18.875 17.5 17.5V13.75C17.5 15.125 13.625 16.25 8.75 16.25ZM8.75 11.25C3.875 11.25 0 10.125 0 8.75V12.5C0 13.875 3.875 15 8.75 15C13.625 15 17.5 13.875 17.5 12.5V8.75C17.5 10.125 13.625 11.25 8.75 11.25ZM8.75 6.25C3.875 6.25 0 5.125 0 3.75V7.5C0 8.875 3.875 10 8.75 10C13.625 10 17.5 8.875 17.5 7.5V3.75C17.5 5.125 13.625 6.25 8.75 6.25Z" fill="white"/></svg>`,
'data-file-field':`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 0h-8v16h12v-12l-4-4zM9 5h4v10h-10v-14h6v4zM10 4v-3l3 3h-3z" fill="white"></path><path d="M4 7h8v1h-8v-1z" fill="white"></path><path d="M4 9h8v1h-8v-1z" fill="white"></path><path d="M4 11h8v1h-8v-1z" fill="white"></path></svg>`,
'data-file-record':`<svg width="20" height="20" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M488.671 221.645a23.848 23.848 0 0 0-18.917-9.231h-66.2V160a23.138 23.138 0 0 0-23.112-23.111h-136.3L226.37 94.22A23.051 23.051 0 0 0 205.037 80H39.111A23.138 23.138 0 0 0 16 103.111v364.445h420.707l56.33-225.321a23.849 23.849 0 0 0-4.366-20.59zM48 435.556V112h151.111l23.7 56.889h148.745v43.525H137.587a23.965 23.965 0 0 0-23.287 18.179L63.063 435.556zm363.723 0H96.048l47.785-191.142h315.675z" fill="white"/></svg>`,
'file-icons-microsoft-infopath': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.2833 2.49988C18.7993 2.03988 18.3938 1.47527 17.8095 1.13949C16.9832 0.805937 16.4361 1.67363 15.9237 2.15543C15.4768 2.6852 14.6156 3.21281 14.9296 4.01945C15.0735 4.53398 16.1286 4.6168 16.1286 4.6168V5.42129L11.3323 5.43652V0.625H10.0177L0 2.3734V17.63L9.96324 19.3741H11.3324L11.3302 17.497C11.7117 17.5341 12.1488 17.7348 12.4966 17.4818C13.038 17.0876 13.4602 16.5552 13.9354 16.0864C14.6628 15.402 15.1233 14.3384 13.2945 14.072V13.2763H17.2274C18.5627 13.215 18.7339 13.3482 18.7514 11.7436L18.7448 4.61895C18.7448 4.61895 19.875 4.47043 19.9853 3.85371C20.0897 3.27023 19.6147 2.87707 19.2833 2.49988ZM4.77887 13.5575L4.78105 6.36094L6.08477 6.29117L6.1 13.7102L4.77887 13.5575ZM13.9703 14.822C13.6629 15.6592 12.8519 16.1781 12.2807 16.8343C11.945 17.218 11.5787 16.7209 11.328 16.5073V6.08621L16.1286 6.07531V7.3834H12.6404V14.822L13.9703 14.822ZM13.2945 8.03746H16.1286V10.6536H13.2945V8.03746ZM18.0908 3.90387L18.082 12.607L13.2945 12.6157V11.3076H16.7827V3.90387C16.327 3.89516 15.8736 3.88207 15.4245 3.85371C15.806 3.04707 16.5559 2.50203 17.1468 1.85453C17.3975 1.53406 17.7572 1.83492 17.9425 2.05949C18.4483 2.64812 19.1241 3.12121 19.4468 3.84934C18.9934 3.88207 18.5399 3.89516 18.0908 3.90387Z" fill="white"/></svg>`,
'file-icons-microsoft-project': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3904 0.527344V2.50164H19.3784C19.7217 2.50164 20 2.77992 20 3.12324V16.7121C20 17.0554 19.7217 17.3337 19.3784 17.3337H11.3904V19.4738L0 17.4579V2.53961L11.3904 0.527344ZM7.61066 8.81699C7.64898 8.21004 7.50488 7.59477 7.0966 7.20125C6.61074 6.73285 6.28684 6.65082 4.89781 6.72273L3.76945 6.78117V13.1544H4.91672V10.942C7.03332 11.1226 7.52395 9.90168 7.61066 8.81699ZM6.29207 8.81699C6.23211 9.85262 5.75246 9.80902 4.91668 9.79473V7.86902C5.85602 7.8359 6.26148 7.96457 6.29207 8.81699ZM18.4541 8.81141L16.3013 11.0568L14.0509 8.81141H15.7334V5.86141H11.3904V11.6286L13.1197 9.92684L15.6925 12.5014C15.6925 12.5014 13.1745 14.9573 13.1148 14.9573C13.0551 14.9573 11.3904 13.3696 11.3904 13.3696V16.6781H19.339V3.15719H11.3904V4.79605H16.7987V8.81137L18.4541 8.81141Z" fill="white"/></svg>`,
'ion-list-circle-outline': `<svg width="20" height="20" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.33333 6.64583C9.05719 6.64583 8.83333 6.86969 8.83333 7.14583C8.83333 7.42198 9.05719 7.64583 9.33333 7.64583V6.64583ZM16 7.64583C16.2761 7.64583 16.5 7.42198 16.5 7.14583C16.5 6.86969 16.2761 6.64583 16 6.64583V7.64583ZM9.33333 10.3958C9.05719 10.3958 8.83333 10.6197 8.83333 10.8958C8.83333 11.172 9.05719 11.3958 9.33333 11.3958V10.3958ZM16 11.3958C16.2761 11.3958 16.5 11.172 16.5 10.8958C16.5 10.6197 16.2761 10.3958 16 10.3958V11.3958ZM9.33333 14.0938C9.05719 14.0938 8.83333 14.3176 8.83333 14.5938C8.83333 14.8699 9.05719 15.0938 9.33333 15.0938V14.0938ZM16 15.0938C16.2761 15.0938 16.5 14.8699 16.5 14.5938C16.5 14.3176 16.2761 14.0938 16 14.0938V15.0938ZM9.33333 7.64583H16V6.64583H9.33333V7.64583ZM9.33333 11.3958H16V10.3958H9.33333V11.3958ZM9.33333 15.0938H16V14.0938H9.33333V15.0938ZM21.5 11C21.5 5.20302 16.797 0.5 11 0.5V1.5C16.2447 1.5 20.5 5.75531 20.5 11H21.5ZM11 0.5C5.20302 0.5 0.5 5.20302 0.5 11H1.5C1.5 5.75531 5.75531 1.5 11 1.5V0.5ZM0.5 11C0.5 16.797 5.20302 21.5 11 21.5V20.5C5.75531 20.5 1.5 16.2447 1.5 11H0.5ZM11 21.5C16.797 21.5 21.5 16.797 21.5 11H20.5C20.5 16.2447 16.2447 20.5 11 20.5V21.5ZM6.33333 7.14583C6.33333 7.09981 6.37064 7.0625 6.41667 7.0625V8.0625C6.92293 8.0625 7.33333 7.65209 7.33333 7.14583H6.33333ZM6.41667 7.0625C6.46269 7.0625 6.5 7.09981 6.5 7.14583H5.5C5.5 7.65209 5.91041 8.0625 6.41667 8.0625V7.0625ZM6.5 7.14583C6.5 7.19186 6.46269 7.22917 6.41667 7.22917V6.22917C5.91041 6.22917 5.5 6.63957 5.5 7.14583H6.5ZM6.41667 7.22917C6.37064 7.22917 6.33333 7.19186 6.33333 7.14583H7.33333C7.33333 6.63957 6.92293 6.22917 6.41667 6.22917V7.22917ZM6.33333 10.9479C6.33333 10.9019 6.37064 10.8646 6.41667 10.8646V11.8646C6.92293 11.8646 7.33333 11.4542 7.33333 10.9479H6.33333ZM6.41667 10.8646C6.46269 10.8646 6.5 10.9019 6.5 10.9479H5.5C5.5 11.4542 5.91041 11.8646 6.41667 11.8646V10.8646ZM6.5 10.9479C6.5 10.9939 6.46269 11.0313 6.41667 11.0313V10.0313C5.91041 10.0313 5.5 10.4417 5.5 10.9479H6.5ZM6.41667 11.0313C6.37064 11.0313 6.33333 10.9939 6.33333 10.9479H7.33333C7.33333 10.4417 6.92293 10.0313 6.41667 10.0313V11.0313ZM6.33333 14.6458C6.33333 14.5998 6.37064 14.5625 6.41667 14.5625V15.5625C6.92293 15.5625 7.33333 15.1521 7.33333 14.6458H6.33333ZM6.41667 14.5625C6.46269 14.5625 6.5 14.5998 6.5 14.6458H5.5C5.5 15.1521 5.91041 15.5625 6.41667 15.5625V14.5625ZM6.5 14.6458C6.5 14.6919 6.46269 14.7292 6.41667 14.7292V13.7292C5.91041 13.7292 5.5 14.1396 5.5 14.6458H6.5ZM6.41667 14.7292C6.37064 14.7292 6.33333 14.6919 6.33333 14.6458H7.33333C7.33333 14.1396 6.92293 13.7292 6.41667 13.7292V14.7292Z" fill="white"/></svg>`,
'mdi-cogs': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.9445 15.6667C14.2302 15.6667 15.2778 14.619 15.2778 13.3333C15.2778 12.0476 14.2302 11 12.9445 11C11.6492 11 10.6111 12.0476 10.6111 13.3333C10.6111 14.619 11.6492 15.6667 12.9445 15.6667ZM17.8968 13.981L19.3064 15.0857C19.4302 15.1905 19.4683 15.3619 19.3825 15.5143L18.0492 17.819C18.0092 17.8878 17.946 17.94 17.8709 17.9662C17.7958 17.9924 17.7138 17.9909 17.6397 17.9619L15.9825 17.2952C15.6397 17.5619 15.2587 17.781 14.8587 17.9524L14.6016 19.7143C14.5825 19.8762 14.4397 20 14.2778 20H11.6111C11.4397 20 11.3064 19.8762 11.2778 19.7143L11.0302 17.9524C10.6206 17.781 10.2492 17.5619 9.90636 17.2952L8.23969 17.9619C8.09683 18.019 7.91588 17.9619 7.83969 17.819L6.50636 15.5143C6.46578 15.4455 6.45116 15.3645 6.46514 15.2859C6.47911 15.2073 6.52076 15.1363 6.58255 15.0857L7.99207 13.981L7.94445 13.3333L7.99207 12.6762L6.58255 11.581C6.52109 11.5302 6.47968 11.4592 6.46573 11.3807C6.45177 11.3022 6.46617 11.2212 6.50636 11.1524L7.83969 8.84762C7.91588 8.69524 8.09683 8.6381 8.23969 8.69524L9.90636 9.37143C10.2492 9.10476 10.6206 8.87619 11.0302 8.71429L11.2778 6.94286C11.3064 6.79048 11.4397 6.66667 11.6111 6.66667H14.2778C14.4397 6.66667 14.5825 6.79048 14.6016 6.94286L14.8587 8.71429C15.2587 8.87619 15.6397 9.10476 15.9825 9.37143L17.6397 8.69524C17.8016 8.6381 17.9635 8.69524 18.0492 8.84762L19.3825 11.1524C19.4683 11.2952 19.4302 11.4762 19.3064 11.581L17.8968 12.6762L17.9445 13.3333L17.8968 13.981ZM4.17302 5.78095C5.0016 5.78095 5.66826 5.11429 5.66826 4.28571C5.66826 3.45714 5.0016 2.78095 4.17302 2.78095C3.77394 2.78095 3.39119 2.93949 3.109 3.22169C2.8268 3.50388 2.66826 3.88663 2.66826 4.28571C2.66826 5.11429 3.34445 5.78095 4.17302 5.78095ZM7.35398 4.70476L8.27779 5.40952C8.34445 5.47619 8.3635 5.59048 8.30636 5.68571L7.44921 7.17143C7.4016 7.26667 7.28731 7.30476 7.19207 7.26667L6.1254 6.8381L5.42064 7.25714L5.23969 8.39048C5.22064 8.49524 5.13493 8.57143 5.03017 8.57143H3.31588C3.2016 8.57143 3.11588 8.49524 3.09683 8.39048L2.94445 7.25714L2.22064 6.8381L1.13493 7.26667C1.04921 7.30476 0.944453 7.26667 0.88731 7.17143L0.0301673 5.68571C-0.0269756 5.59048 0.00159603 5.47619 0.0777865 5.40952L0.982548 4.70476L0.953977 4.28571L0.982548 3.86667L0.0777865 3.1619C0.0386636 3.1288 0.0124482 3.08298 0.00374051 3.03247C-0.00496714 2.98197 0.00438901 2.93001 0.0301673 2.88571L0.88731 1.4C0.944453 1.30476 1.04921 1.26667 1.13493 1.30476L2.21112 1.73333L2.94445 1.31429L3.09683 0.180952C3.11588 0.0761905 3.2016 0 3.31588 0H5.03017C5.13493 0 5.22064 0.0761905 5.23969 0.180952L5.42064 1.31429L6.1254 1.73333L7.19207 1.30476C7.28731 1.26667 7.4016 1.30476 7.44921 1.4L8.30636 2.88571C8.3635 2.98095 8.34445 3.09524 8.27779 3.1619L7.35398 3.86667L7.38255 4.28571L7.35398 4.70476Z" fill="white"/></svg>`,
'mdi-table-column': `<svg width="20" height="20" viewBox="0 0 12 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 0H10C10.5304 0 11.0391 0.210714 11.4142 0.585786C11.7893 0.960859 12 1.46957 12 2V18C12 18.5304 11.7893 19.0391 11.4142 19.4142C11.0391 19.7893 10.5304 20 10 20H2C1.46957 20 0.960859 19.7893 0.585786 19.4142C0.210714 19.0391 0 18.5304 0 18V2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0ZM2 8V12H10V8H2ZM2 14V18H10V14H2ZM2 2V6H10V2H2Z" fill="white"/></svg>`,
'mdi-transit-connection-variant': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.9984 8.16626H11.3484C10.9984 7.19959 10.0817 6.49959 8.99837 6.49959C7.91504 6.49959 6.99837 7.19959 6.64837 8.16626H3.99837C3.72337 8.16626 2.33171 8.08293 2.33171 6.49959V5.66626C2.33171 4.14126 3.61504 3.99959 3.99837 3.99959H12.4817C12.8317 4.96626 13.7484 5.66626 14.8317 5.66626C15.4947 5.66626 16.1306 5.40287 16.5995 4.93403C17.0683 4.46519 17.3317 3.8293 17.3317 3.16626C17.3317 2.50322 17.0683 1.86733 16.5995 1.39849C16.1306 0.929652 15.4947 0.66626 14.8317 0.66626C13.7484 0.66626 12.8317 1.36626 12.4817 2.33293H3.99837C2.65671 2.33293 0.665039 3.21626 0.665039 5.66626V6.49959C0.665039 8.94959 2.65671 9.83293 3.99837 9.83293H6.64837C6.99837 10.7996 7.91504 11.4996 8.99837 11.4996C10.0817 11.4996 10.9984 10.7996 11.3484 9.83293H13.9984C14.2734 9.83293 15.665 9.91626 15.665 11.4996V12.3329C15.665 13.8579 14.3817 13.9996 13.9984 13.9996H5.51504C5.16504 13.0329 4.24837 12.3329 3.16504 12.3329C2.502 12.3329 1.86611 12.5963 1.39727 13.0652C0.928431 13.534 0.665039 14.1699 0.665039 14.8329C0.665039 15.496 0.928431 16.1319 1.39727 16.6007C1.86611 17.0695 2.502 17.3329 3.16504 17.3329C4.24837 17.3329 5.16504 16.6329 5.51504 15.6663H13.9984C15.34 15.6663 17.3317 14.7746 17.3317 12.3329V11.4996C17.3317 9.05793 15.34 8.16626 13.9984 8.16626ZM14.8317 2.33293C15.0527 2.33293 15.2647 2.42072 15.421 2.577C15.5772 2.73328 15.665 2.94525 15.665 3.16626C15.665 3.38727 15.5772 3.59924 15.421 3.75552C15.2647 3.9118 15.0527 3.99959 14.8317 3.99959C14.6107 3.99959 14.3987 3.9118 14.2424 3.75552C14.0862 3.59924 13.9984 3.38727 13.9984 3.16626C13.9984 2.94525 14.0862 2.73328 14.2424 2.577C14.3987 2.42072 14.6107 2.33293 14.8317 2.33293ZM3.16504 15.6663C2.94403 15.6663 2.73206 15.5785 2.57578 15.4222C2.4195 15.2659 2.33171 15.0539 2.33171 14.8329C2.33171 14.6119 2.4195 14.4 2.57578 14.2437C2.73206 14.0874 2.94403 13.9996 3.16504 13.9996C3.38605 13.9996 3.59801 14.0874 3.75429 14.2437C3.91057 14.4 3.99837 14.6119 3.99837 14.8329C3.99837 15.0539 3.91057 15.2659 3.75429 15.4222C3.59801 15.5785 3.38605 15.6663 3.16504 15.6663Z" fill="white"/></svg>`,
'link': `<svg width="20" height="20" viewBox="0 0 24 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z" fill="white"></path></svg>`,
'simple-square': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H20V20H0V0Z" fill="white"/></svg>`,
'system-uicons-hierarchy': `<svg width="20" height="20" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.74955 14.7527V11.0022H17.2514V14.7527M10.9991 11V7.24946M7.24946 1H14.7505V7.25091H7.24946V1ZM13.4989 14.7518H21V21.0028H13.4989V14.7518ZM1 14.7518H8.50109V21.0028H1V14.7518Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
'whh-cog': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.4042 8.80859C17.4693 9.21224 17.5019 9.60938 17.5019 10C17.5019 10.3906 17.4693 10.7878 17.4042 11.1914L19.9238 13.6133C19.9889 13.6784 20.0116 13.7793 19.9921 13.916C19.9726 14.0527 19.9172 14.1927 19.8261 14.3359L18.4784 16.4258C18.3873 16.569 18.2766 16.6829 18.1464 16.7676C18.0162 16.8522 17.912 16.888 17.8339 16.875L14.6113 15.918C14.0123 16.3737 13.3743 16.7318 12.6972 16.9922L11.9355 19.6875C11.9094 19.7656 11.8248 19.8372 11.6816 19.9023C11.5383 19.9674 11.3756 20 11.1933 20H8.5175C8.33521 20 8.17571 19.9674 8.03899 19.9023C7.90227 19.8372 7.82089 19.7656 7.79485 19.6875L7.09172 16.9141C6.51881 16.6667 5.9524 16.3281 5.3925 15.8984L2.18938 16.875C2.09823 16.888 1.98756 16.8522 1.85735 16.7676C1.72714 16.6829 1.61646 16.569 1.52532 16.4258L0.177659 14.3359C0.0865134 14.1927 0.0311749 14.0527 0.0116436 13.916C-0.00788762 13.7793 0.0148988 13.6784 0.080003 13.6133L2.59953 11.1914C2.53443 10.7878 2.50188 10.3906 2.50188 10C2.50188 9.60938 2.53443 9.21224 2.59953 8.80859L0.080003 6.38672C0.0148988 6.32161 -0.00788762 6.2207 0.0116436 6.08398C0.0311749 5.94727 0.0865134 5.80729 0.177659 5.66406L1.52532 3.57422C1.61646 3.43099 1.72714 3.31706 1.85735 3.23242C1.98756 3.14779 2.09823 3.11198 2.18938 3.125L5.3925 4.10156C5.97844 3.63281 6.61646 3.26823 7.30657 3.00781L8.06828 0.3125C8.09433 0.234375 8.17896 0.16276 8.32219 0.0976562C8.46542 0.0325521 8.62818 0 8.81047 0H11.4863C11.6685 0 11.8313 0.0325521 11.9745 0.0976562C12.1178 0.16276 12.1959 0.234375 12.2089 0.3125L12.912 3.08594C13.498 3.33333 14.0644 3.67188 14.6113 4.10156L17.8339 3.125C17.9251 3.11198 18.0325 3.14779 18.1562 3.23242C18.2799 3.31706 18.3873 3.43099 18.4784 3.57422L19.8261 5.66406C19.9172 5.80729 19.9726 5.94727 19.9921 6.08398C20.0116 6.2207 19.9889 6.32161 19.9238 6.38672L17.4042 8.80859ZM10.0019 6.25C8.96021 6.25 8.07479 6.61784 7.34563 7.35352C6.61646 8.08919 6.25188 8.97461 6.25188 10.0098C6.25188 11.0449 6.61646 11.9271 7.34563 12.6562C8.07479 13.3854 8.96021 13.75 10.0019 13.75C11.0435 13.75 11.929 13.3854 12.6581 12.6562C13.3873 11.9271 13.7519 11.0449 13.7519 10.0098C13.7519 8.97461 13.3873 8.08919 12.6581 7.35352C11.929 6.61784 11.0435 6.25 10.0019 6.25Z" fill="white"/></svg>`,
'view':`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 2v2H9V9h10zm-6 6v-2h2v2h-2zm2 2v2h-2v-2h2zm-4-2H9v-2h2v2zm6-2h2v2h-2v-2zm-8 4h2v2H9v-2zm8 2v-2h2v2h-2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1v2z"/></svg>`,
'dashed-line': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="0" x2="20" y1="0" y2="20" stroke="white" stroke-width="2" stroke-dasharray="6, 6"/></svg>`,
'custom-dashed-line': `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="0" x2="20" y1="0" y2="20" stroke="white" stroke-width="2" stroke-dasharray="0,0"/></svg>`
};
export const linksTypeIconMap = {
ReferencingCategory: {
icon: 'dashed-line',
strokeDashArray: '6,6',
label : 'Referencing Relationship'
},
PrimaryCategory: {
icon: 'custom-dashed-line',
strokeDashArray: '0,0',
label : 'Primary Relationship'
}
};
export const itemGroupIconMap = {
AssetZoneMembership: {
icon: 'simple-square'
},
Category: {
icon: 'carbon-category'
},
category: {
icon: 'carbon-category'
},
Column: {
icon: 'simple-square'
},
condensedNode: {
icon: 'simple-square'
},
Connection: {
icon: 'mdi-transit-connection-variant'
},
Host: {
icon: 'mdi-transit-connection-variant'
},
Database: {
icon: 'dashicons-database'
},
DataFile: {
icon: 'bi-file-earmark'
},
Data_file: {
icon: 'bi-file-earmark'
},
Data_file_field: {
icon: 'data-file-field'
},
Data_file_record: {
icon: 'data-file-record'
},
CSVFile: {
icon: 'bi-file-earmark'
},
File: {
icon: 'bi-file-earmark'
},
Database_schema: {
icon: 'system-uicons-hierarchy'
},
Database_column: {
icon: 'mdi-table-column'
},
Database_table: {
icon: 'bi-table'
},
DisplayName: {
icon: 'simple-square'
},
Endpoint: {
icon: 'simple-square'
},
FileFolder: {
icon: 'bi-folder'
},
Glossary: {
icon: 'carbon-data-structured'
},
GlossaryCategory: {
icon: 'carbon-category'
},
GlossaryTerm: {
icon: 'ion-list-circle-outline'
},
Link: {
icon: 'link'
},
Term: {
icon: 'ion-list-circle-outline'
},
Path: {
icon: 'file-icons-microsoft-infopath'
},
Port: {
icon: 'link'
},
Process: {
icon: 'whh-cog'
},
RelationalColumn: {
icon: 'mdi-table-column'
},
RelationalTable: {
icon: 'bi-table'
},
Schema: {
icon: 'system-uicons-hierarchy'
},
subProcess: {
icon: 'mdi-cogs'
},
TabularColumn: {
icon: 'carbon-column'
},
TransformationProject: {
icon: 'file-icons-microsoft-project'
},
Transformation_project: {
icon: 'file-icons-microsoft-project'
},
View: {
icon: 'view'
},
Dsjob: {
icon: 'whh-cog'
},
Stage: {
icon: 'whh-cog'
},
Stage_column: {
icon: 'carbon-column'
}
};
export const getIconByGroup = (groupName) => {
if( itemGroupIconMap[groupName] !== undefined) {
return iconsMap[itemGroupIconMap[groupName].icon];
} else {
return iconsMap['simple-square'];
}
};