generator-white-label 3.0.0 → 5.0.0

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 (334) hide show
  1. package/README.md +140 -81
  2. package/app/404.hbs +20 -0
  3. package/app/README.md +19 -0
  4. package/app/assets/data/view/toolkit/colors.json +17 -0
  5. package/app/assets/data/view/toolkit/components.json +39 -0
  6. package/app/assets/data/view/toolkit/elements.json +119 -0
  7. package/app/assets/data/view/toolkit/grids.json +17 -0
  8. package/app/assets/data/view/toolkit/icons.json +17 -0
  9. package/app/assets/data/view/toolkit/index.json +17 -0
  10. package/app/assets/data/view/toolkit/type.json +17 -0
  11. package/app/assets/font/opensans/stylesheet.css +20 -60
  12. package/app/assets/image/demo/fallback.avif +0 -0
  13. package/app/assets/image/demo/fallback.jpg +0 -0
  14. package/app/assets/image/demo/fallback.webp +0 -0
  15. package/app/assets/image/demo/large.avif +0 -0
  16. package/app/assets/image/demo/large.webp +0 -0
  17. package/app/assets/image/demo/small.avif +0 -0
  18. package/app/assets/image/demo/small.webp +0 -0
  19. package/app/assets/markup/element/a.hbs +29 -0
  20. package/app/assets/markup/element/button.hbs +30 -0
  21. package/app/assets/markup/element/div.hbs +11 -0
  22. package/app/assets/markup/element/head.hbs +78 -0
  23. package/app/assets/markup/element/iframe.hbs +20 -0
  24. package/app/assets/markup/element/img.hbs +30 -0
  25. package/app/assets/markup/element/input.hbs +43 -0
  26. package/app/assets/markup/element/label.hbs +14 -0
  27. package/app/assets/markup/element/legend.hbs +5 -0
  28. package/app/assets/markup/element/meta.hbs +11 -0
  29. package/app/assets/markup/element/nav.hbs +13 -0
  30. package/app/assets/markup/element/p.hbs +8 -0
  31. package/app/assets/markup/element/picture.hbs +58 -0
  32. package/app/assets/markup/element/script.hbs +3 -0
  33. package/app/assets/markup/element/select.hbs +35 -0
  34. package/app/assets/markup/element/span.hbs +8 -0
  35. package/app/assets/markup/element/svg.hbs +11 -0
  36. package/app/assets/markup/element/table.hbs +50 -0
  37. package/app/assets/markup/element/textarea.hbs +24 -0
  38. package/app/assets/markup/element/ul.hbs +13 -0
  39. package/app/assets/markup/modal/modal-example-1.handlebars +8 -0
  40. package/app/assets/markup/toolkit/accessibility-skip-to-element-1.handlebars +1 -0
  41. package/app/assets/markup/toolkit/accessibility-speaker-1.handlebars +1 -0
  42. package/app/assets/markup/toolkit/anchor-1.handlebars +1 -0
  43. package/app/assets/markup/toolkit/button-1.handlebars +1 -0
  44. package/app/assets/markup/toolkit/footer-1.handlebars +3 -0
  45. package/app/assets/markup/toolkit/header-1.handlebars +1 -0
  46. package/app/assets/markup/toolkit/heading-1.handlebars +1 -0
  47. package/app/assets/markup/toolkit/heading-2.handlebars +1 -0
  48. package/app/assets/markup/toolkit/heading-3.handlebars +1 -0
  49. package/app/assets/markup/toolkit/heading-4.handlebars +1 -0
  50. package/app/assets/markup/toolkit/image-1.handlebars +1 -0
  51. package/app/assets/markup/toolkit/input-checkbox-1.handlebars +1 -0
  52. package/app/assets/markup/toolkit/input-error-1.handlebars +8 -0
  53. package/app/assets/markup/toolkit/input-radio-1.handlebars +1 -0
  54. package/app/assets/markup/toolkit/input-text-1.handlebars +1 -0
  55. package/app/assets/markup/toolkit/label-1.handlebars +1 -0
  56. package/app/assets/markup/toolkit/legend-1.handlebars +1 -0
  57. package/app/assets/markup/toolkit/list-1.handlebars +1 -0
  58. package/app/assets/markup/toolkit/modal-1.handlebars +4 -0
  59. package/app/assets/markup/toolkit/nav-1.handlebars +1 -0
  60. package/app/assets/markup/toolkit/picture-1.handlebars +1 -0
  61. package/app/assets/markup/toolkit/select-1.handlebars +1 -0
  62. package/app/assets/markup/toolkit/table-1.handlebars +1 -0
  63. package/app/assets/markup/toolkit/text-1.handlebars +1 -0
  64. package/app/assets/markup/toolkit/textarea-1.handlebars +1 -0
  65. package/app/assets/markup/toolkit/youtube-player-1.handlebars +1 -0
  66. package/app/assets/script/api/facebook.ts +41 -0
  67. package/app/assets/script/api/youtube.ts +22 -0
  68. package/app/assets/script/index.ts +2 -0
  69. package/app/assets/script/mediator/global.ts +4 -0
  70. package/app/assets/script/model/singletons/countries.ts +5 -0
  71. package/app/assets/script/model/singletons/global.ts +5 -0
  72. package/app/assets/script/model/singletons/states.ts +5 -0
  73. package/app/assets/script/model/user.ts +4 -0
  74. package/app/assets/script/toolkit.ts +11 -0
  75. package/app/assets/script/types.d.ts +16 -0
  76. package/app/assets/script/utility/ajax.ts +15 -0
  77. package/app/assets/script/utility/form.ts +119 -0
  78. package/app/assets/script/utility/{regex.js → regex.ts} +15 -6
  79. package/app/assets/script/utility/share.ts +77 -0
  80. package/app/assets/script/utility/string.ts +148 -0
  81. package/app/assets/script/view/default.tsx +14 -0
  82. package/app/assets/script/view/toolkit/youtube-player-1.ts +31 -0
  83. package/app/assets/style/base/_toolkit.scss +31 -15
  84. package/app/assets/style/base/components/_modal-1.scss +80 -0
  85. package/app/assets/style/base/components/_sticky-1.scss +19 -0
  86. package/app/assets/style/base/components/_tabpanel-1.scss +115 -0
  87. package/app/assets/style/base/components/_tabpanel-2.scss +64 -0
  88. package/app/assets/style/base/components/_tabpanel-base-1.scss +13 -0
  89. package/app/assets/style/base/components/_youtube-player-1.scss +16 -0
  90. package/app/assets/style/base/elements/_anchors.scss +12 -0
  91. package/app/assets/style/base/elements/_buttons.scss +15 -0
  92. package/app/assets/style/base/elements/_fieldsets.scss +9 -0
  93. package/app/assets/style/base/elements/_images.scss +6 -2
  94. package/app/assets/style/base/elements/_inputs.scss +70 -0
  95. package/app/assets/style/base/elements/_labels.scss +8 -0
  96. package/app/assets/style/base/elements/_landmarks.scss +3 -0
  97. package/app/assets/style/base/elements/_legends.scss +11 -0
  98. package/app/assets/style/base/elements/_lists.scss +8 -1
  99. package/app/assets/style/base/elements/_tables.scss +32 -1
  100. package/app/assets/style/base/layouts/_staggered-1.scss +29 -0
  101. package/app/assets/style/base/type/_fonts.scss +39 -1
  102. package/app/assets/style/base/type/_headings.scss +29 -0
  103. package/app/assets/style/base/type/_text.scss +2 -0
  104. package/app/assets/style/base/utilities/_accessibility.scss +5 -2
  105. package/app/assets/style/base/utilities/_functions.scss +62 -9
  106. package/app/assets/style/global.scss +108 -10
  107. package/app/assets/style/print.scss +2 -3
  108. package/app/assets/style/toolkit.scss +387 -0
  109. package/app/index.hbs +21 -0
  110. package/app/package.json +1 -0
  111. package/app/toolkit/colors.hbs +102 -0
  112. package/app/toolkit/components.hbs +261 -0
  113. package/app/toolkit/elements.hbs +497 -0
  114. package/app/toolkit/grids.hbs +413 -0
  115. package/app/toolkit/icons.hbs +87 -0
  116. package/app/toolkit/index.hbs +144 -0
  117. package/app/toolkit/type.hbs +120 -0
  118. package/dist/app/assets/data/coutries.json +992 -0
  119. package/dist/app/assets/data/states.json +204 -0
  120. package/dist/app/assets/script/api/facebook.d.ts +8 -0
  121. package/dist/app/assets/script/api/facebook.js +42 -0
  122. package/dist/app/assets/script/api/facebook.js.map +1 -0
  123. package/dist/app/assets/script/api/youtube.d.ts +8 -0
  124. package/dist/app/assets/script/api/youtube.js +22 -0
  125. package/dist/app/assets/script/api/youtube.js.map +1 -0
  126. package/dist/app/assets/script/index.d.ts +2 -0
  127. package/dist/app/assets/script/index.js +2 -0
  128. package/dist/app/assets/script/index.js.map +1 -0
  129. package/dist/app/assets/script/mediator/global.d.ts +4 -0
  130. package/dist/app/assets/script/mediator/global.js +4 -0
  131. package/dist/app/assets/script/mediator/global.js.map +1 -0
  132. package/dist/app/assets/script/model/singletons/countries.d.ts +20 -0
  133. package/dist/app/assets/script/model/singletons/countries.js +5 -0
  134. package/dist/app/assets/script/model/singletons/countries.js.map +1 -0
  135. package/dist/app/assets/script/model/singletons/global.d.ts +20 -0
  136. package/dist/app/assets/script/model/singletons/global.js +5 -0
  137. package/dist/app/assets/script/model/singletons/global.js.map +1 -0
  138. package/dist/app/assets/script/model/singletons/states.d.ts +20 -0
  139. package/dist/app/assets/script/model/singletons/states.js +5 -0
  140. package/dist/app/assets/script/model/singletons/states.js.map +1 -0
  141. package/dist/app/assets/script/model/user.d.ts +4 -0
  142. package/dist/app/assets/script/model/user.js +6 -0
  143. package/dist/app/assets/script/model/user.js.map +1 -0
  144. package/dist/app/assets/script/toolkit.d.ts +1 -0
  145. package/dist/app/assets/script/toolkit.js +7 -0
  146. package/dist/app/assets/script/toolkit.js.map +1 -0
  147. package/dist/app/assets/script/utility/ajax.d.ts +8 -0
  148. package/dist/app/assets/script/utility/ajax.js +17 -0
  149. package/dist/app/assets/script/utility/ajax.js.map +1 -0
  150. package/dist/app/assets/script/utility/form.d.ts +64 -0
  151. package/dist/app/assets/script/utility/form.js +111 -0
  152. package/dist/app/assets/script/utility/form.js.map +1 -0
  153. package/dist/app/assets/script/utility/regex.d.ts +14 -0
  154. package/dist/app/assets/script/utility/regex.js +27 -0
  155. package/dist/app/assets/script/utility/regex.js.map +1 -0
  156. package/dist/app/assets/script/utility/share.d.ts +68 -0
  157. package/dist/app/assets/script/utility/share.js +81 -0
  158. package/dist/app/assets/script/utility/share.js.map +1 -0
  159. package/dist/app/assets/script/utility/string.d.ts +64 -0
  160. package/dist/app/assets/script/utility/string.js +135 -0
  161. package/dist/app/assets/script/utility/string.js.map +1 -0
  162. package/dist/app/assets/script/view/default.d.ts +11 -0
  163. package/dist/app/assets/script/view/default.js +15 -0
  164. package/dist/app/assets/script/view/default.js.map +1 -0
  165. package/dist/app/assets/script/view/toolkit/youtube-player-1.d.ts +23 -0
  166. package/dist/app/assets/script/view/toolkit/youtube-player-1.js +32 -0
  167. package/dist/app/assets/script/view/toolkit/youtube-player-1.js.map +1 -0
  168. package/dist/generators/app/index.d.ts +18 -0
  169. package/dist/generators/app/index.js +59 -0
  170. package/dist/generators/app/index.js.map +1 -0
  171. package/dist/scripts/build.d.ts +22 -0
  172. package/dist/scripts/build.js +158 -0
  173. package/dist/scripts/build.js.map +1 -0
  174. package/generators/app/index.js +2 -43
  175. package/generators/app/index.ts +61 -0
  176. package/package.json +78 -109
  177. package/scripts/build.ts +175 -0
  178. package/tsconfig.site.json +26 -0
  179. package/.babelrc +0 -7
  180. package/.editorconfig +0 -13
  181. package/.eslintrc +0 -64
  182. package/.htmllintrc +0 -6
  183. package/.npmignore +0 -12
  184. package/.sass-lint.yml +0 -16
  185. package/.travis.yml +0 -18
  186. package/app/assets/font/opensans/generator_config.txt +0 -5
  187. package/app/assets/font/opensans/opensans-bold-webfont.eot +0 -0
  188. package/app/assets/font/opensans/opensans-bold-webfont.svg +0 -1824
  189. package/app/assets/font/opensans/opensans-bold-webfont.ttf +0 -0
  190. package/app/assets/font/opensans/opensans-bold-webfont.woff +0 -0
  191. package/app/assets/font/opensans/opensans-bolditalic-webfont.eot +0 -0
  192. package/app/assets/font/opensans/opensans-bolditalic-webfont.svg +0 -1824
  193. package/app/assets/font/opensans/opensans-bolditalic-webfont.ttf +0 -0
  194. package/app/assets/font/opensans/opensans-bolditalic-webfont.woff +0 -0
  195. package/app/assets/font/opensans/opensans-extrabold-webfont.eot +0 -0
  196. package/app/assets/font/opensans/opensans-extrabold-webfont.svg +0 -1824
  197. package/app/assets/font/opensans/opensans-extrabold-webfont.ttf +0 -0
  198. package/app/assets/font/opensans/opensans-extrabold-webfont.woff +0 -0
  199. package/app/assets/font/opensans/opensans-extrabolditalic-webfont.eot +0 -0
  200. package/app/assets/font/opensans/opensans-extrabolditalic-webfont.svg +0 -1824
  201. package/app/assets/font/opensans/opensans-extrabolditalic-webfont.ttf +0 -0
  202. package/app/assets/font/opensans/opensans-extrabolditalic-webfont.woff +0 -0
  203. package/app/assets/font/opensans/opensans-italic-webfont.eot +0 -0
  204. package/app/assets/font/opensans/opensans-italic-webfont.svg +0 -1824
  205. package/app/assets/font/opensans/opensans-italic-webfont.ttf +0 -0
  206. package/app/assets/font/opensans/opensans-italic-webfont.woff +0 -0
  207. package/app/assets/font/opensans/opensans-light-webfont.eot +0 -0
  208. package/app/assets/font/opensans/opensans-light-webfont.svg +0 -1824
  209. package/app/assets/font/opensans/opensans-light-webfont.ttf +0 -0
  210. package/app/assets/font/opensans/opensans-light-webfont.woff +0 -0
  211. package/app/assets/font/opensans/opensans-lightitalic-webfont.eot +0 -0
  212. package/app/assets/font/opensans/opensans-lightitalic-webfont.svg +0 -1824
  213. package/app/assets/font/opensans/opensans-lightitalic-webfont.ttf +0 -0
  214. package/app/assets/font/opensans/opensans-lightitalic-webfont.woff +0 -0
  215. package/app/assets/font/opensans/opensans-regular-webfont.eot +0 -0
  216. package/app/assets/font/opensans/opensans-regular-webfont.svg +0 -1824
  217. package/app/assets/font/opensans/opensans-regular-webfont.ttf +0 -0
  218. package/app/assets/font/opensans/opensans-regular-webfont.woff +0 -0
  219. package/app/assets/font/opensans/opensans-semibold-webfont.eot +0 -0
  220. package/app/assets/font/opensans/opensans-semibold-webfont.svg +0 -1824
  221. package/app/assets/font/opensans/opensans-semibold-webfont.ttf +0 -0
  222. package/app/assets/font/opensans/opensans-semibold-webfont.woff +0 -0
  223. package/app/assets/font/opensans/opensans-semibolditalic-webfont.eot +0 -0
  224. package/app/assets/font/opensans/opensans-semibolditalic-webfont.svg +0 -1824
  225. package/app/assets/font/opensans/opensans-semibolditalic-webfont.ttf +0 -0
  226. package/app/assets/font/opensans/opensans-semibolditalic-webfont.woff +0 -0
  227. package/app/assets/font/opensans/specimen_files/grid_12-825-55-15.css +0 -129
  228. package/app/assets/font/opensans/specimen_files/specimen_stylesheet.css +0 -396
  229. package/app/assets/script/index.js +0 -11
  230. package/app/assets/script/mediator/global.js +0 -5
  231. package/app/assets/script/model/singletons/countries.js +0 -6
  232. package/app/assets/script/model/singletons/global.js +0 -6
  233. package/app/assets/script/model/singletons/states.js +0 -6
  234. package/app/assets/script/model/user.js +0 -5
  235. package/app/assets/script/utility/form.js +0 -86
  236. package/app/assets/script/utility/share.js +0 -52
  237. package/app/assets/script/utility/string.js +0 -70
  238. package/app/assets/script/view/default.js +0 -11
  239. package/app/assets/style/base/vendor/_foundation.scss +0 -2
  240. package/app/assets/test/spec/shareSpec.js +0 -137
  241. package/app/index.html +0 -43
  242. package/app/report/istanbul/base.css +0 -213
  243. package/app/report/istanbul/index.html +0 -93
  244. package/app/report/istanbul/prettify.css +0 -1
  245. package/app/report/istanbul/prettify.js +0 -1
  246. package/app/report/istanbul/sort-arrow-sprite.png +0 -0
  247. package/app/report/istanbul/sorter.js +0 -158
  248. package/app/report/istanbul/utility/form.js.html +0 -524
  249. package/app/report/istanbul/utility/index.html +0 -132
  250. package/app/report/istanbul/utility/regex.js.html +0 -203
  251. package/app/report/istanbul/utility/share.js.html +0 -401
  252. package/app/report/istanbul/utility/string.js.html +0 -446
  253. package/app/report/jsdoc/DragEvent.html +0 -303
  254. package/app/report/jsdoc/Event.html +0 -773
  255. package/app/report/jsdoc/EventPropagators.html +0 -336
  256. package/app/report/jsdoc/FocusEvent.html +0 -303
  257. package/app/report/jsdoc/ForEachBookKeeping.html +0 -425
  258. package/app/report/jsdoc/KeyboardEvent.html +0 -303
  259. package/app/report/jsdoc/MapBookKeeping.html +0 -457
  260. package/app/report/jsdoc/MouseEvent.html +0 -303
  261. package/app/report/jsdoc/ReactClass.html +0 -330
  262. package/app/report/jsdoc/ReactClassInterface.html +0 -311
  263. package/app/report/jsdoc/ReactDOMComponent.html +0 -349
  264. package/app/report/jsdoc/ReactDOMTextComponent.html +0 -348
  265. package/app/report/jsdoc/ReactMountReady.html +0 -340
  266. package/app/report/jsdoc/ReactMultiChild.html +0 -330
  267. package/app/report/jsdoc/ReactOwner.html +0 -351
  268. package/app/report/jsdoc/ReactReconcileTransaction.html +0 -342
  269. package/app/report/jsdoc/ReactServerRenderingTransaction.html +0 -376
  270. package/app/report/jsdoc/ReactServerUpdateQueue.html +0 -382
  271. package/app/report/jsdoc/TouchEvent.html +0 -303
  272. package/app/report/jsdoc/Transaction.html +0 -459
  273. package/app/report/jsdoc/UIEvent.html +0 -303
  274. package/app/report/jsdoc/WheelEvent.html +0 -303
  275. package/app/report/jsdoc/classes.list.html +0 -339
  276. package/app/report/jsdoc/fonts/glyphicons-halflings-regular.eot +0 -0
  277. package/app/report/jsdoc/fonts/glyphicons-halflings-regular.svg +0 -288
  278. package/app/report/jsdoc/fonts/glyphicons-halflings-regular.ttf +0 -0
  279. package/app/report/jsdoc/fonts/glyphicons-halflings-regular.woff +0 -0
  280. package/app/report/jsdoc/fonts/glyphicons-halflings-regular.woff2 +0 -0
  281. package/app/report/jsdoc/global.html +0 -1653
  282. package/app/report/jsdoc/img/glyphicons-halflings-white.png +0 -0
  283. package/app/report/jsdoc/img/glyphicons-halflings.png +0 -0
  284. package/app/report/jsdoc/index.html +0 -236
  285. package/app/report/jsdoc/interfaces.list.html +0 -339
  286. package/app/report/jsdoc/quicksearch.html +0 -31
  287. package/app/report/jsdoc/scripts/docstrap.lib.js +0 -11
  288. package/app/report/jsdoc/scripts/fulltext-search-ui.js +0 -89
  289. package/app/report/jsdoc/scripts/fulltext-search.js +0 -36
  290. package/app/report/jsdoc/scripts/lunr.min.js +0 -6
  291. package/app/report/jsdoc/scripts/prettify/Apache-License-2.0.txt +0 -202
  292. package/app/report/jsdoc/scripts/prettify/jquery.min.js +0 -6
  293. package/app/report/jsdoc/scripts/prettify/lang-css.js +0 -21
  294. package/app/report/jsdoc/scripts/prettify/prettify.js +0 -496
  295. package/app/report/jsdoc/scripts/sunlight.js +0 -1157
  296. package/app/report/jsdoc/scripts/toc.js +0 -203
  297. package/app/report/jsdoc/styles/darkstrap.css +0 -960
  298. package/app/report/jsdoc/styles/prettify-tomorrow.css +0 -132
  299. package/app/report/jsdoc/styles/site.cerulean.css +0 -7008
  300. package/app/report/jsdoc/styles/site.cosmo.css +0 -7061
  301. package/app/report/jsdoc/styles/site.cyborg.css +0 -7048
  302. package/app/report/jsdoc/styles/site.darkly.css +0 -7171
  303. package/app/report/jsdoc/styles/site.darkstrap.css +0 -5638
  304. package/app/report/jsdoc/styles/site.dibs-bootstrap.css +0 -5899
  305. package/app/report/jsdoc/styles/site.flatly.css +0 -7147
  306. package/app/report/jsdoc/styles/site.journal.css +0 -6973
  307. package/app/report/jsdoc/styles/site.lumen.css +0 -7298
  308. package/app/report/jsdoc/styles/site.paper.css +0 -7623
  309. package/app/report/jsdoc/styles/site.readable.css +0 -6997
  310. package/app/report/jsdoc/styles/site.sandstone.css +0 -7035
  311. package/app/report/jsdoc/styles/site.simplex.css +0 -7023
  312. package/app/report/jsdoc/styles/site.slate.css +0 -7343
  313. package/app/report/jsdoc/styles/site.spacelab.css +0 -7055
  314. package/app/report/jsdoc/styles/site.superhero.css +0 -7131
  315. package/app/report/jsdoc/styles/site.united.css +0 -6895
  316. package/app/report/jsdoc/styles/site.yeti.css +0 -7195
  317. package/app/report/jsdoc/styles/sunlight.dark.css +0 -345
  318. package/app/report/jsdoc/styles/sunlight.default.css +0 -344
  319. package/gulp/config.js +0 -207
  320. package/gulp/tasks/accessibility.js +0 -34
  321. package/gulp/tasks/build.js +0 -18
  322. package/gulp/tasks/clean.js +0 -18
  323. package/gulp/tasks/data.js +0 -22
  324. package/gulp/tasks/default.js +0 -9
  325. package/gulp/tasks/deploy.js +0 -222
  326. package/gulp/tasks/documentation.js +0 -28
  327. package/gulp/tasks/markup.js +0 -26
  328. package/gulp/tasks/script.js +0 -92
  329. package/gulp/tasks/style.js +0 -42
  330. package/gulp/tasks/unit.js +0 -38
  331. package/gulp/tasks/watch.js +0 -77
  332. package/gulpfile.js +0 -8
  333. package/jsdoc.json +0 -23
  334. package/karma.conf.js +0 -58
