create-sitecore-jss 22.6.0-canary.9 → 22.7.0-canary.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.
- package/dist/common/processes/transform.js +2 -4
- package/dist/initializers/nextjs/index.js +2 -0
- package/dist/initializers/nextjs/prompts.js +11 -1
- package/dist/initializers/nextjs-xmcloud/index.js +2 -1
- package/dist/templates/angular/.eslintignore +3 -3
- package/dist/templates/angular/.eslintrc +66 -66
- package/dist/templates/angular/LICENSE.txt +202 -202
- package/dist/templates/angular/README.md +13 -13
- package/dist/templates/angular/angular.json +171 -171
- package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
- package/dist/templates/angular/gitignore +52 -52
- package/dist/templates/angular/package.json +116 -116
- package/dist/templates/angular/scripts/temp/gitignore +2 -2
- package/dist/templates/angular/src/app/app.component.html +1 -1
- package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
- package/dist/templates/angular/src/app/components/gitignore +7 -7
- package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
- package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +20 -20
- package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
- package/dist/templates/angular/src/app/routing/scripts/scripts.component.html +1 -1
- package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
- package/dist/templates/angular/src/environments/gitignore +1 -1
- package/dist/templates/angular/src/index.html +12 -12
- package/dist/templates/angular/src/styles.css +34 -34
- package/dist/templates/angular/src/tsconfig.app.json +21 -21
- package/dist/templates/angular/src/tsconfig.server.json +20 -20
- package/dist/templates/angular/src/tsconfig.spec.json +24 -24
- package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
- package/dist/templates/angular/tsconfig.json +38 -38
- package/dist/templates/angular-sxp/.env +2 -2
- package/dist/templates/angular-sxp/angular.json +13 -13
- package/dist/templates/angular-sxp/package.json +12 -12
- package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
- package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
- package/dist/templates/angular-sxp/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
- package/dist/templates/angular-sxp/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
- package/dist/templates/angular-sxp/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
- package/dist/templates/angular-sxp/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
- package/dist/templates/angular-sxp/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
- package/dist/templates/angular-sxp/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +19 -19
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
- package/dist/templates/angular-sxp/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
- package/dist/templates/angular-sxp/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
- package/dist/templates/angular-sxp/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
- package/dist/templates/angular-sxp/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
- package/dist/templates/angular-sxp/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
- package/dist/templates/angular-sxp/src/app/routing/navigation/navigation.component.html +23 -23
- package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.component.html +3 -3
- package/dist/templates/angular-xmcloud/README.md +87 -87
- package/dist/templates/angular-xmcloud/angular.json +33 -33
- package/dist/templates/angular-xmcloud/package.json +17 -17
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +5 -5
- package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +14 -14
- package/dist/templates/angular-xmcloud/src/app/components/image/image.component.html +36 -36
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +15 -15
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.html +23 -23
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +21 -21
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html +5 -5
- package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.html +1 -1
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +21 -21
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +8 -8
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +11 -11
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +10 -10
- package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.html +38 -38
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_component.scss +48 -48
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_container.scss +64 -64
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_fonts.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_footer.scss +31 -31
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_header.scss +51 -51
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_navigation.scss +150 -150
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_promo.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_rich-text.scss +11 -11
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_variables.scss +9 -9
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/main.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/main.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/_app.scss +103 -103
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_functions.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_mixins.scss +121 -121
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_vars.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_colors.scss +283 -283
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_fontSizes.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_margins.scss +10 -10
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/_fonts.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/index.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/_link-button.scss +26 -26
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_inputs.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_links.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_ui-datepicker.scss +7 -7
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext-files-icons.scss +86 -86
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext.scss +101 -101
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/_typehead.scss +95 -95
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-container.scss +27 -27
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-image.scss +18 -18
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-navigation.scss +51 -51
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-promo.scss +42 -42
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-richtext-content.scss +19 -19
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_alignment.scss +25 -25
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_boxed.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_clearfix.scss +11 -11
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_highlighted.scss +62 -62
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_link-button.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_promoted-box.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/index.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_bordered.scss +23 -23
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_title-row-box.scss +66 -66
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/_image-default-size.scss +6 -6
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-left.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-right.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/index.scss +17 -17
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_acaindent.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_background.scss +27 -27
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_component-link-list.scss +45 -45
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_list-vertical.scss +20 -20
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-fat.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-mobile.scss +85 -85
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-sidebar.scss +29 -29
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_sitemap-navigation.scss +20 -20
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/index.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_absolute-bottom-link.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-hero.scss +40 -40
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/index.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/_rich-text-lists.scss +63 -63
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_background-colors.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_indent.scss +13 -13
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/_component-title.scss +30 -30
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/main.scss +4 -4
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/index.scss +5 -5
- package/dist/templates/nextjs/.eslintrc +31 -31
- package/dist/templates/nextjs/.gitattributes +11 -11
- package/dist/templates/nextjs/.graphql-let.yml +8 -8
- package/dist/templates/nextjs/.prettierrc +8 -8
- package/dist/templates/nextjs/.vscode/launch.json +15 -15
- package/dist/templates/nextjs/LICENSE.txt +202 -202
- package/dist/templates/nextjs/README.md +8 -8
- package/dist/templates/nextjs/gitignore +32 -32
- package/dist/templates/nextjs/package.json +87 -87
- package/dist/templates/nextjs/scripts/temp/gitignore +2 -2
- package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
- package/dist/templates/nextjs/src/assets/app.css +36 -36
- package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
- package/dist/templates/nextjs/src/temp/gitignore +3 -3
- package/dist/templates/nextjs/tsconfig.json +38 -38
- package/dist/templates/nextjs/tsconfig.scripts.json +11 -11
- package/dist/templates/nextjs-styleguide/package.json +14 -14
- package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
- package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
- package/dist/templates/nextjs-sxa/package.json +11 -11
- package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +48 -48
- package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +64 -64
- package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
- package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +49 -49
- package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
- package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
- package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/main.scss +4 -4
- package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +103 -103
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +27 -27
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +53 -53
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +85 -85
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +13 -13
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +30 -30
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
- package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/pages/api/sitemap.ts +12 -12
- package/dist/templates/nextjs-xmcloud/.env +19 -19
- package/dist/templates/nextjs-xmcloud/package.json +8 -8
- package/dist/templates/nextjs-xmcloud/scripts/generate-component-builder/plugins/form.ts +24 -0
- package/dist/templates/nextjs-xmcloud/src/lib/next-config/plugins/monorepo-xmcloud.js +4 -0
- package/dist/templates/nextjs-xmcloud/src/pages/[[...path]].tsx +112 -0
- package/dist/templates/node-headless-ssr-experience-edge/README.md +56 -56
- package/dist/templates/node-headless-ssr-experience-edge/gitignore +19 -19
- package/dist/templates/node-headless-ssr-experience-edge/package.json +34 -34
- package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
- package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
- package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
- package/dist/templates/node-headless-ssr-proxy/README.md +65 -65
- package/dist/templates/node-headless-ssr-proxy/gitignore +19 -19
- package/dist/templates/node-headless-ssr-proxy/package.json +39 -39
- package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
- package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
- package/dist/templates/node-xmcloud-proxy/README.md +165 -165
- package/dist/templates/node-xmcloud-proxy/gitignore +33 -33
- package/dist/templates/node-xmcloud-proxy/package.json +26 -26
- package/dist/templates/node-xmcloud-proxy/tsconfig.json +22 -22
- package/dist/templates/react/.prettierrc +9 -9
- package/dist/templates/react/LICENSE.txt +202 -202
- package/dist/templates/react/README.md +2402 -2402
- package/dist/templates/react/gitignore +25 -25
- package/dist/templates/react/package.json +5 -5
- package/dist/templates/react/public/index.html +35 -35
- package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/react/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/react/sitecore/gitignore +2 -2
- package/dist/templates/react/src/assets/sc_logo.svg +52 -52
- package/dist/templates/react/src/components/graphql/query.graphql +69 -69
- package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
- package/dist/templates/react/src/temp/gitignore +3 -3
- package/dist/templates/react-native/package.json +4 -4
- package/dist/templates/vue/.browserslistrc +2 -2
- package/dist/templates/vue/.prettierrc +9 -9
- package/dist/templates/vue/LICENSE.txt +202 -202
- package/dist/templates/vue/README.md +36 -36
- package/dist/templates/vue/gitignore +25 -25
- package/dist/templates/vue/package.json +87 -87
- package/dist/templates/vue/public/index.html +27 -27
- package/dist/templates/vue/public/manifest.json +14 -14
- package/dist/templates/vue/public/robots.txt +2 -2
- package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
- package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/vue/sitecore/gitignore +4 -4
- package/dist/templates/vue/src/assets/app.css +30 -30
- package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
- package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
- package/dist/templates/vue/src/temp/gitignore +3 -3
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-edit-frame">
|
|
2
|
-
<sc-edit-frame [dataSource]="editFrameProps.dataSource"
|
|
3
|
-
[buttons]="editFrameProps.buttons"
|
|
4
|
-
[title]="editFrameProps.title"
|
|
5
|
-
[tooltip]="editFrameProps.tooltip"
|
|
6
|
-
[cssClass]="editFrameProps.cssClass"
|
|
7
|
-
[parameters]="editFrameProps.parameters"
|
|
8
|
-
[sitecore]="context">
|
|
9
|
-
This is the content that will be wrapped by edit frame in Experience Editor.<br/>
|
|
10
|
-
Try out the custom webedit buttons for a variety of tasks like executing javascript, or webedit commands. <br/>
|
|
11
|
-
Or use field edit buttons to author fields that are not usually editable in Experience Editor.<br/>
|
|
12
|
-
<br/>
|
|
13
|
-
<p [ngStyle]="{'color': (applyRed ? 'red': 'blue')}">This text will change color. Use the field edit button to change its appearance</p>
|
|
14
|
-
This list can be changed via field editor:
|
|
15
|
-
<ul>
|
|
16
|
-
<li *ngFor="let contentItem of rendering.fields.sampleList">{{contentItem.fields.title?.value}}</li>
|
|
17
|
-
</ul>
|
|
18
|
-
<ng-content></ng-content>
|
|
19
|
-
</sc-edit-frame>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-edit-frame">
|
|
2
|
+
<sc-edit-frame [dataSource]="editFrameProps.dataSource"
|
|
3
|
+
[buttons]="editFrameProps.buttons"
|
|
4
|
+
[title]="editFrameProps.title"
|
|
5
|
+
[tooltip]="editFrameProps.tooltip"
|
|
6
|
+
[cssClass]="editFrameProps.cssClass"
|
|
7
|
+
[parameters]="editFrameProps.parameters"
|
|
8
|
+
[sitecore]="context">
|
|
9
|
+
This is the content that will be wrapped by edit frame in Experience Editor.<br/>
|
|
10
|
+
Try out the custom webedit buttons for a variety of tasks like executing javascript, or webedit commands. <br/>
|
|
11
|
+
Or use field edit buttons to author fields that are not usually editable in Experience Editor.<br/>
|
|
12
|
+
<br/>
|
|
13
|
+
<p [ngStyle]="{'color': (applyRed ? 'red': 'blue')}">This text will change color. Use the field edit button to change its appearance</p>
|
|
14
|
+
This list can be changed via field editor:
|
|
15
|
+
<ul>
|
|
16
|
+
<li *ngFor="let contentItem of rendering.fields.sampleList">{{contentItem.fields.title?.value}}</li>
|
|
17
|
+
</ul>
|
|
18
|
+
<ng-content></ng-content>
|
|
19
|
+
</sc-edit-frame>
|
|
20
20
|
</app-styleguide-specimen>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-checkbox">
|
|
2
|
-
<!-- Checkbox fields do not have the ability to be inline edited, so they are directly accessed via their value: -->
|
|
3
|
-
<ul>
|
|
4
|
-
<li>
|
|
5
|
-
<code>checkbox</code> is {{ checkbox1Value }}
|
|
6
|
-
</li>
|
|
7
|
-
<li>
|
|
8
|
-
<code>checkbox2</code> is {{ checkbox2Value }}
|
|
9
|
-
</li>
|
|
10
|
-
</ul>
|
|
11
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-checkbox">
|
|
2
|
+
<!-- Checkbox fields do not have the ability to be inline edited, so they are directly accessed via their value: -->
|
|
3
|
+
<ul>
|
|
4
|
+
<li>
|
|
5
|
+
<code>checkbox</code> is {{ checkbox1Value }}
|
|
6
|
+
</li>
|
|
7
|
+
<li>
|
|
8
|
+
<code>checkbox2</code> is {{ checkbox2Value }}
|
|
9
|
+
</li>
|
|
10
|
+
</ul>
|
|
11
|
+
</app-styleguide-specimen>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-content-list">
|
|
2
|
-
<h5>Shared Content List</h5>
|
|
3
|
-
<!--
|
|
4
|
-
Content list fields are returned with their value as an array of the referenced items.
|
|
5
|
-
So we can use the .map() array function to traverse them. Ensure a `key` attribute is set
|
|
6
|
-
on each element to make React's DOM updating happy:
|
|
7
|
-
-->
|
|
8
|
-
<ng-container *ngIf="rendering.fields.sharedContentList">
|
|
9
|
-
<div *ngFor="let listItem of rendering.fields.sharedContentList">
|
|
10
|
-
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
11
|
-
<p>
|
|
12
|
-
Field: <span *scText="listItem.fields.textField"></span>
|
|
13
|
-
</p>
|
|
14
|
-
</div>
|
|
15
|
-
</ng-container>
|
|
16
|
-
|
|
17
|
-
<h5>Local Content List</h5>
|
|
18
|
-
<ng-container *ngIf="rendering.fields.localContentList">
|
|
19
|
-
<div *ngFor="let listItem of rendering.fields.localContentList">
|
|
20
|
-
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
21
|
-
<p>
|
|
22
|
-
Field: <span *scText="listItem.fields.textField"></span>
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
|
-
</ng-container>
|
|
26
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-content-list">
|
|
2
|
+
<h5>Shared Content List</h5>
|
|
3
|
+
<!--
|
|
4
|
+
Content list fields are returned with their value as an array of the referenced items.
|
|
5
|
+
So we can use the .map() array function to traverse them. Ensure a `key` attribute is set
|
|
6
|
+
on each element to make React's DOM updating happy:
|
|
7
|
+
-->
|
|
8
|
+
<ng-container *ngIf="rendering.fields.sharedContentList">
|
|
9
|
+
<div *ngFor="let listItem of rendering.fields.sharedContentList">
|
|
10
|
+
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
11
|
+
<p>
|
|
12
|
+
Field: <span *scText="listItem.fields.textField"></span>
|
|
13
|
+
</p>
|
|
14
|
+
</div>
|
|
15
|
+
</ng-container>
|
|
16
|
+
|
|
17
|
+
<h5>Local Content List</h5>
|
|
18
|
+
<ng-container *ngIf="rendering.fields.localContentList">
|
|
19
|
+
<div *ngFor="let listItem of rendering.fields.localContentList">
|
|
20
|
+
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
21
|
+
<p>
|
|
22
|
+
Field: <span *scText="listItem.fields.textField"></span>
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
</ng-container>
|
|
26
|
+
</app-styleguide-specimen>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-custom">
|
|
2
|
-
<!-- Because the integer field is essentially text, we can render it with the *scText helper -->
|
|
3
|
-
<span *scText="rendering.fields.customIntField"></span>
|
|
4
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-custom">
|
|
2
|
+
<!-- Because the integer field is essentially text, we can render it with the *scText helper -->
|
|
3
|
+
<span *scText="rendering.fields.customIntField"></span>
|
|
4
|
+
</app-styleguide-specimen>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-date">
|
|
2
|
-
<ul>
|
|
3
|
-
<li>
|
|
4
|
-
<!--
|
|
5
|
-
The format and timezone here give us an identical output to React and Vue JSS apps;
|
|
6
|
-
Angular defaults to a local date format in the current timezone if no format/timezone is set,
|
|
7
|
-
which makes testing unpredictable.
|
|
8
|
-
-->
|
|
9
|
-
Date directive (date field): <span *scDate="rendering.fields.date; format: isoDateFormat; timezone: utcTimezone;"></span>
|
|
10
|
-
</li>
|
|
11
|
-
<li>
|
|
12
|
-
Date directive (dateTime field): <span *scDate="rendering.fields.dateTime; format: isoDateFormat; timezone: utcTimezone;"></span>
|
|
13
|
-
</li>
|
|
14
|
-
<li>
|
|
15
|
-
<!--
|
|
16
|
-
IMPORTANT: When editing the date in Experience Editor, the format, timezone, and locale options are ignored.
|
|
17
|
-
The formatting options only apply when previewing or viewing the page in normal mode.
|
|
18
|
-
-->
|
|
19
|
-
Date formatting (same parameters as <a href="https://angular.io/api/common/DatePipe">date pipe</a>):
|
|
20
|
-
<span *scDate="rendering.fields.date; format: 'full'"></span>
|
|
21
|
-
</li>
|
|
22
|
-
<li>
|
|
23
|
-
Time zones and locales:
|
|
24
|
-
<span *scDate="rendering.fields.date; format: 'full'; timezone: '-0400'; locale: 'en-US'"></span>
|
|
25
|
-
</li>
|
|
26
|
-
</ul>
|
|
27
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-date">
|
|
2
|
+
<ul>
|
|
3
|
+
<li>
|
|
4
|
+
<!--
|
|
5
|
+
The format and timezone here give us an identical output to React and Vue JSS apps;
|
|
6
|
+
Angular defaults to a local date format in the current timezone if no format/timezone is set,
|
|
7
|
+
which makes testing unpredictable.
|
|
8
|
+
-->
|
|
9
|
+
Date directive (date field): <span *scDate="rendering.fields.date; format: isoDateFormat; timezone: utcTimezone;"></span>
|
|
10
|
+
</li>
|
|
11
|
+
<li>
|
|
12
|
+
Date directive (dateTime field): <span *scDate="rendering.fields.dateTime; format: isoDateFormat; timezone: utcTimezone;"></span>
|
|
13
|
+
</li>
|
|
14
|
+
<li>
|
|
15
|
+
<!--
|
|
16
|
+
IMPORTANT: When editing the date in Experience Editor, the format, timezone, and locale options are ignored.
|
|
17
|
+
The formatting options only apply when previewing or viewing the page in normal mode.
|
|
18
|
+
-->
|
|
19
|
+
Date formatting (same parameters as <a href="https://angular.io/api/common/DatePipe">date pipe</a>):
|
|
20
|
+
<span *scDate="rendering.fields.date; format: 'full'"></span>
|
|
21
|
+
</li>
|
|
22
|
+
<li>
|
|
23
|
+
Time zones and locales:
|
|
24
|
+
<span *scDate="rendering.fields.date; format: 'full'; timezone: '-0400'; locale: 'en-US'"></span>
|
|
25
|
+
</li>
|
|
26
|
+
</ul>
|
|
27
|
+
</app-styleguide-specimen>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-file">
|
|
2
|
-
<!-- Renders a file link -->
|
|
3
|
-
<a *scFile="rendering.fields.file"></a>
|
|
4
|
-
<br />
|
|
5
|
-
|
|
6
|
-
<!-- Renders a file link with a custom body and opening in a new tab -->
|
|
7
|
-
<a *scFile="rendering.fields.file" target="_blank">
|
|
8
|
-
Custom link body
|
|
9
|
-
</a>
|
|
10
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-file">
|
|
2
|
+
<!-- Renders a file link -->
|
|
3
|
+
<a *scFile="rendering.fields.file"></a>
|
|
4
|
+
<br />
|
|
5
|
+
|
|
6
|
+
<!-- Renders a file link with a custom body and opening in a new tab -->
|
|
7
|
+
<a *scFile="rendering.fields.file" target="_blank">
|
|
8
|
+
Custom link body
|
|
9
|
+
</a>
|
|
10
|
+
</app-styleguide-specimen>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-image">
|
|
2
|
-
<p>Plain image</p>
|
|
3
|
-
<img *scImage="rendering.fields.sample1" />
|
|
4
|
-
|
|
5
|
-
<!--
|
|
6
|
-
Advanced image usage example
|
|
7
|
-
editable: controls whether image can be edited in Sitecore Experience Editor
|
|
8
|
-
urlParams: parameters that are passed to Sitecore to perform server-side resizing of the image.
|
|
9
|
-
IMPORTANT: urlParams must be whitelisted for resizing to occur. See /sitecore/config/*.config (search for 'allowedMediaParams')
|
|
10
|
-
any other attributes: pass through to img tag
|
|
11
|
-
-->
|
|
12
|
-
<p>Advanced image (not editable)</p>
|
|
13
|
-
<img *scImage="rendering.fields.sample2; editable: false; urlParams: scaledImageParams"
|
|
14
|
-
height="50"
|
|
15
|
-
width="94"
|
|
16
|
-
data-sample="other-attributes-pass-through"
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<!--
|
|
20
|
-
Srcset adaptive image usage example
|
|
21
|
-
Adaptive srcsets are supported using Sitecore server-side resizing.
|
|
22
|
-
Setting `attrs.srcSet` can use Sitecore image resizing parameters (i.e. w, h, mw, mh). See the .ts file for implementation.
|
|
23
|
-
IMPORTANT: srcSet params must be whitelisted for adaptive resizing to occur. See /sitecore/config/*.config (search for 'allowedMediaParams')
|
|
24
|
-
-->
|
|
25
|
-
<p>Srcset responsive image</p>
|
|
26
|
-
<img *scImage="rendering.fields.sample2; attrs: srcSetImageAttributes"
|
|
27
|
-
sizes="(min-width: 960px) 300px, 100px"
|
|
28
|
-
class="img-fluid"
|
|
29
|
-
/>
|
|
30
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-image">
|
|
2
|
+
<p>Plain image</p>
|
|
3
|
+
<img *scImage="rendering.fields.sample1" />
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
Advanced image usage example
|
|
7
|
+
editable: controls whether image can be edited in Sitecore Experience Editor
|
|
8
|
+
urlParams: parameters that are passed to Sitecore to perform server-side resizing of the image.
|
|
9
|
+
IMPORTANT: urlParams must be whitelisted for resizing to occur. See /sitecore/config/*.config (search for 'allowedMediaParams')
|
|
10
|
+
any other attributes: pass through to img tag
|
|
11
|
+
-->
|
|
12
|
+
<p>Advanced image (not editable)</p>
|
|
13
|
+
<img *scImage="rendering.fields.sample2; editable: false; urlParams: scaledImageParams"
|
|
14
|
+
height="50"
|
|
15
|
+
width="94"
|
|
16
|
+
data-sample="other-attributes-pass-through"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
Srcset adaptive image usage example
|
|
21
|
+
Adaptive srcsets are supported using Sitecore server-side resizing.
|
|
22
|
+
Setting `attrs.srcSet` can use Sitecore image resizing parameters (i.e. w, h, mw, mh). See the .ts file for implementation.
|
|
23
|
+
IMPORTANT: srcSet params must be whitelisted for adaptive resizing to occur. See /sitecore/config/*.config (search for 'allowedMediaParams')
|
|
24
|
+
-->
|
|
25
|
+
<p>Srcset responsive image</p>
|
|
26
|
+
<img *scImage="rendering.fields.sample2; attrs: srcSetImageAttributes"
|
|
27
|
+
sizes="(min-width: 960px) 300px, 100px"
|
|
28
|
+
class="img-fluid"
|
|
29
|
+
/>
|
|
30
|
+
</app-styleguide-specimen>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-itemlink">
|
|
2
|
-
<h5>Shared Item Link</h5>
|
|
3
|
-
<!-- Item link fields are returned with their value as the referenced item value. -->
|
|
4
|
-
<ng-container *ngIf="rendering.fields.sharedItemLink">
|
|
5
|
-
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
6
|
-
<p>
|
|
7
|
-
Field: <span *scText="rendering.fields.sharedItemLink.fields.textField"></span>
|
|
8
|
-
</p>
|
|
9
|
-
</ng-container>
|
|
10
|
-
|
|
11
|
-
<h5>Local Item Link</h5>
|
|
12
|
-
<ng-container *ngIf="rendering.fields.localItemLink">
|
|
13
|
-
<p>
|
|
14
|
-
Field: <span *scText="rendering.fields.localItemLink.fields.textField"></span>
|
|
15
|
-
</p>
|
|
16
|
-
</ng-container>
|
|
17
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-itemlink">
|
|
2
|
+
<h5>Shared Item Link</h5>
|
|
3
|
+
<!-- Item link fields are returned with their value as the referenced item value. -->
|
|
4
|
+
<ng-container *ngIf="rendering.fields.sharedItemLink">
|
|
5
|
+
<!-- The referenced item's fields can be rendered and edited using normal helper components: -->
|
|
6
|
+
<p>
|
|
7
|
+
Field: <span *scText="rendering.fields.sharedItemLink.fields.textField"></span>
|
|
8
|
+
</p>
|
|
9
|
+
</ng-container>
|
|
10
|
+
|
|
11
|
+
<h5>Local Item Link</h5>
|
|
12
|
+
<ng-container *ngIf="rendering.fields.localItemLink">
|
|
13
|
+
<p>
|
|
14
|
+
Field: <span *scText="rendering.fields.localItemLink.fields.textField"></span>
|
|
15
|
+
</p>
|
|
16
|
+
</ng-container>
|
|
17
|
+
</app-styleguide-specimen>
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-link">
|
|
2
|
-
External link:
|
|
3
|
-
<a *scLink="rendering.fields.externalLink"></a>
|
|
4
|
-
<br />
|
|
5
|
-
Internal link:
|
|
6
|
-
<a *scLink="rendering.fields.internalLink">
|
|
7
|
-
<em>HTML</em> or other components can be used within link renderers, for example links to
|
|
8
|
-
images.
|
|
9
|
-
<!--
|
|
10
|
-
IMPORTANT: When using other components as a link body,
|
|
11
|
-
be aware that when using Experience Editor to edit the link,
|
|
12
|
-
it will render differently than it will in normal or preview modes.
|
|
13
|
-
Due to technical limitations, it will render like:
|
|
14
|
-
<span class="sc-link-wrapper">
|
|
15
|
-
<a href="#">this link is editable</a>
|
|
16
|
-
</span>
|
|
17
|
-
<a href="#">Link body components</a>
|
|
18
|
-
|
|
19
|
-
When not editing, the same component would render as:
|
|
20
|
-
<a href="#">Link body components</a>
|
|
21
|
-
-->
|
|
22
|
-
</a>
|
|
23
|
-
<br />
|
|
24
|
-
Email link:
|
|
25
|
-
<a *scLink="rendering.fields.emailLink"></a>
|
|
26
|
-
<br />
|
|
27
|
-
All possible content params link:
|
|
28
|
-
<a *scLink="rendering.fields.paramsLink"></a>
|
|
29
|
-
<br />
|
|
30
|
-
The link component accepts params of its own:
|
|
31
|
-
<a *scLink="rendering.fields.externalLink; attrs: linkDynamicAttributes"
|
|
32
|
-
class="fw-bold"
|
|
33
|
-
data-otherattributes="pass-through-to-anchor-tag"
|
|
34
|
-
></a>
|
|
35
|
-
<br />
|
|
36
|
-
Link using Angular routing for the target:
|
|
37
|
-
<a *scRouterLink="rendering.fields.internalLink">Router link to /</a>
|
|
38
|
-
|
|
39
|
-
Link using both internal and Angular routing links for the target:
|
|
40
|
-
<a *scGenericLink="rendering.fields.internalLink">Generic internal link</a>
|
|
41
|
-
<a *scGenericLink="rendering.fields.externalLink">Generic external link </a>
|
|
42
|
-
<a *scGenericLink="rendering.fields.emailLink">Generic email link</a>
|
|
43
|
-
<a *scGenericLink="rendering.fields.paramsLink">Generic parameterized link</a>
|
|
44
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-link">
|
|
2
|
+
External link:
|
|
3
|
+
<a *scLink="rendering.fields.externalLink"></a>
|
|
4
|
+
<br />
|
|
5
|
+
Internal link:
|
|
6
|
+
<a *scLink="rendering.fields.internalLink">
|
|
7
|
+
<em>HTML</em> or other components can be used within link renderers, for example links to
|
|
8
|
+
images.
|
|
9
|
+
<!--
|
|
10
|
+
IMPORTANT: When using other components as a link body,
|
|
11
|
+
be aware that when using Experience Editor to edit the link,
|
|
12
|
+
it will render differently than it will in normal or preview modes.
|
|
13
|
+
Due to technical limitations, it will render like:
|
|
14
|
+
<span class="sc-link-wrapper">
|
|
15
|
+
<a href="#">this link is editable</a>
|
|
16
|
+
</span>
|
|
17
|
+
<a href="#">Link body components</a>
|
|
18
|
+
|
|
19
|
+
When not editing, the same component would render as:
|
|
20
|
+
<a href="#">Link body components</a>
|
|
21
|
+
-->
|
|
22
|
+
</a>
|
|
23
|
+
<br />
|
|
24
|
+
Email link:
|
|
25
|
+
<a *scLink="rendering.fields.emailLink"></a>
|
|
26
|
+
<br />
|
|
27
|
+
All possible content params link:
|
|
28
|
+
<a *scLink="rendering.fields.paramsLink"></a>
|
|
29
|
+
<br />
|
|
30
|
+
The link component accepts params of its own:
|
|
31
|
+
<a *scLink="rendering.fields.externalLink; attrs: linkDynamicAttributes"
|
|
32
|
+
class="fw-bold"
|
|
33
|
+
data-otherattributes="pass-through-to-anchor-tag"
|
|
34
|
+
></a>
|
|
35
|
+
<br />
|
|
36
|
+
Link using Angular routing for the target:
|
|
37
|
+
<a *scRouterLink="rendering.fields.internalLink">Router link to /</a>
|
|
38
|
+
|
|
39
|
+
Link using both internal and Angular routing links for the target:
|
|
40
|
+
<a *scGenericLink="rendering.fields.internalLink">Generic internal link</a>
|
|
41
|
+
<a *scGenericLink="rendering.fields.externalLink">Generic external link </a>
|
|
42
|
+
<a *scGenericLink="rendering.fields.emailLink">Generic email link</a>
|
|
43
|
+
<a *scGenericLink="rendering.fields.paramsLink">Generic parameterized link</a>
|
|
44
|
+
</app-styleguide-specimen>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-number">
|
|
2
|
-
<!-- Basic emission of a number field for editing can be done with the *scText component. -->
|
|
3
|
-
<p *scText="rendering.fields.sample"></p>
|
|
4
|
-
|
|
5
|
-
<!-- Direct access to the value, which is a JS number, is also supported. -->
|
|
6
|
-
<p>
|
|
7
|
-
JS value type: {{ valueType }}
|
|
8
|
-
<br />
|
|
9
|
-
JS value: {{ fieldValue }}
|
|
10
|
-
</p>
|
|
11
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-number">
|
|
2
|
+
<!-- Basic emission of a number field for editing can be done with the *scText component. -->
|
|
3
|
+
<p *scText="rendering.fields.sample"></p>
|
|
4
|
+
|
|
5
|
+
<!-- Direct access to the value, which is a JS number, is also supported. -->
|
|
6
|
+
<p>
|
|
7
|
+
JS value type: {{ valueType }}
|
|
8
|
+
<br />
|
|
9
|
+
JS value: {{ fieldValue }}
|
|
10
|
+
</p>
|
|
11
|
+
</app-styleguide-specimen>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-richtext">
|
|
2
|
-
<!-- Basic use of a rich text field. Wraps in a <div>. -->
|
|
3
|
-
<div *scRichText="rendering.fields.sample"></div>
|
|
4
|
-
|
|
5
|
-
<!-- Advanced usage of rich text field. Specifies a custom wrapper tag, turns off Sitecore editing, and has a CSS class on the wrapper -->
|
|
6
|
-
<section *scRichText="rendering.fields.sample2; editable: false"
|
|
7
|
-
clas="text-center"
|
|
8
|
-
data-sample="other-attributes-pass-through"
|
|
9
|
-
>
|
|
10
|
-
</section>
|
|
11
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-richtext">
|
|
2
|
+
<!-- Basic use of a rich text field. Wraps in a <div>. -->
|
|
3
|
+
<div *scRichText="rendering.fields.sample"></div>
|
|
4
|
+
|
|
5
|
+
<!-- Advanced usage of rich text field. Specifies a custom wrapper tag, turns off Sitecore editing, and has a CSS class on the wrapper -->
|
|
6
|
+
<section *scRichText="rendering.fields.sample2; editable: false"
|
|
7
|
+
clas="text-center"
|
|
8
|
+
data-sample="other-attributes-pass-through"
|
|
9
|
+
>
|
|
10
|
+
</section>
|
|
11
|
+
</app-styleguide-specimen>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-text">
|
|
2
|
-
<!-- Basic use of a text field. -->
|
|
3
|
-
<p *scText="rendering.fields.sample"></p>
|
|
4
|
-
|
|
5
|
-
<!-- Advanced usage of text field. Turns off Sitecore editing, supports raw HTML, and has a CSS class on the wrapper -->
|
|
6
|
-
<section
|
|
7
|
-
*scText="rendering.fields.sample2; encode: false; editable: false"
|
|
8
|
-
class="fw-bold"
|
|
9
|
-
data-sample="other-attributes-pass-through"
|
|
10
|
-
></section>
|
|
11
|
-
|
|
12
|
-
<div>Raw value (not editable): {{rawFieldValue}}</div>
|
|
13
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-fieldusage-text">
|
|
2
|
+
<!-- Basic use of a text field. -->
|
|
3
|
+
<p *scText="rendering.fields.sample"></p>
|
|
4
|
+
|
|
5
|
+
<!-- Advanced usage of text field. Turns off Sitecore editing, supports raw HTML, and has a CSS class on the wrapper -->
|
|
6
|
+
<section
|
|
7
|
+
*scText="rendering.fields.sample2; encode: false; editable: false"
|
|
8
|
+
class="fw-bold"
|
|
9
|
+
data-sample="other-attributes-pass-through"
|
|
10
|
+
></section>
|
|
11
|
+
|
|
12
|
+
<div>Raw value (not editable): {{rawFieldValue}}</div>
|
|
13
|
+
</app-styleguide-specimen>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<div class="row">
|
|
2
|
-
<div class="col-sm-8 col-lg-10">
|
|
3
|
-
<sc-placeholder
|
|
4
|
-
name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout"
|
|
5
|
-
[rendering]="rendering"
|
|
6
|
-
></sc-placeholder>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="col-sm-4 col-lg-2 order-sm-first pt-2">
|
|
9
|
-
<nav *ngFor="let section of navigation" class="nav flex-column pt-2">
|
|
10
|
-
<a [href]="'/styleguide#' + section.id" class="nav-item fw-bold">
|
|
11
|
-
{{ section.heading }}
|
|
12
|
-
</a>
|
|
13
|
-
<nav *ngFor="let topic of section.children" class="nav flex-column">
|
|
14
|
-
<a [href]="'/styleguide#' + topic.id">
|
|
15
|
-
{{ topic.heading }}
|
|
16
|
-
</a>
|
|
17
|
-
</nav>
|
|
18
|
-
</nav>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
1
|
+
<div class="row">
|
|
2
|
+
<div class="col-sm-8 col-lg-10">
|
|
3
|
+
<sc-placeholder
|
|
4
|
+
name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout"
|
|
5
|
+
[rendering]="rendering"
|
|
6
|
+
></sc-placeholder>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="col-sm-4 col-lg-2 order-sm-first pt-2">
|
|
9
|
+
<nav *ngFor="let section of navigation" class="nav flex-column pt-2">
|
|
10
|
+
<a [href]="'/styleguide#' + section.id" class="nav-item fw-bold">
|
|
11
|
+
{{ section.heading }}
|
|
12
|
+
</a>
|
|
13
|
+
<nav *ngFor="let topic of section.children" class="nav flex-column">
|
|
14
|
+
<a [href]="'/styleguide#' + topic.id">
|
|
15
|
+
{{ topic.heading }}
|
|
16
|
+
</a>
|
|
17
|
+
</nav>
|
|
18
|
+
</nav>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-layout-reuse">
|
|
2
|
-
<!--
|
|
3
|
-
This placeholder is:
|
|
4
|
-
- Using the `sc-placeholder` attribute to avoid rendering a wrapping tag of its own, so that Bootstrap's columns will work
|
|
5
|
-
(.row > sc-placeholder > .col-sm will not layout with flexbox, but .row > .col-sm will)
|
|
6
|
-
- Using templating to enable customizing the markup for each component within. In this case, it's placing each component
|
|
7
|
-
in its own column of a flexbox layout - giving an n-up columnar layout. The component itself does not need to know that
|
|
8
|
-
it's living in a columnar layout.
|
|
9
|
-
-->
|
|
10
|
-
<div
|
|
11
|
-
class="row"
|
|
12
|
-
sc-placeholder
|
|
13
|
-
name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-reuse-example"
|
|
14
|
-
[rendering]="rendering"
|
|
15
|
-
>
|
|
16
|
-
<!--
|
|
17
|
-
Customized component rendering
|
|
18
|
-
You can customize the rendering of each component in this placeholder using the renderEach template.
|
|
19
|
-
This technique is useful for things like flexible column layouts (like this one), or to wrap each component
|
|
20
|
-
in <li>, or otherwise alter the component rendering from outside the component itself.
|
|
21
|
-
|
|
22
|
-
If you need to know the index of the rendering, you can add 'let-index="index"' to the ng-template
|
|
23
|
-
Remove the template entirely to use default component rendering (no wrappers, etc)
|
|
24
|
-
-->
|
|
25
|
-
<ng-template renderEach let-rendering="rendering">
|
|
26
|
-
<div class="col-sm">
|
|
27
|
-
<!-- renders a single component like a placeholder does, based on the component data -->
|
|
28
|
-
<sc-render-component [rendering]="rendering"></sc-render-component>
|
|
29
|
-
</div>
|
|
30
|
-
</ng-template>
|
|
31
|
-
<!--
|
|
32
|
-
Customized empty placeholder rendering
|
|
33
|
-
When using renderEach, in some situations an _empty placeholder_ (with no components in it)
|
|
34
|
-
may not be editable in the Sitecore Experience Editor. In this example, because of the use
|
|
35
|
-
of flexbox by the bootstrap columns, adding a bare <div> for the selectable empty placeholder
|
|
36
|
-
results in it being hidden as it does not have a column class.
|
|
37
|
-
|
|
38
|
-
Using the renderEmpty template allows us to customize the rendering of an empty placeholder
|
|
39
|
-
and place it within a column div so that we can select it correctly.
|
|
40
|
-
-->
|
|
41
|
-
<ng-template renderEmpty let-renderings="renderings">
|
|
42
|
-
<div class="col-sm">
|
|
43
|
-
<!--
|
|
44
|
-
The empty placeholder is rendered with another sc-placeholder, but using the
|
|
45
|
-
renderings (plural) input instead of rendering. In this mode, it accepts a
|
|
46
|
-
raw component data array, and name is unnecessary.
|
|
47
|
-
-->
|
|
48
|
-
<sc-placeholder [renderings]="renderings"></sc-placeholder>
|
|
49
|
-
</div>
|
|
50
|
-
</ng-template>
|
|
51
|
-
</div>
|
|
52
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-layout-reuse">
|
|
2
|
+
<!--
|
|
3
|
+
This placeholder is:
|
|
4
|
+
- Using the `sc-placeholder` attribute to avoid rendering a wrapping tag of its own, so that Bootstrap's columns will work
|
|
5
|
+
(.row > sc-placeholder > .col-sm will not layout with flexbox, but .row > .col-sm will)
|
|
6
|
+
- Using templating to enable customizing the markup for each component within. In this case, it's placing each component
|
|
7
|
+
in its own column of a flexbox layout - giving an n-up columnar layout. The component itself does not need to know that
|
|
8
|
+
it's living in a columnar layout.
|
|
9
|
+
-->
|
|
10
|
+
<div
|
|
11
|
+
class="row"
|
|
12
|
+
sc-placeholder
|
|
13
|
+
name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-reuse-example"
|
|
14
|
+
[rendering]="rendering"
|
|
15
|
+
>
|
|
16
|
+
<!--
|
|
17
|
+
Customized component rendering
|
|
18
|
+
You can customize the rendering of each component in this placeholder using the renderEach template.
|
|
19
|
+
This technique is useful for things like flexible column layouts (like this one), or to wrap each component
|
|
20
|
+
in <li>, or otherwise alter the component rendering from outside the component itself.
|
|
21
|
+
|
|
22
|
+
If you need to know the index of the rendering, you can add 'let-index="index"' to the ng-template
|
|
23
|
+
Remove the template entirely to use default component rendering (no wrappers, etc)
|
|
24
|
+
-->
|
|
25
|
+
<ng-template renderEach let-rendering="rendering">
|
|
26
|
+
<div class="col-sm">
|
|
27
|
+
<!-- renders a single component like a placeholder does, based on the component data -->
|
|
28
|
+
<sc-render-component [rendering]="rendering"></sc-render-component>
|
|
29
|
+
</div>
|
|
30
|
+
</ng-template>
|
|
31
|
+
<!--
|
|
32
|
+
Customized empty placeholder rendering
|
|
33
|
+
When using renderEach, in some situations an _empty placeholder_ (with no components in it)
|
|
34
|
+
may not be editable in the Sitecore Experience Editor. In this example, because of the use
|
|
35
|
+
of flexbox by the bootstrap columns, adding a bare <div> for the selectable empty placeholder
|
|
36
|
+
results in it being hidden as it does not have a column class.
|
|
37
|
+
|
|
38
|
+
Using the renderEmpty template allows us to customize the rendering of an empty placeholder
|
|
39
|
+
and place it within a column div so that we can select it correctly.
|
|
40
|
+
-->
|
|
41
|
+
<ng-template renderEmpty let-renderings="renderings">
|
|
42
|
+
<div class="col-sm">
|
|
43
|
+
<!--
|
|
44
|
+
The empty placeholder is rendered with another sc-placeholder, but using the
|
|
45
|
+
renderings (plural) input instead of rendering. In this mode, it accepts a
|
|
46
|
+
raw component data array, and name is unnecessary.
|
|
47
|
+
-->
|
|
48
|
+
<sc-placeholder [renderings]="renderings"></sc-placeholder>
|
|
49
|
+
</div>
|
|
50
|
+
</ng-template>
|
|
51
|
+
</div>
|
|
52
|
+
</app-styleguide-specimen>
|