bitwrench 1.2.16 → 2.0.7

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 (130) hide show
  1. package/README.md +160 -158
  2. package/bin/bitwrench.js +3 -0
  3. package/dist/bitwrench-code-edit.cjs.js +639 -0
  4. package/dist/bitwrench-code-edit.es5.js +875 -0
  5. package/dist/bitwrench-code-edit.es5.min.js +15 -0
  6. package/dist/bitwrench-code-edit.esm.js +628 -0
  7. package/dist/bitwrench-code-edit.esm.min.js +15 -0
  8. package/dist/bitwrench-code-edit.umd.js +645 -0
  9. package/dist/bitwrench-code-edit.umd.min.js +15 -0
  10. package/dist/bitwrench.cjs.js +6983 -0
  11. package/dist/bitwrench.cjs.min.js +62 -0
  12. package/dist/bitwrench.css +5100 -0
  13. package/dist/bitwrench.es5.js +8446 -0
  14. package/dist/bitwrench.es5.min.js +31 -0
  15. package/dist/bitwrench.esm.js +6981 -0
  16. package/dist/bitwrench.esm.min.js +62 -0
  17. package/dist/bitwrench.umd.js +6989 -0
  18. package/dist/bitwrench.umd.min.js +62 -0
  19. package/dist/builds.json +127 -0
  20. package/dist/sri.json +18 -0
  21. package/package.json +86 -24
  22. package/readme.html +288 -0
  23. package/src/bitwrench-code-edit.js +627 -0
  24. package/src/bitwrench-color-utils.js +311 -0
  25. package/src/bitwrench-component-base.js +736 -0
  26. package/src/bitwrench-components-inline.js +374 -0
  27. package/src/bitwrench-components-v2.js +1879 -0
  28. package/src/bitwrench-components.js +610 -0
  29. package/src/bitwrench-styles.js +3240 -0
  30. package/src/bitwrench.js +3367 -0
  31. package/src/cli/convert.js +205 -0
  32. package/src/cli/index.js +122 -0
  33. package/src/cli/inject.js +55 -0
  34. package/src/cli/layout-default.js +142 -0
  35. package/src/generate-css.js +381 -0
  36. package/src/vendor/quikdown.js +654 -0
  37. package/src/version.js +16 -0
  38. package/.eslintrc.json +0 -27
  39. package/.github/workflows/codeql-analysis.yml +0 -72
  40. package/.travis.yml +0 -34
  41. package/bitwrench.css +0 -92
  42. package/bitwrench.js +0 -3348
  43. package/bitwrench.js_sri.txt +0 -1
  44. package/bitwrench.min.js +0 -1
  45. package/bitwrench.min.js_sri.txt +0 -1
  46. package/bitwrench_ESM.js +0 -3207
  47. package/bitwrench_ESM.js_sri.txt +0 -1
  48. package/bitwrench_ESM.min.js +0 -1
  49. package/bitwrench_ESM.min.js_sri.txt +0 -1
  50. package/dev/bitwrench-todo.md +0 -215
  51. package/dev/css-arrows.md +0 -23
  52. package/dev/docStringDev.js +0 -124
  53. package/dev/docStringParseDev.js +0 -171
  54. package/dev/example11-load-mjs-page.html +0 -17
  55. package/dev/figures.html +0 -37
  56. package/dev/html_gen.js +0 -349
  57. package/dev/htmld.md +0 -250
  58. package/dev/htmldev.html +0 -45
  59. package/dev/index-old.html +0 -87
  60. package/dev/misc-notes.md +0 -21
  61. package/dev/norm.css +0 -30
  62. package/dev/notes.md +0 -2
  63. package/dev/pageData.mjs +0 -69
  64. package/dev/sizes.html +0 -49
  65. package/dev/universal-js-module.js +0 -37
  66. package/examples/example1.html +0 -78
  67. package/examples/example10.html +0 -84
  68. package/examples/example11.html +0 -17
  69. package/examples/example12.html +0 -18
  70. package/examples/example2.html +0 -44
  71. package/examples/example3.html +0 -50
  72. package/examples/example4.html +0 -22
  73. package/examples/example5.html +0 -82
  74. package/examples/example6.html +0 -128
  75. package/examples/example7.html +0 -91
  76. package/examples/example8.html +0 -27
  77. package/examples/example9.html +0 -102
  78. package/examples/examplePageData12.mjs +0 -73
  79. package/examples/pageData.mjs +0 -69
  80. package/examples/pico.min.css +0 -5
  81. package/icon/bitwrench-dark-tall.png +0 -0
  82. package/icon/bitwrench-dark.png +0 -0
  83. package/icon/bitwrench-icon-lt-grey.png +0 -0
  84. package/icon/bitwrench-icon.vsd +0 -0
  85. package/icon/bitwrench-logo-dark.png +0 -0
  86. package/icon/bitwrench-logo-full.png +0 -0
  87. package/icon/bitwrench-logo-green.png +0 -0
  88. package/icon/bitwrench-logo-grey.png +0 -0
  89. package/icon/bitwrench-logo-white.png +0 -0
  90. package/icon/bitwrench-logos-colors.png +0 -0
  91. package/icon/bitwrench-thick-logo.png +0 -0
  92. package/icon/bitwrench-thick-teal/android-chrome-192x192.png +0 -0
  93. package/icon/bitwrench-thick-teal/android-chrome-512x512.png +0 -0
  94. package/icon/bitwrench-thick-teal/apple-touch-icon.png +0 -0
  95. package/icon/bitwrench-thick-teal/browserconfig.xml +0 -9
  96. package/icon/bitwrench-thick-teal/favicon-16x16.png +0 -0
  97. package/icon/bitwrench-thick-teal/favicon-32x32.png +0 -0
  98. package/icon/bitwrench-thick-teal/favicon.ico +0 -0
  99. package/icon/bitwrench-thick-teal/mstile-144x144.png +0 -0
  100. package/icon/bitwrench-thick-teal/mstile-150x150.png +0 -0
  101. package/icon/bitwrench-thick-teal/mstile-310x150.png +0 -0
  102. package/icon/bitwrench-thick-teal/mstile-310x310.png +0 -0
  103. package/icon/bitwrench-thick-teal/mstile-70x70.png +0 -0
  104. package/icon/bitwrench-thick-teal/site.webmanifest +0 -19
  105. package/icon/bitwrench-thick-teal.ico +0 -0
  106. package/icon/bitwrench-thick-teal.svg +0 -44
  107. package/icon/bitwrench-thick-teal.zip +0 -0
  108. package/icon/favicon-test.html +0 -20
  109. package/icon/logos-test.PNG +0 -0
  110. package/images/bitwrench-512x512.png +0 -0
  111. package/images/bitwrench-logo-med.png +0 -0
  112. package/images/bitwrench-thick-logo.png +0 -0
  113. package/images/bitwrench-thick-logo.svg +0 -64
  114. package/images/bitwrench-thick-teal.ico +0 -0
  115. package/images/favicon.ico +0 -0
  116. package/index.html +0 -282
  117. package/instr_tmp/bitwrench.js +0 -1350
  118. package/karma.conf.js +0 -140
  119. package/makefile +0 -21
  120. package/quick-docs.html +0 -206
  121. package/test/bitwrench_test.js +0 -1255
  122. package/test/karma-test.js +0 -1081
  123. package/tools/bw_deprecatedNames.js +0 -19
  124. package/tools/bwconsole.js +0 -20
  125. package/tools/createSimpleHTMLPage.js +0 -41
  126. package/tools/emitreadme.sh +0 -4
  127. package/tools/export-bw-default-css.js +0 -41
  128. package/tools/umd2ModuleHack.js +0 -32
  129. package/tools/update-bw-package.js +0 -36
  130. package/tools/updatereadme.js +0 -34
