@descope/web-components-ui 1.0.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/README.md +191 -0
  2. package/dist/cjs/index.cjs.js +95 -0
  3. package/dist/cjs/index.cjs.js.map +1 -0
  4. package/dist/cjs/package.json +1 -0
  5. package/dist/index.esm.js +703 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/umd/146.js +1 -0
  8. package/dist/umd/221.js +37 -0
  9. package/dist/umd/221.js.LICENSE.txt +11 -0
  10. package/dist/umd/511.js +573 -0
  11. package/dist/umd/511.js.LICENSE.txt +23 -0
  12. package/dist/umd/54.js +971 -0
  13. package/dist/umd/54.js.LICENSE.txt +33 -0
  14. package/dist/umd/599.js +1 -0
  15. package/dist/umd/729.js +1 -0
  16. package/dist/umd/840.js +356 -0
  17. package/dist/umd/840.js.LICENSE.txt +61 -0
  18. package/dist/umd/9.js +312 -0
  19. package/dist/umd/9.js.LICENSE.txt +21 -0
  20. package/dist/umd/descope-button-js.js +1 -0
  21. package/dist/umd/descope-combo-js.js +1 -0
  22. package/dist/umd/descope-date-picker-js.js +1 -0
  23. package/dist/umd/descope-text-field-js.js +1 -0
  24. package/dist/umd/index.js +1 -0
  25. package/package.json +45 -0
  26. package/src/components/descope-button.js +39 -0
  27. package/src/components/descope-combo.js +26 -0
  28. package/src/components/descope-date-picker.js +19 -0
  29. package/src/components/descope-text-field.js +36 -0
  30. package/src/componentsHelpers/createProxy/helpers.js +33 -0
  31. package/src/componentsHelpers/createProxy/index.js +82 -0
  32. package/src/componentsHelpers/createStyleMixin/helpers.js +66 -0
  33. package/src/componentsHelpers/createStyleMixin/index.js +22 -0
  34. package/src/componentsHelpers/draggableMixin.js +32 -0
  35. package/src/componentsHelpers/index.js +11 -0
  36. package/src/componentsHelpers/inputMixin.js +46 -0
  37. package/src/constants.js +1 -0
  38. package/src/dev/index.js +6 -0
  39. package/src/helpers.js +8 -0
  40. package/src/index.cjs.js +3 -0
  41. package/src/index.js +8 -0
  42. package/src/index.umd.js +7 -0
  43. package/src/theme/components/button.js +86 -0
  44. package/src/theme/components/index.js +7 -0
  45. package/src/theme/components/textField.js +50 -0
  46. package/src/theme/globals.js +66 -0
  47. package/src/theme/index.js +4 -0
  48. package/src/themeHelpers/index.js +76 -0
  49. package/src/themeHelpers/processColors.js +29 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/constants.js","../src/helpers.js","../src/componentsHelpers/createStyleMixin/helpers.js","../src/componentsHelpers/createStyleMixin/index.js","../src/componentsHelpers/draggableMixin.js","../src/componentsHelpers/createProxy/helpers.js","../src/componentsHelpers/createProxy/index.js","../src/componentsHelpers/inputMixin.js","../src/componentsHelpers/index.js","../src/components/descope-button.js","../src/components/descope-text-field.js","../src/components/descope-combo.js","../src/components/descope-date-picker.js","../src/themeHelpers/index.js","../src/themeHelpers/processColors.js","../src/theme/globals.js","../src/theme/components/button.js","../src/theme/components/textField.js","../src/theme/components/index.js","../src/theme/index.js"],"sourcesContent":["export const DESCOPE_PREFIX = 'descope'","export const kebabCase = str => str\n.replace(/([a-z])([A-Z])/g, \"$1-$2\")\n.replace(/[\\s_.]+/g, '-')\n.toLowerCase();\n\nexport const kebabCaseJoin = (...args) => kebabCase(args.join('-'))\n\nexport const getCssVarName = (...args) => `--${kebabCaseJoin(...args)}`\n","import { getCssVarName, kebabCase } from \"../../helpers\"\n\nconst createCssVarFallback = (first, ...rest) => `var(${first}${rest.length ? ` , ${createCssVarFallback(...rest)}` : ''})`;\n\nconst createCssSelector = (wrappedComponentName = '', relativeSelectorOrSelectorFn = '') => \n typeof relativeSelectorOrSelectorFn === 'function' ? \n relativeSelectorOrSelectorFn(wrappedComponentName) : \n `${wrappedComponentName}${relativeSelectorOrSelectorFn}`;\n\nclass StyleBuilder {\n constructor() {\n this.styleMap = new Map()\n }\n\n add(selector, property, value) {\n if (!this.styleMap.has(selector)) {\n this.styleMap.set(selector, [])\n }\n\n this.styleMap.set(selector, [...this.styleMap.get(selector), { property, value }])\n }\n\n toString() {\n return Array.from(this.styleMap.entries()).reduce((style, [selector, propValArr]) =>\n style += `${selector} { \\n${propValArr.map(({ property, value }) => `${property}: ${value}`).join(';\\n')} \\n}\\n\\n`\n , '')\n }\n}\n\nconst normalizeConfig = (attr, config) => {\n const defaultMapping = { selector: '', property: kebabCase(attr) }\n\n if (!config || !Object.keys(config).length) return [defaultMapping];\n\n if (Array.isArray(config)) return config.map(entry => Object.assign({}, defaultMapping, entry));\n\n return [Object.assign({}, defaultMapping, config)];\n}\n\nexport const createStyle = (componentName, wrappedComponentName, mappings) => {\n const style = new StyleBuilder();\n\n Object.keys(mappings).forEach((attr) => {\n const attrConfig = normalizeConfig(attr, mappings[attr])\n\n const cssVarName = getCssVarName(componentName, attr)\n\n attrConfig.forEach(({ selector: relativeSelectorOrSelectorFn, property }) => {\n style.add(\n createCssSelector(wrappedComponentName, relativeSelectorOrSelectorFn),\n property,\n createCssVarFallback(cssVarName)\n )\n })\n })\n\n return style.toString();\n}\n\nexport const createCssVarsList = (componentName, mappings) =>\n Object.keys(mappings).reduce(\n (acc, attr) => Object.assign(acc, { [attr]: getCssVarName(componentName, attr) }),\n {}\n )\n\nexport const matchHostStyle = (mappingObj) => [mappingObj, {...mappingObj, selector: () => `:host${mappingObj.selector || ''}`}];\n","import { createStyle, createCssVarsList } from './helpers';\n\nexport const createStyleMixin = ({ mappings = {} }) => (superclass) => {\n return class CustomStyleMixinClass extends superclass {\n static get cssVarList() {\n return createCssVarsList(superclass.componentName, mappings)\n }\n \n constructor() {\n super();\n\n this.#createComponentStyle()\n }\n\n #createComponentStyle() {\n const themeStyle = document.createElement('style');\n themeStyle.id = 'style-mixin'\n themeStyle.innerHTML = createStyle(this.componentName, this.wrappedComponentName, mappings)\n this.shadowRoot.prepend(themeStyle);\n }\n }\n}\n","export const draggableMixin = (superclass) =>\n class DraggableMixinClass extends superclass {\n\n #styleEle = null;\n\n static get observedAttributes() {\n const superAttrs = superclass.observedAttributes || []\n return [...superAttrs, 'draggable']\n }\n\n constructor() {\n super();\n\n this.#styleEle = document.createElement('style');\n this.#styleEle.innerText = `${this.wrappedComponentName} { cursor: inherit }`;\n }\n\n #handleDraggableStyle(isDraggable) {\n if (isDraggable) {\n this.shadowRoot.appendChild(this.#styleEle)\n } else {\n this.#styleEle.remove();\n }\n }\n\n attributeChangedCallback(attrName, oldValue, newValue) {\n super.attributeChangedCallback(attrName, oldValue, newValue);\n if (attrName === 'draggable') {\n this.#handleDraggableStyle(newValue === 'true')\n }\n }\n }\n","\nconst observeAttributes = (ele, callback, excludeAttrs) => {\n // sync all attrs on init\n callback(...Array.from(ele.attributes).map(attr => attr.name));\n\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"attributes\" && !excludeAttrs.includes(mutation.attributeName)) {\n callback(mutation.attributeName);\n }\n }\n });\n\n observer.observe(ele, { attributes: true });\n}\n\nconst createSyncAttrsCb = (srcEle, targetEle) => (...attrNames) => {\n attrNames.forEach(attrName => {\n const srcAttrVal = srcEle.getAttribute(attrName);\n if (srcAttrVal !== null) {\n if (targetEle.getAttribute(attrName) !== srcAttrVal) {\n targetEle.setAttribute(attrName, srcAttrVal);\n }\n } else {\n targetEle.removeAttribute(attrName);\n }\n })\n}\n\nexport const syncAttrs = (ele1, ele2, excludeAttrs) => {\n observeAttributes(ele1, createSyncAttrsCb(ele1, ele2), excludeAttrs)\n observeAttributes(ele2, createSyncAttrsCb(ele2, ele1), excludeAttrs)\n}\n","import { syncAttrs } from \"./helpers\";\n\nexport const createProxy = ({ componentName, wrappedEleName, slots = [], style, excludeAttrsSync = [] }) => {\n\n\tconst template = `\n\t\t${style ? `<style id=\"create-proxy\">${style}</style>` : ''}\n\t\t<${wrappedEleName}>\n\t\t<slot></slot>\n\t\t${slots.map((slot) => `<slot name=\"${slot}\" slot=\"${slot}\"></slot>`).join(\"\")}\n\t\t</${wrappedEleName}>\n\t`;\n\n\tclass ProxyElement extends HTMLElement {\n\t\tstatic get componentName() {\n\t\t\treturn componentName;\n\t\t}\n\n\t\tconstructor() {\n\t\t\tsuper().attachShadow({ mode: \"open\" }).innerHTML = template;\n\t\t\tthis.hostElement = this.shadowRoot.host;\n\t\t\tthis.componentName = this.hostElement.tagName.toLowerCase()\n\t\t\tthis.wrappedComponentName = wrappedEleName\n\t\t}\n\n\t\t#checkComponentName() {\n\t\t\tif (this.componentName !== componentName) {\n\t\t\t\tthrow Error(`component name mismatch, expected \"${componentName}\", current \"${actualComponentName}\"`)\n\t\t\t}\n\t\t}\n\n\t\tconnectedCallback() {\n\t\t\tif (this.shadowRoot.isConnected) {\n\t\t\t\tthis.#checkComponentName()\n\n\t\t\t\tthis.proxyElement = this.shadowRoot.querySelector(wrappedEleName);\n\t\t\t\tthis.setAttribute('tabindex', '0');\n\t\t\t\t\n\t\t\t\t// we want to focus on the proxy element when focusing our WC\n\t\t\t\tthis.onfocus = (e) => {\n\t\t\t\t\tthis.proxyElement.focus()\n\t\t\t\t}\n\n\t\t\t\t// `onkeydown` is set on `proxyElement` support proper tab-index navigation\n\t\t\t\t// this support is needed since both proxy host and element catch `focus`/`blur` event\n\t\t\t\t// which causes faulty behaviour.\n\t\t\t\tthis.proxyElement.onkeydown = (e) => {\n\t\t\t\t\tif (e.shiftKey && e.keyCode === 9) {\n\t\t\t\t\t\tthis.removeAttribute('tabindex');\n\t\t\t\t\t\t// We want to defer the action of setting the tab index back\n\t\t\t\t\t\t// so it will happen after focusing the previous element\n\t\t\t\t\t\tsetTimeout(() => this.setAttribute('tabindex', '0'), 0)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.mouseoverCbRef = () => {\n\t\t\t\t\tthis.proxyElement.setAttribute('hover', '');\n\t\t\t\t\tthis.proxyElement.addEventListener('mouseleave', () =>\n\t\t\t\t\t\tthis.proxyElement.removeAttribute('hover'), { once: true })\n\t\t\t\t}\n\n\t\t\t\tthis.proxyElement.addEventListener('mouseover', this.mouseoverCbRef);\n\n\t\t\t\t// sync events\n\t\t\t\tthis.addEventListener = this.proxyElement.addEventListener;\n\n\t\t\t\tsyncAttrs(this.proxyElement, this.hostElement, excludeAttrsSync);\n\t\t\t}\n\t\t}\n\n\t\tdisconnectedCallback() {\n\t\t\tthis.proxyElement.removeEventListener('mouseover', this.mouseoverCbRef)\n\t\t}\n\n\t\tattributeChangedCallback() {\n\t\t\tif (!this.proxyElement) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn ProxyElement;\n};\n","export const inputMixin = (superclass) =>\n class InputMixinClass extends superclass {\n\t\tstatic get formAssociated() {\n\t\t\treturn true;\n\t\t}\n \n #internals\n\n constructor() {\n super();\n\n this.#internals = this.attachInternals();\n\n // this is needed in order to make sure the form input validation is working\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', 0);\n }\n }\n\n formAssociatedCallback() {\n this.setValidity?.();\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // vaadin does not expose all those validation attributes so we need to take it from the input\n // https://github.com/vaadin/web-components/issues/1177\n const input = this.proxyElement.querySelector('input')\n if (!input) throw Error('no input was found')\n\n this.checkValidity = () => input.checkValidity()\n this.reportValidity = () => input.reportValidity()\n this.validity = input.validity\n\n this.setValidity = () => {\n this.#internals.setValidity(input.validity, input.validationMessage);\n }\n\n input.oninput = () => {\n this.value = input.value\n this.setValidity()\n }\n\n }\n }\n","import { DESCOPE_PREFIX } from \"../constants\";\nimport { kebabCaseJoin } from \"../helpers\";\n\nexport const getComponentName = (name) => kebabCaseJoin(DESCOPE_PREFIX, name)\n\nexport const compose = (...fns) => (val) => fns.reduceRight((res, fn) => fn(res), val);\n\nexport { createStyleMixin } from './createStyleMixin'\nexport { draggableMixin } from './draggableMixin'\nexport { createProxy } from './createProxy'\nexport { inputMixin } from './inputMixin'\n","import \"@vaadin/button\";\nimport { getComponentName, createStyleMixin, draggableMixin, createProxy, compose } from \"../componentsHelpers\";\nimport { matchHostStyle } from \"../componentsHelpers/createStyleMixin/helpers\";\n\nconst editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;\n\nconst componentName = getComponentName(\"button\");\n\nconst Button = compose(\n createStyleMixin({\n // todo: do we want to change the mapping structure to this? ['aa', 'aaa', {'color': [{ selector: '::part(label)' }]}],\n mappings: {\n 'backgroundColor': {},\n 'borderRadius': {},\n 'color': { selector: '::part(label)' },\n 'borderColor': {},\n 'borderStyle': {},\n 'borderWidth': {},\n 'fontSize': {},\n 'height': {},\n 'width': matchHostStyle({}),\n 'cursor': {},\n 'padding': {},\n },\n }),\n draggableMixin,\n)(\n createProxy({\n slots: [\"prefix\", \"suffix\"],\n wrappedEleName: \"vaadin-button\",\n style: `${editorOverrides}`,\n excludeAttrsSync: ['tabindex'],\n componentName\n })\n)\n\ncustomElements.define(componentName, Button);\n\nexport { Button }\n","import \"@vaadin/text-field\";\nimport { getComponentName, createStyleMixin, draggableMixin, createProxy, inputMixin, compose } from \"../componentsHelpers\";\n\nconst componentName = getComponentName(\"text-field\")\n\nconst TextField = compose(\n createStyleMixin({\n mappings: {\n 'placeholderColor': { selector: '> input:placeholder-shown', property: 'color' },\n 'color': {},\n 'borderColor': { selector: '::part(input-field)' },\n 'borderWidth': { selector: '::part(input-field)' },\n 'borderStyle': { selector: '::part(input-field)' },\n 'borderRadius': { selector: '::part(input-field)' },\n 'boxShadow': { selector: '::part(input-field)' },\n 'height': { selector: '::part(input-field)' },\n 'padding': { selector: '::part(input-field)' },\n 'backgroundColor': { selector: '::part(input-field)' },\n 'labelColor': { selector: '::part(label)', property: 'color' },\n },\n }),\n draggableMixin,\n inputMixin\n)(\n createProxy({\n slots: [\"prefix\", \"suffix\"],\n wrappedEleName: \"vaadin-text-field\",\n style: ``,\n excludeAttrsSync: ['tabindex'],\n componentName\n })\n);\n\ncustomElements.define(componentName, TextField);\n\nexport { TextField }\n","import { getComponentName } from '../componentsHelpers/index.js';\nimport './descope-button.js'\nimport './descope-text-field.js'\n\nconst template = document.createElement('template')\n\nconst componentName = getComponentName(\"combo\");\n\ntemplate.innerHTML = `\n <descope-button></descope-button>\n <descope-text-field></descope-text-field>\n`\n\nclass Combo extends HTMLElement {\n constructor() {\n super();\n\n this.attachShadow({ mode: 'open' }).appendChild(\n template.content.cloneNode(true)\n );\n }\n}\n\ncustomElements.define(componentName, Combo);\n\nexport { Combo }","import \"@vaadin/date-picker\";\nimport { getComponentName, draggableMixin, createProxy, compose } from \"../componentsHelpers\";\n\nconst componentName = getComponentName(\"date-picker\");\n\nconst DatePicker = compose(\n\tdraggableMixin\n)(\n\tcreateProxy({\n\t\tcomponentName,\n\t\tslots: [\"prefix\", \"suffix\"],\n\t\twrappedEleName: \"vaadin-date-picker\",\n\t\tstyle: ``,\n\t})\n);\n\ncustomElements.define(componentName, DatePicker);\n\nexport { DatePicker }","import merge from \"lodash.merge\";\nimport set from \"lodash.set\";\nimport { DESCOPE_PREFIX } from \"../constants\";\nimport { getCssVarName } from \"../helpers\";\nimport { getComponentName } from \"../componentsHelpers\";\n\nconst getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path)\n\nconst transformTheme = (theme, path, getTransformation) => {\n\treturn Object.entries(theme).reduce((acc, [key, val]) => {\n\t\tif (val?.constructor !== Object) {\n\t\t\treturn merge(acc, getTransformation(path.concat(key), val));\n\t\t} else {\n\t\t\treturn merge(acc, transformTheme(val, [...path, key], getTransformation));\n\t\t}\n\t}, {});\n};\n\nconst stringifyArray = (strArr) => strArr.map((str) => (str.includes(\" \") ? `\"${str}\"` : str)).join(\", \")\n\nexport const themeToCSSVarsObj = (theme) =>\n\ttransformTheme(theme, [], (path, val) => ({\n\t\t[getVarName(path)]: Array.isArray(val) ? stringifyArray(val) : val,\n\t}));\n\nexport const getThemeRefs = (theme, prefix) =>\n\ttransformTheme(theme, [], (path) => set({}, path, `var(${getVarName(prefix ? [prefix, ...path] : path)})`));\n\nexport const globalsThemeToStyle = (theme, themeName = '') => `\n*[data-theme=\"${themeName}\"] {\n\t${Object.entries(themeToCSSVarsObj(theme)).reduce(\n\t(acc, entry) => (acc += `${entry.join(\":\")};\\n`), ''\n)}\n}\n`\n\nconst componentsThemeToStyleObj = (componentsTheme) =>\n\ttransformTheme(componentsTheme, [], (path, val) => {\n\t\tconst [component, ...restPath] = path\n\t\tconst property = restPath.pop()\n\n\t\t// do not start with underscore -> key:value, must have 2 no underscore attrs in a row\n\t\t// starts with underscore -> attribute selector\n\n\t\tconst attrsSelector = restPath.reduce((acc, section, idx) => {\n\t\t\tif (section.startsWith('_')) return acc += `[${section.replace(/^_/, '')}]`;\n\n\t\t\tconst nextSection = restPath[idx + 1];\n\n\t\t\tif (typeof nextSection !== 'string' || nextSection.startsWith('_')) {\n\t\t\t\tconsole.error('theme generator', `your theme structure is invalid, attribute \"${section}\" is followed by \"${nextSection}\" which is not allowed`)\n\t\t\t\treturn acc;\n\t\t\t}\n\n\t\t\treturn acc += `[${section}=\"${restPath.splice(idx + 1, 1).join('')}\"]`;\n\t\t}, '');\n\n\t\tlet selector = `${getComponentName(component)}${attrsSelector}`\n\n\t\treturn {\n\t\t\t[selector]: {\n\t\t\t\t[getVarName([component, property])]: val\n\t\t\t}\n\t\t}\n\t});\n\nexport const componentsThemeToStyle = (componentsTheme, themeName = '') =>\n\tObject.entries(componentsThemeToStyleObj(componentsTheme)).reduce(\n\t\t(acc, [selector, vars]) => (acc += `*[data-theme=\"${themeName}\"] ${selector} { \\n${Object.entries(vars).map(([key, val]) => `${key}: ${val}`).join(';\\n')} \\n}\\n\\n`),\n\t\t''\n\t);\n\nexport const themeToStyle = ({ globals, components }, themeName) => `\n${globalsThemeToStyle(globals, themeName)}\n${componentsThemeToStyle(components, themeName)}\n`","import Color from \"color\";\n\nconst genDark = (c, percentage = 0.5) => c.darken(percentage).hex();\nconst genLight = (c, percentage = 0.5) => c.lighten(percentage).hex();\nconst genContrast = (c, percentage = 0.9) => {\n\tconst isDark = c.isDark();\n\treturn c.mix(Color(isDark ? 'white' : 'black'), percentage).saturate(1).hex();\n};\n\nexport const genColor = (color) => {\n\tconst mainColor = new Color(color.main || color);\n\n\treturn {\n\t\tmain: mainColor.hex(),\n\t\tdark: color.dark || genDark(mainColor),\n\t\tlight: color.light || genLight(mainColor),\n\t\tcontrast: color.contrast || genContrast(mainColor),\n\t}\n}\n\nexport const genColors = (colors) => {\n\treturn Object.keys(colors).reduce((acc, colorName) => {\n\t\tconst currentColor = colors[colorName];\n\n\t\treturn Object.assign(acc, {\n\t\t\t[colorName]: genColor(currentColor),\n\t\t})\n\t}, {});\n};\n","import { genColors } from \"../themeHelpers/processColors\";\n\nexport const colors = genColors({\n\tsurface: {\n\t\tmain: 'lightgray',\n\t\tlight: '#e1e1e1'\n\t},\n\tprimary: \"#0082B5\",\n\tsecondary: \"#7D14EB\",\n\tsuccess: \"green\",\n\terror: \"red\",\n});\n\nconst typography = {\n\th1: {\n\t\tfont: [\"Courier New\", \"Arial\", \"sans-serif\"],\n\t\tweight: \"700\",\n\t\tsize: \"48px\",\n\t},\n\th2: {\n\t\tfont: [\"Courier New\", \"sans-serif\"],\n\t\tweight: \"500\",\n\t\tsize: \"38px\",\n\t},\n\th3: {\n\t\tfont: [\"Courier New\", \"sans-serif\"],\n\t\tweight: \"300\",\n\t\tsize: \"28px\",\n\t},\n};\n\nconst spacing = {\n\txs: '2px',\n\tsm: '4px',\n\tmd: '8px',\n\tlg: '16px',\n\txl: '32px',\n};\n\nconst border = {\n\tsm: \"1px\",\n\tmd: \"2px\",\n\tlg: \"3px\",\n};\n\nconst radius = {\n\tsm: \"5px\",\n\tmd: \"25px\",\n\tlg: \"50px\",\n};\n\nconst shadow = {\n\tcolor: colors.primary.main,\n\tsize: {\n\t\tsm: `0 0 10px`,\n\t},\n};\n\nexport default {\n\tcolors,\n\ttypography,\n\tspacing,\n\tborder,\n\tradius,\n\tshadow,\n};\n","import globals from \"../globals\";\nimport { getThemeRefs } from \"../../themeHelpers\";\n\nconst globalRefs = getThemeRefs(globals);\n\nconst mode = {\n\tprimary: {\n\t\tmain: globalRefs.colors.primary.main,\n\t\tdark: 'darkblue',\n\t\tlight: 'lightblue',\n\t\tcontrast: 'white'\n\t},\n\tsecondary: globalRefs.colors.secondary,\n\tsuccess: globalRefs.colors.success,\n\terror: globalRefs.colors.error,\n\tsurface: globalRefs.colors.surface,\n}\n\nconst colorRef = getThemeRefs(mode.primary, 'button')\n\nconst button = {\n\tborderRadius: globalRefs.radius.lg,\n\tcursor: 'pointer',\n\t\n\tsize: {\n\t\txs: {\n\t\t\theight: '10px',\n\t\t\tfontSize: '10px',\n\t\t\tpadding: `0 ${globalRefs.spacing.xs}`\n\t\t},\n\t\tsm: {\n\t\t\theight: '20px',\n\t\t\tfontSize: '10px',\n\t\t\tpadding: `0 ${globalRefs.spacing.sm}`\n\t\t},\n\t\tmd: {\n\t\t\theight: '30px',\n\t\t\tfontSize: '14px',\n\t\t\tpadding: `0 ${globalRefs.spacing.md}`\n\t\t},\n\t\tlg: {\n\t\t\theight: '40px',\n\t\t\tfontSize: '20px',\n\t\t\tpadding: `0 ${globalRefs.spacing.lg}`\n\t\t},\n\t\txl: {\n\t\t\theight: '50px',\n\t\t\tfontSize: '25px',\n\t\t\tpadding: `0 ${globalRefs.spacing.xl}`\n\t\t},\n\t},\n\n\t_fullwidth: {\n\t\twidth: '100%'\n\t},\n\n\tmode,\n\n\tvariant: {\n\t\tcontained: {\n\t\t\tcolor: colorRef.contrast,\n\t\t\tbackgroundColor: colorRef.main,\n\t\t\t_hover: {\n\t\t\t\tbackgroundColor: colorRef.dark,\n\t\t\t},\n\t\t},\n\t\toutline: {\n\t\t\tcolor: colorRef.main,\n\t\t\tborderColor: colorRef.main,\n\t\t\tborderWidth: '2px',\n\t\t\tborderStyle: 'solid',\n\t\t\t_hover: {\n\t\t\t\tcolor: colorRef.dark,\n\t\t\t\tborderColor: colorRef.dark,\n\t\t\t\t_error: {\n\t\t\t\t\tcolor: 'red',\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tlink: {\n\t\t\tcolor: colorRef.main,\n\t\t},\n\t}\n};\n\nexport default button;\n","import globals from \"../globals\";\nimport { getThemeRefs } from \"../../themeHelpers\";\n\nconst globalRefs = getThemeRefs(globals);\n\nconst textField = {\n borderRadius: globalRefs.radius.lg,\n color: globalRefs.colors.surface.contrast,\n backgroundColor: globalRefs.colors.surface.light,\n borderWidth: globalRefs.border.small,\n borderStyle: 'solid',\n borderColor: globalRefs.colors.surface.dark,\n labelColor: globalRefs.colors.surface.contrast,\n placeholderColor: globalRefs.colors.surface.dark,\n _invalid: {\n backgroundColor: globalRefs.colors.error.light,\n borderColor: globalRefs.colors.error.dark,\n },\n\n size: {\n sm: {\n height: '20px',\n fontSize: '10px',\n padding: `0 ${globalRefs.spacing.xs}`\n },\n md: {\n height: '30px',\n fontSize: '14px',\n padding: `0 ${globalRefs.spacing.sm}`\n },\n lg: {\n height: '40px',\n fontSize: '20px',\n padding: `0 ${globalRefs.spacing.sm}`\n },\n xl: {\n height: '50px',\n fontSize: '25px',\n padding: `0 ${globalRefs.spacing.md}`\n },\n },\n\n _fullwidth: {\n width: '100%'\n },\n};\n\nexport default textField\n\n\n","import button from './button';\nimport textField from './textField';\n\nexport default {\n button,\n textField\n}\n","import globals from \"./globals\"\nimport components from './components';\n\nexport default { globals, components }"],"names":["componentName","globalRefs"],"mappings":";;;;;;;AAAO,MAAM,cAAc,GAAG;;ACAvB,MAAM,SAAS,GAAG,GAAG,IAAI,GAAG;AACnC,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC;AACpC,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC;AACzB,CAAC,WAAW,EAAE,CAAC;AACf;AACO,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC;AACnE;AACO,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC;;ACLtE,MAAM,oBAAoB,GAAG,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AC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC3C,KAAK;AACL,IAAI,EAAE,EAAE;AACR,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,QAAQ,EAAE,MAAM;AACtB,MAAM,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC3C,KAAK;AACL,GAAG;AACH;AACA,EAAE,UAAU,EAAE;AACd,IAAI,KAAK,EAAE,MAAM;AACjB,GAAG;AACH,CAAC;;AC1CD,iBAAe;AACf,IAAI,MAAM;AACV,IAAI,SAAS;AACb;;ACHA,YAAe,EAAE,OAAO,EAAE,UAAU;;;;"}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[146],{3097:(e,t,s)=>{s.d(t,{D:()=>r});const o=(e,t,s)=>{t(...Array.from(e.attributes).map((e=>e.name))),new MutationObserver((e=>{for(const o of e)"attributes"!==o.type||s.includes(o.attributeName)||t(o.attributeName)})).observe(e,{attributes:!0})},n=(e,t)=>(...s)=>{s.forEach((s=>{const o=e.getAttribute(s);null!==o?t.getAttribute(s)!==o&&t.setAttribute(s,o):t.removeAttribute(s)}))},r=({componentName:e,wrappedEleName:t,slots:s=[],style:r,excludeAttrsSync:a=[]})=>{const i=`\n\t\t${r?`<style id="create-proxy">${r}</style>`:""}\n\t\t<${t}>\n\t\t<slot></slot>\n\t\t${s.map((e=>`<slot name="${e}" slot="${e}"></slot>`)).join("")}\n\t\t</${t}>\n\t`;class l extends HTMLElement{static get componentName(){return e}constructor(){super().attachShadow({mode:"open"}).innerHTML=i,this.hostElement=this.shadowRoot.host,this.componentName=this.hostElement.tagName.toLowerCase(),this.wrappedComponentName=t}#e(){if(this.componentName!==e)throw Error(`component name mismatch, expected "${e}", current "${actualComponentName}"`)}connectedCallback(){var e,s,r;this.shadowRoot.isConnected&&(this.#e(),this.proxyElement=this.shadowRoot.querySelector(t),this.setAttribute("tabindex","0"),this.onfocus=e=>{this.proxyElement.focus()},this.proxyElement.onkeydown=e=>{e.shiftKey&&9===e.keyCode&&(this.removeAttribute("tabindex"),setTimeout((()=>this.setAttribute("tabindex","0")),0))},this.mouseoverCbRef=()=>{this.proxyElement.setAttribute("hover",""),this.proxyElement.addEventListener("mouseleave",(()=>this.proxyElement.removeAttribute("hover")),{once:!0})},this.proxyElement.addEventListener("mouseover",this.mouseoverCbRef),this.addEventListener=this.proxyElement.addEventListener,e=this.proxyElement,s=this.hostElement,r=a,o(e,n(e,s),r),o(s,n(s,e),r))}disconnectedCallback(){this.proxyElement.removeEventListener("mouseover",this.mouseoverCbRef)}attributeChangedCallback(){this.proxyElement}}return l}},2089:(e,t,s)=>{s.d(t,{e:()=>o});const o=e=>class extends e{#t=null;static get observedAttributes(){return[...e.observedAttributes||[],"draggable"]}constructor(){super(),this.#t=document.createElement("style"),this.#t.innerText=`${this.wrappedComponentName} { cursor: inherit }`}#s(e){e?this.shadowRoot.appendChild(this.#t):this.#t.remove()}attributeChangedCallback(e,t,s){super.attributeChangedCallback(e,t,s),"draggable"===e&&this.#s("true"===s)}}},2788:(e,t,s)=>{s.d(t,{qC:()=>r,iY:()=>n});var o=s(6225);const n=e=>(0,o.E3)("descope",e),r=(...e)=>t=>e.reduceRight(((e,t)=>t(e)),t)},6225:(e,t,s)=>{s.d(t,{E3:()=>n,GL:()=>o,Tk:()=>r});const o=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),n=(...e)=>o(e.join("-")),r=(...e)=>`--${n(...e)}`}}]);
@@ -0,0 +1,37 @@
1
+ /*! For license information please see 221.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[221],{6221:(t,e,a)=>{a(3787);var s=a(692),i=a(5128);(0,i.hC)("vaadin-text-field",s.J,{moduleId:"lumo-text-field-styles"}),a(3130);var l=a(4241),r=a(1402),n=a(4463),o=a(2743),d=a(3208),u=a(3690);const p=t=>class extends((0,u.L)(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),t||this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}};var h=a(6729);const c=t=>class extends(p(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new d.b(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new h.v(this.inputElement,this._labelController))}};(0,i.hC)("vaadin-text-field",o.J,{moduleId:"vaadin-text-field-styles"});class m extends(c((0,i.Tb)((0,r.S)(l.H3)))){static get is(){return"vaadin-text-field"}static get template(){return l.dy`
3
+ <style>
4
+ [part='input-field'] {
5
+ flex-grow: 0;
6
+ }
7
+ </style>
8
+
9
+ <div class="vaadin-field-container">
10
+ <div part="label">
11
+ <slot name="label"></slot>
12
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
13
+ </div>
14
+
15
+ <vaadin-input-container
16
+ part="input-field"
17
+ readonly="[[readonly]]"
18
+ disabled="[[disabled]]"
19
+ invalid="[[invalid]]"
20
+ theme$="[[_theme]]"
21
+ >
22
+ <slot name="prefix" slot="prefix"></slot>
23
+ <slot name="input"></slot>
24
+ <slot name="suffix" slot="suffix"></slot>
25
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
26
+ </vaadin-input-container>
27
+
28
+ <div part="helper-text">
29
+ <slot name="helper"></slot>
30
+ </div>
31
+
32
+ <div part="error-message">
33
+ <slot name="error-message"></slot>
34
+ </div>
35
+ </div>
36
+ <slot name="tooltip"></slot>
37
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new n.f(this),this._tooltipController.setPosition("top"),this.addController(this._tooltipController)}}customElements.define(m.is,m)}}]);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+
7
+ /**
8
+ * @license
9
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
10
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11
+ */