@digitalservicebund/ris-ui 3.11.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/RisChipsInput/RisChipsInput.vue.d.ts +1 -1
- package/dist/components/RisCopyableLabel/RisCopyableLabel.vue.d.ts +1 -1
- package/dist/components/RisExpandableText/RisExpandableText.vue.d.ts +1 -1
- package/dist/components/RisGhostButton/RisGhostButton.vue.d.ts +1 -1
- package/dist/components/RisPaginator/RisPaginator.vue.d.ts +1 -1
- package/dist/components/RisSingleAccordion/RisSingleAccordion.vue.d.ts +3 -3
- package/dist/components/index.cjs +37 -21
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +1561 -1735
- package/dist/components/index.js.map +1 -1
- package/dist/mockServiceWorker.js +91 -54
- package/dist/primevue/index.cjs +1 -1
- package/dist/primevue/index.cjs.map +1 -1
- package/dist/primevue/index.js +25 -29
- package/dist/primevue/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +25 -25
|
@@ -5,24 +5,23 @@
|
|
|
5
5
|
* Mock Service Worker.
|
|
6
6
|
* @see https://github.com/mswjs/msw
|
|
7
7
|
* - Please do NOT modify this file.
|
|
8
|
-
* - Please do NOT serve this file on production.
|
|
9
8
|
*/
|
|
10
9
|
|
|
11
|
-
const PACKAGE_VERSION = '2.
|
|
12
|
-
const INTEGRITY_CHECKSUM = '
|
|
10
|
+
const PACKAGE_VERSION = '2.10.4'
|
|
11
|
+
const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
|
|
13
12
|
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
|
14
13
|
const activeClientIds = new Set()
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
addEventListener('install', function () {
|
|
17
16
|
self.skipWaiting()
|
|
18
17
|
})
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
addEventListener('activate', function (event) {
|
|
21
20
|
event.waitUntil(self.clients.claim())
|
|
22
21
|
})
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
const clientId = event.source
|
|
23
|
+
addEventListener('message', async function (event) {
|
|
24
|
+
const clientId = Reflect.get(event.source || {}, 'id')
|
|
26
25
|
|
|
27
26
|
if (!clientId || !self.clients) {
|
|
28
27
|
return
|
|
@@ -94,17 +93,18 @@ self.addEventListener('message', async function (event) {
|
|
|
94
93
|
}
|
|
95
94
|
})
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
const { request } = event
|
|
99
|
-
|
|
96
|
+
addEventListener('fetch', function (event) {
|
|
100
97
|
// Bypass navigation requests.
|
|
101
|
-
if (request.mode === 'navigate') {
|
|
98
|
+
if (event.request.mode === 'navigate') {
|
|
102
99
|
return
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
// Opening the DevTools triggers the "only-if-cached" request
|
|
106
103
|
// that cannot be handled by the worker. Bypass such requests.
|
|
107
|
-
if (
|
|
104
|
+
if (
|
|
105
|
+
event.request.cache === 'only-if-cached' &&
|
|
106
|
+
event.request.mode !== 'same-origin'
|
|
107
|
+
) {
|
|
108
108
|
return
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -115,48 +115,62 @@ self.addEventListener('fetch', function (event) {
|
|
|
115
115
|
return
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// Generate unique request ID.
|
|
119
118
|
const requestId = crypto.randomUUID()
|
|
120
119
|
event.respondWith(handleRequest(event, requestId))
|
|
121
120
|
})
|
|
122
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @param {FetchEvent} event
|
|
124
|
+
* @param {string} requestId
|
|
125
|
+
*/
|
|
123
126
|
async function handleRequest(event, requestId) {
|
|
124
127
|
const client = await resolveMainClient(event)
|
|
128
|
+
const requestCloneForEvents = event.request.clone()
|
|
125
129
|
const response = await getResponse(event, client, requestId)
|
|
126
130
|
|
|
127
131
|
// Send back the response clone for the "response:*" life-cycle events.
|
|
128
132
|
// Ensure MSW is active and ready to handle the message, otherwise
|
|
129
133
|
// this message will pend indefinitely.
|
|
130
134
|
if (client && activeClientIds.has(client.id)) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
135
|
+
const serializedRequest = await serializeRequest(requestCloneForEvents)
|
|
136
|
+
|
|
137
|
+
// Clone the response so both the client and the library could consume it.
|
|
138
|
+
const responseClone = response.clone()
|
|
139
|
+
|
|
140
|
+
sendToClient(
|
|
141
|
+
client,
|
|
142
|
+
{
|
|
143
|
+
type: 'RESPONSE',
|
|
144
|
+
payload: {
|
|
145
|
+
isMockedResponse: IS_MOCKED_RESPONSE in response,
|
|
146
|
+
request: {
|
|
147
|
+
id: requestId,
|
|
148
|
+
...serializedRequest,
|
|
149
|
+
},
|
|
150
|
+
response: {
|
|
141
151
|
type: responseClone.type,
|
|
142
152
|
status: responseClone.status,
|
|
143
153
|
statusText: responseClone.statusText,
|
|
144
|
-
body: responseClone.body,
|
|
145
154
|
headers: Object.fromEntries(responseClone.headers.entries()),
|
|
155
|
+
body: responseClone.body,
|
|
146
156
|
},
|
|
147
157
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
},
|
|
159
|
+
responseClone.body ? [serializedRequest.body, responseClone.body] : [],
|
|
160
|
+
)
|
|
151
161
|
}
|
|
152
162
|
|
|
153
163
|
return response
|
|
154
164
|
}
|
|
155
165
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
166
|
+
/**
|
|
167
|
+
* Resolve the main client for the given event.
|
|
168
|
+
* Client that issues a request doesn't necessarily equal the client
|
|
169
|
+
* that registered the worker. It's with the latter the worker should
|
|
170
|
+
* communicate with during the response resolving phase.
|
|
171
|
+
* @param {FetchEvent} event
|
|
172
|
+
* @returns {Promise<Client | undefined>}
|
|
173
|
+
*/
|
|
160
174
|
async function resolveMainClient(event) {
|
|
161
175
|
const client = await self.clients.get(event.clientId)
|
|
162
176
|
|
|
@@ -184,12 +198,16 @@ async function resolveMainClient(event) {
|
|
|
184
198
|
})
|
|
185
199
|
}
|
|
186
200
|
|
|
201
|
+
/**
|
|
202
|
+
* @param {FetchEvent} event
|
|
203
|
+
* @param {Client | undefined} client
|
|
204
|
+
* @param {string} requestId
|
|
205
|
+
* @returns {Promise<Response>}
|
|
206
|
+
*/
|
|
187
207
|
async function getResponse(event, client, requestId) {
|
|
188
|
-
const { request } = event
|
|
189
|
-
|
|
190
208
|
// Clone the request because it might've been already used
|
|
191
209
|
// (i.e. its body has been read and sent to the client).
|
|
192
|
-
const requestClone = request.clone()
|
|
210
|
+
const requestClone = event.request.clone()
|
|
193
211
|
|
|
194
212
|
function passthrough() {
|
|
195
213
|
// Cast the request headers to a new Headers instance
|
|
@@ -230,29 +248,17 @@ async function getResponse(event, client, requestId) {
|
|
|
230
248
|
}
|
|
231
249
|
|
|
232
250
|
// Notify the client that a request has been intercepted.
|
|
233
|
-
const
|
|
251
|
+
const serializedRequest = await serializeRequest(event.request)
|
|
234
252
|
const clientMessage = await sendToClient(
|
|
235
253
|
client,
|
|
236
254
|
{
|
|
237
255
|
type: 'REQUEST',
|
|
238
256
|
payload: {
|
|
239
257
|
id: requestId,
|
|
240
|
-
|
|
241
|
-
mode: request.mode,
|
|
242
|
-
method: request.method,
|
|
243
|
-
headers: Object.fromEntries(request.headers.entries()),
|
|
244
|
-
cache: request.cache,
|
|
245
|
-
credentials: request.credentials,
|
|
246
|
-
destination: request.destination,
|
|
247
|
-
integrity: request.integrity,
|
|
248
|
-
redirect: request.redirect,
|
|
249
|
-
referrer: request.referrer,
|
|
250
|
-
referrerPolicy: request.referrerPolicy,
|
|
251
|
-
body: requestBuffer,
|
|
252
|
-
keepalive: request.keepalive,
|
|
258
|
+
...serializedRequest,
|
|
253
259
|
},
|
|
254
260
|
},
|
|
255
|
-
[
|
|
261
|
+
[serializedRequest.body],
|
|
256
262
|
)
|
|
257
263
|
|
|
258
264
|
switch (clientMessage.type) {
|
|
@@ -268,6 +274,12 @@ async function getResponse(event, client, requestId) {
|
|
|
268
274
|
return passthrough()
|
|
269
275
|
}
|
|
270
276
|
|
|
277
|
+
/**
|
|
278
|
+
* @param {Client} client
|
|
279
|
+
* @param {any} message
|
|
280
|
+
* @param {Array<Transferable>} transferrables
|
|
281
|
+
* @returns {Promise<any>}
|
|
282
|
+
*/
|
|
271
283
|
function sendToClient(client, message, transferrables = []) {
|
|
272
284
|
return new Promise((resolve, reject) => {
|
|
273
285
|
const channel = new MessageChannel()
|
|
@@ -280,14 +292,18 @@ function sendToClient(client, message, transferrables = []) {
|
|
|
280
292
|
resolve(event.data)
|
|
281
293
|
}
|
|
282
294
|
|
|
283
|
-
client.postMessage(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
)
|
|
295
|
+
client.postMessage(message, [
|
|
296
|
+
channel.port2,
|
|
297
|
+
...transferrables.filter(Boolean),
|
|
298
|
+
])
|
|
287
299
|
})
|
|
288
300
|
}
|
|
289
301
|
|
|
290
|
-
|
|
302
|
+
/**
|
|
303
|
+
* @param {Response} response
|
|
304
|
+
* @returns {Response}
|
|
305
|
+
*/
|
|
306
|
+
function respondWithMock(response) {
|
|
291
307
|
// Setting response status code to 0 is a no-op.
|
|
292
308
|
// However, when responding with a "Response.error()", the produced Response
|
|
293
309
|
// instance will have status code set to 0. Since it's not possible to create
|
|
@@ -305,3 +321,24 @@ async function respondWithMock(response) {
|
|
|
305
321
|
|
|
306
322
|
return mockedResponse
|
|
307
323
|
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @param {Request} request
|
|
327
|
+
*/
|
|
328
|
+
async function serializeRequest(request) {
|
|
329
|
+
return {
|
|
330
|
+
url: request.url,
|
|
331
|
+
mode: request.mode,
|
|
332
|
+
method: request.method,
|
|
333
|
+
headers: Object.fromEntries(request.headers.entries()),
|
|
334
|
+
cache: request.cache,
|
|
335
|
+
credentials: request.credentials,
|
|
336
|
+
destination: request.destination,
|
|
337
|
+
integrity: request.integrity,
|
|
338
|
+
redirect: request.redirect,
|
|
339
|
+
referrer: request.referrer,
|
|
340
|
+
referrerPolicy: request.referrerPolicy,
|
|
341
|
+
body: await request.arrayBuffer(),
|
|
342
|
+
keepalive: request.keepalive,
|
|
343
|
+
}
|
|
344
|
+
}
|
package/dist/primevue/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=(t,...l)=>String.raw({raw:t},...l),e=y,k={root:({props:t,instance:l})=>{const r=e`relative inline-flex max-w-full cursor-pointer items-center justify-center gap-8 rounded-none text-center focus:outline-4 focus:outline-offset-4 focus:outline-blue-800 focus:not-focus-visible:outline-none focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800 active:outline-none disabled:cursor-not-allowed disabled:outline-hidden`,o=t.severity??"primary",s=e`bg-blue-800 text-white hover:bg-blue-700 active:bg-blue-500 active:text-blue-800 disabled:bg-gray-400 disabled:text-gray-600`,n=e`border-2 border-blue-800 bg-white text-blue-800 hover:bg-gray-200 focus:bg-gray-200 active:border-white active:bg-white disabled:border-blue-500 disabled:text-blue-500 disabled:hover:bg-white`,a=e`border-2 border-red-800 bg-white text-red-800 hover:bg-gray-200 focus:bg-gray-200 focus:outline-red-800 active:border-white active:bg-white disabled:border-red-500 disabled:text-red-500 disabled:hover:bg-white`,i=e`border-2 border-transparent bg-transparent text-blue-800 underline hover:border-gray-500 hover:bg-white focus:border-gray-500 active:border-white active:bg-white disabled:bg-transparent disabled:text-gray-500`,u=t.size??"normal";let d=e`ris-body2-bold h-40 py-4`,c=e`ris-body2-bold h-48 py-4`,b=e`ris-body1-bold h-64 py-4`;return l.hasIcon&&!t.label?(d=e`${d} w-40 px-4`,c=e`${c} w-48 px-4`,b=e`${b} w-64 px-4`):(d=e`${d} px-16`,c=e`${c} px-16`,b=e`${b} px-24`),{class:{[r]:!0,[d]:u==="small",[c]:u==="normal",[b]:u==="large",[s]:!t.text&&o==="primary",[n]:!t.text&&o==="secondary",[a]:!t.text&&o==="danger",[i]:t.text&&o==="primary"}}},label:({props:t})=>({class:{hidden:!t.label}}),icon:({props:t})=>({class:{"order-last":t.iconPos=="right"}}),loadingIcon:({props:t})=>{const l=t.size??"normal",r=e`h-[1.34em] w-[1.34em]`,o=e`h-24 w-24`;return{class:{[e`animate-spin`]:!0,[r]:l==="normal",[o]:l==="large"}}}},h={root:({props:t})=>({class:{[e`[&+label]:ris-label1-regular relative inline-block h-24 min-h-24 w-24 min-w-24 [&+label]:ml-8`]:!0,[e`h-32 min-h-32 w-32 min-w-32`]:t.size==="large"}}),input:{class:e`peer h-full w-full cursor-pointer appearance-none border-2 border-blue-800 bg-white hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 active:outline-hidden disabled:cursor-not-allowed disabled:border-gray-600 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-none aria-[invalid]:disabled:outline-none`},box:{class:e`pointer-events-none absolute inset-0 flex items-center justify-center text-blue-800 peer-disabled:text-gray-600 peer-aria-[invalid]:text-red-800`},icon:{class:e`h-12 w-12`}},S={},z={root:()=>({class:e`ris-label2-regular max-h-[90dvh] w-[95dvw] max-w-[25rem] border-2 border-blue-800 bg-white px-56 py-44 shadow-lg`}),header:{class:e`mb-16 flex`},title:{class:e`ris-label1-bold flex-1`},headerActions:{class:e`flex-none`},pcCloseButton:{root:{class:e`flex h-24 w-24 items-center justify-center p-4 text-blue-800 outline-hidden hover:outline hover:outline-2 hover:outline-gray-500 focus:outline focus:outline-2 focus:outline-gray-500 active:outline-hidden`}},content:{class:e`ris-dialog-content overflow-auto has-[svg:first-child]:flex has-[svg:first-child]:gap-8 [&>svg:first-child]:flex-none`},footer:{class:e`mt-40 flex items-center justify-end gap-12`},mask:{class:e`bg-black/40`}},M={root:()=>({class:{[e`flex flex-col items-center gap-10`]:!0}}),input:()=>({class:"hidden"})},N={root:{class:e`has-[input:read-only]:curser-not-allowed inline-flex items-center gap-4 border-2 border-blue-800 bg-white px-16 py-0 has-[:focus]:outline has-[:focus]:outline-4 has-[:focus]:-outline-offset-4 has-[:focus]:outline-blue-800 has-[:hover]:outline has-[:hover]:outline-4 has-[:hover]:-outline-offset-4 has-[:hover]:outline-blue-800 has-[[aria-invalid]]:border-red-800 has-[[aria-invalid]]:bg-red-200 has-[[aria-invalid]]:outline-red-800 has-[[data-size=large]]:px-24 has-[input:disabled]:border-blue-500 has-[input:disabled]:bg-white has-[input:disabled]:text-blue-500 has-[input:disabled]:outline-hidden has-[input:read-only]:border-blue-300 has-[input:read-only]:bg-blue-300`}},A={root:{class:e`m-0 p-0`}},w=e`[&+small]:ris-label3-regular border-2 border-blue-800 bg-white placeholder:text-gray-800 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-hidden [&+small]:mt-4 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,x=e`ris-body2-regular h-48 px-16 py-4`,D=e`ris-body1-regular h-64 px-24 py-4`,L=e`ris-body2-regular h-[44px] p-0`,B=e`ris-body1-regular h-[60px] p-0`,I={root:({props:t,parent:l})=>{const r=e`[&[type=password]]:w-full [&[type=password]:not(:placeholder-shown)]:text-[28px] [&[type=password]:not(:placeholder-shown)]:tracking-[4px]`,o=l.instance.$name==="InputGroup",s=e`bg-transparent placeholder:text-gray-900 focus:outline-hidden`,n=e`w-full`;return{class:{[w]:!o,[s]:o,[n]:!!t.fluid,[r]:!0,[x]:(!t.size||t.size==="small")&&!o,[L]:(!t.size||t.size==="small")&&o,[D]:t.size==="large"&&!o,[B]:t.size==="large"&&o},"data-size":t.size??"small"}}},T={root:{class:e`ris-body2-regular bg-white shadow`},list:{class:e`focus-visible:outline-none`},item:({context:t})=>{const l=e`relative h-48 pr-12 pl-16 after:absolute after:right-16 after:-bottom-1 after:left-16 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100`,r=e`bg-gray-200 hover:bg-gray-200`;return{class:{[l]:!0,[r]:t.focused}}},itemContent:{class:e`flex h-full items-center py-4`},itemLink:{class:e`flex items-center gap-8`}},F={root:({props:t,instance:l})=>{const r=e`ris-body1-regular border-l-4 px-20 py-14`,o=t.severity??"info",s=e`border-l-green-800 bg-green-200`,n=e`border-l-blue-800 bg-blue-200`,a=e`border-l-yellow-800 bg-yellow-200`,i=e`border-l-red-800 bg-red-200`,u=!!l.$slots.icon,c={success:"var(--ris-icon-success)",info:"var(--ris-icon-info)",warn:"var(--ris-icon-warn)",error:"var(--ris-icon-error)"}[o],b=e`bg-[length:20px] bg-[16px_18px] bg-no-repeat pl-44`;return{class:{[r]:!0,[s]:o==="success",[n]:o==="info",[a]:o==="warn",[i]:o==="error",[b]:!u},style:{backgroundImage:u?void 0:c}}},content:{class:e`flex items-start gap-8`},text:{class:e`flex-1`},closeButton:({props:t})=>{const l=e`mt-4 inline-flex h-20 w-20 flex-none items-center justify-center rounded-sm p-2 leading-none`,r=t.severity??"info",o=e`text-green-800 hover:bg-green-400 active:bg-green-500`,s=e`text-blue-800 hover:bg-blue-400 active:bg-blue-500`,n=e`text-black hover:bg-yellow-400 active:bg-yellow-500`,a=e`text-red-800 hover:bg-red-400 active:bg-red-500`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="info",[n]:r==="warn",[a]:r==="error"}}}},C={},E={root:{class:e`mx-auto inline-block h-28 w-28 animate-spin`},circle:{class:e`fill-transparent stroke-current stroke-[4px] text-blue-800 [stroke-dasharray:200] [stroke-dashoffset:100]`}},R={root:{class:e`[&+label]:ris-label1-regular relative inline-block h-32 w-32 [&+label]:ml-8`},input:{class:e`peer h-full w-full cursor-pointer appearance-none rounded-full border-2 border-blue-800 bg-white hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 active:outline-hidden disabled:cursor-not-allowed disabled:border-gray-600 aria-[invalid]:border-red-800 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-hidden aria-[invalid]:disabled:outline-hidden`},box:{class:e`pointer-events-none absolute inset-0 flex items-center justify-center text-transparent peer-checked:text-blue-800 peer-disabled:text-gray-600 peer-aria-[invalid]:text-red-800`},icon:{class:e`h-16 w-16 rounded-full bg-current`}},g=e`w-full`,j={root:({props:t})=>{const l=e`flex border-2 border-blue-800 bg-white placeholder:text-gray-800 focus-within:outline-4 focus-within:-outline-offset-4 focus-within:outline-blue-800 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden`,r=e`ris-body2-regular h-48 py-4 pr-4 pl-16`;return{class:{[l]:!0,[r]:!0,[g]:!!t.fluid}}},pcInputText:{root:({props:t})=>({class:{[e`focus-visible:outline-hidden`]:!0,[g]:!!t.fluid}})},dropdown:{class:e`absolute inset-y-0 right-16`},option:{class:e`hover:bg-blue-100 data-[p-focus=true]:bg-blue-200`},optionGroup:{class:e`hover:bg-blue-100 data-[p-focus=true]:bg-blue-200`},overlay:{class:e`w-full overflow-auto bg-white px-8 py-12 shadow-md`}},P={root:({props:t})=>{const l=e`ris-body1-regular [&+small]:ris-label3-regular min-h-56 border-2 border-blue-800 bg-white px-14 pt-8 pb-12 placeholder:text-gray-900 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-hidden [&+small]:mt-2 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,r=e`w-full`;return{class:{[l]:!0,[r]:!!t.fluid}}}},V={root:{class:e`max-w-lg`},message:({props:t})=>{var i;const l=e`mb-8 flex w-full flex-row items-center gap-8 border-l-4 p-16`,r=(i=t.message)==null?void 0:i.severity,o=e`border-l-green-900 bg-green-200`,s=e`border-l-red-900 bg-red-200`,n=e`border-l-yellow-900 bg-yellow-200`,a=e`border-l-blue-900 bg-blue-200`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},messageContent:{class:e`flex w-full flex-row items-start justify-between gap-10`},messageIcon:({props:t})=>{var i;const l=e`mt-2 h-20 w-20 flex-none shrink-0`,r=((i=t.message)==null?void 0:i.severity)??"info",o=e`text-green-800`,s=e`text-red-800`,n=e`text-black`,a=e`text-blue-800`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},messageText:{class:e`flex-grow text-black`},summary:{class:e`ris-label2-bold`},detail:{class:e`ris-label2-regular`},closeButton:({props:t})=>{var i;const l=e`rounded-sm p-2`,r=((i=t.message)==null?void 0:i.severity)??"info",o=e`hover:bg-green-400`,s=e`hover:bg-red-400`,n=e`hover:bg-yellow-400`,a=e`hover:bg-blue-400`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},closeIcon:{class:e`text-black`}},_={root:({props:t,state:l})=>{const r=e`ris-body2-regular [&+small]:ris-label3-regular relative inline-flex h-48 items-center justify-between border-2 bg-white py-4 pr-12 pl-16 [&+small]:mt-2 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,o=e`cursor-pointer border-blue-800`,s=e`has-[:focus]:outline-4 has-[:focus]:-outline-offset-4 has-[:focus]:outline-blue-800`,n=e`hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800`,a=e`cursor-not-allowed border-blue-500 text-blue-500 disabled:outline-hidden`,i=e`border-red-800 bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-hidden aria-[invalid]:disabled:outline-hidden`,u=e`w-full`;return{class:{[r]:!0,[o]:!t.disabled,[s]:l.focused&&!t.disabled,[n]:!t.disabled,[u]:!!t.fluid,[a]:t.disabled,[i]:t.invalid},"aria-invalid":t.invalid?"true":null}},dropdown:{class:e`pl-12`},listContainer:{class:e`overflow-auto shadow-md`},label:{class:e`line-clamp-1 outline-none`},overlay:{class:e`bg-white`},option:({context:t})=>{const l=e`ris-body2-regular relative h-full min-h-48 w-full cursor-pointer px-24 py-16 after:absolute after:right-8 after:-bottom-1 after:left-8 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100`,r=e`bg-gray-100`;return{class:{[l]:!0,[r]:t.focused}}}},G={pcInputText:{root:({props:t})=>({class:{[w]:!0,[x]:!0,"w-full":!!t.fluid}})}},Z={list:{class:e`m-0 flex list-none flex-wrap items-center p-0 leading-none`},item:{class:e`flex-no-wrap ris-label1-regular my-2 flex items-center break-all`},itemLink:{class:e`inline-flex cursor-pointer items-center text-blue-800 hover:underline focus:outline focus:outline-4 focus:outline-offset-4 focus:outline-blue-800`},separator:{class:e`mx-6 flex items-center text-gray-600`}},f=e`cursor-pointer`,p=e`ris-label1-bold border-l-blue-800 bg-blue-200 text-black hover:bg-blue-300 focus-visible:bg-blue-300`,v=e`ris-label1-regular hover:bg-blue-200 focus-visible:bg-blue-200`,m=e`focus-visible:outline-none`,J={root:{class:e`text-blue-800`},header:({context:t})=>({class:{[e`group flex h-64 items-center border-l-4 border-transparent py-8 pr-20 pl-10`]:!0,[m]:!0,[f]:!0,[p]:t.active,[v]:!t.active}}),content:{class:e`mt-8 ml-28`},rootList:{class:e`focus-visible:outline-none`},panel:{class:e`focus-visible:outline-none`},itemContent:({context:t})=>{const l=e`group flex h-48 items-center border-l-4 border-transparent py-8 pr-20 pl-10`,r=e`bg-blue-300`,o=e`bg-blue-200`;return{class:{[l]:!0,[r]:t.active&&t.focused,[o]:!t.active&&t.focused,[m]:!0,[f]:!0,[p]:t.active,[v]:!t.active}}}},H={node:{class:e`mb-24 last:mb-0 focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800 [&>ul:first-of-type]:border-l-0`},nodeContent:({context:t})=>{const l=e`group ris-label2-bold flex w-full border-l-4 border-transparent py-10 pr-20 pl-10 text-blue-800`,r=e`cursor-pointer select-none`,o=e`focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800`,s=e`border-l-blue-800 bg-blue-200 text-black`,n=e`hover:bg-blue-200`,a=e`hover:bg-blue-300`;return{class:{[l]:!0,[r]:!0,[s]:t.selected,[n]:!t.selected,[a]:t.selected,[o]:!0}}},nodeToggleButton:({context:t})=>{const l=e`h-20 w-20 justify-center border-0 bg-transparent text-gray-900 group-hover:text-black hover:text-black`,r=t.leaf?e`hidden`:e`inline-flex`;return{class:{[l]:!0,[r]:t.leaf}}},nodeChildren:()=>{const t=e`m-0 list-none border-l border-gray-600 p-0 pl-36 [&:not(ul)]:pl-0 [&>ul:first-of-type]:border-0`,l=e`focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800`;return{class:{[t]:!0,[l]:!0}}},nodeLabel:({context:t})=>{const l=e`group flex w-full flex-col items-start outline-none *:w-full *:outline-none group-hover:text-black [&>*:first-child]:group-hover:underline [&>*:last-child]:group-hover:no-underline`,r=e`text-black [&>*:last-child:is(span)]:text-gray-900`,o=e`[&>*:last-child]:group-hover:text-black`;return{class:{[l]:!0,[r]:t.selected,[o]:t.selected}}}},K={root:({props:t})=>({class:{[e`flex flex-nowrap rounded-none border-0 bg-transparent`]:!0,[e`flex-col`]:t.layout==="vertical"}}),gutter:({props:t})=>({class:{[e`flex shrink-0 items-center justify-center bg-gray-400 hover:bg-blue-700`]:!0,[e`h-full w-[3px] cursor-col-resize`]:t.layout==="horizontal",[e`h-[3px] w-full cursor-row-resize`]:t.layout==="vertical"}}),gutterHandle:({props:t})=>({class:{[e`z-20 rounded bg-transparent outline-offset-2 outline-blue-800 focus:outline-2`]:!0,[e`h-11/12 w-[3px] cursor-col-resize`]:t.layout==="horizontal",[e`h-[3px] w-11/12 cursor-row-resize`]:t.layout==="vertical"}})},O={root:{class:e`relative`},tableContainer:{class:e`overflow-visible`},table:{class:e`w-full border-none text-left`},thead:{class:e`sticky top-0 bg-white shadow-[0_1px_0_var(--color-blue-300)]`},tbody:{class:e`divide-y divide-blue-300`},bodyRow:({context:t})=>({class:[e`focus:outline-4 focus:-outline-offset-5 focus:outline-blue-800 focus:not-focus-visible:outline-none focus-visible:outline-4 focus-visible:-outline-offset-5 focus-visible:outline-blue-800`,{"bg-blue-300":t.selected,"hover:bg-blue-100":!t.selected}]}),column:{headerCell:{class:e`ris-label2-bold h-56 px-16 py-12`},bodyCell:{class:e`ris-body1-regular h-56 px-16 py-12`},pcHeaderCheckbox:{...h,root:{class:e`relative block h-24 w-24`}},pcRowCheckbox:{...h,root:{class:e`relative block h-24 w-24`}}},mask:{class:e`text-primary-500 justify-content absolute inset-0 z-10 mt-56 flex justify-center py-96`},loadingIcon:{class:e`inline-block h-24 w-24 animate-spin border-solid border-r-transparent text-blue-900 motion-reduce:animate-[spin_1.5s_linear_infinite]`},emptyMessageCell:{class:e`py-96 text-center text-gray-900`}},$={root:({context:t})=>{const l=e`ris-body2-bold h-64 border-b-4 border-b-transparent py-4 pr-24 pl-20 outline-0 -outline-offset-4 outline-blue-800 focus-visible:outline-4`,r=e`z-10 bg-[var(--p-tabs-tab-active-background)] text-black shadow-[-1px_-1px_0_0_var(--p-tabs-tab-border-color),1px_-1px_0_0_var(--p-tabs-tab-border-color)]`,o=e`cursor-pointer text-blue-800 hover:border-b-blue-800`;return{class:{[l]:!0,[r]:t.active,[o]:!t.active}}}},U={root:{class:e`min-h-96 bg-[var(--p-tabs-tabpanel-background)] py-24 outline-blue-800 focus-visible:outline-solid`}},W={tabList:{class:e`relative flex before:absolute before:bottom-0 before:left-[50%] before:h-px before:w-[var(--tab-list-separator-width,100%)] before:-translate-x-1/2 before:bg-[var(--p-tabs-tablist-border-color)]`}},Y={arrow:({context:t})=>{const l=e`absolute h-0 w-0 border-[7px] border-solid`,r=e`-mr-[7px] border-b-0 border-t-gray-900 border-r-transparent border-l-transparent`,o=e`-mt-[7px] border-l-0 border-t-transparent border-r-gray-900 border-b-transparent`,s=e`-ml-[7px] border-t-0 border-r-transparent border-b-gray-900 border-l-transparent`,n=e`-mt-[7px] border-r-0 border-t-transparent border-b-transparent border-l-gray-900`,a=!t.top&&!t.right&&!t.bottom&&!t.left;return{class:{[l]:!0,[r]:t.top,[o]:t.right||a,[s]:t.bottom,[n]:t.left}}},text:{class:e`ris-label3-regular m-[7px] rounded-sm bg-gray-900 px-8 py-4 text-center whitespace-pre-line text-white`},root:{class:e`absolute`}},q={startsWith:"Beginnt mit",contains:"Enthält",notContains:"Enthält nicht",endsWith:"Endet mit",equals:"Gleich",notEquals:"Ungleich",noFilter:"Kein Filter",lt:"Weniger als",lte:"Weniger oder gleich",gt:"Größer als",gte:"Größer oder gleich",dateIs:"Datum ist",dateIsNot:"Datum ist nicht",dateBefore:"Datum ist vor",dateAfter:"Datum ist nach",clear:"Löschen",apply:"Anwenden",matchAll:"Alle erfüllen",matchAny:"Beliebige erfüllen",addRule:"Regel hinzufügen",removeRule:"Regel entfernen",accept:"Ja",reject:"Nein",choose:"Auswählen",upload:"Hochladen",cancel:"Abbrechen",completed:"Abgeschlossen",pending:"Ausstehend",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],chooseYear:"Jahr wählen",chooseMonth:"Monat wählen",chooseDate:"Datum wählen",prevDecade:"Vorheriges Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",prevYear:"Vorheriges Jahr",nextYear:"Nächstes Jahr",prevMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",prevHour:"Vorherige Stunde",nextHour:"Nächste Stunde",prevMinute:"Vorherige Minute",nextMinute:"Nächste Minute",prevSecond:"Vorherige Sekunde",nextSecond:"Nächste Sekunde",am:"vorm.",pm:"nachm.",today:"Heute",weekHeader:"KW",firstDayOfWeek:1,showMonthAfterYear:!1,dateFormat:"dd.mm.yy",weak:"Schwach",medium:"Mittel",strong:"Stark",passwordPrompt:"Passwort eingeben",emptyFilterMessage:"Keine Ergebnisse gefunden",searchMessage:"{0} Ergebnisse verfügbar",selectionMessage:"{0} Elemente ausgewählt",emptySelectionMessage:"Kein Element ausgewählt",emptySearchMessage:"Keine Ergebnisse gefunden",fileChosenMessage:"{0} Dateien",noFileChosenMessage:"Keine Datei ausgewählt",emptyMessage:"Keine Optionen verfügbar",aria:{trueLabel:"Wahr",falseLabel:"Falsch",nullLabel:"Nicht ausgewählt",star:"1 Stern",stars:"{star} Sterne",selectAll:"Alle Elemente ausgewählt",unselectAll:"Alle Elemente abgewählt",close:"Schließen",previous:"Vorherige",next:"Nächste",navigation:"Navigation",scrollTop:"Nach oben scrollen",moveTop:"Nach oben bewegen",moveUp:"Nach oben bewegen",moveDown:"Nach unten bewegen",moveBottom:"Nach unten bewegen",moveToTarget:"Zum Ziel verschieben",moveToSource:"Zur Quelle verschieben",moveAllToTarget:"Alle zum Ziel verschieben",moveAllToSource:"Alle zur Quelle verschieben",pageLabel:"Seite {page}",firstPageLabel:"Erste Seite",lastPageLabel:"Letzte Seite",nextPageLabel:"Nächste Seite",prevPageLabel:"Vorherige Seite",rowsPerPageLabel:"Zeilen pro Seite",jumpToPageDropdownLabel:"Zu Seite springen (Dropdown)",jumpToPageInputLabel:"Zu Seite springen (Eingabe)",selectRow:"Zeile ausgewählt",unselectRow:"Zeile abgewählt",expandRow:"Zeile erweitert",collapseRow:"Zeile reduziert",showFilterMenu:"Filtermenü anzeigen",hideFilterMenu:"Filtermenü ausblenden",filterOperator:"Filteroperator",filterConstraint:"Filterbedingung",editRow:"Zeile bearbeiten",saveEdit:"Bearbeitung speichern",cancelEdit:"Bearbeitung abbrechen",listView:"Listenansicht",gridView:"Gitteransicht",slide:"Folie",slideNumber:"Folie {slideNumber}",zoomImage:"Bild vergrößern",zoomIn:"Vergrößern",zoomOut:"Verkleinern",rotateRight:"Rechts drehen",rotateLeft:"Links drehen",listLabel:"Optionsliste"}},Q={button:k,checkbox:h,confirmDialog:S,dialog:z,fileUpload:M,inputGroup:N,inputGroupAddon:A,inputText:I,menu:T,message:F,password:C,progressSpinner:E,radioButton:R,textarea:P,toast:V,autocomplete:j,select:_,inputMask:G,breadcrumb:Z,tree:H,panelmenu:J,splitter:K,dataTable:O,tab:$,tabPanel:U,tabList:W,directives:{tooltip:Y}},X={deDE:q};exports.RisUiLocale=X;exports.RisUiTheme=Q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=(t,...l)=>String.raw({raw:t},...l),e=y,k={root:({props:t,instance:l})=>{const r=e`relative inline-flex max-w-full cursor-pointer items-center justify-center gap-8 rounded-none text-center focus:outline-4 focus:outline-offset-4 focus:outline-blue-800 focus:not-focus-visible:outline-none focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800 active:outline-none disabled:cursor-not-allowed disabled:outline-hidden`,o=t.severity??"primary",s=e`bg-blue-800 text-white hover:bg-blue-700 active:bg-blue-500 active:text-blue-800 disabled:bg-gray-400 disabled:text-gray-600`,n=e`border-2 border-blue-800 bg-white text-blue-800 hover:bg-gray-200 focus:bg-gray-200 active:border-white active:bg-white disabled:border-blue-500 disabled:text-blue-500 disabled:hover:bg-white`,a=e`border-2 border-red-800 bg-white text-red-800 hover:bg-gray-200 focus:bg-gray-200 focus:outline-red-800 active:border-white active:bg-white disabled:border-red-500 disabled:text-red-500 disabled:hover:bg-white`,d=e`border-2 border-transparent bg-transparent text-blue-800 underline hover:border-gray-500 hover:bg-white focus:border-gray-500 active:border-white active:bg-white disabled:bg-transparent disabled:text-gray-500`,i=t.size??"normal";let b=e`ris-body2-bold h-40 py-4`,u=e`ris-body2-bold h-48 py-4`,c=e`ris-body1-bold h-64 py-4`;return l.hasIcon&&!t.label?(b=e`${b} w-40 px-4`,u=e`${u} w-48 px-4`,c=e`${c} w-64 px-4`):(b=e`${b} px-16`,u=e`${u} px-16`,c=e`${c} px-24`),{class:{[r]:!0,[b]:i==="small",[u]:i==="normal",[c]:i==="large",[s]:!t.text&&o==="primary",[n]:!t.text&&o==="secondary",[a]:!t.text&&o==="danger",[d]:t.text&&o==="primary"}}},label:({props:t})=>({class:{hidden:!t.label}}),icon:({props:t})=>({class:{"order-last":t.iconPos=="right"}}),loadingIcon:({props:t})=>{const l=t.size??"normal",r=e`h-[1.34em] w-[1.34em]`,o=e`h-24 w-24`;return{class:{[e`animate-spin`]:!0,[r]:l==="normal",[o]:l==="large"}}}},h={root:({props:t})=>({class:{[e`[&+label]:ris-label1-regular relative inline-block h-24 min-h-24 w-24 min-w-24 [&+label]:ml-8`]:!0,[e`h-32 min-h-32 w-32 min-w-32`]:t.size==="large"}}),input:{class:e`peer h-full w-full cursor-pointer appearance-none border-2 border-blue-800 bg-white hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 active:outline-hidden disabled:cursor-not-allowed disabled:border-gray-600 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-none aria-[invalid]:disabled:outline-none`},box:{class:e`pointer-events-none absolute inset-0 flex items-center justify-center text-blue-800 peer-disabled:text-gray-600 peer-aria-[invalid]:text-red-800`},icon:{class:e`h-12 w-12`}},S={},z={root:()=>({class:e`ris-label2-regular max-h-[90dvh] w-[95dvw] max-w-[25rem] border-2 border-blue-800 bg-white px-56 py-44 shadow-lg`}),header:{class:e`mb-16 flex`},title:{class:e`ris-label1-bold flex-1`},headerActions:{class:e`flex-none`},pcCloseButton:{root:{class:e`flex h-24 w-24 items-center justify-center p-4 text-blue-800 outline-hidden hover:outline hover:outline-2 hover:outline-gray-500 focus:outline focus:outline-2 focus:outline-gray-500 active:outline-hidden`}},content:{class:e`ris-dialog-content overflow-auto has-[svg:first-child]:flex has-[svg:first-child]:gap-8 [&>svg:first-child]:flex-none`},footer:{class:e`mt-40 flex items-center justify-end gap-12`},mask:{class:e`bg-black/40`}},M={basicContent:{class:e`flex flex-col items-center gap-10`},input:{class:e`hidden`}},N={root:{class:e`has-[input:read-only]:curser-not-allowed inline-flex items-center gap-4 border-2 border-blue-800 bg-white px-16 py-0 has-[:focus]:outline has-[:focus]:outline-4 has-[:focus]:-outline-offset-4 has-[:focus]:outline-blue-800 has-[:hover]:outline has-[:hover]:outline-4 has-[:hover]:-outline-offset-4 has-[:hover]:outline-blue-800 has-[[aria-invalid]]:border-red-800 has-[[aria-invalid]]:bg-red-200 has-[[aria-invalid]]:outline-red-800 has-[[data-size=large]]:px-24 has-[input:disabled]:border-blue-500 has-[input:disabled]:bg-white has-[input:disabled]:text-blue-500 has-[input:disabled]:outline-hidden has-[input:read-only]:border-blue-300 has-[input:read-only]:bg-blue-300`}},A={root:{class:e`m-0 p-0`}},w=e`[&+small]:ris-label3-regular border-2 border-blue-800 bg-white placeholder:text-gray-800 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-hidden [&+small]:mt-4 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,x=e`ris-body2-regular h-48 px-16 py-4`,D=e`ris-body1-regular h-64 px-24 py-4`,L=e`ris-body2-regular h-[44px] p-0`,B=e`ris-body1-regular h-[60px] p-0`,I={root:({props:t,parent:l})=>{const r=e`[&[type=password]]:w-full [&[type=password]:not(:placeholder-shown)]:text-[28px] [&[type=password]:not(:placeholder-shown)]:tracking-[4px]`,o=l.instance.$name==="InputGroup",s=e`bg-transparent placeholder:text-gray-900 focus:outline-hidden`,n=e`w-full`;return{class:{[w]:!o,[s]:o,[n]:!!t.fluid,[r]:!0,[x]:(!t.size||t.size==="small")&&!o,[L]:(!t.size||t.size==="small")&&o,[D]:t.size==="large"&&!o,[B]:t.size==="large"&&o},"data-size":t.size??"small"}}},T={root:{class:e`ris-body2-regular bg-white shadow`},list:{class:e`focus-visible:outline-none`},item:({context:t})=>{const l=e`relative h-48 pr-12 pl-16 after:absolute after:right-16 after:-bottom-1 after:left-16 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100`,r=e`bg-gray-200 hover:bg-gray-200`;return{class:{[l]:!0,[r]:t.focused}}},itemContent:{class:e`flex h-full items-center py-4`},itemLink:{class:e`flex items-center gap-8`}},F={root:({props:t,instance:l})=>{const r=e`ris-body1-regular border-l-4 px-20 py-14`,o=t.severity??"info",s=e`border-l-green-800 bg-green-200`,n=e`border-l-blue-800 bg-blue-200`,a=e`border-l-yellow-800 bg-yellow-200`,d=e`border-l-red-800 bg-red-200`,i=!!l.$slots.icon,u={success:"var(--ris-icon-success)",info:"var(--ris-icon-info)",warn:"var(--ris-icon-warn)",error:"var(--ris-icon-error)"}[o],c=e`bg-[length:20px] bg-[16px_18px] bg-no-repeat pl-44`;return{class:{[r]:!0,[s]:o==="success",[n]:o==="info",[a]:o==="warn",[d]:o==="error",[c]:!i},style:{backgroundImage:i?void 0:u}}},content:{class:e`flex items-start gap-8`},text:{class:e`flex-1`},closeButton:({props:t})=>{const l=e`mt-4 inline-flex h-20 w-20 flex-none items-center justify-center rounded-sm p-2 leading-none`,r=t.severity??"info",o=e`text-green-800 hover:bg-green-400 active:bg-green-500`,s=e`text-blue-800 hover:bg-blue-400 active:bg-blue-500`,n=e`text-black hover:bg-yellow-400 active:bg-yellow-500`,a=e`text-red-800 hover:bg-red-400 active:bg-red-500`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="info",[n]:r==="warn",[a]:r==="error"}}}},C={},E={root:{class:e`mx-auto inline-block h-28 w-28 animate-spin`},circle:{class:e`fill-transparent stroke-current stroke-[4px] text-blue-800 [stroke-dasharray:200] [stroke-dashoffset:100]`}},R={root:{class:e`[&+label]:ris-label1-regular relative inline-block h-32 w-32 [&+label]:ml-8`},input:{class:e`peer h-full w-full cursor-pointer appearance-none rounded-full border-2 border-blue-800 bg-white hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 active:outline-hidden disabled:cursor-not-allowed disabled:border-gray-600 aria-[invalid]:border-red-800 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-hidden aria-[invalid]:disabled:outline-hidden`},box:{class:e`pointer-events-none absolute inset-0 flex items-center justify-center text-transparent peer-checked:text-blue-800 peer-disabled:text-gray-600 peer-aria-[invalid]:text-red-800`},icon:{class:e`h-16 w-16 rounded-full bg-current`}},g=e`w-full`,j={root:({props:t})=>{const l=e`flex border-2 border-blue-800 bg-white placeholder:text-gray-800 focus-within:outline-4 focus-within:-outline-offset-4 focus-within:outline-blue-800 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden`,r=e`ris-body2-regular h-48 py-4 pr-4 pl-16`;return{class:{[l]:!0,[r]:!0,[g]:!!t.fluid}}},pcInputText:{root:({props:t})=>({class:{[e`focus-visible:outline-hidden`]:!0,[g]:!!t.fluid}})},dropdown:{class:e`absolute inset-y-0 right-16`},option:{class:e`hover:bg-blue-100 data-[p-focus=true]:bg-blue-200`},optionGroup:{class:e`hover:bg-blue-100 data-[p-focus=true]:bg-blue-200`},overlay:{class:e`w-full overflow-auto bg-white px-8 py-12 shadow-md`}},P={root:({props:t})=>{const l=e`ris-body1-regular [&+small]:ris-label3-regular min-h-56 border-2 border-blue-800 bg-white px-14 pt-8 pb-12 placeholder:text-gray-900 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800 focus:outline focus:outline-4 focus:-outline-offset-4 focus:outline-blue-800 disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-hidden aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-hidden [&+small]:mt-2 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,r=e`w-full`;return{class:{[l]:!0,[r]:!!t.fluid}}}},V={root:{class:e`max-w-lg`},message:({props:t})=>{const l=e`mb-8 flex w-full flex-row items-center gap-8 border-l-4 p-16`,r=t.message?.severity,o=e`border-l-green-900 bg-green-200`,s=e`border-l-red-900 bg-red-200`,n=e`border-l-yellow-900 bg-yellow-200`,a=e`border-l-blue-900 bg-blue-200`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},messageContent:{class:e`flex w-full flex-row items-start justify-between gap-10`},messageIcon:({props:t})=>{const l=e`mt-2 h-20 w-20 flex-none shrink-0`,r=t.message?.severity??"info",o=e`text-green-800`,s=e`text-red-800`,n=e`text-black`,a=e`text-blue-800`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},messageText:{class:e`flex-grow text-black`},summary:{class:e`ris-label2-bold`},detail:{class:e`ris-label2-regular`},closeButton:({props:t})=>{const l=e`rounded-sm p-2`,r=t.message?.severity??"info",o=e`hover:bg-green-400`,s=e`hover:bg-red-400`,n=e`hover:bg-yellow-400`,a=e`hover:bg-blue-400`;return{class:{[l]:!0,[o]:r==="success",[s]:r==="error",[n]:r==="warn",[a]:r==="info"}}},closeIcon:{class:e`text-black`}},_={root:({props:t,state:l})=>{const r=e`ris-body2-regular [&+small]:ris-label3-regular relative inline-flex h-48 items-center justify-between border-2 bg-white py-4 pr-12 pl-16 [&+small]:mt-2 [&+small]:flex [&+small]:items-center [&+small]:gap-4 [&+small]:text-gray-900 [&[aria-invalid="true"]+small]:text-red-900`,o=e`cursor-pointer border-blue-800`,s=e`has-[:focus]:outline-4 has-[:focus]:-outline-offset-4 has-[:focus]:outline-blue-800`,n=e`hover:outline-4 hover:-outline-offset-4 hover:outline-blue-800`,a=e`cursor-not-allowed border-blue-500 text-blue-500 disabled:outline-hidden`,d=e`border-red-800 bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:active:outline-hidden aria-[invalid]:disabled:outline-hidden`,i=e`w-full`;return{class:{[r]:!0,[o]:!t.disabled,[s]:l.focused&&!t.disabled,[n]:!t.disabled,[i]:!!t.fluid,[a]:t.disabled,[d]:t.invalid},"aria-invalid":t.invalid?"true":null}},dropdown:{class:e`pl-12`},listContainer:{class:e`overflow-auto shadow-md`},label:{class:e`line-clamp-1 outline-none`},overlay:{class:e`bg-white`},option:({context:t})=>{const l=e`ris-body2-regular relative h-full min-h-48 w-full cursor-pointer px-24 py-16 after:absolute after:right-8 after:-bottom-1 after:left-8 after:border-b after:border-gray-300 after:content-[''] last:after:border-b-0 hover:bg-gray-100`,r=e`bg-gray-100`;return{class:{[l]:!0,[r]:t.focused}}}},G={pcInputText:{root:({props:t})=>({class:{[w]:!0,[x]:!0,"w-full":!!t.fluid}})}},Z={list:{class:e`m-0 flex list-none flex-wrap items-center p-0 leading-none`},item:{class:e`flex-no-wrap ris-label1-regular my-2 flex items-center break-all`},itemLink:{class:e`inline-flex cursor-pointer items-center text-blue-800 hover:underline focus:outline focus:outline-4 focus:outline-offset-4 focus:outline-blue-800`},separator:{class:e`mx-6 flex items-center text-gray-600`}},f=e`cursor-pointer`,p=e`ris-label1-bold border-l-blue-800 bg-blue-200 text-black hover:bg-blue-300 focus-visible:bg-blue-300`,v=e`ris-label1-regular hover:bg-blue-200 focus-visible:bg-blue-200`,m=e`focus-visible:outline-none`,J={root:{class:e`text-blue-800`},header:({context:t})=>({class:{[e`group flex h-64 items-center border-l-4 border-transparent py-8 pr-20 pl-10`]:!0,[m]:!0,[f]:!0,[p]:t.active,[v]:!t.active}}),content:{class:e`mt-8 ml-28`},rootList:{class:e`focus-visible:outline-none`},panel:{class:e`focus-visible:outline-none`},itemContent:({context:t})=>{const l=e`group flex h-48 items-center border-l-4 border-transparent py-8 pr-20 pl-10`,r=e`bg-blue-300`,o=e`bg-blue-200`;return{class:{[l]:!0,[r]:t.active&&t.focused,[o]:!t.active&&t.focused,[m]:!0,[f]:!0,[p]:t.active,[v]:!t.active}}}},H={node:{class:e`mb-24 last:mb-0 focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800 [&>ul:first-of-type]:border-l-0`},nodeContent:({context:t})=>{const l=e`group ris-label2-bold flex w-full border-l-4 border-transparent py-10 pr-20 pl-10 text-blue-800`,r=e`cursor-pointer select-none`,o=e`focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800`,s=e`border-l-blue-800 bg-blue-200 text-black`,n=e`hover:bg-blue-200`,a=e`hover:bg-blue-300`;return{class:{[l]:!0,[r]:!0,[s]:t.selected,[n]:!t.selected,[a]:t.selected,[o]:!0}}},nodeToggleButton:({context:t})=>{const l=e`h-20 w-20 justify-center border-0 bg-transparent text-gray-900 group-hover:text-black hover:text-black`,r=t.leaf?e`hidden`:e`inline-flex`;return{class:{[l]:!0,[r]:t.leaf}}},nodeChildren:()=>{const t=e`m-0 list-none border-l border-gray-600 p-0 pl-36 [&:not(ul)]:pl-0 [&>ul:first-of-type]:border-0`,l=e`focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800`;return{class:{[t]:!0,[l]:!0}}},nodeLabel:({context:t})=>{const l=e`group flex w-full flex-col items-start outline-none *:w-full *:outline-none group-hover:text-black [&>*:first-child]:group-hover:underline [&>*:last-child]:group-hover:no-underline`,r=e`text-black [&>*:last-child:is(span)]:text-gray-900`,o=e`[&>*:last-child]:group-hover:text-black`;return{class:{[l]:!0,[r]:t.selected,[o]:t.selected}}}},K={root:({props:t})=>({class:{[e`flex flex-nowrap rounded-none border-0 bg-transparent`]:!0,[e`flex-col`]:t.layout==="vertical"}}),gutter:({props:t})=>({class:{[e`flex shrink-0 items-center justify-center bg-gray-400 hover:bg-blue-700`]:!0,[e`h-full w-[3px] cursor-col-resize`]:t.layout==="horizontal",[e`h-[3px] w-full cursor-row-resize`]:t.layout==="vertical"}}),gutterHandle:({props:t})=>({class:{[e`z-20 rounded bg-transparent outline-offset-2 outline-blue-800 focus:outline-2`]:!0,[e`h-11/12 w-[3px] cursor-col-resize`]:t.layout==="horizontal",[e`h-[3px] w-11/12 cursor-row-resize`]:t.layout==="vertical"}})},O={root:{class:e`relative`},tableContainer:{class:e`overflow-visible`},table:{class:e`w-full border-none text-left`},thead:{class:e`sticky top-0 bg-white shadow-[0_1px_0_var(--color-blue-300)]`},tbody:{class:e`divide-y divide-blue-300`},bodyRow:({context:t})=>({class:[e`focus:outline-4 focus:-outline-offset-5 focus:outline-blue-800 focus:not-focus-visible:outline-none focus-visible:outline-4 focus-visible:-outline-offset-5 focus-visible:outline-blue-800`,{"bg-blue-300":t.selected,"hover:bg-blue-100":!t.selected}]}),column:{headerCell:{class:e`ris-label2-bold h-56 px-16 py-12`},bodyCell:{class:e`ris-body1-regular h-56 px-16 py-12`},pcHeaderCheckbox:{...h,root:{class:e`relative block h-24 w-24`}},pcRowCheckbox:{...h,root:{class:e`relative block h-24 w-24`}}},mask:{class:e`text-primary-500 justify-content absolute inset-0 z-10 mt-56 flex justify-center py-96`},loadingIcon:{class:e`inline-block h-24 w-24 animate-spin border-solid border-r-transparent text-blue-900 motion-reduce:animate-[spin_1.5s_linear_infinite]`},emptyMessageCell:{class:e`py-96 text-center text-gray-900`}},$={root:({context:t})=>{const l=e`ris-body2-bold h-64 border-b-4 border-b-transparent py-4 pr-24 pl-20 outline-0 -outline-offset-4 outline-blue-800 focus-visible:outline-4`,r=e`z-10 bg-[var(--p-tabs-tab-active-background)] text-black shadow-[-1px_-1px_0_0_var(--p-tabs-tab-border-color),1px_-1px_0_0_var(--p-tabs-tab-border-color)]`,o=e`cursor-pointer text-blue-800 hover:border-b-blue-800`;return{class:{[l]:!0,[r]:t.active,[o]:!t.active}}}},U={root:{class:e`min-h-96 bg-[var(--p-tabs-tabpanel-background)] py-24 outline-blue-800 focus-visible:outline-solid`}},W={tabList:{class:e`relative flex before:absolute before:bottom-0 before:left-[50%] before:h-px before:w-[var(--tab-list-separator-width,100%)] before:-translate-x-1/2 before:bg-[var(--p-tabs-tablist-border-color)]`}},Y={arrow:({context:t})=>{const l=e`absolute h-0 w-0 border-[7px] border-solid`,r=e`-mr-[7px] border-b-0 border-t-gray-900 border-r-transparent border-l-transparent`,o=e`-mt-[7px] border-l-0 border-t-transparent border-r-gray-900 border-b-transparent`,s=e`-ml-[7px] border-t-0 border-r-transparent border-b-gray-900 border-l-transparent`,n=e`-mt-[7px] border-r-0 border-t-transparent border-b-transparent border-l-gray-900`,a=!t.top&&!t.right&&!t.bottom&&!t.left;return{class:{[l]:!0,[r]:t.top,[o]:t.right||a,[s]:t.bottom,[n]:t.left}}},text:{class:e`ris-label3-regular m-[7px] rounded-sm bg-gray-900 px-8 py-4 text-center whitespace-pre-line text-white`},root:{class:e`absolute`}},q={startsWith:"Beginnt mit",contains:"Enthält",notContains:"Enthält nicht",endsWith:"Endet mit",equals:"Gleich",notEquals:"Ungleich",noFilter:"Kein Filter",lt:"Weniger als",lte:"Weniger oder gleich",gt:"Größer als",gte:"Größer oder gleich",dateIs:"Datum ist",dateIsNot:"Datum ist nicht",dateBefore:"Datum ist vor",dateAfter:"Datum ist nach",clear:"Löschen",apply:"Anwenden",matchAll:"Alle erfüllen",matchAny:"Beliebige erfüllen",addRule:"Regel hinzufügen",removeRule:"Regel entfernen",accept:"Ja",reject:"Nein",choose:"Auswählen",upload:"Hochladen",cancel:"Abbrechen",completed:"Abgeschlossen",pending:"Ausstehend",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],chooseYear:"Jahr wählen",chooseMonth:"Monat wählen",chooseDate:"Datum wählen",prevDecade:"Vorheriges Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",prevYear:"Vorheriges Jahr",nextYear:"Nächstes Jahr",prevMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",prevHour:"Vorherige Stunde",nextHour:"Nächste Stunde",prevMinute:"Vorherige Minute",nextMinute:"Nächste Minute",prevSecond:"Vorherige Sekunde",nextSecond:"Nächste Sekunde",am:"vorm.",pm:"nachm.",today:"Heute",weekHeader:"KW",firstDayOfWeek:1,showMonthAfterYear:!1,dateFormat:"dd.mm.yy",weak:"Schwach",medium:"Mittel",strong:"Stark",passwordPrompt:"Passwort eingeben",emptyFilterMessage:"Keine Ergebnisse gefunden",searchMessage:"{0} Ergebnisse verfügbar",selectionMessage:"{0} Elemente ausgewählt",emptySelectionMessage:"Kein Element ausgewählt",emptySearchMessage:"Keine Ergebnisse gefunden",fileChosenMessage:"{0} Dateien",noFileChosenMessage:"Keine Datei ausgewählt",emptyMessage:"Keine Optionen verfügbar",aria:{trueLabel:"Wahr",falseLabel:"Falsch",nullLabel:"Nicht ausgewählt",star:"1 Stern",stars:"{star} Sterne",selectAll:"Alle Elemente ausgewählt",unselectAll:"Alle Elemente abgewählt",close:"Schließen",previous:"Vorherige",next:"Nächste",navigation:"Navigation",scrollTop:"Nach oben scrollen",moveTop:"Nach oben bewegen",moveUp:"Nach oben bewegen",moveDown:"Nach unten bewegen",moveBottom:"Nach unten bewegen",moveToTarget:"Zum Ziel verschieben",moveToSource:"Zur Quelle verschieben",moveAllToTarget:"Alle zum Ziel verschieben",moveAllToSource:"Alle zur Quelle verschieben",pageLabel:"Seite {page}",firstPageLabel:"Erste Seite",lastPageLabel:"Letzte Seite",nextPageLabel:"Nächste Seite",prevPageLabel:"Vorherige Seite",rowsPerPageLabel:"Zeilen pro Seite",jumpToPageDropdownLabel:"Zu Seite springen (Dropdown)",jumpToPageInputLabel:"Zu Seite springen (Eingabe)",selectRow:"Zeile ausgewählt",unselectRow:"Zeile abgewählt",expandRow:"Zeile erweitert",collapseRow:"Zeile reduziert",showFilterMenu:"Filtermenü anzeigen",hideFilterMenu:"Filtermenü ausblenden",filterOperator:"Filteroperator",filterConstraint:"Filterbedingung",editRow:"Zeile bearbeiten",saveEdit:"Bearbeitung speichern",cancelEdit:"Bearbeitung abbrechen",listView:"Listenansicht",gridView:"Gitteransicht",slide:"Folie",slideNumber:"Folie {slideNumber}",zoomImage:"Bild vergrößern",zoomIn:"Vergrößern",zoomOut:"Verkleinern",rotateRight:"Rechts drehen",rotateLeft:"Links drehen",listLabel:"Optionsliste"}},Q={button:k,checkbox:h,confirmDialog:S,dialog:z,fileUpload:M,inputGroup:N,inputGroupAddon:A,inputText:I,menu:T,message:F,password:C,progressSpinner:E,radioButton:R,textarea:P,toast:V,autocomplete:j,select:_,inputMask:G,breadcrumb:Z,tree:H,panelmenu:J,splitter:K,dataTable:O,tab:$,tabPanel:U,tabList:W,directives:{tooltip:Y}},X={deDE:q};exports.RisUiLocale=X;exports.RisUiTheme=Q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|