@rocketspark/domain-checker 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github-test/FUNDING.yml +1 -0
- package/.github-test/dependabot.yml +10 -0
- package/.github-test/workflows/main.yml +28 -0
- package/.github-test/workflows/publish.yml +49 -0
- package/.github-test/workflows/pull_request.yml +24 -0
- package/.github-test/workflows/pull_request_dependabot.yml +48 -0
- package/.idea/domain-checker.iml +8 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/CODE_OF_CONDUCT.md +76 -0
- package/CONTRIBUTING.md +15 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/build/130.index.js +13 -0
- package/build/130.index.js.map +1 -0
- package/build/145.index.js +13 -0
- package/build/145.index.js.map +1 -0
- package/build/171.index.js +13 -0
- package/build/171.index.js.map +1 -0
- package/build/190.index.js +13 -0
- package/build/190.index.js.map +1 -0
- package/build/228.index.js +13 -0
- package/build/228.index.js.map +1 -0
- package/build/23.index.js +13 -0
- package/build/23.index.js.map +1 -0
- package/build/253.index.js +13 -0
- package/build/253.index.js.map +1 -0
- package/build/269.index.js +13 -0
- package/build/269.index.js.map +1 -0
- package/build/307.index.js +13 -0
- package/build/307.index.js.map +1 -0
- package/build/314.index.js +13 -0
- package/build/314.index.js.map +1 -0
- package/build/330.index.js +13 -0
- package/build/330.index.js.map +1 -0
- package/build/346.index.js +13 -0
- package/build/346.index.js.map +1 -0
- package/build/385.index.js +13 -0
- package/build/385.index.js.map +1 -0
- package/build/3cce2bffb56fb72f4f99.svg +521 -0
- package/build/431.index.js +13 -0
- package/build/431.index.js.map +1 -0
- package/build/447.index.js +13 -0
- package/build/447.index.js.map +1 -0
- package/build/482.index.js +13 -0
- package/build/482.index.js.map +1 -0
- package/build/525.index.js +13 -0
- package/build/525.index.js.map +1 -0
- package/build/536.index.js +13 -0
- package/build/536.index.js.map +1 -0
- package/build/548.index.js +13 -0
- package/build/548.index.js.map +1 -0
- package/build/565.index.js +13 -0
- package/build/565.index.js.map +1 -0
- package/build/577.index.js +13 -0
- package/build/577.index.js.map +1 -0
- package/build/5798190b27b26600fb18.svg +266 -0
- package/build/655.index.js +13 -0
- package/build/655.index.js.map +1 -0
- package/build/66.index.js +13 -0
- package/build/66.index.js.map +1 -0
- package/build/669.index.js +13 -0
- package/build/669.index.js.map +1 -0
- package/build/677.index.js +13 -0
- package/build/677.index.js.map +1 -0
- package/build/678.index.js +13 -0
- package/build/678.index.js.map +1 -0
- package/build/69.index.js +13 -0
- package/build/69.index.js.map +1 -0
- package/build/690.index.js +13 -0
- package/build/690.index.js.map +1 -0
- package/build/694.index.js +13 -0
- package/build/694.index.js.map +1 -0
- package/build/698.index.js +13 -0
- package/build/698.index.js.map +1 -0
- package/build/716.index.js +13 -0
- package/build/716.index.js.map +1 -0
- package/build/717.index.js +13 -0
- package/build/717.index.js.map +1 -0
- package/build/724.index.js +13 -0
- package/build/724.index.js.map +1 -0
- package/build/738.index.js +13 -0
- package/build/738.index.js.map +1 -0
- package/build/799.index.js +13 -0
- package/build/799.index.js.map +1 -0
- package/build/82.index.js +13 -0
- package/build/82.index.js.map +1 -0
- package/build/858.index.js +13 -0
- package/build/858.index.js.map +1 -0
- package/build/882.index.js +13 -0
- package/build/882.index.js.map +1 -0
- package/build/895.index.js +13 -0
- package/build/895.index.js.map +1 -0
- package/build/903.index.js +13 -0
- package/build/903.index.js.map +1 -0
- package/build/911.index.js +13 -0
- package/build/911.index.js.map +1 -0
- package/build/912.index.js +13 -0
- package/build/912.index.js.map +1 -0
- package/build/927.index.js +13 -0
- package/build/927.index.js.map +1 -0
- package/build/953.index.js +13 -0
- package/build/953.index.js.map +1 -0
- package/build/955.index.js +13 -0
- package/build/955.index.js.map +1 -0
- package/build/994.index.js +13 -0
- package/build/994.index.js.map +1 -0
- package/build/css/index.css +11 -0
- package/build/css/index.css.map +1 -0
- package/build/index.js +13 -0
- package/build/index.js.map +1 -0
- package/build/types/Components/DomainSearch.d.ts +20 -0
- package/build/types/Components/PopupContainer.d.ts +30 -0
- package/build/types/Components/SearchHeading.d.ts +8 -0
- package/build/types/Components/SearchResultCaption.d.ts +12 -0
- package/build/types/Components/SearchStatus.d.ts +13 -0
- package/build/types/Helpers/Fetch.d.ts +6 -0
- package/build/types/Helpers/defaults.d.ts +2 -0
- package/build/types/Helpers/templates.d.ts +13 -0
- package/build/types/Helpers/wrap.d.ts +1 -0
- package/build/types/index.d.ts +21 -0
- package/build/types/interfaces/class-names.d.ts +19 -0
- package/build/types/interfaces/options.d.ts +9 -0
- package/package.json +91 -0
- package/tsconfig.json +17 -0
- package/webpack.config.demo.js +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"716.index.js","mappings":";;;;;;;;;;;gLAEA,MAEMA,EAAU,MACdC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEvBE,KAAKC,KAAO,EAIZD,KAAKE,MAAQ,YAIbF,KAAKG,QAAU,QAEjBC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,SAASP,KAAKC,OAAQO,MAAO,CAClDN,WAAsBO,IAAfT,KAAKE,MAAsB,kBAAkBF,KAAKE,SAAW,GACpEC,QAASH,KAAKG,WACX,IAAAE,GAAE,OAAQ,SAGrBT,EAAQY,MAvBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-content.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst contentCss = \":host{display:block;font-family:soleil, sans-serif;font-weight:normal;font-style:normal;line-height:1.4em;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.body__1){font-size:1rem}:host(.body__2){font-size:0.875rem}\";\n\nconst Content = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) 1/2 defaults to 1 */\n this.body = 1;\n /**\n * Color of the body text\n */\n this.color = 'secondary';\n /**\n * display CSS rule\n */\n this.display = 'block';\n }\n render() {\n return (h(Host, { class: `body__${this.body}`, style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : '',\n display: this.display\n } }, h(\"slot\", null)));\n }\n};\nContent.style = contentCss;\n\nexport { Content as rs_content };\n"],"names":["Content","constructor","hostRef","r","this","body","color","display","render","h","H","class","style","undefined"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[717],{717:function(t,e,r){r.r(e),r.d(e,{rs_radio_group:function(){return o}});var s=r(492);const o=class{constructor(t){(0,s.r)(this,t),this.rsChange=(0,s.c)(this,"rsChange",7),this.allowDeselect=!1,this.flex=!1,this.button="default"}valueChanged(t){this.rsChange.emit({value:t})}componentDidLoad(){this.el.querySelectorAll("rs-radio").forEach((t=>{void 0!==this.color&&t.setAttribute("color",this.color),void 0!==this.button&&t.setAttribute("button",this.button)}))}render(){return(0,s.h)(s.H,{role:"radiogroup",class:{"rs-radio-group--flex":this.flex},style:{"justify-content":this.justifyContent,"flex-direction":this.flexDirection}},(0,s.h)("slot",null))}get el(){return(0,s.g)(this)}static get watchers(){return{value:["valueChanged"]}}};o.style=":host{display:block;box-sizing:border-box}:host(.rs-radio-group--flex){display:flex;flex-direction:row;align-items:center}"}}]);
|
|
13
|
+
//# sourceMappingURL=717.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"717.index.js","mappings":";;;;;;;;;;;mLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAI9CA,KAAKG,eAAgB,EAIrBH,KAAKI,MAAO,EAIZJ,KAAKK,OAAS,UAKhBC,aAAaC,GACXP,KAAKC,SAASO,KAAK,CAAED,MAAAA,IAEvBE,mBACqBT,KAAKU,GAAGC,iBAAiB,YACjCC,SAAQC,SAEEC,IAAfd,KAAKe,OACPF,EAAUG,aAAa,QAAShB,KAAKe,YAGnBD,IAAhBd,KAAKK,QACPQ,EAAUG,aAAa,SAAUhB,KAAKK,WAI5CY,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,KAAM,aAAcC,MAAO,CACzC,uBAAwBrB,KAAKI,MAC5BkB,MAAO,CACR,kBAAmBtB,KAAKuB,eACxB,iBAAkBvB,KAAKwB,iBACpB,IAAAN,GAAE,OAAQ,OAEnB,SAAW,OAAO,IAAAO,GAAWzB,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,mBAGdJ,EAAW0B,MAnDW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-radio-group.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst radioGroupCss = \":host{display:block;box-sizing:border-box}:host(.rs-radio-group--flex){display:flex;flex-direction:row;align-items:center}\";\n\nconst RadioGroup = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n /**\n * If this is true, then user can deselect radios\n */\n this.allowDeselect = false;\n /**\n * If true, we display all the elements inside the radio group in a single row.\n */\n this.flex = false;\n /**\n * Changes the look of the radio component to a grey outline button\n */\n this.button = 'default';\n }\n /**\n * Watch for any changes on the `value` property.\n */\n valueChanged(value) {\n this.rsChange.emit({ value });\n }\n componentDidLoad() {\n const radioItems = this.el.querySelectorAll('rs-radio'); // Get all the radio items\n radioItems.forEach(radioItem => {\n // set inner circle color of the radio components inside this radio group\n if (this.color !== undefined) {\n radioItem.setAttribute('color', this.color);\n }\n // set the button look of the radio components inside this radio group\n if (this.button !== undefined) {\n radioItem.setAttribute('button', this.button);\n }\n });\n }\n render() {\n return (h(Host, { role: \"radiogroup\", class: {\n 'rs-radio-group--flex': this.flex\n }, style: {\n 'justify-content': this.justifyContent,\n 'flex-direction': this.flexDirection\n } }, h(\"slot\", null)));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nRadioGroup.style = radioGroupCss;\n\nexport { RadioGroup as rs_radio_group };\n"],"names":["RadioGroup","constructor","hostRef","r","this","rsChange","c","allowDeselect","flex","button","valueChanged","value","emit","componentDidLoad","el","querySelectorAll","forEach","radioItem","undefined","color","setAttribute","render","h","H","role","class","style","justifyContent","flexDirection","g"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[724],{2724:function(s,e,t){t.r(e),t.d(e,{rs_progress_circle:function(){return i}});var r=t(492);const i=class{constructor(s){(0,r.r)(this,s),this.progress=0,this.size="default",this.dimensions={small:28,default:43,large:111},this.strokeWidth={small:2,default:4,large:4},this.activeStrokeWidth={small:4,default:6,large:8}}getProgressValue(){return this.progress>100?100:this.progress<0?0:this.progress}progressValueClass(){return{"progress-value--0":this.progress<=30,"progress-value--30":this.progress>30&&this.progress<80,"progress-value--80":this.progress>=80,"progress-circle":!0}}getSize(){return this.dimensions[this.size]}getActiveStrokeWidth(){return this.activeStrokeWidth[this.size]}getStrokeWidth(){return this.strokeWidth[this.size]}getRadius(){return this.getSize()/2-this.getActiveStrokeWidth()/2}getStrokeDashArray(){return Math.PI*(2*this.getRadius())}getStrokeDashOffset(){return(100-this.getProgressValue())/100*this.getStrokeDashArray()}render(){return(0,r.h)(r.H,{class:`size--${this.size}`,style:{width:`${this.getSize()}px`,height:`${this.getSize()}px`}},(0,r.h)("svg",{width:this.getSize(),height:this.getSize(),viewBox:`0 0 ${this.getSize()} ${this.getSize()}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("circle",{class:"progress-bar",opacity:"0.5",cx:"50%",cy:"50%",r:this.getRadius(),style:{"stroke-width":`${this.getStrokeWidth()}`}}),(0,r.h)("circle",{class:Object.assign({},this.progressValueClass()),cx:"50%",cy:"50%",r:this.getRadius(),style:{opacity:""+(this.getProgressValue()<1?"0":"1"),"stroke-dasharray":`${this.getStrokeDashArray()}`,"stroke-width":`${this.getActiveStrokeWidth()}px`,"stroke-dashoffset":`${this.getStrokeDashOffset()}`,"stroke-linecap":"round","transform-origin":`${this.getSize()/2}px ${this.getSize()/2}px`,transform:"rotate(-90deg)"}})))}};i.style=":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-value--0{stroke:var(--rs-color-negative)}.progress-value--30{stroke:var(--rs-color-neutral)}.progress-value--80{stroke:var(--rs-color-positive)}.progress-circle{transition:stroke-dasharray 0.15s ease-out, stroke 0.15s ease-out, opacity 0.15s ease-out}"}}]);
|
|
13
|
+
//# sourceMappingURL=724.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"724.index.js","mappings":";;;;;;;;;;;wLAEA,MAEMA,EAAiB,MACrBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,SAAW,EAIhBD,KAAKE,KAAO,U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OhC,EAAGC,KAAKc,YAAaS,MAAO,CACzH,QAAW,IAAGvB,KAAKS,mBAAqB,EAAI,IAAM,KAClD,mBAAoB,GAAGT,KAAKe,uBAC5B,eAAgB,GAAGf,KAAKY,2BACxB,oBAAqB,GAAGZ,KAAKkB,wBAC7B,iBAAkB,QAClB,mBAAoB,GAAGlB,KAAKW,UAAY,OAAOX,KAAKW,UAAY,MAChE,UAAa,wBAIrBf,EAAe2B,MA9EW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-progress-circle.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst progressCircleCss = \":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-value--0{stroke:var(--rs-color-negative)}.progress-value--30{stroke:var(--rs-color-neutral)}.progress-value--80{stroke:var(--rs-color-positive)}.progress-circle{transition:stroke-dasharray 0.15s ease-out, stroke 0.15s ease-out, opacity 0.15s ease-out}\";\n\nconst ProgressCircle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * progress value in percentage\n */\n this.progress = 0;\n /**\n * Size of the progress circle\n */\n this.size = 'default';\n this.dimensions = {\n small: 28,\n default: 43,\n large: 111\n };\n this.strokeWidth = {\n small: 2,\n default: 4,\n large: 4\n };\n this.activeStrokeWidth = {\n small: 4,\n default: 6,\n large: 8\n };\n }\n getProgressValue() {\n // if this.progress > 100 return 100, if this.progress is < return 0 else return this.progress\n return this.progress > 100 ? 100 : this.progress < 0 ? 0 : this.progress;\n }\n progressValueClass() {\n return {\n 'progress-value--0': this.progress <= 30,\n 'progress-value--30': this.progress > 30 && this.progress < 80,\n 'progress-value--80': this.progress >= 80,\n 'progress-circle': true\n };\n }\n getSize() {\n return this.dimensions[this.size];\n }\n getActiveStrokeWidth() {\n return this.activeStrokeWidth[this.size];\n }\n getStrokeWidth() {\n return this.strokeWidth[this.size];\n }\n getRadius() {\n const width = this.getSize();\n // return (width / 2);\n return (width / 2) - (this.getActiveStrokeWidth() / 2);\n }\n getStrokeDashArray() {\n return Math.PI * (this.getRadius() * 2);\n }\n getStrokeDashOffset() {\n return ((100 - this.getProgressValue()) / 100) * this.getStrokeDashArray();\n }\n render() {\n return (h(Host, { class: `size--${this.size}`, style: {\n 'width': `${this.getSize()}px`,\n 'height': `${this.getSize()}px`\n } }, h(\"svg\", { width: this.getSize(), height: this.getSize(), viewBox: `0 0 ${this.getSize()} ${this.getSize()}`, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, h(\"circle\", { class: \"progress-bar\", opacity: \"0.5\", cx: \"50%\", cy: \"50%\", r: this.getRadius(), style: {\n 'stroke-width': `${this.getStrokeWidth()}`\n } }), h(\"circle\", { class: Object.assign({}, this.progressValueClass()), cx: \"50%\", cy: \"50%\", r: this.getRadius(), style: {\n 'opacity': `${this.getProgressValue() < 1 ? '0' : '1'}`,\n 'stroke-dasharray': `${this.getStrokeDashArray()}`,\n 'stroke-width': `${this.getActiveStrokeWidth()}px`,\n 'stroke-dashoffset': `${this.getStrokeDashOffset()}`,\n 'stroke-linecap': 'round',\n 'transform-origin': `${this.getSize() / 2}px ${this.getSize() / 2}px`,\n 'transform': 'rotate(-90deg)'\n } }))));\n }\n};\nProgressCircle.style = progressCircleCss;\n\nexport { ProgressCircle as rs_progress_circle };\n"],"names":["ProgressCircle","constructor","hostRef","r","this","progress","size","dimensions","small","default","large","strokeWidth","activeStrokeWidth","getProgressValue","progressValueClass","getSize","getActiveStrokeWidth","getStrokeWidth","getRadius","getStrokeDashArray","Math","PI","getStrokeDashOffset","render","h","H","class","style","width","height","viewBox","fill","xmlns","opacity","cx","cy","Object","assign"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[738],{3738:function(e,o,n){n.r(o),n.d(o,{rs_icon:function(){return r}});var t=n(492);const r=class{constructor(e){(0,t.r)(this,e),this.name=""}render(){return(0,t.h)(t.H,null,(0,t.h)("span",{style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:"","font-size":void 0!==this.size?`${this.size}px`:""},class:`rs-icon-${this.name}`}))}};r.style='@font-face{font-family:\'rs-icons\';src:url(\'https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.woff2?xj5320\') format(\'woff2\'),\n url(\'https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.ttf?xj5320\') format(\'truetype\'),\n url(\'https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.woff?xj5320\') format(\'woff\'),\n url(\'https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.svg?xj5320#rs-icons\') format(\'svg\');font-weight:normal;font-style:normal;font-display:block}[class^="rs-icon-"],[class*=" rs-icon-"]{font-family:\'rs-icons\' !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rs-icon-edit-pencil-next:before{content:"\\e94e"}.rs-icon-cog:before{content:"\\e94c"}.rs-icon-duplicate:before{content:"\\e94d"}.rs-icon-Mobile:before{content:"\\e94b"}.rs-icon-shopping-bag .path1:before{content:"\\e949"}.rs-icon-shopping-bag .path2:before{content:"\\e94a";margin-left:-0.966796875em;color:rgb(241, 101, 100)}.rs-icon-person:before{content:"\\e948"}.rs-icon-upload:before{content:"\\e947"}.rs-icon-linkedin:before{content:"\\e945"}.rs-icon-twitter:before{content:"\\e946"}.rs-icon-facebook:before{content:"\\e944"}.rs-icon-recurring:before{content:"\\e943"}.rs-icon-fine-x:before{content:"\\e942"}.rs-icon-chevron-right:before{content:"\\e941"}.rs-icon-chevron-left:before{content:"\\e940"}.rs-icon-replay-video:before{content:"\\e93f"}.rs-icon-warning:before{content:"\\e93d"}.rs-icon-circle-lightning:before{content:"\\e93e"}.rs-icon-clock:before{content:"\\e93b"}.rs-icon-arrow-left:before{content:"\\e904"}.rs-icon-arrow-down:before{content:"\\e917"}.rs-icon-arrow-right:before{content:"\\e918"}.rs-icon-arrow-up:before{content:"\\e919"}.rs-icon-caret-down:before{content:"\\e91a"}.rs-icon-cart-fill:before{content:"\\e91b"}.rs-icon-circle-plus:before{content:"\\e91c"}.rs-icon-circle-tick:before{content:"\\e91d"}.rs-icon-copy:before{content:"\\e91e"}.rs-icon-desktop:before{content:"\\e91f"}.rs-icon-dislike:before{content:"\\e920"}.rs-icon-drag-360:before{content:"\\e921"}.rs-icon-drag-vertical:before{content:"\\e922"}.rs-icon-dropdown:before{content:"\\e923"}.rs-icon-edit-pencil:before{content:"\\e924"}.rs-icon-expand:before{content:"\\e925"}.rs-icon-facebook-feed:before{content:"\\e926"}.rs-icon-twitter-feed:before{content:"\\e927"}.rs-icon-html:before{content:"\\e928"}.rs-icon-link:before{content:"\\e929"}.rs-icon-map:before{content:"\\e92a"}.rs-icon-minus:before{content:"\\e92b"}.rs-icon-mobile:before{content:"\\e92c"}.rs-icon-picture:before{content:"\\e92d"}.rs-icon-placement:before{content:"\\e92e"}.rs-icon-play:before{content:"\\e92f"}.rs-icon-product:before{content:"\\e930"}.rs-icon-revert:before{content:"\\e931"}.rs-icon-search:before{content:"\\e932"}.rs-icon-settings-cog:before{content:"\\e933"}.rs-icon-star:before{content:"\\e934"}.rs-icon-text-align-centre:before{content:"\\e935"}.rs-icon-text-align-left:before{content:"\\e936"}.rs-icon-text:before{content:"\\e937"}.rs-icon-trash:before{content:"\\e938"}.rs-icon-video-camera:before{content:"\\e939"}.rs-icon-plus:before{content:"\\e93a"}.rs-icon-blogging:before{content:"\\e909"}.rs-icon-chain:before{content:"\\e90a"}.rs-icon-clipboard-tick:before{content:"\\e90b"}.rs-icon-credit-card:before{content:"\\e90c"}.rs-icon-ellipsis-vertical:before{content:"\\e910"}.rs-icon-email:before{content:"\\e911"}.rs-icon-hamburger:before{content:"\\e912"}.rs-icon-help:before{content:"\\e913"}.rs-icon-layers:before{content:"\\e914"}.rs-icon-shopping-cart:before{content:"\\e915"}.rs-icon-x:before{content:"\\e916"}.rs-icon-align-object-centre:before{content:"\\e902"}.rs-icon-align-object-left:before{content:"\\e903"}.rs-icon-align-object-right:before{content:"\\e93c"}.rs-icon-blocked:before{content:"\\e905"}.rs-icon-dashboard:before{content:"\\e906"}.rs-icon-edit:before{content:"\\e907"}.rs-icon-ellipsis-horizontal:before{content:"\\e908"}.rs-icon-key:before{content:"\\e90d"}.rs-icon-pin:before{content:"\\e90e"}.rs-icon-video-camera1:before{content:"\\e90f"}.rs-icon-lightning:before{content:"\\e900"}.rs-icon-tick:before{content:"\\e901"}:host{display:inline-block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:0.8}'}}]);
|
|
13
|
+
//# sourceMappingURL=738.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"738.index.js","mappings":";;;;;;;;;;;6KAEA,MAEMA,EAAO,MACXC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAKvBE,KAAKC,KAAO,GAEdC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,CAAEE,MAAO,CACrC,WAAwBC,IAAfN,KAAKO,MAAsB,kBAAkBP,KAAKO,SAAW,GACtE,iBAA2BD,IAAdN,KAAKQ,KAAqB,GAAGR,KAAKQ,SAAW,IACzDC,MAAO,WAAWT,KAAKC,YAGhCL,EAAKS,MAlBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-icon.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst iconCss = \"@font-face{font-family:'rs-icons';src:url('https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.woff2?xj5320') format('woff2'),\\n url('https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.ttf?xj5320') format('truetype'),\\n url('https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.woff?xj5320') format('woff'),\\n url('https://i.icomoon.io/public/0540d4d9c5/Rocketspark/rs-icons.svg?xj5320#rs-icons') format('svg');font-weight:normal;font-style:normal;font-display:block}[class^=\\\"rs-icon-\\\"],[class*=\\\" rs-icon-\\\"]{font-family:'rs-icons' !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rs-icon-edit-pencil-next:before{content:\\\"\\\\e94e\\\"}.rs-icon-cog:before{content:\\\"\\\\e94c\\\"}.rs-icon-duplicate:before{content:\\\"\\\\e94d\\\"}.rs-icon-Mobile:before{content:\\\"\\\\e94b\\\"}.rs-icon-shopping-bag .path1:before{content:\\\"\\\\e949\\\"}.rs-icon-shopping-bag .path2:before{content:\\\"\\\\e94a\\\";margin-left:-0.966796875em;color:rgb(241, 101, 100)}.rs-icon-person:before{content:\\\"\\\\e948\\\"}.rs-icon-upload:before{content:\\\"\\\\e947\\\"}.rs-icon-linkedin:before{content:\\\"\\\\e945\\\"}.rs-icon-twitter:before{content:\\\"\\\\e946\\\"}.rs-icon-facebook:before{content:\\\"\\\\e944\\\"}.rs-icon-recurring:before{content:\\\"\\\\e943\\\"}.rs-icon-fine-x:before{content:\\\"\\\\e942\\\"}.rs-icon-chevron-right:before{content:\\\"\\\\e941\\\"}.rs-icon-chevron-left:before{content:\\\"\\\\e940\\\"}.rs-icon-replay-video:before{content:\\\"\\\\e93f\\\"}.rs-icon-warning:before{content:\\\"\\\\e93d\\\"}.rs-icon-circle-lightning:before{content:\\\"\\\\e93e\\\"}.rs-icon-clock:before{content:\\\"\\\\e93b\\\"}.rs-icon-arrow-left:before{content:\\\"\\\\e904\\\"}.rs-icon-arrow-down:before{content:\\\"\\\\e917\\\"}.rs-icon-arrow-right:before{content:\\\"\\\\e918\\\"}.rs-icon-arrow-up:before{content:\\\"\\\\e919\\\"}.rs-icon-caret-down:before{content:\\\"\\\\e91a\\\"}.rs-icon-cart-fill:before{content:\\\"\\\\e91b\\\"}.rs-icon-circle-plus:before{content:\\\"\\\\e91c\\\"}.rs-icon-circle-tick:before{content:\\\"\\\\e91d\\\"}.rs-icon-copy:before{content:\\\"\\\\e91e\\\"}.rs-icon-desktop:before{content:\\\"\\\\e91f\\\"}.rs-icon-dislike:before{content:\\\"\\\\e920\\\"}.rs-icon-drag-360:before{content:\\\"\\\\e921\\\"}.rs-icon-drag-vertical:before{content:\\\"\\\\e922\\\"}.rs-icon-dropdown:before{content:\\\"\\\\e923\\\"}.rs-icon-edit-pencil:before{content:\\\"\\\\e924\\\"}.rs-icon-expand:before{content:\\\"\\\\e925\\\"}.rs-icon-facebook-feed:before{content:\\\"\\\\e926\\\"}.rs-icon-twitter-feed:before{content:\\\"\\\\e927\\\"}.rs-icon-html:before{content:\\\"\\\\e928\\\"}.rs-icon-link:before{content:\\\"\\\\e929\\\"}.rs-icon-map:before{content:\\\"\\\\e92a\\\"}.rs-icon-minus:before{content:\\\"\\\\e92b\\\"}.rs-icon-mobile:before{content:\\\"\\\\e92c\\\"}.rs-icon-picture:before{content:\\\"\\\\e92d\\\"}.rs-icon-placement:before{content:\\\"\\\\e92e\\\"}.rs-icon-play:before{content:\\\"\\\\e92f\\\"}.rs-icon-product:before{content:\\\"\\\\e930\\\"}.rs-icon-revert:before{content:\\\"\\\\e931\\\"}.rs-icon-search:before{content:\\\"\\\\e932\\\"}.rs-icon-settings-cog:before{content:\\\"\\\\e933\\\"}.rs-icon-star:before{content:\\\"\\\\e934\\\"}.rs-icon-text-align-centre:before{content:\\\"\\\\e935\\\"}.rs-icon-text-align-left:before{content:\\\"\\\\e936\\\"}.rs-icon-text:before{content:\\\"\\\\e937\\\"}.rs-icon-trash:before{content:\\\"\\\\e938\\\"}.rs-icon-video-camera:before{content:\\\"\\\\e939\\\"}.rs-icon-plus:before{content:\\\"\\\\e93a\\\"}.rs-icon-blogging:before{content:\\\"\\\\e909\\\"}.rs-icon-chain:before{content:\\\"\\\\e90a\\\"}.rs-icon-clipboard-tick:before{content:\\\"\\\\e90b\\\"}.rs-icon-credit-card:before{content:\\\"\\\\e90c\\\"}.rs-icon-ellipsis-vertical:before{content:\\\"\\\\e910\\\"}.rs-icon-email:before{content:\\\"\\\\e911\\\"}.rs-icon-hamburger:before{content:\\\"\\\\e912\\\"}.rs-icon-help:before{content:\\\"\\\\e913\\\"}.rs-icon-layers:before{content:\\\"\\\\e914\\\"}.rs-icon-shopping-cart:before{content:\\\"\\\\e915\\\"}.rs-icon-x:before{content:\\\"\\\\e916\\\"}.rs-icon-align-object-centre:before{content:\\\"\\\\e902\\\"}.rs-icon-align-object-left:before{content:\\\"\\\\e903\\\"}.rs-icon-align-object-right:before{content:\\\"\\\\e93c\\\"}.rs-icon-blocked:before{content:\\\"\\\\e905\\\"}.rs-icon-dashboard:before{content:\\\"\\\\e906\\\"}.rs-icon-edit:before{content:\\\"\\\\e907\\\"}.rs-icon-ellipsis-horizontal:before{content:\\\"\\\\e908\\\"}.rs-icon-key:before{content:\\\"\\\\e90d\\\"}.rs-icon-pin:before{content:\\\"\\\\e90e\\\"}.rs-icon-video-camera1:before{content:\\\"\\\\e90f\\\"}.rs-icon-lightning:before{content:\\\"\\\\e900\\\"}.rs-icon-tick:before{content:\\\"\\\\e901\\\"}:host{display:inline-block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:0.8}\";\n\nconst Icon = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Name of the icon\n *\n */\n this.name = '';\n }\n render() {\n return (h(Host, null, h(\"span\", { style: {\n 'color': this.color !== undefined ? `var(--rs-color-${this.color})` : '',\n 'font-size': this.size !== undefined ? `${this.size}px` : ''\n }, class: `rs-icon-${this.name}` })));\n }\n};\nIcon.style = iconCss;\n\nexport { Icon as rs_icon };\n"],"names":["Icon","constructor","hostRef","r","this","name","render","h","H","style","undefined","color","size","class"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[799],{5799:function(t,e,n){n.r(e),n.d(e,{rs_card_header:function(){return o}});var s=n(492);const o=class{constructor(t){(0,s.r)(this,t),this.flex=!1}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",{name:"start"}),(0,s.h)("slot",null),(0,s.h)("slot",{name:"end"}))}};o.style=":host{display:block;width:100%;padding:0.875rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:1rem}::slotted([slot='end']){margin-left:1rem}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}"}}]);
|
|
13
|
+
//# sourceMappingURL=799.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"799.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,MAAO,EAKdC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,CAAEE,KAAM,WAAY,IAAAF,GAAE,OAAQ,OAAO,IAAAA,GAAE,OAAQ,CAAEE,KAAM,WAG3FT,EAAWU,MAjBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card-header.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst cardHeaderCss = \":host{display:block;width:100%;padding:0.875rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;color:var(--rs-color-heading);position:relative}:host([flex]){display:flex;flex-flow:row wrap;align-items:center}::slotted([slot='start']){margin-right:1rem}::slotted([slot='end']){margin-left:1rem}:host([align-content='flex-start']){justify-content:flex-start}:host([align-content='flex-end']){justify-content:flex-end}:host([align-content='space-around']){justify-content:space-around}:host([align-content='space-between']){justify-content:space-between}:host([align-content='space-evenly']){justify-content:space-evenly}:host([align-content='space-around']) ::slotted([slot='start']),:host([align-content='space-around']) ::slotted([slot='end']),:host([align-content='space-between']) ::slotted([slot='start']),:host([align-content='space-between']) ::slotted([slot='end']),:host([align-content='space-evenly']) ::slotted([slot='start']),:host([align-content='space-evenly']) ::slotted([slot='end']){margin:0}\";\n\nconst CardHeader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Displays items inside the component in one row\n */\n this.flex = false;\n }\n /**\n * This renders this component\n */\n render() {\n return (h(Host, null, h(\"slot\", { name: \"start\" }), h(\"slot\", null), h(\"slot\", { name: \"end\" })));\n }\n};\nCardHeader.style = cardHeaderCss;\n\nexport { CardHeader as rs_card_header };\n"],"names":["CardHeader","constructor","hostRef","r","this","flex","render","h","H","name","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[82],{1034:function(t,r,o){o.d(r,{D:function(){return m},H:function(){return f},i:function(){return g},p:function(){return p}});const{min:e,max:i,floor:s,round:n}=Math;function a(t,r,o){const e=t/360*6,i=r/100,n=o/100,a=s(e),l=e-a,h=n*(1-i),c=n*(1-l*i),d=n*(1-(1-l)*i),u=a%6;return[255*[n,c,h,h,d,n][u],255*[d,n,n,c,h,h][u],255*[h,h,d,n,n,c][u]]}function l(t,r,o){return a(t,r,o).map((t=>n(t).toString(16).padStart(2,"0")))}function h(t,r,o){let e=r/100;const i=o/100,s=(2-e)*i/2;return 0!==s&&(e=1===s?0:s<.5?e*i/(2*s):e*i/(2-2*s)),[t,100*e,100*s]}function c(t,r,o){const s=t/255,n=r/255,a=o/255,l=e(s,n,a),h=i(s,n,a),c=h-l;let d,u;if(0===c)d=0,u=0;else{u=c/h;const t=((h-s)/6+c/2)/c,r=((h-n)/6+c/2)/c,o=((h-a)/6+c/2)/c;s===h?d=o-r:n===h?d=1/3+t-o:a===h&&(d=2/3+r-t),d<0?d+=1:d>1&&(d-=1)}return[360*d,100*u,100*h]}function d(t,r,o,i){const s=r/100,n=o/100,a=i/100;return[...c(255*(1-e(1,t/100*(1-a)+a)),255*(1-e(1,s*(1-a)+a)),255*(1-e(1,n*(1-a)+a)))]}function u(t,r,o){let e=r/100;const i=o/100;e*=i<.5?i:1-i;const s=2*e/(i+e)*100,n=100*(i+e);return[t,Number.isNaN(s)?0:s,n]}function p(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const r=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const r=document.createElement("canvas").getContext("2d");return null===r?null:(r.fillStyle=t,"#000"===r.fillStyle?null:r.fillStyle)}(t):t,{type:o,match:e}=function(t){const r=Object.entries({cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i}).find((([,r])=>r.exec(t)));if(void 0!==r){const o=r[1].exec(t);return{type:r[0],regex:r[1],match:o}}return{type:null}}(r),i=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===o||null===e)return{values:null,type:"hexa"};const s=t=>t>=0&&t<=1&&(t=>!!e[2]==("number"==typeof t))(t);if("cmyk"===o){const[,t,r,s,n]=i(e);if(t&&r&&s&&n&&t<=100&&r<=100&&s<=100&&n<=100)return{values:d(t,r,s,n),type:o}}if("rgba"===o){const[,,,t,r,n,a]=i(e);if(void 0!==t&&void 0!==r&&void 0!==n&&void 0!==a&&t<=255&&r<=255&&n<=255&&s(a))return{values:[...c(t,r,n),a],alpha:a,type:o}}if("hexa"===o){let[,t]=e;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const r=t.substring(0,6);let i=t.substring(6);i=i?parseInt(i,16)/255:void 0;const s=function(t){const r=t.match(/.{2}/g);if(null!==r){const[t,o,e]=r.map((t=>Number.parseInt(t,16)));return c(t,o,e)}return null}(r);if(void 0!==s)return{values:[...s,i],alpha:i,type:o}}if("hsla"===o){const[,,,t,r,n,a]=i(e);if(t&&r&&n&&a&&t<=360&&r<=100&&n<=100&&a>=0&&a<=1&&s(a))return{values:[...u(t,r,n),a],alpha:a,type:o}}if("hsva"===o){const[,,,t,r,n,a]=i(e);if(t&&r&&n&&a&&t<=360&&r<=100&&n<=100&&a>=0&&a<=1&&s(a))return{values:[t,r,n,a],alpha:a,type:o}}return{values:null,type:"hexa"}}const g=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),m="#7CA1FF";class f{constructor(t=0,r=0,o=0,e=1){this.mapper=(t,r)=>(o=-1)=>r(o>=0?t.map((t=>Number(t.toFixed(o)))):t),this.h=t,this.s=r,this.v=o,this.a=e>1?e/100:e}toHSVA(){const t=[this.h,this.s,this.v,this.a];return t.toString=this.mapper(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSLA(){const t=[...h(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSL(){const t=h(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`)),t}toRGBA(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgba(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])}, ${this.readableAlpha()})`)),t}toRGB(){const t=a(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])})`)),t}toRGBModern(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])} ${Math.round(t[1])} ${Math.round(t[2])} / ${this.alphaAsPercent()})`)),t}toCMYK(){const t=function(t,r,o){const i=a(t,r,o),s=i[0]/255,n=i[1]/255,l=i[2]/255,h=e(1-s,1-n,1-l);return[100*(1===h?0:(1-s-h)/(1-h)),100*(1===h?0:(1-n-h)/(1-h)),100*(1===h?0:(1-l-h)/(1-h)),100*h]}(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t}toHEXA(){const t=l(this.h,this.s,this.v),r=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return r&&t.push(r),t.toString=()=>`#${t.join("").toUpperCase()}`,t}toHEX(){const t=l(this.h,this.s,this.v);return t.toString=()=>`#${t.join("").toLowerCase()}`,t}set alpha(t){this.a=t>1?t/100:t}get alpha(){return this.a}set hue(t){this.h=Math.round(t)}get hue(){return this.h}set saturation(t){this.s=Math.round(t)}get saturation(){return this.s}set value(t){this.v=Math.round(t)}get value(){return this.v}clone(){return new f(this.h,this.s,this.v,this.a)}readableAlpha(){return Math.round(100*(this.a+Number.EPSILON))/100}alphaAsPercent(){return Math.round(100*(this.a+Number.EPSILON))+"%"}}},9082:function(t,r,o){o.r(r),o.d(r,{rs_color_swatch:function(){return s}});var e=o(492),i=o(1034);const s=class{constructor(t){(0,e.r)(this,t),this.close=(0,e.c)(this,"close",7),this.isDirty=!1,this.label="",this.color=i.D,this.opacity=!1,this.alignment="center",this.transparentButton=!1,this.mode="default",this.isNearBottomOfViewport=()=>window.innerHeight-this.el.getBoundingClientRect().bottom<200,this.isTopSpaceEnoughForColorPicker=()=>600<this.el.getBoundingClientRect().y,this.updateColorPickerPosition=()=>{this.isNearBottomOfViewport()&&this.isTopSpaceEnoughForColorPicker()?this.colorPicker.position="top":this.colorPicker.position="default"},this.toggleColorPicker=()=>{this.updateColorPickerPosition(),this.colorPicker.showPicker?(this.closeColorPicker(),document.removeEventListener("click",this.listenToBody.bind(this))):(this.colorPicker.show(),document.addEventListener("click",this.listenToBody.bind(this)))},this.alignmentClass=()=>"center"===this.alignment?{left:"50%",transform:"translateX(-50%)"}:{}}updateColor(t){s.allowedColorString(t)&&(this.setInternalColor(t),this.colorPicker.setColor(this.internalColor.toHEXA().toString()))}async setColor(t){s.allowedColorString(t)&&(this.setInternalColor(t),await this.colorPicker.setColor(this.internalColor.toHEXA().toString()))}async getColor(){return this.internalColor}listenToBody(t){!t.composedPath().includes(this.el)&&this.colorPicker.showPicker&&this.closeColorPicker()}closeColorPicker(){this.close.emit({color:this.color,isDirty:this.isDirty}),this.colorPicker.hide(),this.isDirty=!1}rsColorChangeHandler(t){this.setInternalColor(t.detail.value),this.isDirty=!0}swatchBackgroundColor(){return`linear-gradient(135deg, ${this.internalColor.toRGB().toString()} 50%, ${this.internalColor.toRGBModern().toString()} 50%)`}componentWillLoad(){this.setInternalColor(""===this.color?i.D:this.color)}setInternalColor(t){if("string"==typeof t)t=s.allowedColorString(t)?t:i.D,this.internalColor=new i.H(...(0,i.p)(t).values);else{if(!(t instanceof i.H))throw new Error("A valid color string or HSVaColor object is required");this.internalColor=t}this.internalOpacity=this.internalColor.alpha}render(){return(0,e.h)(e.H,{style:{display:""===this.label?"inline-block":null,width:this.getWidth()}},(0,e.h)("div",{class:"rs-color-swatch__inner",onClick:this.toggleColorPicker},(0,e.h)("div",{class:{"rs-color-swatch__container":!0,"rs-color-swatch__container--transparent":0===this.internalOpacity}},(0,e.h)("div",{class:{"rs-color-swatch__swatch":!0,"rs-color-swatch__swatch--solid-half":!0},style:{background:this.swatchBackgroundColor()}})),""!==this.label?(0,e.h)("rs-caption",{style:{display:""!==this.label?"block":null},class:"rs-color-swatch__label",color:"secondary"},""!==this.label?this.label:""):""),(0,e.h)("rs-color-picker",{class:"rs-color-swatch__color-picker",mode:this.mode,style:this.alignmentClass(),color:this.internalColor.toHEXA().toString().toLowerCase(),palettes:this.palettes,opacity:this.opacity,transparentButton:this.transparentButton,ref:t=>this.colorPicker=t}))}getWidth(){return void 0!==this.width?this.width:""!==this.label?"100%":null}static allowedColorString(t){return(0,i.i)(t)||"transparent"===t.toLowerCase()}get el(){return(0,e.g)(this)}static get watchers(){return{color:["updateColor"]}}};s.style=':host{display:block}.rs-color-swatch__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-select-border);border-radius:0.25rem;padding:0.375rem;cursor:pointer;min-width:2rem;box-sizing:border-box;display:flex;align-items:center;justify-content:start}.rs-color-swatch__container{width:1.25rem;height:1.25rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%}.rs-color-swatch__container::before{content:"";position:absolute;width:1.125rem;height:1.125rem;background-image:linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);background-size:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0;border-radius:50%;top:1px;left:1px}.rs-color-swatch__container::after{content:"";position:absolute;border-top:0.125rem solid red;width:1.125rem;transform:rotate(-45deg);transform-origin:center;top:0.5625rem;left:1px;opacity:0}.rs-color-swatch__container--transparent::after{opacity:1}.rs-color-swatch__swatch{display:block;width:1.25rem;height:1.25rem;min-width:0.625rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%;border:1px solid rgb(223 223 224)}.rs-color-swatch__container--transparent .rs-color-swatch__swatch{background:#fff !important}.rs-color-swatch__label{display:none;margin-left:0.4375rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}'}}]);
|
|
13
|
+
//# sourceMappingURL=82.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"82.index.js","mappings":";;;;;;;;;;;uNAAA,MAAM,IAAEA,EAAG,IAAEC,EAAG,MAAEC,EAAK,MAAEC,GAAUC,KAenC,SAASC,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O3E,KAAKqD,iBAAkBxB,MAAO7B,KAAK4D,cAAc1C,SAASpG,WAAWkC,cAAegI,SAAUhF,KAAKgF,SAAUjD,QAAS/B,KAAK+B,QAASE,kBAAmBjC,KAAKiC,kBAAmBgD,IAAK3C,GAAMtC,KAAK2C,YAAcL,KAE/SsC,WACE,YAAmBxH,IAAf4C,KAAKkF,MACAlF,KAAKkF,MAEK,KAAflF,KAAK4B,MACA,OAEF,KAET,0BAA0BC,GACxB,OAAO,IAAAxH,GAAWwH,IAAkC,gBAAxBA,EAAM7E,cAEpC,SAAW,OAAO,IAAAzB,GAAWyE,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,kBAGdwB,EAAcmD,MAhLW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-82f956e7.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-color-swatch.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n","import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-82f956e7.js';\n\nconst rsColorSwatchCss = \":host{display:block}.rs-color-swatch__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-select-border);border-radius:0.25rem;padding:0.375rem;cursor:pointer;min-width:2rem;box-sizing:border-box;display:flex;align-items:center;justify-content:start}.rs-color-swatch__container{width:1.25rem;height:1.25rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%}.rs-color-swatch__container::before{content:\\\"\\\";position:absolute;width:1.125rem;height:1.125rem;background-image:linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%);background-size:0.375rem 0.375rem;background-position:0 0, 0 0.1875rem, 0.1875rem -0.1875rem, -0.1875rem 0;border-radius:50%;top:1px;left:1px}.rs-color-swatch__container::after{content:\\\"\\\";position:absolute;border-top:0.125rem solid red;width:1.125rem;transform:rotate(-45deg);transform-origin:center;top:0.5625rem;left:1px;opacity:0}.rs-color-swatch__container--transparent::after{opacity:1}.rs-color-swatch__swatch{display:block;width:1.25rem;height:1.25rem;min-width:0.625rem;box-sizing:border-box;position:relative;overflow:hidden;border-radius:50%;border:1px solid rgb(223 223 224)}.rs-color-swatch__container--transparent .rs-color-swatch__swatch{background:#fff !important}.rs-color-swatch__label{display:none;margin-left:0.4375rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\";\n\nconst RsColorSwatch = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.close = createEvent(this, \"close\", 7);\n this.isDirty = false;\n /**\n * Colour picker label\n * If this is set, the label is added to the right of the color swatch\n */\n this.label = '';\n /**\n * Selected colour\n */\n this.color = DEFAULT_COLOR;\n /**\n * If true, will show an opacity slider in the colour picker popup\n */\n this.opacity = false;\n /**\n * Sets the alignment of the colour picker relative to the color swatch\n */\n this.alignment = 'center';\n /**\n * If set to true, a button will show in the color picker that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * If set to preset, we only show the preset colors and don't allow custom selection via any method\n */\n this.mode = 'default';\n /**\n * Checks if the swatch element is close to the bottom of the viewport\n */\n this.isNearBottomOfViewport = () => {\n return (window.innerHeight - this.el.getBoundingClientRect().bottom) < 200;\n };\n /**\n * Checked if there's enough space above the color swatch element for displaying the color picker\n */\n this.isTopSpaceEnoughForColorPicker = () => {\n const topOffset = 150;\n const colorPickerHeight = 450; // max height of the color picker\n const colorSwatchRect = this.el.getBoundingClientRect();\n return (colorPickerHeight + topOffset) < colorSwatchRect.y;\n };\n /**\n * If the color swatch is close to the bottom of the sidebar/view port\n * then we show the color picker above the swatch\n */\n this.updateColorPickerPosition = () => {\n /*\n * If there's no space at the bottom, but there's enough space at the top,\n * then we reposition the color picker above the swatch\n */\n if (this.isNearBottomOfViewport() && this.isTopSpaceEnoughForColorPicker()) {\n this.colorPicker.position = 'top';\n }\n else {\n this.colorPicker.position = 'default';\n }\n };\n this.toggleColorPicker = () => {\n this.updateColorPickerPosition();\n if (!this.colorPicker.showPicker) {\n this.colorPicker.show();\n document.addEventListener('click', this.listenToBody.bind(this));\n }\n else {\n this.closeColorPicker();\n document.removeEventListener('click', this.listenToBody.bind(this));\n }\n };\n this.alignmentClass = () => {\n if (this.alignment === 'center') {\n return {\n left: '50%',\n transform: 'translateX(-50%)',\n };\n }\n return {};\n };\n }\n updateColor(color) {\n if (!RsColorSwatch.allowedColorString(color)) {\n return;\n }\n this.setInternalColor(color);\n this.colorPicker.setColor(this.internalColor.toHEXA().toString());\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorSwatch.allowedColorString(color)) {\n return;\n }\n this.setInternalColor(color);\n await this.colorPicker.setColor(this.internalColor.toHEXA().toString());\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n listenToBody(event) {\n if (!event.composedPath().includes(this.el) && this.colorPicker.showPicker) {\n this.closeColorPicker();\n }\n }\n closeColorPicker() {\n this.close.emit({ color: this.color, isDirty: this.isDirty });\n this.colorPicker.hide();\n this.isDirty = false;\n }\n rsColorChangeHandler(event) {\n this.setInternalColor(event.detail.value);\n this.isDirty = true;\n }\n swatchBackgroundColor() {\n return `linear-gradient(135deg, ${this.internalColor.toRGB().toString()} 50%, ${this.internalColor.toRGBModern().toString()} 50%)`;\n }\n componentWillLoad() {\n this.setInternalColor(this.color === '' ? DEFAULT_COLOR : this.color);\n }\n setInternalColor(color) {\n if (typeof color === 'string') {\n color = RsColorSwatch.allowedColorString(color) ? color : DEFAULT_COLOR;\n this.internalColor = new HSVaColor(...parseToHSVA(color).values);\n }\n else if (color instanceof HSVaColor) {\n this.internalColor = color;\n }\n else {\n throw new Error(`A valid color string or HSVaColor object is required`);\n }\n this.internalOpacity = this.internalColor.alpha;\n }\n render() {\n return (h(Host, { style: {\n 'display': this.label === '' ? 'inline-block' : null,\n 'width': this.getWidth()\n } }, h(\"div\", { class: \"rs-color-swatch__inner\", onClick: this.toggleColorPicker }, h(\"div\", { class: {\n 'rs-color-swatch__container': true,\n 'rs-color-swatch__container--transparent': this.internalOpacity === 0,\n } }, h(\"div\", { class: {\n 'rs-color-swatch__swatch': true,\n 'rs-color-swatch__swatch--solid-half': true,\n }, style: {\n background: this.swatchBackgroundColor()\n } })), this.label !== '' ?\n h(\"rs-caption\", { style: {\n 'display': this.label !== '' ? 'block' : null,\n }, class: \"rs-color-swatch__label\", color: \"secondary\" }, this.label !== '' ? this.label : '')\n : ''), h(\"rs-color-picker\", { class: \"rs-color-swatch__color-picker\", mode: this.mode, style: this.alignmentClass(), color: this.internalColor.toHEXA().toString().toLowerCase(), palettes: this.palettes, opacity: this.opacity, transparentButton: this.transparentButton, ref: el => this.colorPicker = el })));\n }\n getWidth() {\n if (this.width !== undefined) {\n return this.width;\n }\n if (this.label !== '') {\n return '100%';\n }\n return null;\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"color\": [\"updateColor\"]\n }; }\n};\nRsColorSwatch.style = rsColorSwatchCss;\n\nexport { RsColorSwatch as rs_color_swatch };\n"],"names":["min","max","floor","round","Math","hsvToRgb","h","s","v","hLocal","sLocal","vLocal","i","f","p","q","t","mod","hsvToHex","map","rgb","toString","padStart","hsvToHsl","l","rgbToHsv","red","green","blue","r","g","b","minVal","maxVal","delta","dr","dg","db","cmykToHsv","cyan","magenta","yellow","key","m","y","k","hslToHsv","hue","saturation","lightness","ns","Number","isNaN","parseToHSVA","colorString","toLowerCase","string","match","name","undefined","ctx","document","createElement","getContext","fillStyle","standardizeColor","type","colorType","Object","entries","cmyk","rgba","hsla","hsva","hexa","find","colorRegex","exec","regex","getColorType","numarize","array","test","values","isValidAlpha","a","hasValidAlphaChannel","c","alpha","hex","length","split","join","raw","substring","parseInt","hsvValue","hexRgb","hexToHsv","isValidHex","DEFAULT_COLOR","HSVaColor","constructor","this","mapper","original","next","precision","toFixed","toHSVA","arr","readableAlpha","toHSLA","toHSL","hsl","toRGBA","toRGB","toRGBModern","alphaAsPercent","toCMYK","hsvToCmyk","toHEXA","toUpperCase","push","toHEX","clone","EPSILON","RsColorSwatch","hostRef","close","isDirty","label","color","D","opacity","alignment","transparentButton","mode","isNearBottomOfViewport","window","innerHeight","el","getBoundingClientRect","bottom","isTopSpaceEnoughForColorPicker","updateColorPickerPosition","colorPicker","position","toggleColorPicker","showPicker","closeColorPicker","removeEventListener","listenToBody","bind","show","addEventListener","alignmentClass","left","transform","updateColor","allowedColorString","setInternalColor","setColor","internalColor","event","composedPath","includes","emit","hide","rsColorChangeHandler","detail","value","swatchBackgroundColor","componentWillLoad","H","Error","internalOpacity","render","style","getWidth","class","onClick","background","palettes","ref","width"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[858],{7858:function(s,e,i){i.r(e),i.d(e,{rs_sidebar_incrementer:function(){return n}});var t=i(492);const n=class{constructor(s){(0,t.r)(this,s),this.step=1,this.value=1,this.min=0,this.max=100,this.suffix="",this.dropdown=!1,this.decimalPlaces=0,this.dropdownStep=0}render(){const s=void 0!==this.heading?(0,t.h)("rs-header",{style:{"margin-bottom":"10px"},heading:"5"},this.heading):"";return(0,t.h)(t.H,null,s,(0,t.h)("rs-incrementer",{step:this.step,value:this.value,min:this.min,max:this.max,suffix:this.suffix,dropdown:this.dropdown,"decimal-places":this.decimalPlaces,"dropdown-step":this.dropdownStep}))}};n.style="rs-sidebar-incrementer{display:block}"}}]);
|
|
13
|
+
//# sourceMappingURL=858.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"858.index.js","mappings":";;;;;;;;;;;4LAEA,MAEMA,EAAuB,MAC3BC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,KAAO,EAKZD,KAAKE,MAAQ,EAIbF,KAAKG,IAAM,EAIXH,KAAKI,IAAM,IAIXJ,KAAKK,OAAS,GAIdL,KAAKM,UAAW,EAIhBN,KAAKO,cAAgB,EAIrBP,KAAKQ,aAAe,EAEtBC,SACE,MAAMC,OAAkCC,IAAjBX,KAAKY,SAAyB,IAAAC,GAAE,YAAa,CAAEC,MAAO,CAAE,gBAAiB,QAAUF,QAAS,KAAOZ,KAAKY,SAAY,GAC3I,OAAQ,IAAAC,GAAE,EAAAE,EAAM,KAAML,GAAgB,IAAAG,GAAE,iBAAkB,CAAEZ,KAAMD,KAAKC,KAAMC,MAAOF,KAAKE,MAAOC,IAAKH,KAAKG,IAAKC,IAAKJ,KAAKI,IAAKC,OAAQL,KAAKK,OAAQC,SAAUN,KAAKM,SAAU,iBAAkBN,KAAKO,cAAe,gBAAiBP,KAAKQ,kBAG5OZ,EAAqBkB,MA5CS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-sidebar-incrementer.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst sidebarIncrementerCss = \"rs-sidebar-incrementer{display:block}\";\n\nconst RsSidebarIncrementer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * How much we want to increment/decrement\n */\n this.step = 1;\n /**\n * The value of the incrementer\n */\n // eslint-disable-next-line @stencil/strict-mutable\n this.value = 1;\n /**\n * Minimum value of the incrementer\n */\n this.min = 0;\n /**\n * Maximum value of the incrementer\n */\n this.max = 100;\n /**\n * (Optional) Text added after the value e.g. px, em, etc.\n */\n this.suffix = '';\n /**\n * If set to true, a dropdown will be added to the incrementer.\n */\n this.dropdown = false;\n /**\n * The number of digits to appear after the decimal point.\n */\n this.decimalPlaces = 0;\n /**\n * How much we want the dropdown to increment/decrement\n */\n this.dropdownStep = 0;\n }\n render() {\n const headingElement = this.heading !== undefined ? (h(\"rs-header\", { style: { 'margin-bottom': '10px' }, heading: \"5\" }, this.heading)) : '';\n return (h(Host, null, headingElement, h(\"rs-incrementer\", { step: this.step, value: this.value, min: this.min, max: this.max, suffix: this.suffix, dropdown: this.dropdown, \"decimal-places\": this.decimalPlaces, \"dropdown-step\": this.dropdownStep })));\n }\n};\nRsSidebarIncrementer.style = sidebarIncrementerCss;\n\nexport { RsSidebarIncrementer as rs_sidebar_incrementer };\n"],"names":["RsSidebarIncrementer","constructor","hostRef","r","this","step","value","min","max","suffix","dropdown","decimalPlaces","dropdownStep","render","headingElement","undefined","heading","h","style","H"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[882],{7882:function(s,e,t){t.r(e),t.d(e,{rs_col:function(){return r}});var i=t(492);const r=class{constructor(s){(0,i.r)(this,s),this.flexGrow="1",this.flexBasis="0"}render(){return(0,i.h)(i.H,{style:{"flex-grow":this.flexGrow,"flex-basis":this.flexBasis}},(0,i.h)("slot",null))}};r.style=":host{box-sizing:border-box;position:relative;width:100%;max-width:100%;min-height:1px;}"}}]);
|
|
13
|
+
//# sourceMappingURL=882.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"882.index.js","mappings":";;;;;;;;;;;4KAEA,MAEMA,EAAM,MACVC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,SAAW,IAIhBD,KAAKE,UAAY,IAEnBC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,YAAaN,KAAKC,SAClB,aAAcD,KAAKE,aAChB,IAAAE,GAAE,OAAQ,SAGrBR,EAAIU,MArBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-col.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst colCss = \":host{box-sizing:border-box;position:relative;width:100%;max-width:100%;min-height:1px;}\";\n\nconst Col = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * flex-grow CSS rule\n */\n this.flexGrow = '1';\n /**\n * flex-basis CSS rule\n */\n this.flexBasis = '0';\n }\n render() {\n return (h(Host, { style: {\n 'flex-grow': this.flexGrow,\n 'flex-basis': this.flexBasis,\n } }, h(\"slot\", null)));\n }\n};\nCol.style = colCss;\n\nexport { Col as rs_col };\n"],"names":["Col","constructor","hostRef","r","this","flexGrow","flexBasis","render","h","H","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[895],{8895:function(e,t,s){s.r(t),s.d(t,{rs_list_select:function(){return l}});var r=s(492);const l=class{constructor(e){(0,r.r)(this,e),this.rsChange=(0,r.c)(this,"rsChange",7)}valueChanged(e){this.rsChange.emit({value:e})}componentDidLoad(){this.el.querySelectorAll("rs-list-item").forEach((e=>{e.selectable=!0}))}render(){return(0,r.h)(r.H,null,(0,r.h)("slot",null))}get el(){return(0,r.g)(this)}static get watchers(){return{value:["valueChanged"]}}};l.style=":host{display:block}::slotted(rs-list-item:not(last-child)){margin-bottom:0.5rem}"}}]);
|
|
13
|
+
//# sourceMappingURL=895.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"895.index.js","mappings":";;;;;;;;;;;oLAEA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAKhDG,aAAaC,GACXJ,KAAKC,SAASI,KAAK,CAAED,MAAAA,IAEvBE,mBACoBN,KAAKO,GAAGC,iBAAiB,gBACjCC,SAASC,IACjBA,EAASC,YAAa,KAG1BC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,OAElC,SAAW,OAAO,IAAAE,GAAWf,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,mBAGdJ,EAAaoB,MA3BW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-list-select.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst rsListSelectCss = \":host{display:block}::slotted(rs-list-item:not(last-child)){margin-bottom:0.5rem}\";\n\nconst RsListSelect = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n }\n /**\n * Watch for any changes on the `value` property.\n */\n valueChanged(value) {\n this.rsChange.emit({ value });\n }\n componentDidLoad() {\n const listItems = this.el.querySelectorAll('rs-list-item'); // Get all the radio items\n listItems.forEach((listItem) => {\n listItem.selectable = true;\n });\n }\n render() {\n return (h(Host, null, h(\"slot\", null)));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nRsListSelect.style = rsListSelectCss;\n\nexport { RsListSelect as rs_list_select };\n"],"names":["RsListSelect","constructor","hostRef","r","this","rsChange","c","valueChanged","value","emit","componentDidLoad","el","querySelectorAll","forEach","listItem","selectable","render","h","H","g","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[903],{2903:function(e,t,s){s.r(t),s.d(t,{rs_card:function(){return o}});var l=s(492);const o=class{constructor(e){(0,l.r)(this,e),this.rsStyle=(0,l.c)(this,"rsStyle",7),this.disabled=!1,this.collapsed=!1,this.collapsible=!1,this.type="task"}collapseChanged(){this.emitStyle()}emitStyle(){this.rsStyle.emit({"card-collapsed":this.collapsed})}async toggle(){this.toggleContentHandler()}async close(){this.closeCardHandler()}async open(){this.openCardHandler()}toggleContentHandler(){null!==this.el.shadowRoot.querySelector(".card-content")&&(this.collapsed?this.openCardHandler():this.closeCardHandler())}closeCardHandler(){const e=this.el.shadowRoot.querySelector(".card-content");null!==e&&(this.collapsed=!0,e.style.maxHeight=`${e.scrollHeight}px`,setTimeout((function(){e.style.maxHeight=null})))}openCardHandler(){const e=this.el.shadowRoot.querySelector(".card-content");null!==e&&(this.collapsed=!1,e.style.maxHeight=`${e.scrollHeight}px`,setTimeout((function(){e.style.maxHeight="none"}),400))}componentDidLoad(){const e=this.el.shadowRoot.querySelector(".card-content");null!==e&&0==this.collapsed&&(e.style.maxHeight="unset")}render(){return(0,l.h)(l.H,{class:{"rs-component-shadow--task":"task"===this.type,collapsed:this.collapsed,collapsible:this.collapsible}},(0,l.h)("div",{class:"card-header"},(0,l.h)("slot",{name:"header"})),(0,l.h)("div",{class:"card-content"},(0,l.h)("slot",null)))}get el(){return(0,l.g)(this)}static get watchers(){return{collapsed:["collapseChanged"]}}};o.style=":host{display:block;width:100%;border-radius:0.625rem;height:auto;cursor:default}:host(.collapsible) .card-header{cursor:pointer}:host .card-content{display:block;max-height:0;overflow:hidden;transition:max-height 0.4s ease-in-out}"}}]);
|
|
13
|
+
//# sourceMappingURL=903.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"903.index.js","mappings":";;;;;;;;;;;6KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,SAAU,IAAAC,GAAYF,KAAM,UAAW,GAK5CA,KAAKG,UAAW,EAIhBH,KAAKI,WAAY,EAIjBJ,KAAKK,aAAc,EAKnBL,KAAKM,KAAO,OAKdC,kBACEP,KAAKQ,YAKPA,YACER,KAAKC,QAAQQ,KAAK,CAChB,iBAAkBT,KAAKI,YAM3B,eACEJ,KAAKU,uBAKP,cACEV,KAAKW,mBAKP,aACEX,KAAKY,kBAKPF,uBAEkB,OADAV,KAAKa,GAAGC,WAAWC,cAAc,mBAE3Cf,KAAKI,UACPJ,KAAKY,kBAGLZ,KAAKW,oBAOXA,mBACE,MAAMK,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,IACFhB,KAAKI,WAAY,EACjBY,EAAQC,MAAMC,UAAY,GAAGF,EAAQG,iBACrCC,YAAW,WACTJ,EAAQC,MAAMC,UAAY,SAOhCN,kBACE,MAAMI,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,IACFhB,KAAKI,WAAY,EACjBY,EAAQC,MAAMC,UAAY,GAAGF,EAAQG,iBACrCC,YAAW,WACTJ,EAAQC,MAAMC,UAAY,SACzB,MAMPG,mBACE,MAAML,EAAUhB,KAAKa,GAAGC,WAAWC,cAAc,iBACjC,OAAZC,GAAsC,GAAlBhB,KAAKI,YAC3BY,EAAQC,MAAMC,UAAY,SAM9BI,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,4BAA2C,SAAdzB,KAAKM,KAClC,UAAaN,KAAKI,UAClB,YAAeJ,KAAKK,eACjB,IAAAkB,GAAE,MAAO,CAAEE,MAAO,gBAAiB,IAAAF,GAAE,OAAQ,CAAEG,KAAM,aAAc,IAAAH,GAAE,MAAO,CAAEE,MAAO,iBAAkB,IAAAF,GAAE,OAAQ,QAE1H,SAAW,OAAO,IAAAI,GAAW3B,MAC7B,sBAAwB,MAAO,CAC7B,UAAa,CAAC,sBAGlBJ,EAAOqB,MAzHW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst rsCardCss = \":host{display:block;width:100%;border-radius:0.625rem;height:auto;cursor:default}:host(.collapsible) .card-header{cursor:pointer}:host .card-content{display:block;max-height:0;overflow:hidden;transition:max-height 0.4s ease-in-out}\";\n\nconst RsCard = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsStyle = createEvent(this, \"rsStyle\", 7);\n /**\n * (optional)\n * Puts the card in a disabled state.\n */\n this.disabled = false;\n /**\n * If true, card is collapsed. Only the top part of the card (header) is visible.\n */\n this.collapsed = false;\n /**\n * If true, the card will be clickable and will expand.\n */\n this.collapsible = false;\n /**\n * Type of card\n * If set to 'task', it gives the card a drop shadow\n */\n this.type = 'task';\n }\n /**\n * Watch for any changes on the `collapsed` property.\n */\n collapseChanged() {\n this.emitStyle(); // disabled changed, emit change in styling\n }\n /**\n * Emits `rsStyle` event when the styles of the card change.\n */\n emitStyle() {\n this.rsStyle.emit({\n 'card-collapsed': this.collapsed\n });\n }\n /**\n * A function that can be called directly from the element for toggling the card.\n */\n async toggle() {\n this.toggleContentHandler();\n }\n /**\n * A function that can be called directly from the element for hiding card.\n */\n async close() {\n this.closeCardHandler();\n }\n /**\n * A function that can be called directly from the element for showing card.\n */\n async open() {\n this.openCardHandler();\n }\n /**\n * Expands the card when the user clicks on it.\n */\n toggleContentHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n if (this.collapsed) {\n this.openCardHandler();\n }\n else {\n this.closeCardHandler();\n }\n }\n }\n /**\n * An internal function for hiding the card component\n */\n closeCardHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n this.collapsed = true;\n content.style.maxHeight = `${content.scrollHeight}px`;\n setTimeout(function () {\n content.style.maxHeight = null;\n });\n }\n }\n /**\n * An internal function for hiding the card component\n */\n openCardHandler() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null) {\n this.collapsed = false;\n content.style.maxHeight = `${content.scrollHeight}px`;\n setTimeout(function () {\n content.style.maxHeight = 'none';\n }, 400);\n }\n }\n /**\n * Runs after all the child components have been loaded & rendered\n */\n componentDidLoad() {\n const content = this.el.shadowRoot.querySelector('.card-content');\n if (content !== null && this.collapsed == false) {\n content.style.maxHeight = 'unset';\n }\n }\n /**\n * This renders the component.\n */\n render() {\n return (h(Host, { class: {\n 'rs-component-shadow--task': this.type === 'task',\n 'collapsed': this.collapsed,\n 'collapsible': this.collapsible\n } }, h(\"div\", { class: \"card-header\" }, h(\"slot\", { name: \"header\" })), h(\"div\", { class: \"card-content\" }, h(\"slot\", null))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"collapsed\": [\"collapseChanged\"]\n }; }\n};\nRsCard.style = rsCardCss;\n\nexport { RsCard as rs_card };\n"],"names":["RsCard","constructor","hostRef","r","this","rsStyle","c","disabled","collapsed","collapsible","type","collapseChanged","emitStyle","emit","toggleContentHandler","closeCardHandler","openCardHandler","el","shadowRoot","querySelector","content","style","maxHeight","scrollHeight","setTimeout","componentDidLoad","render","h","H","class","name","g"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[911],{5911:function(e,t,o){o.r(t),o.d(t,{rs_checkbox:function(){return n}});var i=o(492);const n=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.disabled=!1,this.checked=!1,this.onChange=e=>{const t=e.target;void 0!==t&&(this.checked=t.checked,this.rsChange.emit({value:this.checked}))}}render(){return(0,i.h)(i.H,null,(0,i.h)("input",{onChange:this.onChange,type:"checkbox",id:"checkbox",disabled:this.disabled,checked:this.checked}),(0,i.h)("label",{htmlFor:"checkbox"},(0,i.h)("rs-content",{body:2,color:"grey",display:"inline-block"},(0,i.h)("slot",null))))}};n.style=":host{display:block}input{display:none;cursor:pointer;width:1.25rem;height:1.25rem}input+label{position:relative;cursor:pointer;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none}input+label rs-content{margin-left:1.625rem}input+label::before,input+label::after{width:1.25rem;height:1.25rem;content:' ';display:inline-block;border-radius:0.1875rem;cursor:pointer;transition:background 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;position:absolute;left:0;text-align:center;top:1px}input+label::before{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey)}input+label::after{opacity:0;margin-top:0.125rem;font-size:0.875rem}input:checked+label::before{background:var(--rs-color-primary);box-shadow:inset 0 0 0 1px var(--rs-color-primary)}input:checked+label::after{content:\"\\e901\";color:#FFF;opacity:1;font-family:'rs-icons' !important;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[disabled],input[disabled]+label,input[disabled]+label::before,input[disabled]+label::after,input[disabled]:checked+label,input[disabled]:checked+label::before,input[disabled]:checked+label::after{filter:grayscale(1);cursor:not-allowed}label rs-content{line-height:1.5em}"}}]);
|
|
13
|
+
//# sourceMappingURL=911.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"911.index.js","mappings":";;;;;;;;;;;iLAEA,MAEMA,EAAa,MACjBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,UAAW,IAAAC,GAAYF,KAAM,WAAY,GAI9CA,KAAKG,UAAW,EAIhBH,KAAKI,SAAU,EACfJ,KAAKK,SAAYC,IACf,MAAMC,EAAWD,EAAGE,YACHC,IAAbF,IACFP,KAAKI,QAAUG,EAASH,QACxBJ,KAAKC,SAASS,KAAK,CAAEC,MAAOX,KAAKI,YAIvCQ,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,QAAS,CAAER,SAAUL,KAAKK,SAAUU,KAAM,WAAYC,GAAI,WAAYb,SAAUH,KAAKG,SAAUC,QAASJ,KAAKI,WAAY,IAAAS,GAAE,QAAS,CAAEI,QAAS,aAAc,IAAAJ,GAAE,aAAc,CAAEK,KAAM,EAAGC,MAAO,OAAQC,QAAS,iBAAkB,IAAAP,GAAE,OAAQ,WAGxQjB,EAAWyB,MA1BS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-checkbox.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\n\nconst checkboxCss = \":host{display:block}input{display:none;cursor:pointer;width:1.25rem;height:1.25rem}input+label{position:relative;cursor:pointer;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none}input+label rs-content{margin-left:1.625rem}input+label::before,input+label::after{width:1.25rem;height:1.25rem;content:' ';display:inline-block;border-radius:0.1875rem;cursor:pointer;transition:background 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;position:absolute;left:0;text-align:center;top:1px}input+label::before{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey)}input+label::after{opacity:0;margin-top:0.125rem;font-size:0.875rem}input:checked+label::before{background:var(--rs-color-primary);box-shadow:inset 0 0 0 1px var(--rs-color-primary)}input:checked+label::after{content:\\\"\\\\e901\\\";color:#FFF;opacity:1;font-family:'rs-icons' !important;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[disabled],input[disabled]+label,input[disabled]+label::before,input[disabled]+label::after,input[disabled]:checked+label,input[disabled]:checked+label::before,input[disabled]:checked+label::after{filter:grayscale(1);cursor:not-allowed}label rs-content{line-height:1.5em}\";\n\nconst RsCheckbox = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n /**\n * Disabled attribute of a standard html input\n */\n this.disabled = false;\n /**\n * Checked attribute of a standard input type=checkbox element\n */\n this.checked = false;\n this.onChange = (ev) => {\n const checkbox = ev.target;\n if (checkbox !== undefined) {\n this.checked = checkbox.checked;\n this.rsChange.emit({ value: this.checked });\n }\n };\n }\n render() {\n return (h(Host, null, h(\"input\", { onChange: this.onChange, type: \"checkbox\", id: \"checkbox\", disabled: this.disabled, checked: this.checked }), h(\"label\", { htmlFor: 'checkbox' }, h(\"rs-content\", { body: 2, color: 'grey', display: 'inline-block' }, h(\"slot\", null)))));\n }\n};\nRsCheckbox.style = checkboxCss;\n\nexport { RsCheckbox as rs_checkbox };\n"],"names":["RsCheckbox","constructor","hostRef","r","this","rsChange","c","disabled","checked","onChange","ev","checkbox","target","undefined","emit","value","render","h","H","type","id","htmlFor","body","color","display","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[912],{1034:function(t,s,r){r.d(s,{D:function(){return f},H:function(){return g},i:function(){return m},p:function(){return d}});const{min:o,max:i,floor:e,round:n}=Math;function a(t,s,r){const o=t/360*6,i=s/100,n=r/100,a=e(o),h=o-a,l=n*(1-i),c=n*(1-h*i),u=n*(1-(1-h)*i),p=a%6;return[255*[n,c,l,l,u,n][p],255*[u,n,n,c,l,l][p],255*[l,l,u,n,n,c][p]]}function h(t,s,r){return a(t,s,r).map((t=>n(t).toString(16).padStart(2,"0")))}function l(t,s,r){let o=s/100;const i=r/100,e=(2-o)*i/2;return 0!==e&&(o=1===e?0:e<.5?o*i/(2*e):o*i/(2-2*e)),[t,100*o,100*e]}function c(t,s,r){const e=t/255,n=s/255,a=r/255,h=o(e,n,a),l=i(e,n,a),c=l-h;let u,p;if(0===c)u=0,p=0;else{p=c/l;const t=((l-e)/6+c/2)/c,s=((l-n)/6+c/2)/c,r=((l-a)/6+c/2)/c;e===l?u=r-s:n===l?u=1/3+t-r:a===l&&(u=2/3+s-t),u<0?u+=1:u>1&&(u-=1)}return[360*u,100*p,100*l]}function u(t,s,r,i){const e=s/100,n=r/100,a=i/100;return[...c(255*(1-o(1,t/100*(1-a)+a)),255*(1-o(1,e*(1-a)+a)),255*(1-o(1,n*(1-a)+a)))]}function p(t,s,r){let o=s/100;const i=r/100;o*=i<.5?i:1-i;const e=2*o/(i+o)*100,n=100*(i+o);return[t,Number.isNaN(e)?0:e,n]}function d(t="#000"){"transparent"===t.toLowerCase()&&(t="#00000000");const s=null!==t.match(/^[a-zA-Z]+$/)?function(t){if(void 0===t)return"#000";if("black"===t.toLowerCase())return"#000";const s=document.createElement("canvas").getContext("2d");return null===s?null:(s.fillStyle=t,"#000"===s.fillStyle?null:s.fillStyle)}(t):t,{type:r,match:o}=function(t){const s=Object.entries({cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i}).find((([,s])=>s.exec(t)));if(void 0!==s){const r=s[1].exec(t);return{type:s[0],regex:s[1],match:r}}return{type:null}}(s),i=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));if(null===r||null===o)return{values:null,type:"hexa"};const e=t=>t>=0&&t<=1&&(t=>!!o[2]==("number"==typeof t))(t);if("cmyk"===r){const[,t,s,e,n]=i(o);if(t&&s&&e&&n&&t<=100&&s<=100&&e<=100&&n<=100)return{values:u(t,s,e,n),type:r}}if("rgba"===r){const[,,,t,s,n,a]=i(o);if(void 0!==t&&void 0!==s&&void 0!==n&&void 0!==a&&t<=255&&s<=255&&n<=255&&e(a))return{values:[...c(t,s,n),a],alpha:a,type:r}}if("hexa"===r){let[,t]=o;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const s=t.substring(0,6);let i=t.substring(6);i=i?parseInt(i,16)/255:void 0;const e=function(t){const s=t.match(/.{2}/g);if(null!==s){const[t,r,o]=s.map((t=>Number.parseInt(t,16)));return c(t,r,o)}return null}(s);if(void 0!==e)return{values:[...e,i],alpha:i,type:r}}if("hsla"===r){const[,,,t,s,n,a]=i(o);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[...p(t,s,n),a],alpha:a,type:r}}if("hsva"===r){const[,,,t,s,n,a]=i(o);if(t&&s&&n&&a&&t<=360&&s<=100&&n<=100&&a>=0&&a<=1&&e(a))return{values:[t,s,n,a],alpha:a,type:r}}return{values:null,type:"hexa"}}const m=t=>void 0!==t&&t.match(/^#?[\dA-Fa-f]{6,8}$/i),f="#7CA1FF";class g{constructor(t=0,s=0,r=0,o=1){this.mapper=(t,s)=>(r=-1)=>s(r>=0?t.map((t=>Number(t.toFixed(r)))):t),this.h=t,this.s=s,this.v=r,this.a=o>1?o/100:o}toHSVA(){const t=[this.h,this.s,this.v,this.a];return t.toString=this.mapper(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSLA(){const t=[...l(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${this.readableAlpha()})`)),t}toHSL(){const t=l(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`)),t}toRGBA(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgba(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])}, ${this.readableAlpha()})`)),t}toRGB(){const t=a(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])}, ${Math.round(t[1])}, ${Math.round(t[2])})`)),t}toRGBModern(){const t=[...a(this.h,this.s,this.v),this.a];return t.toString=this.mapper(t,(t=>`rgb(${Math.round(t[0])} ${Math.round(t[1])} ${Math.round(t[2])} / ${this.alphaAsPercent()})`)),t}toCMYK(){const t=function(t,s,r){const i=a(t,s,r),e=i[0]/255,n=i[1]/255,h=i[2]/255,l=o(1-e,1-n,1-h);return[100*(1===l?0:(1-e-l)/(1-l)),100*(1===l?0:(1-n-l)/(1-l)),100*(1===l?0:(1-h-l)/(1-l)),100*l]}(this.h,this.s,this.v);return t.toString=this.mapper(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t}toHEXA(){const t=h(this.h,this.s,this.v),s=this.a>=1?"":Number((255*this.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return s&&t.push(s),t.toString=()=>`#${t.join("").toUpperCase()}`,t}toHEX(){const t=h(this.h,this.s,this.v);return t.toString=()=>`#${t.join("").toLowerCase()}`,t}set alpha(t){this.a=t>1?t/100:t}get alpha(){return this.a}set hue(t){this.h=Math.round(t)}get hue(){return this.h}set saturation(t){this.s=Math.round(t)}get saturation(){return this.s}set value(t){this.v=Math.round(t)}get value(){return this.v}clone(){return new g(this.h,this.s,this.v,this.a)}readableAlpha(){return Math.round(100*(this.a+Number.EPSILON))/100}alphaAsPercent(){return Math.round(100*(this.a+Number.EPSILON))+"%"}}},4912:function(t,s,r){r.r(s),r.d(s,{rs_caption:function(){return e},rs_color_picker:function(){return n}});var o=r(492),i=r(1034);const e=class{constructor(t){(0,o.r)(this,t),this.color="secondary"}render(){return(0,o.h)(o.H,{style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,o.h)("slot",null))}};e.style=":host{display:block;font-family:soleil, sans-serif;font-weight:400;font-style:normal;line-height:1.4em;font-size:0.75rem;letter-spacing:0.2px}";const n=class{constructor(t){(0,o.r)(this,t),this.rsColorChange=(0,o.c)(this,"rsColorChange",7),this.rsPresetColorChoice=(0,o.c)(this,"rsPresetColorChoice",7),this.color=i.D,this.opacity=!1,this.showPicker=!1,this.position="default",this.display="default",this.transparentButton=!1,this.colorSwatches=null,this.mode="default",this.onColorChange=t=>{t.stopImmediatePropagation(),this.internalColor=t.detail,this.rsColorChange.emit({value:t.detail})},this.onPresetColorChoice=t=>{t.stopImmediatePropagation(),this.rsPresetColorChoice.emit({value:t.detail})},this.positionStyle=()=>"top"===this.position?{bottom:"37px","margin-top":"0px","padding-bottom":"0px"}:{}}async setColor(t){n.allowedColorString(t)&&await this.rsColorPicker.setColor(t)}async getColor(){return this.internalColor}async show(){this.showPicker=!0}async hide(){this.showPicker=!1}componentWillLoad(){var t;this.internalColor=new i.H(...(0,i.p)(null!==(t=this.color)&&void 0!==t?t:i.D).values)}render(){return(0,o.h)(o.H,{style:Object.assign({display:this.showPicker||"inline"===this.display?"block":"none"},this.positionStyle()),class:`rs-color-picker--${this.display}`},(0,o.h)("div",{class:"rs-color-picker__inner"},(0,o.h)("div",{class:"rs-color-picker__swatch"}),(0,o.h)("div",{class:"rs-color-picker__popup"},(0,o.h)("color-picker",{class:"rs-color-picker__picker",color:this.color,mode:this.mode,palettes:this.palettes,opacity:this.opacity,display:this.display,transparentButton:this.transparentButton,onColorChange:this.onColorChange,onPresetColorChoice:this.onPresetColorChoice,ref:t=>this.rsColorPicker=t}))))}static allowedColorString(t){return(0,i.i)(t)||"transparent"===t.toLowerCase()}};n.style=":host{display:block;margin-top:0.3125rem;position:absolute;z-index:2;padding-bottom:1.25rem}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:31.25rem}"}}]);
|
|
13
|
+
//# sourceMappingURL=912.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"912.index.js","mappings":";;;;;;;;;;;wNAAA,MAAM,IAAEA,EAAG,IAAEC,EAAG,MAAEC,EAAK,MAAEC,GAAUC,KAenC,SAASC,EAASC,EAAGC,EAAGC,GACtB,MAAMC,EAAUH,EAAI,IAAO,EACrBI,EAASH,EAAI,IACbI,EAASH,EAAI,IACbI,EAAIV,EAAMO,GACVI,EAAIJ,EAASG,EACbE,EAAIH,GAAU,EAAID,GAClBK,EAAIJ,GAAU,EAAIE,EAAIH,GACtBM,EAAIL,GAAU,GAAK,EAAIE,GAAKH,GAC5BO,EAAML,EAAI,EAIhB,MAAO,CAAK,IAHF,CAACD,EAAQI,EAAGD,EAAGA,EAAGE,EAAGL,GAAQM,GAGlB,IAFX,CAACD,EAAGL,EAAQA,EAAQI,EAAGD,EAAGA,GAAGG,GAET,IADpB,CAACH,EAAGA,EAAGE,EAAGL,EAAQA,EAAQI,GAAGE,IAGzC,SAASC,EAASZ,EAAGC,EAAGC,GACtB,OAAOH,EAASC,EAAGC,EAAGC,GAAGW,KAAIC,GAAOjB,EAAMiB,GACvCC,SAAS,IACTC,SAAS,EAAG,OAajB,SAASC,EAASjB,EAAGC,EAAGC,GACtB,IAAIE,EAASH,EAAI,IACjB,MAAMI,EAASH,EAAI,IACbgB,GAAM,EAAId,GAAUC,EAAU,EAYpC,OAXU,IAANa,IAEAd,EADQ,IAANc,EACO,EAEFA,EAAI,GACDd,EAASC,GAAe,EAAJa,GAGpBd,EAASC,GAAW,EAAQ,EAAJa,IAG/B,CAAClB,EAAY,IAATI,EAAkB,IAAJc,GAE3B,SAASC,EAASC,EAAKC,EAAOC,GAC5B,MAAMC,EAAIH,EAAM,IACVI,EAAIH,EAAQ,IACZI,EAAIH,EAAO,IACXI,EAAShC,EAAI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kB,oBACE,IAAIC,EACJtD,KAAK4C,cAAgB,IAAI,EAAAhB,MAAa,IAAArH,GAAkC,QAArB+I,EAAKtD,KAAK0B,aAA0B,IAAP4B,EAAgBA,EAAK,EAAArB,GAAerD,QAEtH+C,SACE,OAAQ,IAAA5H,GAAE,EAAA6H,EAAM,CAAEC,MAAOhE,OAAO0F,OAAO,CAAElB,QAAUrC,KAAKmC,YAA+B,WAAjBnC,KAAKqC,QAAwB,QAAU,QAAUrC,KAAKiD,iBAAkBO,MAAO,oBAAoBxD,KAAKqC,YAAa,IAAAtI,GAAE,MAAO,CAAEyJ,MAAO,2BAA4B,IAAAzJ,GAAE,MAAO,CAAEyJ,MAAO,6BAA8B,IAAAzJ,GAAE,MAAO,CAAEyJ,MAAO,2BAA4B,IAAAzJ,GAAE,eAAgB,CAAEyJ,MAAO,0BAA2B9B,MAAO1B,KAAK0B,MAAOc,KAAMxC,KAAKwC,KAAMiB,SAAUzD,KAAKyD,SAAUvB,QAASlC,KAAKkC,QAASG,QAASrC,KAAKqC,QAASC,kBAAmBtC,KAAKsC,kBAAmBG,cAAezC,KAAKyC,cAAeO,oBAAqBhD,KAAKgD,oBAAqBU,IAAKC,GAAM3D,KAAKmD,cAAgBQ,OAEvoB,0BAA0BjC,GACxB,OAAO,IAAArH,GAAWqH,IAAkC,gBAAxBA,EAAM1E,gBAGtC8E,EAAcD,MArGW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/HSVaColor-82f956e7.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-caption_2.entry.js"],"sourcesContent":["const { min, max, floor, round } = Math;\nfunction standardizeColor(name) {\n if (name === undefined) {\n return '#000';\n }\n if (name.toLowerCase() === 'black') {\n return '#000';\n }\n const ctx = document.createElement('canvas').getContext('2d');\n if (ctx === null) {\n return null;\n }\n ctx.fillStyle = name;\n return ctx.fillStyle === '#000' ? null : ctx.fillStyle;\n}\nfunction hsvToRgb(h, s, v) {\n const hLocal = (h / 360) * 6;\n const sLocal = s / 100;\n const vLocal = v / 100;\n const i = floor(hLocal);\n const f = hLocal - i;\n const p = vLocal * (1 - sLocal);\n const q = vLocal * (1 - f * sLocal);\n const t = vLocal * (1 - (1 - f) * sLocal);\n const mod = i % 6;\n const r = [vLocal, q, p, p, t, vLocal][mod];\n const g = [t, vLocal, vLocal, q, p, p][mod];\n const b = [p, p, t, vLocal, vLocal, q][mod];\n return [r * 255, g * 255, b * 255];\n}\nfunction hsvToHex(h, s, v) {\n return hsvToRgb(h, s, v).map(rgb => round(rgb)\n .toString(16)\n .padStart(2, '0'));\n}\nfunction hsvToCmyk(h, s, v) {\n const rgb = hsvToRgb(h, s, v);\n const r = rgb[0] / 255;\n const g = rgb[1] / 255;\n const b = rgb[2] / 255;\n const k = min(1 - r, 1 - g, 1 - b);\n const c = k === 1 ? 0 : (1 - r - k) / (1 - k);\n const m = k === 1 ? 0 : (1 - g - k) / (1 - k);\n const y = k === 1 ? 0 : (1 - b - k) / (1 - k);\n return [c * 100, m * 100, y * 100, k * 100];\n}\nfunction hsvToHsl(h, s, v) {\n let sLocal = s / 100;\n const vLocal = v / 100;\n const l = ((2 - sLocal) * vLocal) / 2;\n if (l !== 0) {\n if (l === 1) {\n sLocal = 0;\n }\n else if (l < 0.5) {\n sLocal = (sLocal * vLocal) / (l * 2);\n }\n else {\n sLocal = (sLocal * vLocal) / (2 - l * 2);\n }\n }\n return [h, sLocal * 100, l * 100];\n}\nfunction rgbToHsv(red, green, blue) {\n const r = red / 255;\n const g = green / 255;\n const b = blue / 255;\n const minVal = min(r, g, b);\n const maxVal = max(r, g, b);\n const delta = maxVal - minVal;\n let h;\n let s;\n const v = maxVal;\n if (delta === 0) {\n h = 0;\n s = 0;\n }\n else {\n s = delta / maxVal;\n const dr = ((maxVal - r) / 6 + delta / 2) / delta;\n const dg = ((maxVal - g) / 6 + delta / 2) / delta;\n const db = ((maxVal - b) / 6 + delta / 2) / delta;\n if (r === maxVal) {\n h = db - dg;\n }\n else if (g === maxVal) {\n h = 1 / 3 + dr - db;\n }\n else if (b === maxVal) {\n h = 2 / 3 + dg - dr;\n }\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n }\n return [h * 360, s * 100, v * 100];\n}\nfunction cmykToHsv(cyan, magenta, yellow, key) {\n const c = cyan / 100;\n const m = magenta / 100;\n const y = yellow / 100;\n const k = key / 100;\n const r = (1 - min(1, c * (1 - k) + k)) * 255;\n const g = (1 - min(1, m * (1 - k) + k)) * 255;\n const b = (1 - min(1, y * (1 - k) + k)) * 255;\n return [...rgbToHsv(r, g, b)];\n}\nfunction hslToHsv(hue, saturation, lightness) {\n let s = saturation / 100;\n const l = lightness / 100;\n s *= l < 0.5 ? l : 1 - l;\n const ns = ((2 * s) / (l + s)) * 100;\n const v = (l + s) * 100;\n return [hue, Number.isNaN(ns) ? 0 : ns, v];\n}\nfunction hexToHsv(hex) {\n const hexRgb = hex.match(/.{2}/g);\n if (hexRgb !== null) {\n const [red, green, blue] = hexRgb.map(v => Number.parseInt(v, 16));\n return rgbToHsv(red, green, blue);\n }\n return null;\n}\nfunction getColorType(colorString) {\n // Regular expressions to match different types of color representation\n const regex = {\n cmyk: /^cmyk[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)/i,\n rgba: /^((rgba)|rgb)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsla: /^((hsla)|hsl)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hsva: /^((hsva)|hsv)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]+([\\d.]+)[\\D]*?([\\d.]+|$)/i,\n hexa: /^#?(([\\dA-Fa-f]{3,4})|([\\dA-Fa-f]{6})|([\\dA-Fa-f]{8}))$/i,\n };\n const colorType = Object.entries(regex).find(([, colorRegex]) => colorRegex.exec(colorString));\n if (colorType !== undefined) {\n const match = colorType[1].exec(colorString);\n return {\n type: colorType[0],\n regex: colorType[1],\n match,\n };\n }\n return {\n type: null,\n };\n}\n/**\n * Try's to parse a string which represents a color to an HSV array.\n * Current supported types are cmyk, rgba, hsla and hexadecimal.\n */\nfunction parseToHSVA(colorString = '#000') {\n // Check if string is a color-name\n if (colorString.toLowerCase() === 'transparent') {\n colorString = '#00000000';\n }\n const string = colorString.match(/^[a-zA-Z]+$/) !== null ? standardizeColor(colorString) : colorString;\n const { type, match } = getColorType(string);\n /**\n * Takes an Array of any type, convert strings which represents\n * a number to a number an anything else to undefined.\n * */\n const numarize = (array) => array.map(v => (/^(|\\d+)\\.\\d+|\\d+$/.test(v) ? Number(v) : undefined));\n if (type === null || match === null) {\n return { values: null, type: 'hexa' };\n }\n // Match[2] does only contain a truthy value if rgba, hsla, or hsla got matched\n const hasValidAlphaChannel = (a) => !!match[2] === (typeof a === 'number');\n const isValidAlpha = (a) => a >= 0 && a <= 1 && hasValidAlphaChannel(a);\n if (type === 'cmyk') {\n const [, c, m, y, k] = numarize(match);\n if (c && m && y && k && c <= 100 && m <= 100 && y <= 100 && k <= 100) {\n return { values: cmykToHsv(c, m, y, k), type };\n }\n }\n if (type === 'rgba') {\n const [, , , r, g, b, a] = numarize(match);\n if (r !== undefined && g !== undefined && b !== undefined && a !== undefined && r <= 255 && g <= 255 && b <= 255 && isValidAlpha(a)) {\n return { values: [...rgbToHsv(r, g, b), a], alpha: a, type };\n }\n }\n if (type === 'hexa') {\n let [, hex] = match;\n if (hex.length === 4 || hex.length === 3) {\n hex = hex\n .split('')\n .map(v => v + v)\n .join('');\n }\n const raw = hex.substring(0, 6);\n let a = hex.substring(6);\n // Convert 0 - 255 to 0 - 1 for opacity\n a = a ? parseInt(a, 16) / 255 : undefined;\n const hsvValue = hexToHsv(raw);\n if (hsvValue !== undefined) {\n return { values: [...hsvValue, a], alpha: a, type };\n }\n }\n if (type === 'hsla') {\n const [, , , h, s, l, a] = numarize(match);\n if (h && s && l && a && h <= 360 && s <= 100 && l <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [...hslToHsv(h, s, l), a], alpha: a, type };\n }\n }\n if (type === 'hsva') {\n const [, , , h, s, v, a] = numarize(match);\n if (h && s && v && a && h <= 360 && s <= 100 && v <= 100 && a >= 0 && a <= 1 && isValidAlpha(a)) {\n return { values: [h, s, v, a], alpha: a, type };\n }\n }\n return { values: null, type: 'hexa' };\n}\nconst isValidHex = string => {\n if (string === undefined) {\n return false;\n }\n return string.match(/^#?[\\dA-Fa-f]{6,8}$/i);\n};\nconst DEFAULT_COLOR = '#7CA1FF';\n\n/**\n * Simple class which holds the properties\n * of the color representation model hsla (hue saturation lightness alpha)\n */\nclass HSVaColor {\n constructor(h = 0, s = 0, v = 0, a = 1) {\n this.mapper = (original, next) => (precision = -1) => {\n return next(precision >= 0 ? original.map(v => Number(v.toFixed(precision))) : original);\n };\n this.h = h;\n this.s = s;\n this.v = v;\n this.a = (a > 1) ? a / 100 : a;\n }\n toHSVA() {\n const hsva = [this.h, this.s, this.v, this.a];\n hsva.toString = this.mapper(hsva, arr => `hsva(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsva;\n }\n toHSLA() {\n const hsla = [...hsvToHsl(this.h, this.s, this.v), this.a];\n hsla.toString = this.mapper(hsla, arr => `hsla(${arr[0]}, ${arr[1]}%, ${arr[2]}%, ${this.readableAlpha()})`);\n return hsla;\n }\n toHSL() {\n const hsl = hsvToHsl(this.h, this.s, this.v);\n hsl.toString = this.mapper(hsl, arr => `hsl(${arr[0]}, ${arr[1]}%, ${arr[2]}%)`);\n return hsl;\n }\n toRGBA() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgba(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])}, ${this.readableAlpha()})`);\n return rgba;\n }\n /**\n * @deprecated {@see toRGBModern()}\n */\n toRGB() {\n const rgb = hsvToRgb(this.h, this.s, this.v);\n rgb.toString = this.mapper(rgb, arr => `rgb(${Math.round(arr[0])}, ${Math.round(arr[1])}, ${Math.round(arr[2])})`);\n return rgb;\n }\n toRGBModern() {\n const rgba = [...hsvToRgb(this.h, this.s, this.v), this.a];\n rgba.toString = this.mapper(rgba, arr => `rgb(${Math.round(arr[0])} ${Math.round(arr[1])} ${Math.round(arr[2])} / ${this.alphaAsPercent()})`);\n return rgba;\n }\n toCMYK() {\n const cmyk = hsvToCmyk(this.h, this.s, this.v);\n cmyk.toString = this.mapper(cmyk, arr => `cmyk(${arr[0]}%, ${arr[1]}%, ${arr[2]}%, ${arr[3]}%)`);\n return cmyk;\n }\n toHEXA() {\n const hex = hsvToHex(this.h, this.s, this.v);\n // Check if alpha channel make sense, convert it to 255 number space, convert\n // To hex and pad it with zeros if needed.\n const alpha = this.a >= 1\n ? ''\n : Number((this.a * 255).toFixed(0))\n .toString(16)\n .toUpperCase()\n .padStart(2, '0');\n alpha && hex.push(alpha);\n hex.toString = () => `#${hex.join('').toUpperCase()}`;\n return hex;\n }\n toHEX() {\n const hex = hsvToHex(this.h, this.s, this.v);\n hex.toString = () => `#${hex.join('').toLowerCase()}`;\n return hex;\n }\n set alpha(a) {\n this.a = (a > 1) ? a / 100 : a;\n }\n get alpha() {\n return this.a;\n }\n set hue(h) {\n this.h = Math.round(h);\n }\n get hue() {\n return this.h;\n }\n set saturation(s) {\n this.s = Math.round(s);\n }\n get saturation() {\n return this.s;\n }\n set value(v) {\n this.v = Math.round(v);\n }\n get value() {\n return this.v;\n }\n clone() {\n return new HSVaColor(this.h, this.s, this.v, this.a);\n }\n readableAlpha() {\n return Math.round((this.a + Number.EPSILON) * 100) / 100;\n }\n alphaAsPercent() {\n return Math.round((this.a + Number.EPSILON) * 100) + '%';\n }\n}\n\nexport { DEFAULT_COLOR as D, HSVaColor as H, isValidHex as i, parseToHSVA as p };\n","import { r as registerInstance, h, H as Host, c as createEvent } from './index-d4fae449.js';\nimport { D as DEFAULT_COLOR, H as HSVaColor, p as parseToHSVA, i as isValidHex } from './HSVaColor-82f956e7.js';\n\nconst captionCss = \":host{display:block;font-family:soleil, sans-serif;font-weight:400;font-style:normal;line-height:1.4em;font-size:0.75rem;letter-spacing:0.2px}\";\n\nconst Caption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Color of the caption text\n */\n this.color = 'secondary';\n }\n render() {\n return (h(Host, { style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(\"slot\", null)));\n }\n};\nCaption.style = captionCss;\n\nconst rsColorPickerCss = \":host{display:block;margin-top:0.3125rem;position:absolute;z-index:2;padding-bottom:1.25rem}:host(.rs-color-picker--inline){position:unset;padding-bottom:0}:host(.rs-color-picker--inline) .rs-color-picker__picker{width:100%;max-width:31.25rem}\";\n\nconst RsColorPicker = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsColorChange = createEvent(this, \"rsColorChange\", 7);\n this.rsPresetColorChoice = createEvent(this, \"rsPresetColorChoice\", 7);\n /**\n * Selected colour\n */\n this.color = DEFAULT_COLOR;\n /**\n * If true, will show an opacity slider in the colour picker popup\n */\n this.opacity = false;\n /**\n * Determines whether to show the color picker or not\n */\n this.showPicker = false;\n /**\n * If this is set to 'top', then we show the color picker above the color swatch\n * If 'default', we show the color picker below the color swatch\n *\n */\n this.position = 'default';\n /**\n * If default, color picker's floating and has drop shadow - will display relative to the nearest positioned ancestor.\n * If inline, color picker will always display according to the normal flow of the page - will have no drop-shadow and width is always 100%.\n */\n this.display = 'default';\n /**\n * If set to true, a button will show that will allow the user to set the color picker to transparent without the need for the opacity slider\n */\n this.transparentButton = false;\n /**\n * Sets the colour swatches\n */\n this.colorSwatches = null;\n /**\n * If set to preset, we only show the preset colors and don't allow custom selection via any method\n */\n this.mode = 'default';\n this.onColorChange = (event) => {\n event.stopImmediatePropagation();\n this.internalColor = event.detail;\n this.rsColorChange.emit({ value: event.detail });\n };\n this.onPresetColorChoice = (event) => {\n event.stopImmediatePropagation();\n this.rsPresetColorChoice.emit({ value: event.detail });\n };\n this.positionStyle = () => {\n if (this.position === 'top') {\n return {\n 'bottom': '37px',\n 'margin-top': '0px',\n 'padding-bottom': '0px',\n };\n }\n return {};\n };\n }\n /**\n * Set the color of the color swatch\n * @param color\n */\n async setColor(color) {\n if (!RsColorPicker.allowedColorString(color)) {\n return;\n }\n await this.rsColorPicker.setColor(color);\n }\n /**\n * Returns a HSVaColor object of the currently selected color\n */\n async getColor() {\n return this.internalColor;\n }\n /**\n * A method that can be called on the element for showing the color picker\n */\n async show() {\n this.showPicker = true;\n }\n /**\n * A method that can be called on the element for hiding the color picker\n */\n async hide() {\n this.showPicker = false;\n }\n componentWillLoad() {\n var _a;\n this.internalColor = new HSVaColor(...parseToHSVA((_a = this.color) !== null && _a !== void 0 ? _a : DEFAULT_COLOR).values);\n }\n render() {\n return (h(Host, { style: Object.assign({ display: (this.showPicker || this.display === 'inline') ? 'block' : 'none' }, this.positionStyle()), class: `rs-color-picker--${this.display}` }, h(\"div\", { class: \"rs-color-picker__inner\" }, h(\"div\", { class: \"rs-color-picker__swatch\" }), h(\"div\", { class: \"rs-color-picker__popup\" }, h(\"color-picker\", { class: \"rs-color-picker__picker\", color: this.color, mode: this.mode, palettes: this.palettes, opacity: this.opacity, display: this.display, transparentButton: this.transparentButton, onColorChange: this.onColorChange, onPresetColorChoice: this.onPresetColorChoice, ref: el => this.rsColorPicker = el })))));\n }\n static allowedColorString(color) {\n return isValidHex(color) || color.toLowerCase() === 'transparent';\n }\n};\nRsColorPicker.style = rsColorPickerCss;\n\nexport { Caption as rs_caption, RsColorPicker as rs_color_picker };\n"],"names":["min","max","floor","round","Math","hsvToRgb","h","s","v","hLocal","sLocal","vLocal","i","f","p","q","t","mod","hsvToHex","map","rgb","toString","padStart","hsvToHsl","l","rgbToHsv","red","green","blue","r","g","b","minVal","maxVal","delta","dr","dg","db","cmykToHsv","cyan","magenta","yellow","key","m","y","k","hslToHsv","hue","saturation","lightness","ns","Number","isNaN","parseToHSVA","colorString","toLowerCase","string","match","name","undefined","ctx","document","createElement","getContext","fillStyle","standardizeColor","type","colorType","Object","entries","cmyk","rgba","hsla","hsva","hexa","find","colorRegex","exec","regex","getColorType","numarize","array","test","values","isValidAlpha","a","hasValidAlphaChannel","c","alpha","hex","length","split","join","raw","substring","parseInt","hsvValue","hexRgb","hexToHsv","isValidHex","DEFAULT_COLOR","HSVaColor","constructor","this","mapper","original","next","precision","toFixed","toHSVA","arr","readableAlpha","toHSLA","toHSL","hsl","toRGBA","toRGB","toRGBModern","alphaAsPercent","toCMYK","hsvToCmyk","toHEXA","toUpperCase","push","toHEX","clone","EPSILON","Caption","hostRef","color","render","H","style","RsColorPicker","rsColorChange","rsPresetColorChoice","D","opacity","showPicker","position","display","transparentButton","colorSwatches","mode","onColorChange","event","stopImmediatePropagation","internalColor","detail","emit","value","onPresetColorChoice","positionStyle","allowedColorString","rsColorPicker","setColor","componentWillLoad","_a","assign","class","palettes","ref","el"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[927],{4927:function(e,r,n){n.r(r),n.d(r,{rs_incrementer_option:function(){return t}});var i=n(492);const t=class{constructor(e){(0,i.r)(this,e),this.rsOptionClick=(0,i.c)(this,"rsOptionClick",7),this.onClickHandler=()=>{this.rsOptionClick.emit({value:this.value})}}render(){return(0,i.h)(i.H,{class:{"number-incrementer__dropdown-item":!0,"number-incrementer__dropdown-item--string":"string"==typeof this.value},"data-value":this.value,onClick:this.onClickHandler},(0,i.h)("slot",null))}};t.style=":host{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}:host(:hover){background-color:var(--rs-color-select-background)}"}}]);
|
|
13
|
+
//# sourceMappingURL=927.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"927.index.js","mappings":";;;;;;;;;;;2LAEA,MAEMA,EAAoB,MACxBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,eAAgB,IAAAC,GAAYF,KAAM,gBAAiB,GACxDA,KAAKG,eAAiB,KACpBH,KAAKC,cAAcG,KAAK,CAAEC,MAAOL,KAAKK,SAG1CC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrB,qCAAqC,EACrC,4CAAmE,iBAAfT,KAAKK,OACxD,aAAcL,KAAKK,MAAOK,QAASV,KAAKG,iBAAkB,IAAAI,GAAE,OAAQ,SAG7EX,EAAkBe,MAjBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-incrementer-option.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\n\nconst incrementerOptionCss = \":host{display:block;position:relative;padding:0.625rem;font-family:'Soleil', sans-serif;cursor:pointer;font-size:0.75rem}:host(:hover){background-color:var(--rs-color-select-background)}\";\n\nconst IncrementerOption = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsOptionClick = createEvent(this, \"rsOptionClick\", 7);\n this.onClickHandler = () => {\n this.rsOptionClick.emit({ value: this.value });\n };\n }\n render() {\n return (h(Host, { class: {\n 'number-incrementer__dropdown-item': true,\n 'number-incrementer__dropdown-item--string': typeof this.value === 'string'\n }, \"data-value\": this.value, onClick: this.onClickHandler }, h(\"slot\", null)));\n }\n};\nIncrementerOption.style = incrementerOptionCss;\n\nexport { IncrementerOption as rs_incrementer_option };\n"],"names":["IncrementerOption","constructor","hostRef","r","this","rsOptionClick","c","onClickHandler","emit","value","render","h","H","class","onClick","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[953],{2953:function(t,e,i){i.r(e),i.d(e,{rs_toggle:function(){return o}});var s=i(492);const o=class{constructor(t){(0,s.r)(this,t),this.toggle=(0,s.c)(this,"toggle",7),this.currentPosition=0,this.hasMovedActiveTab=!1,this.renderToggleBar=()=>{this.toggleItems=this.host.querySelectorAll("rs-toggle-item"),this.activeTabElement.style.width=`calc(${100/this.toggleItems.length}%)`,this.toggleItems.forEach(((t,e)=>{null!==t.getAttribute("active")&&this.moveActiveTab(e),t.addEventListener("click",(()=>{this.currentPosition!==e&&(this.moveActiveTab(e),this.removeAllActiveProp(),t.setAttribute("active","true"))}))})),this.hasMovedActiveTab||this.moveActiveTab(0)}}async setActivePosition(t=0){this.moveActiveTab(t)}removeAllActiveProp(){this.toggleItems.forEach((t=>{t.removeAttribute("active")}))}moveActiveTab(t){this.activeTabElement.style.left=`calc(${100/this.toggleItems.length*t}%)`,this.currentPosition=t,this.hasMovedActiveTab=!0,this.toggle.emit({value:t,target:this.toggleItems[t]})}componentDidRender(){this.renderToggleBar()}render(){return(0,s.h)(s.H,null,(0,s.h)("div",{class:"toggle"},(0,s.h)("div",{class:"toggle__items"},(0,s.h)("slot",{onSlotchange:this.renderToggleBar}),(0,s.h)("div",{ref:t=>this.activeTabElement=t,class:"active-tab"}))))}get host(){return(0,s.g)(this)}};o.style=".toggle{display:block;padding:0.25rem;border-radius:0.4375rem;background:var(--rs-color-light)}.toggle__items{display:flex;flex-direction:row;position:relative}.active-tab{position:absolute;height:calc(100%);border-radius:0.25rem;background:var(--rs-color-white);box-shadow:0 1px 0.3125rem rgb(195 213 226 / 0.62);z-index:1;transition:left 0.15s ease-out}"}}]);
|
|
13
|
+
//# sourceMappingURL=953.index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"953.index.js","mappings":";;;;;;;;;;;+KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,QAAS,IAAAC,GAAYF,KAAM,SAAU,GAC1CA,KAAKG,gBAAkB,EACvBH,KAAKI,mBAAoB,EACzBJ,KAAKK,gBAAkB,KACrBL,KAAKM,YAAcN,KAAKO,KAAKC,iBAAiB,kBAC9CR,KAAKS,iBAAiBC,MAAMC,MAAQ,QAAS,IAAMX,KAAKM,YAAYM,WACpEZ,KAAKM,YAAYO,SAAQ,CAACC,EAAMC,KACM,OAAhCD,EAAKE,aAAa,WACpBhB,KAAKiB,cAAcF,GAErBD,EAAKI,iBAAiB,SAAS,KACzBlB,KAAKG,kBAAoBY,IAG7Bf,KAAKiB,cAAcF,GACnBf,KAAKmB,sBACLL,EAAKM,aAAa,SAAU,eAG3BpB,KAAKI,mBACRJ,KAAKiB,cAAc,IAQzB,wBAAwBF,EAAW,GACjCf,KAAKiB,cAAcF,GAErBI,sBACEnB,KAAKM,YAAYO,SAAQC,IACvBA,EAAKO,gBAAgB,aAGzBJ,cAAcF,GACZf,KAAKS,iBAAiBC,MAAMY,KAAO,QAAS,IAAMtB,KAAKM,YAAYM,OAASG,MAC5Ef,KAAKG,gBAAkBY,EACvBf,KAAKI,mBAAoB,EACzBJ,KAAKC,OAAOsB,KAAK,CAAEC,MAAOT,EAAUU,OAAQzB,KAAKM,YAAYS,KAE/DW,qBACE1B,KAAKK,kBAEPsB,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,WAAY,IAAAF,GAAE,MAAO,CAAEE,MAAO,kBAAmB,IAAAF,GAAE,OAAQ,CAAEG,aAAc/B,KAAKK,mBAAoB,IAAAuB,GAAE,MAAO,CAAEI,IAAKC,GAAMjC,KAAKS,iBAAmBwB,EAAIH,MAAO,kBAEvM,WAAa,OAAO,IAAAI,GAAWlC,QAEjCJ,EAAOc,MAvDW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-toggle.entry.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst toggleCss = \".toggle{display:block;padding:0.25rem;border-radius:0.4375rem;background:var(--rs-color-light)}.toggle__items{display:flex;flex-direction:row;position:relative}.active-tab{position:absolute;height:calc(100%);border-radius:0.25rem;background:var(--rs-color-white);box-shadow:0 1px 0.3125rem rgb(195 213 226 / 0.62);z-index:1;transition:left 0.15s ease-out}\";\n\nconst Toggle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.toggle = createEvent(this, \"toggle\", 7);\n this.currentPosition = 0;\n this.hasMovedActiveTab = false;\n this.renderToggleBar = () => {\n this.toggleItems = this.host.querySelectorAll('rs-toggle-item');\n this.activeTabElement.style.width = `calc(${(100 / this.toggleItems.length)}%)`;\n this.toggleItems.forEach((item, position) => {\n if (item.getAttribute('active') !== null) {\n this.moveActiveTab(position);\n }\n item.addEventListener('click', () => {\n if (this.currentPosition === position) {\n return;\n }\n this.moveActiveTab(position);\n this.removeAllActiveProp();\n item.setAttribute('active', 'true');\n });\n });\n if (!this.hasMovedActiveTab) {\n this.moveActiveTab(0);\n }\n };\n }\n /**\n * Set the current active state of the toggle\n * @param {number} position\n */\n async setActivePosition(position = 0) {\n this.moveActiveTab(position);\n }\n removeAllActiveProp() {\n this.toggleItems.forEach(item => {\n item.removeAttribute('active');\n });\n }\n moveActiveTab(position) {\n this.activeTabElement.style.left = `calc(${(100 / this.toggleItems.length * position)}%)`;\n this.currentPosition = position;\n this.hasMovedActiveTab = true;\n this.toggle.emit({ value: position, target: this.toggleItems[position] });\n }\n componentDidRender() {\n this.renderToggleBar();\n }\n render() {\n return (h(Host, null, h(\"div\", { class: 'toggle' }, h(\"div\", { class: 'toggle__items' }, h(\"slot\", { onSlotchange: this.renderToggleBar }), h(\"div\", { ref: el => this.activeTabElement = el, class: 'active-tab' })))));\n }\n get host() { return getElement(this); }\n};\nToggle.style = toggleCss;\n\nexport { Toggle as rs_toggle };\n"],"names":["Toggle","constructor","hostRef","r","this","toggle","c","currentPosition","hasMovedActiveTab","renderToggleBar","toggleItems","host","querySelectorAll","activeTabElement","style","width","length","forEach","item","position","getAttribute","moveActiveTab","addEventListener","removeAllActiveProp","setAttribute","removeAttribute","left","emit","value","target","componentDidRender","render","h","H","class","onSlotchange","ref","el","g"],"sourceRoot":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* @rocketspark/domain-checker v0.0.01
|
|
4
|
+
* https://github.com/rocketspark/domain-checker.git
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Lee Reichardt and project contributors.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the no license license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
"use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[955],{7606:function(t,s,e){e.d(s,{i:function(){return n},s:function(){return a}});var i=e(492);const n=(t,s,e)=>{const n=(void 0!==t.target?t.target:e).tagName.toLowerCase().replace("rs-",""),a=t.detail,o={},r=s.get(n)||{};let h=!1;Object.keys(a).forEach((t=>{if(a[t]){const s=`item-${t}`;r[s]||(h=!0),o[s]=!0}})),h||Object.keys(o).length===Object.keys(r).length||(h=!0),h&&(s.set(n,o),(0,i.f)(e))},a=(t,s,e,i=!1)=>{!s&&!e||i||null!==t&&(t.style.display="block",setTimeout((function(){t.style.opacity="1"}),150))}},6955:function(t,s,e){e.r(s),e.d(s,{rs_input:function(){return a}});var i=e(492),n=e(7606);const a=class{constructor(t){(0,i.r)(this,t),this.rsInput=(0,i.c)(this,"rsInput",7),this.rsInputChanged=(0,i.c)(this,"rsInputChanged",7),this.rsInputNoFocus=(0,i.c)(this,"rsInputNoFocus",7),this.rsInputFocus=(0,i.c)(this,"rsInputFocus",7),this.rsItem=(0,i.c)(this,"rsItem",7),this.didBlurAfterEdit=!1,this.hasStartSlot=!1,this.hasEndSlot=!1,this.hasFocus=!1,this.charsLeft=0,this.type="text",this.value="",this.disabled=!1,this.readonly=!1,this.clearOnEdit=!1,this.clearInput=!1,this.required=!1,this.hideMax=!1,this.hardLimit=null,this.softLimit=null,this.hasError=!1,this.textAlign="left",this.size="default",this.onInput=t=>{const s=t.target;null!==s&&(this.value=s.value||""),this.rsInput.emit(t)},this.onFocus=()=>{this.hasFocus=!0,this.focusChanged(),this.emitRsItem(),this.rsInputFocus.emit()},this.focusChanged=()=>{!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0)},this.shouldClearOnEdit=()=>{const{type:t,clearOnEdit:s}=this;return void 0===s?"password"===t:s},this.onKeyDown=()=>{this.shouldClearOnEdit()&&this.didBlurAfterEdit&&this.hasValue()&&this.clearTextInput(),this.didBlurAfterEdit=!1},this.clearTextInput=t=>{void 0===this.clearInput||this.readonly||this.disabled||void 0===t||(t.preventDefault(),t.stopPropagation()),this.value="",null!==this.nativeElement&&(this.nativeElement.value="")},this.onBlur=()=>{this.hasFocus=!1,this.focusChanged(),this.emitRsItem(),this.rsInputNoFocus.emit()}}disabledChanged(){this.emitRsItem()}valueChanged(){this.emitRsItem(),this.changeMaxLengthText(),this.rsInputChanged.emit({value:null==this.value?this.value:this.value.toString()})}async update(){(0,i.f)(this.el)}async setFocus(){null!==this.nativeElement&&this.nativeElement.focus()}getInputElement(){return Promise.resolve(this.nativeElement)}getValue(){return this.value||""}hasValue(){return this.getValue().length>0}emitRsItem(){this.rsItem.emit({input:!0,interactive:!0,"has-focus":this.hasFocus,"has-value":this.hasValue(),"has-placeholder":null!==this.placeholder,"has-error":this.hasError,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"interactive-disabled":this.disabled,"input-has-start-slot":this.hasStartSlot,"input-has-end-slot":this.hasEndSlot,"input-chars-over-max":this.charsLeft<0,"input-is-required":this.required})}changeMaxLengthText(){if(null!==this.softLimit&&this.softLimit>0&&!this.hideMax){const t=this.value.length;this.charsLeft=this.softLimit-t;const s=this.el.shadowRoot.querySelector(".max-length");null!==s&&(this.charsLeft<0?(s.innerHTML=`${Math.abs(this.charsLeft)} over`,this.el.classList.add("input-chars-over-max")):(s.innerHTML=`${this.charsLeft} left`,this.el.classList.remove("input-chars-over-max")))}}componentDidLoad(){if(void 0!==this.softLimit||void 0!==this.hardLimit){const t=this.el.shadowRoot.querySelector(".max-length");(0,n.s)(t,this.hardLimit,this.softLimit,this.hideMax),this.changeMaxLengthText()}}connectedCallback(){this.hasStartSlot=null!==this.el.querySelector('[slot="start"]'),this.hasEndSlot=null!==this.el.querySelector('[slot="end"]'),this.emitRsItem()}render(){const t=this.getValue();let s=null;if((this.hardLimit||this.softLimit)&&!this.hideMax){const t=this.hardLimit||this.softLimit;s=(0,i.h)("span",{class:"max-length"},t," max")}return(0,i.h)(i.H,{class:{"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-placeholder":null!==this.placeholder,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"chars-over-max":this.charsLeft<0,"has-error":this.hasError,[`text-align-${this.textAlign}`]:!0,[`size-${this.size}`]:!0}},s,(0,i.h)("div",{class:"rs-input__inner"},(0,i.h)("slot",{name:"start"}),(0,i.h)("input",{class:"native-input",ref:t=>this.nativeElement=t,disabled:this.disabled,readonly:this.readonly,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,placeholder:this.placeholder,type:this.type,required:this.required,name:this.name,maxlength:this.hardLimit,value:t}),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.g)(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"]}}};a.style=':host{display:block;position:static;width:100%;padding:0}.rs-input__inner{display:flex;align-items:center;justify-content:flex-start;width:100%;height:2.625rem;box-shadow:none;background:var(--rs-color-light);border:none;box-sizing:border-box;border-radius:0.25rem;padding:0.6875rem 0.875rem;transition:box-shadow .15s ease-out, background-color .15s ease-out}:host(.size-small) .rs-input__inner{height:2rem;padding:0.5rem}:host(.size-small) .rs-input__inner .native-input{padding:0 0 0.125rem 0}:host(.text-align-center) .rs-input__inner .native-input{text-align:center}:host(.text-align-right) .rs-input__inner .native-input{text-align:right}:host(.text-align-left) .rs-input__inner .native-input{text-align:left}.native-input,.native-input:focus{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-appearance:none;outline:none;height:100%;width:100%;display:block;font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.875rem;line-height:140%;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0}.native-input::placeholder{color:var(--rs-color-grey);font-family:Soleil, sans-serif;font-style:normal;font-weight:normal}.native-input[disabled]{opacity:0.4}:host(.has-value) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);background-color:var(--rs-color-white)}:host(.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary);background-color:var(--rs-color-white);color:var(--rs-color-heading);outline:none;pointer-events:auto;opacity:1}:host(.has-error.has-focus) .rs-input__inner{box-shadow:inset 0 0 0 0.125rem var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-error:not(.has-focus)) .rs-input__inner{box-shadow:inset 0 0 0 1px var(--rs-color-negative);background-color:var(--rs-color-white)}:host(.has-focus) .max-length{color:var(--rs-color-grey)}:host(.has-value:not(.has-focus)) .max-length{display:block;opacity:1;color:var(--rs-color-grey-light)}:host .max-length{font-family:Soleil, sans-serif;font-style:normal;font-weight:normal;font-size:0.75rem;line-height:0.8125rem;text-align:right;color:var(--rs-color-grey);display:none;opacity:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:0.3125rem;transition:opacity .15s ease-out, color .15s ease-out}:host(.chars-over-max) .max-length{color:var(--rs-color-negative)}::slotted([slot="start"]){margin-right:0.625rem}::slotted([slot="end"]){margin-left:0.625rem}'}}]);
|
|
13
|
+
//# sourceMappingURL=955.index.js.map
|