@optionfactory/ful 0.77.0 → 0.78.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/dist/ful.css +1 -1
- package/dist/ful.css.map +1 -1
- package/dist/ful.iife.js +18 -14
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +18 -14
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ful.iife.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ful.iife.js","sources":["../src/encodings.mjs","../src/http-client.mjs","../src/storage.mjs","../src/oauth-authorization-code.mjs","../src/timing.mjs","../src/deferred.mjs","../src/elements/elements.mjs","../src/elements/form.mjs","../src/elements/input.mjs","../src/elements/select.mjs","../src/elements/radio.mjs","../src/elements/spinner.mjs"],"sourcesContent":["\n\nclass Base64 {\n static encode(arrayBuffer, dialect) {\n const d = dialect || Base64.URL_SAFE;\n const len = arrayBuffer.byteLength;\n const view = new Uint8Array(arrayBuffer);\n let res = '';\n for (let i = 0; i < len; i += 3) {\n const v1 = d[view[i] >> 2];\n const v2 = d[((view[i] & 3) << 4) | (view[i + 1] >> 4)];\n const v3 = d[((view[i + 1] & 15) << 2) | (view[i + 2] >> 6)];\n const v4 = d[view[i + 2] & 63];\n res += v1 + v2 + v3 + v4;\n }\n if (len % 3 === 2) {\n res = res.substring(0, res.length - 1);\n } else if (len % 3 === 1) {\n res = res.substring(0, res.length - 2);\n }\n return res;\n }\n static decode(str, dialect) {\n const d = dialect || Base64.URL_SAFE;\n let nbytes = Math.floor(str.length * 0.75);\n for (let i = 0; i !== str.length; ++i) {\n if (str[str.length - i - 1] !== '=') {\n break;\n }\n --nbytes;\n }\n const view = new Uint8Array(nbytes);\n\n let vi = 0;\n let si = 0;\n while (vi < str.length * 0.75) {\n const v1 = d.indexOf(str.charAt(si++));\n const v2 = d.indexOf(str.charAt(si++));\n const v3 = d.indexOf(str.charAt(si++));\n const v4 = d.indexOf(str.charAt(si++));\n view[vi++] = (v1 << 2) | (v2 >> 4);\n view[vi++] = ((v2 & 15) << 4) | (v3 >> 2);\n view[vi++] = ((v3 & 3) << 6) | v4;\n }\n\n return view.buffer;\n }\n}\n\nBase64.STANDARD = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nBase64.URL_SAFE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';\n\n\nclass Hex {\n static decode(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(\"invalid length\");\n }\n const lenInBytes = hex.length / 2;\n return new Uint8Array(lenInBytes).map((e, i) => {\n const offset = i * 2;\n const octet = hex.substring(offset, offset + 2);\n return parseInt(octet, 16);\n });\n }\n static encode(bytes, upper) {\n return Array.from(bytes)\n .map(b => b.toString(16))\n .map(b => upper ? b.toUpperCase() : b)\n .map(o => o.padStart(2, 0))\n .join('');\n }\n}\n\nexport { Base64, Hex };","class ContextInterceptor {\n constructor() {\n const context = document.querySelector(\"meta[name='context']\").getAttribute(\"content\");\n this.context = context.endsWith(\"/\") ? context.substring(0, context.length - 1) : context;\n }\n async intercept(request, chain){\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\n return await chain.proceed(request);\n }\n}\n\nclass CsrfTokenInterceptor {\n constructor() {\n this.k = document.querySelector(\"meta[name='_csrf_header']\").getAttribute(\"content\");\n this.v = document.querySelector(\"meta[name='_csrf']\").getAttribute(\"content\");\n }\n async intercept(request, chain){\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n return await chain.proceed(request);\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n async intercept(request, chain){\n const response = await chain.proceed(request);\n if (response.status !== 401) {\n return response;\n }\n window.location.href = this.redirectUri;\n }\n}\n\nclass Failure extends Error {\n static parseProblems(status, text) {\n const def = [{\n type: \"GENERIC_PROBLEM\",\n context: null,\n reason: `${status}: ${text}`,\n details: null\n }];\n try {\n return text ? JSON.parse(text) : def;\n } catch (e) {\n return def;\n }\n }\n static fromResponse(status, text) {\n return new Failure(status, Failure.parseProblems(status, text));\n }\n constructor(status, problems) {\n super(JSON.stringify(problems));\n this.name = `Failure:${status}`;\n this.status = status;\n this.problems = problems;\n }\n}\n\nclass HttpClientBuilder {\n constructor() {\n this.interceptors = [];\n }\n withContext() {\n this.interceptors.push(new ContextInterceptor());\n return this;\n }\n withCsrfToken() {\n this.interceptors.push(new CsrfTokenInterceptor());\n return this;\n }\n withRedirectOnUnauthorized(redirectUri) {\n this.interceptors.push(new RedirectOnUnauthorizedInterceptor(redirectUri));\n return this;\n }\n withInterceptors(...interceptors) {\n this.interceptors.push(...interceptors);\n return this;\n }\n build() {\n const interceptors = this.interceptors;\n return new HttpClient({interceptors});\n }\n}\n\nclass HttpCall {\n async intercept(request, chain){\n return await fetch(request.resource, request.options);\n } \n}\n\nclass HttpInterceptorChain {\n constructor(interceptors, current){\n this.interceptors = interceptors;\n this.current = current;\n }\n async proceed(request){\n const interceptor = this.interceptors[this.current];\n return await interceptor.intercept(request, new HttpInterceptorChain(this.interceptors, this.current + 1));\n }\n}\n\n\nclass HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor({interceptors}){\n this.interceptors = interceptors || [];\n }\n async exchange(resource, options) {\n const opts = options || {};\n const interceptors = [...this.interceptors, ...opts.interceptors || [], new HttpCall()];\n const chain = new HttpInterceptorChain(interceptors, 0);\n return await chain.proceed({resource, options: opts});\n }\n async fetch(resource, options) {\n const response = await this.exchange(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n } \n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n const text = await response.text();\n return text ? JSON.parse(text) : undefined;\n } catch (e) {\n if (e instanceof Failure) {\n throw e;\n }\n throw new Failure(0, [{\n type: \"CONNECTION_PROBLEM\",\n context: null,\n reason: e.message,\n details: null\n }]);\n }\n }\n}\n\nfunction jsonRequest(method, body, headers){\n return {\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers\n },\n method: method,\n body: JSON.stringify(body) \n }\n}\nfunction jsonPost(body, headers){\n return jsonRequest('POST', body, headers);\n}\nfunction jsonPut(body, headers){\n return jsonRequest('PUT', body, headers);\n}\nfunction jsonPatch(body, headers){\n return jsonRequest('PATCH', body, headers);\n}\n\n\nexport { HttpClient, Failure, jsonRequest, jsonPost, jsonPut, jsonPatch };\n","\nclass Storage {\n constructor(prefix, storage) {\n this.prefix = prefix;\n this.storage = storage;\n }\n save(k, v) {\n this.storage.setItem(`${this.prefix}-${k}`, JSON.stringify(v));\n }\n load(k) {\n const got = this.storage.getItem(`${this.prefix}-${k}`);\n return got === undefined ? undefined : JSON.parse(got);\n }\n remove(k) {\n this.storage.removeItem(`${this.prefix}-${k}`);\n }\n pop(k) {\n const decoded = this.load(k);\n this.remove(k);\n return decoded;\n }\n}\n\nclass LocalStorage extends Storage {\n constructor(prefix) {\n super(prefix, localStorage);\n }\n}\n\nclass SessionStorage extends Storage {\n constructor(prefix) {\n super(prefix, sessionStorage);\n }\n}\n\nclass VersionedStorage {\n constructor(storage, key, dataSupplier){\n this.storage = storage;\n this.key = key;\n this.dataSupplier = dataSupplier;\n this.cache = null;\n \n }\n async load(revision){\n const saved = this.storage.load(this.key);\n if (!!saved && saved.revision === revision) {\n this.cache = saved.value;\n return;\n }\n const freshData = await this.dataSupplier(revision, this.key);\n this.storage.save(this.key, {\n revision: revision,\n value: freshData\n });\n this.cache = freshData;\n }\n data(){\n return this.cache;\n }\n}\n\n\n\nexport {LocalStorage, SessionStorage, VersionedStorage};","import { Base64 } from \"./encodings.mjs\";\nimport { SessionStorage } from \"./storage.mjs\";\n\n\nclass AuthorizationCodeFlow {\n static forKeycloak(clientId, realmBaseUrl, redirectUri){\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, {\n auth: new URL(\"protocol/openid-connect/auth\", realmBaseUrl),\n token: new URL(\"protocol/openid-connect/token\", realmBaseUrl),\n logout: new URL(\"protocol/openid-connect/logout\", realmBaseUrl),\n registration: new URL(\"protocol/openid-connect/registrations\", realmBaseUrl),\n redirect: redirectUri\n }); \n }\n constructor(clientId, scope, {auth, token, registration, logout, redirect}) {\n this.storage = new SessionStorage(clientId);\n this.clientId = clientId;\n this.scope = scope;\n this.uri = {auth, token, registration, logout, redirect};\n }\n async action(uri, additionalParams){\n const pkceVerifier = Base64.encode(crypto.getRandomValues(new Uint8Array(32)).buffer);\n const pkceChallenge = Base64.encode(await crypto.subtle.digest(\"SHA-256\", new TextEncoder().encode(pkceVerifier)));\n const state = this.clientId + Base64.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);\n this.storage.save(AuthorizationCodeFlow.PKCE_AND_STATE_KEY, {\n state: state,\n verifier: pkceVerifier\n });\n const url = new URL(uri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"response_type\", 'code');\n url.searchParams.set(\"scope\", this.scope);\n url.searchParams.set(\"state\", state);\n url.searchParams.set(\"code_challenge\", pkceChallenge);\n url.searchParams.set(\"code_challenge_method\", 'S256');\n Object.entries(additionalParams || {}).forEach(kv => {\n url.searchParams.set(kv[0], kv[1]);\n });\n window.location = url;\n }\n async registration(additionalParams){\n await this.action(this.uri.registration, additionalParams);\n }\n async applicationInitiatedAction(kcAction){\n await this.action(this.uri.auth, {\n kc_action: kcAction\n });\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.uri.redirect);\n const stateAndVerifier = this.storage.pop(AuthorizationCodeFlow.PKCE_AND_STATE_KEY);\n if (stateAndVerifier.state !== state) {\n throw new Error(\"State mismatch\");\n }\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"code\", code],\n [\"grant_type\", \"authorization_code\"],\n [\"code_verifier\", stateAndVerifier.verifier],\n [\"state\", stateAndVerifier.state],\n [\"redirect_uri\", this.uri.redirect]\n ])\n });\n if (!response.ok) {\n const text = await response.text();\n throw new Error(\"Error:\" + response.status + \": \" + text);\n }\n const token = await response.json();\n return new AuthorizationCodeFlowSession(this.clientId, token, this.uri);\n }\n async ensureLoggedIn() {\n const url = new URL(window.location.href);\n const code = url.searchParams.get(\"code\");\n if (code && this.storage.load(AuthorizationCodeFlow.PKCE_AND_STATE_KEY)) {\n //if callback from keycloak and we have our state still stored\n const state = url.searchParams.get(\"state\");\n return await this._tokenExchange(code, state);\n }\n //if not authorized\n await this.action(this.uri.auth, {});\n return null;\n }\n}\nAuthorizationCodeFlow.PKCE_AND_STATE_KEY = \"state-and-verifier\";\n\nclass AuthorizationCodeFlowSession {\n static parseToken(token) {\n const [rawHeader, rawPayload, signature] = token.split(\".\");\n const ut8decoder = new TextDecoder(\"utf-8\");\n return {\n header: JSON.parse(ut8decoder.decode(Base64.decode(rawHeader, Base64.STANDARD))),\n payload: JSON.parse(ut8decoder.decode(Base64.decode(rawPayload, Base64.STANDARD))),\n signature: signature\n };\n } \n constructor(clientId, t, {token, logout, redirect}) {\n this.clientId = clientId;\n this.token = t;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(t.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(t.refresh_token);\n this.uri = { token, logout, redirect }\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"grant_type\", \"refresh_token\"],\n [\"refresh_token\", this.token.refresh_token]\n ])\n });\n if (!response.ok) {\n throw new Error(\"Error:\" + response.status + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n if (this.refreshCallback) {\n this.refreshCallback(this.token, this.accessToken, this.refreshToken);\n }\n }\n shouldBeRefreshed(gracePeriod) {\n const now = new Date().getTime();\n const refreshTokenExpiresAt = this.refreshToken.payload.exp * 1000;\n const expired = now > refreshTokenExpiresAt;\n const shouldRefresh = now - gracePeriod > refreshTokenExpiresAt;\n return !expired && shouldRefresh;\n }\n async refreshIf(gracePeriod) {\n if (!this.shouldBeRefreshed(gracePeriod)) {\n return;\n }\n await this.refresh();\n }\n logout() {\n const url = new URL(this.uri.logout);\n url.searchParams.set(\"post_logout_redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"id_token_hint\", this.token.id_token);\n window.location = url;\n }\n\n bearerToken() {\n return `Bearer ${this.token.access_token}`;\n }\n \n interceptor(gracePeriodBefore, gracePeriodAfter){\n return new AuthorizationCodeFlowInterceptor(this, gracePeriodBefore, gracePeriodAfter); \n }\n}\n\nclass AuthorizationCodeFlowInterceptor {\n constructor(session, gracePeriodBefore, gracePeriodAfter) {\n this.session = session;\n this.gracePeriodBefore = gracePeriodBefore || 2000;\n this.gracePeriodAfter = gracePeriodAfter || 30000;\n }\n async intercept(request, chain) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n request.options.headers = headers;\n const response = await chain.proceed(request);\n await this.session.refreshIf(this.gracePeriodAfter);\n return response;\n }\n}\n\n\nexport {AuthorizationCodeFlow, AuthorizationCodeFlowSession, AuthorizationCodeFlowInterceptor };","\nconst timing = {\n sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n DEBOUNCE_DEFAULT: 0,\n DEBOUNCE_IMMEDIATE: 1,\n debounce(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.DEBOUNCE_DEFAULT;\n\n const later = () => {\n const elapsed = new Date().getTime() - previousTimestamp;\n if (timeoutMs > elapsed) {\n tid = setTimeout(later, timeoutMs - elapsed);\n return;\n }\n tid = null;\n if (opts !== timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n // This check is needed because `func` can recursively invoke `debounced`.\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n args = arguments;\n previousTimestamp = new Date().getTime();\n if (tid === null) {\n tid = setTimeout(later, timeoutMs);\n if (opts === timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n }\n };\n },\n THROTTLE_DEFAULT: 0,\n THROTTLE_NO_LEADING: 1,\n THROTTLE_NO_TRAILING: 2,\n throttle(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.THROTTLE_DEFAULT;\n\n const later = () => {\n previousTimestamp = (opts & timing.THROTTLE_NO_LEADING) ? 0 : new Date().getTime();\n tid = null;\n func(...args);\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n const now = new Date().getTime();\n if (!previousTimestamp && (opts & timing.THROTTLE_NO_LEADING)) {\n previousTimestamp = now;\n }\n const remaining = timeoutMs - (now - previousTimestamp);\n args = arguments;\n if (remaining <= 0 || remaining > timeoutMs) {\n if (tid !== null) {\n clearTimeout(tid);\n tid = null;\n }\n previousTimestamp = now;\n func(...args);\n if (tid === null) {\n args = [];\n }\n } else if (tid === null && !(opts & timing.THROTTLE_NO_TRAILING)) {\n tid = setTimeout(later, remaining);\n }\n };\n\n }\n};\n\n\nexport { timing };","class Deferred {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.reject = reject;\n this.resolve = resolve;\n });\n }\n}\n\n\nexport { Deferred }","class Fragments {\n /**\n * \n * @param {...string} html \n * @returns \n */\n static fromHtml(...html) {\n const el = document.createElement(\"template\");\n el.innerHTML = html.join(\"\");\n return el.content;\n }\n /**\n * \n * @param {DocumentFragment} fragment \n * @returns \n */\n static toHtml(fragment) {\n var el = document.createElement(\"template\");\n el.content.appendChild(fragment);\n return el.innerHTML;\n }\n /**\n * \n * @param {...Node} nodes \n * @returns \n */\n static from(...nodes) {\n const fragment = new DocumentFragment();\n fragment.append(...nodes);\n return fragment;\n }\n /**\n * \n * @param {HTMLElement} el \n * @returns \n */\n static fromChildNodes(el) {\n const fragment = new DocumentFragment();\n fragment.append(...el.childNodes);\n return fragment;\n }\n}\n\nclass Attributes {\n static id = 0;\n /**\n * \n * @param {string} prefix \n * @returns \n */\n static uid(prefix) {\n return `${prefix}-${++Attributes.id}`;\n }\n /**\n * \n * @param {HTMLElement} el \n * @param {string} k \n * @param {string} v \n * @returns \n */\n static defaultValue(el, k, v) {\n if (!el.hasAttribute(k)) {\n el.setAttribute(k, v);\n }\n return el.getAttribute(k);\n }\n /**\n * \n * @param {string} prefix \n * @param {HTMLElement} from \n * @param {HTMLElement} to \n */\n static forward(prefix, from, to) {\n from.getAttributeNames()\n .filter(a => a.startsWith(prefix))\n .forEach(a => {\n const target = a.substring(prefix.length);\n if (target === 'class') {\n to.classList.add(...from.getAttribute(prefix + \"class\").split(\" \").filter(a => a.length));\n return;\n }\n to.setAttribute(target, from.getAttribute(a))\n });\n }\n /**\n * \n * @param {HTMLElement} el \n * @param {stirng} attr \n * @param {boolean} value \n */\n static toggle(el, attr, value) {\n if (value) {\n el.setAttribute(attr, '');\n } else {\n el.removeAttribute(attr);\n }\n }\n static flip(el, attr) {\n if (el.hasAttribute(attr)) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, '');\n }\n }\n\n}\n\nclass LightSlots {\n /**\n * \n * @param {HTMLElement} el \n * @returns the slots\n */\n static from(el) {\n const namedSlots = Array.from(el.childNodes)\n .filter(el => el.matches && el.matches('[slot]'))\n .map(el => {\n el.remove();\n const slot = el.getAttribute(\"slot\");\n el.removeAttribute(\"slot\");\n return [slot, el];\n });\n const slots = {};\n slots.default = new DocumentFragment();\n slots.default.append(...el.childNodes);\n for(const [name,el] of namedSlots){\n if(!(name in slots)){\n slots[name] = new DocumentFragment();\n }\n slots[name].append(el);\n }\n return slots;\n }\n}\n\nclass Nodes {\n static isParsed(el) {\n for (var c = el; c; c = c.parentNode) {\n if (c.nextSibling) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass TemplatesRegistry {\n #idToFragment = {};\n #idToTemplate = {};\n #ec;\n put(k, fragment) {\n if (this.#ec) {\n this.#idToTemplate[k] = Template.fromFragment(fragment, ec);\n return;\n }\n this.#idToFragment[k] = fragment;\n }\n get(k) {\n if (!this.#ec) {\n throw new Error(\"TemplatesRegistry is not configured\");\n }\n const tpl = this.#idToTemplate[k];\n if (!tpl) {\n throw new Error(`missing template: '${k}'`);\n }\n return tpl;\n }\n configure(ec) {\n this.#ec = ec;\n for (const [k, fragment] of Object.entries(this.#idToFragment)) {\n delete this.#idToFragment[k];\n this.#idToTemplate[k] = ftl.Template.fromFragment(fragment, ec);\n }\n }\n}\n\n\nclass ElementsRegistry {\n #templates;\n #tagToclass;\n #configured;\n #id = 0;\n constructor() {\n this.#templates = new TemplatesRegistry();\n this.#tagToclass = {};\n }\n defineTemplate(html) {\n if (html === null || html === undefined) {\n return undefined;\n }\n const name = `unnamed-${++this.#id}`;\n this.#templates.put(name, Fragments.fromHtml(html));\n return name;\n }\n template(k) {\n if (k === null || k === undefined) {\n return undefined;\n }\n return this.#templates.get(k);\n }\n define(tag, klass) {\n if (!this.#configured) {\n this.#tagToclass[tag] = klass;\n return this;\n }\n customElements.define(tag, klass);\n return this;\n }\n configure(ec) {\n this.#templates.configure(ec);\n for (const [tag, klass] of Object.entries(this.#tagToclass)) {\n customElements.define(tag, klass);\n delete this.#tagToclass[tag];\n }\n this.#configured = true;\n }\n}\n\nconst elements = new ElementsRegistry();\n\n\nclass UpgradeQueue {\n #q = [];\n constructor() {\n document.addEventListener('DOMContentLoaded', this.dequeue.bind(this));\n }\n enqueue(el) {\n if (!this.#q.length) {\n requestAnimationFrame(this.dequeue.bind(this));\n }\n this.#q.push(el);\n }\n dequeue() {\n this.#q.splice(0).forEach(el => el.upgrade());\n }\n}\n\nconst upgradeQueue = new UpgradeQueue();\n\nconst mappers = {\n 'string': attr => attr,\n 'number': attr => attr === null ? null : Number(attr),\n 'presence': attr => attr !== null,\n 'state': attr => attr !== null,\n 'bool': attr => attr === 'true',\n 'json': attr => JSON.parse(attr)\n};\n\nconst ParsedElement = (conf) => {\n const { observed, template, slots } = conf || {};\n\n const attrsAndTypes = (observed || []).map(a => {\n const [attr, maybeType] = a.split(\":\");\n const type = maybeType?.trim() || 'string';\n if (!(type in mappers)) {\n throw new Error(`unsupported attribute type: ${type}`);\n }\n return [attr.trim(), type];\n });\n\n const attrsAndMappers = attrsAndTypes.map(([attr, type]) => [attr, mappers[type]]);\n\n const attrToMapper = Object.fromEntries(attrsAndMappers);\n\n const templateId = elements.defineTemplate(template);\n\n const k = class extends HTMLElement {\n static get observedAttributes() {\n return Object.keys(attrToMapper);\n }\n #parsed;\n #initialized;\n #reflecting;\n #internals;\n constructor(...args) {\n super(...args);\n this.#internals = this.attachInternals();\n }\n get initialized() {\n return this.#initialized;\n }\n get internals() {\n return this.#internals;\n }\n connectedCallback() {\n if (this.#parsed) {\n return;\n }\n if (this.ownerDocument.readyState === 'complete' || Nodes.isParsed(this)) {\n upgradeQueue.enqueue(this);\n return;\n }\n this.ownerDocument.addEventListener('DOMContentLoaded', () => {\n observer.disconnect();\n upgradeQueue.enqueue(this);\n });\n const observer = new MutationObserver(() => {\n if (!Nodes.isParsed(this)) {\n return;\n }\n observer.disconnect();\n upgradeQueue.enqueue(this);\n });\n observer.observe(this.parentNode, { childList: true, subtree: true });\n }\n attributeChangedCallback(attr, oldValue, newValue) {\n if (!this.#parsed || oldValue === newValue) {\n return;\n }\n if (this.#reflecting) {\n return;\n }\n const mapper = attrToMapper[attr];\n this[attr] = mapper(newValue);\n }\n reflect(fn) {\n this.#reflecting = true;\n try {\n fn();\n } finally {\n this.#reflecting = false;\n }\n }\n async upgrade() {\n if (this.#parsed) {\n return;\n }\n this.#parsed = true;\n await this.render(elements.template(templateId), slots ? LightSlots.from(this) : undefined);\n\n for (const [attr, mapper] of attrsAndMappers) {\n if (this.hasAttribute(attr)) {\n this[attr] = mapper(this.getAttribute(attr));\n }\n }\n this.#initialized = true;\n }\n };\n\n for (const [attr, type] of attrsAndTypes.filter(([a, t]) => t === 'state')) {\n Object.defineProperty(k.prototype, attr, {\n enumerable: true,\n configurable: true,\n get() {\n return this.internals.states.has(`--${attr}`);\n },\n set(value) {\n this.internals.states[value ? 'add' : 'delete'](`--${attr}`);\n this.reflect(() => Attributes.toggle(this, attr, value));\n }\n });\n }\n\n return k;\n}\n\nexport { Fragments, Attributes, LightSlots, Nodes, TemplatesRegistry, ElementsRegistry, elements, ParsedElement };\n","/* global Infinity, CSS */\n\nimport { Failure } from \"../http-client.mjs\";\nimport { ParsedElement } from \"./elements.mjs\"\n\nfunction flatten(obj, prefix) {\n return Object.keys(obj).reduce((acc, k) => {\n const pre = prefix.length ? prefix + '.' : '';\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n Object.assign(acc, flatten(obj[k], pre + k));\n } else {\n acc[pre + k] = obj[k];\n }\n return acc;\n }, {});\n}\n\nfunction providePath(result, path, value) {\n const keys = path.split(\".\").map((k) => k.match(/^[0-9]+$/) ? +k : k);\n let current = result;\n let previous = null;\n for (let i = 0; ; ++i) {\n const ckey = keys[i];\n const pkey = keys[i - 1];\n if (Number.isInteger(ckey) && !Array.isArray(current)) {\n if (previous !== null) {\n previous[pkey] = current = [];\n } else {\n result = current = [];\n }\n }\n if (i === keys.length - 1) {\n //when value is undefined we only want to define the property if it's not defined \n current[ckey] = value !== undefined ? value : (ckey in current ? current[ckey] : null);\n return result;\n }\n if (current[ckey] === undefined) {\n current[ckey] = {};\n }\n previous = current;\n current = current[ckey];\n }\n}\n\nfunction extract(el) {\n if (el.getAttribute('type') === 'radio') {\n if (!el.checked) {\n return undefined;\n }\n return el.dataset['fulBindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['fulBindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n return el.value === '' || el.value === undefined ? null : el.value;\n}\n\nfunction mutate(el, raw) {\n if (el.getAttribute('type') === 'radio') {\n el.checked = el.getAttribute('value') === raw;\n return;\n }\n if (el.getAttribute('type') === 'checkbox') {\n el.checked = raw;\n return;\n }\n el.value = raw;\n}\n\nclass Form extends ParsedElement() {\n static IGNORED_CHILDREN_SELECTOR = '.d-none, [hidden]';\n static SCROLL_OFFSET = 50;\n render() {\n const form = document.createElement('form');\n form.replaceChildren(...this.childNodes);\n form.addEventListener('submit', async (e) => {\n e.preventDefault();\n this.spinning(async () => {\n await this.submitter?.(this.values, this);\n });\n })\n this.replaceChildren(form);\n }\n spinner(spin) {\n this.querySelectorAll('ful-spinner').forEach(el => el.hidden = !spin)\n this.querySelectorAll('[type=submit],[type=reset]').forEach(el => el.disabled = spin)\n }\n async remoting(fn) {\n try {\n await fn();\n } catch (e) {\n if (e instanceof Failure) {\n this.errors = e.problems;\n }\n throw e;\n }\n }\n async spinningUntilError(fn) {\n this.spinner(true)\n try {\n await this.remoting(fn);\n } catch(e) {\n this.spinner(false);\n throw e;\n }\n }\n async spinning(fn) {\n this.spinner(true)\n try {\n await this.remoting(fn);\n } finally {\n this.spinner(false);\n }\n }\n set values(vs) {\n for (const [flattenedKey, value] of Object.entries(flatten(vs, ''))) {\n this.querySelectorAll(`[name='${CSS.escape(flattenedKey)}']`).forEach(el => mutate(el, value));\n }\n }\n get values() {\n return Array.from(this.querySelectorAll('[name]'))\n .filter((el) => {\n if (el.dataset['fulBindInclude'] === 'never') {\n return false;\n }\n return el.dataset['fulBindInclude'] === 'always' || el.closest(Form.IGNORED_CHILDREN_SELECTOR) === null;\n })\n .reduce((result, el) => {\n return providePath(result, el.getAttribute('name'), extract(el));\n }, {});\n }\n set errors(es) {\n const fieldErrors = es.filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT');\n const globalErrors = es.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n this.querySelectorAll('.is-invalid').forEach(el => el.classList.remove('is-invalid'));\n this.querySelectorAll(\"ful-errors\").forEach(el => {\n el.replaceChildren();\n el.setAttribute('hidden', '');\n });\n fieldErrors.forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n const validationTargetsSelector = `[name='${CSS.escape(name)}'] [ful-validation-target],[name='${CSS.escape(name)}']:not(:has([ful-validation-target]))`;\n this.querySelectorAll(validationTargetsSelector).forEach(input => input.classList.add('is-invalid'));\n const fieldErrorsSelector = `ful-field-error[field='${CSS.escape(name)}']`;\n this.querySelectorAll(fieldErrorsSelector).forEach(el => el.innerText = e.reason);\n });\n this.querySelectorAll(\"ful-errors\").forEach(el => {\n el.innerText = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n el.removeAttribute('hidden');\n }\n });\n if (!this.hasAttribute('scroll-on-error')) {\n return;\n }\n const ys = Array.from(this.querySelectorAll('[ful-validated-field]:has(.is-invalid) ful-field-error'))\n .map(el => el.parentElement ? el.parentElement : el)\n .map(el => el.getBoundingClientRect().y + window.scrollY);\n const miny = Math.min(...ys);\n if (miny !== Infinity) {\n window.scroll(window.scrollX, miny > Form.SCROLL_OFFSET ? miny - Form.SCROLL_OFFSET : 0);\n }\n }\n}\n\nexport { Form };\n","import { Attributes, ParsedElement } from \"./elements.mjs\"\n\n\nconst INPUT_TEMPLATE = `\n<div ful-validated-field>\n <label data-tpl-for=\"id\" class=\"form-label\">{{{{ slots.default }}}}</label>\n <div class=\"input-group\">\n <span data-tpl-if=\"slots.ibefore\" class=\"input-group-text\">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if=\"slots.before\" data-tpl-remove=\"tag\">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if=\"slots.after\" data-tpl-remove=\"tag\">{{{{ slots.after }}}}</div>\n <span data-tpl-if=\"slots.iafter\" class=\"input-group-text\">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n</div>\n`;\n\nconst makeInputFragment = (el, template, slots) => {\n const input = el.input = slots.input = slots.input?.firstElementChild || (() => {\n const el = document.createElement(\"input\")\n el.classList.add(\"form-control\");\n return el;\n })();\n input.setAttribute('ful-validation-target', '');\n input.addEventListener('change', (evt) => {\n evt.stopPropagation();\n el.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: el.value\n }\n }));\n });\n const id = input.getAttribute('id') || el.getAttribute('input-id') || Attributes.uid('ful-input');\n Attributes.forward('input-', el, slots.input)\n Attributes.defaultValue(slots.input, \"id\", id);\n Attributes.defaultValue(slots.input, \"type\", \"text\");\n Attributes.defaultValue(slots.input, \"placeholder\", \" \");\n const name = el.getAttribute('name');\n return template.render(el, { id, name, slots });\n}\n\nclass Input extends ParsedElement({\n observed: ['value'],\n slots: true,\n template: INPUT_TEMPLATE\n}){\n render(template, slots) {\n const fragment = makeInputFragment(this, template, slots);\n this.replaceChildren(fragment);\n }\n get value() {\n return this.input.value;\n }\n set value(value) {\n this.input.value = value;\n }\n}\n\nexport { makeInputFragment, INPUT_TEMPLATE, Input };\n","import { Fragments, Attributes, ParsedElement } from \"./elements.mjs\"\n\n/**\n * <script src=\"tom-select.complete.js\"></script>\n * <link href=\"tom-select.bootstrap5.css\" rel=\"stylesheet\" />\n */\n\nclass Select extends ParsedElement({\n observed: [\"value\"],\n slots: true,\n template: `\n <div ful-validated-field>\n <label data-tpl-for=\"tsId\" class=\"form-label\">{{{{ slots.default }}}}</label>\n {{{{ input }}}}\n <div class=\"input-group\">\n <span data-tpl-if=\"slots.ibefore\" class=\"input-group-text\">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if=\"slots.before\" data-tpl-remove=\"tag\">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if=\"slots.after\" data-tpl-remove=\"tag\">{{{{ slots.after }}}}</div>\n <span data-tpl-if=\"slots.iafter\" class=\"input-group-text\">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n </div>\n `\n}) {\n constructor(tsConfig) {\n super();\n this.tsConfig = tsConfig;\n }\n render(template, slots) {\n const type = this.getAttribute(\"type\") || 'local';\n const remote = type != 'local';\n const loadOnce = this.getAttribute('load') != 'always';\n const name = this.getAttribute('name');\n const input = slots.input = slots.input?.firstElementChild || (() => {\n return document.createElement(\"select\");\n })();\n input.setAttribute('ful-validation-target', '');\n\n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-select');\n const tsId = `${id}-ts-control`;\n Attributes.forward('input-', this, input)\n Attributes.defaultValue(input, \"id\", id);\n Attributes.defaultValue(input, \"placeholder\", \" \");\n\n //tomselect needs the input to have a parent.\n //se we move the input to a fragment\n slots.input = Fragments.from(input);\n\n this.loaded = !remote;\n\n const tsDefaultConfig = {\n render: {\n loading: () => '<ful-spinner class=\"centered p-2\"></ful-spinner>'\n }\n }\n\n this._remote = remote;\n // we need to await this load in setValue when remote is configured and the option\n // is not loaded yet.\n // tomselect settings.load does not retun a promise as it wraps the configured load function\n // with a debouncer\n this._unwrappedRemoteLoad = async (query, callback) => {\n\n if (!remote || remote && loadOnce && this.loaded) {\n callback();\n return;\n }\n const type = query && query.hasOwnProperty('byId') ? 'id' : 'query';\n const qvalue = type === 'id' ? query.byId : query;\n const data = await (this.#loader ? this.#loader(qvalue, type) : []);\n if (type !== 'id') {\n this.loaded = true;\n }\n callback(data);\n };\n this.ts = new TomSelect(input, Object.assign(remote ? {\n preload: 'focus',\n load: this._unwrappedRemoteLoad,\n shouldLoad: (query) => this.shouldLoad ? this.shouldLoad(query) : true\n } : {}, tsDefaultConfig, this.tsConfig));\n this.ts.on('change', value => {\n this.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: this.value\n }\n }));\n });\n //we remove the input to move it\n input.addEventListener('change', (evt) => {\n evt.stopPropagation();\n });\n input.remove();\n template.renderTo(this, { id, tsId, name, input, slots });\n }\n #loader;\n set loader(l) {\n this.#loader = l;\n // loader can be configured later so we load now\n if (this.hasAttribute('value')) {\n this.value = this.getAttribute(\"value\");\n }\n }\n get value() {\n const v = this.ts.getValue();\n return v === '' ? null : v;\n }\n set value(value) {\n (async () => {\n if (this._remote) {\n await this._unwrappedRemoteLoad({ byId: value }, this.ts.loadCallback.bind(this.ts));\n }\n const silent = true;\n this.ts.setValue(value, silent);\n })();\n }\n}\n\nexport { Select };\n","import { Attributes, Fragments, ParsedElement } from \"./elements.mjs\"\n\nclass RadioGroup extends ParsedElement({\n observed: ['value', 'disabled:state'],\n slots: true,\n template: `\n <fieldset ful-validated-field>\n <legend class=\"form-label\">\n {{{{ slots.default }}}}\n </legend>\n <header data-tpl-if=\"slots.header\">\n {{{{ slots.header }}}}\n </header>\n <section>\n <div class=\"label-wrapper\" data-tpl-each=\"inputsAndLabels\" data-tpl-var=\"ial\">\n <label>\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </div>\n </section>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n <footer data-tpl-if=\"slots.footer\">\n {{{{ slots.footer }}}}\n </footer>\n </fieldset>\n `\n}) {\n render(template, slots) {\n const name = this.getAttribute('name') || Attributes.uid('ful-radiogroup');\n const radioEls = Array.from(slots.default.querySelectorAll('ful-radio'));\n const inputsAndLabels = radioEls.map(el => {\n const input = document.createElement('input');\n input.setAttribute('type', 'radio');\n Attributes.forward('input-', this, input);\n Attributes.forward('', el, input);\n input.setAttribute('name', `${name}-ignore`);\n input.setAttribute('ful-validation-target', '');\n input.dataset['fulBindInclude'] = 'never';\n input.addEventListener('change', evt => {\n evt.stopPropagation();\n //change is not cancelable\n this.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: this.value\n }\n })); \n }); \n const label = Fragments.fromChildNodes(el);\n return [input, label];\n });\n\n radioEls.forEach(el => el.remove());\n template.renderTo(this, {name, slots, inputsAndLabels});\n }\n get value() {\n const checked = this.querySelector('input[type=radio]:checked');\n return checked ? checked.value : null;\n }\n set value(value) {\n this.querySelector(`input[type=radio][value=${CSS.escape(value)}]`).checked = true;\n }\n}\n\n\nexport { RadioGroup };","import { ParsedElement } from \"./elements.mjs\"\n\nclass Spinner extends ParsedElement({\n slots: true,\n template: `\n <div class=\"ful-spinner-wrapper\">\n <div class=\"ful-spinner-text\">{{{{ slots.default }}}}</div>\n <div class=\"ful-spinner-icon\"></div>\n </div>\n `\n}) {\n render(template, slots) {\n template.renderTo(this, { slots });\n }\n}\n\nexport { Spinner };"],"names":[],"mappings":";;;IAEA,MAAM,MAAM,CAAC;IACb,IAAI,OAAO,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE;IACxC,QAAQ,MAAM,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC;IAC7C,QAAQ,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC;IAC3C,QAAQ,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IACjD,QAAQ,IAAI,GAAG,GAAG,EAAE,CAAC;IACrB,QAAQ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;IACzC,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,K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AE,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC;IAChE,KAAK;IACL,IAAI,IAAI,KAAK,GAAG;IAChB,QAAQ,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IACxE,QAAQ,OAAO,OAAO,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAC9C,KAAK;IACL,IAAI,IAAI,KAAK,CAAC,KAAK,EAAE;IACrB,QAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;IAC3F,KAAK;IACL;;IC9DA,MAAM,OAAO,SAAS,aAAa,CAAC;IACpC,IAAI,KAAK,EAAE,IAAI;IACf,IAAI,QAAQ,EAAE,CAAC;AACf;AACA;AACA;AACA;AACA,IAAI,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE;IAC5B,QAAQ,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3C,KAAK;IACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ful.iife.js","sources":["../src/encodings.mjs","../src/http-client.mjs","../src/storage.mjs","../src/oauth-authorization-code.mjs","../src/timing.mjs","../src/deferred.mjs","../src/elements/elements.mjs","../src/elements/form.mjs","../src/elements/input.mjs","../src/elements/select.mjs","../src/elements/radio.mjs","../src/elements/spinner.mjs"],"sourcesContent":["\n\nclass Base64 {\n static encode(arrayBuffer, dialect) {\n const d = dialect || Base64.URL_SAFE;\n const len = arrayBuffer.byteLength;\n const view = new Uint8Array(arrayBuffer);\n let res = '';\n for (let i = 0; i < len; i += 3) {\n const v1 = d[view[i] >> 2];\n const v2 = d[((view[i] & 3) << 4) | (view[i + 1] >> 4)];\n const v3 = d[((view[i + 1] & 15) << 2) | (view[i + 2] >> 6)];\n const v4 = d[view[i + 2] & 63];\n res += v1 + v2 + v3 + v4;\n }\n if (len % 3 === 2) {\n res = res.substring(0, res.length - 1);\n } else if (len % 3 === 1) {\n res = res.substring(0, res.length - 2);\n }\n return res;\n }\n static decode(str, dialect) {\n const d = dialect || Base64.URL_SAFE;\n let nbytes = Math.floor(str.length * 0.75);\n for (let i = 0; i !== str.length; ++i) {\n if (str[str.length - i - 1] !== '=') {\n break;\n }\n --nbytes;\n }\n const view = new Uint8Array(nbytes);\n\n let vi = 0;\n let si = 0;\n while (vi < str.length * 0.75) {\n const v1 = d.indexOf(str.charAt(si++));\n const v2 = d.indexOf(str.charAt(si++));\n const v3 = d.indexOf(str.charAt(si++));\n const v4 = d.indexOf(str.charAt(si++));\n view[vi++] = (v1 << 2) | (v2 >> 4);\n view[vi++] = ((v2 & 15) << 4) | (v3 >> 2);\n view[vi++] = ((v3 & 3) << 6) | v4;\n }\n\n return view.buffer;\n }\n}\n\nBase64.STANDARD = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nBase64.URL_SAFE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';\n\n\nclass Hex {\n static decode(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(\"invalid length\");\n }\n const lenInBytes = hex.length / 2;\n return new Uint8Array(lenInBytes).map((e, i) => {\n const offset = i * 2;\n const octet = hex.substring(offset, offset + 2);\n return parseInt(octet, 16);\n });\n }\n static encode(bytes, upper) {\n return Array.from(bytes)\n .map(b => b.toString(16))\n .map(b => upper ? b.toUpperCase() : b)\n .map(o => o.padStart(2, 0))\n .join('');\n }\n}\n\nexport { Base64, Hex };","class ContextInterceptor {\n constructor() {\n const context = document.querySelector(\"meta[name='context']\").getAttribute(\"content\");\n this.context = context.endsWith(\"/\") ? context.substring(0, context.length - 1) : context;\n }\n async intercept(request, chain){\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\n return await chain.proceed(request);\n }\n}\n\nclass CsrfTokenInterceptor {\n constructor() {\n this.k = document.querySelector(\"meta[name='_csrf_header']\").getAttribute(\"content\");\n this.v = document.querySelector(\"meta[name='_csrf']\").getAttribute(\"content\");\n }\n async intercept(request, chain){\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n return await chain.proceed(request);\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n async intercept(request, chain){\n const response = await chain.proceed(request);\n if (response.status !== 401) {\n return response;\n }\n window.location.href = this.redirectUri;\n }\n}\n\nclass Failure extends Error {\n static parseProblems(status, text) {\n const def = [{\n type: \"GENERIC_PROBLEM\",\n context: null,\n reason: `${status}: ${text}`,\n details: null\n }];\n try {\n return text ? JSON.parse(text) : def;\n } catch (e) {\n return def;\n }\n }\n static fromResponse(status, text) {\n return new Failure(status, Failure.parseProblems(status, text));\n }\n constructor(status, problems) {\n super(JSON.stringify(problems));\n this.name = `Failure:${status}`;\n this.status = status;\n this.problems = problems;\n }\n}\n\nclass HttpClientBuilder {\n constructor() {\n this.interceptors = [];\n }\n withContext() {\n this.interceptors.push(new ContextInterceptor());\n return this;\n }\n withCsrfToken() {\n this.interceptors.push(new CsrfTokenInterceptor());\n return this;\n }\n withRedirectOnUnauthorized(redirectUri) {\n this.interceptors.push(new RedirectOnUnauthorizedInterceptor(redirectUri));\n return this;\n }\n withInterceptors(...interceptors) {\n this.interceptors.push(...interceptors);\n return this;\n }\n build() {\n const interceptors = this.interceptors;\n return new HttpClient({interceptors});\n }\n}\n\nclass HttpCall {\n async intercept(request, chain){\n return await fetch(request.resource, request.options);\n } \n}\n\nclass HttpInterceptorChain {\n constructor(interceptors, current){\n this.interceptors = interceptors;\n this.current = current;\n }\n async proceed(request){\n const interceptor = this.interceptors[this.current];\n return await interceptor.intercept(request, new HttpInterceptorChain(this.interceptors, this.current + 1));\n }\n}\n\n\nclass HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor({interceptors}){\n this.interceptors = interceptors || [];\n }\n async exchange(resource, options) {\n const opts = options || {};\n const interceptors = [...this.interceptors, ...opts.interceptors || [], new HttpCall()];\n const chain = new HttpInterceptorChain(interceptors, 0);\n return await chain.proceed({resource, options: opts});\n }\n async fetch(resource, options) {\n const response = await this.exchange(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n } \n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n const text = await response.text();\n return text ? JSON.parse(text) : undefined;\n } catch (e) {\n if (e instanceof Failure) {\n throw e;\n }\n throw new Failure(0, [{\n type: \"CONNECTION_PROBLEM\",\n context: null,\n reason: e.message,\n details: null\n }]);\n }\n }\n}\n\nfunction jsonRequest(method, body, headers){\n return {\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers\n },\n method: method,\n body: JSON.stringify(body) \n }\n}\nfunction jsonPost(body, headers){\n return jsonRequest('POST', body, headers);\n}\nfunction jsonPut(body, headers){\n return jsonRequest('PUT', body, headers);\n}\nfunction jsonPatch(body, headers){\n return jsonRequest('PATCH', body, headers);\n}\n\n\nexport { HttpClient, Failure, jsonRequest, jsonPost, jsonPut, jsonPatch };\n","\nclass Storage {\n constructor(prefix, storage) {\n this.prefix = prefix;\n this.storage = storage;\n }\n save(k, v) {\n this.storage.setItem(`${this.prefix}-${k}`, JSON.stringify(v));\n }\n load(k) {\n const got = this.storage.getItem(`${this.prefix}-${k}`);\n return got === undefined ? undefined : JSON.parse(got);\n }\n remove(k) {\n this.storage.removeItem(`${this.prefix}-${k}`);\n }\n pop(k) {\n const decoded = this.load(k);\n this.remove(k);\n return decoded;\n }\n}\n\nclass LocalStorage extends Storage {\n constructor(prefix) {\n super(prefix, localStorage);\n }\n}\n\nclass SessionStorage extends Storage {\n constructor(prefix) {\n super(prefix, sessionStorage);\n }\n}\n\nclass VersionedStorage {\n constructor(storage, key, dataSupplier){\n this.storage = storage;\n this.key = key;\n this.dataSupplier = dataSupplier;\n this.cache = null;\n \n }\n async load(revision){\n const saved = this.storage.load(this.key);\n if (!!saved && saved.revision === revision) {\n this.cache = saved.value;\n return;\n }\n const freshData = await this.dataSupplier(revision, this.key);\n this.storage.save(this.key, {\n revision: revision,\n value: freshData\n });\n this.cache = freshData;\n }\n data(){\n return this.cache;\n }\n}\n\n\n\nexport {LocalStorage, SessionStorage, VersionedStorage};","import { Base64 } from \"./encodings.mjs\";\nimport { SessionStorage } from \"./storage.mjs\";\n\n\nclass AuthorizationCodeFlow {\n static forKeycloak(clientId, realmBaseUrl, redirectUri){\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, {\n auth: new URL(\"protocol/openid-connect/auth\", realmBaseUrl),\n token: new URL(\"protocol/openid-connect/token\", realmBaseUrl),\n logout: new URL(\"protocol/openid-connect/logout\", realmBaseUrl),\n registration: new URL(\"protocol/openid-connect/registrations\", realmBaseUrl),\n redirect: redirectUri\n }); \n }\n constructor(clientId, scope, {auth, token, registration, logout, redirect}) {\n this.storage = new SessionStorage(clientId);\n this.clientId = clientId;\n this.scope = scope;\n this.uri = {auth, token, registration, logout, redirect};\n }\n async action(uri, additionalParams){\n const pkceVerifier = Base64.encode(crypto.getRandomValues(new Uint8Array(32)).buffer);\n const pkceChallenge = Base64.encode(await crypto.subtle.digest(\"SHA-256\", new TextEncoder().encode(pkceVerifier)));\n const state = this.clientId + Base64.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);\n this.storage.save(AuthorizationCodeFlow.PKCE_AND_STATE_KEY, {\n state: state,\n verifier: pkceVerifier\n });\n const url = new URL(uri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"response_type\", 'code');\n url.searchParams.set(\"scope\", this.scope);\n url.searchParams.set(\"state\", state);\n url.searchParams.set(\"code_challenge\", pkceChallenge);\n url.searchParams.set(\"code_challenge_method\", 'S256');\n Object.entries(additionalParams || {}).forEach(kv => {\n url.searchParams.set(kv[0], kv[1]);\n });\n window.location = url;\n }\n async registration(additionalParams){\n await this.action(this.uri.registration, additionalParams);\n }\n async applicationInitiatedAction(kcAction){\n await this.action(this.uri.auth, {\n kc_action: kcAction\n });\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.uri.redirect);\n const stateAndVerifier = this.storage.pop(AuthorizationCodeFlow.PKCE_AND_STATE_KEY);\n if (stateAndVerifier.state !== state) {\n throw new Error(\"State mismatch\");\n }\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"code\", code],\n [\"grant_type\", \"authorization_code\"],\n [\"code_verifier\", stateAndVerifier.verifier],\n [\"state\", stateAndVerifier.state],\n [\"redirect_uri\", this.uri.redirect]\n ])\n });\n if (!response.ok) {\n const text = await response.text();\n throw new Error(\"Error:\" + response.status + \": \" + text);\n }\n const token = await response.json();\n return new AuthorizationCodeFlowSession(this.clientId, token, this.uri);\n }\n async ensureLoggedIn() {\n const url = new URL(window.location.href);\n const code = url.searchParams.get(\"code\");\n if (code && this.storage.load(AuthorizationCodeFlow.PKCE_AND_STATE_KEY)) {\n //if callback from keycloak and we have our state still stored\n const state = url.searchParams.get(\"state\");\n return await this._tokenExchange(code, state);\n }\n //if not authorized\n await this.action(this.uri.auth, {});\n return null;\n }\n}\nAuthorizationCodeFlow.PKCE_AND_STATE_KEY = \"state-and-verifier\";\n\nclass AuthorizationCodeFlowSession {\n static parseToken(token) {\n const [rawHeader, rawPayload, signature] = token.split(\".\");\n const ut8decoder = new TextDecoder(\"utf-8\");\n return {\n header: JSON.parse(ut8decoder.decode(Base64.decode(rawHeader, Base64.STANDARD))),\n payload: JSON.parse(ut8decoder.decode(Base64.decode(rawPayload, Base64.STANDARD))),\n signature: signature\n };\n } \n constructor(clientId, t, {token, logout, redirect}) {\n this.clientId = clientId;\n this.token = t;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(t.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(t.refresh_token);\n this.uri = { token, logout, redirect }\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"grant_type\", \"refresh_token\"],\n [\"refresh_token\", this.token.refresh_token]\n ])\n });\n if (!response.ok) {\n throw new Error(\"Error:\" + response.status + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n if (this.refreshCallback) {\n this.refreshCallback(this.token, this.accessToken, this.refreshToken);\n }\n }\n shouldBeRefreshed(gracePeriod) {\n const now = new Date().getTime();\n const refreshTokenExpiresAt = this.refreshToken.payload.exp * 1000;\n const expired = now > refreshTokenExpiresAt;\n const shouldRefresh = now - gracePeriod > refreshTokenExpiresAt;\n return !expired && shouldRefresh;\n }\n async refreshIf(gracePeriod) {\n if (!this.shouldBeRefreshed(gracePeriod)) {\n return;\n }\n await this.refresh();\n }\n logout() {\n const url = new URL(this.uri.logout);\n url.searchParams.set(\"post_logout_redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"id_token_hint\", this.token.id_token);\n window.location = url;\n }\n\n bearerToken() {\n return `Bearer ${this.token.access_token}`;\n }\n \n interceptor(gracePeriodBefore, gracePeriodAfter){\n return new AuthorizationCodeFlowInterceptor(this, gracePeriodBefore, gracePeriodAfter); \n }\n}\n\nclass AuthorizationCodeFlowInterceptor {\n constructor(session, gracePeriodBefore, gracePeriodAfter) {\n this.session = session;\n this.gracePeriodBefore = gracePeriodBefore || 2000;\n this.gracePeriodAfter = gracePeriodAfter || 30000;\n }\n async intercept(request, chain) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n request.options.headers = headers;\n const response = await chain.proceed(request);\n await this.session.refreshIf(this.gracePeriodAfter);\n return response;\n }\n}\n\n\nexport {AuthorizationCodeFlow, AuthorizationCodeFlowSession, AuthorizationCodeFlowInterceptor };","\nconst timing = {\n sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n DEBOUNCE_DEFAULT: 0,\n DEBOUNCE_IMMEDIATE: 1,\n debounce(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.DEBOUNCE_DEFAULT;\n\n const later = () => {\n const elapsed = new Date().getTime() - previousTimestamp;\n if (timeoutMs > elapsed) {\n tid = setTimeout(later, timeoutMs - elapsed);\n return;\n }\n tid = null;\n if (opts !== timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n // This check is needed because `func` can recursively invoke `debounced`.\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n args = arguments;\n previousTimestamp = new Date().getTime();\n if (tid === null) {\n tid = setTimeout(later, timeoutMs);\n if (opts === timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n }\n };\n },\n THROTTLE_DEFAULT: 0,\n THROTTLE_NO_LEADING: 1,\n THROTTLE_NO_TRAILING: 2,\n throttle(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.THROTTLE_DEFAULT;\n\n const later = () => {\n previousTimestamp = (opts & timing.THROTTLE_NO_LEADING) ? 0 : new Date().getTime();\n tid = null;\n func(...args);\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n const now = new Date().getTime();\n if (!previousTimestamp && (opts & timing.THROTTLE_NO_LEADING)) {\n previousTimestamp = now;\n }\n const remaining = timeoutMs - (now - previousTimestamp);\n args = arguments;\n if (remaining <= 0 || remaining > timeoutMs) {\n if (tid !== null) {\n clearTimeout(tid);\n tid = null;\n }\n previousTimestamp = now;\n func(...args);\n if (tid === null) {\n args = [];\n }\n } else if (tid === null && !(opts & timing.THROTTLE_NO_TRAILING)) {\n tid = setTimeout(later, remaining);\n }\n };\n\n }\n};\n\n\nexport { timing };","class Deferred {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.reject = reject;\n this.resolve = resolve;\n });\n }\n}\n\n\nexport { Deferred }","class Fragments {\n /**\n * \n * @param {...string} html \n * @returns \n */\n static fromHtml(...html) {\n const el = document.createElement(\"template\");\n el.innerHTML = html.join(\"\");\n return el.content;\n }\n /**\n * \n * @param {DocumentFragment} fragment \n * @returns \n */\n static toHtml(fragment) {\n var el = document.createElement(\"template\");\n el.content.appendChild(fragment);\n return el.innerHTML;\n }\n /**\n * \n * @param {...Node} nodes \n * @returns \n */\n static from(...nodes) {\n const fragment = new DocumentFragment();\n fragment.append(...nodes);\n return fragment;\n }\n /**\n * \n * @param {HTMLElement} el \n * @returns \n */\n static fromChildNodes(el) {\n const fragment = new DocumentFragment();\n fragment.append(...el.childNodes);\n return fragment;\n }\n}\n\nclass Attributes {\n static id = 0;\n /**\n * \n * @param {string} prefix \n * @returns \n */\n static uid(prefix) {\n return `${prefix}-${++Attributes.id}`;\n }\n /**\n * \n * @param {HTMLElement} el \n * @param {string} k \n * @param {string} v \n * @returns \n */\n static defaultValue(el, k, v) {\n if (!el.hasAttribute(k)) {\n el.setAttribute(k, v);\n }\n return el.getAttribute(k);\n }\n /**\n * \n * @param {string} prefix \n * @param {HTMLElement} from \n * @param {HTMLElement} to \n */\n static forward(prefix, from, to) {\n from.getAttributeNames()\n .filter(a => a.startsWith(prefix))\n .forEach(a => {\n const target = a.substring(prefix.length);\n if (target === 'class') {\n to.classList.add(...from.getAttribute(prefix + \"class\").split(\" \").filter(a => a.length));\n return;\n }\n to.setAttribute(target, from.getAttribute(a))\n });\n }\n /**\n * \n * @param {HTMLElement} el \n * @param {stirng} attr \n * @param {boolean} value \n */\n static toggle(el, attr, value) {\n if (value) {\n el.setAttribute(attr, '');\n } else {\n el.removeAttribute(attr);\n }\n }\n static flip(el, attr) {\n if (el.hasAttribute(attr)) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, '');\n }\n }\n\n}\n\nclass LightSlots {\n /**\n * \n * @param {HTMLElement} el \n * @returns the slots\n */\n static from(el) {\n const namedSlots = Array.from(el.childNodes)\n .filter(el => el.matches && el.matches('[slot]'))\n .map(el => {\n el.remove();\n const slot = el.getAttribute(\"slot\");\n el.removeAttribute(\"slot\");\n return [slot, el];\n });\n const slots = {};\n slots.default = new DocumentFragment();\n slots.default.append(...el.childNodes);\n for(const [name,el] of namedSlots){\n if(!(name in slots)){\n slots[name] = new DocumentFragment();\n }\n slots[name].append(el);\n }\n return slots;\n }\n}\n\nclass Nodes {\n static isParsed(el) {\n for (var c = el; c; c = c.parentNode) {\n if (c.nextSibling) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass TemplatesRegistry {\n #idToFragment = {};\n #idToTemplate = {};\n #ec;\n put(k, fragment) {\n if (this.#ec) {\n this.#idToTemplate[k] = Template.fromFragment(fragment, ec);\n return;\n }\n this.#idToFragment[k] = fragment;\n }\n get(k) {\n if (!this.#ec) {\n throw new Error(\"TemplatesRegistry is not configured\");\n }\n const tpl = this.#idToTemplate[k];\n if (!tpl) {\n throw new Error(`missing template: '${k}'`);\n }\n return tpl;\n }\n configure(ec, ...data) {\n this.#ec = ec;\n for (const [k, fragment] of Object.entries(this.#idToFragment)) {\n delete this.#idToFragment[k];\n this.#idToTemplate[k] = ftl.Template.fromFragment(fragment, ec, ...data);\n }\n }\n}\n\n\nclass ElementsRegistry {\n #templates;\n #tagToclass;\n #configured;\n #id = 0;\n constructor() {\n this.#templates = new TemplatesRegistry();\n this.#tagToclass = {};\n }\n defineTemplate(html) {\n if (html === null || html === undefined) {\n return undefined;\n }\n const name = `unnamed-${++this.#id}`;\n this.#templates.put(name, Fragments.fromHtml(html));\n return name;\n }\n define(tag, klass) {\n if (!this.#configured) {\n this.#tagToclass[tag] = klass;\n return this;\n }\n customElements.define(tag, klass);\n return this;\n }\n configure(ec, ...data) {\n this.#templates.configure(ec, ...data);\n for (const [tag, klass] of Object.entries(this.#tagToclass)) {\n customElements.define(tag, klass);\n delete this.#tagToclass[tag];\n }\n this.#configured = true;\n }\n template(k) {\n if (k === null || k === undefined) {\n return undefined;\n }\n return this.#templates.get(k);\n }\n}\n\nconst elements = new ElementsRegistry();\n\n\nclass UpgradeQueue {\n #q = [];\n constructor() {\n document.addEventListener('DOMContentLoaded', this.dequeue.bind(this));\n }\n enqueue(el) {\n if (!this.#q.length) {\n requestAnimationFrame(this.dequeue.bind(this));\n }\n this.#q.push(el);\n }\n dequeue() {\n this.#q.splice(0).forEach(el => el.upgrade());\n }\n}\n\nconst upgradeQueue = new UpgradeQueue();\n\nconst mappers = {\n 'string': attr => attr,\n 'number': attr => attr === null ? null : Number(attr),\n 'presence': attr => attr !== null,\n 'state': attr => attr !== null,\n 'bool': attr => attr === 'true',\n 'json': attr => JSON.parse(attr)\n};\n\nconst ParsedElement = (conf) => {\n const { observed, template, slots } = conf || {};\n\n const attrsAndTypes = (observed || []).map(a => {\n const [attr, maybeType] = a.split(\":\");\n const type = maybeType?.trim() || 'string';\n if (!(type in mappers)) {\n throw new Error(`unsupported attribute type: ${type}`);\n }\n return [attr.trim(), type];\n });\n\n const attrsAndMappers = attrsAndTypes.map(([attr, type]) => [attr, mappers[type]]);\n\n const attrToMapper = Object.fromEntries(attrsAndMappers);\n\n const templateId = elements.defineTemplate(template);\n\n const k = class extends HTMLElement {\n static get observedAttributes() {\n return Object.keys(attrToMapper);\n }\n #parsed;\n #initialized;\n #reflecting;\n #internals;\n constructor(...args) {\n super(...args);\n this.#internals = this.attachInternals();\n }\n get initialized() {\n return this.#initialized;\n }\n get internals() {\n return this.#internals;\n }\n connectedCallback() {\n if (this.#parsed) {\n return;\n }\n if (this.ownerDocument.readyState === 'complete' || Nodes.isParsed(this)) {\n upgradeQueue.enqueue(this);\n return;\n }\n this.ownerDocument.addEventListener('DOMContentLoaded', () => {\n observer.disconnect();\n upgradeQueue.enqueue(this);\n });\n const observer = new MutationObserver(() => {\n if (!Nodes.isParsed(this)) {\n return;\n }\n observer.disconnect();\n upgradeQueue.enqueue(this);\n });\n observer.observe(this.parentNode, { childList: true, subtree: true });\n }\n attributeChangedCallback(attr, oldValue, newValue) {\n if (!this.#parsed || oldValue === newValue) {\n return;\n }\n if (this.#reflecting) {\n return;\n }\n const mapper = attrToMapper[attr];\n this[attr] = mapper(newValue);\n }\n reflect(fn) {\n this.#reflecting = true;\n try {\n fn();\n } finally {\n this.#reflecting = false;\n }\n }\n async upgrade() {\n if (this.#parsed) {\n return;\n }\n this.#parsed = true;\n await this.render(elements.template(templateId), slots ? LightSlots.from(this) : undefined);\n\n for (const [attr, mapper] of attrsAndMappers) {\n if (this.hasAttribute(attr)) {\n this[attr] = mapper(this.getAttribute(attr));\n }\n }\n this.#initialized = true;\n }\n };\n\n for (const [attr, type] of attrsAndTypes.filter(([a, t]) => t === 'state')) {\n Object.defineProperty(k.prototype, attr, {\n enumerable: true,\n configurable: true,\n get() {\n return this.internals.states.has(`--${attr}`);\n },\n set(value) {\n this.internals.states[value ? 'add' : 'delete'](`--${attr}`);\n this.reflect(() => Attributes.toggle(this, attr, value));\n }\n });\n }\n\n return k;\n}\n\nexport { Fragments, Attributes, LightSlots, Nodes, TemplatesRegistry, ElementsRegistry, elements, ParsedElement };\n","/* global Infinity, CSS */\n\nimport { Failure } from \"../http-client.mjs\";\nimport { ParsedElement } from \"./elements.mjs\"\n\nfunction flatten(obj, prefix) {\n return Object.keys(obj).reduce((acc, k) => {\n const pre = prefix.length ? prefix + '.' : '';\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n Object.assign(acc, flatten(obj[k], pre + k));\n } else {\n acc[pre + k] = obj[k];\n }\n return acc;\n }, {});\n}\n\nfunction providePath(result, path, value) {\n const keys = path.split(\".\").map((k) => k.match(/^[0-9]+$/) ? +k : k);\n let current = result;\n let previous = null;\n for (let i = 0; ; ++i) {\n const ckey = keys[i];\n const pkey = keys[i - 1];\n if (Number.isInteger(ckey) && !Array.isArray(current)) {\n if (previous !== null) {\n previous[pkey] = current = [];\n } else {\n result = current = [];\n }\n }\n if (i === keys.length - 1) {\n //when value is undefined we only want to define the property if it's not defined \n current[ckey] = value !== undefined ? value : (ckey in current ? current[ckey] : null);\n return result;\n }\n if (current[ckey] === undefined) {\n current[ckey] = {};\n }\n previous = current;\n current = current[ckey];\n }\n}\n\nfunction extract(el) {\n if (el.getAttribute('type') === 'radio') {\n if (!el.checked) {\n return undefined;\n }\n return el.dataset['fulBindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['fulBindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n if (el.tagName === 'INPUT' || el.tagName === 'SELECT'){\n return el.value === '' || el.value === undefined ? null : el.value; \n }\n return el.value;\n}\n\nfunction mutate(el, raw) {\n if (el.getAttribute('type') === 'radio') {\n el.checked = el.getAttribute('value') === raw;\n return;\n }\n if (el.getAttribute('type') === 'checkbox') {\n el.checked = raw;\n return;\n }\n el.value = raw;\n}\n\nclass Form extends ParsedElement() {\n static IGNORED_CHILDREN_SELECTOR = '.d-none, [hidden]';\n static SCROLL_OFFSET = 50;\n static INVALID_CLASS = 'is-invalid';\n render() {\n const form = document.createElement('form');\n form.replaceChildren(...this.childNodes);\n form.addEventListener('submit', async (e) => {\n e.preventDefault();\n this.spinning(async () => {\n await this.submitter?.(this.values, this);\n });\n })\n this.replaceChildren(form);\n }\n spinner(spin) {\n this.querySelectorAll('ful-spinner').forEach(el => el.hidden = !spin)\n this.querySelectorAll('[type=submit],[type=reset]').forEach(el => el.disabled = spin)\n }\n async remoting(fn) {\n try {\n await fn();\n } catch (e) {\n if (e instanceof Failure) {\n this.errors = e.problems;\n }\n throw e;\n }\n }\n async spinningUntilError(fn) {\n this.spinner(true)\n try {\n await this.remoting(fn);\n } catch(e) {\n this.spinner(false);\n throw e;\n }\n }\n async spinning(fn) {\n this.spinner(true)\n try {\n await this.remoting(fn);\n } finally {\n this.spinner(false);\n }\n }\n set values(vs) {\n for (const [flattenedKey, value] of Object.entries(flatten(vs, ''))) {\n this.querySelectorAll(`[name='${CSS.escape(flattenedKey)}']`).forEach(el => mutate(el, value));\n }\n }\n get values() {\n return Array.from(this.querySelectorAll('[name]'))\n .filter((el) => {\n if (el.dataset['fulBindInclude'] === 'never') {\n return false;\n }\n return el.dataset['fulBindInclude'] === 'always' || el.closest(Form.IGNORED_CHILDREN_SELECTOR) === null;\n })\n .reduce((result, el) => {\n return providePath(result, el.getAttribute('name'), extract(el));\n }, {});\n }\n set errors(es) {\n const fieldErrors = es.filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT');\n const globalErrors = es.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n this.querySelectorAll(`.${Form.INVALID_CLASS}`).forEach(el => el.classList.remove(Form.INVALID_CLASS));\n this.querySelectorAll(\"ful-errors\").forEach(el => {\n el.replaceChildren();\n el.setAttribute('hidden', '');\n });\n fieldErrors.forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n const validationTargetsSelector = `[name='${CSS.escape(name)}'] [ful-validation-target],[name='${CSS.escape(name)}']:not(:has([ful-validation-target]))`;\n this.querySelectorAll(validationTargetsSelector).forEach(input => input.classList.add(Form.INVALID_CLASS));\n const fieldErrorsSelector = `ful-field-error[field='${CSS.escape(name)}']`;\n this.querySelectorAll(fieldErrorsSelector).forEach(el => el.innerText = e.reason);\n });\n this.querySelectorAll(\"ful-errors\").forEach(el => {\n el.innerText = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n el.removeAttribute('hidden');\n }\n });\n if (!this.hasAttribute('scroll-on-error')) {\n return;\n }\n const ys = Array.from(this.querySelectorAll(`[ful-validated-field]:has(.${Form.INVALID_CLASS}) ful-field-error`))\n .map(el => el.parentElement ? el.parentElement : el)\n .map(el => el.getBoundingClientRect().y + window.scrollY);\n const miny = Math.min(...ys);\n if (miny !== Infinity) {\n window.scroll(window.scrollX, miny > Form.SCROLL_OFFSET ? miny - Form.SCROLL_OFFSET : 0);\n }\n }\n}\n\nexport { Form };\n","import { Attributes, ParsedElement } from \"./elements.mjs\"\n\n\nconst INPUT_TEMPLATE = `\n<div ful-validated-field>\n <label data-tpl-for=\"id\" class=\"form-label\">{{{{ slots.default }}}}</label>\n <div class=\"input-group\">\n <span data-tpl-if=\"slots.ibefore\" class=\"input-group-text\">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if=\"slots.before\" data-tpl-remove=\"tag\">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if=\"slots.after\" data-tpl-remove=\"tag\">{{{{ slots.after }}}}</div>\n <span data-tpl-if=\"slots.iafter\" class=\"input-group-text\">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n</div>\n`;\n\nconst makeInputFragment = (el, template, slots) => {\n const input = el.input = slots.input = slots.input?.firstElementChild || (() => {\n const el = document.createElement(\"input\")\n el.classList.add(\"form-control\");\n return el;\n })();\n input.setAttribute('ful-validation-target', '');\n input.addEventListener('change', (evt) => {\n evt.stopPropagation();\n el.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: el.value\n }\n }));\n });\n const id = input.getAttribute('id') || el.getAttribute('input-id') || Attributes.uid('ful-input');\n Attributes.forward('input-', el, slots.input)\n Attributes.defaultValue(slots.input, \"id\", id);\n Attributes.defaultValue(slots.input, \"type\", \"text\");\n Attributes.defaultValue(slots.input, \"placeholder\", \" \");\n const name = el.getAttribute('name');\n return template.render(el, { id, name, slots });\n}\n\nclass Input extends ParsedElement({\n observed: ['value'],\n slots: true,\n template: INPUT_TEMPLATE\n}){\n render(template, slots) {\n const fragment = makeInputFragment(this, template, slots);\n this.replaceChildren(fragment);\n }\n get value() {\n return this.input.value;\n }\n set value(value) {\n this.input.value = value;\n }\n}\n\nexport { makeInputFragment, INPUT_TEMPLATE, Input };\n","import { Fragments, Attributes, ParsedElement } from \"./elements.mjs\"\n\n/**\n * <script src=\"tom-select.complete.js\"></script>\n * <link href=\"tom-select.bootstrap5.css\" rel=\"stylesheet\" />\n */\n\nclass Select extends ParsedElement({\n observed: [\"value\"],\n slots: true,\n template: `\n <div ful-validated-field>\n <label data-tpl-for=\"tsId\" class=\"form-label\">{{{{ slots.default }}}}</label>\n {{{{ input }}}}\n <div class=\"input-group\">\n <span data-tpl-if=\"slots.ibefore\" class=\"input-group-text\">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if=\"slots.before\" data-tpl-remove=\"tag\">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if=\"slots.after\" data-tpl-remove=\"tag\">{{{{ slots.after }}}}</div>\n <span data-tpl-if=\"slots.iafter\" class=\"input-group-text\">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n </div>\n `\n}) {\n constructor(tsConfig) {\n super();\n this.tsConfig = tsConfig;\n }\n render(template, slots) {\n const type = this.getAttribute(\"type\") || 'local';\n const remote = type != 'local';\n const loadOnce = this.getAttribute('load') != 'always';\n const name = this.getAttribute('name');\n const input = slots.input = slots.input?.firstElementChild || (() => {\n return document.createElement(\"select\");\n })();\n input.setAttribute('ful-validation-target', '');\n\n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-select');\n const tsId = `${id}-ts-control`;\n Attributes.forward('input-', this, input)\n Attributes.defaultValue(input, \"id\", id);\n Attributes.defaultValue(input, \"placeholder\", \" \");\n\n //tomselect needs the input to have a parent.\n //se we move the input to a fragment\n slots.input = Fragments.from(input);\n\n this.loaded = !remote;\n\n const tsDefaultConfig = {\n render: {\n loading: () => '<ful-spinner class=\"centered p-2\"></ful-spinner>'\n }\n }\n\n this._remote = remote;\n // we need to await this load in setValue when remote is configured and the option\n // is not loaded yet.\n // tomselect settings.load does not retun a promise as it wraps the configured load function\n // with a debouncer\n this._unwrappedRemoteLoad = async (query, callback) => {\n\n if (!remote || remote && loadOnce && this.loaded) {\n callback();\n return;\n }\n const type = query && query.hasOwnProperty('byId') ? 'id' : 'query';\n const qvalue = type === 'id' ? query.byId : query;\n const data = await (this.#loader ? this.#loader(qvalue, type) : []);\n if (type !== 'id') {\n this.loaded = true;\n }\n callback(data);\n };\n this.ts = new TomSelect(input, Object.assign(remote ? {\n preload: 'focus',\n load: this._unwrappedRemoteLoad,\n shouldLoad: (query) => this.shouldLoad ? this.shouldLoad(query) : true\n } : {}, tsDefaultConfig, this.tsConfig));\n this.ts.on('change', value => {\n this.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: this.value\n }\n }));\n });\n //we remove the input to move it\n input.addEventListener('change', (evt) => {\n evt.stopPropagation();\n });\n input.remove();\n template.renderTo(this, { id, tsId, name, input, slots });\n }\n #loader;\n set loader(l) {\n this.#loader = l;\n // loader can be configured later so we load now\n if (this.hasAttribute('value')) {\n this.value = this.getAttribute(\"value\");\n }\n }\n get value() {\n const v = this.ts.getValue();\n return v === '' ? null : v;\n }\n set value(value) {\n (async () => {\n if (this._remote) {\n await this._unwrappedRemoteLoad({ byId: value }, this.ts.loadCallback.bind(this.ts));\n }\n const silent = true;\n this.ts.setValue(value, silent);\n })();\n }\n}\n\nexport { Select };\n","import { Attributes, Fragments, ParsedElement } from \"./elements.mjs\"\n\nclass RadioGroup extends ParsedElement({\n observed: ['value', 'disabled:state'],\n slots: true,\n template: `\n <fieldset ful-validated-field>\n <legend class=\"form-label\">\n {{{{ slots.default }}}}\n </legend>\n <header data-tpl-if=\"slots.header\">\n {{{{ slots.header }}}}\n </header>\n <section>\n <div class=\"label-wrapper\" data-tpl-each=\"inputsAndLabels\" data-tpl-var=\"ial\">\n <label>\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </div>\n </section>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n <footer data-tpl-if=\"slots.footer\">\n {{{{ slots.footer }}}}\n </footer>\n </fieldset>\n `\n}) {\n render(template, slots) {\n const name = this.getAttribute('name') || Attributes.uid('ful-radiogroup');\n const radioEls = Array.from(slots.default.querySelectorAll('ful-radio'));\n const inputsAndLabels = radioEls.map(el => {\n const input = document.createElement('input');\n input.setAttribute('type', 'radio');\n Attributes.forward('input-', this, input);\n Attributes.forward('', el, input);\n input.setAttribute('name', `${name}-ignore`);\n input.setAttribute('ful-validation-target', '');\n input.dataset['fulBindInclude'] = 'never';\n input.addEventListener('change', evt => {\n evt.stopPropagation();\n //change is not cancelable\n this.dispatchEvent(new CustomEvent('change', { \n bubbles: true, \n cancelable: false, \n detail: {\n value: this.value\n }\n })); \n }); \n const label = Fragments.fromChildNodes(el);\n return [input, label];\n });\n\n radioEls.forEach(el => el.remove());\n template.renderTo(this, {name, slots, inputsAndLabels});\n }\n get value() {\n const checked = this.querySelector('input[type=radio]:checked');\n return checked ? checked.value : null;\n }\n set value(value) {\n this.querySelector(`input[type=radio][value=${CSS.escape(value)}]`).checked = true;\n }\n}\n\n\nexport { RadioGroup };","import { ParsedElement } from \"./elements.mjs\"\n\nclass Spinner extends ParsedElement({\n slots: true,\n template: `\n <div class=\"ful-spinner-wrapper\">\n <div class=\"ful-spinner-text\">{{{{ slots.default }}}}</div>\n <div class=\"ful-spinner-icon\"></div>\n </div>\n `\n}) {\n render(template, slots) {\n template.renderTo(this, { slots });\n }\n}\n\nexport { Spinner };"],"names":[],"mappings":";;;IAEA,MAAM,MAAM,CAAC;IACb,IAAI,OAAO,MAAM,CAAC,WAAW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AQ,IAAI,CAAC,aAAa,CAAC,CAAC,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;IAC3F,KAAK;IACL;;IC9DA,MAAM,OAAO,SAAS,aAAa,CAAC;IACpC,IAAI,KAAK,EAAE,IAAI;IACf,IAAI,QAAQ,EAAE,CAAC;AACf;AACA;AACA;AACA;AACA,IAAI,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE;IAC5B,QAAQ,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3C,KAAK;IACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/ful.iife.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var ful=function(t){"use strict";class e{static encode(t,s){const r=s||e.URL_SAFE,n=t.byteLength,i=new Uint8Array(t);let a="";for(let t=0;t<n;t+=3){a+=r[i[t]>>2]+r[(3&i[t])<<4|i[t+1]>>4]+r[(15&i[t+1])<<2|i[t+2]>>6]+r[63&i[t+2]]}return n%3==2?a=a.substring(0,a.length-1):n%3==1&&(a=a.substring(0,a.length-2)),a}static decode(t,s){const r=s||e.URL_SAFE;let n=Math.floor(.75*t.length);for(let e=0;e!==t.length&&"="===t[t.length-e-1];++e)--n;const i=new Uint8Array(n);let a=0,o=0;for(;a<.75*t.length;){const e=r.indexOf(t.charAt(o++)),s=r.indexOf(t.charAt(o++)),n=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++));i[a++]=e<<2|s>>4,i[a++]=(15&s)<<4|n>>2,i[a++]=(3&n)<<6|l}return i.buffer}}e.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class s{constructor(){const t=document.querySelector("meta[name='context']").getAttribute("content");this.context=t.endsWith("/")?t.substring(0,t.length-1):t}async intercept(t,e){const s=t.resource.startsWith("/")?"":"/";return t.resource=this.context+s+t.resource,await e.proceed(t)}}class r{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}async intercept(t,e){const s=new Headers(t.options.headers);return s.set(this.k,this.v),t.options.headers=s,await e.proceed(t)}}class n{constructor(t){this.redirectUri=t}async intercept(t,e){const s=await e.proceed(t);if(401!==s.status)return s;window.location.href=this.redirectUri}}class i extends Error{static parseProblems(t,e){const s=[{type:"GENERIC_PROBLEM",context:null,reason:`${t}: ${e}`,details:null}];try{return e?JSON.parse(e):s}catch(t){return s}}static fromResponse(t,e){return new i(t,i.parseProblems(t,e))}constructor(t,e){super(JSON.stringify(e)),this.name=`Failure:${t}`,this.status=t,this.problems=e}}class a{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new s),this}withCsrfToken(){return this.interceptors.push(new r),this}withRedirectOnUnauthorized(t){return this.interceptors.push(new n(t)),this}withInterceptors(...t){return this.interceptors.push(...t),this}build(){const t=this.interceptors;return new c({interceptors:t})}}class o{async intercept(t,e){return await fetch(t.resource,t.options)}}class l{constructor(t,e){this.interceptors=t,this.current=e}async proceed(t){const e=this.interceptors[this.current];return await e.intercept(t,new l(this.interceptors,this.current+1))}}class c{static builder(){return new a}constructor({interceptors:t}){this.interceptors=t||[]}async exchange(t,e){const s=e||{},r=[...this.interceptors,...s.interceptors||[],new o],n=new l(r,0);return await n.proceed({resource:t,options:s})}async fetch(t,e){const s=await this.exchange(t,e);if(!s.ok){const t=await s.text();throw i.fromResponse(s.status,t)}return s}async json(t,e){try{const s=await this.fetch(t,e),r=await s.text();return r?JSON.parse(r):void 0}catch(t){if(t instanceof i)throw t;throw new i(0,[{type:"CONNECTION_PROBLEM",context:null,reason:t.message,details:null}])}}}function u(t,e,s){return{headers:{"Content-Type":"application/json",...s},method:t,body:JSON.stringify(e)}}class d{constructor(t,e){this.prefix=t,this.storage=e}save(t,e){this.storage.setItem(`${this.prefix}-${t}`,JSON.stringify(e))}load(t){const e=this.storage.getItem(`${this.prefix}-${t}`);return void 0===e?void 0:JSON.parse(e)}remove(t){this.storage.removeItem(`${this.prefix}-${t}`)}pop(t){const e=this.load(t);return this.remove(t),e}}class h extends d{constructor(t){super(t,sessionStorage)}}class p{static forKeycloak(t,e,s){return new p(t,"openid profile",{auth:new URL("protocol/openid-connect/auth",e),token:new URL("protocol/openid-connect/token",e),logout:new URL("protocol/openid-connect/logout",e),registration:new URL("protocol/openid-connect/registrations",e),redirect:s})}constructor(t,e,{auth:s,token:r,registration:n,logout:i,redirect:a}){this.storage=new h(t),this.clientId=t,this.scope=e,this.uri={auth:s,token:r,registration:n,logout:i,redirect:a}}async action(t,s){const r=e.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),n=e.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(r))),i=this.clientId+e.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(p.PKCE_AND_STATE_KEY,{state:i,verifier:r});const a=new URL(t);a.searchParams.set("client_id",this.clientId),a.searchParams.set("redirect_uri",this.uri.redirect),a.searchParams.set("response_type","code"),a.searchParams.set("scope",this.scope),a.searchParams.set("state",i),a.searchParams.set("code_challenge",n),a.searchParams.set("code_challenge_method","S256"),Object.entries(s||{}).forEach((t=>{a.searchParams.set(t[0],t[1])})),window.location=a}async registration(t){await this.action(this.uri.registration,t)}async applicationInitiatedAction(t){await this.action(this.uri.auth,{kc_action:t})}async _tokenExchange(t,e){window.history.replaceState("","",this.uri.redirect);const s=this.storage.pop(p.PKCE_AND_STATE_KEY);if(s.state!==e)throw new Error("State mismatch");const r=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",t],["grant_type","authorization_code"],["code_verifier",s.verifier],["state",s.state],["redirect_uri",this.uri.redirect]])});if(!r.ok){const t=await r.text();throw new Error("Error:"+r.status+": "+t)}const n=await r.json();return new f(this.clientId,n,this.uri)}async ensureLoggedIn(){const t=new URL(window.location.href),e=t.searchParams.get("code");if(e&&this.storage.load(p.PKCE_AND_STATE_KEY)){const s=t.searchParams.get("state");return await this._tokenExchange(e,s)}return await this.action(this.uri.auth,{}),null}}p.PKCE_AND_STATE_KEY="state-and-verifier";class f{static parseToken(t){const[s,r,n]=t.split("."),i=new TextDecoder("utf-8");return{header:JSON.parse(i.decode(e.decode(s,e.STANDARD))),payload:JSON.parse(i.decode(e.decode(r,e.STANDARD))),signature:n}}constructor(t,e,{token:s,logout:r,redirect:n}){this.clientId=t,this.token=e,this.accessToken=f.parseToken(e.access_token),this.refreshToken=f.parseToken(e.refresh_token),this.uri={token:s,logout:r,redirect:n},this.refreshCallback=null}onRefresh(t){this.refreshCallback=t}async refresh(){const t=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["grant_type","refresh_token"],["refresh_token",this.token.refresh_token]])});if(!t.ok)throw new Error("Error:"+t.status+": "+t.text());const e=await t.json();this.token=e,this.accessToken=f.parseToken(e.access_token),this.refreshToken=f.parseToken(e.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(t){const e=(new Date).getTime(),s=1e3*this.refreshToken.payload.exp;return!(e>s)&&e-t>s}async refreshIf(t){this.shouldBeRefreshed(t)&&await this.refresh()}logout(){const t=new URL(this.uri.logout);t.searchParams.set("post_logout_redirect_uri",this.uri.redirect),t.searchParams.set("id_token_hint",this.token.id_token),window.location=t}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(t,e){return new m(this,t,e)}}class m{constructor(t,e,s){this.session=t,this.gracePeriodBefore=e||2e3,this.gracePeriodAfter=s||3e4}async intercept(t,e){await this.session.refreshIf(this.gracePeriodBefore);const s=new Headers(t.options.headers);s.set("Authorization",this.session.bearerToken()),t.options.headers=s;const r=await e.proceed(t);return await this.session.refreshIf(this.gracePeriodAfter),r}}const g={sleep:t=>new Promise((e=>setTimeout(e,t))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(t,e,s){let r=null,n=[],i=0,a=s||g.DEBOUNCE_DEFAULT;const o=()=>{const s=(new Date).getTime()-i;t>s?r=setTimeout(o,t-s):(r=null,a!==g.DEBOUNCE_IMMEDIATE&&e(...n),null===r&&(n=[]))};return function(){n=arguments,i=(new Date).getTime(),null===r&&(r=setTimeout(o,t),a===g.DEBOUNCE_IMMEDIATE&&e(...n))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(t,e,s){let r=null,n=[],i=0,a=s||g.THROTTLE_DEFAULT;const o=()=>{i=a&g.THROTTLE_NO_LEADING?0:(new Date).getTime(),r=null,e(...n),null===r&&(n=[])};return function(){const s=(new Date).getTime();!i&&a&g.THROTTLE_NO_LEADING&&(i=s);const l=t-(s-i);n=arguments,l<=0||l>t?(null!==r&&(clearTimeout(r),r=null),i=s,e(...n),null===r&&(n=[])):null!==r||a&g.THROTTLE_NO_TRAILING||(r=setTimeout(o,l))}}};class b{static fromHtml(...t){const e=document.createElement("template");return e.innerHTML=t.join(""),e.content}static toHtml(t){var e=document.createElement("template");return e.content.appendChild(t),e.innerHTML}static from(...t){const e=new DocumentFragment;return e.append(...t),e}static fromChildNodes(t){const e=new DocumentFragment;return e.append(...t.childNodes),e}}class w{static id=0;static uid(t){return`${t}-${++w.id}`}static defaultValue(t,e,s){return t.hasAttribute(e)||t.setAttribute(e,s),t.getAttribute(e)}static forward(t,e,s){e.getAttributeNames().filter((e=>e.startsWith(t))).forEach((r=>{const n=r.substring(t.length);"class"!==n?s.setAttribute(n,e.getAttribute(r)):s.classList.add(...e.getAttribute(t+"class").split(" ").filter((t=>t.length)))}))}static toggle(t,e,s){s?t.setAttribute(e,""):t.removeAttribute(e)}static flip(t,e){t.hasAttribute(e)?t.removeAttribute(e):t.setAttribute(e,"")}}class v{static from(t){const e=Array.from(t.childNodes).filter((t=>t.matches&&t.matches("[slot]"))).map((t=>{t.remove();const e=t.getAttribute("slot");return t.removeAttribute("slot"),[e,t]})),s={};s.default=new DocumentFragment,s.default.append(...t.childNodes);for(const[t,r]of e)t in s||(s[t]=new DocumentFragment),s[t].append(r);return s}}class y{static isParsed(t){for(var e=t;e;e=e.parentNode)if(e.nextSibling)return!0;return!1}}class E{#t={};#e={};#s;put(t,e){this.#s?this.#e[t]=Template.fromFragment(e,ec):this.#t[t]=e}get(t){if(!this.#s)throw new Error("TemplatesRegistry is not configured");const e=this.#e[t];if(!e)throw new Error(`missing template: '${t}'`);return e}configure(t){this.#s=t;for(const[e,s]of Object.entries(this.#t))delete this.#t[e],this.#e[e]=ftl.Template.fromFragment(s,t)}}class T{#r;#n;#i;#a=0;constructor(){this.#r=new E,this.#n={}}defineTemplate(t){if(null==t)return;const e="unnamed-"+ ++this.#a;return this.#r.put(e,b.fromHtml(t)),e}template(t){if(null!=t)return this.#r.get(t)}define(t,e){return this.#i?(customElements.define(t,e),this):(this.#n[t]=e,this)}configure(t){this.#r.configure(t);for(const[t,e]of Object.entries(this.#n))customElements.define(t,e),delete this.#n[t];this.#i=!0}}const A=new T;const _=new class{#o=[];constructor(){document.addEventListener("DOMContentLoaded",this.dequeue.bind(this))}enqueue(t){this.#o.length||requestAnimationFrame(this.dequeue.bind(this)),this.#o.push(t)}dequeue(){this.#o.splice(0).forEach((t=>t.upgrade()))}},S={string:t=>t,number:t=>null===t?null:Number(t),presence:t=>null!==t,state:t=>null!==t,bool:t=>"true"===t,json:t=>JSON.parse(t)},L=t=>{const{observed:e,template:s,slots:r}=t||{},n=(e||[]).map((t=>{const[e,s]=t.split(":"),r=s?.trim()||"string";if(!(r in S))throw new Error(`unsupported attribute type: ${r}`);return[e.trim(),r]})),i=n.map((([t,e])=>[t,S[e]])),a=Object.fromEntries(i),o=A.defineTemplate(s),l=class extends HTMLElement{static get observedAttributes(){return Object.keys(a)}#l;#c;#u;#d;constructor(...t){super(...t),this.#d=this.attachInternals()}get initialized(){return this.#c}get internals(){return this.#d}connectedCallback(){if(this.#l)return;if("complete"===this.ownerDocument.readyState||y.isParsed(this))return void _.enqueue(this);this.ownerDocument.addEventListener("DOMContentLoaded",(()=>{t.disconnect(),_.enqueue(this)}));const t=new MutationObserver((()=>{y.isParsed(this)&&(t.disconnect(),_.enqueue(this))}));t.observe(this.parentNode,{childList:!0,subtree:!0})}attributeChangedCallback(t,e,s){if(!this.#l||e===s)return;if(this.#u)return;const r=a[t];this[t]=r(s)}reflect(t){this.#u=!0;try{t()}finally{this.#u=!1}}async upgrade(){if(!this.#l){this.#l=!0,await this.render(A.template(o),r?v.from(this):void 0);for(const[t,e]of i)this.hasAttribute(t)&&(this[t]=e(this.getAttribute(t)));this.#c=!0}}};for(const[t,e]of n.filter((([t,e])=>"state"===e)))Object.defineProperty(l.prototype,t,{enumerable:!0,configurable:!0,get(){return this.internals.states.has(`--${t}`)},set(e){this.internals.states[e?"add":"delete"](`--${t}`),this.reflect((()=>w.toggle(this,t,e)))}});return l};function k(t,e){return Object.keys(t).reduce(((s,r)=>{const n=e.length?e+".":"";return"object"==typeof t[r]&&null!==t[r]?Object.assign(s,k(t[r],n+r)):s[n+r]=t[r],s}),{})}function O(t,e){"radio"!==t.getAttribute("type")?"checkbox"!==t.getAttribute("type")?t.value=e:t.checked=e:t.checked=t.getAttribute("value")===e}class R extends(L()){static IGNORED_CHILDREN_SELECTOR=".d-none, [hidden]";static SCROLL_OFFSET=50;render(){const t=document.createElement("form");t.replaceChildren(...this.childNodes),t.addEventListener("submit",(async t=>{t.preventDefault(),this.spinning((async()=>{await(this.submitter?.(this.values,this))}))})),this.replaceChildren(t)}spinner(t){this.querySelectorAll("ful-spinner").forEach((e=>e.hidden=!t)),this.querySelectorAll("[type=submit],[type=reset]").forEach((e=>e.disabled=t))}async remoting(t){try{await t()}catch(t){throw t instanceof i&&(this.errors=t.problems),t}}async spinningUntilError(t){this.spinner(!0);try{await this.remoting(t)}catch(t){throw this.spinner(!1),t}}async spinning(t){this.spinner(!0);try{await this.remoting(t)}finally{this.spinner(!1)}}set values(t){for(const[e,s]of Object.entries(k(t,"")))this.querySelectorAll(`[name='${CSS.escape(e)}']`).forEach((t=>O(t,s)))}get values(){return Array.from(this.querySelectorAll("[name]")).filter((t=>"never"!==t.dataset.fulBindInclude&&("always"===t.dataset.fulBindInclude||null===t.closest(R.IGNORED_CHILDREN_SELECTOR)))).reduce(((t,e)=>function(t,e,s){const r=e.split(".").map((t=>t.match(/^[0-9]+$/)?+t:t));let n=t,i=null;for(let e=0;;++e){const a=r[e],o=r[e-1];if(Number.isInteger(a)&&!Array.isArray(n)&&(null!==i?i[o]=n=[]:t=n=[]),e===r.length-1)return n[a]=void 0!==s?s:a in n?n[a]:null,t;void 0===n[a]&&(n[a]={}),i=n,n=n[a]}}(t,e.getAttribute("name"),function(t){if("radio"===t.getAttribute("type")){if(!t.checked)return;return"boolean"===t.dataset.fulBindType?"true"===t.value:t.value}return"checkbox"===t.getAttribute("type")?t.checked:"boolean"===t.dataset.fulBindType?t.value?"true"===t.value:null:""===t.value||void 0===t.value?null:t.value}(e))),{})}set errors(t){const e=t.filter((t=>"FIELD_ERROR"===t.type||"INVALID_FORMAT"===t.type)),s=t.filter((t=>"FIELD_ERROR"!==t.type&&"INVALID_FORMAT"!==t.type));if(this.querySelectorAll(".is-invalid").forEach((t=>t.classList.remove("is-invalid"))),this.querySelectorAll("ful-errors").forEach((t=>{t.replaceChildren(),t.setAttribute("hidden","")})),e.forEach((t=>{const e=t.context.replace("[",".").replace("].","."),s=`[name='${CSS.escape(e)}'] [ful-validation-target],[name='${CSS.escape(e)}']:not(:has([ful-validation-target]))`;this.querySelectorAll(s).forEach((t=>t.classList.add("is-invalid")));const r=`ful-field-error[field='${CSS.escape(e)}']`;this.querySelectorAll(r).forEach((e=>e.innerText=t.reason))})),this.querySelectorAll("ful-errors").forEach((t=>{t.innerText=s.map((t=>t.reason)).join("\n"),0!==s.length&&t.removeAttribute("hidden")})),!this.hasAttribute("scroll-on-error"))return;const r=Array.from(this.querySelectorAll("[ful-validated-field]:has(.is-invalid) ful-field-error")).map((t=>t.parentElement?t.parentElement:t)).map((t=>t.getBoundingClientRect().y+window.scrollY)),n=Math.min(...r);n!==1/0&&window.scroll(window.scrollX,n>R.SCROLL_OFFSET?n-R.SCROLL_OFFSET:0)}}const C='\n<div ful-validated-field>\n <label data-tpl-for="id" class="form-label">{{{{ slots.default }}}}</label>\n <div class="input-group">\n <span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if="slots.before" data-tpl-remove="tag">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if="slots.after" data-tpl-remove="tag">{{{{ slots.after }}}}</div>\n <span data-tpl-if="slots.iafter" class="input-group-text">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n</div>\n',I=(t,e,s)=>{const r=t.input=s.input=s.input?.firstElementChild||(()=>{const t=document.createElement("input");return t.classList.add("form-control"),t})();r.setAttribute("ful-validation-target",""),r.addEventListener("change",(e=>{e.stopPropagation(),t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:t.value}}))}));const n=r.getAttribute("id")||t.getAttribute("input-id")||w.uid("ful-input");w.forward("input-",t,s.input),w.defaultValue(s.input,"id",n),w.defaultValue(s.input,"type","text"),w.defaultValue(s.input,"placeholder"," ");const i=t.getAttribute("name");return e.render(t,{id:n,name:i,slots:s})};class N extends(L({observed:["value"],slots:!0,template:C})){render(t,e){const s=I(this,t,e);this.replaceChildren(s)}get value(){return this.input.value}set value(t){this.input.value=t}}class x extends(L({observed:["value"],slots:!0,template:'\n <div ful-validated-field>\n <label data-tpl-for="tsId" class="form-label">{{{{ slots.default }}}}</label>\n {{{{ input }}}}\n <div class="input-group">\n <span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if="slots.before" data-tpl-remove="tag">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if="slots.after" data-tpl-remove="tag">{{{{ slots.after }}}}</div>\n <span data-tpl-if="slots.iafter" class="input-group-text">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n </div>\n '})){constructor(t){super(),this.tsConfig=t}render(t,e){const s="local"!=(this.getAttribute("type")||"local"),r="always"!=this.getAttribute("load"),n=this.getAttribute("name"),i=e.input=e.input?.firstElementChild||document.createElement("select");i.setAttribute("ful-validation-target","");const a=i.getAttribute("id")||this.getAttribute("input-id")||w.uid("ful-select"),o=`${a}-ts-control`;w.forward("input-",this,i),w.defaultValue(i,"id",a),w.defaultValue(i,"placeholder"," "),e.input=b.from(i),this.loaded=!s;this._remote=s,this._unwrappedRemoteLoad=async(t,e)=>{if(!s||s&&r&&this.loaded)return void e();const n=t&&t.hasOwnProperty("byId")?"id":"query",i="id"===n?t.byId:t,a=await(this.#h?this.#h(i,n):[]);"id"!==n&&(this.loaded=!0),e(a)},this.ts=new TomSelect(i,Object.assign(s?{preload:"focus",load:this._unwrappedRemoteLoad,shouldLoad:t=>!this.shouldLoad||this.shouldLoad(t)}:{},{render:{loading:()=>'<ful-spinner class="centered p-2"></ful-spinner>'}},this.tsConfig)),this.ts.on("change",(t=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))})),i.addEventListener("change",(t=>{t.stopPropagation()})),i.remove(),t.renderTo(this,{id:a,tsId:o,name:n,input:i,slots:e})}#h;set loader(t){this.#h=t,this.hasAttribute("value")&&(this.value=this.getAttribute("value"))}get value(){const t=this.ts.getValue();return""===t?null:t}set value(t){(async()=>{this._remote&&await this._unwrappedRemoteLoad({byId:t},this.ts.loadCallback.bind(this.ts));this.ts.setValue(t,!0)})()}}class D extends(L({observed:["value","disabled:state"],slots:!0,template:'\n <fieldset ful-validated-field>\n <legend class="form-label">\n {{{{ slots.default }}}}\n </legend>\n <header data-tpl-if="slots.header">\n {{{{ slots.header }}}}\n </header>\n <section>\n <div class="label-wrapper" data-tpl-each="inputsAndLabels" data-tpl-var="ial">\n <label>\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </div>\n </section>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n <footer data-tpl-if="slots.footer">\n {{{{ slots.footer }}}}\n </footer>\n </fieldset>\n '})){render(t,e){const s=this.getAttribute("name")||w.uid("ful-radiogroup"),r=Array.from(e.default.querySelectorAll("ful-radio")),n=r.map((t=>{const e=document.createElement("input");e.setAttribute("type","radio"),w.forward("input-",this,e),w.forward("",t,e),e.setAttribute("name",`${s}-ignore`),e.setAttribute("ful-validation-target",""),e.dataset.fulBindInclude="never",e.addEventListener("change",(t=>{t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))}));return[e,b.fromChildNodes(t)]}));r.forEach((t=>t.remove())),t.renderTo(this,{name:s,slots:e,inputsAndLabels:n})}get value(){const t=this.querySelector("input[type=radio]:checked");return t?t.value:null}set value(t){this.querySelector(`input[type=radio][value=${CSS.escape(t)}]`).checked=!0}}class P extends(L({slots:!0,template:'\n <div class="ful-spinner-wrapper">\n <div class="ful-spinner-text">{{{{ slots.default }}}}</div>\n <div class="ful-spinner-icon"></div>\n </div>\n '})){render(t,e){t.renderTo(this,{slots:e})}}return t.Attributes=w,t.AuthorizationCodeFlow=p,t.AuthorizationCodeFlowInterceptor=m,t.AuthorizationCodeFlowSession=f,t.Base64=e,t.Deferred=class{constructor(){this.promise=new Promise(((t,e)=>{this.reject=e,this.resolve=t}))}},t.ElementsRegistry=T,t.Failure=i,t.Form=R,t.Fragments=b,t.Hex=class{static decode(t){if(t.length%2!=0)throw new Error("invalid length");const e=t.length/2;return new Uint8Array(e).map(((e,s)=>{const r=2*s,n=t.substring(r,r+2);return parseInt(n,16)}))}static encode(t,e){return Array.from(t).map((t=>t.toString(16))).map((t=>e?t.toUpperCase():t)).map((t=>t.padStart(2,0))).join("")}},t.HttpClient=c,t.INPUT_TEMPLATE=C,t.Input=N,t.LightSlots=v,t.LocalStorage=class extends d{constructor(t){super(t,localStorage)}},t.Nodes=y,t.ParsedElement=L,t.RadioGroup=D,t.Select=x,t.SessionStorage=h,t.Spinner=P,t.TemplatesRegistry=E,t.VersionedStorage=class{constructor(t,e,s){this.storage=t,this.key=e,this.dataSupplier=s,this.cache=null}async load(t){const e=this.storage.load(this.key);if(e&&e.revision===t)return void(this.cache=e.value);const s=await this.dataSupplier(t,this.key);this.storage.save(this.key,{revision:t,value:s}),this.cache=s}data(){return this.cache}},t.elements=A,t.jsonPatch=function(t,e){return u("PATCH",t,e)},t.jsonPost=function(t,e){return u("POST",t,e)},t.jsonPut=function(t,e){return u("PUT",t,e)},t.jsonRequest=u,t.makeInputFragment=I,t.timing=g,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
1
|
+
var ful=function(t){"use strict";class e{static encode(t,s){const r=s||e.URL_SAFE,n=t.byteLength,i=new Uint8Array(t);let a="";for(let t=0;t<n;t+=3){a+=r[i[t]>>2]+r[(3&i[t])<<4|i[t+1]>>4]+r[(15&i[t+1])<<2|i[t+2]>>6]+r[63&i[t+2]]}return n%3==2?a=a.substring(0,a.length-1):n%3==1&&(a=a.substring(0,a.length-2)),a}static decode(t,s){const r=s||e.URL_SAFE;let n=Math.floor(.75*t.length);for(let e=0;e!==t.length&&"="===t[t.length-e-1];++e)--n;const i=new Uint8Array(n);let a=0,o=0;for(;a<.75*t.length;){const e=r.indexOf(t.charAt(o++)),s=r.indexOf(t.charAt(o++)),n=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++));i[a++]=e<<2|s>>4,i[a++]=(15&s)<<4|n>>2,i[a++]=(3&n)<<6|l}return i.buffer}}e.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class s{constructor(){const t=document.querySelector("meta[name='context']").getAttribute("content");this.context=t.endsWith("/")?t.substring(0,t.length-1):t}async intercept(t,e){const s=t.resource.startsWith("/")?"":"/";return t.resource=this.context+s+t.resource,await e.proceed(t)}}class r{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}async intercept(t,e){const s=new Headers(t.options.headers);return s.set(this.k,this.v),t.options.headers=s,await e.proceed(t)}}class n{constructor(t){this.redirectUri=t}async intercept(t,e){const s=await e.proceed(t);if(401!==s.status)return s;window.location.href=this.redirectUri}}class i extends Error{static parseProblems(t,e){const s=[{type:"GENERIC_PROBLEM",context:null,reason:`${t}: ${e}`,details:null}];try{return e?JSON.parse(e):s}catch(t){return s}}static fromResponse(t,e){return new i(t,i.parseProblems(t,e))}constructor(t,e){super(JSON.stringify(e)),this.name=`Failure:${t}`,this.status=t,this.problems=e}}class a{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new s),this}withCsrfToken(){return this.interceptors.push(new r),this}withRedirectOnUnauthorized(t){return this.interceptors.push(new n(t)),this}withInterceptors(...t){return this.interceptors.push(...t),this}build(){const t=this.interceptors;return new c({interceptors:t})}}class o{async intercept(t,e){return await fetch(t.resource,t.options)}}class l{constructor(t,e){this.interceptors=t,this.current=e}async proceed(t){const e=this.interceptors[this.current];return await e.intercept(t,new l(this.interceptors,this.current+1))}}class c{static builder(){return new a}constructor({interceptors:t}){this.interceptors=t||[]}async exchange(t,e){const s=e||{},r=[...this.interceptors,...s.interceptors||[],new o],n=new l(r,0);return await n.proceed({resource:t,options:s})}async fetch(t,e){const s=await this.exchange(t,e);if(!s.ok){const t=await s.text();throw i.fromResponse(s.status,t)}return s}async json(t,e){try{const s=await this.fetch(t,e),r=await s.text();return r?JSON.parse(r):void 0}catch(t){if(t instanceof i)throw t;throw new i(0,[{type:"CONNECTION_PROBLEM",context:null,reason:t.message,details:null}])}}}function u(t,e,s){return{headers:{"Content-Type":"application/json",...s},method:t,body:JSON.stringify(e)}}class d{constructor(t,e){this.prefix=t,this.storage=e}save(t,e){this.storage.setItem(`${this.prefix}-${t}`,JSON.stringify(e))}load(t){const e=this.storage.getItem(`${this.prefix}-${t}`);return void 0===e?void 0:JSON.parse(e)}remove(t){this.storage.removeItem(`${this.prefix}-${t}`)}pop(t){const e=this.load(t);return this.remove(t),e}}class h extends d{constructor(t){super(t,sessionStorage)}}class p{static forKeycloak(t,e,s){return new p(t,"openid profile",{auth:new URL("protocol/openid-connect/auth",e),token:new URL("protocol/openid-connect/token",e),logout:new URL("protocol/openid-connect/logout",e),registration:new URL("protocol/openid-connect/registrations",e),redirect:s})}constructor(t,e,{auth:s,token:r,registration:n,logout:i,redirect:a}){this.storage=new h(t),this.clientId=t,this.scope=e,this.uri={auth:s,token:r,registration:n,logout:i,redirect:a}}async action(t,s){const r=e.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),n=e.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(r))),i=this.clientId+e.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(p.PKCE_AND_STATE_KEY,{state:i,verifier:r});const a=new URL(t);a.searchParams.set("client_id",this.clientId),a.searchParams.set("redirect_uri",this.uri.redirect),a.searchParams.set("response_type","code"),a.searchParams.set("scope",this.scope),a.searchParams.set("state",i),a.searchParams.set("code_challenge",n),a.searchParams.set("code_challenge_method","S256"),Object.entries(s||{}).forEach((t=>{a.searchParams.set(t[0],t[1])})),window.location=a}async registration(t){await this.action(this.uri.registration,t)}async applicationInitiatedAction(t){await this.action(this.uri.auth,{kc_action:t})}async _tokenExchange(t,e){window.history.replaceState("","",this.uri.redirect);const s=this.storage.pop(p.PKCE_AND_STATE_KEY);if(s.state!==e)throw new Error("State mismatch");const r=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",t],["grant_type","authorization_code"],["code_verifier",s.verifier],["state",s.state],["redirect_uri",this.uri.redirect]])});if(!r.ok){const t=await r.text();throw new Error("Error:"+r.status+": "+t)}const n=await r.json();return new f(this.clientId,n,this.uri)}async ensureLoggedIn(){const t=new URL(window.location.href),e=t.searchParams.get("code");if(e&&this.storage.load(p.PKCE_AND_STATE_KEY)){const s=t.searchParams.get("state");return await this._tokenExchange(e,s)}return await this.action(this.uri.auth,{}),null}}p.PKCE_AND_STATE_KEY="state-and-verifier";class f{static parseToken(t){const[s,r,n]=t.split("."),i=new TextDecoder("utf-8");return{header:JSON.parse(i.decode(e.decode(s,e.STANDARD))),payload:JSON.parse(i.decode(e.decode(r,e.STANDARD))),signature:n}}constructor(t,e,{token:s,logout:r,redirect:n}){this.clientId=t,this.token=e,this.accessToken=f.parseToken(e.access_token),this.refreshToken=f.parseToken(e.refresh_token),this.uri={token:s,logout:r,redirect:n},this.refreshCallback=null}onRefresh(t){this.refreshCallback=t}async refresh(){const t=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["grant_type","refresh_token"],["refresh_token",this.token.refresh_token]])});if(!t.ok)throw new Error("Error:"+t.status+": "+t.text());const e=await t.json();this.token=e,this.accessToken=f.parseToken(e.access_token),this.refreshToken=f.parseToken(e.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(t){const e=(new Date).getTime(),s=1e3*this.refreshToken.payload.exp;return!(e>s)&&e-t>s}async refreshIf(t){this.shouldBeRefreshed(t)&&await this.refresh()}logout(){const t=new URL(this.uri.logout);t.searchParams.set("post_logout_redirect_uri",this.uri.redirect),t.searchParams.set("id_token_hint",this.token.id_token),window.location=t}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(t,e){return new m(this,t,e)}}class m{constructor(t,e,s){this.session=t,this.gracePeriodBefore=e||2e3,this.gracePeriodAfter=s||3e4}async intercept(t,e){await this.session.refreshIf(this.gracePeriodBefore);const s=new Headers(t.options.headers);s.set("Authorization",this.session.bearerToken()),t.options.headers=s;const r=await e.proceed(t);return await this.session.refreshIf(this.gracePeriodAfter),r}}const g={sleep:t=>new Promise((e=>setTimeout(e,t))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(t,e,s){let r=null,n=[],i=0,a=s||g.DEBOUNCE_DEFAULT;const o=()=>{const s=(new Date).getTime()-i;t>s?r=setTimeout(o,t-s):(r=null,a!==g.DEBOUNCE_IMMEDIATE&&e(...n),null===r&&(n=[]))};return function(){n=arguments,i=(new Date).getTime(),null===r&&(r=setTimeout(o,t),a===g.DEBOUNCE_IMMEDIATE&&e(...n))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(t,e,s){let r=null,n=[],i=0,a=s||g.THROTTLE_DEFAULT;const o=()=>{i=a&g.THROTTLE_NO_LEADING?0:(new Date).getTime(),r=null,e(...n),null===r&&(n=[])};return function(){const s=(new Date).getTime();!i&&a&g.THROTTLE_NO_LEADING&&(i=s);const l=t-(s-i);n=arguments,l<=0||l>t?(null!==r&&(clearTimeout(r),r=null),i=s,e(...n),null===r&&(n=[])):null!==r||a&g.THROTTLE_NO_TRAILING||(r=setTimeout(o,l))}}};class b{static fromHtml(...t){const e=document.createElement("template");return e.innerHTML=t.join(""),e.content}static toHtml(t){var e=document.createElement("template");return e.content.appendChild(t),e.innerHTML}static from(...t){const e=new DocumentFragment;return e.append(...t),e}static fromChildNodes(t){const e=new DocumentFragment;return e.append(...t.childNodes),e}}class w{static id=0;static uid(t){return`${t}-${++w.id}`}static defaultValue(t,e,s){return t.hasAttribute(e)||t.setAttribute(e,s),t.getAttribute(e)}static forward(t,e,s){e.getAttributeNames().filter((e=>e.startsWith(t))).forEach((r=>{const n=r.substring(t.length);"class"!==n?s.setAttribute(n,e.getAttribute(r)):s.classList.add(...e.getAttribute(t+"class").split(" ").filter((t=>t.length)))}))}static toggle(t,e,s){s?t.setAttribute(e,""):t.removeAttribute(e)}static flip(t,e){t.hasAttribute(e)?t.removeAttribute(e):t.setAttribute(e,"")}}class v{static from(t){const e=Array.from(t.childNodes).filter((t=>t.matches&&t.matches("[slot]"))).map((t=>{t.remove();const e=t.getAttribute("slot");return t.removeAttribute("slot"),[e,t]})),s={};s.default=new DocumentFragment,s.default.append(...t.childNodes);for(const[t,r]of e)t in s||(s[t]=new DocumentFragment),s[t].append(r);return s}}class A{static isParsed(t){for(var e=t;e;e=e.parentNode)if(e.nextSibling)return!0;return!1}}class E{#t={};#e={};#s;put(t,e){this.#s?this.#e[t]=Template.fromFragment(e,ec):this.#t[t]=e}get(t){if(!this.#s)throw new Error("TemplatesRegistry is not configured");const e=this.#e[t];if(!e)throw new Error(`missing template: '${t}'`);return e}configure(t,...e){this.#s=t;for(const[s,r]of Object.entries(this.#t))delete this.#t[s],this.#e[s]=ftl.Template.fromFragment(r,t,...e)}}class y{#r;#n;#i;#a=0;constructor(){this.#r=new E,this.#n={}}defineTemplate(t){if(null==t)return;const e="unnamed-"+ ++this.#a;return this.#r.put(e,b.fromHtml(t)),e}define(t,e){return this.#i?(customElements.define(t,e),this):(this.#n[t]=e,this)}configure(t,...e){this.#r.configure(t,...e);for(const[t,e]of Object.entries(this.#n))customElements.define(t,e),delete this.#n[t];this.#i=!0}template(t){if(null!=t)return this.#r.get(t)}}const T=new y;const S=new class{#o=[];constructor(){document.addEventListener("DOMContentLoaded",this.dequeue.bind(this))}enqueue(t){this.#o.length||requestAnimationFrame(this.dequeue.bind(this)),this.#o.push(t)}dequeue(){this.#o.splice(0).forEach((t=>t.upgrade()))}},_={string:t=>t,number:t=>null===t?null:Number(t),presence:t=>null!==t,state:t=>null!==t,bool:t=>"true"===t,json:t=>JSON.parse(t)},L=t=>{const{observed:e,template:s,slots:r}=t||{},n=(e||[]).map((t=>{const[e,s]=t.split(":"),r=s?.trim()||"string";if(!(r in _))throw new Error(`unsupported attribute type: ${r}`);return[e.trim(),r]})),i=n.map((([t,e])=>[t,_[e]])),a=Object.fromEntries(i),o=T.defineTemplate(s),l=class extends HTMLElement{static get observedAttributes(){return Object.keys(a)}#l;#c;#u;#d;constructor(...t){super(...t),this.#d=this.attachInternals()}get initialized(){return this.#c}get internals(){return this.#d}connectedCallback(){if(this.#l)return;if("complete"===this.ownerDocument.readyState||A.isParsed(this))return void S.enqueue(this);this.ownerDocument.addEventListener("DOMContentLoaded",(()=>{t.disconnect(),S.enqueue(this)}));const t=new MutationObserver((()=>{A.isParsed(this)&&(t.disconnect(),S.enqueue(this))}));t.observe(this.parentNode,{childList:!0,subtree:!0})}attributeChangedCallback(t,e,s){if(!this.#l||e===s)return;if(this.#u)return;const r=a[t];this[t]=r(s)}reflect(t){this.#u=!0;try{t()}finally{this.#u=!1}}async upgrade(){if(!this.#l){this.#l=!0,await this.render(T.template(o),r?v.from(this):void 0);for(const[t,e]of i)this.hasAttribute(t)&&(this[t]=e(this.getAttribute(t)));this.#c=!0}}};for(const[t,e]of n.filter((([t,e])=>"state"===e)))Object.defineProperty(l.prototype,t,{enumerable:!0,configurable:!0,get(){return this.internals.states.has(`--${t}`)},set(e){this.internals.states[e?"add":"delete"](`--${t}`),this.reflect((()=>w.toggle(this,t,e)))}});return l};function k(t,e){return Object.keys(t).reduce(((s,r)=>{const n=e.length?e+".":"";return"object"==typeof t[r]&&null!==t[r]?Object.assign(s,k(t[r],n+r)):s[n+r]=t[r],s}),{})}function I(t,e){"radio"!==t.getAttribute("type")?"checkbox"!==t.getAttribute("type")?t.value=e:t.checked=e:t.checked=t.getAttribute("value")===e}class O extends(L()){static IGNORED_CHILDREN_SELECTOR=".d-none, [hidden]";static SCROLL_OFFSET=50;static INVALID_CLASS="is-invalid";render(){const t=document.createElement("form");t.replaceChildren(...this.childNodes),t.addEventListener("submit",(async t=>{t.preventDefault(),this.spinning((async()=>{await(this.submitter?.(this.values,this))}))})),this.replaceChildren(t)}spinner(t){this.querySelectorAll("ful-spinner").forEach((e=>e.hidden=!t)),this.querySelectorAll("[type=submit],[type=reset]").forEach((e=>e.disabled=t))}async remoting(t){try{await t()}catch(t){throw t instanceof i&&(this.errors=t.problems),t}}async spinningUntilError(t){this.spinner(!0);try{await this.remoting(t)}catch(t){throw this.spinner(!1),t}}async spinning(t){this.spinner(!0);try{await this.remoting(t)}finally{this.spinner(!1)}}set values(t){for(const[e,s]of Object.entries(k(t,"")))this.querySelectorAll(`[name='${CSS.escape(e)}']`).forEach((t=>I(t,s)))}get values(){return Array.from(this.querySelectorAll("[name]")).filter((t=>"never"!==t.dataset.fulBindInclude&&("always"===t.dataset.fulBindInclude||null===t.closest(O.IGNORED_CHILDREN_SELECTOR)))).reduce(((t,e)=>function(t,e,s){const r=e.split(".").map((t=>t.match(/^[0-9]+$/)?+t:t));let n=t,i=null;for(let e=0;;++e){const a=r[e],o=r[e-1];if(Number.isInteger(a)&&!Array.isArray(n)&&(null!==i?i[o]=n=[]:t=n=[]),e===r.length-1)return n[a]=void 0!==s?s:a in n?n[a]:null,t;void 0===n[a]&&(n[a]={}),i=n,n=n[a]}}(t,e.getAttribute("name"),function(t){if("radio"===t.getAttribute("type")){if(!t.checked)return;return"boolean"===t.dataset.fulBindType?"true"===t.value:t.value}return"checkbox"===t.getAttribute("type")?t.checked:"boolean"===t.dataset.fulBindType?t.value?"true"===t.value:null:"INPUT"!==t.tagName&&"SELECT"!==t.tagName||""!==t.value&&void 0!==t.value?t.value:null}(e))),{})}set errors(t){const e=t.filter((t=>"FIELD_ERROR"===t.type||"INVALID_FORMAT"===t.type)),s=t.filter((t=>"FIELD_ERROR"!==t.type&&"INVALID_FORMAT"!==t.type));if(this.querySelectorAll(`.${O.INVALID_CLASS}`).forEach((t=>t.classList.remove(O.INVALID_CLASS))),this.querySelectorAll("ful-errors").forEach((t=>{t.replaceChildren(),t.setAttribute("hidden","")})),e.forEach((t=>{const e=t.context.replace("[",".").replace("].","."),s=`[name='${CSS.escape(e)}'] [ful-validation-target],[name='${CSS.escape(e)}']:not(:has([ful-validation-target]))`;this.querySelectorAll(s).forEach((t=>t.classList.add(O.INVALID_CLASS)));const r=`ful-field-error[field='${CSS.escape(e)}']`;this.querySelectorAll(r).forEach((e=>e.innerText=t.reason))})),this.querySelectorAll("ful-errors").forEach((t=>{t.innerText=s.map((t=>t.reason)).join("\n"),0!==s.length&&t.removeAttribute("hidden")})),!this.hasAttribute("scroll-on-error"))return;const r=Array.from(this.querySelectorAll(`[ful-validated-field]:has(.${O.INVALID_CLASS}) ful-field-error`)).map((t=>t.parentElement?t.parentElement:t)).map((t=>t.getBoundingClientRect().y+window.scrollY)),n=Math.min(...r);n!==1/0&&window.scroll(window.scrollX,n>O.SCROLL_OFFSET?n-O.SCROLL_OFFSET:0)}}const C='\n<div ful-validated-field>\n <label data-tpl-for="id" class="form-label">{{{{ slots.default }}}}</label>\n <div class="input-group">\n <span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if="slots.before" data-tpl-remove="tag">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if="slots.after" data-tpl-remove="tag">{{{{ slots.after }}}}</div>\n <span data-tpl-if="slots.iafter" class="input-group-text">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n</div>\n',N=(t,e,s)=>{const r=t.input=s.input=s.input?.firstElementChild||(()=>{const t=document.createElement("input");return t.classList.add("form-control"),t})();r.setAttribute("ful-validation-target",""),r.addEventListener("change",(e=>{e.stopPropagation(),t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:t.value}}))}));const n=r.getAttribute("id")||t.getAttribute("input-id")||w.uid("ful-input");w.forward("input-",t,s.input),w.defaultValue(s.input,"id",n),w.defaultValue(s.input,"type","text"),w.defaultValue(s.input,"placeholder"," ");const i=t.getAttribute("name");return e.render(t,{id:n,name:i,slots:s})};class R extends(L({observed:["value"],slots:!0,template:C})){render(t,e){const s=N(this,t,e);this.replaceChildren(s)}get value(){return this.input.value}set value(t){this.input.value=t}}class D extends(L({observed:["value"],slots:!0,template:'\n <div ful-validated-field>\n <label data-tpl-for="tsId" class="form-label">{{{{ slots.default }}}}</label>\n {{{{ input }}}}\n <div class="input-group">\n <span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>\n <div data-tpl-if="slots.before" data-tpl-remove="tag">{{{{ slots.before }}}}</div>\n {{{{ slots.input }}}} \n <div data-tpl-if="slots.after" data-tpl-remove="tag">{{{{ slots.after }}}}</div>\n <span data-tpl-if="slots.iafter" class="input-group-text">{{{{ slots.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n </div>\n '})){constructor(t){super(),this.tsConfig=t}render(t,e){const s="local"!=(this.getAttribute("type")||"local"),r="always"!=this.getAttribute("load"),n=this.getAttribute("name"),i=e.input=e.input?.firstElementChild||document.createElement("select");i.setAttribute("ful-validation-target","");const a=i.getAttribute("id")||this.getAttribute("input-id")||w.uid("ful-select"),o=`${a}-ts-control`;w.forward("input-",this,i),w.defaultValue(i,"id",a),w.defaultValue(i,"placeholder"," "),e.input=b.from(i),this.loaded=!s;this._remote=s,this._unwrappedRemoteLoad=async(t,e)=>{if(!s||s&&r&&this.loaded)return void e();const n=t&&t.hasOwnProperty("byId")?"id":"query",i="id"===n?t.byId:t,a=await(this.#h?this.#h(i,n):[]);"id"!==n&&(this.loaded=!0),e(a)},this.ts=new TomSelect(i,Object.assign(s?{preload:"focus",load:this._unwrappedRemoteLoad,shouldLoad:t=>!this.shouldLoad||this.shouldLoad(t)}:{},{render:{loading:()=>'<ful-spinner class="centered p-2"></ful-spinner>'}},this.tsConfig)),this.ts.on("change",(t=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))})),i.addEventListener("change",(t=>{t.stopPropagation()})),i.remove(),t.renderTo(this,{id:a,tsId:o,name:n,input:i,slots:e})}#h;set loader(t){this.#h=t,this.hasAttribute("value")&&(this.value=this.getAttribute("value"))}get value(){const t=this.ts.getValue();return""===t?null:t}set value(t){(async()=>{this._remote&&await this._unwrappedRemoteLoad({byId:t},this.ts.loadCallback.bind(this.ts));this.ts.setValue(t,!0)})()}}class x extends(L({observed:["value","disabled:state"],slots:!0,template:'\n <fieldset ful-validated-field>\n <legend class="form-label">\n {{{{ slots.default }}}}\n </legend>\n <header data-tpl-if="slots.header">\n {{{{ slots.header }}}}\n </header>\n <section>\n <div class="label-wrapper" data-tpl-each="inputsAndLabels" data-tpl-var="ial">\n <label>\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </div>\n </section>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n <footer data-tpl-if="slots.footer">\n {{{{ slots.footer }}}}\n </footer>\n </fieldset>\n '})){render(t,e){const s=this.getAttribute("name")||w.uid("ful-radiogroup"),r=Array.from(e.default.querySelectorAll("ful-radio")),n=r.map((t=>{const e=document.createElement("input");e.setAttribute("type","radio"),w.forward("input-",this,e),w.forward("",t,e),e.setAttribute("name",`${s}-ignore`),e.setAttribute("ful-validation-target",""),e.dataset.fulBindInclude="never",e.addEventListener("change",(t=>{t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))}));return[e,b.fromChildNodes(t)]}));r.forEach((t=>t.remove())),t.renderTo(this,{name:s,slots:e,inputsAndLabels:n})}get value(){const t=this.querySelector("input[type=radio]:checked");return t?t.value:null}set value(t){this.querySelector(`input[type=radio][value=${CSS.escape(t)}]`).checked=!0}}class P extends(L({slots:!0,template:'\n <div class="ful-spinner-wrapper">\n <div class="ful-spinner-text">{{{{ slots.default }}}}</div>\n <div class="ful-spinner-icon"></div>\n </div>\n '})){render(t,e){t.renderTo(this,{slots:e})}}return t.Attributes=w,t.AuthorizationCodeFlow=p,t.AuthorizationCodeFlowInterceptor=m,t.AuthorizationCodeFlowSession=f,t.Base64=e,t.Deferred=class{constructor(){this.promise=new Promise(((t,e)=>{this.reject=e,this.resolve=t}))}},t.ElementsRegistry=y,t.Failure=i,t.Form=O,t.Fragments=b,t.Hex=class{static decode(t){if(t.length%2!=0)throw new Error("invalid length");const e=t.length/2;return new Uint8Array(e).map(((e,s)=>{const r=2*s,n=t.substring(r,r+2);return parseInt(n,16)}))}static encode(t,e){return Array.from(t).map((t=>t.toString(16))).map((t=>e?t.toUpperCase():t)).map((t=>t.padStart(2,0))).join("")}},t.HttpClient=c,t.INPUT_TEMPLATE=C,t.Input=R,t.LightSlots=v,t.LocalStorage=class extends d{constructor(t){super(t,localStorage)}},t.Nodes=A,t.ParsedElement=L,t.RadioGroup=x,t.Select=D,t.SessionStorage=h,t.Spinner=P,t.TemplatesRegistry=E,t.VersionedStorage=class{constructor(t,e,s){this.storage=t,this.key=e,this.dataSupplier=s,this.cache=null}async load(t){const e=this.storage.load(this.key);if(e&&e.revision===t)return void(this.cache=e.value);const s=await this.dataSupplier(t,this.key);this.storage.save(this.key,{revision:t,value:s}),this.cache=s}data(){return this.cache}},t.elements=T,t.jsonPatch=function(t,e){return u("PATCH",t,e)},t.jsonPost=function(t,e){return u("POST",t,e)},t.jsonPut=function(t,e){return u("PUT",t,e)},t.jsonRequest=u,t.makeInputFragment=N,t.timing=g,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
2
2
|
//# sourceMappingURL=ful.iife.min.js.map
|