@rocketspark/domain-checker 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.github-test/FUNDING.yml +1 -0
  2. package/.github-test/dependabot.yml +10 -0
  3. package/.github-test/workflows/main.yml +28 -0
  4. package/.github-test/workflows/publish.yml +49 -0
  5. package/.github-test/workflows/pull_request.yml +24 -0
  6. package/.github-test/workflows/pull_request_dependabot.yml +48 -0
  7. package/.idea/domain-checker.iml +8 -0
  8. package/.idea/git_toolbox_prj.xml +15 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  10. package/.idea/modules.xml +8 -0
  11. package/.idea/vcs.xml +6 -0
  12. package/CODE_OF_CONDUCT.md +76 -0
  13. package/CONTRIBUTING.md +15 -0
  14. package/LICENSE +21 -0
  15. package/README.md +67 -0
  16. package/build/130.index.js +13 -0
  17. package/build/130.index.js.map +1 -0
  18. package/build/145.index.js +13 -0
  19. package/build/145.index.js.map +1 -0
  20. package/build/171.index.js +13 -0
  21. package/build/171.index.js.map +1 -0
  22. package/build/190.index.js +13 -0
  23. package/build/190.index.js.map +1 -0
  24. package/build/228.index.js +13 -0
  25. package/build/228.index.js.map +1 -0
  26. package/build/23.index.js +13 -0
  27. package/build/23.index.js.map +1 -0
  28. package/build/253.index.js +13 -0
  29. package/build/253.index.js.map +1 -0
  30. package/build/269.index.js +13 -0
  31. package/build/269.index.js.map +1 -0
  32. package/build/307.index.js +13 -0
  33. package/build/307.index.js.map +1 -0
  34. package/build/314.index.js +13 -0
  35. package/build/314.index.js.map +1 -0
  36. package/build/330.index.js +13 -0
  37. package/build/330.index.js.map +1 -0
  38. package/build/346.index.js +13 -0
  39. package/build/346.index.js.map +1 -0
  40. package/build/385.index.js +13 -0
  41. package/build/385.index.js.map +1 -0
  42. package/build/3cce2bffb56fb72f4f99.svg +521 -0
  43. package/build/431.index.js +13 -0
  44. package/build/431.index.js.map +1 -0
  45. package/build/447.index.js +13 -0
  46. package/build/447.index.js.map +1 -0
  47. package/build/482.index.js +13 -0
  48. package/build/482.index.js.map +1 -0
  49. package/build/525.index.js +13 -0
  50. package/build/525.index.js.map +1 -0
  51. package/build/536.index.js +13 -0
  52. package/build/536.index.js.map +1 -0
  53. package/build/548.index.js +13 -0
  54. package/build/548.index.js.map +1 -0
  55. package/build/565.index.js +13 -0
  56. package/build/565.index.js.map +1 -0
  57. package/build/577.index.js +13 -0
  58. package/build/577.index.js.map +1 -0
  59. package/build/5798190b27b26600fb18.svg +266 -0
  60. package/build/655.index.js +13 -0
  61. package/build/655.index.js.map +1 -0
  62. package/build/66.index.js +13 -0
  63. package/build/66.index.js.map +1 -0
  64. package/build/669.index.js +13 -0
  65. package/build/669.index.js.map +1 -0
  66. package/build/677.index.js +13 -0
  67. package/build/677.index.js.map +1 -0
  68. package/build/678.index.js +13 -0
  69. package/build/678.index.js.map +1 -0
  70. package/build/69.index.js +13 -0
  71. package/build/69.index.js.map +1 -0
  72. package/build/690.index.js +13 -0
  73. package/build/690.index.js.map +1 -0
  74. package/build/694.index.js +13 -0
  75. package/build/694.index.js.map +1 -0
  76. package/build/698.index.js +13 -0
  77. package/build/698.index.js.map +1 -0
  78. package/build/716.index.js +13 -0
  79. package/build/716.index.js.map +1 -0
  80. package/build/717.index.js +13 -0
  81. package/build/717.index.js.map +1 -0
  82. package/build/724.index.js +13 -0
  83. package/build/724.index.js.map +1 -0
  84. package/build/738.index.js +13 -0
  85. package/build/738.index.js.map +1 -0
  86. package/build/799.index.js +13 -0
  87. package/build/799.index.js.map +1 -0
  88. package/build/82.index.js +13 -0
  89. package/build/82.index.js.map +1 -0
  90. package/build/858.index.js +13 -0
  91. package/build/858.index.js.map +1 -0
  92. package/build/882.index.js +13 -0
  93. package/build/882.index.js.map +1 -0
  94. package/build/895.index.js +13 -0
  95. package/build/895.index.js.map +1 -0
  96. package/build/903.index.js +13 -0
  97. package/build/903.index.js.map +1 -0
  98. package/build/911.index.js +13 -0
  99. package/build/911.index.js.map +1 -0
  100. package/build/912.index.js +13 -0
  101. package/build/912.index.js.map +1 -0
  102. package/build/927.index.js +13 -0
  103. package/build/927.index.js.map +1 -0
  104. package/build/953.index.js +13 -0
  105. package/build/953.index.js.map +1 -0
  106. package/build/955.index.js +13 -0
  107. package/build/955.index.js.map +1 -0
  108. package/build/994.index.js +13 -0
  109. package/build/994.index.js.map +1 -0
  110. package/build/css/index.css +11 -0
  111. package/build/css/index.css.map +1 -0
  112. package/build/index.js +13 -0
  113. package/build/index.js.map +1 -0
  114. package/build/types/Components/DomainSearch.d.ts +20 -0
  115. package/build/types/Components/PopupContainer.d.ts +30 -0
  116. package/build/types/Components/SearchHeading.d.ts +8 -0
  117. package/build/types/Components/SearchResultCaption.d.ts +12 -0
  118. package/build/types/Components/SearchStatus.d.ts +13 -0
  119. package/build/types/Helpers/Fetch.d.ts +6 -0
  120. package/build/types/Helpers/defaults.d.ts +2 -0
  121. package/build/types/Helpers/templates.d.ts +13 -0
  122. package/build/types/Helpers/wrap.d.ts +1 -0
  123. package/build/types/index.d.ts +21 -0
  124. package/build/types/interfaces/class-names.d.ts +19 -0
  125. package/build/types/interfaces/options.d.ts +9 -0
  126. package/package.json +91 -0
  127. package/tsconfig.json +17 -0
  128. package/webpack.config.demo.js +64 -0
