@rocketspark/domain-checker 0.0.19 → 0.0.21
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/.nvmrc +1 -0
- package/build/141.index.js +13 -0
- package/build/141.index.js.map +1 -0
- package/build/147.index.js +13 -0
- package/build/147.index.js.map +1 -0
- package/build/167.index.js +13 -0
- package/build/167.index.js.map +1 -0
- package/build/17.index.js +13 -0
- package/build/17.index.js.map +1 -0
- package/build/194.index.js +13 -0
- package/build/194.index.js.map +1 -0
- package/build/208.index.js +13 -0
- package/build/208.index.js.map +1 -0
- package/build/237.index.js +13 -0
- package/build/237.index.js.map +1 -0
- package/build/245.index.js +13 -0
- package/build/245.index.js.map +1 -0
- package/build/278.index.js +13 -0
- package/build/278.index.js.map +1 -0
- package/build/386.index.js +13 -0
- package/build/386.index.js.map +1 -0
- package/build/404.index.js +13 -0
- package/build/404.index.js.map +1 -0
- package/build/420.index.js +13 -0
- package/build/420.index.js.map +1 -0
- package/build/514.index.js +13 -0
- package/build/514.index.js.map +1 -0
- package/build/524.index.js +13 -0
- package/build/524.index.js.map +1 -0
- package/build/540.index.js +13 -0
- package/build/540.index.js.map +1 -0
- package/build/542.index.js +13 -0
- package/build/542.index.js.map +1 -0
- package/build/551.index.js +13 -0
- package/build/551.index.js.map +1 -0
- package/build/567.index.js +13 -0
- package/build/567.index.js.map +1 -0
- package/build/571.index.js +13 -0
- package/build/571.index.js.map +1 -0
- package/build/{903.index.js → 572.index.js} +3 -3
- package/build/572.index.js.map +1 -0
- package/build/584.index.js +13 -0
- package/build/584.index.js.map +1 -0
- package/build/588.index.js +13 -0
- package/build/588.index.js.map +1 -0
- package/build/598.index.js +13 -0
- package/build/598.index.js.map +1 -0
- package/build/60.index.js +13 -0
- package/build/60.index.js.map +1 -0
- package/build/616.index.js +13 -0
- package/build/616.index.js.map +1 -0
- package/build/631.index.js +13 -0
- package/build/631.index.js.map +1 -0
- package/build/643.index.js +13 -0
- package/build/643.index.js.map +1 -0
- package/build/{190.index.js → 654.index.js} +3 -3
- package/build/654.index.js.map +1 -0
- package/build/66.index.js +2 -2
- package/build/66.index.js.map +1 -1
- package/build/697.index.js +13 -0
- package/build/697.index.js.map +1 -0
- package/build/714.index.js +13 -0
- package/build/714.index.js.map +1 -0
- package/build/795.index.js +13 -0
- package/build/795.index.js.map +1 -0
- package/build/8.index.js +13 -0
- package/build/8.index.js.map +1 -0
- package/build/808.index.js +13 -0
- package/build/808.index.js.map +1 -0
- package/build/810.index.js +13 -0
- package/build/810.index.js.map +1 -0
- package/build/833.index.js +13 -0
- package/build/833.index.js.map +1 -0
- package/build/835.index.js +13 -0
- package/build/835.index.js.map +1 -0
- package/build/847.index.js +13 -0
- package/build/847.index.js.map +1 -0
- package/build/853.index.js +13 -0
- package/build/853.index.js.map +1 -0
- package/build/861.index.js +13 -0
- package/build/861.index.js.map +1 -0
- package/build/871.index.js +13 -0
- package/build/871.index.js.map +1 -0
- package/build/890.index.js +13 -0
- package/build/890.index.js.map +1 -0
- package/build/899.index.js +13 -0
- package/build/899.index.js.map +1 -0
- package/build/{698.index.js → 938.index.js} +3 -3
- package/build/938.index.js.map +1 -0
- package/build/964.index.js +13 -0
- package/build/964.index.js.map +1 -0
- package/build/970.index.js +13 -0
- package/build/970.index.js.map +1 -0
- package/build/993.index.js +13 -0
- package/build/993.index.js.map +1 -0
- package/build/css/index.css +3 -2
- package/build/css/index.css.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/build/types/Components/PopupContainer.d.ts +0 -1
- package/build/types/Components/SearchAlternativeRow.d.ts +3 -3
- package/build/types/Components/SearchStatus.d.ts +1 -1
- package/build/types/Helpers/Fetch.d.ts +3 -0
- package/build/types/Interfaces/class-names.d.ts +1 -0
- package/build/types/Interfaces/locale.d.ts +1 -1
- package/package.json +5 -8
- package/tsconfig.json +3 -3
- package/webpack.config.demo.js +10 -8
- package/build/130.index.js +0 -13
- package/build/130.index.js.map +0 -1
- package/build/145.index.js +0 -13
- package/build/145.index.js.map +0 -1
- package/build/171.index.js +0 -13
- package/build/171.index.js.map +0 -1
- package/build/190.index.js.map +0 -1
- package/build/228.index.js +0 -13
- package/build/228.index.js.map +0 -1
- package/build/23.index.js +0 -13
- package/build/23.index.js.map +0 -1
- package/build/253.index.js +0 -13
- package/build/253.index.js.map +0 -1
- package/build/269.index.js +0 -13
- package/build/269.index.js.map +0 -1
- package/build/307.index.js +0 -13
- package/build/307.index.js.map +0 -1
- package/build/314.index.js +0 -13
- package/build/314.index.js.map +0 -1
- package/build/330.index.js +0 -13
- package/build/330.index.js.map +0 -1
- package/build/346.index.js +0 -13
- package/build/346.index.js.map +0 -1
- package/build/385.index.js +0 -13
- package/build/385.index.js.map +0 -1
- package/build/431.index.js +0 -13
- package/build/431.index.js.map +0 -1
- package/build/447.index.js +0 -13
- package/build/447.index.js.map +0 -1
- package/build/482.index.js +0 -13
- package/build/482.index.js.map +0 -1
- package/build/525.index.js +0 -13
- package/build/525.index.js.map +0 -1
- package/build/536.index.js +0 -13
- package/build/536.index.js.map +0 -1
- package/build/548.index.js +0 -13
- package/build/548.index.js.map +0 -1
- package/build/565.index.js +0 -13
- package/build/565.index.js.map +0 -1
- package/build/577.index.js +0 -13
- package/build/577.index.js.map +0 -1
- package/build/655.index.js +0 -13
- package/build/655.index.js.map +0 -1
- package/build/669.index.js +0 -13
- package/build/669.index.js.map +0 -1
- package/build/677.index.js +0 -13
- package/build/677.index.js.map +0 -1
- package/build/678.index.js +0 -13
- package/build/678.index.js.map +0 -1
- package/build/69.index.js +0 -13
- package/build/69.index.js.map +0 -1
- package/build/690.index.js +0 -13
- package/build/690.index.js.map +0 -1
- package/build/694.index.js +0 -13
- package/build/694.index.js.map +0 -1
- package/build/698.index.js.map +0 -1
- package/build/716.index.js +0 -13
- package/build/716.index.js.map +0 -1
- package/build/717.index.js +0 -13
- package/build/717.index.js.map +0 -1
- package/build/724.index.js +0 -13
- package/build/724.index.js.map +0 -1
- package/build/738.index.js +0 -13
- package/build/738.index.js.map +0 -1
- package/build/799.index.js +0 -13
- package/build/799.index.js.map +0 -1
- package/build/82.index.js +0 -13
- package/build/82.index.js.map +0 -1
- package/build/858.index.js +0 -13
- package/build/858.index.js.map +0 -1
- package/build/882.index.js +0 -13
- package/build/882.index.js.map +0 -1
- package/build/895.index.js +0 -13
- package/build/895.index.js.map +0 -1
- package/build/903.index.js.map +0 -1
- package/build/911.index.js +0 -13
- package/build/911.index.js.map +0 -1
- package/build/912.index.js +0 -13
- package/build/912.index.js.map +0 -1
- package/build/927.index.js +0 -13
- package/build/927.index.js.map +0 -1
- package/build/953.index.js +0 -13
- package/build/953.index.js.map +0 -1
- package/build/955.index.js +0 -13
- package/build/955.index.js.map +0 -1
- package/build/994.index.js +0 -13
- package/build/994.index.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClassNames } from
|
|
2
|
-
import { Locale } from
|
|
1
|
+
import { ClassNames } from "../Interfaces/class-names";
|
|
2
|
+
import { Locale } from "../Interfaces/locale";
|
|
3
3
|
export default class SearchAlternativeRow {
|
|
4
4
|
readonly element: HTMLRsHeaderElement;
|
|
5
5
|
private readonly classNames;
|
|
@@ -12,7 +12,7 @@ export default class SearchAlternativeRow {
|
|
|
12
12
|
private isAvailable;
|
|
13
13
|
private pricing;
|
|
14
14
|
private blurb;
|
|
15
|
-
constructor({ element, prefix, suffix, classNames, locale }: {
|
|
15
|
+
constructor({ element, prefix, suffix, classNames, locale, }: {
|
|
16
16
|
element: HTMLRsHeaderElement;
|
|
17
17
|
prefix: string;
|
|
18
18
|
suffix: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassNames } from '../Interfaces/class-names';
|
|
2
|
-
export
|
|
2
|
+
export type Status = 'loading' | 'available' | 'unavailable';
|
|
3
3
|
export default class SearchStatus {
|
|
4
4
|
element: HTMLElement;
|
|
5
5
|
private readonly searchLoader;
|
|
@@ -3,8 +3,11 @@ export interface DomainSuggestions {
|
|
|
3
3
|
suffixes: string[];
|
|
4
4
|
}
|
|
5
5
|
export interface DomainResponse {
|
|
6
|
+
currency: string;
|
|
7
|
+
taxLabel: string;
|
|
6
8
|
isAvailable: boolean;
|
|
7
9
|
formattedPrice: string;
|
|
10
|
+
formattedYearlyPrice: string | null;
|
|
8
11
|
success: boolean;
|
|
9
12
|
error: string;
|
|
10
13
|
domainSuggestions: DomainSuggestions;
|
|
@@ -28,6 +28,7 @@ export interface ClassNames {
|
|
|
28
28
|
searchAlternativePricingContainer: string;
|
|
29
29
|
searchAlternativePricing: string;
|
|
30
30
|
searchAlternativePricingBlurb: string;
|
|
31
|
+
searchAlternativePricingDiscount: string;
|
|
31
32
|
searchAlternativeGetItNowContainer: string;
|
|
32
33
|
searchAlternativeGetItNow: string;
|
|
33
34
|
searchAlternativeSpinner: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Locale = 'NZ' | 'AU' | 'UK' | 'US';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocketspark/domain-checker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "Embeddable Domain Checker for Rocketspark",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"build:demo": "webpack --config webpack.config.demo.js",
|
|
12
12
|
"test": "jest --silent",
|
|
13
13
|
"coverage": "npm run test -- --coverage",
|
|
14
|
-
"version:patch": "npm version patch -m \"Patch upgrade to %s [skip ci]\""
|
|
15
|
-
"publish": "npm publish"
|
|
14
|
+
"version:patch": "npm version patch -m \"Patch upgrade to %s [skip ci]\""
|
|
16
15
|
},
|
|
17
16
|
"browserslist": [
|
|
18
17
|
"defaults",
|
|
@@ -52,17 +51,15 @@
|
|
|
52
51
|
"babel-loader": "^8.2.5",
|
|
53
52
|
"babel-preset-minify": "^0.5.2",
|
|
54
53
|
"css-loader": "^6.7.1",
|
|
54
|
+
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
55
55
|
"eslint": "^7.32.0",
|
|
56
56
|
"file-loader": "^6.2.0",
|
|
57
57
|
"html-webpack-plugin": "^5.5.0",
|
|
58
58
|
"jest": "^28.1.0",
|
|
59
59
|
"jest-environment-jsdom": "^28.1.0",
|
|
60
60
|
"mini-css-extract-plugin": "^2.6.0",
|
|
61
|
-
"
|
|
62
|
-
"postcss-
|
|
63
|
-
"postcss-pxtorem": "^5.1.1",
|
|
64
|
-
"prettier": "^2.6.2",
|
|
65
|
-
"prettier-webpack-plugin": "^1.2.0",
|
|
61
|
+
"postcss-loader": "^8.1.1",
|
|
62
|
+
"postcss-pxtorem": "^6.1.0",
|
|
66
63
|
"recaptcha-v3": "^1.10.0",
|
|
67
64
|
"style-loader": "^3.3.1",
|
|
68
65
|
"terser-webpack-plugin": "^5.3.1",
|
package/tsconfig.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"sourceMap": true,
|
|
9
9
|
"declaration": true,
|
|
10
10
|
"emitDeclarationOnly": true,
|
|
11
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
12
11
|
"lib": [
|
|
13
12
|
"es2018",
|
|
14
13
|
"dom"
|
|
15
14
|
],
|
|
16
15
|
"moduleResolution": "node",
|
|
17
|
-
"forceConsistentCasingInFileNames": true
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"skipLibCheck": true
|
|
18
18
|
},
|
|
19
19
|
"include": [
|
|
20
20
|
"src/lib"
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"exclude": [
|
|
23
23
|
"src/lib/**/tests"
|
|
24
24
|
]
|
|
25
|
-
}
|
|
25
|
+
}
|
package/webpack.config.demo.js
CHANGED
|
@@ -34,13 +34,15 @@ module.exports = {
|
|
|
34
34
|
{
|
|
35
35
|
loader: 'postcss-loader',
|
|
36
36
|
options: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
postcssOptions: {
|
|
38
|
+
plugins: [
|
|
39
|
+
['postcss-pxtorem', {
|
|
40
|
+
minPixelValue: 2,
|
|
41
|
+
propWhiteList: [], // don't use propList
|
|
42
|
+
selectorBlackList: ['rs-radio', 'choices--product-subscription']
|
|
43
|
+
}]
|
|
44
|
+
]
|
|
45
|
+
},
|
|
44
46
|
sourceMap: true
|
|
45
47
|
}
|
|
46
48
|
},
|
|
@@ -57,4 +59,4 @@ module.exports = {
|
|
|
57
59
|
resolve: {
|
|
58
60
|
extensions: ['.ts', '.js', '.json']
|
|
59
61
|
}
|
|
60
|
-
};
|
|
62
|
+
};
|
package/build/130.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[130],{2130:function(o,e,t){t.r(e),t.d(e,{rs_header:function(){return h}});var n=t(492);const h=class{constructor(o){(0,n.r)(this,o),this.heading="2",this.color="heading"}render(){const o=`h${this.heading}`;return(0,n.h)(n.H,{style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,n.h)(o,null,(0,n.h)("slot",null)))}};h.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;color:var(--rs-color-heading);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{margin:0;padding:0;line-height:1.2em}h1{font-weight:600;font-size:3.125rem}h2{font-weight:600;font-size:2.375rem}h3{font-weight:600;font-size:1.625rem}h4{font-weight:700;font-size:1.375rem}h5{font-weight:600;font-size:1rem}"}}]);
|
|
13
|
-
//# sourceMappingURL=130.index.js.map
|
package/build/130.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"130.index.js","mappings":";;;;;;;;;;;+KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEvBE,KAAKC,QAAU,IAIfD,KAAKE,MAAQ,UAEfC,SACE,MAAMC,EAAU,IAAIJ,KAAKC,UACzB,OAAQ,IAAAI,GAAE,EAAAC,EAAM,CAAEC,MAAO,CACrBL,WAAsBM,IAAfR,KAAKE,MAAsB,kBAAkBF,KAAKE,SAAW,MACjE,IAAAG,GAAED,EAAS,MAAM,IAAAC,GAAE,OAAQ,UAGtCT,EAAOW,MAnBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-header.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst headerCss = \":host{display:block;font-family:soleil, sans-serif;font-style:normal;color:var(--rs-color-heading);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{margin:0;padding:0;line-height:1.2em}h1{font-weight:600;font-size:3.125rem}h2{font-weight:600;font-size:2.375rem}h3{font-weight:600;font-size:1.625rem}h4{font-weight:700;font-size:1.375rem}h5{font-weight:600;font-size:1rem}\";\n\nconst Header = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) 1...5 defaults to 2 */\n this.heading = '2';\n /**\n * Color of the header text\n */\n this.color = 'heading';\n }\n render() {\n const TagType = `h${this.heading}`;\n return (h(Host, { style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(TagType, null, h(\"slot\", null))));\n }\n};\nHeader.style = headerCss;\n\nexport { Header as rs_header };\n"],"names":["Header","constructor","hostRef","r","this","heading","color","render","TagType","h","H","style","undefined"],"sourceRoot":""}
|
package/build/145.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[145],{7606:function(t,e,s){s.d(e,{i:function(){return i},s:function(){return r}});var a=s(492);const i=(t,e,s)=>{const i=(void 0!==t.target?t.target:s).tagName.toLowerCase().replace("rs-",""),r=t.detail,o={},h=e.get(i)||{};let n=!1;Object.keys(r).forEach((t=>{if(r[t]){const e=`item-${t}`;h[e]||(n=!0),o[e]=!0}})),n||Object.keys(o).length===Object.keys(h).length||(n=!0),n&&(e.set(i,o),(0,a.f)(s))},r=(t,e,s,a=!1)=>{!e&&!s||a||null!==t&&(t.style.display="block",setTimeout((function(){t.style.opacity="1"}),150))}},9145:function(t,e,s){s.r(e),s.d(e,{rs_textarea:function(){return r}});var a=s(492),i=s(7606);const r=class{constructor(t){(0,a.r)(this,t),this.rsChange=(0,a.c)(this,"rsChange",7),this.rsInput=(0,a.c)(this,"rsInput",7),this.rsItem=(0,a.c)(this,"rsItem",7),this.rsBlur=(0,a.c)(this,"rsBlur",7),this.rsFocus=(0,a.c)(this,"rsFocus",7),this.hasStartSlot=!1,this.hasEndSlot=!1,this.charsLeft=0,this.hasFocus=!1,this.disabled=!1,this.autoExpand=!1,this.minHeight=62,this.maxHeight=250,this.rows=2,this.hideMax=!1,this.hardLimit=null,this.softLimit=null,this.value="",this.richText=!1,this.hasError=!1,this.required=!1,this.onInput=t=>{const e=t.target;void 0!==e&&(this.value=e.value||""),this.rsInput.emit(t)},this.onFocus=()=>{this.hasFocus=!0,this.emitRsItem(),this.rsFocus.emit()},this.onBlur=()=>{this.hasFocus=!1,this.emitRsItem(),this.rsBlur.emit()},this.onPaste=t=>{if(this.richText){let e=t.clipboardData.getData("text/plain");t.preventDefault();const s=document.createElement("textarea");s.innerHTML=e,e=s.textContent.trim().replace(/[ ]+/g," ").replace(/\n+\s+\n+/g,"\n\n").replace(/\n\n+/g,"\n\n"),document.execCommand("insertText",!1,e)}}}changeMaxLengthText(){if(null!==this.softLimit&&this.softLimit>0&&!this.hideMax){const t=this.value.length;this.charsLeft=this.softLimit-t;const e=this.el.shadowRoot.querySelector(".max-length");null!==e&&(this.charsLeft<0?(e.innerHTML=`${Math.abs(this.charsLeft)} over`,this.el.classList.add("textarea-chars-over-max")):(e.innerHTML=`${this.charsLeft} left`,this.el.classList.remove("textarea-chars-over-max")))}}valueChanged(){this.runAutoExpand(),this.emitRsItem(),this.changeMaxLengthText(),this.rsChange.emit({value:null==this.value?this.value:this.value.toString()})}getValue(){return this.value||""}hasValue(){return""!==this.value}runAutoExpand(){if(this.autoExpand){const t=this.el.shadowRoot.querySelector(".native-element");null!==t&&(t.style.height="",t.style.height=t.scrollHeight+"px")}}emitRsItem(){this.rsItem.emit({textarea:!0,interactive:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"has-error":this.hasError,"interactive-disabled":this.disabled,"textarea-has-start-slot":this.hasStartSlot,"textarea-has-end-slot":this.hasEndSlot,"textarea-chars-over-max":this.charsLeft<0,"textarea-is-required":this.required})}componentDidUpdate(){this.runAutoExpand()}componentWillLoad(){this.hasStartSlot=null!==this.el.querySelector('[slot="start"]'),this.hasEndSlot=null!==this.el.querySelector('[slot="end"]'),this.emitRsItem()}componentDidLoad(){if(void 0!==this.softLimit||void 0!==this.hardLimit){const t=this.el.shadowRoot.querySelector(".max-length");(0,i.s)(t,this.hardLimit,this.softLimit,this.hideMax),this.changeMaxLengthText()}this.runAutoExpand()}componentDidRender(){this.emitRsItem()}connectedCallback(){this.emitRsItem()}render(){let t=null;if((this.hardLimit||this.softLimit)&&!this.hideMax){const e=this.hardLimit||this.softLimit;t=(0,a.h)("span",{class:"max-length"},e," max")}const e=this.getValue();return(0,a.h)(a.H,{"aria-disabled":this.disabled?"true":null,class:{"has-value":this.hasValue(),"has-focus":this.hasFocus,"has-max":null!==this.hardLimit||null!==this.softLimit,"hide-max":this.hideMax,"chars-over-max":this.charsLeft<0,"has-error":this.hasError}},t,(0,a.h)("div",{class:"rs-textarea__inner"},(0,a.h)("slot",{name:"start"}),(0,a.h)("textarea",{placeholder:this.placeholder,class:"native-element",onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onPaste:this.onPaste,maxLength:this.hardLimit,value:e,rows:this.rows}),(0,a.h)("slot",{name:"end"})))}get el(){return(0,a.g)(this)}static get watchers(){return{value:["valueChanged"]}}};r.style=':host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;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;min-height:2.625rem;word-break:break-all}.native-element{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;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__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-textarea__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(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;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);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:0.3125rem;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot="start"]){margin-right:0.625rem;margin-top:0.1875rem}::slotted([slot="end"]){margin-left:0.625rem}'}}]);
|
|
13
|
-
//# sourceMappingURL=145.index.js.map
|
package/build/145.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"145.index.js","mappings":";;;;;;;;;;;uLAEA,MAAMA,EAAY,CAACC,EAAIC,EAAYC,KACjC,MACMC,QADmBC,IAAdJ,EAAGK,OAAuBL,EAAGK,OAASH,GAC9BC,QAAQG,cAAcC,QAAQ,MAAO,IAClDC,EAAgBR,EAAGS,OACnBC,EAAY,GACZC,EAAcV,EAAWW,IAAIT,IAAY,GAC/C,IAAIU,GAAiB,EACrBC,OAAOC,KAAKP,GAAeQ,SAAQC,IACjC,GAAIT,EAAcS,GAAM,CACtB,MAAMC,EAAU,QAAQD,IACnBN,EAAYO,KACfL,GAAiB,GAEnBH,EAAUQ,IAAW,MAGpBL,GAAkBC,OAAOC,KAAKL,GAAWS,SAAWL,OAAOC,KAAKJ,GAAaQ,SAChFN,GAAiB,GAEfA,IACFZ,EA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U,MAAO,iBAAkB/C,QAASpB,KAAKoB,QAASG,QAASvB,KAAKuB,QAASE,OAAQzB,KAAKyB,OAAQC,QAAS1B,KAAK0B,QAASmC,UAAW7D,KAAKX,UAAW2B,MAAOA,EAAOD,KAAMf,KAAKe,QAAS,IAAAmD,GAAE,OAAQ,CAAEG,KAAM,UAEjV,SAAW,OAAO,IAAAC,GAAWtE,MAC7B,sBAAwB,MAAO,CAC7B,MAAS,CAAC,mBAGdJ,EAASJ,MAtQW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/helpers-a2e2c8b3.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-textarea.entry.js"],"sourcesContent":["import { f as forceUpdate } from './index-d4fae449.js';\n\nconst itemStyle = (ev, itemStyles, element) => {\n const el = ev.target !== undefined ? ev.target : element;\n const tagName = el.tagName.toLowerCase().replace('rs-', '');\n const updatedStyles = ev.detail;\n const newStyles = {};\n const childStyles = itemStyles.get(tagName) || {};\n let hasStyleChange = false;\n Object.keys(updatedStyles).forEach(key => {\n if (updatedStyles[key]) {\n const itemKey = `item-${key}`;\n if (!childStyles[itemKey]) {\n hasStyleChange = true;\n }\n newStyles[itemKey] = true;\n }\n });\n if (!hasStyleChange && Object.keys(newStyles).length !== Object.keys(childStyles).length) {\n hasStyleChange = true;\n }\n if (hasStyleChange) {\n itemStyles.set(tagName, newStyles);\n forceUpdate(element);\n }\n};\nconst showCharacterCounter = (maxLengthElement, hardLimit, softLimit, hideMax = false) => {\n // show only if soft limit or hard limit is set and if the element has been rendered\n if ((hardLimit || softLimit) && !hideMax) {\n if (maxLengthElement !== null) {\n maxLengthElement.style.display = 'block';\n setTimeout(function () {\n maxLengthElement.style.opacity = '1';\n }, 150);\n }\n }\n};\n\nexport { itemStyle as i, showCharacterCounter as s };\n","import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d4fae449.js';\nimport { s as showCharacterCounter } from './helpers-a2e2c8b3.js';\n\nconst textareaCss = \":host{display:block;position:static;width:100%;padding:0}.rs-textarea__inner{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;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;min-height:2.625rem;word-break:break-all}.native-element{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;color:var(--rs-color-heading);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;resize:none;padding:0;word-break:break-word}:host(.has-value) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);color:var(--rs-color-grey)}:host(.has-focus) .rs-textarea__inner{background:var(--rs-color-white);box-shadow:inset 0 0 0 0.125rem var(--rs-color-primary);color:var(--rs-color-heading)}:host(.has-value:not(.has-focus)) .native-element{color:var(--rs-color-grey)}:host(.has-error.has-focus) .rs-textarea__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-textarea__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(.chars-over-max) .max-length{color:var(--rs-color-negative)}:host .max-length{display:none;opacity:0;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);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:0.3125rem;transition:opacity .15s ease-out, color .15s ease-out}::slotted([slot=\\\"start\\\"]){margin-right:0.625rem;margin-top:0.1875rem}::slotted([slot=\\\"end\\\"]){margin-left:0.625rem}\";\n\nconst Textarea = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.rsChange = createEvent(this, \"rsChange\", 7);\n this.rsInput = createEvent(this, \"rsInput\", 7);\n this.rsItem = createEvent(this, \"rsItem\", 7);\n this.rsBlur = createEvent(this, \"rsBlur\", 7);\n this.rsFocus = createEvent(this, \"rsFocus\", 7);\n this.hasStartSlot = false;\n this.hasEndSlot = false;\n /**\n * Character counter.\n * Used for updating the text above the text area.\n */\n this.charsLeft = 0;\n /**\n * Used for checking if the text area has focus or not.\n */\n this.hasFocus = false;\n /**\n * Disabled state of the textarea\n */\n this.disabled = false;\n /**\n * Whether or not the textarea should auto expand to show all text.\n */\n this.autoExpand = false;\n /**\n * The minimum height for the text area.\n */\n this.minHeight = 62;\n /**\n * The maximum height for the text area.\n */\n this.maxHeight = 250;\n /**\n * The visible number of lines in the text area.\n */\n this.rows = 2;\n /**\n * Hides the max number of characters and the character counter text above the input field.\n */\n this.hideMax = false;\n /**\n * (hard max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they won't be able to type anything in the text area anymore.\n * A label showing the max no. of characters will display above the text area.\n * This label is not the same as the character counter feature that soft limit has - the number on the label won't change as you type.\n */\n this.hardLimit = null;\n /**\n * (soft max)\n * This specifies the maximum number of characters the user can enter.\n * If the user goes over the maximum number of characters, they will still be able to type something in the text area.\n * Character counter above the text area will display.\n */\n this.softLimit = null;\n /**\n * The value of the 'textarea'.\n */\n this.value = '';\n /**\n * Whether or not the field will be rich text. i.e., have highlighting, etc\n */\n this.richText = false;\n /**\n * Sets the input field to an error state - border will change to red.\n */\n this.hasError = false;\n /**\n * If true, the user must enter a value before submitting the form.\n */\n this.required = false;\n /**\n * The function which gets called when user enters something in the textarea.\n * @param ev - event\n */\n this.onInput = (ev) => {\n const textarea = ev.target;\n if (textarea !== undefined) {\n this.value = textarea.value || '';\n }\n this.rsInput.emit(ev);\n // this.saveInput();\n };\n /**\n * The function which gets called when textarea is in focus.\n */\n this.onFocus = () => {\n this.hasFocus = true;\n this.emitRsItem();\n this.rsFocus.emit();\n };\n /**\n * The function which gets called when input gets out of focus\n */\n this.onBlur = () => {\n this.hasFocus = false;\n this.emitRsItem();\n this.rsBlur.emit();\n };\n /**\n * The function which gets called when user pastes something to the textarea.\n * @param event\n */\n this.onPaste = (event) => {\n if (this.richText) {\n let value = event.clipboardData.getData('text/plain');\n event.preventDefault();\n const tempText = document.createElement('textarea');\n tempText.innerHTML = value;\n value = tempText.textContent.trim().replace(/[ ]+/g, ' ')\n .replace(/\\n+\\s+\\n+/g, '\\n\\n')\n .replace(/\\n\\n+/g, '\\n\\n');\n document.execCommand('insertText', false, value);\n }\n };\n }\n /**\n * As the user types something in the input field, if soft max is set, then we show a character counter above the input field.\n * This function is for updating the text above the input field.\n */\n changeMaxLengthText() {\n if ((this.softLimit !== null && this.softLimit > 0) && !this.hideMax) {\n const valueLength = this.value.length; // the number of characters the user entered\n this.charsLeft = this.softLimit - valueLength;\n const maxLengthText = this.el.shadowRoot.querySelector('.max-length');\n if (maxLengthText !== null) {\n // if no. of characters entered by the user is over the set max characters\n if (this.charsLeft < 0) {\n maxLengthText.innerHTML = `${Math.abs(this.charsLeft)} over`;\n this.el.classList.add('textarea-chars-over-max');\n // if no. of characters entered by the user is NOT over the set max character\n }\n else {\n maxLengthText.innerHTML = `${this.charsLeft} left`;\n this.el.classList.remove('textarea-chars-over-max');\n }\n }\n }\n }\n /**\n * Update the native input element when the value changes\n */\n valueChanged() {\n this.runAutoExpand();\n this.emitRsItem(); // value changed, emit change in styling\n this.changeMaxLengthText();\n this.rsChange.emit({ value: this.value == null ? this.value : this.value.toString() }); // emit change in input\n }\n /**\n * A private function for getting the value of textarea\n */\n getValue() {\n return this.value || '';\n }\n /**\n * A private function for checking if the textarea has value or not.\n */\n hasValue() {\n return this.value !== '';\n }\n //TODO: Possibly not good for performance as it requires layout thrashing/redraw\n /**\n * Auto expands the text area while the user is typing something in the textarea.\n */\n runAutoExpand() {\n if (this.autoExpand) {\n const nativeTextArea = this.el.shadowRoot.querySelector('.native-element');\n if (nativeTextArea !== null) {\n nativeTextArea.style.height = ''; /* Reset the height*/\n nativeTextArea.style.height = nativeTextArea.scrollHeight + 'px';\n }\n }\n }\n /**\n * Emits `rsItem` event when the styles of the textarea change\n */\n emitRsItem() {\n this.rsItem.emit({\n 'textarea': true,\n 'interactive': true,\n 'has-placeholder': this.placeholder != null,\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'has-error': this.hasError,\n 'interactive-disabled': this.disabled,\n 'textarea-has-start-slot': this.hasStartSlot,\n 'textarea-has-end-slot': this.hasEndSlot,\n 'textarea-chars-over-max': this.charsLeft < 0,\n 'textarea-is-required': this.required\n });\n }\n /**\n * This gets called after the component updates, after the component gets rendered. This is never called during the first render.\n */\n componentDidUpdate() {\n this.runAutoExpand();\n }\n /**\n * This gets called once after the component is first connected to the DOM.\n * After the component is first connected to the DOM, we make sure that we have the correct styling.\n */\n componentWillLoad() {\n this.hasStartSlot = this.el.querySelector('[slot=\"start\"]') !== null;\n this.hasEndSlot = this.el.querySelector('[slot=\"end\"]') !== null;\n this.emitRsItem();\n }\n /**\n * This gets called once just after the component gets fully loaded\n * and after the first render occurred.\n */\n componentDidLoad() {\n if (this.softLimit !== undefined || this.hardLimit !== undefined) {\n const maxLength = this.el.shadowRoot.querySelector('.max-length');\n showCharacterCounter(maxLength, this.hardLimit, this.softLimit, this.hideMax);\n this.changeMaxLengthText(); // the char count should reflect the initial value's char count\n }\n this.runAutoExpand(); // auto expand after every render\n }\n /**\n * This gets called after every render.\n */\n componentDidRender() {\n this.emitRsItem();\n }\n /**\n * As soon as the component is attached to the DOM,\n * we make sure that we have the correct styling.\n */\n connectedCallback() {\n this.emitRsItem();\n }\n /**\n * This renders the component\n */\n render() {\n let maxLengthText = null;\n if ((this.hardLimit || this.softLimit) && !this.hideMax) {\n const maxLength = this.hardLimit || this.softLimit;\n maxLengthText = (h(\"span\", { class: \"max-length\" }, maxLength, \" max\"));\n }\n const value = this.getValue();\n return (h(Host, { \"aria-disabled\": this.disabled ? 'true' : null, class: {\n 'has-value': this.hasValue(),\n 'has-focus': this.hasFocus,\n 'has-max': this.hardLimit !== null || this.softLimit !== null,\n 'hide-max': this.hideMax,\n 'chars-over-max': this.charsLeft < 0,\n 'has-error': this.hasError,\n } }, maxLengthText, h(\"div\", { class: \"rs-textarea__inner\" }, h(\"slot\", { name: \"start\" }), h(\"textarea\", { placeholder: this.placeholder, class: 'native-element', onInput: this.onInput, onFocus: this.onFocus, onBlur: this.onBlur, onPaste: this.onPaste, maxLength: this.hardLimit, value: value, rows: this.rows }), h(\"slot\", { name: \"end\" }))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"value\": [\"valueChanged\"]\n }; }\n};\nTextarea.style = textareaCss;\n\nexport { Textarea as rs_textarea };\n"],"names":["itemStyle","ev","itemStyles","element","tagName","undefined","target","toLowerCase","replace","updatedStyles","detail","newStyles","childStyles","get","hasStyleChange","Object","keys","forEach","key","itemKey","length","set","f","showCharacterCounter","maxLengthElement","hardLimit","softLimit","hideMax","style","display","setTimeout","opacity","Textarea","constructor","hostRef","r","this","rsChange","c","rsInput","rsItem","rsBlur","rsFocus","hasStartSlot","hasEndSlot","charsLeft","hasFocus","disabled","autoExpand","minHeight","maxHeight","rows","value","richText","hasError","required","onInput","textarea","emit","onFocus","emitRsItem","onBlur","onPaste","event","clipboardData","getData","preventDefault","tempText","document","createElement","innerHTML","textContent","trim","execCommand","changeMaxLengthText","valueLength","maxLengthText","el","shadowRoot","querySelector","Math","abs","classList","add","remove","valueChanged","runAutoExpand","toString","getValue","hasValue","nativeTextArea","height","scrollHeight","placeholder","componentDidUpdate","componentWillLoad","componentDidLoad","maxLength","s","componentDidRender","connectedCallback","render","h","class","H","name","g"],"sourceRoot":""}
|
package/build/171.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[171],{4171:function(r,e,t){t.r(e),t.d(e,{rs_loader:function(){return o}});var a=t(492);const o=class{constructor(r){(0,a.r)(this,r)}render(){return(0,a.h)(a.H,null,(0,a.h)("div",{class:"loader rs-loader"},"Loading..."))}};o.style=":host{display:block}.loader{margin:0 auto;font-size:0.625rem;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(26, 36, 40, 0.2);border-right:1.1em solid rgba(26, 36, 40, 0.2);border-bottom:1.1em solid rgba(26, 36, 40, 0.2);border-left:1.1em solid #1a2428;transform:translateZ(0);animation:load8 1.1s infinite linear;display:inline-block;vertical-align:middle;transition:opacity 0.3s linear}.loader,.loader::after{border-radius:50%;width:10em;height:10em}@keyframes load8{0%{-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"}}]);
|
|
13
|
-
//# sourceMappingURL=171.index.js.map
|
package/build/171.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"171.index.js","mappings":";;;;;;;;;;;+KAEA,MAEMA,EAAW,MACfC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEzBG,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,oBAAsB,iBAGlER,EAASS,MAVW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-loader.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsLoaderCss = \":host{display:block}.loader{margin:0 auto;font-size:0.625rem;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(26, 36, 40, 0.2);border-right:1.1em solid rgba(26, 36, 40, 0.2);border-bottom:1.1em solid rgba(26, 36, 40, 0.2);border-left:1.1em solid #1a2428;transform:translateZ(0);animation:load8 1.1s infinite linear;display:inline-block;vertical-align:middle;transition:opacity 0.3s linear}.loader,.loader::after{border-radius:50%;width:10em;height:10em}@keyframes load8{0%{-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}\";\n\nconst RsLoader = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, null, h(\"div\", { class: \"loader rs-loader\" }, \"Loading...\")));\n }\n};\nRsLoader.style = rsLoaderCss;\n\nexport { RsLoader as rs_loader };\n"],"names":["RsLoader","constructor","hostRef","r","this","render","h","H","class","style"],"sourceRoot":""}
|
package/build/190.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"190.index.js","mappings":";;;;;;;;;;;6KAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEzBG,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,SAGpCN,EAAOQ,MAVS","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-grid.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst gridCss = \":host{display:block;flex:1}\";\n\nconst RsGrid = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n }\n render() {\n return (h(Host, null, h(\"slot\", null)));\n }\n};\nRsGrid.style = gridCss;\n\nexport { RsGrid as rs_grid };\n"],"names":["RsGrid","constructor","hostRef","r","this","render","h","H","style"],"sourceRoot":""}
|
package/build/228.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[228],{7228:function(o,r,s){s.r(r),s.d(r,{rs_card_content:function(){return t}});var n=s(492);const t=class{constructor(o){(0,n.r)(this,o),this.lines="none"}render(){return(0,n.h)(n.H,null,(0,n.h)("slot",null))}};t.style=":host{display:block;width:100%;padding:1.0625rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-size:0.875rem;font-style:normal;font-weight:normal;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;border:none;box-shadow:none}:host([lines='full']){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host([lines='top']){border-top:1px solid var(--rs-color-light)}:host([lines='bottom']){border-bottom:1px solid var(--rs-color-light)}:host([lines='left']){border-left:1px solid var(--rs-color-light)}:host([lines='right']){border-right:1px solid var(--rs-color-light)}:host([lines='none']){border:none;box-shadow:none}"}}]);
|
|
13
|
-
//# sourceMappingURL=228.index.js.map
|
package/build/228.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"228.index.js","mappings":";;;;;;;;;;;qLAEA,MAEMA,EAAc,MAClBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAKvBE,KAAKC,MAAQ,OAKfC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,OAAQ,SAGpCP,EAAYS,MAlBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-card-content.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst cardContentCss = \":host{display:block;width:100%;padding:1.0625rem;box-sizing:border-box;font-family:Soleil, sans-serif;font-size:0.875rem;font-style:normal;font-weight:normal;color:var(--rs-color-grey);-webkit-font-smoothing:antialiased;border:none;box-shadow:none}:host([lines='full']){box-shadow:inset 0 0 0 1px var(--rs-color-light)}:host([lines='top']){border-top:1px solid var(--rs-color-light)}:host([lines='bottom']){border-bottom:1px solid var(--rs-color-light)}:host([lines='left']){border-left:1px solid var(--rs-color-light)}:host([lines='right']){border-right:1px solid var(--rs-color-light)}:host([lines='none']){border:none;box-shadow:none}\";\n\nconst CardContent = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Possible values are: full, top, bottom, right, left, none.\n * Adds border at the top, bottom, right, left of the card.\n */\n this.lines = 'none';\n }\n /**\n * This renders the component.\n */\n render() {\n return (h(Host, null, h(\"slot\", null)));\n }\n};\nCardContent.style = cardContentCss;\n\nexport { CardContent as rs_card_content };\n"],"names":["CardContent","constructor","hostRef","r","this","lines","render","h","H","style"],"sourceRoot":""}
|
package/build/23.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[23],{9023:function(s,r,e){e.r(r),e.d(r,{rs_progress_step:function(){return o}});var t=e(492);const o=class{constructor(s){(0,t.r)(this,s),this.progress=1,this.steps=3,this.color="positive"}progressChanged(){this.removeActiveClasses();const s=this.el.shadowRoot.querySelector(".rs-progress-step__inner");if(null!==s){s.querySelectorAll(".rs-progress-step__step").forEach((s=>{const r=s.dataset.step;parseInt(r)<=this.progress&&s.classList.add("active")}))}}removeActiveClasses(){const s=this.el.shadowRoot.querySelector(".rs-progress-step__inner");if(null!==s){s.querySelectorAll(".rs-progress-step__step").forEach((s=>{s.classList.remove("active")}))}}render(){const s=this.steps;let r=[];if(s>0)for(let e=1;e<=s;e++){const s=(0,t.h)("span",{class:{active:e<=this.progress,"rs-progress-step__step":!0,[`rs-progress-step__step-${e}`]:!0},"data-step":e});r.push(s)}return(0,t.h)(t.H,null,(0,t.h)("div",{class:"rs-progress-step__inner"},r,(0,t.h)("slot",null)))}get el(){return(0,t.g)(this)}static get watchers(){return{progress:["progressChanged"]}}};o.style=":host{display:block}:host .rs-progress-step__inner{display:flex;flex-flow:row wrap;align-items:center}:host .rs-progress-step__step{display:block;background-color:var(--rs-color-light);height:0.25rem;width:3.0625rem;margin-right:0.1875rem;border-radius:0.1875rem}:host .rs-progress-step__step:last-child{margin-right:0}:host .rs-progress-step__step.active{background-color:var(--rs-color-positive)}:host([color='positive']) .rs-progress-step__step.active{background-color:var(--rs-color-positive)}:host([color='primary']) .rs-progress-step__step.active{background-color:var(--rs-color-primary)}:host([color='neutral']) .rs-progress-step__step.active{background-color:var(--rs-color-neutral)}:host([color='highlight']) .rs-progress-step__step.active{background-color:var(--rs-color-highlight)}:host([color='negative']) .rs-progress-step__step.active{background-color:var(--rs-color-negative)}"}}]);
|
|
13
|
-
//# sourceMappingURL=23.index.js.map
|
package/build/23.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"23.index.js","mappings":";;;;;;;;;;;qLAEA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,SAAW,EAIhBD,KAAKE,MAAQ,EAMbF,KAAKG,MAAQ,WAKfC,kBAEEJ,KAAKK,sBACL,MAAMC,EAAgBN,KAAKO,GAAGC,WAAWC,cAAc,4BACvD,GAAsB,OAAlBH,EAAwB,CACZA,EAAcI,iBAAiB,2BACvCC,SAASC,IACb,MAAMC,EAAQD,EAAKE,QAAQF,KACvBG,SAASF,IAAUb,KAAKC,UAC1BW,EAAKI,UAAUC,IAAI,cAQ3BZ,sBACE,MAAMC,EAAgBN,KAAKO,GAAGC,WAAWC,cAAc,4BACvD,GAAsB,OAAlBH,EAAwB,CACZA,EAAcI,iBAAiB,2BACvCC,SAASC,IACbA,EAAKI,UAAUE,OAAO,cAO5BC,SACE,MAAMjB,EAAQF,KAAKE,MACnB,IAAIkB,EAAY,GAChB,GAAIlB,EAAQ,EAEV,IAAK,IAAImB,EAAI,EAAGA,GAAKnB,EAAOmB,IAAK,CAC/B,MAAMT,GAAQ,IAAAU,GAAE,OAAQ,CAAEC,MAAO,CAC7B,OAAUF,GAAKrB,KAAKC,SACpB,0BAA0B,EAC1B,CAAC,0BAA0BoB,MAAM,GAChC,YAAaA,IAClBD,EAAUI,KAAKZ,GAGnB,OAAQ,IAAAU,GAAE,EAAAG,EAAM,MAAM,IAAAH,GAAE,MAAO,CAAEC,MAAO,2BAA6BH,GAAW,IAAAE,GAAE,OAAQ,QAE5F,SAAW,OAAO,IAAAI,GAAW1B,MAC7B,sBAAwB,MAAO,CAC7B,SAAY,CAAC,sBAGjBJ,EAAa+B,MAzEW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-progress-step.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host, g as getElement } from './index-d4fae449.js';\n\nconst progressStepCss = \":host{display:block}:host .rs-progress-step__inner{display:flex;flex-flow:row wrap;align-items:center}:host .rs-progress-step__step{display:block;background-color:var(--rs-color-light);height:0.25rem;width:3.0625rem;margin-right:0.1875rem;border-radius:0.1875rem}:host .rs-progress-step__step:last-child{margin-right:0}:host .rs-progress-step__step.active{background-color:var(--rs-color-positive)}:host([color='positive']) .rs-progress-step__step.active{background-color:var(--rs-color-positive)}:host([color='primary']) .rs-progress-step__step.active{background-color:var(--rs-color-primary)}:host([color='neutral']) .rs-progress-step__step.active{background-color:var(--rs-color-neutral)}:host([color='highlight']) .rs-progress-step__step.active{background-color:var(--rs-color-highlight)}:host([color='negative']) .rs-progress-step__step.active{background-color:var(--rs-color-negative)}\";\n\nconst ProgressStep = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * This determines how many steps have been completed.\n */\n this.progress = 1;\n /**\n * The number of steps for this progress bar.\n */\n this.steps = 3;\n /**\n * (optional)\n * Possible values are: primary, positive, negative, neutral and highlight\n * Color of an active/completed step.\n */\n this.color = 'positive';\n }\n /**\n * Watch for any changes on `progress` property.\n */\n progressChanged() {\n // reset active class\n this.removeActiveClasses();\n const progressInner = this.el.shadowRoot.querySelector('.rs-progress-step__inner');\n if (progressInner !== null) {\n const steps = progressInner.querySelectorAll('.rs-progress-step__step');\n steps.forEach((step) => {\n const index = step.dataset.step;\n if (parseInt(index) <= this.progress) {\n step.classList.add('active');\n }\n });\n }\n }\n /**\n * Resets the active classes.\n */\n removeActiveClasses() {\n const progressInner = this.el.shadowRoot.querySelector('.rs-progress-step__inner');\n if (progressInner !== null) {\n const steps = progressInner.querySelectorAll('.rs-progress-step__step');\n steps.forEach((step) => {\n step.classList.remove('active');\n });\n }\n }\n /**\n * This renders the component.\n */\n render() {\n const steps = this.steps;\n let stepsHtml = [];\n if (steps > 0) {\n // Render the steps\n for (let i = 1; i <= steps; i++) {\n const step = (h(\"span\", { class: {\n 'active': i <= this.progress,\n 'rs-progress-step__step': true,\n [`rs-progress-step__step-${i}`]: true\n }, \"data-step\": i }));\n stepsHtml.push(step);\n }\n }\n return (h(Host, null, h(\"div\", { class: \"rs-progress-step__inner\" }, stepsHtml, h(\"slot\", null))));\n }\n get el() { return getElement(this); }\n static get watchers() { return {\n \"progress\": [\"progressChanged\"]\n }; }\n};\nProgressStep.style = progressStepCss;\n\nexport { ProgressStep as rs_progress_step };\n"],"names":["ProgressStep","constructor","hostRef","r","this","progress","steps","color","progressChanged","removeActiveClasses","progressInner","el","shadowRoot","querySelector","querySelectorAll","forEach","step","index","dataset","parseInt","classList","add","remove","render","stepsHtml","i","h","class","push","H","g","style"],"sourceRoot":""}
|
package/build/253.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[253],{8253:function(e,r,t){t.r(r),t.d(r,{rs_accordion:function(){return n}});var o=t(492);const n=class{constructor(e){(0,o.r)(this,e),this.error=!1,this.onClick=()=>{this.accordionContentElement.style.maxHeight?this.accordionContentElement.style.maxHeight=null:this.accordionContentElement.style.maxHeight=`${this.accordionContentElement.scrollHeight}px`}}render(){return(0,o.h)(o.H,{onClick:this.onClick,class:{"rs-accordion--error":this.error}},(0,o.h)("div",{class:"rs-accordion__header"},(0,o.h)("div",{class:"rs-accordion__header-start"},(0,o.h)("slot",{name:"header-start"}),(0,o.h)("rs-header",{heading:"5",color:"secondary"},this.heading)),(0,o.h)("slot",{name:"header-end"})),(0,o.h)("div",{class:"rs-accordion__content",ref:e=>this.accordionContentElement=e},(0,o.h)("slot",{name:"content"})))}};n.style=':host{display:block;border:1px solid var(--rs-color-grey-light);border-radius:0.4375rem;padding:1.25rem 1.5625rem;box-sizing:border-box;line-height:1.3125rem;cursor:pointer;transition:border 0.2s cubic-bezier(0, 0.55, 0.45, 1)}:host(.rs-accordion--error){border:1px solid var(--rs-color-negative)}.rs-accordion__header{display:flex;align-items:center;justify-content:space-between}.rs-accordion__header-start{display:flex;align-items:center;justify-content:start}::slotted([slot="header-start"]){margin-right:0.5rem}.rs-accordion__content{max-height:0;overflow:hidden;transition:max-height 0.2s cubic-bezier(0, 0.55, 0.45, 1)}::slotted([slot="content"]){padding-top:1.25rem}'}}]);
|
|
13
|
-
//# sourceMappingURL=253.index.js.map
|
package/build/253.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"253.index.js","mappings":";;;;;;;;;;;kLAEA,MAEMA,EAAc,MAClBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,OAAQ,EACbD,KAAKE,QAAU,KACTF,KAAKG,wBAAwBC,MAAMC,UACrCL,KAAKG,wBAAwBC,MAAMC,UAAY,KAG/CL,KAAKG,wBAAwBC,MAAMC,UAAY,GAAGL,KAAKG,wBAAwBG,kBAIrFC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,CAAEP,QAASF,KAAKE,QAASQ,MAAO,CAC5C,sBAAuBV,KAAKC,SACzB,IAAAO,GAAE,MAAO,CAAEE,MAAO,yBAA0B,IAAAF,GAAE,MAAO,CAAEE,MAAO,+BAAgC,IAAAF,GAAE,OAAQ,CAAEG,KAAM,kBAAmB,IAAAH,GAAE,YAAa,CAAEI,QAAS,IAAKC,MAAO,aAAeb,KAAKY,WAAW,IAAAJ,GAAE,OAAQ,CAAEG,KAAM,iBAAkB,IAAAH,GAAE,MAAO,CAAEE,MAAO,wBAAyBI,IAAKC,GAAMf,KAAKG,wBAA0BY,IAAM,IAAAP,GAAE,OAAQ,CAAEG,KAAM,gBAGpWf,EAAYQ,MAxBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-accordion.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsAccordionCss = \":host{display:block;border:1px solid var(--rs-color-grey-light);border-radius:0.4375rem;padding:1.25rem 1.5625rem;box-sizing:border-box;line-height:1.3125rem;cursor:pointer;transition:border 0.2s cubic-bezier(0, 0.55, 0.45, 1)}:host(.rs-accordion--error){border:1px solid var(--rs-color-negative)}.rs-accordion__header{display:flex;align-items:center;justify-content:space-between}.rs-accordion__header-start{display:flex;align-items:center;justify-content:start}::slotted([slot=\\\"header-start\\\"]){margin-right:0.5rem}.rs-accordion__content{max-height:0;overflow:hidden;transition:max-height 0.2s cubic-bezier(0, 0.55, 0.45, 1)}::slotted([slot=\\\"content\\\"]){padding-top:1.25rem}\";\n\nconst RsAccordion = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Show error state if true\n */\n this.error = false;\n this.onClick = () => {\n if (this.accordionContentElement.style.maxHeight) {\n this.accordionContentElement.style.maxHeight = null;\n }\n else {\n this.accordionContentElement.style.maxHeight = `${this.accordionContentElement.scrollHeight}px`;\n }\n };\n }\n render() {\n return (h(Host, { onClick: this.onClick, class: {\n 'rs-accordion--error': this.error\n } }, h(\"div\", { class: \"rs-accordion__header\" }, h(\"div\", { class: \"rs-accordion__header-start\" }, h(\"slot\", { name: \"header-start\" }), h(\"rs-header\", { heading: \"5\", color: \"secondary\" }, this.heading)), h(\"slot\", { name: \"header-end\" })), h(\"div\", { class: \"rs-accordion__content\", ref: el => this.accordionContentElement = el }, h(\"slot\", { name: \"content\" }))));\n }\n};\nRsAccordion.style = rsAccordionCss;\n\nexport { RsAccordion as rs_accordion };\n"],"names":["RsAccordion","constructor","hostRef","r","this","error","onClick","accordionContentElement","style","maxHeight","scrollHeight","render","h","H","class","name","heading","color","ref","el"],"sourceRoot":""}
|
package/build/269.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[269],{7269:function(e,t,o){o.r(t),o.d(t,{rs_content_placeholder:function(){return n}});var r=o(492);const n=class{constructor(e){(0,r.r)(this,e),this.border=!0,this.maskContent=""}componentDidLoad(){if(void 0===this.mask)return;const e=(0,r.a)(`./assets/svg-masks/${this.mask}.svg`),t=new XMLHttpRequest;t.open("GET",e),t.onreadystatechange=()=>{if(4==t.readyState&&200==t.status){const e=document.createElement("div");e.innerHTML=t.responseText;const o=e.querySelector("svg");this.maskContent=o.outerHTML,this.width=o.getAttribute("width");const r=o.getAttribute("height");this.scale=parseFloat(r)/parseFloat(this.width)*100}},t.send()}render(){return(0,r.h)(r.H,null,(0,r.h)("div",{class:{"rs-content-placeholder__container":!0,"rs-content-placeholder__container--no-border":!this.border},style:{width:`${this.width}px`}},(0,r.h)("div",{class:"rs-content-placeholder__loading",style:{paddingBottom:`${this.scale}%`,clipPath:"url(#clip-mask)"}}),(0,r.h)("div",{class:"rs-content-placeholder__svg-container",innerHTML:this.maskContent})))}static get assetsDirs(){return["assets"]}};n.style=":host{display:block}.rs-content-placeholder__container{box-shadow:inset 0 0 0 0.125rem var(--rs-color-light);display:inline-block;border-radius:0.25rem;cursor:wait}.rs-content-placeholder__container--no-border{box-shadow:none}.rs-content-placeholder__svg-container{height:0;width:0;overflow:hidden}.rs-content-placeholder__loading{width:100%;height:100%;position:relative;overflow:hidden;background-color:var(--rs-color-light)}.rs-content-placeholder__loading::before{content:'';display:block;position:absolute;left:-9.375rem;top:0;height:100%;width:9.375rem;background:linear-gradient(to right, var(--rs-color-light) 0%, rgba(255, 255, 255, 0.8) 50%, var(--rs-color-light) 100%);animation:rs-content-placeholder__load 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite}@keyframes rs-content-placeholder__load{from{left:-9.375rem}to{left:100%}}"}}]);
|
|
13
|
-
//# sourceMappingURL=269.index.js.map
|
package/build/269.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"269.index.js","mappings":";;;;;;;;;;;4LAEA,MAEMA,EAAuB,MAC3BC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,QAAS,EACdD,KAAKE,YAAc,GAErBC,mBACE,QAAkBC,IAAdJ,KAAKK,KACP,OAEF,MAAMA,GAAO,OAAa,sBAAsBL,KAAKK,YAC/CC,EAAS,IAAIC,eACnBD,EAAOE,KAAK,MAAOH,GACnBC,EAAOG,mBAAqB,KAC1B,GAAyB,GAArBH,EAAOI,YAAoC,KAAjBJ,EAAOK,OAAe,CAClD,MAAMC,EAAmBC,SAASC,cAAc,OAChDF,EAAiBG,UAAYT,EAAOU,aACpC,MAAMC,EAAcL,EAAiBM,cAAc,OACnDlB,KAAKE,YAAce,EAAYE,UAC/BnB,KAAKoB,MAAQH,EAAYI,aAAa,SACtC,MAAMC,EAASL,EAAYI,aAAa,UACxCrB,KAAKuB,MAASC,WAAWF,GAAUE,WAAWxB,KAAKoB,OAAU,MAGjEd,EAAOmB,OAETC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,CACpC,qCAAqC,EACrC,gDAAiD7B,KAAKC,QACrD6B,MAAO,CACRV,MAAO,GAAGpB,KAAKoB,aACZ,IAAAO,GAAE,MAAO,CAAEE,MAAO,kCAAmCC,MAAO,CAC/DC,cAAe,GAAG/B,KAAKuB,SACvBS,SAAU,sBACN,IAAAL,GAAE,MAAO,CAAEE,MAAO,wCAAyCd,UAAWf,KAAKE,gBAErF,wBAA0B,MAAO,CAAC,YAEpCN,EAAqBkC,MA5CW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-content-placeholder.entry.js"],"sourcesContent":["import { r as registerInstance, a as getAssetPath, h, H as Host } from './index-d4fae449.js';\n\nconst rsContentPlaceholderCss = \":host{display:block}.rs-content-placeholder__container{box-shadow:inset 0 0 0 0.125rem var(--rs-color-light);display:inline-block;border-radius:0.25rem;cursor:wait}.rs-content-placeholder__container--no-border{box-shadow:none}.rs-content-placeholder__svg-container{height:0;width:0;overflow:hidden}.rs-content-placeholder__loading{width:100%;height:100%;position:relative;overflow:hidden;background-color:var(--rs-color-light)}.rs-content-placeholder__loading::before{content:'';display:block;position:absolute;left:-9.375rem;top:0;height:100%;width:9.375rem;background:linear-gradient(to right, var(--rs-color-light) 0%, rgba(255, 255, 255, 0.8) 50%, var(--rs-color-light) 100%);animation:rs-content-placeholder__load 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite}@keyframes rs-content-placeholder__load{from{left:-9.375rem}to{left:100%}}\";\n\nconst RsContentPlaceholder = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Adds a border around the placeholder if set to true\n */\n this.border = true;\n this.maskContent = '';\n }\n componentDidLoad() {\n if (this.mask === undefined) {\n return;\n }\n const mask = getAssetPath(`./assets/svg-masks/${this.mask}.svg`);\n const client = new XMLHttpRequest();\n client.open('GET', mask);\n client.onreadystatechange = () => {\n if (client.readyState == 4 && client.status == 200) {\n const maskElementOuter = document.createElement('div');\n maskElementOuter.innerHTML = client.responseText;\n const maskElement = maskElementOuter.querySelector('svg');\n this.maskContent = maskElement.outerHTML;\n this.width = maskElement.getAttribute('width');\n const height = maskElement.getAttribute('height');\n this.scale = (parseFloat(height) / parseFloat(this.width)) * 100;\n }\n };\n client.send();\n }\n render() {\n return (h(Host, null, h(\"div\", { class: {\n 'rs-content-placeholder__container': true,\n 'rs-content-placeholder__container--no-border': !this.border,\n }, style: {\n width: `${this.width}px`,\n } }, h(\"div\", { class: \"rs-content-placeholder__loading\", style: {\n paddingBottom: `${this.scale}%`,\n clipPath: 'url(#clip-mask)'\n } }), h(\"div\", { class: 'rs-content-placeholder__svg-container', innerHTML: this.maskContent }))));\n }\n static get assetsDirs() { return [\"assets\"]; }\n};\nRsContentPlaceholder.style = rsContentPlaceholderCss;\n\nexport { RsContentPlaceholder as rs_content_placeholder };\n"],"names":["RsContentPlaceholder","constructor","hostRef","r","this","border","maskContent","componentDidLoad","undefined","mask","client","XMLHttpRequest","open","onreadystatechange","readyState","status","maskElementOuter","document","createElement","innerHTML","responseText","maskElement","querySelector","outerHTML","width","getAttribute","height","scale","parseFloat","send","render","h","H","class","style","paddingBottom","clipPath"],"sourceRoot":""}
|
package/build/307.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[307],{4307:function(e,t,i){i.r(t),i.d(t,{rs_side_drawer:function(){return r}});var n=i(492),o=i(5924);const r=class{constructor(e){(0,n.r)(this,e),this.item=(0,n.c)(this,"item",7),this.itemClosed=(0,n.c)(this,"itemClosed",7),this.moreContentClosed=(0,n.c)(this,"moreContentClosed",7),this.sideDrawerClose=(0,n.c)(this,"sideDrawerClose",7),this.items="",this.isDirty=!1,this.contentLevelOpen=0,this.itemOpen=!1,this.itemClickedHandler=e=>{this.contentLevelOpen=1,this.itemOpen=!0,this.itemOpenHandle=e.target.dataset.item,this.openItemHeading=e.target.dataset.heading,this.item.emit({item:this.itemOpenHandle})},this.closeItem=()=>{this.moreContentOpen()?this.moreContentClosed.emit({moreContent:this.moreContentHeading}):(this.contentLevelOpen=0,this.itemOpen=!1,this.itemClosed.emit({item:this.itemOpenHandle}))},this.getItemsObject=()=>{let e={};return this.itemsArray.forEach((t=>{e[r.taskHandle(t)]=t})),e},this.moreContentOpen=()=>this.contentLevelOpen>1}closeMoreContentHandler(){this.contentLevelOpen--,this.moreContentClosed.emit({moreContent:this.moreContentHeading})}closeContentHandler(){this.closeItem()}componentWillLoad(){this.itemsArray=this.items.split(",").map((e=>e.trim()))}async openItem(e=""){const t=this.getItemsObject();0!==Object.keys(t).length&&t.hasOwnProperty(e)&&(this.contentLevelOpen=1,this.itemOpen=!0,this.itemOpenHandle=e,this.openItemHeading=t[e],this.item.emit({item:this.itemOpenHandle}))}static taskHandle(e){return e.replaceAll("&","").replaceAll(" "," ").replaceAll(" ","-").toLowerCase()}render(){var e,t;return(0,n.h)(n.H,null,(0,n.h)("div",{class:{"side-drawer":!0,"side-drawer--open":this.itemOpen}},(0,n.h)("div",{class:{"open-item-header":!0,"open-item-header--open":this.itemOpen&&1===this.contentLevelOpen},onClick:this.closeItem},(0,n.h)("rs-icon",{class:"open-item-header__back",name:"chevron-left",color:"secondary",size:13}),(0,n.h)("rs-column-header",{class:"open-item-header__title",color:"secondary"},this.subHeading)),(0,n.h)("div",{class:{"item-outer":!0,"item-outer--open":this.itemOpen}},(0,n.h)("div",null,(0,n.h)("rs-side-drawer-header",{"is-dirty":this.isDirty,loading:this.loading},(0,n.h)("span",{slot:"heading"},this.heading),(0,n.h)("span",{slot:"sub-heading"},this.subHeading)),(0,n.h)("rs-icon",{name:"x",color:"grey",class:{close:!0,"close--hidden":this.isDirty},onClick:this.sideDrawerClose.emit})),(0,n.h)("div",{class:{"item-container":!0,"item-container--no-gap-support":!(0,o.f)()}},this.itemsArray.map((e=>(0,n.h)("rs-side-drawer-item",{onClick:this.itemClickedHandler,"data-item":r.taskHandle(e),"data-heading":e,heading:e}))))),(0,n.h)("rs-side-drawer-item-content",{"content-level":1,heading:this.openItemHeading,"more-content-open":this.moreContentOpen(),"open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"main-content"})),(0,n.h)("rs-side-drawer-item-content",{"content-level":2,heading:null!==(e=this.moreContentHeading)&&void 0!==e?e:this.openItemHeading,"sub-heading":"More Settings","open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"content-level-2"})),(0,n.h)("rs-side-drawer-item-content",{"content-level":3,heading:null!==(t=this.moreContentHeading)&&void 0!==t?t:this.openItemHeading,"sub-heading":"More Settings","open-level":this.contentLevelOpen,"item-open":this.itemOpen},(0,n.h)("slot",{name:"content-level-3"}))))}};r.style=".close{width:2rem;height:2rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:2rem;justify-content:center;align-items:center;font-size:1rem;cursor:pointer;display:flex;position:absolute;top:1rem;right:1rem;transition:box-shadow 0.15s cubic-bezier(0, 0.55, 0.45, 1), opacity 0.15s ease-out;opacity:1;z-index:1}.close--hidden{opacity:0;pointer-events:none}.close:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}:host{display:block;height:100%;width:19.375rem;box-shadow:0 0.125rem 0.625rem 0 rgba(0, 0, 0, .5);position:fixed}.side-drawer{height:100%}.side-drawer--open{background-color:var(--rs-color-light)}.item-outer{background-color:var(--rs-color-white);transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 100ms;height:100%;position:absolute;top:0}.item-outer--open{pointer-events:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.item-container{padding:0.5rem;height:100%;background:var(--rs-color-light);border-radius:1rem 1rem 0 0;gap:0.5rem;display:flex;flex-direction:column}.item-container--no-gap-support>*{--fgp-margin-top:calc(var(--fgp-gap-row));--fgp-margin-left:calc(var(--fgp-gap-column));margin-top:var(--fgp-margin-top) !important;margin-left:var(--fgp-margin-left) !important}.item-container--no-gap-support{--fgp-gap-row:0.5rem;--fgp-gap-column:0.5rem;--fgp-gap:0.5rem;--has-fgp:initial;--fgp-margin-top:calc(var(--fgp-gap-row, 0px) * -1);--fgp-margin-left:calc(var(--fgp-gap-column, 0px) * -1);display:flex;margin-top:var(--fgp-margin-top, 0) !important;margin-left:var(--fgp-margin-left, 0) !important}.open-item-header{position:relative;justify-content:center;align-items:center;display:flex;padding:0.9375rem 0;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1);pointer-events:none}.open-item-header--open{pointer-events:auto;opacity:1;cursor:pointer;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.open-item-header__back{position:absolute;left:1.125rem;width:3rem;height:3rem;top:50%;transform:translateY(-50%);display:flex;align-items:center}.open-item-header__title::first-letter{text-transform:uppercase}"},5924:function(e,t,i){i.d(t,{S:function(){return a},a:function(){return s},f:function(){return n},o:function(){return r}});const n=()=>{const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=1===e.scrollHeight;return e.parentNode.removeChild(e),t};function o(e,t,i,n,o={}){let r=t;Array.isArray(t)?r=Array.from(t):Array.isArray(t)||(r=[t]);let s=i;return Array.isArray(i)||(s=[i]),r.forEach((t=>{s.forEach((i=>{t[e](i,n,Object.assign({capture:!1},o))}))})),[t,i,n,o]}const r=o.bind(null,"addEventListener"),s=o.bind(null,"removeEventListener"),a=e=>{if(!e||"[object Function]"!==Object.prototype.toString.call(e))return;let t;window.addEventListener("scroll",(function(){window.clearTimeout(t),t=setTimeout((function(){e()}),66)}),!1)}}}]);
|
|
13
|
-
//# sourceMappingURL=307.index.js.map
|
package/build/307.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"307.index.js","mappings":";;;;;;;;;;;8LAGA,MAEMA,EAAe,MACnBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GACvBE,KAAKC,MAAO,IAAAC,GAAYF,KAAM,OAAQ,GACtCA,KAAKG,YAAa,IAAAD,GAAYF,KAAM,aAAc,GAClDA,KAAKI,mBAAoB,IAA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C,OAAO,CAAEC,SAAS,GAAST,UAGlD,CAACH,EAAUC,EAAQC,EAAIC,GAEhC,MAAMU,EAAKf,EAAcgB,KAAK,KAAM,oBAC9BC,EAAMjB,EAAcgB,KAAK,KAAM,uBAC/BE,EAAcC,IAElB,IAAKA,GAAyD,sBAA7CrD,OAAOsD,UAAUC,SAASC,KAAKH,GAC9C,OAGF,IAAII,EAEJC,OAAOC,iBAAiB,UAAU,WAEhCD,OAAOE,aAAaH,GAEpBA,EAAcI,YAAW,WAEvBR,MACC,OACF","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-side-drawer.entry.js","webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/utils-666cff40.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, H as Host } from './index-d4fae449.js';\nimport { f as flexGapSupported } from './utils-666cff40.js';\n\nconst rsSideDrawerCss = \".close{width:2rem;height:2rem;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light);border-radius:2rem;justify-content:center;align-items:center;font-size:1rem;cursor:pointer;display:flex;position:absolute;top:1rem;right:1rem;transition:box-shadow 0.15s cubic-bezier(0, 0.55, 0.45, 1), opacity 0.15s ease-out;opacity:1;z-index:1}.close--hidden{opacity:0;pointer-events:none}.close:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}:host{display:block;height:100%;width:19.375rem;box-shadow:0 0.125rem 0.625rem 0 rgba(0, 0, 0, .5);position:fixed}.side-drawer{height:100%}.side-drawer--open{background-color:var(--rs-color-light)}.item-outer{background-color:var(--rs-color-white);transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 100ms;height:100%;position:absolute;top:0}.item-outer--open{pointer-events:none;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.item-container{padding:0.5rem;height:100%;background:var(--rs-color-light);border-radius:1rem 1rem 0 0;gap:0.5rem;display:flex;flex-direction:column}.item-container--no-gap-support>*{--fgp-margin-top:calc(var(--fgp-gap-row));--fgp-margin-left:calc(var(--fgp-gap-column));margin-top:var(--fgp-margin-top) !important;margin-left:var(--fgp-margin-left) !important}.item-container--no-gap-support{--fgp-gap-row:0.5rem;--fgp-gap-column:0.5rem;--fgp-gap:0.5rem;--has-fgp:initial;--fgp-margin-top:calc(var(--fgp-gap-row, 0px) * -1);--fgp-margin-left:calc(var(--fgp-gap-column, 0px) * -1);display:flex;margin-top:var(--fgp-margin-top, 0) !important;margin-left:var(--fgp-margin-left, 0) !important}.open-item-header{position:relative;justify-content:center;align-items:center;display:flex;padding:0.9375rem 0;opacity:0;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1);pointer-events:none}.open-item-header--open{pointer-events:auto;opacity:1;cursor:pointer;transition:opacity 0.15s cubic-bezier(0, 0.55, 0.45, 1) 200ms}.open-item-header__back{position:absolute;left:1.125rem;width:3rem;height:3rem;top:50%;transform:translateY(-50%);display:flex;align-items:center}.open-item-header__title::first-letter{text-transform:uppercase}\";\n\nconst RsSideDrawer = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.item = createEvent(this, \"item\", 7);\n this.itemClosed = createEvent(this, \"itemClosed\", 7);\n this.moreContentClosed = createEvent(this, \"moreContentClosed\", 7);\n this.sideDrawerClose = createEvent(this, \"sideDrawerClose\", 7);\n /**\n * Comma seperated list of items to display in the side drawer\n */\n this.items = '';\n /**\n * If true, the side drawer will show the save/cancel buttons and hide the x close\n */\n this.isDirty = false;\n /**\n * The content level that is open. i.e., Base level, more settings, etc\n */\n // eslint-disable-next-line @stencil/strict-mutable\n this.contentLevelOpen = 0;\n this.itemOpen = false;\n this.itemClickedHandler = (event) => {\n this.contentLevelOpen = 1;\n this.itemOpen = true;\n this.itemOpenHandle = event.target.dataset.item;\n this.openItemHeading = event.target.dataset.heading;\n this.item.emit({ item: this.itemOpenHandle });\n };\n this.closeItem = () => {\n if (this.moreContentOpen()) {\n this.moreContentClosed.emit({ moreContent: this.moreContentHeading });\n }\n else {\n this.contentLevelOpen = 0;\n this.itemOpen = false;\n this.itemClosed.emit({ item: this.itemOpenHandle });\n }\n };\n this.getItemsObject = () => {\n let itemsObject = {};\n this.itemsArray.forEach(item => {\n itemsObject[RsSideDrawer.taskHandle(item)] = item; // e.g. 'your-logo': 'Your Logo'\n });\n return itemsObject;\n };\n this.moreContentOpen = () => {\n return this.contentLevelOpen > 1;\n };\n }\n closeMoreContentHandler() {\n this.contentLevelOpen--;\n this.moreContentClosed.emit({ moreContent: this.moreContentHeading });\n }\n closeContentHandler() {\n this.closeItem();\n }\n componentWillLoad() {\n this.itemsArray = this.items.split(',').map(task => {\n return task.trim();\n });\n }\n /**\n * Method for opening a panel programmatically from outside of the side drawer\n * @param {string} itemHandle\n */\n async openItem(itemHandle = '') {\n const itemsObject = this.getItemsObject();\n if (Object.keys(itemsObject).length !== 0 && itemsObject.hasOwnProperty(itemHandle)) {\n this.contentLevelOpen = 1;\n this.itemOpen = true;\n this.itemOpenHandle = itemHandle;\n this.openItemHeading = itemsObject[itemHandle];\n this.item.emit({ item: this.itemOpenHandle });\n }\n }\n static taskHandle(item) {\n return item.replaceAll('&', '').replaceAll(' ', ' ').replaceAll(' ', '-').toLowerCase();\n }\n render() {\n var _a, _b;\n return (h(Host, null, h(\"div\", { class: {\n 'side-drawer': true,\n 'side-drawer--open': this.itemOpen\n } }, h(\"div\", { class: {\n 'open-item-header': true,\n 'open-item-header--open': this.itemOpen && this.contentLevelOpen === 1\n }, onClick: this.closeItem }, h(\"rs-icon\", { class: \"open-item-header__back\", name: \"chevron-left\", color: \"secondary\", size: 13 }), h(\"rs-column-header\", { class: \"open-item-header__title\", color: \"secondary\" }, this.subHeading)), h(\"div\", { class: {\n 'item-outer': true,\n 'item-outer--open': this.itemOpen\n } }, h(\"div\", null, h(\"rs-side-drawer-header\", { \"is-dirty\": this.isDirty, loading: this.loading }, h(\"span\", { slot: \"heading\" }, this.heading), h(\"span\", { slot: \"sub-heading\" }, this.subHeading)), h(\"rs-icon\", { name: \"x\", color: \"grey\", class: {\n 'close': true,\n 'close--hidden': this.isDirty\n }, onClick: this.sideDrawerClose.emit })), h(\"div\", { class: {\n 'item-container': true,\n 'item-container--no-gap-support': !flexGapSupported()\n } }, this.itemsArray.map(item => {\n return (h(\"rs-side-drawer-item\", { onClick: this.itemClickedHandler, \"data-item\": RsSideDrawer.taskHandle(item), \"data-heading\": item, heading: item }));\n }))), h(\"rs-side-drawer-item-content\", { \"content-level\": 1, heading: this.openItemHeading, \"more-content-open\": this.moreContentOpen(), \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"main-content\" })), h(\"rs-side-drawer-item-content\", { \"content-level\": 2, heading: (_a = this.moreContentHeading) !== null && _a !== void 0 ? _a : this.openItemHeading, \"sub-heading\": \"More Settings\", \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"content-level-2\" })), h(\"rs-side-drawer-item-content\", { \"content-level\": 3, heading: (_b = this.moreContentHeading) !== null && _b !== void 0 ? _b : this.openItemHeading, \"sub-heading\": \"More Settings\", \"open-level\": this.contentLevelOpen, \"item-open\": this.itemOpen }, h(\"slot\", { name: \"content-level-3\" })))));\n }\n};\nRsSideDrawer.style = rsSideDrawerCss;\n\nexport { RsSideDrawer as rs_side_drawer };\n","const flexGapSupported = () => {\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(flex);\n const isSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n flex.parentNode.removeChild(flex);\n return isSupported;\n};\nfunction eventListener(method, elements, events, fn, options = {}) {\n let localElements = elements;\n if (Array.isArray(elements)) {\n localElements = Array.from(elements);\n }\n else if (!Array.isArray(elements)) {\n localElements = [elements];\n }\n let localEvents = events;\n if (!Array.isArray(events)) {\n localEvents = [events];\n }\n localElements.forEach(el => {\n localEvents.forEach(ev => {\n el[method](ev, fn, Object.assign({ capture: false }, options));\n });\n });\n return [elements, events, fn, options];\n}\nconst on = eventListener.bind(null, 'addEventListener');\nconst off = eventListener.bind(null, 'removeEventListener');\nconst ScrollStop = (callback) => {\n // Make sure a valid callback was provided\n if (!callback || Object.prototype.toString.call(callback) !== '[object Function]') {\n return;\n }\n // Setup scrolling variable\n let isScrolling;\n // Listen for scroll events\n window.addEventListener('scroll', function () {\n // Clear our timeout throughout the scroll\n window.clearTimeout(isScrolling);\n // Set a timeout to run after scrolling ends\n isScrolling = setTimeout(function () {\n // Run the callback\n callback();\n }, 66);\n }, false);\n};\n\nexport { ScrollStop as S, off as a, flexGapSupported as f, on as o };\n"],"names":["RsSideDrawer","constructor","hostRef","r","this","item","c","itemClosed","moreContentClosed","sideDrawerClose","items","isDirty","contentLevelOpen","itemOpen","itemClickedHandler","event","itemOpenHandle","target","dataset","openItemHeading","heading","emit","closeItem","moreContentOpen","moreContent","moreContentHeading","getItemsObject","itemsObject","itemsArray","forEach","taskHandle","closeMoreContentHandler","closeContentHandler","componentWillLoad","split","map","task","trim","itemHandle","Object","keys","length","hasOwnProperty","replaceAll","toLowerCase","render","_a","_b","h","H","class","onClick","name","color","size","subHeading","loading","slot","f","style","flexGapSupported","flex","document","createElement","display","flexDirection","rowGap","appendChild","body","isSupported","scrollHeight","parentNode","removeChild","eventListener","method","elements","events","fn","options","localElements","Array","isArray","from","localEvents","el","ev","assign","capture","on","bind","off","ScrollStop","callback","prototype","toString","call","isScrolling","window","addEventListener","clearTimeout","setTimeout"],"sourceRoot":""}
|
package/build/314.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[314],{2314:function(e,t,o){o.r(t),o.d(t,{rs_button:function(){return n},rs_subtitle:function(){return l}});var r=o(492);const n=class{constructor(e){(0,r.r)(this,e),this.color="primary",this.disabled=!1,this.size="default",this.loading=!1}getColorClass(){return`color--${this.color}`}getExpandClass(){return"block"===this.expand?"expand-block":"full"===this.expand?"expand-full":""}render(){const{href:e,rel:t,target:o}=this,n=void 0===this.href?"button":"a",l="a"===n?{href:e,rel:t,target:o}:{};let i=this.loading?(0,r.h)("div",{class:"button-element__loading-bar"}):(0,r.h)("slot",null);return(0,r.h)(r.H,{class:this.getExpandClass(),style:{"flex-grow":this.flexGrow}},(0,r.h)(n,Object.assign({},l,{disabled:this.disabled,class:["button-element",this.loading?"button-element--loading":"",this.getColorClass(),"small"===this.size?"small":"",this.disabled?"disabled":""].join(" ")}),(0,r.h)("span",null,i)))}};n.style=":host{display:inline-block}a.button-element span{top:initial}.button-element{text-decoration:none;padding:0.75rem 1.5625rem;min-width:5.625rem;height:2.625rem;cursor:pointer;user-select:none;border:0;border-radius:0.25rem;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background .25s ease-out, box-shadow .25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:0.625rem;padding-bottom:0.625rem;height:2.25rem}.button-element.small span{font-size:0.875rem}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:1rem;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element.color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey)}.button-element.disabled span{color:var(--rs-color-grey-light);pointer-events:none}:host .button-element--loading{padding:0.75rem 1rem;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:0.3125rem;margin:0.4375rem 0;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);width:100%}:host .button-element--loading .button-element__loading-bar:before{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate 2.1s cubic-bezier(.65, .815, .735, .395) infinite;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}:host .button-element--loading .button-element__loading-bar:after{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate-short 2.1s cubic-bezier(.165, .84, .44, 1) infinite;animation-delay:1.15s;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}";const l=class{constructor(e){(0,r.r)(this,e),this.subtitle="1",this.color="grey"}render(){return(0,r.h)(r.H,{class:`subtitle__${this.subtitle}`,style:{color:void 0!==this.color?`var(--rs-color-${this.color})`:""}},(0,r.h)("slot",null))}};l.style=":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:1.125rem;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:0.75rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:0.625rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}"}}]);
|
|
13
|
-
//# sourceMappingURL=314.index.js.map
|
package/build/314.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"314.index.js","mappings":";;;;;;;;;;;gNAEA,MAEMA,EAAS,MACbC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEvBE,KAAKC,MAAQ,UAEbD,KAAKE,UAAW,EAOhBF,KAAKG,KAAO,UAIZH,KAAKI,SAAU,EAEjBC,gBACE,MAAO,UAAUL,KAAKC,QAExBK,iBACE,MAAoB,UAAhBN,KAAKO,OACA,eAEgB,SAAhBP,KAAKO,OACL,cAEF,GAETC,SACE,MAAM,KAAEC,EAAI,IAAEC,EAAG,OAAEC,GAAWX,KACxBY,OAAwBC,IAAdb,KAAKS,KAAqB,SAAW,IAC/CK,EAAqB,MAAZF,EACX,CACAH,KAAAA,EACAC,IAAAA,EACAC,OAAAA,GACE,GACN,IAAII,EAAmBf,KAAKI,SAA+B,IAAAY,GAAE,MAAO,CAAEC,MAAO,iCAAtC,IAAAD,GAAE,OAAQ,MACjD,OAAQ,IAAAA,GAAE,EAAAE,EAAM,CAAED,MAAOjB,KAAKM,iBAAkBa,MAAO,CACnD,YAAanB,KAAKoB,YACf,IAAAJ,GAAEJ,EAASS,OAAOC,OAAO,GAAIR,EAAO,CAAEZ,SAAUF,KAAKE,SAAUe,MAAO,CACzE,iBACAjB,KAAKI,QAAU,0BAA4B,GAC3CJ,KAAKK,gBACS,UAAdL,KAAKG,KAAmB,QAAU,GAClCH,KAAKE,SAAW,WAAa,IAC7BqB,KAAK,QAAS,IAAAP,GAAE,OAAQ,KAAMD,OAGtCnB,EAAOuB,MAtDW,+sHAwDlB,MAEMK,EAAW,MACf3B,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAEvBE,KAAKyB,SAAW,IAIhBzB,KAAKC,MAAQ,OAEfO,SACE,OAAQ,IAAAQ,GAAE,EAAAE,EAAM,CAAED,MAAO,aAAajB,KAAKyB,WAAYN,MAAO,CAC1DlB,WAAsBY,IAAfb,KAAKC,MAAsB,kBAAkBD,KAAKC,SAAW,MACjE,IAAAe,GAAE,OAAQ,SAGrBQ,EAASL,MAlBW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-button_2.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst buttonCss = \":host{display:inline-block}a.button-element span{top:initial}.button-element{text-decoration:none;padding:0.75rem 1.5625rem;min-width:5.625rem;height:2.625rem;cursor:pointer;user-select:none;border:0;border-radius:0.25rem;outline:none;display:inline-block;box-sizing:border-box;background-size:cover;transition:background .25s ease-out, box-shadow .25s ease-out;color:var(--rs-color-white);width:100%;white-space:nowrap}.button-element.small{padding-top:0.625rem;padding-bottom:0.625rem;height:2.25rem}.button-element.small span{font-size:0.875rem}.button-element span{top:-1px;display:block;position:relative;line-height:1;font-size:1rem;font-family:soleil, sans-serif;font-style:normal;font-weight:600;letter-spacing:0.2px;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.button-element:active{transition-delay:200ms}:host(.expand-block),:host(.expand-full){display:block}:host(.expand-block) .button-element{display:block;width:100%}:host(.expand-full) .button-element{display:block;width:100%;border-radius:0}.button-element.color--primary{background:var(--rs-color-primary-700)}.button-element.color--primary:hover{background:var(--rs-color-primary)}.button-element.color--primary:active{background:var(--rs-color-primary-300)}.button-element.color--negative{background:var(--rs-color-negative)}.button-element.color--secondary{background:var(--rs-color-secondary)}.button-element.color--secondary:hover{background:var(--rs-color-secondary-700)}.button-element.color--secondary:active{background:var(--rs-color-secondary-300)}.button-element.color--grey-light{color:var(--rs-color-grey);background:transparent;box-shadow:inset 0 0 0 1px var(--rs-color-grey-light)}:host(.expand-block) .button-element.color--grey-light span,:host(.expand-full) .button-element.color--grey-light span{font-weight:normal;color:var(--rs-color-secondary)}.button-element.color--grey-light:hover{box-shadow:inset 0 0 0 1px var(--rs-color-grey)}.button-element.color--positive{background:var(--rs-color-positive)}.button-element.color--positive:hover{background:var(--rs-color-positive-700)}.button-element.color--positive:active{background:var(--rs-color-positive-300)}.button-element.color--text{color:var(--rs-color-grey);background:transparent}.button-element.color--text:hover{background:var(--rs-color-light)}.button-element.color--text:active{background:var(--rs-color-grey-light)}.button-element.disabled{box-shadow:none;background:var(--rs-color-grey);cursor:not-allowed}.button-element.disabled:hover{background:var(--rs-color-grey)}.button-element.disabled span{color:var(--rs-color-grey-light);pointer-events:none}:host .button-element--loading{padding:0.75rem 1rem;cursor:wait;display:flex;align-items:center}:host .button-element--loading>*{width:100%}:host .button-element--loading .button-element__loading-bar{position:relative;overflow:hidden;height:0.3125rem;margin:0.4375rem 0;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);width:100%}:host .button-element--loading .button-element__loading-bar:before{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate 2.1s cubic-bezier(.65, .815, .735, .395) infinite;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}:host .button-element--loading .button-element__loading-bar:after{position:absolute;top:0;bottom:0;left:0;content:'';animation:indeterminate-short 2.1s cubic-bezier(.165, .84, .44, 1) infinite;animation-delay:1.15s;border-radius:0.1875rem;background-color:rgba(255, 255, 255, .5);will-change:left, right}@keyframes indeterminate{0%{right:100%;left:-35%}60%{right:-90%;left:100%}100%{right:-90%;left:100%}}@keyframes indeterminate-short{0%{right:100%;left:-200%}60%{right:-8%;left:107%}100%{right:-8%;left:107%}}\";\n\nconst Button = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) primary, secondary, positive, grey defaults to primary. If set to grey, button will be an outline */\n this.color = 'primary';\n /** (optional) Puts the button in a disabled state */\n this.disabled = false;\n /**\n * (optional) Changes the button the small variation\n *\n * @property small Button with less height padding, and smaller font size\n * @property default Button with the default height and padding\n */\n this.size = 'default';\n /**\n * If true, replaces the inner html to a loading bar\n */\n this.loading = false;\n }\n getColorClass() {\n return `color--${this.color}`;\n }\n getExpandClass() {\n if (this.expand === 'block') {\n return 'expand-block';\n }\n else if (this.expand === 'full') {\n return 'expand-full';\n }\n return '';\n }\n render() {\n const { href, rel, target } = this;\n const TagType = this.href === undefined ? 'button' : 'a';\n const attrs = (TagType === 'a')\n ? {\n href,\n rel,\n target\n } : {};\n let buttonInnerHTML = !this.loading ? (h(\"slot\", null)) : (h(\"div\", { class: \"button-element__loading-bar\" }));\n return (h(Host, { class: this.getExpandClass(), style: {\n 'flex-grow': this.flexGrow\n } }, h(TagType, Object.assign({}, attrs, { disabled: this.disabled, class: [\n 'button-element',\n this.loading ? 'button-element--loading' : '',\n this.getColorClass(),\n this.size === 'small' ? 'small' : '',\n this.disabled ? 'disabled' : ''\n ].join(' ') }), h(\"span\", null, buttonInnerHTML))));\n }\n};\nButton.style = buttonCss;\n\nconst subtitleCss = \":host{display:block;font-family:soleil, sans-serif;font-style:normal;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host(.subtitle__1){font-weight:400;font-size:1.125rem;line-height:1.4em;letter-spacing:0.15px}:host(.subtitle__2){font-weight:300;font-size:0.75rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}:host(.subtitle__3){font-weight:500;font-size:0.625rem;line-height:1.2em;letter-spacing:0.5px;text-transform:uppercase}\";\n\nconst Subtitle = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /** (optional) 1/2 defaults to 1 */\n this.subtitle = '1';\n /**\n * Color of the subtitle text\n */\n this.color = 'grey';\n }\n render() {\n return (h(Host, { class: `subtitle__${this.subtitle}`, style: {\n color: this.color !== undefined ? `var(--rs-color-${this.color})` : ''\n } }, h(\"slot\", null)));\n }\n};\nSubtitle.style = subtitleCss;\n\nexport { Button as rs_button, Subtitle as rs_subtitle };\n"],"names":["Button","constructor","hostRef","r","this","color","disabled","size","loading","getColorClass","getExpandClass","expand","render","href","rel","target","TagType","undefined","attrs","buttonInnerHTML","h","class","H","style","flexGrow","Object","assign","join","Subtitle","subtitle"],"sourceRoot":""}
|
package/build/330.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[330],{330:function(t,i,s){s.r(i),s.d(i,{rs_item_group:function(){return e}});var l=s(492);const e=class{constructor(t){(0,l.r)(this,t),this.alignItems="flex-start",this.gap=0,this.flexDirection="row",this.padding=!1,this.flex=!1}render(){return(0,l.h)(l.H,null,(0,l.h)("div",{class:"item-native",style:{display:this.flex?"flex":null,"flex-direction":this.flex?this.flexDirection:null,"align-items":this.flex?this.alignItems:null,"justify-content":this.flex?this.justifyContent:null,"align-content":this.flex?this.alignContent:null,"justify-items":this.flex?this.justifyItems:null,gap:this.gap>0?`${this.gap}px`:null,"flex-wrap":this.flexWrap}},(0,l.h)("slot",null)))}};e.style=":host{display:block}"}}]);
|
|
13
|
-
//# sourceMappingURL=330.index.js.map
|
package/build/330.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"330.index.js","mappings":";;;;;;;;;;;kLAEA,MAEMA,EAAc,MAClBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAMvBE,KAAKC,WAAa,aAKlBD,KAAKE,IAAM,EAIXF,KAAKG,cAAgB,MAIrBH,KAAKI,SAAU,EAIfJ,KAAKK,MAAO,EAEdC,SACE,OAAQ,IAAAC,GAAE,EAAAC,EAAM,MAAM,IAAAD,GAAE,MAAO,CAAEE,MAAO,cAAeC,MAAO,CAC1D,QAAWV,KAAKK,KAAO,OAAS,KAChC,iBAAkBL,KAAKK,KAAOL,KAAKG,cAAgB,KACnD,cAAeH,KAAKK,KAAOL,KAAKC,WAAa,KAC7C,kBAAmBD,KAAKK,KAAOL,KAAKW,eAAiB,KACrD,gBAAiBX,KAAKK,KAAOL,KAAKY,aAAe,KACjD,gBAAiBZ,KAAKK,KAAOL,KAAKa,aAAe,KACjD,IAAOb,KAAKE,IAAM,EAAI,GAAGF,KAAKE,QAAU,KACxC,YAAaF,KAAKc,YACf,IAAAP,GAAE,OAAQ,UAGrBX,EAAYc,MA1CW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-item-group.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsItemGroupCss = \":host{display:block}\";\n\nconst RsItemGroup = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Defines how we want to align the elements vertically inside the item.\n * Will only work if we set 'flex' to true\n * Use when flex direction is set to row\n */\n this.alignItems = 'flex-start';\n /**\n * gap CSS value\n * Note: This doesn't work on Safari\n */\n this.gap = 0;\n /**\n * Useful when using Flex display. Sets the flex-direction css style\n */\n this.flexDirection = 'row';\n /**\n * If true, we apply default padding of 8px inside the item.\n */\n this.padding = false;\n /**\n * If true, we display all the elements inside the item in a single row.\n */\n this.flex = false;\n }\n render() {\n return (h(Host, null, h(\"div\", { class: \"item-native\", style: {\n 'display': this.flex ? 'flex' : null,\n 'flex-direction': this.flex ? this.flexDirection : null,\n 'align-items': this.flex ? this.alignItems : null,\n 'justify-content': this.flex ? this.justifyContent : null,\n 'align-content': this.flex ? this.alignContent : null,\n 'justify-items': this.flex ? this.justifyItems : null,\n 'gap': this.gap > 0 ? `${this.gap}px` : null,\n 'flex-wrap': this.flexWrap,\n } }, h(\"slot\", null))));\n }\n};\nRsItemGroup.style = rsItemGroupCss;\n\nexport { RsItemGroup as rs_item_group };\n"],"names":["RsItemGroup","constructor","hostRef","r","this","alignItems","gap","flexDirection","padding","flex","render","h","H","class","style","justifyContent","alignContent","justifyItems","flexWrap"],"sourceRoot":""}
|
package/build/346.index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
3
|
-
* @rocketspark/domain-checker v0.0.19
|
|
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([[346],{1346:function(t,e,s){s.r(e),s.d(e,{rs_spinner:function(){return i}});var r=s(492);const i=class{constructor(t){(0,r.r)(this,t),this.size="default",this.color="primary",this.speed=1.5,this.dimensions={small:28,default:43,large:111},this.strokeWidth={small:3,default:4,large:4},this.activeStrokeWidth={small:3,default:4,large:4}}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())}static getProgressValue(){return 60}getStrokeDashOffset(){return(100-i.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:"progress-circle",cx:"50%",cy:"50%",r:this.getRadius(),style:{opacity:"1",stroke:`var(--rs-color-${this.color})`,"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)",animation:`spin ${this.speed}s linear infinite`}})))}};i.style=":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-circle{stroke:var(--rs-color-primary-700);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}"}}]);
|
|
13
|
-
//# sourceMappingURL=346.index.js.map
|
package/build/346.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"346.index.js","mappings":";;;;;;;;;;;gLAEA,MAEMA,EAAY,MAChBC,YAAYC,IACV,IAAAC,GAAiBC,KAAMF,GAIvBE,KAAKC,KAAO,UAIZD,KAAKE,MAAQ,UAIbF,KAAKG,MAAQ,IACbH,KAAKI,WAAa,CAChBC,MAAO,GACPC,QAAS,GACTC,MAAO,KAETP,KAAKQ,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A3EW","sources":["webpack://DomainChecker/./node_modules/@rocketspark/flint-ui/dist/esm/rs-spinner.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host } from './index-d4fae449.js';\n\nconst rsSpinnerCss = \":host{display:block}.progress-bar{stroke:var(--rs-color-grey-light)}.progress-circle{stroke:var(--rs-color-primary-700);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\";\n\nconst RsSpinner = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Size of the progress circle\n */\n this.size = 'default';\n /**\n * Sets the color of the spinner\n */\n this.color = 'primary';\n /**\n * Sets how fast the circle spins\n */\n this.speed = 1.5;\n this.dimensions = {\n small: 28,\n default: 43,\n large: 111\n };\n this.strokeWidth = {\n small: 3,\n default: 4,\n large: 4\n };\n this.activeStrokeWidth = {\n small: 3,\n default: 4,\n large: 4\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 static getProgressValue() {\n return 60;\n }\n getStrokeDashOffset() {\n return ((100 - RsSpinner.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: \"progress-circle\", cx: \"50%\", cy: \"50%\", r: this.getRadius(), style: {\n 'opacity': '1',\n 'stroke': `var(--rs-color-${this.color})`,\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 'animation': `spin ${this.speed}s linear infinite`,\n } }))));\n }\n};\nRsSpinner.style = rsSpinnerCss;\n\nexport { RsSpinner as rs_spinner };\n"],"names":["RsSpinner","constructor","hostRef","r","this","size","color","speed","dimensions","small","default","large","strokeWidth","activeStrokeWidth","getSize","getActiveStrokeWidth","getStrokeWidth","getRadius","getStrokeDashArray","Math","PI","getStrokeDashOffset","getProgressValue","render","h","H","class","style","width","height","viewBox","fill","xmlns","opacity","cx","cy"],"sourceRoot":""}
|