@digitalservicebund/ris-ui 1.0.1 → 1.2.0
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/README.md +77 -4
- package/dist/components/RisAutoComplete/RisAutoComplete.vue.d.ts +20 -0
- package/dist/components/RisAutoComplete/index.d.ts +2 -0
- package/dist/components/RisSingleAccordion/RisSingleAccordion.vue.d.ts +23 -0
- package/dist/components/RisSingleAccordion/index.d.ts +2 -0
- package/dist/components/index.cjs +758 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +5844 -0
- package/dist/config/locale.d.ts +2 -0
- package/dist/mockServiceWorker.js +284 -0
- package/dist/primevue/autocomplete/autocomplete.d.ts +3 -0
- package/dist/primevue/checkbox/checkbox.d.ts +3 -0
- package/dist/primevue/confirmDialog/confirmDialog.d.ts +3 -0
- package/dist/primevue/dialog/dialog.d.ts +4 -0
- package/dist/primevue/fileUpload/fileUpload.d.ts +3 -0
- package/dist/primevue/index.cjs +1 -1
- package/dist/primevue/index.d.ts +14 -1
- package/dist/primevue/index.js +424 -48
- package/dist/primevue/inputText/inputText.d.ts +5 -0
- package/dist/primevue/message/message.d.ts +3 -0
- package/dist/primevue/progressSpinner/progressSpinner.d.ts +3 -0
- package/dist/primevue/radioButton/radioButton.d.ts +3 -0
- package/dist/primevue/textarea/textarea.d.ts +4 -0
- package/dist/primevue/toast/toast.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +22 -3
@@ -0,0 +1,284 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
/* tslint:disable */
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Mock Service Worker.
|
6
|
+
* @see https://github.com/mswjs/msw
|
7
|
+
* - Please do NOT modify this file.
|
8
|
+
* - Please do NOT serve this file on production.
|
9
|
+
*/
|
10
|
+
|
11
|
+
const PACKAGE_VERSION = '2.4.5'
|
12
|
+
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
|
13
|
+
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
14
|
+
const activeClientIds = new Set()
|
15
|
+
|
16
|
+
self.addEventListener('install', function () {
|
17
|
+
self.skipWaiting()
|
18
|
+
})
|
19
|
+
|
20
|
+
self.addEventListener('activate', function (event) {
|
21
|
+
event.waitUntil(self.clients.claim())
|
22
|
+
})
|
23
|
+
|
24
|
+
self.addEventListener('message', async function (event) {
|
25
|
+
const clientId = event.source.id
|
26
|
+
|
27
|
+
if (!clientId || !self.clients) {
|
28
|
+
return
|
29
|
+
}
|
30
|
+
|
31
|
+
const client = await self.clients.get(clientId)
|
32
|
+
|
33
|
+
if (!client) {
|
34
|
+
return
|
35
|
+
}
|
36
|
+
|
37
|
+
const allClients = await self.clients.matchAll({
|
38
|
+
type: 'window',
|
39
|
+
})
|
40
|
+
|
41
|
+
switch (event.data) {
|
42
|
+
case 'KEEPALIVE_REQUEST': {
|
43
|
+
sendToClient(client, {
|
44
|
+
type: 'KEEPALIVE_RESPONSE',
|
45
|
+
})
|
46
|
+
break
|
47
|
+
}
|
48
|
+
|
49
|
+
case 'INTEGRITY_CHECK_REQUEST': {
|
50
|
+
sendToClient(client, {
|
51
|
+
type: 'INTEGRITY_CHECK_RESPONSE',
|
52
|
+
payload: {
|
53
|
+
packageVersion: PACKAGE_VERSION,
|
54
|
+
checksum: INTEGRITY_CHECKSUM,
|
55
|
+
},
|
56
|
+
})
|
57
|
+
break
|
58
|
+
}
|
59
|
+
|
60
|
+
case 'MOCK_ACTIVATE': {
|
61
|
+
activeClientIds.add(clientId)
|
62
|
+
|
63
|
+
sendToClient(client, {
|
64
|
+
type: 'MOCKING_ENABLED',
|
65
|
+
payload: true,
|
66
|
+
})
|
67
|
+
break
|
68
|
+
}
|
69
|
+
|
70
|
+
case 'MOCK_DEACTIVATE': {
|
71
|
+
activeClientIds.delete(clientId)
|
72
|
+
break
|
73
|
+
}
|
74
|
+
|
75
|
+
case 'CLIENT_CLOSED': {
|
76
|
+
activeClientIds.delete(clientId)
|
77
|
+
|
78
|
+
const remainingClients = allClients.filter((client) => {
|
79
|
+
return client.id !== clientId
|
80
|
+
})
|
81
|
+
|
82
|
+
// Unregister itself when there are no more clients
|
83
|
+
if (remainingClients.length === 0) {
|
84
|
+
self.registration.unregister()
|
85
|
+
}
|
86
|
+
|
87
|
+
break
|
88
|
+
}
|
89
|
+
}
|
90
|
+
})
|
91
|
+
|
92
|
+
self.addEventListener('fetch', function (event) {
|
93
|
+
const { request } = event
|
94
|
+
|
95
|
+
// Bypass navigation requests.
|
96
|
+
if (request.mode === 'navigate') {
|
97
|
+
return
|
98
|
+
}
|
99
|
+
|
100
|
+
// Opening the DevTools triggers the "only-if-cached" request
|
101
|
+
// that cannot be handled by the worker. Bypass such requests.
|
102
|
+
if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
|
103
|
+
return
|
104
|
+
}
|
105
|
+
|
106
|
+
// Bypass all requests when there are no active clients.
|
107
|
+
// Prevents the self-unregistered worked from handling requests
|
108
|
+
// after it's been deleted (still remains active until the next reload).
|
109
|
+
if (activeClientIds.size === 0) {
|
110
|
+
return
|
111
|
+
}
|
112
|
+
|
113
|
+
// Generate unique request ID.
|
114
|
+
const requestId = crypto.randomUUID()
|
115
|
+
event.respondWith(handleRequest(event, requestId))
|
116
|
+
})
|
117
|
+
|
118
|
+
async function handleRequest(event, requestId) {
|
119
|
+
const client = await resolveMainClient(event)
|
120
|
+
const response = await getResponse(event, client, requestId)
|
121
|
+
|
122
|
+
// Send back the response clone for the "response:*" life-cycle events.
|
123
|
+
// Ensure MSW is active and ready to handle the message, otherwise
|
124
|
+
// this message will pend indefinitely.
|
125
|
+
if (client && activeClientIds.has(client.id)) {
|
126
|
+
;(async function () {
|
127
|
+
const responseClone = response.clone()
|
128
|
+
|
129
|
+
sendToClient(
|
130
|
+
client,
|
131
|
+
{
|
132
|
+
type: 'RESPONSE',
|
133
|
+
payload: {
|
134
|
+
requestId,
|
135
|
+
isMockedResponse: IS_MOCKED_RESPONSE in response,
|
136
|
+
type: responseClone.type,
|
137
|
+
status: responseClone.status,
|
138
|
+
statusText: responseClone.statusText,
|
139
|
+
body: responseClone.body,
|
140
|
+
headers: Object.fromEntries(responseClone.headers.entries()),
|
141
|
+
},
|
142
|
+
},
|
143
|
+
[responseClone.body],
|
144
|
+
)
|
145
|
+
})()
|
146
|
+
}
|
147
|
+
|
148
|
+
return response
|
149
|
+
}
|
150
|
+
|
151
|
+
// Resolve the main client for the given event.
|
152
|
+
// Client that issues a request doesn't necessarily equal the client
|
153
|
+
// that registered the worker. It's with the latter the worker should
|
154
|
+
// communicate with during the response resolving phase.
|
155
|
+
async function resolveMainClient(event) {
|
156
|
+
const client = await self.clients.get(event.clientId)
|
157
|
+
|
158
|
+
if (client?.frameType === 'top-level') {
|
159
|
+
return client
|
160
|
+
}
|
161
|
+
|
162
|
+
const allClients = await self.clients.matchAll({
|
163
|
+
type: 'window',
|
164
|
+
})
|
165
|
+
|
166
|
+
return allClients
|
167
|
+
.filter((client) => {
|
168
|
+
// Get only those clients that are currently visible.
|
169
|
+
return client.visibilityState === 'visible'
|
170
|
+
})
|
171
|
+
.find((client) => {
|
172
|
+
// Find the client ID that's recorded in the
|
173
|
+
// set of clients that have registered the worker.
|
174
|
+
return activeClientIds.has(client.id)
|
175
|
+
})
|
176
|
+
}
|
177
|
+
|
178
|
+
async function getResponse(event, client, requestId) {
|
179
|
+
const { request } = event
|
180
|
+
|
181
|
+
// Clone the request because it might've been already used
|
182
|
+
// (i.e. its body has been read and sent to the client).
|
183
|
+
const requestClone = request.clone()
|
184
|
+
|
185
|
+
function passthrough() {
|
186
|
+
const headers = Object.fromEntries(requestClone.headers.entries())
|
187
|
+
|
188
|
+
// Remove internal MSW request header so the passthrough request
|
189
|
+
// complies with any potential CORS preflight checks on the server.
|
190
|
+
// Some servers forbid unknown request headers.
|
191
|
+
delete headers['x-msw-intention']
|
192
|
+
|
193
|
+
return fetch(requestClone, { headers })
|
194
|
+
}
|
195
|
+
|
196
|
+
// Bypass mocking when the client is not active.
|
197
|
+
if (!client) {
|
198
|
+
return passthrough()
|
199
|
+
}
|
200
|
+
|
201
|
+
// Bypass initial page load requests (i.e. static assets).
|
202
|
+
// The absence of the immediate/parent client in the map of the active clients
|
203
|
+
// means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
|
204
|
+
// and is not ready to handle requests.
|
205
|
+
if (!activeClientIds.has(client.id)) {
|
206
|
+
return passthrough()
|
207
|
+
}
|
208
|
+
|
209
|
+
// Notify the client that a request has been intercepted.
|
210
|
+
const requestBuffer = await request.arrayBuffer()
|
211
|
+
const clientMessage = await sendToClient(
|
212
|
+
client,
|
213
|
+
{
|
214
|
+
type: 'REQUEST',
|
215
|
+
payload: {
|
216
|
+
id: requestId,
|
217
|
+
url: request.url,
|
218
|
+
mode: request.mode,
|
219
|
+
method: request.method,
|
220
|
+
headers: Object.fromEntries(request.headers.entries()),
|
221
|
+
cache: request.cache,
|
222
|
+
credentials: request.credentials,
|
223
|
+
destination: request.destination,
|
224
|
+
integrity: request.integrity,
|
225
|
+
redirect: request.redirect,
|
226
|
+
referrer: request.referrer,
|
227
|
+
referrerPolicy: request.referrerPolicy,
|
228
|
+
body: requestBuffer,
|
229
|
+
keepalive: request.keepalive,
|
230
|
+
},
|
231
|
+
},
|
232
|
+
[requestBuffer],
|
233
|
+
)
|
234
|
+
|
235
|
+
switch (clientMessage.type) {
|
236
|
+
case 'MOCK_RESPONSE': {
|
237
|
+
return respondWithMock(clientMessage.data)
|
238
|
+
}
|
239
|
+
|
240
|
+
case 'PASSTHROUGH': {
|
241
|
+
return passthrough()
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
return passthrough()
|
246
|
+
}
|
247
|
+
|
248
|
+
function sendToClient(client, message, transferrables = []) {
|
249
|
+
return new Promise((resolve, reject) => {
|
250
|
+
const channel = new MessageChannel()
|
251
|
+
|
252
|
+
channel.port1.onmessage = (event) => {
|
253
|
+
if (event.data && event.data.error) {
|
254
|
+
return reject(event.data.error)
|
255
|
+
}
|
256
|
+
|
257
|
+
resolve(event.data)
|
258
|
+
}
|
259
|
+
|
260
|
+
client.postMessage(
|
261
|
+
message,
|
262
|
+
[channel.port2].concat(transferrables.filter(Boolean)),
|
263
|
+
)
|
264
|
+
})
|
265
|
+
}
|
266
|
+
|
267
|
+
async function respondWithMock(response) {
|
268
|
+
// Setting response status code to 0 is a no-op.
|
269
|
+
// However, when responding with a "Response.error()", the produced Response
|
270
|
+
// instance will have status code set to 0. Since it's not possible to create
|
271
|
+
// a Response instance with status code 0, handle that use-case separately.
|
272
|
+
if (response.status === 0) {
|
273
|
+
return Response.error()
|
274
|
+
}
|
275
|
+
|
276
|
+
const mockedResponse = new Response(response.body, response)
|
277
|
+
|
278
|
+
Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, {
|
279
|
+
value: true,
|
280
|
+
enumerable: true,
|
281
|
+
})
|
282
|
+
|
283
|
+
return mockedResponse
|
284
|
+
}
|
package/dist/primevue/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(e,...n)=>{let o=e[0];for(let a=1,i=e.length;a<i;a++)o+=n[a-1],o+=e[a];return o},t=c,h={root:({props:e,instance:n})=>{const o=t`relative inline-flex max-w-full items-center justify-center gap-8 rounded-none text-center outline-4 outline-offset-4 outline-blue-800 focus:outline active:outline-none disabled:cursor-not-allowed disabled:outline-none`,a=e.severity??"primary",i=t`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`,b=t`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`,u=t`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`,s=e.size??"small";let l=t`ris-body2-bold h-48 py-4`,r=t`ris-body1-bold h-64 py-4`;const d=e.iconPos??"left";return n.hasIcon&&e.label?d==="left"?(l=t`${l} pl-8 pr-16`,r=t`${r} pl-20 pr-24`):d==="right"&&(l=t`${l} pl-16 pr-8`,r=t`${r} pl-24 pr-20`):n.hasIcon&&!e.label?(l=t`${l} w-48 px-4`,r=t`${r} w-64 px-4`):(l=t`${l} px-16`,r=t`${r} px-24`),{class:{[o]:!0,[l]:s==="small",[r]:s==="large",[i]:!e.text&&a==="primary",[b]:!e.text&&a==="secondary",[u]:e.text&&a==="primary"}}},label:({props:e})=>({class:{hidden:!e.label,[t`-order-1`]:e.iconPos==="right"}}),loadingIcon:({props:e})=>({class:{[t`animate-spin`]:!0,[t`h-24 w-24`]:e.size==="large",[t`h-[1.34em] w-[1.34em]`]:!e.size||e.size==="small"}})},g={root:{class:t`has-[input:read-only]:curser-not-allowed inline-flex items-center gap-4 border-2 border-blue-800 bg-white px-16 py-0 outline-4 -outline-offset-4 outline-blue-800 has-[[aria-invalid]]:border-red-800 has-[input:disabled]:border-blue-500 has-[input:read-only]:border-blue-300 has-[[aria-invalid]]:bg-red-200 has-[input:disabled]:bg-white has-[input:read-only]:bg-blue-300 has-[[data-size=large]]:px-24 has-[input:disabled]:text-blue-500 has-[input:disabled]:outline-none has-[:focus]:outline has-[:hover]:outline has-[[aria-invalid]]:outline-red-800`}},y={root:{class:t`m-0 p-0`}},p={root:({props:e,parent:n})=>{const o=t`border-2 border-blue-800 bg-white outline-4 -outline-offset-4 outline-blue-800 placeholder:text-gray-900 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline focus:outline disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-none aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-none`,a=t`[&[type=password]:not(:placeholder-shown)]:text-[28px] [&[type=password]:not(:placeholder-shown)]:tracking-[4px] [&[type=password]]:w-full`,i=n.instance.$name==="InputGroup",b=t`bg-transparent placeholder:text-gray-900 focus:outline-none`,u=t`w-full`,s=t`ris-body2-regular h-48 px-16 py-4`,l=t`ris-body1-regular h-64 px-24 py-4`,r=t`ris-body2-regular h-[44px] p-0`,d=t`ris-body1-regular h-[60px] p-0`;return{class:{[o]:!i,[b]:i,[u]:!!e.fluid,[a]:!0,[s]:(!e.size||e.size==="small")&&!i,[r]:(!e.size||e.size==="small")&&i,[l]:e.size==="large"&&!i,[d]:e.size==="large"&&i},"data-size":e.size??"small"}}},x={},w={button:h,inputText:p,inputGroup:g,inputGroupAddon:y,password:x};exports.RisUiTheme=w;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=(t,...o)=>{let r=t[0];for(let n=1,l=t.length;n<l;n++)r+=o[n-1],r+=t[n];return r},e=m,f={root:({props:t,instance:o})=>{const r=e`relative inline-flex max-w-full items-center justify-center gap-8 rounded-none text-center outline-4 outline-offset-4 outline-blue-800 focus:outline active:outline-none disabled:cursor-not-allowed disabled:outline-none`,n=t.severity??"primary",l=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`,s=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`,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`,a=t.size??"normal";let c=e`ris-body2-bold h-48 py-4`,u=e`ris-body1-bold h-64 py-4`;return o.hasIcon&&!t.label?(c=e`${c} w-48 px-4`,u=e`${u} w-64 px-4`):(c=e`${c} px-16`,u=e`${u} px-24`),{class:{[r]:!0,[c]:a==="normal",[u]:a==="large",[l]:!t.text&&n==="primary",[s]:!t.text&&n==="secondary",[i]:t.text&&n==="primary"}}},label:({props:t})=>({class:{hidden:!t.label,[e`-order-1`]:t.iconPos==="right"}}),loadingIcon:({props:t})=>{const o=t.size??"normal",r=e`h-[1.34em] w-[1.34em]`,n=e`h-24 w-24`;return{class:{[e`animate-spin`]:!0,[r]:o==="normal",[n]:o==="large"}}}},v={root:{class:e`relative inline-block h-24 min-h-24 w-24 min-w-24 [&+label]:ris-label1-regular [&+label]:ml-8`},input:{class:e`peer h-full w-full cursor-pointer appearance-none border-2 border-blue-800 bg-white outline-4 -outline-offset-4 outline-blue-800 hover:outline focus:outline active:outline-none disabled:cursor-not-allowed disabled:border-gray-600 disabled:outline-none 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`}},w={},x={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-2 outline-gray-500 hover:outline focus:outline active:outline-none`}},content:{class:e`ris-dialog-content overflow-auto has-[svg:first-child]:flex has-[svg:first-child]:gap-8`},footer:{class:e`mt-40 flex items-center justify-end gap-12`},mask:{class:e`bg-black/40`}},y={root:()=>({class:{[e`flex flex-col items-center gap-10`]:!0}}),input:()=>({class:"hidden"})},S={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 outline-4 -outline-offset-4 outline-blue-800 has-[[aria-invalid]]:border-red-800 has-[input:disabled]:border-blue-500 has-[input:read-only]:border-blue-300 has-[[aria-invalid]]:bg-red-200 has-[input:disabled]:bg-white has-[input:read-only]:bg-blue-300 has-[[data-size=large]]:px-24 has-[input:disabled]:text-blue-500 has-[input:disabled]:outline-none has-[:focus]:outline has-[:hover]:outline has-[[aria-invalid]]:outline-red-800`}},M={root:{class:e`m-0 p-0`}},b=e`border-2 border-blue-800 bg-white outline-4 -outline-offset-4 outline-blue-800 placeholder:text-gray-900 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline focus:outline disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-none aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-none`,g=e`ris-body2-regular h-48 px-16 py-4`,N=e`ris-body1-regular h-64 px-24 py-4`,k=e`ris-body2-regular h-[44px] p-0`,z=e`ris-body1-regular h-[60px] p-0`,D={root:({props:t,parent:o})=>{const r=e`[&[type=password]:not(:placeholder-shown)]:text-[28px] [&[type=password]:not(:placeholder-shown)]:tracking-[4px] [&[type=password]]:w-full`,n=o.instance.$name==="InputGroup",l=e`bg-transparent placeholder:text-gray-900 focus:outline-none`,s=e`w-full`;return{class:{[b]:!n,[l]:n,[s]:!!t.fluid,[r]:!0,[g]:(!t.size||t.size==="small")&&!n,[k]:(!t.size||t.size==="small")&&n,[N]:t.size==="large"&&!n,[z]:t.size==="large"&&n},"data-size":t.size??"small"}}},A={root:({props:t,instance:o})=>{const r=e`ris-body1-regular border-l-4 px-20 py-14`,n=t.severity??"info",l=e`border-l-green-800 bg-green-200`,s=e`border-l-blue-800 bg-blue-200`,i=e`border-l-yellow-800 bg-yellow-200`,a=e`border-l-red-800 bg-red-200`,c=!!o.$slots.icon,h={success:"var(--ris-icon-success)",info:"var(--ris-icon-info)",warn:"var(--ris-icon-warn)",error:"var(--ris-icon-error)"}[n],p=e`bg-[length:20px] bg-[16px_18px] bg-no-repeat pl-44`;return{class:{[r]:!0,[l]:n==="success",[s]:n==="info",[i]:n==="warn",[a]:n==="error",[p]:!c},style:{backgroundImage:c?void 0:h}}},content:{class:e`flex items-start gap-8`},text:{class:e`flex-1`},closeButton:({props:t})=>{const o=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",n=e`text-green-800 hover:bg-green-400 active:bg-green-500`,l=e`text-blue-800 hover:bg-blue-400 active:bg-blue-500`,s=e`text-black hover:bg-yellow-400 active:bg-yellow-500`,i=e`text-red-800 hover:bg-red-400 active:bg-red-500`;return{class:{[o]:!0,[n]:r==="success",[l]:r==="info",[s]:r==="warn",[i]:r==="error"}}}},B={},I={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]`}},F={root:{class:e`relative inline-block h-32 w-32 [&+label]:ris-label1-regular [&+label]:ml-8`},input:{class:e`peer h-full w-full cursor-pointer appearance-none rounded-full border-2 border-blue-800 bg-white outline-4 -outline-offset-4 outline-blue-800 hover:outline focus:outline active:outline-none disabled:cursor-not-allowed disabled:border-gray-600 disabled:outline-none 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-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`}},d=e`w-full`,L={root:({props:t})=>({class:{[e`relative`]:!0,[d]:!!t.fluid}}),pcInput:{root:({props:t})=>({class:{[b]:!0,[g]:!0,[d]:!!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`max-h-56 min-w-288 overflow-auto bg-white px-8 py-12 shadow-md`}},T={root:({props:t})=>{const o=e`ris-body1-regular min-h-56 border-2 border-blue-800 bg-white px-14 pb-12 pt-8 outline-4 -outline-offset-4 outline-blue-800 placeholder:text-gray-900 read-only:cursor-not-allowed read-only:border-blue-300 read-only:bg-blue-300 hover:outline focus:outline disabled:border-blue-500 disabled:bg-white disabled:text-blue-500 disabled:outline-none aria-[invalid]:border-red-800 aria-[invalid]:bg-red-200 aria-[invalid]:outline-red-800 aria-[invalid]:disabled:outline-none`,r=e`w-full`;return{class:{[o]:!0,[r]:!!t.fluid}}}},E={message:({props:t})=>{var a;const o=e`mb-8 flex w-full flex-row items-center gap-8 border-l-4 p-16`,r=(a=t.message)==null?void 0:a.severity,n=e`border-l-green-900 bg-green-200`,l=e`border-l-red-900 bg-red-200`,s=e`border-l-yellow-900 bg-yellow-200`,i=e`border-l-blue-900 bg-blue-200`;return{class:{[o]:!0,[n]:r==="success",[l]:r==="error",[s]:r==="warn",[i]:r==="info"}}},messageContent:{class:e`flex w-full flex-row items-start justify-between gap-10`},messageIcon:({props:t})=>{var a;const o=e`mt-2 h-20 w-20 flex-none shrink-0`,r=((a=t.message)==null?void 0:a.severity)??"info",n=e`text-green-800`,l=e`text-red-800`,s=e`text-black`,i=e`text-blue-800`;return{class:{[o]:!0,[n]:r==="success",[l]:r==="error",[s]:r==="warn",[i]: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 a;const o=e`rounded-sm p-2`,r=((a=t.message)==null?void 0:a.severity)??"info",n=e`hover:bg-green-400`,l=e`hover:bg-red-400`,s=e`hover:bg-yellow-400`,i=e`hover:bg-blue-400`;return{class:{[o]:!0,[n]:r==="success",[l]:r==="error",[s]:r==="warn",[i]:r==="info"}}},closeIcon:{class:e`text-black`}},R={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"}},G={button:f,checkbox:v,confirmDialog:w,dialog:x,fileUpload:y,inputGroup:S,inputGroupAddon:M,inputText:D,message:A,password:B,progressSpinner:I,radioButton:F,textarea:T,toast:E,autocomplete:L},P={deDE:R};exports.RisUiLocale=P;exports.RisUiTheme=G;
|
package/dist/primevue/index.d.ts
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
import "./global.css";
|
2
2
|
export declare const RisUiTheme: {
|
3
3
|
button: import("primevue/button").ButtonPassThroughOptions<any>;
|
4
|
-
|
4
|
+
checkbox: import("primevue/checkbox").CheckboxPassThroughOptions;
|
5
|
+
confirmDialog: import("primevue/confirmdialog").ConfirmDialogPassThroughOptions;
|
6
|
+
dialog: import("primevue/dialog").DialogPassThroughOptions<any>;
|
7
|
+
fileUpload: import("primevue/fileupload").FileUploadPassThroughOptions;
|
5
8
|
inputGroup: import("primevue/inputgroup").InputGroupPassThroughOptions;
|
6
9
|
inputGroupAddon: import("primevue/inputgroupaddon").InputGroupAddonPassThroughOptions;
|
10
|
+
inputText: import("primevue/inputtext").InputTextPassThroughOptions<any>;
|
11
|
+
message: import("primevue/message").MessagePassThroughOptions<any>;
|
7
12
|
password: import("primevue/password").PasswordPassThroughOptions;
|
13
|
+
progressSpinner: import("primevue/progressspinner").ProgressSpinnerPassThroughOptions;
|
14
|
+
radioButton: import("primevue/radiobutton").RadioButtonPassThroughOptions;
|
15
|
+
textarea: import("primevue/textarea").TextareaPassThroughOptions;
|
16
|
+
toast: import("primevue/toast").ToastPassThroughOptions;
|
17
|
+
autocomplete: import("primevue/autocomplete").AutoCompletePassThroughOptions;
|
18
|
+
};
|
19
|
+
export declare const RisUiLocale: {
|
20
|
+
deDE: import("@primevue/core").PrimeVueLocaleOptions;
|
8
21
|
};
|