smoothly 1.0.0-alpha.162 → 1.0.0-alpha.164

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.
Files changed (34) hide show
  1. package/dist/cjs/index.cjs.js +1 -0
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/cjs/smoothly-accordion_74.cjs.entry.js +5 -5
  4. package/dist/cjs/smoothly-accordion_74.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/input/demo/index.js +2 -2
  6. package/dist/collection/components/input/demo/index.js.map +1 -1
  7. package/dist/collection/components/input/range/index.js +3 -3
  8. package/dist/collection/components/input/range/index.js.map +1 -1
  9. package/dist/collection/components/input/range/style.css +22 -21
  10. package/dist/collection/smoothly.js +1 -1
  11. package/dist/collection/smoothly.js.map +1 -1
  12. package/dist/custom-elements/index.js +6 -5
  13. package/dist/custom-elements/index.js.map +1 -1
  14. package/dist/esm/{Data-0f6b4023.js → Data-71f4341b.js} +2 -2
  15. package/dist/esm/{Data-0f6b4023.js.map → Data-71f4341b.js.map} +1 -1
  16. package/dist/esm/index.js +2 -1
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/smoothly-accordion_74.entry.js +6 -6
  19. package/dist/esm/smoothly-accordion_74.entry.js.map +1 -1
  20. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  21. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  22. package/dist/smoothly/index.esm.js +1 -1
  23. package/dist/smoothly/index.esm.js.map +1 -1
  24. package/dist/smoothly/{p-32344e94.entry.js → p-2f3cccfe.entry.js} +2 -2
  25. package/dist/smoothly/{p-d146023b.js → p-4df4f838.js} +2 -2
  26. package/dist/smoothly/{p-9330b3f0.entry.js → p-8f6f15f0.entry.js} +2 -2
  27. package/dist/smoothly/{p-2140e6f1.entry.js → p-d80daa23.entry.js} +2 -2
  28. package/dist/smoothly/{p-2140e6f1.entry.js.map → p-d80daa23.entry.js.map} +1 -1
  29. package/dist/smoothly/smoothly.esm.js +1 -1
  30. package/dist/types/smoothly.d.ts +1 -1
  31. package/package.json +1 -1
  32. /package/dist/smoothly/{p-32344e94.entry.js.map → p-2f3cccfe.entry.js.map} +0 -0
  33. /package/dist/smoothly/{p-d146023b.js.map → p-4df4f838.js.map} +0 -0
  34. /package/dist/smoothly/{p-9330b3f0.entry.js.map → p-8f6f15f0.entry.js.map} +0 -0