@@ -0,0 +1 @@
1
+ custom: https://hge.to/thanks
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ timezone: America/Montreal
9
+ open-pull-requests-limit: 5
10
+ versioning-strategy: increase
@@ -0,0 +1,28 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ paths-ignore:
6
+ - README.md
7
+ - .gitignore
8
+ - .github/**
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ node-version: [12.x]
16
+ os: [ubuntu-latest]
17
+ steps:
18
+ - uses: actions/checkout@v1
19
+ - name: Use Node.js ${{ matrix.node_version }}
20
+ uses: actions/setup-node@v1
21
+ with:
22
+ node-version: ${{ matrix.node_version }}
23
+ - name: npm install, build, and test
24
+ run: |
25
+ npm install
26
+ npm run test
27
+ env:
28
+ CI: true
@@ -0,0 +1,49 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths-ignore:
8
+ - README.md
9
+ - .gitignore
10
+ - .github/**
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v1
17
+ - uses: actions/setup-node@v1
18
+ with:
19
+ node-version: 12
20
+ - run: npm install
21
+ - run: npm run test
22
+
23
+ - name: Setup GIT
24
+ run: |
25
+ git reset --hard
26
+ git config --local --list
27
+ git checkout master
28
+ git config user.email "$GH_EMAIL"
29
+ git config user.name "Francisco Hodge"
30
+ env:
31
+ GH_EMAIL: ${{secrets.GH_EMAIL}}
32
+
33
+ - name: Bump version
34
+ run: |
35
+ git reset --hard
36
+ npm version patch
37
+ npm run build
38
+ git add . || true
39
+ git commit -m "Build update" || true
40
+ git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
41
+ env:
42
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
43
+
44
+ - name: npm publish
45
+ run: |
46
+ npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
47
+ npm run trypublish
48
+ env:
49
+ NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
@@ -0,0 +1,24 @@
1
+ name: Build PR (Standard)
2
+
3
+ on: pull_request
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ${{ matrix.os }}
8
+ if: ${{ github.actor != 'dependabot[bot]' }}
9
+ strategy:
10
+ matrix:
11
+ node-version: [12.x]
12
+ os: [ubuntu-latest]
13
+ steps:
14
+ - uses: actions/checkout@v1
15
+ - name: Use Node.js ${{ matrix.node_version }}
16
+ uses: actions/setup-node@v1
17
+ with:
18
+ node-version: ${{ matrix.node_version }}
19
+ - name: npm install, build, and test
20
+ run: |
21
+ npm install
22
+ npm run test
23
+ env:
24
+ CI: true
@@ -0,0 +1,48 @@
1
+ name: Build PR (Dependabot)
2
+
3
+ on: pull_request_target
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ${{ matrix.os }}
8
+ if: ${{ github.actor == 'dependabot[bot]' }}
9
+ strategy:
10
+ matrix:
11
+ node-version: [12.x]
12
+ os: [ubuntu-latest]
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ with:
16
+ ref: ${{ github.event.pull_request.head.sha }}
17
+ - name: Use Node.js ${{ matrix.node_version }}
18
+ uses: actions/setup-node@v1
19
+ with:
20
+ node-version: ${{ matrix.node_version }}
21
+ - name: npm install, build, and test
22
+ run: |
23
+ npm install
24
+ npm run test
25
+ env:
26
+ CI: true
27
+ - name: Merge PR
28
+ if: success()
29
+ uses: "actions/github-script@v2"
30
+ with:
31
+ github-token: "${{ secrets.GH_KEY }}"
32
+ script: |
33
+ const pullRequest = context.payload.pull_request
34
+ const repository = context.repo
35
+
36
+ await github.pulls.merge({
37
+ merge_method: "merge",
38
+ owner: repository.owner,
39
+ pull_number: pullRequest.number,
40
+ repo: repository.repo,
41
+ })
42
+ - name: Reject PR
43
+ if: failure()
44
+ uses: peter-evans/close-pull@v1
45
+ with:
46
+ pull-request-number: ${{github.event.number}}
47
+ comment: "Closing PR due to failing tests."
48
+ delete-branch: true
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxProjectSettings">
4
+ <option name="commitMessageIssueKeyValidationOverride">
5
+ <BoolValueOverride>
6
+ <option name="enabled" value="true" />
7
+ </BoolValueOverride>
8
+ </option>
9
+ <option name="commitMessageValidationEnabledOverride">
10
+ <BoolValueOverride>
11
+ <option name="enabled" value="true" />
12
+ </BoolValueOverride>
13
+ </option>
14
+ </component>
15
+ </project>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/domain-checker.iml" filepath="$PROJECT_DIR$/.idea/domain-checker.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,76 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at opensource@hodgef.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
@@ -0,0 +1,15 @@
1
+ # Contributing
2
+
3
+ When contributing to this repository, please first discuss the change you wish to make via issue,
4
+ email, or any other method with the owners of this repository before working on a change.
5
+
6
+ Please note we have a code of conduct, please follow it in all your interactions with the project.
7
+
8
+ ## Pull Request Guidelines
9
+
10
+ 1. Please ensure your proposal will not radically change current functionality or bring along breaking changes.
11
+ 2. PRs only consisting of typo fixes (or other automated contributions), will not be accepted.
12
+ 3. Do not add any dependencies to the project.
13
+ 4. Document your changes thoroughly.
14
+ 5. Ensure coverage is complete (`npm run coverage` should show 100% coverage) and that none of the tests fail.
15
+ 6. Be reactive to any comments, reviews or change requests entered in your pull request.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Francisco Hodge
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ <div align="center">
2
+ <img align="center" width="230" src="https://i.imgur.com/iHgtvmg.png" />
3
+ <h2>Typescript Library Boilerplate Basic</h2>
4
+ <blockquote>Minimal Library Starter Kit for your Typescript projects</blockquote>
5
+
6
+ <a href="https://www.npmjs.com/package/@hodgef/ts-library-boilerplate-basic"><img src="https://badgen.net/npm/v/@hodgef/ts-library-boilerplate-basic?color=blue" alt="npm version"></a> <a href="https://github.com/hodgef/ts-library-boilerplate"><img src="https://img.shields.io/github/last-commit/hodgef/ts-library-boilerplate" alt="latest commit"></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"><img alt="Build Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Build/badge.svg?color=green" /></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"> <img alt="Publish Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Publish/badge.svg?color=green" /></a>
7
+
8
+ <strong>For a plain Javascript alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).</strong>
9
+
10
+ </div>
11
+
12
+ ## ⭐️ Features
13
+
14
+ - Webpack 5
15
+ - Babel 7
16
+ - Hot reloading (`npm start`)
17
+ - Automatic Types file generation (index.d.ts)
18
+ - UMD exports, so your library works everywhere.
19
+ - Jest unit testing
20
+ - Customizable file headers for your build [(Example 1)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/index.js) [(Example2)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/css/index.css)
21
+ - Daily [dependabot](https://dependabot.com) dependency updates
22
+
23
+ ## 📦 Getting Started
24
+
25
+ ```
26
+ git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
27
+ npm install
28
+ ```
29
+
30
+ ## 💎 Customization
31
+
32
+ > Before shipping, make sure to:
33
+
34
+ 1. Edit `LICENSE` file
35
+ 2. Edit `package.json` information (These will be used to generate the headers for your built files)
36
+ 3. Edit `library: "MyLibrary"` with your library's export name in `./webpack.config.js`
37
+
38
+ ## 🚀 Deployment
39
+
40
+ 1. `npm publish`
41
+ 2. Your users can include your library as usual
42
+
43
+ ### npm
44
+
45
+ ```
46
+ import MyLibrary from 'my-library';
47
+ const libraryInstance = new MyLibrary();
48
+ ...
49
+ ```
50
+
51
+ ### self-host/cdn
52
+
53
+ ```
54
+ <script src="build/index.js"></script>
55
+
56
+ const MyLibrary = window.MyLibrary.default;
57
+ const libraryInstance = new MyLibrary();
58
+ ...
59
+ ```
60
+
61
+ ## ✅ Libraries built with this boilerplate
62
+
63
+ > Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/ts-library-boilerplate-basic/pulls)!
64
+
65
+ - [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard
66
+ - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard
67
+ - [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Keyboard layouts for simple-keyboard
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"145.index.js","mappings":"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","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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[190],{3190:function(r,e,n){n.r(e),n.d(e,{rs_grid:function(){return t}});var s=n(492);const t=class{constructor(r){(0,s.r)(this,r)}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",null))}};t.style=":host{display:block;flex:1}"}}]);
13
+ //# sourceMappingURL=190.index.js.map
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
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":""}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * @rocketspark/domain-checker v0.0.01
4
+ * https://github.com/rocketspark/domain-checker.git
5
+ *
6
+ * Copyright (c) Lee Reichardt and project contributors.
7
+ *
8
+ * This source code is licensed under the no license license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[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
@@ -0,0 +1 @@
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":""}