@@ -0,0 +1,24 @@
1
+ <textarea
2
+ {{#if this.id}}
3
+ id="{{this.id}}"
4
+ {{/if}}
5
+ {{#if this.class}}
6
+ class="{{this.class}}"
7
+ {{/if}}
8
+ {{#if this.placeholder}}
9
+ placeholder="{{this.placeholder}}"{{/if}}
10
+ {{#if this.name}}
11
+ name="{{this.name}}"
12
+ {{/if}}
13
+ {{#if this.required}}
14
+ required
15
+ aria-required="true"
16
+ {{/if}}
17
+ {{#if this.disabled}}
18
+ disabled
19
+ aria-disabled="true"
20
+ {{/if}}
21
+ {{#if this.aria-label}}
22
+ aria-label="{{this.aria-label}}"
23
+ {{/if}}
24
+ >{{#if this.value}}{{this.value}}{{/if}}</textarea>
@@ -0,0 +1,13 @@
1
+ <ul
2
+ {{#if this.class}}
3
+ class="{{this.class}}"
4
+ {{/if}}
5
+ >
6
+ {{#each this.items}}
7
+ <li>{{#if this.url}}{{>elements/a}}{{else}}{{this.text}}{{/if}}
8
+ {{#if this.list}}
9
+ {{> elements/ul this.list}}
10
+ {{/if}}
11
+ </li>
12
+ {{/each}}
13
+ </ul>
@@ -0,0 +1,8 @@
1
+ <div class="row">
2
+ <div class="col-12">
3
+ <h1 id="modal-title">disclosures</h1>
4
+ <h2 id="modal-description">Legal disclosures you accept to continue</h2>
5
+ <p>disclosures content</p>
6
+ <button class="button-1" data-modal-close>return to sign up page</button>
7
+ </div>
8
+ </div>
@@ -0,0 +1 @@
1
+ {{>element/a class='accessibility-skip-to-element-1'}}
@@ -0,0 +1 @@
1
+ <div class="accessibility-hidden-element-1" aria-live="polite" aria-relevant="additions" aria-atomic="true"></div>
@@ -0,0 +1 @@
1
+ {{> element/a class='anchor-1'}}
@@ -0,0 +1 @@
1
+ {{> element/button class='button-1'}}
@@ -0,0 +1,3 @@
1
+ <footer class="footer-1">
2
+ <p>&copy;</p>
3
+ </footer>
@@ -0,0 +1 @@
1
+ <header class="header-1"></header>
@@ -0,0 +1 @@
1
+ <{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}{{#if this.id}} id="{{this.id}}"{{/if}} class="heading-1 {{#if this.class}}{{this.class}}{{/if}}{{#if this.accessible-title}} aria-label="{{this.accessible-title}}"{{/if}}{{#if this.role}} role="{{this.role}}"{{/if}}"{{#if this.tabindex}} tabindex="{{this.tabindex}}"{{/if}}>{{this.title}}</{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}>
@@ -0,0 +1 @@
1
+ <{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}{{#if this.id}} id="{{this.id}}"{{/if}} class="heading-2 {{#if this.class}}{{this.class}}{{/if}}{{#if this.accessible-title}} aria-label="{{this.accessible-title}}"{{/if}}{{#if this.role}} role="{{this.role}}"{{/if}}"{{#if this.tabindex}} tabindex="{{this.tabindex}}"{{/if}}>{{this.title}}</{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}>
@@ -0,0 +1 @@
1
+ <{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}{{#if this.id}} id="{{this.id}}"{{/if}} class="heading-3 {{#if this.class}}{{this.class}}{{/if}}{{#if this.accessible-title}} aria-label="{{this.accessible-title}}"{{/if}}{{#if this.role}} role="{{this.role}}"{{/if}}"{{#if this.tabindex}} tabindex="{{this.tabindex}}"{{/if}}>{{this.title}}</{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}>
@@ -0,0 +1 @@
1
+ <{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}{{#if this.id}} id="{{this.id}}"{{/if}} class="heading-4 {{#if this.class}}{{this.class}}{{/if}}{{#if this.accessible-title}} aria-label="{{this.accessible-title}}"{{/if}}{{#if this.role}} role="{{this.role}}"{{/if}}"{{#if this.tabindex}} tabindex="{{this.tabindex}}"{{/if}}>{{this.title}}</{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}>
@@ -0,0 +1 @@
1
+ {{> element/img class='image-1'}}
@@ -0,0 +1 @@
1
+ {{> element/input class='input-checkbox-1' type='checkbox'}}
@@ -0,0 +1,8 @@
1
+ <div id="{{id}}" class="input-error-1" data-for="{{for}}">
2
+ {{#if this.title}}
3
+ <strong>{{this.title}}</strong>
4
+ {{/if}}
5
+ {{#if this.body}}
6
+ <p>{{this.body}}</p>
7
+ {{/if}}
8
+ </div>
@@ -0,0 +1 @@
1
+ {{> element/input class='input-radio-1' type='radio'}}
@@ -0,0 +1 @@
1
+ {{> element/input class='input-text-1'}}
@@ -0,0 +1 @@
1
+ {{> element/label class='label-1'}}
@@ -0,0 +1 @@
1
+ {{> element/legend class='legend-1'}}
@@ -0,0 +1 @@
1
+ {{> element/ul class='list-1'}}
@@ -0,0 +1,4 @@
1
+ <section data-modal class="modal-1">
2
+ <div class="modal-1-content" tabindex="-1" role="dialog" aria-labelledby="modal-title" aria-describedby="modal-description"></div>
3
+ <button data-modal-close aria-label="close modal"></button>
4
+ </section>
@@ -0,0 +1 @@
1
+ <nav class="nav-1"></nav>
@@ -0,0 +1 @@
1
+ {{> element/picture class='picture-1'}}
@@ -0,0 +1 @@
1
+ {{> element/select class='select-1'}}
@@ -0,0 +1 @@
1
+ {{> element/table class='table-1'}}
@@ -0,0 +1 @@
1
+ <{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}{{#if this.id}} id="{{this.id}}"{{/if}} class="text-1 {{#if this.class}}{{this.class}}{{/if}}{{#if this.accessible-title}} aria-label="{{this.accessible-title}}"{{/if}}{{#if this.role}} role="{{this.role}}"{{/if}}"{{#if this.tabindex}} tabindex="{{this.tabindex}}"{{/if}}>{{this.title}}</{{#if this.tag}}{{this.tag}}{{else}}span{{/if}}>
@@ -0,0 +1 @@
1
+ {{> element/textarea class='textarea-1'}}
@@ -0,0 +1 @@
1
+ <div class="youtube-player-1 {{#if this.widescreen}} widescreen{{/if}}"></div>
@@ -0,0 +1,41 @@
1
+ /** @module app/assets/script/api/facebook */
2
+ import mediator from '../mediator/global.js';
3
+ import modelGlobal from '../model/singletons/global.js';
4
+
5
+ 'use strict';
6
+ export default class {
7
+ /**
8
+ * Load the optional SDK and emit a mediator notification from its readiness callback.
9
+ * @param url - URL or optional adapter argument.
10
+ * @returns No value.
11
+ */
12
+ initialize(url?: string) {
13
+ window.fbAsyncInit = function(e?: Event) {
14
+ window.FB.init({
15
+ appId: modelGlobal.get().appId || null,
16
+ autoLogAppEvents: true,
17
+ xfbml: true,
18
+ version: 'v2.9'
19
+ });
20
+ window.FB.AppEvents.logPageView();
21
+ mediator.emit('facebook-api-1:state:ready', {
22
+ event: e
23
+ });
24
+ };
25
+ (function(d, s, id) {
26
+ var js,
27
+ fjs = d.getElementsByTagName(s)[0];
28
+ if (d.getElementById(id)) {
29
+ return;
30
+ }
31
+ js = d.createElement('script');
32
+ js.id = id;
33
+ js.src = '//connect.facebook.net/en_US/sdk.js';
34
+ if (fjs?.parentNode) {
35
+ fjs.parentNode.insertBefore(js, fjs);
36
+ } else {
37
+ d.head.appendChild(js);
38
+ }
39
+ }(document, 'script', 'facebook-jssdk'));
40
+ }
41
+ };
@@ -0,0 +1,22 @@
1
+ /** @module app/assets/script/api/youtube */
2
+ import mediator from '../mediator/global.js';
3
+ import UtilityAjax from '../utility/ajax.js';
4
+
5
+ const utilityAjax = new UtilityAjax();
6
+
7
+ 'use strict';
8
+ export default class {
9
+ /**
10
+ * Load the optional SDK and emit a mediator notification from its readiness callback.
11
+ * @param url - URL or optional adapter argument.
12
+ * @returns No value.
13
+ */
14
+ initialize(url?: string) {
15
+ utilityAjax.getScript('//www.youtube.com/iframe_api');
16
+ window.onYouTubeIframeAPIReady = (e?: Event) => {
17
+ mediator.emit('youtube-api-1:state:ready', {
18
+ event: e
19
+ });
20
+ }
21
+ }
22
+ };
@@ -0,0 +1,2 @@
1
+ /** @module app/assets/script/index */
2
+ export {};
@@ -0,0 +1,4 @@
1
+ /** @module app/assets/script/mediator/global */
2
+ import Events from 'events';
3
+
4
+ export default new Events();
@@ -0,0 +1,5 @@
1
+ /** @module app/assets/script/model/singletons/countries */
2
+ import WLModel from 'white-label-model';
3
+ import data from '../../../data/coutries.json' with {type: 'json'};
4
+
5
+ export default new WLModel.Collection(data);
@@ -0,0 +1,5 @@
1
+ /** @module app/assets/script/model/singletons/global */
2
+ import WLModel from 'white-label-model';
3
+ const data: Record<string, unknown> = {cdn: '/', www: '/', service: '/service-endpoint'};
4
+
5
+ export default new WLModel.Model(data);
@@ -0,0 +1,5 @@
1
+ /** @module app/assets/script/model/singletons/states */
2
+ import WLModel from 'white-label-model';
3
+ import data from '../../../data/states.json' with {type: 'json'};
4
+
5
+ export default new WLModel.Collection(data);
@@ -0,0 +1,4 @@
1
+ /** @module app/assets/script/model/user */
2
+ import WLModel from 'white-label-model';
3
+
4
+ export default class extends WLModel.Model {};
@@ -0,0 +1,11 @@
1
+ /** @module app/assets/script/toolkit */
2
+ import APIYoutube from './api/youtube.js';
3
+
4
+
5
+
6
+ // Avoid downloading the third-party API on toolkit pages that have no player.
7
+ if (document.querySelector('.youtube-player-1')) {
8
+ new APIYoutube().initialize();
9
+ }
10
+
11
+ export {};
@@ -0,0 +1,16 @@
1
+ /** Legacy published packages have no declarations; this describes the subset used by this generator. */
2
+ declare module 'white-label-model' {
3
+ import {EventEmitter} from 'events';
4
+ class Model extends EventEmitter {constructor(data?: object); get(): Record<string, unknown>}
5
+ class Collection extends EventEmitter {constructor(data?: unknown[]); get(): unknown[]}
6
+ const api: {Model: typeof Model; Collection: typeof Collection};
7
+ export default api;
8
+ }
9
+ declare module 'white-label-view' {
10
+ export default class View {parentElement?: Element; initialize(): unknown; addListeners(): unknown}
11
+ }
12
+ interface Window {
13
+ onYouTubeIframeAPIReady?: (event?: Event) => void;
14
+ fbAsyncInit?: (event?: Event) => void;
15
+ FB: {init(options: {appId: unknown; autoLogAppEvents: boolean; xfbml: boolean; version: string}): void; AppEvents: {logPageView(): void}};
16
+ }
@@ -0,0 +1,15 @@
1
+ /** @module app/assets/script/utility/ajax */
2
+ 'use strict';
3
+ export default class {
4
+ /**
5
+ * Append an asynchronous script element; callers decide when third-party code is needed.
6
+ * @param url - URL or optional adapter argument.
7
+ * @returns No value; the browser loads the appended script asynchronously.
8
+ */
9
+ getScript(url: string) {
10
+ var newScript = document.createElement('script');
11
+ newScript.src = url;
12
+ newScript.async = true;
13
+ document.getElementsByTagName('head')[0].appendChild(newScript);
14
+ }
15
+ };
@@ -0,0 +1,119 @@
1
+ /** Select option data used by the generated form examples. */
2
+ interface Option {value: string | number; selected?: boolean; name?: string}
3
+ interface Metadata {key: string; keyID?: string; keyTitle?: string; valueID?: string; valueTitle?: string}
4
+ interface OptionInput {id: string | number; first_name?: string; last_name?: string; name?: string}
5
+ 'use strict';
6
+ export default class {
7
+ /**
8
+ * Return the values of selected options in document order.
9
+ * @param element - Select element to inspect.
10
+ * @returns Selected option values in document order.
11
+ */
12
+ multiselectGetSelectedValues(element: HTMLSelectElement) {
13
+ let values: string[] = [];
14
+ element.querySelectorAll<HTMLOptionElement>(':checked').forEach((item) => {
15
+ values.push(item.value);
16
+ });
17
+ return values;
18
+ }
19
+ /**
20
+ * Mutate option selection flags so only the matching value remains selected.
21
+ * @param data - Data supplied by the caller; validation follows the method contract.
22
+ * @param value - Value to find or format.
23
+ * @returns The same option array with updated selection flags.
24
+ */
25
+ selectMenuSelectOption(data: Option[], value: string | number) {
26
+ data.forEach ((item) => {
27
+ if (item.value === value) {
28
+ item.selected = true;
29
+ } else {
30
+ item.selected = false;
31
+ }
32
+ });
33
+ return data;
34
+ }
35
+ /**
36
+ * Return the last option matching a value, or false when none matches.
37
+ * @param data - Data supplied by the caller; validation follows the method contract.
38
+ * @param value - Value to find or format.
39
+ * @returns The matching option or false.
40
+ */
41
+ selectMenuReturnOption(data: Option[], value: string | number) {
42
+ let itemMatch: Option | false = false;
43
+ data.forEach((item) => {
44
+ if (item.value === value) {
45
+ itemMatch = item;
46
+ }
47
+ });
48
+ return itemMatch;
49
+ }
50
+ /**
51
+ * Add stable field IDs and readable labels to metadata entries in place.
52
+ * @param metaData - Metadata array to decorate or divide.
53
+ * @returns The same metadata array with IDs and labels.
54
+ */
55
+ normalizeMetaData(metaData: Metadata[]) {
56
+ let i = 0;
57
+ metaData.forEach((item) => {
58
+ item.keyID = 'meta-field-key-' + i;
59
+ item.keyTitle = 'Field Name:';
60
+ item.valueID = 'meta-field-value-' + i;
61
+ item.valueTitle = 'Field Value: ' + item.key;
62
+ i++;
63
+ });
64
+
65
+ return metaData;
66
+ }
67
+ /**
68
+ * Move the latter half of metadata into a second group, mutating the supplied array.
69
+ * @param metaData - Metadata array to decorate or divide.
70
+ * @returns Two groups; group-1 retains the mutated input array.
71
+ */
72
+ splitMetaData(metaData: Metadata[]) {
73
+ let secondRowCount = Math.floor(metaData.length / 2);
74
+ return {
75
+ 'group-1': metaData,
76
+ 'group-2': metaData.splice(metaData.length - secondRowCount, secondRowCount)
77
+ }
78
+ }
79
+ /**
80
+ * Create display options from named records and mark the requested selections.
81
+ * @param arr - Records used to build select options.
82
+ * @param selected - Selected ID or IDs.
83
+ * @returns New options containing names, values, and selection flags.
84
+ */
85
+ buildOptions(arr: OptionInput[], selected: string | number | Array<string | number>) {
86
+
87
+ const options: Option[] = [];
88
+ let option: Option;
89
+
90
+ arr.forEach((obj) => {
91
+
92
+ let name = 'not specified';
93
+
94
+ if (obj.first_name && obj.last_name) {
95
+ name = obj.first_name + ' ' + obj.last_name;
96
+ } else if (obj.name) {
97
+ name = obj.name;
98
+ }
99
+
100
+ option = {
101
+ name: name,
102
+ value: obj.id
103
+ };
104
+
105
+ if (selected === obj.id) {
106
+ option.selected = true;
107
+ } else if (Array.isArray(selected) && selected.indexOf(obj.id) !== -1) {
108
+ option.selected = true;
109
+ } else {
110
+ option.selected = false;
111
+ }
112
+
113
+ options.push(option);
114
+
115
+ });
116
+
117
+ return options;
118
+ }
119
+ };
@@ -1,8 +1,19 @@
1
- (() => {
2
- 'use strict';
3
- module.exports = class {
1
+ /** @module app/assets/script/utility/regex */
2
+ 'use strict';
3
+ export default class {
4
+ date: RegExp;
5
+ password: RegExp;
6
+ phone: RegExp;
7
+ phoneEXT: RegExp;
8
+ zip: RegExp;
9
+ characters2: RegExp;
10
+ characters25: RegExp;
11
+ currency: RegExp;
12
+
13
+ /**
14
+ * Create an instance with its own state and listener references.
15
+ */
4
16
  constructor() {
5
- /*eslint-disable*/
6
17
  this.date =  /^\$?(20|30)\d\d[- \/.](0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])?$/g;
7
18
  this.password = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{5,15}$/m;
8
19
  this.phone = /^(\+?\d[ -\.])?([\\(]{0,1}([0-9]){3}[\\\.\-)]{0,1}[ ]?([^0-1]){1}([0-9]){2}[ ]?[-\.]?[ ]?([0-9]){4})|(\d{10})$/m;
@@ -11,7 +22,5 @@
11
22
  this.characters2 = /^.{2,500}$/m;
12
23
  this.characters25 = /^.{25,500}$/m;
13
24
  this.currency = /^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$/m;
14
- /*eslint-enable*/
15
25
  }
16
26
  };
17
- })();
@@ -0,0 +1,77 @@
1
+ /** @module app/assets/script/utility/share */
2
+ 'use strict';
3
+ export default class {
4
+ /**
5
+ * Build an encoded Facebook share URL.
6
+ * @param params - Request parameters required by this operation.
7
+ * @returns An encoded Facebook share URL.
8
+ */
9
+ shareFacebookUrl(params: {url?: string; text?: string; title?: string; summary?: string; subject?: string; body?: string}) {
10
+ return 'https://www.facebook.com/sharer.php?u=' + encodeURIComponent(params.url || '');
11
+ }
12
+ /**
13
+ * Build the legacy Twitter intent URL for messages of at most 140 characters.
14
+ * @param params - Request parameters required by this operation.
15
+ * @returns An encoded intent URL, or false for missing or overlong text.
16
+ */
17
+ shareTwitterUrl(params: {url?: string; text?: string; title?: string; summary?: string; subject?: string; body?: string}) {
18
+ //check if the message is the right size and that a message is definded
19
+ if (params.text && params.text.length <= 140) {
20
+ var url = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent(params.text);
21
+ // check if they passed in an url along with the message
22
+ if (params.url) {
23
+ url = url + '&url=' + encodeURIComponent(params.url)
24
+ }
25
+ // return back the full share url
26
+ return url;
27
+ } else {
28
+ return false;
29
+ }
30
+ }
31
+ /**
32
+ * Build a legacy Google Plus URL for compatibility; the external service is discontinued.
33
+ * @param params - Request parameters required by this operation.
34
+ * @returns The legacy share URL, or false when no URL is supplied.
35
+ * @deprecated Retained only to avoid silently changing older callers.
36
+ */
37
+ shareGooglePlusUrl(params: {url?: string; text?: string; title?: string; summary?: string; subject?: string; body?: string}) {
38
+ if (!params.url) {
39
+ return false;
40
+ }
41
+ return 'https://plus.google.com/share?url=' + encodeURIComponent(params.url);
42
+ }
43
+ /**
44
+ * Build an encoded LinkedIn share URL with optional title and summary.
45
+ * @param params - Request parameters required by this operation.
46
+ * @returns An encoded share URL, or false when no URL is supplied.
47
+ */
48
+ shareLinkedInUrl(params: {url?: string; text?: string; title?: string; summary?: string; subject?: string; body?: string}) {
49
+ // check it an url is defined
50
+ if (params.url) {
51
+ var url = 'https://www.linkedin.com/shareArticle?url=' + encodeURIComponent(params.url);
52
+ // if a title is passed add it to the share url
53
+ if (params.title) {
54
+ url = url + '&title=' + encodeURIComponent(params.title);
55
+ }
56
+ if (params.summary) {
57
+ // if a summary is passed add it to the share url
58
+ url = url + '&summary=' + encodeURIComponent(params.summary);
59
+ }
60
+ // return back the full share url
61
+ return url;
62
+ } else {
63
+ return false;
64
+ }
65
+ }
66
+ /**
67
+ * Build a mailto link only when both subject and body are supplied.
68
+ * @param params - Request parameters required by this operation.
69
+ * @returns An encoded mailto link, or false when subject or body is missing.
70
+ */
71
+ shareEmailUrl(params: {url?: string; text?: string; title?: string; summary?: string; subject?: string; body?: string}) {
72
+ if (!params.subject || !params.body) {
73
+ return false;
74
+ }
75
+ return 'mailto:?subject=' + encodeURIComponent(params.subject) + '&body=' + encodeURIComponent(params.body);
76
+ }
77
+ };