@@ -404,6 +404,7 @@ const smoothly = /*#__PURE__*/Object.freeze({
404
404
  Notice: redirect.Notice,
405
405
  Trigger: Data.Trigger,
406
406
  Listenable: Data.Listenable,
407
+ get Icon () { return Data.Icon; },
407
408
  StateBase: StateBase,
408
409
  get Data () { return Data.Data; },
409
410
  redirect: redirect.redirect,
@@ -1 +1 @@
1
- {"file":"index.cjs.js","mappings":";;;;;;;;MAEsB,gBAAgB;EAErC,iBAAwB;EAExB,WAAW,KAAK;IACf,gBAAgB,CAAC,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAA;IACnF,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE;MACjC,gBAAgB,CAAC,UAAU,GAAGA,eAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;MACrD,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;KACrE;IACD,OAAO,gBAAgB,CAAC,UAAU,CAAA;GAClC;;;MCXoB,SAAS;EAI9B,YAAsB,GAAG,UAAkD;IAH3D,eAAU,GAAG,IAAIC,eAAU,EAAuB,CAAA;IAIjE,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAI,SAAe,CAAA;GACvE;;;ICJe,GAAG,CAUnB;AAVD,WAAiB,GAAG;EACnB,SAAgB,EAAE,CAAC,KAAgB;IAClC,MAAM,UAAU,GAAG,CAAC,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,C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CgB,QAAQ,KAAR,QAAQ;;;;;;;;;;;;;;;;;;;","names":["Identifier","Listenable","ColorName","ColorCommaRgb","ColorHex","ColorHsl","ColorRgb","ColorNames","CosmeticColor"],"sources":["./src/model/ClientIdentifier.ts","./src/model/StateBase.ts","./src/utilities/Cosmetic/Color/Hex.ts","./src/utilities/Cosmetic/Color/Hsl.ts","./src/utilities/Cosmetic/Color/Name.ts","./src/utilities/Cosmetic/Color/Rgb.ts","./src/utilities/Cosmetic/Color/CommaRgb.ts","./src/utilities/Cosmetic/Color/index.ts","./src/utilities/Cosmetic/index.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n","import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n","/**\n * Hex formated as \"#xxxxxx\" or \"#xxx\" where x is 0-9, or a-f or A-F\n */\nexport type Hex = string\nexport namespace Hex {\n\texport function is(value: any | Hex): value is Hex {\n\t\tconst matchArray = (typeof value == \"string\" && value.match(/[0-9a-fA-F]/g)) || undefined\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 3 &&\n\t\t\tvalue[0] == \"#\" &&\n\t\t\t(matchArray?.length == 3 || matchArray?.length == 6)\n\t\t)\n\t}\n}\n","/**\n * Hsl formated as \"hsl(H,S%,L%)\" with no spaces included\n * \t\twith limit: 0 <= H <= 360\n * \t\twith limit: 0 <= S,L <= 100\n */\nexport type Hsl = string\nexport namespace Hsl {\n\texport function is(value: any | Hsl): value is Hsl {\n\t\tconst values = typeof value == \"string\" && value.length > 11 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 11 &&\n\t\t\tvalue.substr(0, 4) == \"hsl(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every((single: string, index: number) => {\n\t\t\t\tlet result = false\n\t\t\t\tif (index == 0)\n\t\t\t\t\tresult =\n\t\t\t\t\t\t!Number.isNaN(single) &&\n\t\t\t\t\t\tsingle.match(/[0-9]/g)?.length == single.length &&\n\t\t\t\t\t\tNumber(single) >= 0 &&\n\t\t\t\t\t\tNumber(single) <= 360\n\t\t\t\telse {\n\t\t\t\t\tconst number: string = single.substr(0, single.length - 1)\n\t\t\t\t\tresult =\n\t\t\t\t\t\tsingle[single.length - 1] == \"%\" &&\n\t\t\t\t\t\t!Number.isNaN(number) &&\n\t\t\t\t\t\tnumber.match(/[0-9]/g)?.length == number.length &&\n\t\t\t\t\t\tNumber(number) >= 0 &&\n\t\t\t\t\t\tNumber(number) <= 100\n\t\t\t\t}\n\t\t\t\treturn result\n\t\t\t})\n\t\t)\n\t}\n}\n","export const Names = <const>{\n\taliceblue: \"#f0f8ff\",\n\tantiquewhite: \"#faebd7\",\n\taqua: \"#00ffff\",\n\taquamarine: \"#7fffd4\",\n\tazure: \"#f0ffff\",\n\tbeige: \"#f5f5dc\",\n\tbisque: \"#ffe4c4\",\n\tblack: \"#000000\",\n\tblanchedalmond: \"#ffebcd\",\n\tblue: \"#0000ff\",\n\tblueviolet: \"#8a2be2\",\n\tbrown: \"#a52a2a\",\n\tburlywood: \"#deb887\",\n\tcadetblue: \"#5f9ea0\",\n\tchartreuse: \"#7fff00\",\n\tchocolate: \"#d2691e\",\n\tcoral: \"#ff7f50\",\n\tcornflowerblue: \"#6495ed\",\n\tcornsilk: \"#fff8dc\",\n\tcrimson: \"#dc143c\",\n\tcyan: \"#00ffff\",\n\tdarkblue: \"#00008b\",\n\tdarkcyan: \"#008b8b\",\n\tdarkgoldenrod: \"#b8860b\",\n\tdarkgray: \"#a9a9a9\",\n\tdarkgreen: \"#006400\",\n\tdarkgrey: \"#a9a9a9\",\n\tdarkkhaki: \"#bdb76b\",\n\tdarkmagenta: \"#8b008b\",\n\tdarkolivegreen: \"#556b2f\",\n\tdarkorange: \"#ff8c00\",\n\tdarkorchid: \"#9932cc\",\n\tdarkred: \"#8b0000\",\n\tdarksalmon: \"#e9967a\",\n\tdarkseagreen: \"#8fbc8f\",\n\tdarkslateblue: \"#483d8b\",\n\tdarkslategray: \"#2f4f4f\",\n\tdarkslategrey: \"#2f4f4f\",\n\tdarkturquoise: \"#00ced1\",\n\tdarkviolet: \"#9400d3\",\n\tdeeppink: \"#ff1493\",\n\tdeepskyblue: \"#00bfff\",\n\tdimgray: \"#696969\",\n\tdimgrey: \"#696969\",\n\tdodgerblue: \"#1e90ff\",\n\tfirebrick: \"#b22222\",\n\tfloralwhite: \"#fffaf0\",\n\tforestgreen: \"#228b22\",\n\tfuchsia: \"#ff00ff\",\n\tgainsboro: \"#dcdcdc\",\n\tghostwhite: \"#f8f8ff\",\n\tgoldenrod: \"#daa520\",\n\tgold: \"#ffd700\",\n\tgray: \"#808080\",\n\tgreen: \"#008000\",\n\tgreenyellow: \"#adff2f\",\n\tgrey: \"#808080\",\n\thoneydew: \"#f0fff0\",\n\thotpink: \"#ff69b4\",\n\tindianred: \"#cd5c5c\",\n\tindigo: \"#4b0082\",\n\tivory: \"#fffff0\",\n\tkhaki: \"#f0e68c\",\n\tlavenderblush: \"#fff0f5\",\n\tlavender: \"#e6e6fa\",\n\tlawngreen: \"#7cfc00\",\n\tlemonchiffon: \"#fffacd\",\n\tlightblue: \"#add8e6\",\n\tlightcoral: \"#f08080\",\n\tlightcyan: \"#e0ffff\",\n\tlightgoldenrodyellow: \"#fafad2\",\n\tlightgray: \"#d3d3d3\",\n\tlightgreen: \"#90ee90\",\n\tlightgrey: \"#d3d3d3\",\n\tlightpink: \"#ffb6c1\",\n\tlightsalmon: \"#ffa07a\",\n\tlightseagreen: \"#20b2aa\",\n\tlightskyblue: \"#87cefa\",\n\tlightslategray: \"#778899\",\n\tlightslategrey: \"#778899\",\n\tlightsteelblue: \"#b0c4de\",\n\tlightyellow: \"#ffffe0\",\n\tlime: \"#00ff00\",\n\tlimegreen: \"#32cd32\",\n\tlinen: \"#faf0e6\",\n\tmagenta: \"#ff00ff\",\n\tmaroon: \"#800000\",\n\tmediumaquamarine: \"#66cdaa\",\n\tmediumblue: \"#0000cd\",\n\tmediumorchid: \"#ba55d3\",\n\tmediumpurple: \"#9370db\",\n\tmediumseagreen: \"#3cb371\",\n\tmediumslateblue: \"#7b68ee\",\n\tmediumspringgreen: \"#00fa9a\",\n\tmediumturquoise: \"#48d1cc\",\n\tmediumvioletred: \"#c71585\",\n\tmidnightblue: \"#191970\",\n\tmintcream: \"#f5fffa\",\n\tmistyrose: \"#ffe4e1\",\n\tmoccasin: \"#ffe4b5\",\n\tnavajowhite: \"#ffdead\",\n\tnavy: \"#000080\",\n\toldlace: \"#fdf5e6\",\n\tolive: \"#808000\",\n\tolivedrab: \"#6b8e23\",\n\torange: \"#ffa500\",\n\torangered: \"#ff4500\",\n\torchid: \"#da70d6\",\n\tpalegoldenrod: \"#eee8aa\",\n\tpalegreen: \"#98fb98\",\n\tpaleturquoise: \"#afeeee\",\n\tpalevioletred: \"#db7093\",\n\tpapayawhip: \"#ffefd5\",\n\tpeachpuff: \"#ffdab9\",\n\tperu: \"#cd853f\",\n\tpink: \"#ffc0cb\",\n\tplum: \"#dda0dd\",\n\tpowderblue: \"#b0e0e6\",\n\tpurple: \"#800080\",\n\trebeccapurple: \"#663399\",\n\tred: \"#ff0000\",\n\trosybrown: \"#bc8f8f\",\n\troyalblue: \"#4169e1\",\n\tsaddlebrown: \"#8b4513\",\n\tsalmon: \"#fa8072\",\n\tsandybrown: \"#f4a460\",\n\tseagreen: \"#2e8b57\",\n\tseashell: \"#fff5ee\",\n\tsienna: \"#a0522d\",\n\tsilver: \"#c0c0c0\",\n\tskyblue: \"#87ceeb\",\n\tslateblue: \"#6a5acd\",\n\tslategray: \"#708090\",\n\tslategrey: \"#708090\",\n\tsnow: \"#fffafa\",\n\tspringgreen: \"#00ff7f\",\n\tsteelblue: \"#4682b4\",\n\ttan: \"#d2b48c\",\n\tteal: \"#008080\",\n\tthistle: \"#d8bfd8\",\n\ttomato: \"#ff6347\",\n\tturquoise: \"#40e0d0\",\n\tviolet: \"#ee82ee\",\n\twheat: \"#f5deb3\",\n\twhite: \"#ffffff\",\n\twhitesmoke: \"#f5f5f5\",\n\tyellow: \"#ffff00\",\n\tyellowgreen: \"#9acd32\",\n}\nexport type Name = keyof typeof Names\nexport namespace Name {\n\texport const types = () => Object.keys(Names)\n\texport function is(value: any | Name): value is Name {\n\t\treturn typeof value == \"string\" && types().includes(value.toLowerCase())\n\t}\n}\n","/**\n * Formated as \"rgb(r,g,b)\", with no spaces included\n */\nexport type Rgb = string\nexport namespace Rgb {\n\texport function is(value: any | Rgb): value is Rgb {\n\t\tconst values = typeof value == \"string\" && value.length > 9 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 9 &&\n\t\t\tvalue.substr(0, 4) == \"rgb(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n}\n","import { Hex } from \"./Hex\"\nimport { Hsl } from \"./Hsl\"\nimport { Name as ColorName, Names } from \"./Name\"\nimport { Rgb } from \"./Rgb\"\n\n/**\n * Formated as \"r,g,b\", with no spaces included\n */\nexport type CommaRgb = string\nexport namespace CommaRgb {\n\texport function is(value: any | CommaRgb): value is CommaRgb {\n\t\tconst values = typeof value == \"string\" ? value.split(\",\") : []\n\t\treturn (\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n\texport function from(color: any): CommaRgb | undefined {\n\t\tlet result: CommaRgb | undefined\n\t\tconst colorWithoutSpace: CommaRgb | undefined =\n\t\t\ttypeof color == \"string\" ? color.replace(/ /g, \"\").toLowerCase() : undefined\n\t\tif (!colorWithoutSpace)\n\t\t\tresult = undefined\n\t\telse if (CommaRgb.is(colorWithoutSpace))\n\t\t\tresult = colorWithoutSpace\n\t\telse if (Hex.is(colorWithoutSpace))\n\t\t\tresult = fromHex(colorWithoutSpace)\n\t\telse if (Rgb.is(colorWithoutSpace))\n\t\t\tresult = fromRgb(colorWithoutSpace)\n\t\telse if (ColorName.is(colorWithoutSpace))\n\t\t\tresult = fromHex(Names[colorWithoutSpace])\n\t\telse if (Hsl.is(colorWithoutSpace))\n\t\t\tresult = fromHsl(colorWithoutSpace)\n\t\treturn result\n\t}\n\texport function fromHex(hex: Hex): CommaRgb {\n\t\tlet result: CommaRgb = \"0,0,0\"\n\t\tif (hex.length == 7)\n\t\t\tresult = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`\n\t\telse if (hex.length == 4)\n\t\t\tresult = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`)\n\t\treturn result\n\t}\n\texport function fromRgb(rgb: Rgb): CommaRgb {\n\t\treturn rgb.substring(4, rgb.length - 1)\n\t}\n\texport function fromHsl(hsl: Hsl): CommaRgb {\n\t\tlet result: CommaRgb = \"\"\n\t\tlet h, s, l: number\n\t\tlet r, g, b: number\n\t\tconst HSL: number[] = hsl\n\t\t\t.substring(4, hsl.length - 1)\n\t\t\t.split(\",\")\n\t\t\t.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)))\n\t\tif (HSL.length == 3) {\n\t\t\th = HSL[0] / 360\n\t\t\ts = HSL[1] / 100\n\t\t\tl = HSL[2] / 100\n\t\t\tif (s == 0)\n\t\t\t\tr = g = b = l\n\t\t\telse {\n\t\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s\n\t\t\t\tconst p = 2 * l - q\n\t\t\t\tr = hue2rgb(p, q, h + 1 / 3)\n\t\t\t\tg = hue2rgb(p, q, h)\n\t\t\t\tb = hue2rgb(p, q, h - 1 / 3)\n\t\t\t}\n\t\t\tresult = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`\n\t\t}\n\t\treturn result\n\t}\n\tfunction hue2rgb(p: number, q: number, t: number): number {\n\t\tlet result = p\n\t\tif (t < 0)\n\t\t\tt += 1\n\t\tif (t > 1)\n\t\t\tt -= 1\n\t\tif (t < 1 / 6)\n\t\t\tresult = p + (q - p) * 6 * t\n\t\telse if (t < 1 / 2)\n\t\t\tresult = q\n\t\telse if (t < 2 / 3)\n\t\t\tresult = p + (q - p) * (2 / 3 - t) * 6\n\t\treturn result\n\t}\n}\n","import { CommaRgb as ColorCommaRgb } from \"./CommaRgb\"\nimport { Hex as ColorHex } from \"./Hex\"\nimport { Hsl as ColorHsl } from \"./Hsl\"\nimport { Name as ColorName, Names as ColorNames } from \"./Name\"\nimport { Rgb as ColorRgb } from \"./Rgb\"\n\nexport type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb\nexport namespace Color {\n\texport function is(value: any | Color): value is Color {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t(ColorCommaRgb.is(value) || ColorHex.is(value) || ColorHsl.is(value) || ColorName.is(value) || ColorRgb.is(value))\n\t\t)\n\t}\n\texport function from(value: any | Color): Color | undefined {\n\t\treturn is(value) ? value : undefined\n\t}\n\texport const Names = ColorNames\n\texport type Name = ColorName\n\texport const Name = ColorName\n\texport type CommaRgb = ColorCommaRgb\n\texport const CommaRgb = ColorCommaRgb\n\texport type Rgb = ColorRgb\n\texport const Rgb = ColorRgb\n\texport type Hex = ColorHex\n\texport const Hex = ColorHex\n\texport type Hsl = ColorHsl\n\texport const Hsl = ColorHsl\n}\n","import { Color as CosmeticColor } from \"./Color\"\n\nexport type Cosmetic = {\n\ttext?: { background?: string; color?: string }\n\tborder?: {\n\t\tcolor?: string\n\t\tstyle?: string\n\t\tradius?: string\n\t\twidth?: string\n\t}\n\tgap?: string\n\tdangerColor?: string\n\tfontFamily?: string\n\tbackground?: string\n}\n\nfunction reduce(types: string[], value: Record<string, string>) {\n\treturn types.reduce(\n\t\t(r, c) =>\n\t\t\ttypeof value == \"object\" && value != null && typeof value[c] == \"string\"\n\t\t\t\t? {\n\t\t\t\t\t\t...r,\n\t\t\t\t\t\t[c]: value[c],\n\t\t\t\t }\n\t\t\t\t: r,\n\t\t{}\n\t)\n}\nexport namespace Cosmetic {\n\texport const types = Cosmetic\n\texport function from(value: any | Cosmetic): Cosmetic {\n\t\tlet result: Cosmetic = {}\n\t\tif (typeof value == \"object\" && value) {\n\t\t\tresult = {\n\t\t\t\ttext: reduce([\"background\", \"color\"], value.text),\n\t\t\t\tborder: reduce([\"background\", \"color\", \"style\", \"radius\", \"width\"], value.border),\n\t\t\t\tgap: typeof value.gap == \"string\" ? value.gap : undefined,\n\t\t\t\tdangerColor:\n\t\t\t\t\ttypeof value.dangerColor == \"string\"\n\t\t\t\t\t\t? value.dangerColor\n\t\t\t\t\t\t: typeof value.danger_color == \"string\"\n\t\t\t\t\t\t? value.danger_color\n\t\t\t\t\t\t: undefined,\n\t\t\t\tfontFamily:\n\t\t\t\t\ttypeof value.fontFamily == \"string\"\n\t\t\t\t\t\t? value.fontFamily\n\t\t\t\t\t\t: typeof value.font_family == \"string\"\n\t\t\t\t\t\t? value.font_family\n\t\t\t\t\t\t: undefined,\n\t\t\t\tbackground: typeof value.background == \"string\" ? value.background : undefined,\n\t\t\t}\n\t\t\tObject.keys(result).forEach((key: \"text\" | \"border\" | \"gap\" | \"dangerColor\" | \"fontFamily\" | \"background\") => {\n\t\t\t\tif (\n\t\t\t\t\tresult[key] == undefined ||\n\t\t\t\t\t(typeof result[key] == \"object\" && result[key] && Object.keys(result[key] ?? {}).length == 0)\n\t\t\t\t) {\n\t\t\t\t\tdelete result[key]\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t\treturn result\n\t}\n\texport type Color = CosmeticColor\n\texport const Color = CosmeticColor\n}\n"],"version":3}
1
+ {"file":"index.cjs.js","mappings":";;;;;;;;MAEsB,gBAAgB;EAErC,iBAAwB;EAExB,WAAW,KAAK;IACf,gBAAgB,CAAC,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAA;IACnF,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE;MACjC,gBAAgB,CAAC,UAAU,GAAGA,eAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;MACrD,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;KACrE;IACD,OAAO,gBAAgB,CAAC,UAAU,CAAA;GAClC;;;MCXoB,SAAS;EAI9B,YAAsB,GAAG,UAAkD;IAH3D,eAAU,GAAG,IAAIC,eAAU,EAAuB,CAAA;IAIjE,IAAI,CAAC,MAAM,GAAG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,mCAAI,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,EAC5F;UACD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;SAClB;OACD,CAAC,CAAA;KACF;IACD,OAAO,MAAM,CAAA;GACb;EA/Be,aAAI,OA+BnB,CAAA;EAEY,cAAK,GAAGG,KAAa,CAAA;AACnC,CAAC,EApCgB,QAAQ,KAAR,QAAQ;;;;;;;;;;;;;;;;;;;;","names":["Identifier","Listenable","ColorName","ColorCommaRgb","ColorHex","ColorHsl","ColorRgb","ColorNames","CosmeticColor"],"sources":["./src/model/ClientIdentifier.ts","./src/model/StateBase.ts","./src/utilities/Cosmetic/Color/Hex.ts","./src/utilities/Cosmetic/Color/Hsl.ts","./src/utilities/Cosmetic/Color/Name.ts","./src/utilities/Cosmetic/Color/Rgb.ts","./src/utilities/Cosmetic/Color/CommaRgb.ts","./src/utilities/Cosmetic/Color/index.ts","./src/utilities/Cosmetic/index.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n","import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n","/**\n * Hex formated as \"#xxxxxx\" or \"#xxx\" where x is 0-9, or a-f or A-F\n */\nexport type Hex = string\nexport namespace Hex {\n\texport function is(value: any | Hex): value is Hex {\n\t\tconst matchArray = (typeof value == \"string\" && value.match(/[0-9a-fA-F]/g)) || undefined\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 3 &&\n\t\t\tvalue[0] == \"#\" &&\n\t\t\t(matchArray?.length == 3 || matchArray?.length == 6)\n\t\t)\n\t}\n}\n","/**\n * Hsl formated as \"hsl(H,S%,L%)\" with no spaces included\n * \t\twith limit: 0 <= H <= 360\n * \t\twith limit: 0 <= S,L <= 100\n */\nexport type Hsl = string\nexport namespace Hsl {\n\texport function is(value: any | Hsl): value is Hsl {\n\t\tconst values = typeof value == \"string\" && value.length > 11 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 11 &&\n\t\t\tvalue.substr(0, 4) == \"hsl(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every((single: string, index: number) => {\n\t\t\t\tlet result = false\n\t\t\t\tif (index == 0)\n\t\t\t\t\tresult =\n\t\t\t\t\t\t!Number.isNaN(single) &&\n\t\t\t\t\t\tsingle.match(/[0-9]/g)?.length == single.length &&\n\t\t\t\t\t\tNumber(single) >= 0 &&\n\t\t\t\t\t\tNumber(single) <= 360\n\t\t\t\telse {\n\t\t\t\t\tconst number: string = single.substr(0, single.length - 1)\n\t\t\t\t\tresult =\n\t\t\t\t\t\tsingle[single.length - 1] == \"%\" &&\n\t\t\t\t\t\t!Number.isNaN(number) &&\n\t\t\t\t\t\tnumber.match(/[0-9]/g)?.length == number.length &&\n\t\t\t\t\t\tNumber(number) >= 0 &&\n\t\t\t\t\t\tNumber(number) <= 100\n\t\t\t\t}\n\t\t\t\treturn result\n\t\t\t})\n\t\t)\n\t}\n}\n","export const Names = <const>{\n\taliceblue: \"#f0f8ff\",\n\tantiquewhite: \"#faebd7\",\n\taqua: \"#00ffff\",\n\taquamarine: \"#7fffd4\",\n\tazure: \"#f0ffff\",\n\tbeige: \"#f5f5dc\",\n\tbisque: \"#ffe4c4\",\n\tblack: \"#000000\",\n\tblanchedalmond: \"#ffebcd\",\n\tblue: \"#0000ff\",\n\tblueviolet: \"#8a2be2\",\n\tbrown: \"#a52a2a\",\n\tburlywood: \"#deb887\",\n\tcadetblue: \"#5f9ea0\",\n\tchartreuse: \"#7fff00\",\n\tchocolate: \"#d2691e\",\n\tcoral: \"#ff7f50\",\n\tcornflowerblue: \"#6495ed\",\n\tcornsilk: \"#fff8dc\",\n\tcrimson: \"#dc143c\",\n\tcyan: \"#00ffff\",\n\tdarkblue: \"#00008b\",\n\tdarkcyan: \"#008b8b\",\n\tdarkgoldenrod: \"#b8860b\",\n\tdarkgray: \"#a9a9a9\",\n\tdarkgreen: \"#006400\",\n\tdarkgrey: \"#a9a9a9\",\n\tdarkkhaki: \"#bdb76b\",\n\tdarkmagenta: \"#8b008b\",\n\tdarkolivegreen: \"#556b2f\",\n\tdarkorange: \"#ff8c00\",\n\tdarkorchid: \"#9932cc\",\n\tdarkred: \"#8b0000\",\n\tdarksalmon: \"#e9967a\",\n\tdarkseagreen: \"#8fbc8f\",\n\tdarkslateblue: \"#483d8b\",\n\tdarkslategray: \"#2f4f4f\",\n\tdarkslategrey: \"#2f4f4f\",\n\tdarkturquoise: \"#00ced1\",\n\tdarkviolet: \"#9400d3\",\n\tdeeppink: \"#ff1493\",\n\tdeepskyblue: \"#00bfff\",\n\tdimgray: \"#696969\",\n\tdimgrey: \"#696969\",\n\tdodgerblue: \"#1e90ff\",\n\tfirebrick: \"#b22222\",\n\tfloralwhite: \"#fffaf0\",\n\tforestgreen: \"#228b22\",\n\tfuchsia: \"#ff00ff\",\n\tgainsboro: \"#dcdcdc\",\n\tghostwhite: \"#f8f8ff\",\n\tgoldenrod: \"#daa520\",\n\tgold: \"#ffd700\",\n\tgray: \"#808080\",\n\tgreen: \"#008000\",\n\tgreenyellow: \"#adff2f\",\n\tgrey: \"#808080\",\n\thoneydew: \"#f0fff0\",\n\thotpink: \"#ff69b4\",\n\tindianred: \"#cd5c5c\",\n\tindigo: \"#4b0082\",\n\tivory: \"#fffff0\",\n\tkhaki: \"#f0e68c\",\n\tlavenderblush: \"#fff0f5\",\n\tlavender: \"#e6e6fa\",\n\tlawngreen: \"#7cfc00\",\n\tlemonchiffon: \"#fffacd\",\n\tlightblue: \"#add8e6\",\n\tlightcoral: \"#f08080\",\n\tlightcyan: \"#e0ffff\",\n\tlightgoldenrodyellow: \"#fafad2\",\n\tlightgray: \"#d3d3d3\",\n\tlightgreen: \"#90ee90\",\n\tlightgrey: \"#d3d3d3\",\n\tlightpink: \"#ffb6c1\",\n\tlightsalmon: \"#ffa07a\",\n\tlightseagreen: \"#20b2aa\",\n\tlightskyblue: \"#87cefa\",\n\tlightslategray: \"#778899\",\n\tlightslategrey: \"#778899\",\n\tlightsteelblue: \"#b0c4de\",\n\tlightyellow: \"#ffffe0\",\n\tlime: \"#00ff00\",\n\tlimegreen: \"#32cd32\",\n\tlinen: \"#faf0e6\",\n\tmagenta: \"#ff00ff\",\n\tmaroon: \"#800000\",\n\tmediumaquamarine: \"#66cdaa\",\n\tmediumblue: \"#0000cd\",\n\tmediumorchid: \"#ba55d3\",\n\tmediumpurple: \"#9370db\",\n\tmediumseagreen: \"#3cb371\",\n\tmediumslateblue: \"#7b68ee\",\n\tmediumspringgreen: \"#00fa9a\",\n\tmediumturquoise: \"#48d1cc\",\n\tmediumvioletred: \"#c71585\",\n\tmidnightblue: \"#191970\",\n\tmintcream: \"#f5fffa\",\n\tmistyrose: \"#ffe4e1\",\n\tmoccasin: \"#ffe4b5\",\n\tnavajowhite: \"#ffdead\",\n\tnavy: \"#000080\",\n\toldlace: \"#fdf5e6\",\n\tolive: \"#808000\",\n\tolivedrab: \"#6b8e23\",\n\torange: \"#ffa500\",\n\torangered: \"#ff4500\",\n\torchid: \"#da70d6\",\n\tpalegoldenrod: \"#eee8aa\",\n\tpalegreen: \"#98fb98\",\n\tpaleturquoise: \"#afeeee\",\n\tpalevioletred: \"#db7093\",\n\tpapayawhip: \"#ffefd5\",\n\tpeachpuff: \"#ffdab9\",\n\tperu: \"#cd853f\",\n\tpink: \"#ffc0cb\",\n\tplum: \"#dda0dd\",\n\tpowderblue: \"#b0e0e6\",\n\tpurple: \"#800080\",\n\trebeccapurple: \"#663399\",\n\tred: \"#ff0000\",\n\trosybrown: \"#bc8f8f\",\n\troyalblue: \"#4169e1\",\n\tsaddlebrown: \"#8b4513\",\n\tsalmon: \"#fa8072\",\n\tsandybrown: \"#f4a460\",\n\tseagreen: \"#2e8b57\",\n\tseashell: \"#fff5ee\",\n\tsienna: \"#a0522d\",\n\tsilver: \"#c0c0c0\",\n\tskyblue: \"#87ceeb\",\n\tslateblue: \"#6a5acd\",\n\tslategray: \"#708090\",\n\tslategrey: \"#708090\",\n\tsnow: \"#fffafa\",\n\tspringgreen: \"#00ff7f\",\n\tsteelblue: \"#4682b4\",\n\ttan: \"#d2b48c\",\n\tteal: \"#008080\",\n\tthistle: \"#d8bfd8\",\n\ttomato: \"#ff6347\",\n\tturquoise: \"#40e0d0\",\n\tviolet: \"#ee82ee\",\n\twheat: \"#f5deb3\",\n\twhite: \"#ffffff\",\n\twhitesmoke: \"#f5f5f5\",\n\tyellow: \"#ffff00\",\n\tyellowgreen: \"#9acd32\",\n}\nexport type Name = keyof typeof Names\nexport namespace Name {\n\texport const types = () => Object.keys(Names)\n\texport function is(value: any | Name): value is Name {\n\t\treturn typeof value == \"string\" && types().includes(value.toLowerCase())\n\t}\n}\n","/**\n * Formated as \"rgb(r,g,b)\", with no spaces included\n */\nexport type Rgb = string\nexport namespace Rgb {\n\texport function is(value: any | Rgb): value is Rgb {\n\t\tconst values = typeof value == \"string\" && value.length > 9 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 9 &&\n\t\t\tvalue.substr(0, 4) == \"rgb(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n}\n","import { Hex } from \"./Hex\"\nimport { Hsl } from \"./Hsl\"\nimport { Name as ColorName, Names } from \"./Name\"\nimport { Rgb } from \"./Rgb\"\n\n/**\n * Formated as \"r,g,b\", with no spaces included\n */\nexport type CommaRgb = string\nexport namespace CommaRgb {\n\texport function is(value: any | CommaRgb): value is CommaRgb {\n\t\tconst values = typeof value == \"string\" ? value.split(\",\") : []\n\t\treturn (\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n\texport function from(color: any): CommaRgb | undefined {\n\t\tlet result: CommaRgb | undefined\n\t\tconst colorWithoutSpace: CommaRgb | undefined =\n\t\t\ttypeof color == \"string\" ? color.replace(/ /g, \"\").toLowerCase() : undefined\n\t\tif (!colorWithoutSpace)\n\t\t\tresult = undefined\n\t\telse if (CommaRgb.is(colorWithoutSpace))\n\t\t\tresult = colorWithoutSpace\n\t\telse if (Hex.is(colorWithoutSpace))\n\t\t\tresult = fromHex(colorWithoutSpace)\n\t\telse if (Rgb.is(colorWithoutSpace))\n\t\t\tresult = fromRgb(colorWithoutSpace)\n\t\telse if (ColorName.is(colorWithoutSpace))\n\t\t\tresult = fromHex(Names[colorWithoutSpace])\n\t\telse if (Hsl.is(colorWithoutSpace))\n\t\t\tresult = fromHsl(colorWithoutSpace)\n\t\treturn result\n\t}\n\texport function fromHex(hex: Hex): CommaRgb {\n\t\tlet result: CommaRgb = \"0,0,0\"\n\t\tif (hex.length == 7)\n\t\t\tresult = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`\n\t\telse if (hex.length == 4)\n\t\t\tresult = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`)\n\t\treturn result\n\t}\n\texport function fromRgb(rgb: Rgb): CommaRgb {\n\t\treturn rgb.substring(4, rgb.length - 1)\n\t}\n\texport function fromHsl(hsl: Hsl): CommaRgb {\n\t\tlet result: CommaRgb = \"\"\n\t\tlet h, s, l: number\n\t\tlet r, g, b: number\n\t\tconst HSL: number[] = hsl\n\t\t\t.substring(4, hsl.length - 1)\n\t\t\t.split(\",\")\n\t\t\t.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)))\n\t\tif (HSL.length == 3) {\n\t\t\th = HSL[0] / 360\n\t\t\ts = HSL[1] / 100\n\t\t\tl = HSL[2] / 100\n\t\t\tif (s == 0)\n\t\t\t\tr = g = b = l\n\t\t\telse {\n\t\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s\n\t\t\t\tconst p = 2 * l - q\n\t\t\t\tr = hue2rgb(p, q, h + 1 / 3)\n\t\t\t\tg = hue2rgb(p, q, h)\n\t\t\t\tb = hue2rgb(p, q, h - 1 / 3)\n\t\t\t}\n\t\t\tresult = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`\n\t\t}\n\t\treturn result\n\t}\n\tfunction hue2rgb(p: number, q: number, t: number): number {\n\t\tlet result = p\n\t\tif (t < 0)\n\t\t\tt += 1\n\t\tif (t > 1)\n\t\t\tt -= 1\n\t\tif (t < 1 / 6)\n\t\t\tresult = p + (q - p) * 6 * t\n\t\telse if (t < 1 / 2)\n\t\t\tresult = q\n\t\telse if (t < 2 / 3)\n\t\t\tresult = p + (q - p) * (2 / 3 - t) * 6\n\t\treturn result\n\t}\n}\n","import { CommaRgb as ColorCommaRgb } from \"./CommaRgb\"\nimport { Hex as ColorHex } from \"./Hex\"\nimport { Hsl as ColorHsl } from \"./Hsl\"\nimport { Name as ColorName, Names as ColorNames } from \"./Name\"\nimport { Rgb as ColorRgb } from \"./Rgb\"\n\nexport type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb\nexport namespace Color {\n\texport function is(value: any | Color): value is Color {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t(ColorCommaRgb.is(value) || ColorHex.is(value) || ColorHsl.is(value) || ColorName.is(value) || ColorRgb.is(value))\n\t\t)\n\t}\n\texport function from(value: any | Color): Color | undefined {\n\t\treturn is(value) ? value : undefined\n\t}\n\texport const Names = ColorNames\n\texport type Name = ColorName\n\texport const Name = ColorName\n\texport type CommaRgb = ColorCommaRgb\n\texport const CommaRgb = ColorCommaRgb\n\texport type Rgb = ColorRgb\n\texport const Rgb = ColorRgb\n\texport type Hex = ColorHex\n\texport const Hex = ColorHex\n\texport type Hsl = ColorHsl\n\texport const Hsl = ColorHsl\n}\n","import { Color as CosmeticColor } from \"./Color\"\n\nexport type Cosmetic = {\n\ttext?: { background?: string; color?: string }\n\tborder?: {\n\t\tcolor?: string\n\t\tstyle?: string\n\t\tradius?: string\n\t\twidth?: string\n\t}\n\tgap?: string\n\tdangerColor?: string\n\tfontFamily?: string\n\tbackground?: string\n}\n\nfunction reduce(types: string[], value: Record<string, string>) {\n\treturn types.reduce(\n\t\t(r, c) =>\n\t\t\ttypeof value == \"object\" && value != null && typeof value[c] == \"string\"\n\t\t\t\t? {\n\t\t\t\t\t\t...r,\n\t\t\t\t\t\t[c]: value[c],\n\t\t\t\t }\n\t\t\t\t: r,\n\t\t{}\n\t)\n}\nexport namespace Cosmetic {\n\texport const types = Cosmetic\n\texport function from(value: any | Cosmetic): Cosmetic {\n\t\tlet result: Cosmetic = {}\n\t\tif (typeof value == \"object\" && value) {\n\t\t\tresult = {\n\t\t\t\ttext: reduce([\"background\", \"color\"], value.text),\n\t\t\t\tborder: reduce([\"background\", \"color\", \"style\", \"radius\", \"width\"], value.border),\n\t\t\t\tgap: typeof value.gap == \"string\" ? value.gap : undefined,\n\t\t\t\tdangerColor:\n\t\t\t\t\ttypeof value.dangerColor == \"string\"\n\t\t\t\t\t\t? value.dangerColor\n\t\t\t\t\t\t: typeof value.danger_color == \"string\"\n\t\t\t\t\t\t? value.danger_color\n\t\t\t\t\t\t: undefined,\n\t\t\t\tfontFamily:\n\t\t\t\t\ttypeof value.fontFamily == \"string\"\n\t\t\t\t\t\t? value.fontFamily\n\t\t\t\t\t\t: typeof value.font_family == \"string\"\n\t\t\t\t\t\t? value.font_family\n\t\t\t\t\t\t: undefined,\n\t\t\t\tbackground: typeof value.background == \"string\" ? value.background : undefined,\n\t\t\t}\n\t\t\tObject.keys(result).forEach((key: \"text\" | \"border\" | \"gap\" | \"dangerColor\" | \"fontFamily\" | \"background\") => {\n\t\t\t\tif (\n\t\t\t\t\tresult[key] == undefined ||\n\t\t\t\t\t(typeof result[key] == \"object\" && result[key] && Object.keys(result[key] ?? {}).length == 0)\n\t\t\t\t) {\n\t\t\t\t\tdelete result[key]\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t\treturn result\n\t}\n\texport type Color = CosmeticColor\n\texport const Color = CosmeticColor\n}\n"],"version":3}
@@ -9489,7 +9489,7 @@ const SmoothlyInputDemo = class {
9489
9489
  console.log("smoothlyInput", event.detail);
9490
9490
  }
9491
9491
  render() {
9492
- return (index.h(index.Host, null, index.h("h2", null, "Color"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input-color", { name: "color" })), index.h("h2", null, "Range"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input-range", { step: 1, name: "range", outputSide: "right" }, "Select")), index.h("h2", null, "Duration"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => {
9492
+ return (index.h(index.Host, null, index.h("h2", null, "Color"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input-color", { name: "color" })), index.h("h2", null, "Range"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input-range", { step: 1, name: "range", outputSide: "right" }, "Select and so"), index.h("smoothly-input-range", { step: 1, name: "range2" }, "Select with really really long label", index.h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), index.h("smoothly-input-clear", { size: "icon", slot: "end" }, index.h("smoothly-icon", { name: "close" }))), index.h("smoothly-input-range", { step: 1, name: "range3" }, "Select")), index.h("h2", null, "Duration"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => {
9493
9493
  const duration = e.detail.duration;
9494
9494
  console.log("event duration", duration);
9495
9495
  this.duration = duration;
@@ -9497,7 +9497,7 @@ const SmoothlyInputDemo = class {
9497
9497
  const duration = e.detail.duration;
9498
9498
  console.log("event duration", duration);
9499
9499
  this.duration = duration;
9500
- } }, "Duration")), index.h("h2", null, "Transparent inputs"), index.h("smoothly-form", { looks: "transparent" }, index.h("smoothly-input-file", { name: "file" }, index.h("span", { slot: "label" }, "File"), index.h("smoothly-icon", { slot: "button", name: "folder-open-outline", size: "small" })), index.h("smoothly-input", { type: "duration", looks: "transparent", placeholder: "h:mm" }, "Input"), index.h("smoothly-picker", null, index.h("span", { slot: "label" }, "Picker"), index.h("span", { slot: "search" }, "Search"), index.h("smoothly-picker-option", { value: "circle" }, index.h("smoothly-icon", { name: "ellipse-outline" })), index.h("smoothly-picker-option", { value: "square" }, index.h("smoothly-icon", { name: "square-outline" }))), index.h("smoothly-input-date", null, "Date"), index.h("smoothly-input-date-range", null, "Date Range"), index.h("smoothly-input-select", { name: "transport" }, index.h("smoothly-item", { value: "plane" }, index.h("smoothly-icon", { name: "airplane-outline" })), index.h("smoothly-item", { value: "car" }, index.h("smoothly-icon", { name: "car-outline" })), index.h("smoothly-item", { value: "bus", selected: true }, index.h("smoothly-icon", { name: "bus-outline" })))), index.h("h2", null, "Submit"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "clear" }, "Clear"), index.h("smoothly-submit", { slot: "submit" }, "Submit")), index.h("h4", null, "Clear"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { name: "First Name", value: "John" }, "First name"), index.h("smoothly-input", { name: "Last name", value: "Doe" }, "Last name", index.h("smoothly-input-clear", { slot: "end" }, index.h("smoothly-icon", { name: "close" }))), index.h("smoothly-input", { type: "phone", name: "Phone" }, "Phone", index.h("smoothly-input-clear", { slot: "end" }, index.h("smoothly-icon", { name: "close" }))), index.h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "submit" }, "Clear")), index.h("h2", null, "Border"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-submit", { slot: "submit", onSubmit: (e) => alert(e), color: "success", fill: "solid" }, "Send")), index.h("h2", null, "Grid"), index.h("h4", null, "Contact"), index.h("smoothly-form", { looks: "grid", method: "GET", action: "https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe" }, index.h("smoothly-input", { type: "text", name: "name.last" }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.first" }, "Last Name"), index.h("smoothly-input", { type: "text", name: "street", value: "Torgny Segerstedts All\u00E9 87" }, "Street"), index.h("smoothly-input", { type: "postal-code", name: "zip" }, "ZipCode"), index.h("smoothly-input", { type: "text", name: "city" }, "City"), index.h("smoothly-input", { type: "text", name: "countryCode" }, "CountryCode"), index.h("smoothly-input", { type: "phone", name: "phone" }, "Phone"), index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid" }, index.h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "Submit")), index.h("h4", null, "Card"), index.h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: (e) => alert(JSON.stringify(e.detail)) }, index.h("smoothly-input", { type: "card-number", name: "card" }, "Card #"), index.h("smoothly-submit", { size: "icon", slot: "submit", color: "success", fill: "solid" }, index.h("smoothly-icon", { name: "checkmark-circle" })), index.h("smoothly-input", { type: "card-expires", name: "expires" }, "Expires"), index.h("smoothly-input", { type: "card-csc", name: "csc" }, "CVV/CVC"), index.h("smoothly-input", { type: "text", name: "name.first" }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.last" }, "Last Name")), index.h("h4", null, "Contact"), index.h("smoothly-form", { looks: "grid" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"), index.h("smoothly-input", { type: "percent", name: "percent" }, "Percent"), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Random"), index.h("smoothly-form", { looks: "grid" }, index.h("smoothly-input", { type: "text", name: "name", readonly: true, value: "Readonly", onSmoothlyBlur: () => console.log("smoothly blur"), style: { width: "100%" } }, "Readonly"), index.h("smoothly-input", { type: "text", name: "testing" }, "TextTest"), index.h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"), index.h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"), index.h("smoothly-input", { type: "date", name: "date" }, "Date"), index.h("smoothly-input-date", { name: "some-date" }, "Calendar")), index.h("h2", null, "Line"), index.h("smoothly-form", { looks: "line", method: "POST", action: "https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4" }, index.h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name"), index.h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")), index.h("h2", null, "Input Alternatives"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, index.h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "First Name"), index.h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { placeholder: "test" }), index.h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")), index.h("h4", null, "Smoothly checkboxes"), index.h("smoothly-form", null, index.h("div", null, index.h("smoothly-checkbox", null, "Check me", index.h("div", { slot: "expansion" }, "Some context"), index.h("div", { slot: "expansion" }, "Some more context")), index.h("smoothly-checkbox", null, "Label"), index.h("smoothly-checkbox", { disabled: true }), index.h("smoothly-checkbox", null), index.h("smoothly-checkbox", { name: "unavailable", value: true, disabled: true, unavailable: true, checked: true, onSmoothlyInput: e => console.log("unavailable", e.detail) }), index.h("smoothly-checkbox", { name: "unavailable", value: true, unavailable: true, checked: true, onSmoothlyInput: e => console.log("unavailable", e.detail) }))), index.h("h4", null, "Smoothly Radio Buttons"), index.h("smoothly-form", { onSmoothlyFormSubmit: e => console.log(e.detail) }, index.h("smoothly-radio-button", { name: "radioButtonDemo", deselectable: true, decoration: "button" }, index.h("smoothly-radio-button-item", { value: "test" }, "Option 1", index.h("div", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, "Option 2", index.h("div", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, "Option 3", index.h("div", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Radio List without button 1"), index.h("smoothly-form", null, index.h("smoothly-radio-button", { name: "RadioListWithoutButton" }, index.h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "light" }, index.h("span", null, "Option 1"), index.h("span", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "light" }, index.h("span", null, "Option 2"), index.h("span", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "light" }, index.h("span", null, "Option 3"), index.h("span", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Radio List without button 2"), index.h("smoothly-form", null, index.h("smoothly-radio", { name: "option", value: "1a", style: { width: "100%" } }, "option 1"), index.h("smoothly-radio", { name: "option", value: "2a", checked: true, style: { width: "100%" } }, "option 2"), index.h("smoothly-radio", { name: "option", value: "3a", style: { width: "100%" } }, "option 3")), index.h("h4", null, "Smoothly Accordion"), index.h("smoothly-form", null, index.h("smoothly-accordion", null, index.h("smoothly-accordion-item", { name: "A", open: true }, index.h("smoothly-radio", { name: "a", value: "1b" }, "a 1"), index.h("smoothly-radio", { name: "a", value: "2b", checked: true }, "a 2"), index.h("smoothly-radio", { name: "a", value: "3b" }, "a 3")), index.h("smoothly-accordion-item", { name: "B" }, index.h("smoothly-radio", { name: "b", value: "1c" }, "b 1"), index.h("smoothly-radio", { name: "b", value: "2c" }, "b 2"), index.h("smoothly-radio", { name: "b", value: "3c" }, "b 3"))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Smoothly Picker"), index.h("smoothly-picker-demo", null), index.h("smoothly-back-to-top", null), index.h("h4", null, "Smoothly Date"), index.h("smoothly-input-date", null, "Date"), index.h("smoothly-input-date", { showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), index.h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: e => console.log(e.detail) }, index.h("smoothly-input-date-range", { name: "testing", start: getLanguage.Date.now(), end: getLanguage.Date.nextMonth(getLanguage.Date.now()), min: "2021-10-10", max: "2024-12-30" }), index.h("smoothly-input-clear", { type: "form", color: "danger", fill: "solid", slot: "clear" }, "Clear"), index.h("smoothly-submit", { slot: "submit" }, "submit daterange")), index.h("smoothly-input-date-range", { looks: "grid", start: getLanguage.Date.now(), end: getLanguage.Date.nextMonth(getLanguage.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
9500
+ } }, "Duration")), index.h("h2", null, "Transparent inputs"), index.h("smoothly-form", { looks: "transparent" }, index.h("smoothly-input-file", { name: "file" }, index.h("span", { slot: "label" }, "File"), index.h("smoothly-icon", { slot: "button", name: "folder-open-outline", size: "small" })), index.h("smoothly-input", { type: "duration", looks: "transparent", placeholder: "h:mm" }, "Input"), index.h("smoothly-picker", null, index.h("span", { slot: "label" }, "Picker"), index.h("span", { slot: "search" }, "Search"), index.h("smoothly-picker-option", { value: "circle" }, index.h("smoothly-icon", { name: "ellipse-outline" })), index.h("smoothly-picker-option", { value: "square" }, index.h("smoothly-icon", { name: "square-outline" }))), index.h("smoothly-input-date", null, "Date"), index.h("smoothly-input-date-range", null, "Date Range"), index.h("smoothly-input-select", { name: "transport" }, index.h("smoothly-item", { value: "plane" }, index.h("smoothly-icon", { name: "airplane-outline" })), index.h("smoothly-item", { value: "car" }, index.h("smoothly-icon", { name: "car-outline" })), index.h("smoothly-item", { value: "bus", selected: true }, index.h("smoothly-icon", { name: "bus-outline" })))), index.h("h2", null, "Submit"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "clear" }, "Clear"), index.h("smoothly-submit", { slot: "submit" }, "Submit")), index.h("h4", null, "Clear"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { name: "First Name", value: "John" }, "First name"), index.h("smoothly-input", { name: "Last name", value: "Doe" }, "Last name", index.h("smoothly-input-clear", { size: "icon", slot: "end" }, index.h("smoothly-icon", { name: "close" }))), index.h("smoothly-input", { type: "phone", name: "Phone" }, "Phone", index.h("smoothly-input-clear", { slot: "end" }, index.h("smoothly-icon", { name: "close" }))), index.h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "submit" }, "Clear")), index.h("h2", null, "Border"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-submit", { slot: "submit", onSubmit: (e) => alert(e), color: "success", fill: "solid" }, "Send")), index.h("h2", null, "Grid"), index.h("h4", null, "Contact"), index.h("smoothly-form", { looks: "grid", method: "GET", action: "https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe" }, index.h("smoothly-input", { type: "text", name: "name.last" }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.first" }, "Last Name"), index.h("smoothly-input", { type: "text", name: "street", value: "Torgny Segerstedts All\u00E9 87" }, "Street"), index.h("smoothly-input", { type: "postal-code", name: "zip" }, "ZipCode"), index.h("smoothly-input", { type: "text", name: "city" }, "City"), index.h("smoothly-input", { type: "text", name: "countryCode" }, "CountryCode"), index.h("smoothly-input", { type: "phone", name: "phone" }, "Phone"), index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid" }, index.h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "Submit")), index.h("h4", null, "Card"), index.h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: (e) => alert(JSON.stringify(e.detail)) }, index.h("smoothly-input", { type: "card-number", name: "card" }, "Card #"), index.h("smoothly-submit", { size: "icon", slot: "submit", color: "success", fill: "solid" }, index.h("smoothly-icon", { name: "checkmark-circle" })), index.h("smoothly-input", { type: "card-expires", name: "expires" }, "Expires"), index.h("smoothly-input", { type: "card-csc", name: "csc" }, "CVV/CVC"), index.h("smoothly-input", { type: "text", name: "name.first" }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.last" }, "Last Name")), index.h("h4", null, "Contact"), index.h("smoothly-form", { looks: "grid" }, index.h("smoothly-input", { type: "email", name: "email" }, "Email"), index.h("smoothly-input", { type: "password", name: "password" }, "Password"), index.h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"), index.h("smoothly-input", { type: "percent", name: "percent" }, "Percent"), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Random"), index.h("smoothly-form", { looks: "grid" }, index.h("smoothly-input", { type: "text", name: "name", readonly: true, value: "Readonly", onSmoothlyBlur: () => console.log("smoothly blur"), style: { width: "100%" } }, "Readonly"), index.h("smoothly-input", { type: "text", name: "testing" }, "TextTest"), index.h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"), index.h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"), index.h("smoothly-input", { type: "date", name: "date" }, "Date"), index.h("smoothly-input-date", { name: "some-date" }, "Calendar")), index.h("h2", null, "Line"), index.h("smoothly-form", { looks: "line", method: "POST", action: "https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4" }, index.h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, "First Name"), index.h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name"), index.h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")), index.h("h2", null, "Input Alternatives"), index.h("smoothly-form", { looks: "border" }, index.h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, index.h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "First Name"), index.h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { placeholder: "test" }), index.h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")), index.h("h4", null, "Smoothly checkboxes"), index.h("smoothly-form", null, index.h("div", null, index.h("smoothly-checkbox", null, "Check me", index.h("div", { slot: "expansion" }, "Some context"), index.h("div", { slot: "expansion" }, "Some more context")), index.h("smoothly-checkbox", null, "Label"), index.h("smoothly-checkbox", { disabled: true }), index.h("smoothly-checkbox", null), index.h("smoothly-checkbox", { name: "unavailable", value: true, disabled: true, unavailable: true, checked: true, onSmoothlyInput: e => console.log("unavailable", e.detail) }), index.h("smoothly-checkbox", { name: "unavailable", value: true, unavailable: true, checked: true, onSmoothlyInput: e => console.log("unavailable", e.detail) }))), index.h("h4", null, "Smoothly Radio Buttons"), index.h("smoothly-form", { onSmoothlyFormSubmit: e => console.log(e.detail) }, index.h("smoothly-radio-button", { name: "radioButtonDemo", deselectable: true, decoration: "button" }, index.h("smoothly-radio-button-item", { value: "test" }, "Option 1", index.h("div", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, "Option 2", index.h("div", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, "Option 3", index.h("div", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Radio List without button 1"), index.h("smoothly-form", null, index.h("smoothly-radio-button", { name: "RadioListWithoutButton" }, index.h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "light" }, index.h("span", null, "Option 1"), index.h("span", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "light" }, index.h("span", null, "Option 2"), index.h("span", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "light" }, index.h("span", null, "Option 3"), index.h("span", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Radio List without button 2"), index.h("smoothly-form", null, index.h("smoothly-radio", { name: "option", value: "1a", style: { width: "100%" } }, "option 1"), index.h("smoothly-radio", { name: "option", value: "2a", checked: true, style: { width: "100%" } }, "option 2"), index.h("smoothly-radio", { name: "option", value: "3a", style: { width: "100%" } }, "option 3")), index.h("h4", null, "Smoothly Accordion"), index.h("smoothly-form", null, index.h("smoothly-accordion", null, index.h("smoothly-accordion-item", { name: "A", open: true }, index.h("smoothly-radio", { name: "a", value: "1b" }, "a 1"), index.h("smoothly-radio", { name: "a", value: "2b", checked: true }, "a 2"), index.h("smoothly-radio", { name: "a", value: "3b" }, "a 3")), index.h("smoothly-accordion-item", { name: "B" }, index.h("smoothly-radio", { name: "b", value: "1c" }, "b 1"), index.h("smoothly-radio", { name: "b", value: "2c" }, "b 2"), index.h("smoothly-radio", { name: "b", value: "3c" }, "b 3"))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))), index.h("h4", null, "Smoothly Picker"), index.h("smoothly-picker-demo", null), index.h("smoothly-back-to-top", null), index.h("h4", null, "Smoothly Date"), index.h("smoothly-input-date", null, "Date"), index.h("smoothly-input-date", { showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), index.h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: e => console.log(e.detail) }, index.h("smoothly-input-date-range", { name: "testing", start: getLanguage.Date.now(), end: getLanguage.Date.nextMonth(getLanguage.Date.now()), min: "2021-10-10", max: "2024-12-30" }), index.h("smoothly-input-clear", { type: "form", color: "danger", fill: "solid", slot: "clear" }, "Clear"), index.h("smoothly-submit", { slot: "submit" }, "submit daterange")), index.h("smoothly-input-date-range", { looks: "grid", start: getLanguage.Date.now(), end: getLanguage.Date.nextMonth(getLanguage.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
9501
9501
  "--border-radius": "4px",
