@equinor/roma-framework 0.0.6 → 0.0.7-BETA.2
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/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +117 -12
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +1 -3
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +437 -307
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +117 -12
- package/lib/api/roma/model/settingDtoValue.d.ts +1 -3
- package/package.json +1 -1
- package/roma-framework.mjs +177 -1617
package/roma-framework.mjs
CHANGED
|
@@ -2,1612 +2,36 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFramework, FrameworkProvider } from "@equinor/fusion-framework-react";
|
|
3
3
|
import { configureModules } from "@equinor/fusion-framework-app";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useState, useEffect,
|
|
5
|
+
import { useState, useEffect, lazy, useRef, createContext, useContext, useMemo } from "react";
|
|
6
6
|
import { ModuleProvider } from "@equinor/fusion-framework-react-module";
|
|
7
|
-
import
|
|
7
|
+
import { StyleSheetManager } from "styled-components";
|
|
8
|
+
import { EdsProvider, StarProgress, Typography, Card } from "@equinor/eds-core-react";
|
|
8
9
|
import { QueryClient, QueryClientProvider, useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
|
|
9
10
|
import { useCurrentApp, useApps as useApps$1 } from "@equinor/fusion-framework-react/app";
|
|
10
11
|
import { App } from "@equinor/fusion-framework-module-app/app";
|
|
12
|
+
import { tokens } from "@equinor/eds-tokens";
|
|
11
13
|
import { useHttpClient } from "@equinor/fusion-framework-react-module-http";
|
|
12
14
|
const createExtraScopePlugin = (scope) => {
|
|
13
15
|
const plugin = (element, index, childEls) => {
|
|
14
16
|
if (element.type === "rule") {
|
|
15
17
|
element.props = element.props.map((value) => {
|
|
16
18
|
const containerMatch = `div[id^='eds-']`;
|
|
17
|
-
|
|
19
|
+
const snackbarMatch = `body > ${value}`;
|
|
20
|
+
return `${scope} ${value}, ${containerMatch} ${value}, ${snackbarMatch}`;
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
};
|
|
21
24
|
return plugin;
|
|
22
25
|
};
|
|
23
26
|
const StyleProvider = ({ scope, children }) => {
|
|
24
|
-
const stylisPlugins =
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
30
|
-
return typeof o2;
|
|
31
|
-
} : function(o2) {
|
|
32
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
33
|
-
}, _typeof(o);
|
|
34
|
-
}
|
|
35
|
-
function _toPrimitive(input, hint) {
|
|
36
|
-
if (_typeof(input) !== "object" || input === null)
|
|
37
|
-
return input;
|
|
38
|
-
var prim = input[Symbol.toPrimitive];
|
|
39
|
-
if (prim !== void 0) {
|
|
40
|
-
var res = prim.call(input, hint || "default");
|
|
41
|
-
if (_typeof(res) !== "object")
|
|
42
|
-
return res;
|
|
43
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44
|
-
}
|
|
45
|
-
return (hint === "string" ? String : Number)(input);
|
|
46
|
-
}
|
|
47
|
-
function _toPropertyKey(arg) {
|
|
48
|
-
var key = _toPrimitive(arg, "string");
|
|
49
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
50
|
-
}
|
|
51
|
-
function _defineProperty(obj, key, value) {
|
|
52
|
-
key = _toPropertyKey(key);
|
|
53
|
-
if (key in obj) {
|
|
54
|
-
Object.defineProperty(obj, key, {
|
|
55
|
-
value,
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true,
|
|
58
|
-
writable: true
|
|
59
|
-
});
|
|
60
|
-
} else {
|
|
61
|
-
obj[key] = value;
|
|
62
|
-
}
|
|
63
|
-
return obj;
|
|
64
|
-
}
|
|
65
|
-
function ownKeys(e, r) {
|
|
66
|
-
var t = Object.keys(e);
|
|
67
|
-
if (Object.getOwnPropertySymbols) {
|
|
68
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
69
|
-
r && (o = o.filter(function(r2) {
|
|
70
|
-
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
71
|
-
})), t.push.apply(t, o);
|
|
72
|
-
}
|
|
73
|
-
return t;
|
|
74
|
-
}
|
|
75
|
-
function _objectSpread2(e) {
|
|
76
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
77
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
78
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
79
|
-
_defineProperty(e, r2, t[r2]);
|
|
80
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
81
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return e;
|
|
85
|
-
}
|
|
86
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
87
|
-
if (source == null)
|
|
88
|
-
return {};
|
|
89
|
-
var target = {};
|
|
90
|
-
var sourceKeys = Object.keys(source);
|
|
91
|
-
var key, i;
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
93
|
-
key = sourceKeys[i];
|
|
94
|
-
if (excluded.indexOf(key) >= 0)
|
|
95
|
-
continue;
|
|
96
|
-
target[key] = source[key];
|
|
97
|
-
}
|
|
98
|
-
return target;
|
|
99
|
-
}
|
|
100
|
-
function _objectWithoutProperties(source, excluded) {
|
|
101
|
-
if (source == null)
|
|
102
|
-
return {};
|
|
103
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
104
|
-
var key, i;
|
|
105
|
-
if (Object.getOwnPropertySymbols) {
|
|
106
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
107
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
108
|
-
key = sourceSymbolKeys[i];
|
|
109
|
-
if (excluded.indexOf(key) >= 0)
|
|
110
|
-
continue;
|
|
111
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
112
|
-
continue;
|
|
113
|
-
target[key] = source[key];
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return target;
|
|
117
|
-
}
|
|
118
|
-
var clickbounds = {
|
|
119
|
-
jumbo__base: "88px",
|
|
120
|
-
default__base: "48px",
|
|
121
|
-
default__input: "56px",
|
|
122
|
-
compact__standard: "32px",
|
|
123
|
-
compact__input: "44px"
|
|
124
|
-
};
|
|
125
|
-
var colors$1 = {
|
|
126
|
-
text: {
|
|
127
|
-
static_icons__default: {
|
|
128
|
-
hex: "#3d3d3d",
|
|
129
|
-
hsla: "hsla(0, 0%, 23.9%, 1)",
|
|
130
|
-
rgba: "var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"
|
|
131
|
-
},
|
|
132
|
-
static_icons__secondary: {
|
|
133
|
-
hex: "#565656",
|
|
134
|
-
hsla: "hsla(0, 0%, 33.7%, 1)",
|
|
135
|
-
rgba: "var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"
|
|
136
|
-
},
|
|
137
|
-
static_icons__tertiary: {
|
|
138
|
-
hex: "#6f6f6f",
|
|
139
|
-
hsla: "hsla(0, 0%, 43.5%, 1)",
|
|
140
|
-
rgba: "var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"
|
|
141
|
-
},
|
|
142
|
-
static_icons__primary_white: {
|
|
143
|
-
hex: "#ffffff",
|
|
144
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
145
|
-
rgba: "var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
ui: {
|
|
149
|
-
background__default: {
|
|
150
|
-
hex: "#ffffff",
|
|
151
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
152
|
-
rgba: "var(--eds_ui_background__default, rgba(255, 255, 255, 1))"
|
|
153
|
-
},
|
|
154
|
-
background__semitransparent: {
|
|
155
|
-
hex: "#ffffff",
|
|
156
|
-
hsla: "hsla(0, 0%, 100%, 0.2)",
|
|
157
|
-
rgba: "var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"
|
|
158
|
-
},
|
|
159
|
-
background__light: {
|
|
160
|
-
hex: "#f7f7f7",
|
|
161
|
-
hsla: "hsla(0, 0%, 96.9%, 1)",
|
|
162
|
-
rgba: "var(--eds_ui_background__light, rgba(247, 247, 247, 1))"
|
|
163
|
-
},
|
|
164
|
-
background__scrim: {
|
|
165
|
-
hex: "#000000",
|
|
166
|
-
hsla: "hsla(0, 0%, 0%, 0.4)",
|
|
167
|
-
rgba: "var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"
|
|
168
|
-
},
|
|
169
|
-
background__overlay: {
|
|
170
|
-
hex: "#000000",
|
|
171
|
-
hsla: "hsla(0, 0%, 0%, 0.8)",
|
|
172
|
-
rgba: "var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"
|
|
173
|
-
},
|
|
174
|
-
background__medium: {
|
|
175
|
-
hex: "#dcdcdc",
|
|
176
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
177
|
-
rgba: "var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"
|
|
178
|
-
},
|
|
179
|
-
background__info: {
|
|
180
|
-
hex: "#d5eaf4",
|
|
181
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
182
|
-
rgba: "var(--eds_ui_background__info, rgba(213, 234, 244, 1))"
|
|
183
|
-
},
|
|
184
|
-
background__warning: {
|
|
185
|
-
hex: "#ffe7d6",
|
|
186
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
187
|
-
rgba: "var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"
|
|
188
|
-
},
|
|
189
|
-
background__danger: {
|
|
190
|
-
hex: "#ffc1c1",
|
|
191
|
-
hsla: "hsla(0, 100%, 87.8%, 1)",
|
|
192
|
-
rgba: "var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
infographic: {
|
|
196
|
-
substitute__purple_berry: {
|
|
197
|
-
hex: "#8c1159",
|
|
198
|
-
hsla: "hsla(325, 78.3%, 30.8%, 1)",
|
|
199
|
-
rgba: "var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"
|
|
200
|
-
},
|
|
201
|
-
substitute__pink_rose: {
|
|
202
|
-
hex: "#e24973",
|
|
203
|
-
hsla: "hsla(344, 72.5%, 58.6%, 1)",
|
|
204
|
-
rgba: "var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"
|
|
205
|
-
},
|
|
206
|
-
substitute__pink_salmon: {
|
|
207
|
-
hex: "#ff92a8",
|
|
208
|
-
hsla: "hsla(348, 100%, 78.6%, 1)",
|
|
209
|
-
rgba: "var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"
|
|
210
|
-
},
|
|
211
|
-
substitute__green_cucumber: {
|
|
212
|
-
hex: "#005f57",
|
|
213
|
-
hsla: "hsla(175, 100%, 18.6%, 1)",
|
|
214
|
-
rgba: "var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"
|
|
215
|
-
},
|
|
216
|
-
substitute__green_succulent: {
|
|
217
|
-
hex: "#00977b",
|
|
218
|
-
hsla: "hsla(169, 100%, 29.6%, 1)",
|
|
219
|
-
rgba: "var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"
|
|
220
|
-
},
|
|
221
|
-
substitute__green_mint: {
|
|
222
|
-
hex: "#40d38f",
|
|
223
|
-
hsla: "hsla(152, 62.6%, 53.9%, 1)",
|
|
224
|
-
rgba: "var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"
|
|
225
|
-
},
|
|
226
|
-
substitute__blue_ocean: {
|
|
227
|
-
hex: "#004088",
|
|
228
|
-
hsla: "hsla(212, 100%, 26.7%, 1)",
|
|
229
|
-
rgba: "var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"
|
|
230
|
-
},
|
|
231
|
-
substitute__blue_overcast: {
|
|
232
|
-
hex: "#0084c4",
|
|
233
|
-
hsla: "hsla(200, 100%, 38.4%, 1)",
|
|
234
|
-
rgba: "var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"
|
|
235
|
-
},
|
|
236
|
-
substitute__blue_sky: {
|
|
237
|
-
hex: "#52c0ff",
|
|
238
|
-
hsla: "hsla(202, 100%, 66.1%, 1)",
|
|
239
|
-
rgba: "var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"
|
|
240
|
-
},
|
|
241
|
-
primary__moss_green_100: {
|
|
242
|
-
hex: "#007079",
|
|
243
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
244
|
-
rgba: "var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"
|
|
245
|
-
},
|
|
246
|
-
primary__moss_green_55: {
|
|
247
|
-
hex: "#73b1b5",
|
|
248
|
-
hsla: "hsla(184, 30.8%, 58%, 1)",
|
|
249
|
-
rgba: "var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"
|
|
250
|
-
},
|
|
251
|
-
primary__moss_green_34: {
|
|
252
|
-
hex: "#a8ced1",
|
|
253
|
-
hsla: "hsla(184, 30.8%, 73.9%, 1)",
|
|
254
|
-
rgba: "var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"
|
|
255
|
-
},
|
|
256
|
-
primary__moss_green_21: {
|
|
257
|
-
hex: "#c9e0e2",
|
|
258
|
-
hsla: "hsla(185, 30.1%, 83.7%, 1)",
|
|
259
|
-
rgba: "var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"
|
|
260
|
-
},
|
|
261
|
-
primary__moss_green_13: {
|
|
262
|
-
hex: "#deedee",
|
|
263
|
-
hsla: "hsla(184, 32%, 90.2%, 1)",
|
|
264
|
-
rgba: "var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"
|
|
265
|
-
},
|
|
266
|
-
primary__energy_red_100: {
|
|
267
|
-
hex: "#eb0037",
|
|
268
|
-
hsla: "hsla(346, 100%, 46.1%, 1)",
|
|
269
|
-
rgba: "var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"
|
|
270
|
-
},
|
|
271
|
-
primary__energy_red_55: {
|
|
272
|
-
hex: "#ff7d98",
|
|
273
|
-
hsla: "hsla(348, 100%, 74.5%, 1)",
|
|
274
|
-
rgba: "var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"
|
|
275
|
-
},
|
|
276
|
-
primary__energy_red_34: {
|
|
277
|
-
hex: "#ffaebf",
|
|
278
|
-
hsla: "hsla(347, 100%, 84.1%, 1)",
|
|
279
|
-
rgba: "var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"
|
|
280
|
-
},
|
|
281
|
-
primary__energy_red_21: {
|
|
282
|
-
hex: "#ffcdd7",
|
|
283
|
-
hsla: "hsla(348, 100%, 90.2%, 1)",
|
|
284
|
-
rgba: "var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"
|
|
285
|
-
},
|
|
286
|
-
primary__energy_red_13: {
|
|
287
|
-
hex: "#ffe0e7",
|
|
288
|
-
hsla: "hsla(346, 100%, 93.9%, 1)",
|
|
289
|
-
rgba: "var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"
|
|
290
|
-
},
|
|
291
|
-
primary__weathered_red: {
|
|
292
|
-
hex: "#7d0023",
|
|
293
|
-
hsla: "hsla(343, 100%, 24.5%, 1)",
|
|
294
|
-
rgba: "var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"
|
|
295
|
-
},
|
|
296
|
-
primary__slate_blue: {
|
|
297
|
-
hex: "#243746",
|
|
298
|
-
hsla: "hsla(206, 32.1%, 20.8%, 1)",
|
|
299
|
-
rgba: "var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"
|
|
300
|
-
},
|
|
301
|
-
primary__spruce_wood: {
|
|
302
|
-
hex: "#ffe7d6",
|
|
303
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
304
|
-
rgba: "var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"
|
|
305
|
-
},
|
|
306
|
-
primary__mist_blue: {
|
|
307
|
-
hex: "#d5eaf4",
|
|
308
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
309
|
-
rgba: "var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"
|
|
310
|
-
},
|
|
311
|
-
primary__lichen_green: {
|
|
312
|
-
hex: "#e6faec",
|
|
313
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
314
|
-
rgba: "var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
logo: {
|
|
318
|
-
fill_positive: {
|
|
319
|
-
hex: "#eb0037",
|
|
320
|
-
hsla: "hsla(346, 100%, 46.1%, 1)",
|
|
321
|
-
rgba: "var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"
|
|
322
|
-
},
|
|
323
|
-
fill_negative: {
|
|
324
|
-
hex: "#ffffff",
|
|
325
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
326
|
-
rgba: "var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
interactive: {
|
|
330
|
-
primary__selected_highlight: {
|
|
331
|
-
hex: "#e6faec",
|
|
332
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
333
|
-
rgba: "var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"
|
|
334
|
-
},
|
|
335
|
-
primary__selected_hover: {
|
|
336
|
-
hex: "#c3f3d2",
|
|
337
|
-
hsla: "hsla(139, 66.7%, 85.9%, 1)",
|
|
338
|
-
rgba: "var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"
|
|
339
|
-
},
|
|
340
|
-
primary__resting: {
|
|
341
|
-
hex: "#007079",
|
|
342
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
343
|
-
rgba: "var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"
|
|
344
|
-
},
|
|
345
|
-
primary__hover: {
|
|
346
|
-
hex: "#004f55",
|
|
347
|
-
hsla: "hsla(184, 100%, 16.7%, 1)",
|
|
348
|
-
rgba: "var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"
|
|
349
|
-
},
|
|
350
|
-
primary__hover_alt: {
|
|
351
|
-
hex: "#deedee",
|
|
352
|
-
hsla: "hsla(184, 32%, 90.2%, 1)",
|
|
353
|
-
rgba: "var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"
|
|
354
|
-
},
|
|
355
|
-
secondary__highlight: {
|
|
356
|
-
hex: "#d5eaf4",
|
|
357
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
358
|
-
rgba: "var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"
|
|
359
|
-
},
|
|
360
|
-
secondary__resting: {
|
|
361
|
-
hex: "#243746",
|
|
362
|
-
hsla: "hsla(206, 32.1%, 20.8%, 1)",
|
|
363
|
-
rgba: "var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"
|
|
364
|
-
},
|
|
365
|
-
secondary__link_hover: {
|
|
366
|
-
hex: "#17242f",
|
|
367
|
-
hsla: "hsla(208, 34.3%, 13.7%, 1)",
|
|
368
|
-
rgba: "var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"
|
|
369
|
-
},
|
|
370
|
-
danger__highlight: {
|
|
371
|
-
hex: "#ffc1c1",
|
|
372
|
-
hsla: "hsla(0, 100%, 87.8%, 1)",
|
|
373
|
-
rgba: "var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"
|
|
374
|
-
},
|
|
375
|
-
danger__resting: {
|
|
376
|
-
hex: "#eb0000",
|
|
377
|
-
hsla: "hsla(0, 100%, 46.1%, 1)",
|
|
378
|
-
rgba: "var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"
|
|
379
|
-
},
|
|
380
|
-
danger__hover: {
|
|
381
|
-
hex: "#b30d2f",
|
|
382
|
-
hsla: "hsla(348, 86.5%, 37.6%, 1)",
|
|
383
|
-
rgba: "var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"
|
|
384
|
-
},
|
|
385
|
-
danger__text: {
|
|
386
|
-
hex: "#b30d2f",
|
|
387
|
-
hsla: "hsla(348, 86.5%, 37.6%, 1)",
|
|
388
|
-
rgba: "var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"
|
|
389
|
-
},
|
|
390
|
-
warning__highlight: {
|
|
391
|
-
hex: "#ffe7d6",
|
|
392
|
-
hsla: "hsla(25, 100%, 92%, 1)",
|
|
393
|
-
rgba: "var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"
|
|
394
|
-
},
|
|
395
|
-
warning__resting: {
|
|
396
|
-
hex: "#ff9200",
|
|
397
|
-
hsla: "hsla(34, 100%, 50%, 1)",
|
|
398
|
-
rgba: "var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"
|
|
399
|
-
},
|
|
400
|
-
warning__hover: {
|
|
401
|
-
hex: "#ad6200",
|
|
402
|
-
hsla: "hsla(34, 100%, 33.9%, 1)",
|
|
403
|
-
rgba: "var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"
|
|
404
|
-
},
|
|
405
|
-
warning__text: {
|
|
406
|
-
hex: "#ad6200",
|
|
407
|
-
hsla: "hsla(34, 100%, 33.9%, 1)",
|
|
408
|
-
rgba: "var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"
|
|
409
|
-
},
|
|
410
|
-
success__highlight: {
|
|
411
|
-
hex: "#e6faec",
|
|
412
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
413
|
-
rgba: "var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"
|
|
414
|
-
},
|
|
415
|
-
success__resting: {
|
|
416
|
-
hex: "#4bb748",
|
|
417
|
-
hsla: "hsla(118, 43.5%, 50%, 1)",
|
|
418
|
-
rgba: "var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"
|
|
419
|
-
},
|
|
420
|
-
success__hover: {
|
|
421
|
-
hex: "#358132",
|
|
422
|
-
hsla: "hsla(118, 44.1%, 35.1%, 1)",
|
|
423
|
-
rgba: "var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"
|
|
424
|
-
},
|
|
425
|
-
success__text: {
|
|
426
|
-
hex: "#358132",
|
|
427
|
-
hsla: "hsla(118, 44.1%, 35.1%, 1)",
|
|
428
|
-
rgba: "var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"
|
|
429
|
-
},
|
|
430
|
-
table__cell__fill_resting: {
|
|
431
|
-
hex: "#ffffff",
|
|
432
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
433
|
-
rgba: "var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"
|
|
434
|
-
},
|
|
435
|
-
table__cell__fill_hover: {
|
|
436
|
-
hex: "#eaeaea",
|
|
437
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
438
|
-
rgba: "var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"
|
|
439
|
-
},
|
|
440
|
-
table__cell__fill_activated: {
|
|
441
|
-
hex: "#e6faec",
|
|
442
|
-
hsla: "hsla(138, 66.7%, 94.1%, 1)",
|
|
443
|
-
rgba: "var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"
|
|
444
|
-
},
|
|
445
|
-
table__header__fill_activated: {
|
|
446
|
-
hex: "#eaeaea",
|
|
447
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
448
|
-
rgba: "var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"
|
|
449
|
-
},
|
|
450
|
-
table__header__fill_hover: {
|
|
451
|
-
hex: "#dcdcdc",
|
|
452
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
453
|
-
rgba: "var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"
|
|
454
|
-
},
|
|
455
|
-
table__header__fill_resting: {
|
|
456
|
-
hex: "#f7f7f7",
|
|
457
|
-
hsla: "hsla(0, 0%, 96.9%, 1)",
|
|
458
|
-
rgba: "var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"
|
|
459
|
-
},
|
|
460
|
-
disabled__text: {
|
|
461
|
-
hex: "#bebebe",
|
|
462
|
-
hsla: "hsla(0, 0%, 74.5%, 1)",
|
|
463
|
-
rgba: "var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"
|
|
464
|
-
},
|
|
465
|
-
text_highlight: {
|
|
466
|
-
hex: "#d5eaf4",
|
|
467
|
-
hsla: "hsla(199, 58.5%, 89.6%, 1)",
|
|
468
|
-
rgba: "var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"
|
|
469
|
-
},
|
|
470
|
-
focus: {
|
|
471
|
-
hex: "#007079",
|
|
472
|
-
hsla: "hsla(184, 100%, 23.7%, 1)",
|
|
473
|
-
rgba: "var(--eds_interactive__focus, rgba(0, 112, 121, 1))"
|
|
474
|
-
},
|
|
475
|
-
disabled__border: {
|
|
476
|
-
hex: "#dcdcdc",
|
|
477
|
-
hsla: "hsla(0, 0%, 86.3%, 1)",
|
|
478
|
-
rgba: "var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"
|
|
479
|
-
},
|
|
480
|
-
disabled__fill: {
|
|
481
|
-
hex: "#eaeaea",
|
|
482
|
-
hsla: "hsla(0, 0%, 91.8%, 1)",
|
|
483
|
-
rgba: "var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"
|
|
484
|
-
},
|
|
485
|
-
link_on_interactive_colors: {
|
|
486
|
-
hex: "#ffffff",
|
|
487
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
488
|
-
rgba: "var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"
|
|
489
|
-
},
|
|
490
|
-
icon_on_interactive_colors: {
|
|
491
|
-
hex: "#ffffff",
|
|
492
|
-
hsla: "hsla(0, 0%, 100%, 1)",
|
|
493
|
-
rgba: "var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"
|
|
494
|
-
},
|
|
495
|
-
link_in_snackbars: {
|
|
496
|
-
hex: "#97cace",
|
|
497
|
-
hsla: "hsla(184, 35.9%, 70%, 1)",
|
|
498
|
-
rgba: "var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"
|
|
499
|
-
},
|
|
500
|
-
pressed_overlay_dark: {
|
|
501
|
-
hex: "#000000",
|
|
502
|
-
hsla: "hsla(0, 0%, 0%, 0.2)",
|
|
503
|
-
rgba: "var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"
|
|
504
|
-
},
|
|
505
|
-
pressed_overlay_light: {
|
|
506
|
-
hex: "#ffffff",
|
|
507
|
-
hsla: "hsla(0, 0%, 100%, 0.2)",
|
|
508
|
-
rgba: "var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
var elevation$1 = {
|
|
513
|
-
raised: "0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
514
|
-
none: "0 0 1px rgba(0, 0, 0, 0.14)",
|
|
515
|
-
overlay: "0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
516
|
-
sticky: "0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",
|
|
517
|
-
temporary_nav: "0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",
|
|
518
|
-
above_scrim: "0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"
|
|
519
|
-
};
|
|
520
|
-
var interactions = {
|
|
521
|
-
_modes: {
|
|
522
|
-
compact: {
|
|
523
|
-
pressed_dark_overlay: {
|
|
524
|
-
blendMode: "pass_through",
|
|
525
|
-
pressedColor: "transparent"
|
|
526
|
-
},
|
|
527
|
-
focused: {
|
|
528
|
-
style: "dashed",
|
|
529
|
-
color: "rgba(0, 112, 121, 1)",
|
|
530
|
-
width: "2px"
|
|
531
|
-
},
|
|
532
|
-
pressed_light_overlay: {
|
|
533
|
-
blendMode: "pass_through",
|
|
534
|
-
pressedColor: "rgba(255, 255, 255, 1)"
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
pressed_dark_overlay: {
|
|
539
|
-
blendMode: "darken",
|
|
540
|
-
pressedColor: "rgba(0, 0, 0, 0.2)"
|
|
541
|
-
},
|
|
542
|
-
focused: {
|
|
543
|
-
style: "dashed",
|
|
544
|
-
color: "rgba(0, 112, 121, 1)",
|
|
545
|
-
width: "2px"
|
|
546
|
-
},
|
|
547
|
-
pressed_light_overlay: {
|
|
548
|
-
blendMode: "pass_through",
|
|
549
|
-
pressedColor: "rgba(255, 255, 255, 0.2)"
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
var shape = {
|
|
553
|
-
_modes: {
|
|
554
|
-
compact: {
|
|
555
|
-
rounded: {
|
|
556
|
-
minHeight: "24px",
|
|
557
|
-
minWidth: "80px",
|
|
558
|
-
borderRadius: "100px"
|
|
559
|
-
},
|
|
560
|
-
button: {
|
|
561
|
-
minHeight: "24px",
|
|
562
|
-
minWidth: "112px",
|
|
563
|
-
borderRadius: "4px"
|
|
564
|
-
},
|
|
565
|
-
toggle: {
|
|
566
|
-
minHeight: "24px",
|
|
567
|
-
minWidth: "112px",
|
|
568
|
-
borderRadius: "4px"
|
|
569
|
-
},
|
|
570
|
-
corners: {
|
|
571
|
-
minHeight: "24px",
|
|
572
|
-
minWidth: "112px",
|
|
573
|
-
borderRadius: "4px"
|
|
574
|
-
},
|
|
575
|
-
icon_button: {
|
|
576
|
-
minHeight: "32px",
|
|
577
|
-
minWidth: "32px",
|
|
578
|
-
borderRadius: "100px"
|
|
579
|
-
},
|
|
580
|
-
straight: {
|
|
581
|
-
minHeight: "24px",
|
|
582
|
-
minWidth: "112px",
|
|
583
|
-
borderRadius: ""
|
|
584
|
-
},
|
|
585
|
-
toggle_rounded_border: {
|
|
586
|
-
minHeight: "24px",
|
|
587
|
-
minWidth: "2px",
|
|
588
|
-
borderRadius: ""
|
|
589
|
-
},
|
|
590
|
-
toggle_straight_border: {
|
|
591
|
-
minHeight: "24px",
|
|
592
|
-
minWidth: "2px",
|
|
593
|
-
borderRadius: ""
|
|
594
|
-
},
|
|
595
|
-
circle: {
|
|
596
|
-
minHeight: "24px",
|
|
597
|
-
minWidth: "24px",
|
|
598
|
-
borderRadius: "100px"
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
toggle_straight_border: {
|
|
603
|
-
minHeight: "36px",
|
|
604
|
-
minWidth: "4px",
|
|
605
|
-
borderRadius: ""
|
|
606
|
-
},
|
|
607
|
-
toggle_rounded_border: {
|
|
608
|
-
minHeight: "36px",
|
|
609
|
-
minWidth: "4px",
|
|
610
|
-
borderRadius: ""
|
|
611
|
-
},
|
|
612
|
-
circle: {
|
|
613
|
-
minHeight: "40px",
|
|
614
|
-
minWidth: "40px",
|
|
615
|
-
borderRadius: "100px"
|
|
616
|
-
},
|
|
617
|
-
rounded: {
|
|
618
|
-
minHeight: "40px",
|
|
619
|
-
minWidth: "80px",
|
|
620
|
-
borderRadius: "100px"
|
|
621
|
-
},
|
|
622
|
-
button: {
|
|
623
|
-
minHeight: "36px",
|
|
624
|
-
minWidth: "112px",
|
|
625
|
-
borderRadius: "4px"
|
|
626
|
-
},
|
|
627
|
-
toggle: {
|
|
628
|
-
minHeight: "36px",
|
|
629
|
-
minWidth: "112px",
|
|
630
|
-
borderRadius: "4px"
|
|
631
|
-
},
|
|
632
|
-
corners: {
|
|
633
|
-
minHeight: "36px",
|
|
634
|
-
minWidth: "112px",
|
|
635
|
-
borderRadius: "4px"
|
|
636
|
-
},
|
|
637
|
-
icon_button: {
|
|
638
|
-
minHeight: "40px",
|
|
639
|
-
minWidth: "40px",
|
|
640
|
-
borderRadius: "100px"
|
|
641
|
-
},
|
|
642
|
-
field: {
|
|
643
|
-
minHeight: "56px",
|
|
644
|
-
minWidth: "294px",
|
|
645
|
-
borderRadius: ""
|
|
646
|
-
},
|
|
647
|
-
straight: {
|
|
648
|
-
minHeight: "36px",
|
|
649
|
-
minWidth: "112px",
|
|
650
|
-
borderRadius: ""
|
|
651
|
-
},
|
|
652
|
-
caret: {
|
|
653
|
-
minHeight: "8px",
|
|
654
|
-
minWidth: "6px",
|
|
655
|
-
borderRadius: ""
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
var typography$1 = {
|
|
659
|
-
heading: {
|
|
660
|
-
h1_bold: {
|
|
661
|
-
color: "var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",
|
|
662
|
-
fontFamily: "Equinor",
|
|
663
|
-
fontSize: "2.000rem",
|
|
664
|
-
fontWeight: 700,
|
|
665
|
-
lineHeight: "1.250em",
|
|
666
|
-
textAlign: "left"
|
|
667
|
-
},
|
|
668
|
-
h1: {
|
|
669
|
-
color: "var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",
|
|
670
|
-
fontFamily: "Equinor",
|
|
671
|
-
fontSize: "2.000rem",
|
|
672
|
-
fontWeight: 400,
|
|
673
|
-
lineHeight: "1.250em",
|
|
674
|
-
textAlign: "left"
|
|
675
|
-
},
|
|
676
|
-
h2: {
|
|
677
|
-
color: "var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",
|
|
678
|
-
fontFamily: "Equinor",
|
|
679
|
-
fontSize: "1.750rem",
|
|
680
|
-
fontWeight: 400,
|
|
681
|
-
lineHeight: "1.250em",
|
|
682
|
-
textAlign: "left"
|
|
683
|
-
},
|
|
684
|
-
h3: {
|
|
685
|
-
color: "var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",
|
|
686
|
-
fontFamily: "Equinor",
|
|
687
|
-
fontSize: "1.500rem",
|
|
688
|
-
fontWeight: 400,
|
|
689
|
-
lineHeight: "1.250em",
|
|
690
|
-
textAlign: "left"
|
|
691
|
-
},
|
|
692
|
-
h4: {
|
|
693
|
-
color: "var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",
|
|
694
|
-
fontFamily: "Equinor",
|
|
695
|
-
fontSize: "1.250rem",
|
|
696
|
-
fontWeight: 400,
|
|
697
|
-
lineHeight: "1.600em",
|
|
698
|
-
textAlign: "left"
|
|
699
|
-
},
|
|
700
|
-
h5: {
|
|
701
|
-
color: "var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",
|
|
702
|
-
fontFamily: "Equinor",
|
|
703
|
-
fontSize: "1.125rem",
|
|
704
|
-
fontWeight: 500,
|
|
705
|
-
letterSpacing: "0.013em",
|
|
706
|
-
lineHeight: "1.333em",
|
|
707
|
-
textAlign: "left"
|
|
708
|
-
},
|
|
709
|
-
h6: {
|
|
710
|
-
color: "var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",
|
|
711
|
-
fontFamily: "Equinor",
|
|
712
|
-
fontSize: "1.000rem",
|
|
713
|
-
fontWeight: 500,
|
|
714
|
-
letterSpacing: "0.013em",
|
|
715
|
-
lineHeight: "1.500em",
|
|
716
|
-
textAlign: "left"
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
navigation: {
|
|
720
|
-
menu_title: {
|
|
721
|
-
color: "var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",
|
|
722
|
-
fontFamily: "Equinor",
|
|
723
|
-
fontSize: "1.000rem",
|
|
724
|
-
fontWeight: 400,
|
|
725
|
-
letterSpacing: "0.013em",
|
|
726
|
-
lineHeight: "1.000em",
|
|
727
|
-
textAlign: "left"
|
|
728
|
-
},
|
|
729
|
-
menu_tabs: {
|
|
730
|
-
color: "var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",
|
|
731
|
-
fontFamily: "Equinor",
|
|
732
|
-
fontSize: "1.000rem",
|
|
733
|
-
fontWeight: 500,
|
|
734
|
-
letterSpacing: "0.013em",
|
|
735
|
-
lineHeight: "1.000em",
|
|
736
|
-
textAlign: "left"
|
|
737
|
-
},
|
|
738
|
-
label: {
|
|
739
|
-
color: "var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",
|
|
740
|
-
fontFamily: "Equinor",
|
|
741
|
-
fontSize: "0.750rem",
|
|
742
|
-
fontWeight: 500,
|
|
743
|
-
lineHeight: "1.333em",
|
|
744
|
-
textAlign: "left"
|
|
745
|
-
},
|
|
746
|
-
drawer_active: {
|
|
747
|
-
color: "var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",
|
|
748
|
-
fontFamily: "Equinor",
|
|
749
|
-
fontSize: "1.000rem",
|
|
750
|
-
fontWeight: 700,
|
|
751
|
-
letterSpacing: "0.006em",
|
|
752
|
-
lineHeight: "1.000em",
|
|
753
|
-
textAlign: "left"
|
|
754
|
-
},
|
|
755
|
-
drawer_inactive: {
|
|
756
|
-
color: "var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",
|
|
757
|
-
fontFamily: "Equinor",
|
|
758
|
-
fontSize: "1.000rem",
|
|
759
|
-
fontWeight: 500,
|
|
760
|
-
letterSpacing: "0.013em",
|
|
761
|
-
lineHeight: "1.000em",
|
|
762
|
-
textAlign: "left"
|
|
763
|
-
},
|
|
764
|
-
button: {
|
|
765
|
-
color: "var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",
|
|
766
|
-
fontFamily: "Equinor",
|
|
767
|
-
fontSize: "0.875rem",
|
|
768
|
-
fontWeight: 500,
|
|
769
|
-
lineHeight: "1.143em",
|
|
770
|
-
textAlign: "left"
|
|
771
|
-
},
|
|
772
|
-
breadcrumb: {
|
|
773
|
-
color: "var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",
|
|
774
|
-
fontFamily: "Equinor",
|
|
775
|
-
fontSize: "0.875rem",
|
|
776
|
-
fontWeight: 500,
|
|
777
|
-
lineHeight: "1.143em",
|
|
778
|
-
textAlign: "left"
|
|
779
|
-
},
|
|
780
|
-
breadcrumb_hover: {
|
|
781
|
-
color: "var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",
|
|
782
|
-
fontFamily: "Equinor",
|
|
783
|
-
fontSize: "0.875rem",
|
|
784
|
-
fontWeight: 500,
|
|
785
|
-
lineHeight: "1.143em",
|
|
786
|
-
textDecoration: "underline",
|
|
787
|
-
textAlign: "left"
|
|
788
|
-
},
|
|
789
|
-
menu_title_hover: {
|
|
790
|
-
color: "var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",
|
|
791
|
-
fontFamily: "Equinor",
|
|
792
|
-
fontSize: "1.000rem",
|
|
793
|
-
fontWeight: 400,
|
|
794
|
-
letterSpacing: "0.013em",
|
|
795
|
-
lineHeight: "1.000em",
|
|
796
|
-
textAlign: "left"
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
input: {
|
|
800
|
-
label: {
|
|
801
|
-
color: "var(--eds_input__label_color, rgba(0, 0, 0, 1))",
|
|
802
|
-
fontFamily: "Equinor",
|
|
803
|
-
fontSize: "0.750rem",
|
|
804
|
-
fontWeight: 500,
|
|
805
|
-
lineHeight: "1.333em",
|
|
806
|
-
textAlign: "left"
|
|
807
|
-
},
|
|
808
|
-
text: {
|
|
809
|
-
color: "var(--eds_input__text_color, rgba(0, 0, 0, 1))",
|
|
810
|
-
fontFamily: "Equinor",
|
|
811
|
-
fontSize: "1.000rem",
|
|
812
|
-
fontWeight: 400,
|
|
813
|
-
letterSpacing: "0.025em",
|
|
814
|
-
lineHeight: "1.500em",
|
|
815
|
-
textAlign: "left"
|
|
816
|
-
},
|
|
817
|
-
text_monospaced: {
|
|
818
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
819
|
-
color: "var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",
|
|
820
|
-
fontFamily: "Equinor",
|
|
821
|
-
fontSize: "1.000rem",
|
|
822
|
-
fontWeight: 400,
|
|
823
|
-
letterSpacing: "0.063em",
|
|
824
|
-
lineHeight: "1.500em",
|
|
825
|
-
textAlign: "left"
|
|
826
|
-
},
|
|
827
|
-
helper: {
|
|
828
|
-
color: "var(--eds_input__helper_color, rgba(0, 0, 0, 1))",
|
|
829
|
-
fontFamily: "Equinor",
|
|
830
|
-
fontSize: "0.750rem",
|
|
831
|
-
fontWeight: 500,
|
|
832
|
-
letterSpacing: "0.013em",
|
|
833
|
-
lineHeight: "1.333em",
|
|
834
|
-
textAlign: "left"
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
paragraph: {
|
|
838
|
-
body_short_italic: {
|
|
839
|
-
color: "var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",
|
|
840
|
-
fontFamily: "Equinor",
|
|
841
|
-
fontSize: "1.000rem",
|
|
842
|
-
fontWeight: 400,
|
|
843
|
-
lineHeight: "1.250em",
|
|
844
|
-
fontStyle: "italic",
|
|
845
|
-
textAlign: "left"
|
|
846
|
-
},
|
|
847
|
-
caption: {
|
|
848
|
-
color: "var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",
|
|
849
|
-
fontFamily: "Equinor",
|
|
850
|
-
fontSize: "0.875rem",
|
|
851
|
-
fontWeight: 500,
|
|
852
|
-
lineHeight: "1.143em",
|
|
853
|
-
textAlign: "left"
|
|
854
|
-
},
|
|
855
|
-
meta: {
|
|
856
|
-
color: "var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",
|
|
857
|
-
fontFamily: "Equinor",
|
|
858
|
-
fontSize: "0.625rem",
|
|
859
|
-
fontWeight: 500,
|
|
860
|
-
lineHeight: "1.600em",
|
|
861
|
-
textAlign: "left"
|
|
862
|
-
},
|
|
863
|
-
body_short: {
|
|
864
|
-
color: "var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",
|
|
865
|
-
fontFamily: "Equinor",
|
|
866
|
-
fontSize: "1.000rem",
|
|
867
|
-
fontWeight: 400,
|
|
868
|
-
lineHeight: "1.250em",
|
|
869
|
-
textAlign: "left"
|
|
870
|
-
},
|
|
871
|
-
body_short_bold_italic: {
|
|
872
|
-
color: "var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",
|
|
873
|
-
fontFamily: "Equinor",
|
|
874
|
-
fontSize: "1.000rem",
|
|
875
|
-
fontWeight: 700,
|
|
876
|
-
lineHeight: "1.250em",
|
|
877
|
-
fontStyle: "italic",
|
|
878
|
-
textAlign: "left"
|
|
879
|
-
},
|
|
880
|
-
body_short_bold: {
|
|
881
|
-
color: "var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",
|
|
882
|
-
fontFamily: "Equinor",
|
|
883
|
-
fontSize: "1.000rem",
|
|
884
|
-
fontWeight: 700,
|
|
885
|
-
lineHeight: "1.250em",
|
|
886
|
-
textAlign: "left"
|
|
887
|
-
},
|
|
888
|
-
body_short_link: {
|
|
889
|
-
color: "var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",
|
|
890
|
-
fontFamily: "Equinor",
|
|
891
|
-
fontSize: "1.000rem",
|
|
892
|
-
fontWeight: 400,
|
|
893
|
-
lineHeight: "1.250em",
|
|
894
|
-
textDecoration: "underline",
|
|
895
|
-
textAlign: "left"
|
|
896
|
-
},
|
|
897
|
-
overline: {
|
|
898
|
-
color: "var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",
|
|
899
|
-
fontFamily: "Equinor",
|
|
900
|
-
fontSize: "0.625rem",
|
|
901
|
-
fontWeight: 500,
|
|
902
|
-
letterSpacing: "0.069em",
|
|
903
|
-
lineHeight: "1.600em",
|
|
904
|
-
textTransform: "uppercase",
|
|
905
|
-
textAlign: "left"
|
|
906
|
-
},
|
|
907
|
-
ingress: {
|
|
908
|
-
color: "var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",
|
|
909
|
-
fontFamily: "Equinor",
|
|
910
|
-
fontSize: "1.125rem",
|
|
911
|
-
fontWeight: 400,
|
|
912
|
-
lineHeight: "1.333em",
|
|
913
|
-
textAlign: "left"
|
|
914
|
-
},
|
|
915
|
-
body_long: {
|
|
916
|
-
color: "var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",
|
|
917
|
-
fontFamily: "Equinor",
|
|
918
|
-
fontSize: "1.000rem",
|
|
919
|
-
fontWeight: 400,
|
|
920
|
-
lineHeight: "1.500em",
|
|
921
|
-
textAlign: "left"
|
|
922
|
-
},
|
|
923
|
-
body_long_link: {
|
|
924
|
-
color: "var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",
|
|
925
|
-
fontFamily: "Equinor",
|
|
926
|
-
fontSize: "1.000rem",
|
|
927
|
-
fontWeight: 400,
|
|
928
|
-
lineHeight: "1.500em",
|
|
929
|
-
textDecoration: "underline",
|
|
930
|
-
textAlign: "left"
|
|
931
|
-
},
|
|
932
|
-
body_long_italic: {
|
|
933
|
-
color: "var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",
|
|
934
|
-
fontFamily: "Equinor",
|
|
935
|
-
fontSize: "1.000rem",
|
|
936
|
-
fontWeight: 400,
|
|
937
|
-
lineHeight: "1.500em",
|
|
938
|
-
fontStyle: "italic",
|
|
939
|
-
textAlign: "left"
|
|
940
|
-
},
|
|
941
|
-
body_long_bold: {
|
|
942
|
-
color: "var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",
|
|
943
|
-
fontFamily: "Equinor",
|
|
944
|
-
fontSize: "1.000rem",
|
|
945
|
-
fontWeight: 700,
|
|
946
|
-
lineHeight: "1.500em",
|
|
947
|
-
textAlign: "left"
|
|
948
|
-
},
|
|
949
|
-
body_long_bold_italic: {
|
|
950
|
-
color: "var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",
|
|
951
|
-
fontFamily: "Equinor",
|
|
952
|
-
fontSize: "1.000rem",
|
|
953
|
-
fontWeight: 700,
|
|
954
|
-
lineHeight: "1.500em",
|
|
955
|
-
fontStyle: "italic",
|
|
956
|
-
textAlign: "left"
|
|
957
|
-
}
|
|
958
|
-
},
|
|
959
|
-
table: {
|
|
960
|
-
cell_header: {
|
|
961
|
-
color: "var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",
|
|
962
|
-
fontFamily: "Equinor",
|
|
963
|
-
fontSize: "0.875rem",
|
|
964
|
-
fontWeight: 700,
|
|
965
|
-
lineHeight: "1.429em",
|
|
966
|
-
textAlign: "left"
|
|
967
|
-
},
|
|
968
|
-
cell_text: {
|
|
969
|
-
color: "var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",
|
|
970
|
-
fontFamily: "Equinor",
|
|
971
|
-
fontSize: "0.875rem",
|
|
972
|
-
fontWeight: 500,
|
|
973
|
-
lineHeight: "1.429em",
|
|
974
|
-
textAlign: "left"
|
|
975
|
-
},
|
|
976
|
-
cell_text_bold: {
|
|
977
|
-
color: "var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",
|
|
978
|
-
fontFamily: "Equinor",
|
|
979
|
-
fontSize: "0.875rem",
|
|
980
|
-
fontWeight: 700,
|
|
981
|
-
lineHeight: "1.429em",
|
|
982
|
-
textAlign: "left"
|
|
983
|
-
},
|
|
984
|
-
cell_text_link: {
|
|
985
|
-
color: "var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",
|
|
986
|
-
fontFamily: "Equinor",
|
|
987
|
-
fontSize: "0.875rem",
|
|
988
|
-
fontWeight: 500,
|
|
989
|
-
lineHeight: "1.429em",
|
|
990
|
-
textDecoration: "underline",
|
|
991
|
-
textAlign: "left"
|
|
992
|
-
},
|
|
993
|
-
cell_numeric_monospaced: {
|
|
994
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
995
|
-
color: "var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",
|
|
996
|
-
fontFamily: "Equinor",
|
|
997
|
-
fontSize: "0.875rem",
|
|
998
|
-
fontWeight: 500,
|
|
999
|
-
lineHeight: "1.429em",
|
|
1000
|
-
textAlign: "left"
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
_modes: {
|
|
1004
|
-
compact: {
|
|
1005
|
-
table: {
|
|
1006
|
-
cell_header: {
|
|
1007
|
-
color: "var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",
|
|
1008
|
-
fontFamily: "Equinor",
|
|
1009
|
-
fontSize: "0.875rem",
|
|
1010
|
-
fontWeight: 700,
|
|
1011
|
-
lineHeight: "1.143em",
|
|
1012
|
-
textAlign: "left"
|
|
1013
|
-
},
|
|
1014
|
-
cell_text: {
|
|
1015
|
-
color: "var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",
|
|
1016
|
-
fontFamily: "Equinor",
|
|
1017
|
-
fontSize: "0.875rem",
|
|
1018
|
-
fontWeight: 500,
|
|
1019
|
-
lineHeight: "1.143em",
|
|
1020
|
-
textAlign: "left"
|
|
1021
|
-
},
|
|
1022
|
-
cell_text_bold: {
|
|
1023
|
-
color: "var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",
|
|
1024
|
-
fontFamily: "Equinor",
|
|
1025
|
-
fontSize: "0.875rem",
|
|
1026
|
-
fontWeight: 700,
|
|
1027
|
-
lineHeight: "1.143em",
|
|
1028
|
-
textAlign: "left"
|
|
1029
|
-
},
|
|
1030
|
-
cell_text_link: {
|
|
1031
|
-
color: "var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",
|
|
1032
|
-
fontFamily: "Equinor",
|
|
1033
|
-
fontSize: "0.875rem",
|
|
1034
|
-
fontWeight: 500,
|
|
1035
|
-
lineHeight: "1.143em",
|
|
1036
|
-
textDecoration: "underline",
|
|
1037
|
-
textAlign: "left"
|
|
1038
|
-
},
|
|
1039
|
-
cell_numeric_monospaced: {
|
|
1040
|
-
fontFeature: "'tnum' on,'lnum' on",
|
|
1041
|
-
color: "var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",
|
|
1042
|
-
fontFamily: "Equinor",
|
|
1043
|
-
fontSize: "0.875rem",
|
|
1044
|
-
fontWeight: 500,
|
|
1045
|
-
lineHeight: "1.143em",
|
|
1046
|
-
textAlign: "left"
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
},
|
|
1051
|
-
ui: {
|
|
1052
|
-
tooltip: {
|
|
1053
|
-
color: "var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",
|
|
1054
|
-
fontFamily: "Equinor",
|
|
1055
|
-
fontSize: "0.750rem",
|
|
1056
|
-
fontWeight: 500,
|
|
1057
|
-
lineHeight: "1.333em",
|
|
1058
|
-
textAlign: "left"
|
|
1059
|
-
},
|
|
1060
|
-
snackbar: {
|
|
1061
|
-
color: "var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",
|
|
1062
|
-
fontFamily: "Equinor",
|
|
1063
|
-
fontSize: "0.750rem",
|
|
1064
|
-
fontWeight: 500,
|
|
1065
|
-
lineHeight: "1.333em",
|
|
1066
|
-
textAlign: "left"
|
|
1067
|
-
},
|
|
1068
|
-
accordion_header: {
|
|
1069
|
-
color: "var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",
|
|
1070
|
-
fontFamily: "Equinor",
|
|
1071
|
-
fontSize: "1.000rem",
|
|
1072
|
-
fontWeight: 500,
|
|
1073
|
-
lineHeight: "1.500em",
|
|
1074
|
-
textAlign: "left"
|
|
1075
|
-
},
|
|
1076
|
-
chip__badge: {
|
|
1077
|
-
color: "var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",
|
|
1078
|
-
fontFamily: "Equinor",
|
|
1079
|
-
fontSize: "0.750rem",
|
|
1080
|
-
fontWeight: 500,
|
|
1081
|
-
lineHeight: "1.333em",
|
|
1082
|
-
textAlign: "left"
|
|
1083
|
-
},
|
|
1084
|
-
chart: {
|
|
1085
|
-
color: "var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",
|
|
1086
|
-
fontFamily: "Equinor",
|
|
1087
|
-
fontSize: "0.750rem",
|
|
1088
|
-
fontWeight: 500,
|
|
1089
|
-
lineHeight: "1.333em",
|
|
1090
|
-
textAlign: "left"
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
var spacings$4 = {
|
|
1095
|
-
comfortable: {
|
|
1096
|
-
xxx_large: "48px",
|
|
1097
|
-
xx_large: "40px",
|
|
1098
|
-
x_large: "32px",
|
|
1099
|
-
large: "24px",
|
|
1100
|
-
medium: "16px",
|
|
1101
|
-
medium_small: "12px",
|
|
1102
|
-
small: "8px",
|
|
1103
|
-
x_small: "4px",
|
|
1104
|
-
xx_small: "2px"
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
|
-
var tokens = {
|
|
1108
|
-
clickbounds,
|
|
1109
|
-
colors: colors$1,
|
|
1110
|
-
elevation: elevation$1,
|
|
1111
|
-
interactions,
|
|
1112
|
-
shape,
|
|
1113
|
-
typography: typography$1,
|
|
1114
|
-
spacings: spacings$4
|
|
1115
|
-
};
|
|
1116
|
-
function _arrayWithHoles(arr) {
|
|
1117
|
-
if (Array.isArray(arr))
|
|
1118
|
-
return arr;
|
|
1119
|
-
}
|
|
1120
|
-
function _iterableToArrayLimit(r, l) {
|
|
1121
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1122
|
-
if (null != t) {
|
|
1123
|
-
var e, n, i, u, a = [], f = true, o = false;
|
|
1124
|
-
try {
|
|
1125
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1126
|
-
if (Object(t) !== t)
|
|
1127
|
-
return;
|
|
1128
|
-
f = false;
|
|
1129
|
-
} else
|
|
1130
|
-
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
1131
|
-
;
|
|
1132
|
-
} catch (r2) {
|
|
1133
|
-
o = true, n = r2;
|
|
1134
|
-
} finally {
|
|
1135
|
-
try {
|
|
1136
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
1137
|
-
return;
|
|
1138
|
-
} finally {
|
|
1139
|
-
if (o)
|
|
1140
|
-
throw n;
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
return a;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
function _arrayLikeToArray(arr, len) {
|
|
1147
|
-
if (len == null || len > arr.length)
|
|
1148
|
-
len = arr.length;
|
|
1149
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1150
|
-
arr2[i] = arr[i];
|
|
1151
|
-
return arr2;
|
|
1152
|
-
}
|
|
1153
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1154
|
-
if (!o)
|
|
1155
|
-
return;
|
|
1156
|
-
if (typeof o === "string")
|
|
1157
|
-
return _arrayLikeToArray(o, minLen);
|
|
1158
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1159
|
-
if (n === "Object" && o.constructor)
|
|
1160
|
-
n = o.constructor.name;
|
|
1161
|
-
if (n === "Map" || n === "Set")
|
|
1162
|
-
return Array.from(o);
|
|
1163
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1164
|
-
return _arrayLikeToArray(o, minLen);
|
|
1165
|
-
}
|
|
1166
|
-
function _nonIterableRest() {
|
|
1167
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1168
|
-
}
|
|
1169
|
-
function _slicedToArray(arr, i) {
|
|
1170
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
1171
|
-
}
|
|
1172
|
-
var shorthand = function shorthand2(token2) {
|
|
1173
|
-
if (!token2) {
|
|
1174
|
-
return void 0;
|
|
1175
|
-
}
|
|
1176
|
-
var _token$width = token2.width, width = _token$width === void 0 ? "" : _token$width, _token$style = token2.style, style = _token$style === void 0 ? "" : _token$style, _token$color = token2.color, color = _token$color === void 0 ? "" : _token$color;
|
|
1177
|
-
if (!width) {
|
|
1178
|
-
return null;
|
|
1179
|
-
}
|
|
1180
|
-
return "".concat(width, " ").concat(style, " ").concat(color);
|
|
1181
|
-
};
|
|
1182
|
-
var bordersTemplate = function bordersTemplate2(border2) {
|
|
1183
|
-
var _border$left, _border$left2, _border$right, _border$right2;
|
|
1184
|
-
if (!border2) {
|
|
1185
|
-
return css({});
|
|
1186
|
-
}
|
|
1187
|
-
switch (border2.type) {
|
|
1188
|
-
case "border":
|
|
1189
|
-
return css({
|
|
1190
|
-
border: shorthand(border2),
|
|
1191
|
-
borderRadius: border2.radius
|
|
1192
|
-
});
|
|
1193
|
-
case "bordergroup":
|
|
1194
|
-
return css({
|
|
1195
|
-
borderBottom: shorthand(border2.bottom),
|
|
1196
|
-
borderTop: shorthand(border2.top),
|
|
1197
|
-
borderLeft: shorthand(border2.left),
|
|
1198
|
-
borderRight: shorthand(border2.right),
|
|
1199
|
-
borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
|
|
1200
|
-
borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
|
|
1201
|
-
borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
|
|
1202
|
-
borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
|
|
1203
|
-
});
|
|
1204
|
-
default:
|
|
1205
|
-
return css({});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
|
-
var focusColor = tokens.colors.interactive.focus.rgba;
|
|
1209
|
-
var outlineTemplate = function outlineTemplate2(outline) {
|
|
1210
|
-
var _outline$color = outline.color, color = _outline$color === void 0 ? focusColor : _outline$color, _outline$style = outline.style, style = _outline$style === void 0 ? "dashed" : _outline$style, _outline$width = outline.width, width = _outline$width === void 0 ? "2px" : _outline$width, _outline$offset = outline.offset, offset = _outline$offset === void 0 ? "0px" : _outline$offset, type = outline.type;
|
|
1211
|
-
var outline_ = {
|
|
1212
|
-
color,
|
|
1213
|
-
style,
|
|
1214
|
-
width,
|
|
1215
|
-
offset,
|
|
1216
|
-
type
|
|
1217
|
-
};
|
|
1218
|
-
return css({
|
|
1219
|
-
outline: shorthand(outline_),
|
|
1220
|
-
outlineOffset: outline_.offset
|
|
1221
|
-
});
|
|
1222
|
-
};
|
|
1223
|
-
var typographyTemplate = function typographyTemplate2(typography2, link2) {
|
|
1224
|
-
if (!typography2) {
|
|
1225
|
-
return "";
|
|
1226
|
-
}
|
|
1227
|
-
var base = "\n margin: 0;\n color: ".concat(typography2.color, ";\n font-family: ").concat(typography2.fontFamily, ";\n font-size: ").concat(typography2.fontSize, ";\n font-weight: ").concat(typography2.fontWeight, ";\n line-height: ").concat(typography2.lineHeight, ";\n ");
|
|
1228
|
-
if (typography2.fontStyle) {
|
|
1229
|
-
base += "\nfont-style: ".concat(typography2.fontStyle, ";");
|
|
1230
|
-
}
|
|
1231
|
-
if (typography2.letterSpacing) {
|
|
1232
|
-
base += "\nletter-spacing: ".concat(typography2.letterSpacing, ";");
|
|
1233
|
-
}
|
|
1234
|
-
if (typography2.textTransform) {
|
|
1235
|
-
base += "\ntext-transform: ".concat(typography2.textTransform, ";");
|
|
1236
|
-
}
|
|
1237
|
-
if (typography2.textDecoration) {
|
|
1238
|
-
base += "\ntext-decoration: ".concat(typography2.textDecoration, ";");
|
|
1239
|
-
}
|
|
1240
|
-
if (typography2.textAlign) {
|
|
1241
|
-
base += "\ntext-align: ".concat(typography2.textAlign, ";");
|
|
1242
|
-
}
|
|
1243
|
-
if (typography2.fontFeature) {
|
|
1244
|
-
base += "\nfont-feature-settings: ".concat(typography2.fontFeature, ";");
|
|
1245
|
-
}
|
|
1246
|
-
if (link2) {
|
|
1247
|
-
base += "\ncursor: pointer;";
|
|
1248
|
-
}
|
|
1249
|
-
return base;
|
|
1250
|
-
};
|
|
1251
|
-
var initalState = {
|
|
1252
|
-
/** Density for all components inside `EdsProvider` */
|
|
1253
|
-
density: "comfortable"
|
|
1254
|
-
};
|
|
1255
|
-
var EdsContext = /* @__PURE__ */ createContext(initalState);
|
|
1256
|
-
var EdsProvider = function EdsProvider2(_ref) {
|
|
1257
|
-
var children = _ref.children, density = _ref.density;
|
|
1258
|
-
var _useState = useState(_objectSpread2(_objectSpread2({}, initalState), {}, {
|
|
1259
|
-
density: density || "comfortable"
|
|
1260
|
-
})), _useState2 = _slicedToArray(_useState, 2), state = _useState2[0], setState = _useState2[1];
|
|
1261
|
-
var setDensity = function setDensity2(density2) {
|
|
1262
|
-
return setState(function(prevState) {
|
|
1263
|
-
return _objectSpread2(_objectSpread2({}, prevState), {}, {
|
|
1264
|
-
density: density2
|
|
1265
|
-
});
|
|
1266
|
-
});
|
|
1267
|
-
};
|
|
1268
|
-
useEffect(function() {
|
|
1269
|
-
if (typeof density !== "undefined" && density !== state.density) {
|
|
1270
|
-
setDensity(density);
|
|
1271
|
-
}
|
|
1272
|
-
}, [density, state.density]);
|
|
1273
|
-
var value = {
|
|
1274
|
-
density: state.density,
|
|
1275
|
-
setDensity
|
|
1276
|
-
};
|
|
1277
|
-
return /* @__PURE__ */ jsx(EdsContext.Provider, {
|
|
1278
|
-
value,
|
|
1279
|
-
children
|
|
1280
|
-
});
|
|
1281
|
-
};
|
|
1282
|
-
var _tokens$colors$ui = tokens.colors.ui, background$1 = _tokens$colors$ui.background__default.rgba, backgroundInfo = _tokens$colors$ui.background__info.rgba, backgroundWarning = _tokens$colors$ui.background__warning.rgba, backgroundDanger = _tokens$colors$ui.background__danger.rgba, spacingMedium = tokens.spacings.comfortable.medium, borderRadius = tokens.shape.corners.borderRadius;
|
|
1283
|
-
var primary$2 = {
|
|
1284
|
-
background: background$1,
|
|
1285
|
-
border: {
|
|
1286
|
-
type: "border",
|
|
1287
|
-
radius: borderRadius
|
|
1288
|
-
},
|
|
1289
|
-
spacings: {
|
|
1290
|
-
left: spacingMedium,
|
|
1291
|
-
bottom: spacingMedium,
|
|
1292
|
-
right: spacingMedium,
|
|
1293
|
-
top: spacingMedium
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
var info = {
|
|
1297
|
-
background: backgroundInfo
|
|
1298
|
-
};
|
|
1299
|
-
var danger$1 = {
|
|
1300
|
-
background: backgroundDanger
|
|
1301
|
-
};
|
|
1302
|
-
var warning$1 = {
|
|
1303
|
-
background: backgroundWarning
|
|
1304
|
-
};
|
|
1305
|
-
const Card_tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1306
|
-
__proto__: null,
|
|
1307
|
-
danger: danger$1,
|
|
1308
|
-
info,
|
|
1309
|
-
primary: primary$2,
|
|
1310
|
-
warning: warning$1
|
|
1311
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1312
|
-
var elevation = tokens.elevation, background = tokens.colors.ui.background__default.rgba;
|
|
1313
|
-
var paper = {
|
|
1314
|
-
background
|
|
1315
|
-
};
|
|
1316
|
-
var _excluded$8 = ["elevation"];
|
|
1317
|
-
var StyledPaper = styled.div.withConfig({
|
|
1318
|
-
displayName: "Paper__StyledPaper",
|
|
1319
|
-
componentId: "sc-6ncnv9-0"
|
|
1320
|
-
})(["background:", ";box-shadow:", ";"], paper.background, function(_ref) {
|
|
1321
|
-
var $elevation = _ref.$elevation;
|
|
1322
|
-
return $elevation;
|
|
1323
|
-
});
|
|
1324
|
-
var Paper = /* @__PURE__ */ forwardRef(function Paper2(_ref2, ref) {
|
|
1325
|
-
var _elevationToken$eleva;
|
|
1326
|
-
var _ref2$elevation = _ref2.elevation, elevation$12 = _ref2$elevation === void 0 ? "none" : _ref2$elevation, rest = _objectWithoutProperties(_ref2, _excluded$8);
|
|
1327
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1328
|
-
$elevation: (_elevationToken$eleva = elevation[elevation$12]) !== null && _elevationToken$eleva !== void 0 ? _elevationToken$eleva : "none"
|
|
1329
|
-
});
|
|
1330
|
-
return /* @__PURE__ */ jsx(StyledPaper, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1331
|
-
ref
|
|
1332
|
-
}));
|
|
1333
|
-
});
|
|
1334
|
-
var _excluded$7 = ["children", "variant", "elevation"];
|
|
1335
|
-
var primary$1 = primary$2;
|
|
1336
|
-
var StyledCard = styled(Paper).withConfig({
|
|
1337
|
-
displayName: "Card__StyledCard",
|
|
1338
|
-
componentId: "sc-bjucjn-0"
|
|
1339
|
-
})(["width:100%;position:relative;background-color:", ";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;", ";"], function(_ref) {
|
|
1340
|
-
var $background = _ref.$background;
|
|
1341
|
-
return $background;
|
|
1342
|
-
}, bordersTemplate(primary$1.border));
|
|
1343
|
-
var Card$1 = /* @__PURE__ */ forwardRef(function Card(_ref2, ref) {
|
|
1344
|
-
var children = _ref2.children, _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "default" : _ref2$variant, _ref2$elevation = _ref2.elevation, elevation2 = _ref2$elevation === void 0 ? "none" : _ref2$elevation, rest = _objectWithoutProperties(_ref2, _excluded$7);
|
|
1345
|
-
var cardVariant = variant === "default" ? "primary" : variant;
|
|
1346
|
-
var token2 = Card_tokens[cardVariant];
|
|
1347
|
-
var props = _objectSpread2({
|
|
1348
|
-
ref,
|
|
1349
|
-
$background: token2.background
|
|
1350
|
-
}, rest);
|
|
1351
|
-
return /* @__PURE__ */ jsx(StyledCard, _objectSpread2(_objectSpread2({
|
|
1352
|
-
elevation: elevation2
|
|
1353
|
-
}, props), {}, {
|
|
1354
|
-
children
|
|
1355
|
-
}));
|
|
1356
|
-
});
|
|
1357
|
-
var typography = tokens.typography, colorsToken = tokens.colors, focusOutlineWidth = tokens.interactions.focused.width;
|
|
1358
|
-
var heading = typography.heading, paragraph = typography.paragraph;
|
|
1359
|
-
var _colorsToken$interact = colorsToken.interactive, primary = _colorsToken$interact.primary__resting.rgba, secondary = _colorsToken$interact.secondary__resting.rgba, danger = _colorsToken$interact.danger__resting.rgba, warning = _colorsToken$interact.warning__resting.rgba, success = _colorsToken$interact.success__resting.rgba, disabled = _colorsToken$interact.disabled__text.rgba, focus = _colorsToken$interact.focus.rgba;
|
|
1360
|
-
var colors = {
|
|
1361
|
-
primary,
|
|
1362
|
-
secondary,
|
|
1363
|
-
danger,
|
|
1364
|
-
warning,
|
|
1365
|
-
success,
|
|
1366
|
-
disabled
|
|
1367
|
-
};
|
|
1368
|
-
var quickVariants = _objectSpread2(_objectSpread2({}, heading), paragraph);
|
|
1369
|
-
var link = {
|
|
1370
|
-
states: {
|
|
1371
|
-
focus: {
|
|
1372
|
-
outline: {
|
|
1373
|
-
width: focusOutlineWidth,
|
|
1374
|
-
color: focus,
|
|
1375
|
-
style: "dashed",
|
|
1376
|
-
type: "outline",
|
|
1377
|
-
offset: "2px"
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
var _excluded$6 = ["variant", "children", "bold", "italic", "link", "lines", "color", "group", "token", "as"];
|
|
1383
|
-
var getElementType = function getElementType2(variant, link2) {
|
|
1384
|
-
if (link2) {
|
|
1385
|
-
return "a";
|
|
1386
|
-
}
|
|
1387
|
-
switch (variant) {
|
|
1388
|
-
case "h1":
|
|
1389
|
-
case "h2":
|
|
1390
|
-
case "h3":
|
|
1391
|
-
case "h4":
|
|
1392
|
-
case "h5":
|
|
1393
|
-
case "h6":
|
|
1394
|
-
return variant;
|
|
1395
|
-
case "caption":
|
|
1396
|
-
case "overline":
|
|
1397
|
-
case "ingress":
|
|
1398
|
-
case "meta":
|
|
1399
|
-
case "body_short":
|
|
1400
|
-
case "body_long":
|
|
1401
|
-
default:
|
|
1402
|
-
return "p";
|
|
27
|
+
const stylisPlugins = [];
|
|
28
|
+
if (scope) {
|
|
29
|
+
const plugin = createExtraScopePlugin(`#${scope}`);
|
|
30
|
+
Object.defineProperty(plugin, "name", { value: `style-scope-${scope}` });
|
|
31
|
+
stylisPlugins.push(plugin);
|
|
1403
32
|
}
|
|
33
|
+
return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
|
|
1404
34
|
};
|
|
1405
|
-
var findTypography = function findTypography2(variantName, group) {
|
|
1406
|
-
if (!group && quickVariants[variantName]) {
|
|
1407
|
-
return quickVariants[variantName];
|
|
1408
|
-
}
|
|
1409
|
-
return typography[group][variantName];
|
|
1410
|
-
};
|
|
1411
|
-
var findColor = function findColor2() {
|
|
1412
|
-
var inputColor = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
1413
|
-
return typeof colors[inputColor] === "undefined" ? inputColor : colors[inputColor];
|
|
1414
|
-
};
|
|
1415
|
-
var toVariantName = function toVariantName2(variant) {
|
|
1416
|
-
var bold = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
1417
|
-
var italic = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
1418
|
-
var link2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
1419
|
-
return "".concat(variant).concat(bold ? "_bold" : "").concat(italic ? "_italic" : "").concat(link2 ? "_link" : "");
|
|
1420
|
-
};
|
|
1421
|
-
var StyledTypography = styled.p.withConfig({
|
|
1422
|
-
displayName: "Typography__StyledTypography",
|
|
1423
|
-
componentId: "sc-179guof-0"
|
|
1424
|
-
})(["", " ", " ", " ", ""], function(_ref) {
|
|
1425
|
-
var $typography = _ref.$typography, $link = _ref.$link;
|
|
1426
|
-
return typographyTemplate($typography, $link);
|
|
1427
|
-
}, function(_ref2) {
|
|
1428
|
-
var $color = _ref2.$color;
|
|
1429
|
-
return css({
|
|
1430
|
-
color: findColor($color)
|
|
1431
|
-
});
|
|
1432
|
-
}, function(_ref3) {
|
|
1433
|
-
var $lines = _ref3.$lines;
|
|
1434
|
-
return (
|
|
1435
|
-
//https://caniuse.com/#feat=css-line-clamp
|
|
1436
|
-
$lines > 0 && css(["&{display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"], $lines)
|
|
1437
|
-
);
|
|
1438
|
-
}, function(_ref4) {
|
|
1439
|
-
var $link = _ref4.$link;
|
|
1440
|
-
return $link && css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
|
|
1441
|
-
});
|
|
1442
|
-
var Typography = /* @__PURE__ */ forwardRef(function Typography2(_ref5, ref) {
|
|
1443
|
-
var _ref5$variant = _ref5.variant, variant = _ref5$variant === void 0 ? "body_short" : _ref5$variant, children = _ref5.children, bold = _ref5.bold, italic = _ref5.italic, link2 = _ref5.link, lines = _ref5.lines, color = _ref5.color, group = _ref5.group, token2 = _ref5.token, providedAs = _ref5.as, other = _objectWithoutProperties(_ref5, _excluded$6);
|
|
1444
|
-
var as = providedAs ? providedAs : getElementType(variant, link2);
|
|
1445
|
-
var variantName = toVariantName(variant, bold, italic, link2);
|
|
1446
|
-
var typography2 = findTypography(variantName, group);
|
|
1447
|
-
if (typeof typography2 === "undefined") {
|
|
1448
|
-
throw new Error('Typography variant not found for variant "'.concat(variantName, '" ("').concat(variant, '") & group "').concat(group || "", '"'));
|
|
1449
|
-
}
|
|
1450
|
-
return /* @__PURE__ */ jsx(StyledTypography, _objectSpread2(_objectSpread2({
|
|
1451
|
-
as,
|
|
1452
|
-
$typography: _objectSpread2(_objectSpread2({}, typography2), token2),
|
|
1453
|
-
$link: link2,
|
|
1454
|
-
$lines: lines,
|
|
1455
|
-
ref,
|
|
1456
|
-
$color: color
|
|
1457
|
-
}, other), {}, {
|
|
1458
|
-
children
|
|
1459
|
-
}));
|
|
1460
|
-
});
|
|
1461
|
-
var _excluded$5 = ["children", "alignRight", "meta"];
|
|
1462
|
-
var spacings$3 = primary$2.spacings;
|
|
1463
|
-
var StyledCardActions = styled.div.withConfig({
|
|
1464
|
-
displayName: "CardActions__StyledCardActions",
|
|
1465
|
-
componentId: "sc-1d5vskp-0"
|
|
1466
|
-
})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";padding:0 ", " 0 ", ";margin-top:auto;&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], function(_ref) {
|
|
1467
|
-
var $justifyContent = _ref.$justifyContent;
|
|
1468
|
-
return $justifyContent;
|
|
1469
|
-
}, spacings$3.right, spacings$3.left, spacings$3.top, spacings$3.bottom);
|
|
1470
|
-
var CardActions = /* @__PURE__ */ forwardRef(function CardActions2(_ref2, ref) {
|
|
1471
|
-
var children = _ref2.children, _ref2$alignRight = _ref2.alignRight, alignRight = _ref2$alignRight === void 0 ? false : _ref2$alignRight, _ref2$meta = _ref2.meta, meta = _ref2$meta === void 0 ? "" : _ref2$meta, rest = _objectWithoutProperties(_ref2, _excluded$5);
|
|
1472
|
-
var $justifyContent = alignRight ? "flex-end" : "flex-start";
|
|
1473
|
-
var props = _objectSpread2({
|
|
1474
|
-
ref,
|
|
1475
|
-
$justifyContent
|
|
1476
|
-
}, rest);
|
|
1477
|
-
return /* @__PURE__ */ jsxs(StyledCardActions, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1478
|
-
children: [children, meta !== "" && /* @__PURE__ */ jsx(Typography, {
|
|
1479
|
-
variant: "caption",
|
|
1480
|
-
children: meta
|
|
1481
|
-
})]
|
|
1482
|
-
}));
|
|
1483
|
-
});
|
|
1484
|
-
var _excluded$4 = ["children"];
|
|
1485
|
-
var spacings$2 = primary$2.spacings;
|
|
1486
|
-
var StyledCardContent = styled.div.withConfig({
|
|
1487
|
-
displayName: "CardContent__StyledCardContent",
|
|
1488
|
-
componentId: "sc-esm4ym-0"
|
|
1489
|
-
})(["display:grid;padding:0 ", " 0 ", ";&:last-child{padding-bottom:", ";}"], spacings$2.right, spacings$2.left, spacings$2.bottom);
|
|
1490
|
-
var CardContent = /* @__PURE__ */ forwardRef(function CardContent2(_ref, ref) {
|
|
1491
|
-
var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1492
|
-
return /* @__PURE__ */ jsx(StyledCardContent, _objectSpread2(_objectSpread2({
|
|
1493
|
-
ref
|
|
1494
|
-
}, props), {}, {
|
|
1495
|
-
children
|
|
1496
|
-
}));
|
|
1497
|
-
});
|
|
1498
|
-
var _excluded$3 = ["children", "fullWidth"];
|
|
1499
|
-
var spacings$1 = primary$2.spacings, border = primary$2.border;
|
|
1500
|
-
var StyledCardMedia = styled.div.withConfig({
|
|
1501
|
-
displayName: "CardMedia__StyledCardMedia",
|
|
1502
|
-
componentId: "sc-kr8q9c-0"
|
|
1503
|
-
})(["display:flex;width:auto;", ""], function(_ref) {
|
|
1504
|
-
var $fullWidth = _ref.$fullWidth;
|
|
1505
|
-
return $fullWidth ? css(["> *{width:100%;}&:first-child{img{border-top-right-radius:", ";border-top-left-radius:", ";}}&:last-child{img{border-bottom-right-radius:", ";border-bottom-left-radius:", ";}}"], border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius, border.type === "border" && border.radius) : css(["padding:0 ", " 0 ", ";&:first-child{padding:", " ", " 0 ", ";}&:last-child{padding:0 ", " ", " ", ";}> *{width:100%;}"], spacings$1.right, spacings$1.left, spacings$1.top, spacings$1.right, spacings$1.left, spacings$1.right, spacings$1.bottom, spacings$1.left);
|
|
1506
|
-
});
|
|
1507
|
-
var CardMedia = /* @__PURE__ */ forwardRef(function CardMedia2(_ref2, ref) {
|
|
1508
|
-
var children = _ref2.children, _ref2$fullWidth = _ref2.fullWidth, fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth, rest = _objectWithoutProperties(_ref2, _excluded$3);
|
|
1509
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1510
|
-
ref,
|
|
1511
|
-
$fullWidth: fullWidth
|
|
1512
|
-
});
|
|
1513
|
-
return /* @__PURE__ */ jsx(StyledCardMedia, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1514
|
-
children
|
|
1515
|
-
}));
|
|
1516
|
-
});
|
|
1517
|
-
var _excluded$2 = ["children"];
|
|
1518
|
-
var spacings = primary$2.spacings;
|
|
1519
|
-
var StyledCardHeader = styled.div.withConfig({
|
|
1520
|
-
displayName: "CardHeader__StyledCardHeader",
|
|
1521
|
-
componentId: "sc-15k8edh-0"
|
|
1522
|
-
})(["display:flex;justify-content:space-between;align-items:center;padding:0 ", " 0 ", ";> :not(:first-child){margin-left:", ";}&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}"], spacings.right, spacings.left, spacings.left, spacings.top, spacings.bottom);
|
|
1523
|
-
var CardHeader = /* @__PURE__ */ forwardRef(function CardHeader2(_ref, ref) {
|
|
1524
|
-
var children = _ref.children, rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
1525
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1526
|
-
ref
|
|
1527
|
-
});
|
|
1528
|
-
return /* @__PURE__ */ jsx(StyledCardHeader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1529
|
-
children
|
|
1530
|
-
}));
|
|
1531
|
-
});
|
|
1532
|
-
var _excluded$1 = ["children"];
|
|
1533
|
-
var StyledCardHeaderTitle = styled.div.withConfig({
|
|
1534
|
-
displayName: "CardHeaderTitle__StyledCardHeaderTitle",
|
|
1535
|
-
componentId: "sc-11m80r3-0"
|
|
1536
|
-
})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
|
|
1537
|
-
var CardHeaderTitle = /* @__PURE__ */ forwardRef(function CardHeaderTitle2(_ref, ref) {
|
|
1538
|
-
var children = _ref.children, rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
1539
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1540
|
-
ref
|
|
1541
|
-
});
|
|
1542
|
-
return /* @__PURE__ */ jsx(StyledCardHeaderTitle, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1543
|
-
children
|
|
1544
|
-
}));
|
|
1545
|
-
});
|
|
1546
|
-
var Card2 = Card$1;
|
|
1547
|
-
Card2.Actions = CardActions;
|
|
1548
|
-
Card2.Content = CardContent;
|
|
1549
|
-
Card2.Header = CardHeader;
|
|
1550
|
-
Card2.Media = CardMedia;
|
|
1551
|
-
Card2.HeaderTitle = CardHeaderTitle;
|
|
1552
|
-
Card2.Actions.displayName = "Card.Actions";
|
|
1553
|
-
Card2.Content.displayName = "Card.Content";
|
|
1554
|
-
Card2.Header.displayName = "Card.Header";
|
|
1555
|
-
Card2.Media.displayName = "Card.Media";
|
|
1556
|
-
Card2.HeaderTitle.displayName = "Card.HeaderTitle";
|
|
1557
|
-
var logoFillPositive = tokens.colors.logo.fill_positive.rgba;
|
|
1558
|
-
var token = {
|
|
1559
|
-
background: logoFillPositive
|
|
1560
|
-
};
|
|
1561
|
-
var _excluded = ["variant", "value", "size"];
|
|
1562
|
-
var indeterminate = keyframes(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]);
|
|
1563
|
-
var determinate = keyframes(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]);
|
|
1564
|
-
var Svg = styled.svg.withConfig({
|
|
1565
|
-
displayName: "StarProgress__Svg",
|
|
1566
|
-
componentId: "sc-c0byj9-0"
|
|
1567
|
-
})(["fill:", ";", ""], token.background, function(_ref) {
|
|
1568
|
-
var $variant = _ref.$variant, $progress = _ref.$progress;
|
|
1569
|
-
return $variant === "indeterminate" ? css(["path{&:nth-child(1){animation:", " 1.3s linear infinite;}&:nth-child(2){animation:", " 1.3s linear 0.3s infinite;}&:nth-child(3){animation:", " 1.3s linear 0.4s infinite;}&:nth-child(4){animation:", " 1.3s linear 0.6s infinite;}&:nth-child(5){animation:", " 1.3s linear 0.8s infinite;}&:nth-child(6){animation:", " 1.3s linear 1s infinite;}}"], indeterminate, indeterminate, indeterminate, indeterminate, indeterminate, indeterminate) : css(["path{animation:", " 1.3s linear;&:nth-child(6){animation-play-state:", ";}&:nth-child(5){animation-play-state:", ";}&:nth-child(4){animation-play-state:", ";}&:nth-child(3){animation-play-state:", ";}&:nth-child(2){animation-play-state:", ";}&:nth-child(1){animation-play-state:", ";}}"], determinate, $progress > 90 ? "running" : "paused", $progress > 80 ? "running" : "paused", $progress > 60 ? "running" : "paused", $progress > 40 ? "running" : "paused", $progress > 20 ? "running" : "paused", $progress <= 20 ? "running" : "paused");
|
|
1570
|
-
});
|
|
1571
|
-
var StarProgress = /* @__PURE__ */ forwardRef(function StarProgress2(_ref2, ref) {
|
|
1572
|
-
var _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "indeterminate" : _ref2$variant, _ref2$value = _ref2.value, value = _ref2$value === void 0 ? null : _ref2$value, _ref2$size = _ref2.size, size = _ref2$size === void 0 ? 48 : _ref2$size, rest = _objectWithoutProperties(_ref2, _excluded);
|
|
1573
|
-
var progress = Math.round(value);
|
|
1574
|
-
var height = size * 1.2;
|
|
1575
|
-
var width = size;
|
|
1576
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
1577
|
-
ref,
|
|
1578
|
-
$variant: variant,
|
|
1579
|
-
$progress: progress
|
|
1580
|
-
});
|
|
1581
|
-
if (variant === "determinate") {
|
|
1582
|
-
if (value !== void 0) {
|
|
1583
|
-
props["aria-valuenow"] = progress;
|
|
1584
|
-
props["aria-valuemin"] = 0;
|
|
1585
|
-
props["aria-valuemax"] = 100;
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
return /* @__PURE__ */ jsxs(Svg, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1589
|
-
role: "progressbar",
|
|
1590
|
-
width,
|
|
1591
|
-
height,
|
|
1592
|
-
viewBox: "0 0 40 48",
|
|
1593
|
-
fill: "none",
|
|
1594
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1595
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1596
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
1597
|
-
d: "M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"
|
|
1598
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
1599
|
-
d: "M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"
|
|
1600
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
1601
|
-
d: "M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"
|
|
1602
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
1603
|
-
d: "M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"
|
|
1604
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
1605
|
-
d: "M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"
|
|
1606
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
1607
|
-
d: "M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"
|
|
1608
|
-
})]
|
|
1609
|
-
}));
|
|
1610
|
-
});
|
|
1611
35
|
var extendStatics = function(d, b) {
|
|
1612
36
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1613
37
|
d2.__proto__ = b2;
|
|
@@ -2784,8 +1208,8 @@ function parseNotationOptions(opt) {
|
|
|
2784
1208
|
function parseNumberSkeleton(tokens2) {
|
|
2785
1209
|
var result = {};
|
|
2786
1210
|
for (var _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) {
|
|
2787
|
-
var
|
|
2788
|
-
switch (
|
|
1211
|
+
var token = tokens_1[_i];
|
|
1212
|
+
switch (token.stem) {
|
|
2789
1213
|
case "percent":
|
|
2790
1214
|
case "%":
|
|
2791
1215
|
result.style = "percent";
|
|
@@ -2796,7 +1220,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2796
1220
|
continue;
|
|
2797
1221
|
case "currency":
|
|
2798
1222
|
result.style = "currency";
|
|
2799
|
-
result.currency =
|
|
1223
|
+
result.currency = token.options[0];
|
|
2800
1224
|
continue;
|
|
2801
1225
|
case "group-off":
|
|
2802
1226
|
case ",_":
|
|
@@ -2809,7 +1233,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2809
1233
|
case "measure-unit":
|
|
2810
1234
|
case "unit":
|
|
2811
1235
|
result.style = "unit";
|
|
2812
|
-
result.unit = icuUnitToEcma(
|
|
1236
|
+
result.unit = icuUnitToEcma(token.options[0]);
|
|
2813
1237
|
continue;
|
|
2814
1238
|
case "compact-short":
|
|
2815
1239
|
case "K":
|
|
@@ -2822,12 +1246,12 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2822
1246
|
result.compactDisplay = "long";
|
|
2823
1247
|
continue;
|
|
2824
1248
|
case "scientific":
|
|
2825
|
-
result = __assign(__assign(__assign({}, result), { notation: "scientific" }),
|
|
1249
|
+
result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token.options.reduce(function(all, opt2) {
|
|
2826
1250
|
return __assign(__assign({}, all), parseNotationOptions(opt2));
|
|
2827
1251
|
}, {}));
|
|
2828
1252
|
continue;
|
|
2829
1253
|
case "engineering":
|
|
2830
|
-
result = __assign(__assign(__assign({}, result), { notation: "engineering" }),
|
|
1254
|
+
result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token.options.reduce(function(all, opt2) {
|
|
2831
1255
|
return __assign(__assign({}, all), parseNotationOptions(opt2));
|
|
2832
1256
|
}, {}));
|
|
2833
1257
|
continue;
|
|
@@ -2850,13 +1274,13 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2850
1274
|
result.currencyDisplay = "symbol";
|
|
2851
1275
|
continue;
|
|
2852
1276
|
case "scale":
|
|
2853
|
-
result.scale = parseFloat(
|
|
1277
|
+
result.scale = parseFloat(token.options[0]);
|
|
2854
1278
|
continue;
|
|
2855
1279
|
case "integer-width":
|
|
2856
|
-
if (
|
|
1280
|
+
if (token.options.length > 1) {
|
|
2857
1281
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
2858
1282
|
}
|
|
2859
|
-
|
|
1283
|
+
token.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
|
|
2860
1284
|
if (g1) {
|
|
2861
1285
|
result.minimumIntegerDigits = g2.length;
|
|
2862
1286
|
} else if (g3 && g4) {
|
|
@@ -2868,15 +1292,15 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2868
1292
|
});
|
|
2869
1293
|
continue;
|
|
2870
1294
|
}
|
|
2871
|
-
if (CONCISE_INTEGER_WIDTH_REGEX.test(
|
|
2872
|
-
result.minimumIntegerDigits =
|
|
1295
|
+
if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {
|
|
1296
|
+
result.minimumIntegerDigits = token.stem.length;
|
|
2873
1297
|
continue;
|
|
2874
1298
|
}
|
|
2875
|
-
if (FRACTION_PRECISION_REGEX.test(
|
|
2876
|
-
if (
|
|
1299
|
+
if (FRACTION_PRECISION_REGEX.test(token.stem)) {
|
|
1300
|
+
if (token.options.length > 1) {
|
|
2877
1301
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
2878
1302
|
}
|
|
2879
|
-
|
|
1303
|
+
token.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
|
|
2880
1304
|
if (g2 === "*") {
|
|
2881
1305
|
result.minimumFractionDigits = g1.length;
|
|
2882
1306
|
} else if (g3 && g3[0] === "#") {
|
|
@@ -2890,7 +1314,7 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2890
1314
|
}
|
|
2891
1315
|
return "";
|
|
2892
1316
|
});
|
|
2893
|
-
var opt =
|
|
1317
|
+
var opt = token.options[0];
|
|
2894
1318
|
if (opt === "w") {
|
|
2895
1319
|
result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" });
|
|
2896
1320
|
} else if (opt) {
|
|
@@ -2898,15 +1322,15 @@ function parseNumberSkeleton(tokens2) {
|
|
|
2898
1322
|
}
|
|
2899
1323
|
continue;
|
|
2900
1324
|
}
|
|
2901
|
-
if (SIGNIFICANT_PRECISION_REGEX.test(
|
|
2902
|
-
result = __assign(__assign({}, result), parseSignificantPrecision(
|
|
1325
|
+
if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {
|
|
1326
|
+
result = __assign(__assign({}, result), parseSignificantPrecision(token.stem));
|
|
2903
1327
|
continue;
|
|
2904
1328
|
}
|
|
2905
|
-
var signOpts = parseSign(
|
|
1329
|
+
var signOpts = parseSign(token.stem);
|
|
2906
1330
|
if (signOpts) {
|
|
2907
1331
|
result = __assign(__assign({}, result), signOpts);
|
|
2908
1332
|
}
|
|
2909
|
-
var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(
|
|
1333
|
+
var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);
|
|
2910
1334
|
if (conciseScientificAndEngineeringOpts) {
|
|
2911
1335
|
result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts);
|
|
2912
1336
|
}
|
|
@@ -5809,9 +4233,9 @@ var defaultErrorHandler = function(error) {
|
|
|
5809
4233
|
console.error(error);
|
|
5810
4234
|
}
|
|
5811
4235
|
};
|
|
5812
|
-
var defaultWarnHandler = function(
|
|
4236
|
+
var defaultWarnHandler = function(warning) {
|
|
5813
4237
|
if (process.env.NODE_ENV !== "production") {
|
|
5814
|
-
console.warn(
|
|
4238
|
+
console.warn(warning);
|
|
5815
4239
|
}
|
|
5816
4240
|
};
|
|
5817
4241
|
var DEFAULT_INTL_CONFIG$1 = {
|
|
@@ -6585,9 +5009,9 @@ const EquinorLoader = ({
|
|
|
6585
5009
|
);
|
|
6586
5010
|
};
|
|
6587
5011
|
const ErrorViewer = ({ error }) => {
|
|
6588
|
-
return /* @__PURE__ */ jsxs(
|
|
6589
|
-
/* @__PURE__ */ jsx(
|
|
6590
|
-
/* @__PURE__ */ jsx(
|
|
5012
|
+
return /* @__PURE__ */ jsxs(Card, { variant: "warning", style: { width: 800 }, children: [
|
|
5013
|
+
/* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx(Typography, { variant: "h4", color: "warning", children: error.message }) }),
|
|
5014
|
+
/* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsx("pre", { style: { whiteSpace: "pre-wrap" }, children: error.stack ?? "Error" }) })
|
|
6591
5015
|
] });
|
|
6592
5016
|
};
|
|
6593
5017
|
function getAppModule(app, framework) {
|
|
@@ -6612,7 +5036,7 @@ function AppLoader({
|
|
|
6612
5036
|
}) {
|
|
6613
5037
|
const queryClient = useQueryClient();
|
|
6614
5038
|
kind = kind ?? "widget";
|
|
6615
|
-
const { setCurrentApp, clearCurrentApp } = useCurrentApp();
|
|
5039
|
+
const { setCurrentApp, clearCurrentApp, currentApp } = useCurrentApp();
|
|
6616
5040
|
const framework = useFramework();
|
|
6617
5041
|
const [error, setError] = useState(null);
|
|
6618
5042
|
const [loading, setLoading] = useState(false);
|
|
@@ -6671,7 +5095,8 @@ function AppLoader({
|
|
|
6671
5095
|
} catch {
|
|
6672
5096
|
}
|
|
6673
5097
|
appModule.dispose();
|
|
6674
|
-
|
|
5098
|
+
if (kind === "app")
|
|
5099
|
+
clearCurrentApp();
|
|
6675
5100
|
};
|
|
6676
5101
|
}, [app]);
|
|
6677
5102
|
const ref = useRef(null);
|
|
@@ -6818,15 +5243,15 @@ const getError = (error) => {
|
|
|
6818
5243
|
};
|
|
6819
5244
|
const HttpErrorViewer = ({ error }) => {
|
|
6820
5245
|
return /* @__PURE__ */ jsxs(
|
|
6821
|
-
|
|
5246
|
+
Card,
|
|
6822
5247
|
{
|
|
6823
5248
|
style: {
|
|
6824
5249
|
minWidth: 400,
|
|
6825
5250
|
border: `1px solid ${tokens.colors.ui.background__danger.hex}`
|
|
6826
5251
|
},
|
|
6827
5252
|
children: [
|
|
6828
|
-
/* @__PURE__ */ jsx(
|
|
6829
|
-
/* @__PURE__ */ jsx(
|
|
5253
|
+
/* @__PURE__ */ jsx(Card.Header, { children: /* @__PURE__ */ jsx(Typography, { variant: "h4", color: "danger", children: error.message }) }),
|
|
5254
|
+
/* @__PURE__ */ jsx(Card.Content, { children: getError(error.response) })
|
|
6830
5255
|
]
|
|
6831
5256
|
}
|
|
6832
5257
|
);
|
|
@@ -7141,6 +5566,93 @@ const useDeleteSettingByUserAndAppShortNameAndSettingKey = (options) => {
|
|
|
7141
5566
|
const mutationOptions = useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions(options);
|
|
7142
5567
|
return useMutation(mutationOptions);
|
|
7143
5568
|
};
|
|
5569
|
+
const useGetByAppShortNameAndSettingKeyHook = () => {
|
|
5570
|
+
const getByAppShortNameAndSettingKey = useCustomClient();
|
|
5571
|
+
return (appShortName, settingKey, signal) => {
|
|
5572
|
+
return getByAppShortNameAndSettingKey({
|
|
5573
|
+
url: `/api/settings/application/${appShortName}/setting/${settingKey}`,
|
|
5574
|
+
method: "get",
|
|
5575
|
+
signal
|
|
5576
|
+
});
|
|
5577
|
+
};
|
|
5578
|
+
};
|
|
5579
|
+
const getGetByAppShortNameAndSettingKeyQueryKey = (appShortName, settingKey) => {
|
|
5580
|
+
return [
|
|
5581
|
+
`/api/settings/application/${appShortName}/setting/${settingKey}`
|
|
5582
|
+
];
|
|
5583
|
+
};
|
|
5584
|
+
const useGetByAppShortNameAndSettingKeyQueryOptions = (appShortName, settingKey, options) => {
|
|
5585
|
+
const { query: queryOptions } = options ?? {};
|
|
5586
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetByAppShortNameAndSettingKeyQueryKey(appShortName, settingKey);
|
|
5587
|
+
const getByAppShortNameAndSettingKey = useGetByAppShortNameAndSettingKeyHook();
|
|
5588
|
+
const queryFn = ({ signal }) => getByAppShortNameAndSettingKey(appShortName, settingKey, signal);
|
|
5589
|
+
return {
|
|
5590
|
+
queryKey,
|
|
5591
|
+
queryFn,
|
|
5592
|
+
enabled: !!(appShortName && settingKey),
|
|
5593
|
+
...queryOptions
|
|
5594
|
+
};
|
|
5595
|
+
};
|
|
5596
|
+
const useGetByAppShortNameAndSettingKey = (appShortName, settingKey, options) => {
|
|
5597
|
+
const queryOptions = useGetByAppShortNameAndSettingKeyQueryOptions(
|
|
5598
|
+
appShortName,
|
|
5599
|
+
settingKey,
|
|
5600
|
+
options
|
|
5601
|
+
);
|
|
5602
|
+
const query = useQuery(queryOptions);
|
|
5603
|
+
query.queryKey = queryOptions.queryKey;
|
|
5604
|
+
return query;
|
|
5605
|
+
};
|
|
5606
|
+
const useCreateOrUpdateAppShortNameAndSettingKeyHook = () => {
|
|
5607
|
+
const createOrUpdateAppShortNameAndSettingKey = useCustomClient();
|
|
5608
|
+
return (appShortName, settingKey, settingDto) => {
|
|
5609
|
+
return createOrUpdateAppShortNameAndSettingKey({
|
|
5610
|
+
url: `/api/settings/application/${appShortName}/setting/${settingKey}`,
|
|
5611
|
+
method: "post",
|
|
5612
|
+
headers: { "Content-Type": "application/json" },
|
|
5613
|
+
data: settingDto
|
|
5614
|
+
});
|
|
5615
|
+
};
|
|
5616
|
+
};
|
|
5617
|
+
const useCreateOrUpdateAppShortNameAndSettingKeyMutationOptions = (options) => {
|
|
5618
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5619
|
+
const createOrUpdateAppShortNameAndSettingKey = useCreateOrUpdateAppShortNameAndSettingKeyHook();
|
|
5620
|
+
const mutationFn = (props) => {
|
|
5621
|
+
const { appShortName, settingKey, data } = props ?? {};
|
|
5622
|
+
return createOrUpdateAppShortNameAndSettingKey(
|
|
5623
|
+
appShortName,
|
|
5624
|
+
settingKey,
|
|
5625
|
+
data
|
|
5626
|
+
);
|
|
5627
|
+
};
|
|
5628
|
+
return { mutationFn, ...mutationOptions };
|
|
5629
|
+
};
|
|
5630
|
+
const useCreateOrUpdateAppShortNameAndSettingKey = (options) => {
|
|
5631
|
+
const mutationOptions = useCreateOrUpdateAppShortNameAndSettingKeyMutationOptions(options);
|
|
5632
|
+
return useMutation(mutationOptions);
|
|
5633
|
+
};
|
|
5634
|
+
const useDeleteAppShortNameAndSettingKeyHook = () => {
|
|
5635
|
+
const deleteAppShortNameAndSettingKey = useCustomClient();
|
|
5636
|
+
return (appShortName, settingKey) => {
|
|
5637
|
+
return deleteAppShortNameAndSettingKey({
|
|
5638
|
+
url: `/api/settings/application/${appShortName}/setting/${settingKey}`,
|
|
5639
|
+
method: "delete"
|
|
5640
|
+
});
|
|
5641
|
+
};
|
|
5642
|
+
};
|
|
5643
|
+
const useDeleteAppShortNameAndSettingKeyMutationOptions = (options) => {
|
|
5644
|
+
const { mutation: mutationOptions } = options ?? {};
|
|
5645
|
+
const deleteAppShortNameAndSettingKey = useDeleteAppShortNameAndSettingKeyHook();
|
|
5646
|
+
const mutationFn = (props) => {
|
|
5647
|
+
const { appShortName, settingKey } = props ?? {};
|
|
5648
|
+
return deleteAppShortNameAndSettingKey(appShortName, settingKey);
|
|
5649
|
+
};
|
|
5650
|
+
return { mutationFn, ...mutationOptions };
|
|
5651
|
+
};
|
|
5652
|
+
const useDeleteAppShortNameAndSettingKey = (options) => {
|
|
5653
|
+
const mutationOptions = useDeleteAppShortNameAndSettingKeyMutationOptions(options);
|
|
5654
|
+
return useMutation(mutationOptions);
|
|
5655
|
+
};
|
|
7144
5656
|
const useGetSettingByUserAndAppShortNameHook = () => {
|
|
7145
5657
|
const getSettingByUserAndAppShortName = useCustomClient();
|
|
7146
5658
|
return (userId, appShortName, signal) => {
|
|
@@ -7176,6 +5688,40 @@ const useGetSettingByUserAndAppShortName = (userId, appShortName, options) => {
|
|
|
7176
5688
|
query.queryKey = queryOptions.queryKey;
|
|
7177
5689
|
return query;
|
|
7178
5690
|
};
|
|
5691
|
+
const useGetSettingsAppShortNameHook = () => {
|
|
5692
|
+
const getSettingsAppShortName = useCustomClient();
|
|
5693
|
+
return (appShortName, signal) => {
|
|
5694
|
+
return getSettingsAppShortName({
|
|
5695
|
+
url: `/api/settings/application/${appShortName}`,
|
|
5696
|
+
method: "get",
|
|
5697
|
+
signal
|
|
5698
|
+
});
|
|
5699
|
+
};
|
|
5700
|
+
};
|
|
5701
|
+
const getGetSettingsAppShortNameQueryKey = (appShortName) => {
|
|
5702
|
+
return [`/api/settings/application/${appShortName}`];
|
|
5703
|
+
};
|
|
5704
|
+
const useGetSettingsAppShortNameQueryOptions = (appShortName, options) => {
|
|
5705
|
+
const { query: queryOptions } = options ?? {};
|
|
5706
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetSettingsAppShortNameQueryKey(appShortName);
|
|
5707
|
+
const getSettingsAppShortName = useGetSettingsAppShortNameHook();
|
|
5708
|
+
const queryFn = ({ signal }) => getSettingsAppShortName(appShortName, signal);
|
|
5709
|
+
return {
|
|
5710
|
+
queryKey,
|
|
5711
|
+
queryFn,
|
|
5712
|
+
enabled: !!appShortName,
|
|
5713
|
+
...queryOptions
|
|
5714
|
+
};
|
|
5715
|
+
};
|
|
5716
|
+
const useGetSettingsAppShortName = (appShortName, options) => {
|
|
5717
|
+
const queryOptions = useGetSettingsAppShortNameQueryOptions(
|
|
5718
|
+
appShortName,
|
|
5719
|
+
options
|
|
5720
|
+
);
|
|
5721
|
+
const query = useQuery(queryOptions);
|
|
5722
|
+
query.queryKey = queryOptions.queryKey;
|
|
5723
|
+
return query;
|
|
5724
|
+
};
|
|
7179
5725
|
const useGetAllAppsHook = () => {
|
|
7180
5726
|
const getAllApps = useCustomClient();
|
|
7181
5727
|
return (signal) => {
|
|
@@ -7729,6 +6275,7 @@ export {
|
|
|
7729
6275
|
getGetAllRomaConfigurationTypesQueryKey,
|
|
7730
6276
|
getGetAllServicesQueryKey,
|
|
7731
6277
|
getGetAppByKeyQueryKey,
|
|
6278
|
+
getGetByAppShortNameAndSettingKeyQueryKey,
|
|
7732
6279
|
getGetCategoryByIdQueryKey,
|
|
7733
6280
|
getGetCurrentEnvironmentQueryKey,
|
|
7734
6281
|
getGetRomaConfigurationByIdQueryKey,
|
|
@@ -7736,6 +6283,7 @@ export {
|
|
|
7736
6283
|
getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey,
|
|
7737
6284
|
getGetSettingByUserAndAppShortNameQueryKey,
|
|
7738
6285
|
getGetSettingByUserAndSettingKeyQueryKey,
|
|
6286
|
+
getGetSettingsAppShortNameQueryKey,
|
|
7739
6287
|
getStreamEventsQueryKey,
|
|
7740
6288
|
makeComponent,
|
|
7741
6289
|
useAddRomaConfiguration,
|
|
@@ -7745,6 +6293,9 @@ export {
|
|
|
7745
6293
|
useCreateOrUpdateApp,
|
|
7746
6294
|
useCreateOrUpdateAppHook,
|
|
7747
6295
|
useCreateOrUpdateAppMutationOptions,
|
|
6296
|
+
useCreateOrUpdateAppShortNameAndSettingKey,
|
|
6297
|
+
useCreateOrUpdateAppShortNameAndSettingKeyHook,
|
|
6298
|
+
useCreateOrUpdateAppShortNameAndSettingKeyMutationOptions,
|
|
7748
6299
|
useCreateOrUpdateCategory,
|
|
7749
6300
|
useCreateOrUpdateCategoryHook,
|
|
7750
6301
|
useCreateOrUpdateCategoryMutationOptions,
|
|
@@ -7760,6 +6311,9 @@ export {
|
|
|
7760
6311
|
useDeleteAppByKey,
|
|
7761
6312
|
useDeleteAppByKeyHook,
|
|
7762
6313
|
useDeleteAppByKeyMutationOptions,
|
|
6314
|
+
useDeleteAppShortNameAndSettingKey,
|
|
6315
|
+
useDeleteAppShortNameAndSettingKeyHook,
|
|
6316
|
+
useDeleteAppShortNameAndSettingKeyMutationOptions,
|
|
7763
6317
|
useDeleteCategoryById,
|
|
7764
6318
|
useDeleteCategoryByIdHook,
|
|
7765
6319
|
useDeleteCategoryByIdMutationOptions,
|
|
@@ -7797,6 +6351,9 @@ export {
|
|
|
7797
6351
|
useGetAppByKey,
|
|
7798
6352
|
useGetAppByKeyHook,
|
|
7799
6353
|
useGetAppByKeyQueryOptions,
|
|
6354
|
+
useGetByAppShortNameAndSettingKey,
|
|
6355
|
+
useGetByAppShortNameAndSettingKeyHook,
|
|
6356
|
+
useGetByAppShortNameAndSettingKeyQueryOptions,
|
|
7800
6357
|
useGetCategoryById,
|
|
7801
6358
|
useGetCategoryByIdHook,
|
|
7802
6359
|
useGetCategoryByIdQueryOptions,
|
|
@@ -7820,6 +6377,9 @@ export {
|
|
|
7820
6377
|
useGetSettingByUserAndSettingKey,
|
|
7821
6378
|
useGetSettingByUserAndSettingKeyHook,
|
|
7822
6379
|
useGetSettingByUserAndSettingKeyQueryOptions,
|
|
6380
|
+
useGetSettingsAppShortName,
|
|
6381
|
+
useGetSettingsAppShortNameHook,
|
|
6382
|
+
useGetSettingsAppShortNameQueryOptions,
|
|
7823
6383
|
useStreamEvents,
|
|
7824
6384
|
useStreamEventsHook,
|
|
7825
6385
|
useStreamEventsQueryOptions,
|