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.
- package/README.md +140 -81
- package/app/404.hbs +20 -0
- package/app/README.md +19 -0
- package/app/assets/data/view/toolkit/colors.json +17 -0
- package/app/assets/data/view/toolkit/components.json +39 -0
- package/app/assets/data/view/toolkit/elements.json +119 -0
- package/app/assets/data/view/toolkit/grids.json +17 -0
- package/app/assets/data/view/toolkit/icons.json +17 -0
- package/app/assets/data/view/toolkit/index.json +17 -0
- package/app/assets/data/view/toolkit/type.json +17 -0
- package/app/assets/font/opensans/stylesheet.css +20 -60
- package/app/assets/image/demo/fallback.avif +0 -0
- package/app/assets/image/demo/fallback.jpg +0 -0
- package/app/assets/image/demo/fallback.webp +0 -0
- package/app/assets/image/demo/large.avif +0 -0
- package/app/assets/image/demo/large.webp +0 -0
- package/app/assets/image/demo/small.avif +0 -0
- package/app/assets/image/demo/small.webp +0 -0
- package/app/assets/markup/element/a.hbs +29 -0
- package/app/assets/markup/element/button.hbs +30 -0
- package/app/assets/markup/element/div.hbs +11 -0
- package/app/assets/markup/element/head.hbs +78 -0
- package/app/assets/markup/element/iframe.hbs +20 -0
- package/app/assets/markup/element/img.hbs +30 -0
- package/app/assets/markup/element/input.hbs +43 -0
- package/app/assets/markup/element/label.hbs +14 -0
- package/app/assets/markup/element/legend.hbs +5 -0
- package/app/assets/markup/element/meta.hbs +11 -0
- package/app/assets/markup/element/nav.hbs +13 -0
- package/app/assets/markup/element/p.hbs +8 -0
- package/app/assets/markup/element/picture.hbs +58 -0
- package/app/assets/markup/element/script.hbs +3 -0
- package/app/assets/markup/element/select.hbs +35 -0
- package/app/assets/markup/element/span.hbs +8 -0
- package/app/assets/markup/element/svg.hbs +11 -0
- package/app/assets/markup/element/table.hbs +50 -0
- package/app/assets/markup/element/textarea.hbs +24 -0
- package/app/assets/markup/element/ul.hbs +13 -0
- package/app/assets/markup/modal/modal-example-1.handlebars +8 -0
- package/app/assets/markup/toolkit/accessibility-skip-to-element-1.handlebars +1 -0
- package/app/assets/markup/toolkit/accessibility-speaker-1.handlebars +1 -0
- package/app/assets/markup/toolkit/anchor-1.handlebars +1 -0
- package/app/assets/markup/toolkit/button-1.handlebars +1 -0
- package/app/assets/markup/toolkit/footer-1.handlebars +3 -0
- package/app/assets/markup/toolkit/header-1.handlebars +1 -0
- package/app/assets/markup/toolkit/heading-1.handlebars +1 -0
- package/app/assets/markup/toolkit/heading-2.handlebars +1 -0
- package/app/assets/markup/toolkit/heading-3.handlebars +1 -0
- package/app/assets/markup/toolkit/heading-4.handlebars +1 -0
- package/app/assets/markup/toolkit/image-1.handlebars +1 -0
- package/app/assets/markup/toolkit/input-checkbox-1.handlebars +1 -0
- package/app/assets/markup/toolkit/input-error-1.handlebars +8 -0
- package/app/assets/markup/toolkit/input-radio-1.handlebars +1 -0
- package/app/assets/markup/toolkit/input-text-1.handlebars +1 -0
- package/app/assets/markup/toolkit/label-1.handlebars +1 -0
- package/app/assets/markup/toolkit/legend-1.handlebars +1 -0
- package/app/assets/markup/toolkit/list-1.handlebars +1 -0
- package/app/assets/markup/toolkit/modal-1.handlebars +4 -0
- package/app/assets/markup/toolkit/nav-1.handlebars +1 -0
- package/app/assets/markup/toolkit/picture-1.handlebars +1 -0
- package/app/assets/markup/toolkit/select-1.handlebars +1 -0
- package/app/assets/markup/toolkit/table-1.handlebars +1 -0
- package/app/assets/markup/toolkit/text-1.handlebars +1 -0
- package/app/assets/markup/toolkit/textarea-1.handlebars +1 -0
- package/app/assets/markup/toolkit/youtube-player-1.handlebars +1 -0
- package/app/assets/script/api/facebook.ts +41 -0
- package/app/assets/script/api/youtube.ts +22 -0
- package/app/assets/script/index.ts +2 -0
- package/app/assets/script/mediator/global.ts +4 -0
- package/app/assets/script/model/singletons/countries.ts +5 -0
- package/app/assets/script/model/singletons/global.ts +5 -0
- package/app/assets/script/model/singletons/states.ts +5 -0
- package/app/assets/script/model/user.ts +4 -0
- package/app/assets/script/toolkit.ts +11 -0
- package/app/assets/script/types.d.ts +16 -0
- package/app/assets/script/utility/ajax.ts +15 -0
- package/app/assets/script/utility/form.ts +119 -0
- package/app/assets/script/utility/{regex.js → regex.ts} +15 -6
- package/app/assets/script/utility/share.ts +77 -0
- package/app/assets/script/utility/string.ts +148 -0
- package/app/assets/script/view/default.tsx +14 -0
- package/app/assets/script/view/toolkit/youtube-player-1.ts +31 -0
- package/app/assets/style/base/_toolkit.scss +31 -15
- package/app/assets/style/base/components/_modal-1.scss +80 -0
- package/app/assets/style/base/components/_sticky-1.scss +19 -0
- package/app/assets/style/base/components/_tabpanel-1.scss +115 -0
- package/app/assets/style/base/components/_tabpanel-2.scss +64 -0
- package/app/assets/style/base/components/_tabpanel-base-1.scss +13 -0
- package/app/assets/style/base/components/_youtube-player-1.scss +16 -0
- package/app/assets/style/base/elements/_anchors.scss +12 -0
- package/app/assets/style/base/elements/_buttons.scss +15 -0
- package/app/assets/style/base/elements/_fieldsets.scss +9 -0
- package/app/assets/style/base/elements/_images.scss +6 -2
- package/app/assets/style/base/elements/_inputs.scss +70 -0
- package/app/assets/style/base/elements/_labels.scss +8 -0
- package/app/assets/style/base/elements/_landmarks.scss +3 -0
- package/app/assets/style/base/elements/_legends.scss +11 -0
- package/app/assets/style/base/elements/_lists.scss +8 -1
- package/app/assets/style/base/elements/_tables.scss +32 -1
- package/app/assets/style/base/layouts/_staggered-1.scss +29 -0
- package/app/assets/style/base/type/_fonts.scss +39 -1
- package/app/assets/style/base/type/_headings.scss +29 -0
- package/app/assets/style/base/type/_text.scss +2 -0
- package/app/assets/style/base/utilities/_accessibility.scss +5 -2
- package/app/assets/style/base/utilities/_functions.scss +62 -9
- package/app/assets/style/global.scss +108 -10
- package/app/assets/style/print.scss +2 -3
- package/app/assets/style/toolkit.scss +387 -0
- package/app/index.hbs +21 -0
- package/app/package.json +1 -0
- package/app/toolkit/colors.hbs +102 -0
- package/app/toolkit/components.hbs +261 -0
- package/app/toolkit/elements.hbs +497 -0
- package/app/toolkit/grids.hbs +413 -0
- package/app/toolkit/icons.hbs +87 -0
- package/app/toolkit/index.hbs +144 -0
- package/app/toolkit/type.hbs +120 -0
- package/dist/app/assets/data/coutries.json +992 -0
- package/dist/app/assets/data/states.json +204 -0
- package/dist/app/assets/script/api/facebook.d.ts +8 -0
- package/dist/app/assets/script/api/facebook.js +42 -0
- package/dist/app/assets/script/api/facebook.js.map +1 -0
- package/dist/app/assets/script/api/youtube.d.ts +8 -0
- package/dist/app/assets/script/api/youtube.js +22 -0
- package/dist/app/assets/script/api/youtube.js.map +1 -0
- package/dist/app/assets/script/index.d.ts +2 -0
- package/dist/app/assets/script/index.js +2 -0
- package/dist/app/assets/script/index.js.map +1 -0
- package/dist/app/assets/script/mediator/global.d.ts +4 -0
- package/dist/app/assets/script/mediator/global.js +4 -0
- package/dist/app/assets/script/mediator/global.js.map +1 -0
- package/dist/app/assets/script/model/singletons/countries.d.ts +20 -0
- package/dist/app/assets/script/model/singletons/countries.js +5 -0
- package/dist/app/assets/script/model/singletons/countries.js.map +1 -0
- package/dist/app/assets/script/model/singletons/global.d.ts +20 -0
- package/dist/app/assets/script/model/singletons/global.js +5 -0
- package/dist/app/assets/script/model/singletons/global.js.map +1 -0
- package/dist/app/assets/script/model/singletons/states.d.ts +20 -0
- package/dist/app/assets/script/model/singletons/states.js +5 -0
- package/dist/app/assets/script/model/singletons/states.js.map +1 -0
- package/dist/app/assets/script/model/user.d.ts +4 -0
- package/dist/app/assets/script/model/user.js +6 -0
- package/dist/app/assets/script/model/user.js.map +1 -0
- package/dist/app/assets/script/toolkit.d.ts +1 -0
- package/dist/app/assets/script/toolkit.js +7 -0
- package/dist/app/assets/script/toolkit.js.map +1 -0
- package/dist/app/assets/script/utility/ajax.d.ts +8 -0
- package/dist/app/assets/script/utility/ajax.js +17 -0
- package/dist/app/assets/script/utility/ajax.js.map +1 -0
- package/dist/app/assets/script/utility/form.d.ts +64 -0
- package/dist/app/assets/script/utility/form.js +111 -0
- package/dist/app/assets/script/utility/form.js.map +1 -0
- package/dist/app/assets/script/utility/regex.d.ts +14 -0
- package/dist/app/assets/script/utility/regex.js +27 -0
- package/dist/app/assets/script/utility/regex.js.map +1 -0
- package/dist/app/assets/script/utility/share.d.ts +68 -0
- package/dist/app/assets/script/utility/share.js +81 -0
- package/dist/app/assets/script/utility/share.js.map +1 -0
- package/dist/app/assets/script/utility/string.d.ts +64 -0
- package/dist/app/assets/script/utility/string.js +135 -0
- package/dist/app/assets/script/utility/string.js.map +1 -0
- package/dist/app/assets/script/view/default.d.ts +11 -0
- package/dist/app/assets/script/view/default.js +15 -0
- package/dist/app/assets/script/view/default.js.map +1 -0
- package/dist/app/assets/script/view/toolkit/youtube-player-1.d.ts +23 -0
- package/dist/app/assets/script/view/toolkit/youtube-player-1.js +32 -0
- package/dist/app/assets/script/view/toolkit/youtube-player-1.js.map +1 -0
- package/dist/generators/app/index.d.ts +18 -0
- package/dist/generators/app/index.js +59 -0
- package/dist/generators/app/index.js.map +1 -0
- package/dist/scripts/build.d.ts +22 -0
- package/dist/scripts/build.js +158 -0
- package/dist/scripts/build.js.map +1 -0
- package/generators/app/index.js +2 -43
- package/generators/app/index.ts +61 -0
- package/package.json +78 -109
- package/scripts/build.ts +175 -0
- package/tsconfig.site.json +26 -0
- package/.babelrc +0 -7
- package/.editorconfig +0 -13
- package/.eslintrc +0 -64
- package/.htmllintrc +0 -6
- package/.npmignore +0 -12
- package/.sass-lint.yml +0 -16
- package/.travis.yml +0 -18
- package/app/assets/font/opensans/generator_config.txt +0 -5
- package/app/assets/font/opensans/opensans-bold-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-bold-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-bold-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-bold-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-bolditalic-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-bolditalic-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-bolditalic-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-bolditalic-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-extrabold-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-extrabold-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-extrabold-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-extrabold-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-extrabolditalic-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-extrabolditalic-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-extrabolditalic-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-extrabolditalic-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-italic-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-italic-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-italic-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-italic-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-light-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-light-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-light-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-light-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-lightitalic-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-lightitalic-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-lightitalic-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-lightitalic-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-regular-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-regular-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-regular-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-regular-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-semibold-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-semibold-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-semibold-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-semibold-webfont.woff +0 -0
- package/app/assets/font/opensans/opensans-semibolditalic-webfont.eot +0 -0
- package/app/assets/font/opensans/opensans-semibolditalic-webfont.svg +0 -1824
- package/app/assets/font/opensans/opensans-semibolditalic-webfont.ttf +0 -0
- package/app/assets/font/opensans/opensans-semibolditalic-webfont.woff +0 -0
- package/app/assets/font/opensans/specimen_files/grid_12-825-55-15.css +0 -129
- package/app/assets/font/opensans/specimen_files/specimen_stylesheet.css +0 -396
- package/app/assets/script/index.js +0 -11
- package/app/assets/script/mediator/global.js +0 -5
- package/app/assets/script/model/singletons/countries.js +0 -6
- package/app/assets/script/model/singletons/global.js +0 -6
- package/app/assets/script/model/singletons/states.js +0 -6
- package/app/assets/script/model/user.js +0 -5
- package/app/assets/script/utility/form.js +0 -86
- package/app/assets/script/utility/share.js +0 -52
- package/app/assets/script/utility/string.js +0 -70
- package/app/assets/script/view/default.js +0 -11
- package/app/assets/style/base/vendor/_foundation.scss +0 -2
- package/app/assets/test/spec/shareSpec.js +0 -137
- package/app/index.html +0 -43
- package/app/report/istanbul/base.css +0 -213
- package/app/report/istanbul/index.html +0 -93
- package/app/report/istanbul/prettify.css +0 -1
- package/app/report/istanbul/prettify.js +0 -1
- package/app/report/istanbul/sort-arrow-sprite.png +0 -0
- package/app/report/istanbul/sorter.js +0 -158
- package/app/report/istanbul/utility/form.js.html +0 -524
- package/app/report/istanbul/utility/index.html +0 -132
- package/app/report/istanbul/utility/regex.js.html +0 -203
- package/app/report/istanbul/utility/share.js.html +0 -401
- package/app/report/istanbul/utility/string.js.html +0 -446
- package/app/report/jsdoc/DragEvent.html +0 -303
- package/app/report/jsdoc/Event.html +0 -773
- package/app/report/jsdoc/EventPropagators.html +0 -336
- package/app/report/jsdoc/FocusEvent.html +0 -303
- package/app/report/jsdoc/ForEachBookKeeping.html +0 -425
- package/app/report/jsdoc/KeyboardEvent.html +0 -303
- package/app/report/jsdoc/MapBookKeeping.html +0 -457
- package/app/report/jsdoc/MouseEvent.html +0 -303
- package/app/report/jsdoc/ReactClass.html +0 -330
- package/app/report/jsdoc/ReactClassInterface.html +0 -311
- package/app/report/jsdoc/ReactDOMComponent.html +0 -349
- package/app/report/jsdoc/ReactDOMTextComponent.html +0 -348
- package/app/report/jsdoc/ReactMountReady.html +0 -340
- package/app/report/jsdoc/ReactMultiChild.html +0 -330
- package/app/report/jsdoc/ReactOwner.html +0 -351
- package/app/report/jsdoc/ReactReconcileTransaction.html +0 -342
- package/app/report/jsdoc/ReactServerRenderingTransaction.html +0 -376
- package/app/report/jsdoc/ReactServerUpdateQueue.html +0 -382
- package/app/report/jsdoc/TouchEvent.html +0 -303
- package/app/report/jsdoc/Transaction.html +0 -459
- package/app/report/jsdoc/UIEvent.html +0 -303
- package/app/report/jsdoc/WheelEvent.html +0 -303
- package/app/report/jsdoc/classes.list.html +0 -339
- package/app/report/jsdoc/fonts/glyphicons-halflings-regular.eot +0 -0
- package/app/report/jsdoc/fonts/glyphicons-halflings-regular.svg +0 -288
- package/app/report/jsdoc/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/app/report/jsdoc/fonts/glyphicons-halflings-regular.woff +0 -0
- package/app/report/jsdoc/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/app/report/jsdoc/global.html +0 -1653
- package/app/report/jsdoc/img/glyphicons-halflings-white.png +0 -0
- package/app/report/jsdoc/img/glyphicons-halflings.png +0 -0
- package/app/report/jsdoc/index.html +0 -236
- package/app/report/jsdoc/interfaces.list.html +0 -339
- package/app/report/jsdoc/quicksearch.html +0 -31
- package/app/report/jsdoc/scripts/docstrap.lib.js +0 -11
- package/app/report/jsdoc/scripts/fulltext-search-ui.js +0 -89
- package/app/report/jsdoc/scripts/fulltext-search.js +0 -36
- package/app/report/jsdoc/scripts/lunr.min.js +0 -6
- package/app/report/jsdoc/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/app/report/jsdoc/scripts/prettify/jquery.min.js +0 -6
- package/app/report/jsdoc/scripts/prettify/lang-css.js +0 -21
- package/app/report/jsdoc/scripts/prettify/prettify.js +0 -496
- package/app/report/jsdoc/scripts/sunlight.js +0 -1157
- package/app/report/jsdoc/scripts/toc.js +0 -203
- package/app/report/jsdoc/styles/darkstrap.css +0 -960
- package/app/report/jsdoc/styles/prettify-tomorrow.css +0 -132
- package/app/report/jsdoc/styles/site.cerulean.css +0 -7008
- package/app/report/jsdoc/styles/site.cosmo.css +0 -7061
- package/app/report/jsdoc/styles/site.cyborg.css +0 -7048
- package/app/report/jsdoc/styles/site.darkly.css +0 -7171
- package/app/report/jsdoc/styles/site.darkstrap.css +0 -5638
- package/app/report/jsdoc/styles/site.dibs-bootstrap.css +0 -5899
- package/app/report/jsdoc/styles/site.flatly.css +0 -7147
- package/app/report/jsdoc/styles/site.journal.css +0 -6973
- package/app/report/jsdoc/styles/site.lumen.css +0 -7298
- package/app/report/jsdoc/styles/site.paper.css +0 -7623
- package/app/report/jsdoc/styles/site.readable.css +0 -6997
- package/app/report/jsdoc/styles/site.sandstone.css +0 -7035
- package/app/report/jsdoc/styles/site.simplex.css +0 -7023
- package/app/report/jsdoc/styles/site.slate.css +0 -7343
- package/app/report/jsdoc/styles/site.spacelab.css +0 -7055
- package/app/report/jsdoc/styles/site.superhero.css +0 -7131
- package/app/report/jsdoc/styles/site.united.css +0 -6895
- package/app/report/jsdoc/styles/site.yeti.css +0 -7195
- package/app/report/jsdoc/styles/sunlight.dark.css +0 -345
- package/app/report/jsdoc/styles/sunlight.default.css +0 -344
- package/gulp/config.js +0 -207
- package/gulp/tasks/accessibility.js +0 -34
- package/gulp/tasks/build.js +0 -18
- package/gulp/tasks/clean.js +0 -18
- package/gulp/tasks/data.js +0 -22
- package/gulp/tasks/default.js +0 -9
- package/gulp/tasks/deploy.js +0 -222
- package/gulp/tasks/documentation.js +0 -28
- package/gulp/tasks/markup.js +0 -26
- package/gulp/tasks/script.js +0 -92
- package/gulp/tasks/style.js +0 -42
- package/gulp/tasks/unit.js +0 -38
- package/gulp/tasks/watch.js +0 -77
- package/gulpfile.js +0 -8
- package/jsdoc.json +0 -23
- 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,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,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
|
-
|
|
3
|
-
|
|
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
|
+
};
|