9502
9502
  "--padding": "0 0.75em",
9503
9503
  "--input-width": "12ch",
@@ -9595,7 +9595,7 @@ const MonthSelector = class {
9595
9595
  };
9596
9596
  MonthSelector.style = styleCss$G;
9597
9597
 
9598
- const styleCss$F = ".sc-smoothly-input-range-h{box-sizing:border-box}.sc-smoothly-input-range-h[looks=\"border\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-range-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-range-h[looks=\"line\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-range-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-range-h[looks=\"grid\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"grid\"].sc-smoothly-input-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks=\"transparent\"].sc-smoothly-input-range-h{border:none}[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within) input.sc-smoothly-input-range{background:transparent}[looks=\"transparent\"].sc-smoothly-input-range-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;padding:0 .6em;background-color:rgb(var(--background-color,var(--smoothly-color-shade)));gap:1em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-top:.8em}[outputside=\"right\"].sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding-top:0;flex-direction:row-reverse}.sc-smoothly-input-range-h output.sc-smoothly-input-range{min-width:3em;text-align:center}.sc-smoothly-input-range-h:not([value]) output.sc-smoothly-input-range{opacity:.6}.sc-smoothly-input-range-h label.sc-smoothly-input-range{position:absolute;display:block;white-space:nowrap;text-align:center;top:.5em;left:.5em;font-size:.6em}[outputside=\"right\"].sc-smoothly-input-range-h label.sc-smoothly-input-range{position:relative;font-size:inherit;left:0;top:0}input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em}[outputside=\"right\"].sc-smoothly-input-range-h input[type=range].sc-smoothly-input-range{height:2.5em}input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer;margin-top:-.45em}input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer}input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}";
9598
+ const styleCss$F = ".sc-smoothly-input-range-h{box-sizing:border-box}.sc-smoothly-input-range-h[looks=\"border\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"border\"].sc-smoothly-input-range-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-range-h[looks=\"line\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"line\"].sc-smoothly-input-range-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-input-range-h[looks=\"grid\"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks=\"grid\"].sc-smoothly-input-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks=\"transparent\"].sc-smoothly-input-range-h{border:none}[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks=\"transparent\"].sc-smoothly-input-range-h:not(:focus-within) input.sc-smoothly-input-range{background:transparent}[looks=\"transparent\"].sc-smoothly-input-range-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--background-color,var(--smoothly-color-shade)));padding:0 .4em}.sc-smoothly-input-range-h .sc-smoothly-input-range:nth-child(2){margin-left:0.2em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding:1.1em 0 .1em 0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.sc-smoothly-input-range-h output.sc-smoothly-input-range{min-width:4em;text-align:center;margin-left:.5em}.sc-smoothly-input-range-h label.sc-smoothly-input-range{position:absolute;display:block;white-space:nowrap;text-align:center;top:.5em;left:0;font-size:.6em}.output-side-right.sc-smoothly-input-range-h label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:left;padding-right:.5em}.output-side-right.sc-smoothly-input-range-h output.sc-smoothly-input-range{order:3;margin:0}input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer;margin-top:-.45em}input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer}input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}";
9599
9599
 