package/.eslintrc.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "node": true,
5
- "amd" : true
6
- },
7
- "extends": "eslint:recommended",
8
- "rules": {
9
- //"indent": [
10
- // "error",
11
- // "tab"
12
- //],
13
- "linebreak-style": [
14
- "error",
15
- "unix"
16
- ],
17
- "quotes": [
18
- "error",
19
- "double"
20
- ],
21
- "semi": [
22
- "error",
23
- "always"
24
- ],
25
- "allowEmptyCatch": true
26
- }
27
- }
@@ -1,72 +0,0 @@
1
- # For most projects, this workflow file will not need changing; you simply need
2
- # to commit it to your repository.
3
- #
4
- # You may wish to alter this file to override the set of languages analyzed,
5
- # or to provide custom queries or build logic.
6
- #
7
- # ******** NOTE ********
8
- # We have attempted to detect the languages in your repository. Please check
9
- # the `language` matrix defined below to confirm you have the correct set of
10
- # supported CodeQL languages.
11
- #
12
- name: "CodeQL"
13
-
14
- on:
15
- push:
16
- branches: [ master ]
17
- pull_request:
18
- # The branches below must be a subset of the branches above
19
- branches: [ master ]
20
- schedule:
21
- - cron: '40 15 * * 4'
22
-
23
- jobs:
24
- analyze:
25
- name: Analyze
26
- runs-on: ubuntu-latest
27
- permissions:
28
- actions: read
29
- contents: read
30
- security-events: write
31
-
32
- strategy:
33
- fail-fast: false
34
- matrix:
35
- language: [ 'javascript' ]
36
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
-
39
- steps:
40
- - name: Checkout repository
41
- uses: actions/checkout@v3
42
-
43
- # Initializes the CodeQL tools for scanning.
44
- - name: Initialize CodeQL
45
- uses: github/codeql-action/init@v2
46
- with:
47
- languages: ${{ matrix.language }}
48
- # If you wish to specify custom queries, you can do so here or in a config file.
49
- # By default, queries listed here will override any specified in a config file.
50
- # Prefix the list here with "+" to use these queries and those in the config file.
51
-
52
- # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
- # queries: security-extended,security-and-quality
54
-
55
-
56
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
- # If this step fails, then you should remove it and run the build manually (see below)
58
- - name: Autobuild
59
- uses: github/codeql-action/autobuild@v2
60
-
61
- # ℹ️ Command-line programs to run using the OS shell.
62
- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
-
64
- # If the Autobuild fails above, remove it and uncomment the following three lines.
65
- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66
-
67
- # - run: |
68
- # echo "Run, Build Application using script"
69
- # ./location_of_script_within_repo/buildscript.sh
70
-
71
- - name: Perform CodeQL Analysis
72
- uses: github/codeql-action/analyze@v2
package/.travis.yml DELETED
@@ -1,34 +0,0 @@
1
- #travis configuration for coverage testing of bitwrench
2
- # M A Chatterjee 2018-07-05
3
-
4
- language: node_js
5
- node_js:
6
- - "14"
7
- #dist: trusty # needs Ubuntu Trusty
8
- # Note: if you switch to sudo: false, you'll need to launch Chrome with --no-sandbox.
9
- # See https://github.com/travis-ci/travis-ci/issues/8836
10
- sudo: required
11
- addons:
12
- chrome: stable # have Travis install Chrome stable.
13
- cache: npm
14
- # yarn: true
15
- # directories:
16
- # - node_modules
17
- #install:
18
- # - npm
19
- script:
20
- - npm run test
21
-
22
-
23
- #language: node_js
24
- #node_js:
25
- # - "4.0.0"
26
- #
27
- #before_install:
28
- # - npm install coveralls
29
- #
30
- #after_success: npm run coveralls
31
- #
32
- #branches:
33
- # only:
34
- # - master
package/bitwrench.css DELETED
@@ -1,92 +0,0 @@
1
- /*"""
2
- bitwrench.css version 1.2.16
3
- bitwrench.js exported css classes (auto generated)
4
- This file contains the same css classes (styles used by bitwrench.js) and can be used stand-alone.
5
-
6
- It is not required to load this file when using bitwrench.js since its built in to the bitwrench.js library and autoloaded.
7
-
8
- This file can be generated at runtime via bw.CSSSimpleStyles(false,{"basics":"load"}) and saving the data. Also note that this version includes global css (* {}) rules which aren't required but useful for quick-n-dirty development
9
-
10
- """*/
11
- *{box-sizing:border-box;}
12
- .bw-def-page-setup{height:100%;width:90%;margin:0 auto;padding-left:2%;padding-right:2%;left:0;top:1%;box-sizing:border-box;}
13
- .bw-font-serif{font-family:Times New Roman, Times, serif;}
14
- .bw-font-sans-serif{font-family:Arial, Helvetica, sans-serif;}
15
-
16
- .bw-left{text-align:left;}
17
- .bw-right{text-align:right;}
18
- .bw-center{text-align:center;margin:0 auto;}
19
- .bw-justify{text-align:justify;}
20
- .bw-code{font-family:monospace;white-space:pre-wrap;}
21
- .bw-pad1{padding-left:1%;padding-right:1%;}
22
-
23
- .bw-table{border-collapse:collapse;border-spacing:0;border:1px solid #444;}
24
- .bw-table th{background-color:#bbb;padding:4px;border:1px solid #444;}
25
- .bw-table td{padding:4px;border:1px solid #444;}
26
- .bw-table-stripe tr:nth-child(even){background-color:#f0f0f0;}
27
- .bw-table tr td:first-child{font-weight:700;}
28
- .bw-table-border-round{border-radius:2px;}
29
- .bw-table-sort-upa::after{content:"\2191";}
30
- .bw-table-sort-dna::after{content:"\2193";}
31
- .bw-table-sort-xxa::after{content:"\00a0";}
32
-
33
- .bw-tab-item-list{margin:0;padding-inline-start:0;}
34
- .bw-tab-item{display:inline;padding-top:0.75em;padding-left:0.75em;padding-right:0.75em;border-top-right-radius:7px;border-top-left-radius:7px;}
35
- .bw-tab-active{font-weight:700;}
36
- .bw-tab:hover{cursor:pointer;font-weight:700;}
37
- .bw-tab-content-list{margin:0;padding-top:0.0em;}
38
- .bw-tab-content{display:none;border-radius:0;}
39
- .bw-tab-content, .bw-tab-active{background-color:#ddd;padding:0.5em;}
40
-
41
- .bw-accordian-container > div{padding:0.5em;}
42
-
43
- .bw-container{margin:0 auto;}
44
- .bw-row{width:100%;display:block;}
45
- .bw-row [class^="bw-col"]{float:left;}
46
- .bw-row::after{content:"";display:table;clear:both;}
47
- .bw-box-1{padding-top:10px;padding-bottom:10px;border-radius:8px;}
48
-
49
- .bw-sign{position:inherit;display:table;height:100%;width:100%;}
50
- .bw-sign > div{display:table-cell;vertical-align:middle;}
51
- .bw-sign > div > div{text-align:center;}
52
-
53
- .bw-hide{display:none;}
54
- .bw-show{display:block;}
55
- .bw-h1{font-size:2.312rem;}
56
- .bw-h2{font-size:1.965rem;}
57
- .bw-h3{font-size:1.67rem;}
58
- .bw-h4{font-size:1.419rem;}
59
- .bw-h5{font-size:1.206rem;}
60
- .bw-h6{font-size:1.025rem;}
61
-
62
- .bw-col-1{width:8.333%;}
63
- .bw-col-2{width:16.666%;}
64
- .bw-col-3{width:25%;}
65
- .bw-col-4{width:33.333%;}
66
- .bw-col-5{width:41.666%;}
67
- .bw-col-6{width:50%;}
68
- .bw-col-7{width:58.333%;}
69
- .bw-col-8{width:66.666%;}
70
- .bw-col-9{width:75%;}
71
- .bw-col-10{width:83.333%;}
72
- .bw-col-11{width:91.666%;}
73
- .bw-col-12{width:100%;}
74
-
75
- .bw-color-color {color:#000}
76
- .bw-color-background-color {background-color:#ddd}
77
- .bw-color-active {active:#222}
78
- .bw-thm-light
79
- {
80
- color: #020202 !important;;
81
- background-color: #e2e2e2 !important;;
82
- }
83
- .bw-thm-dark
84
- {
85
- color: #e2e2e2 !important;;
86
- background-color: #020202 !important;;
87
- }
88
- @media only screen and (min-width: 540px) {.bw-def-page-setup {width: 96%;}}
89
- @media only screen and (min-width: 720px) {.bw-def-page-setup {width: 92%;}}
90
- @media only screen and (min-width: 960px) {.bw-def-page-setup {width: 88%;}}
91
- @media only screen and (min-width: 1100px){.bw-def-page-setup {width: 86%;}}
92
- @media only screen and (min-width: 1600px){.bw-def-page-setup {width: 84%;}}