9600
9600
  const SmoothlyInputRange = class {
9601
9601
  constructor(hostRef) {
@@ -9606,7 +9606,7 @@ const SmoothlyInputRange = class {
9606
9606
  this.value = undefined;
9607
9607
  this.looks = "plain";
9608
9608
  this.min = 0;
9609
- this.max = 100;
9609
+ this.max = 100000;
9610
9610
  this.name = undefined;
9611
9611
  this.labelText = undefined;
9612
9612
  this.step = "any";
@@ -9632,7 +9632,7 @@ const SmoothlyInputRange = class {
9632
9632
  }
9633
9633
  render() {
9634
9634
  var _a, _b;
9635
- return (index.h(index.Host, { class: this.outputSide }, index.h("label", { htmlFor: this.name }, index.h("slot", null)), index.h("div", null, index.h("output", { htmlFor: this.name }, (_a = this.value) !== null && _a !== void 0 ? _a : "—"), index.h("input", { name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: this.step, onInput: event => this.inputHandler(event), value: (_b = this.value) !== null && _b !== void 0 ? _b : this.min }))));
9635
+ return (index.h(index.Host, { class: { "output-side-right": this.outputSide === "right" } }, index.h("slot", { name: "start" }), index.h("div", null, index.h("label", { htmlFor: this.name }, index.h("slot", null)), index.h("output", { htmlFor: this.name }, (_a = this.value) !== null && _a !== void 0 ? _a : "—"), index.h("input", { name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: this.step, onInput: event => this.inputHandler(event), value: (_b = this.value) !== null && _b !== void 0 ? _b : this.min })), index.h("slot", { name: "end" })));
9636
9636
  }
9637
9637
  static get watchers() { return {
9638
9638
  "value": ["valueChanged"]