diff --git a/.travis.yml b/.travis.yml index f39921d84..4413096c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_install: - if [[ $TRAVIS_BRANCH != "master" && $SONAR_ENABLED == "true" ]]; then mvn sonar:sonar -q "-Dsonar.branch.name=${TRAVIS_BRANCH}" "-Dsonar.branch.target=master" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}" && echo "SONAR ON ${TRAVIS_BRANCH} DONE"; fi install: - - mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -q && echo "INSTALL DONE" +# - mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -q && echo "INSTALL DONE" - mvn test -q && bash <(curl -s https://codecov.io/bash) - echo "CODECOVERAGE DONE" @@ -40,6 +40,8 @@ deploy: file: - aemdesign-aem-core-deploy/target/aemdesign-aem-core-deploy-$CURRENT_VERSION.zip - aemdesign-aem-services/target/aemdesign-aem-services-$CURRENT_VERSION.jar + - aemdesign-aem-author/target/aemdesign-aem-author-$CURRENT_VERSION.zip + - aemdesign-aem-common/target/aemdesign-aem-common-$CURRENT_VERSION.zip skip_cleanup: true on: branch: master diff --git a/README.md b/README.md index 4791ae63d..59081ad6d 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,19 @@ Detailed table of component can be found here [Component List](https://github.co The components' versioning scheme is documented on the [AEM Core WCM Components' versioning policies](https://github.com/adobe/aem-core-wcm-components/wiki/Versioning-policies) wiki page. +## Module Purpose + +Following is a description of each repo and their purpose. + +For more information see [Project Artifacts](http://aem.design/manifesto/project/#project-artifacts) + +| Repo | Notes | +|---------------------------------|---------------------------------------------| +| aemdesign-aem-author/ | has all of the components and configurations that modify/update AEM | +| aemdesign-aem-common/ | has all of the components code | +| aemdesign-aem-core-deploy/ | monolith package for all projects | +| aemdesign-aem-services/ | has all of the code that compiled and installed by common project | + ## System Requirements The latest version of the Core Components, require the below system requirements: diff --git a/aemdesign-aem-author/pom.xml b/aemdesign-aem-author/pom.xml index 41693b645..5a77aa8e2 100755 --- a/aemdesign-aem-author/pom.xml +++ b/aemdesign-aem-author/pom.xml @@ -8,7 +8,7 @@ design.aem aemdesign-aem-core - 2.0.420 + 2.0.508 ../pom.xml @@ -17,7 +17,7 @@ aemdesign-aem-author - 2.0.420 + 2.0.508 content-package AEM Design - Core - AEM Author UI Updates Updates to OOTB AEM diff --git a/aemdesign-aem-common/pom.xml b/aemdesign-aem-common/pom.xml index 08c249206..dbfcad425 100755 --- a/aemdesign-aem-common/pom.xml +++ b/aemdesign-aem-common/pom.xml @@ -8,7 +8,7 @@ design.aem aemdesign-aem-core - 2.0.420 + 2.0.508 ../pom.xml @@ -17,7 +17,7 @@ aemdesign-aem-common - 2.0.420 + 2.0.508 content-package AEM Design - Core - AEM Common AEM Design package with all common components diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/analytics/datalayer/v2/datalayer/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/analytics/datalayer/v2/datalayer/README.md index fb7cbabfe..96ec62b75 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/analytics/datalayer/v2/datalayer/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/analytics/datalayer/v2/datalayer/README.md @@ -9,7 +9,7 @@ Component that outputs analytics content into the page ### Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v1 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/analytics/datalayer.html](/content/aemdesign-showcase/en/analytics/datalayer.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/analytics/datalayer/v2/datalayer](/crx/de/#/apps/aemdesign/components/analytics/datalayer/v2/datalayer) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification/README.md index e8ef43f8f..3060de219 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification/README.md @@ -10,7 +10,7 @@ Component for adding a Redirect Notification to a template to show author in a E ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/common/redirectnotification](/content/aemdesign-showcase/en/component/common/redirectnotification.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification](/crx/de/#/apps/aemdesign/components/common/redirectnotification/v2/redirectnotification) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/staticinclude/v2/staticinclude/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/staticinclude/v2/staticinclude/README.md index 1b2dcc910..dc7891a16 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/staticinclude/v2/staticinclude/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/staticinclude/v2/staticinclude/README.md @@ -10,7 +10,7 @@ Add timing statistic to a page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/staticincludes/staticinclude/v2/staticinclude](/content/aemdesign-showcase/en/component/staticincludes/staticinclude.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/staticincludes/staticinclude/v2/staticinclude](/crx/de/#/apps/aemdesign/components/staticincludes/staticinclude/v2/staticinclude) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/timing/v2/timing/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/timing/v2/timing/README.md index c4519ab2e..dde636da5 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/timing/v2/timing/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/common/timing/v2/timing/README.md @@ -10,7 +10,7 @@ Component for adding a timing information to a page. ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/timings/timing/v2/timing](/content/aemdesign-showcase/en/component/timings/timing.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/timings/timing/v2/timing](/crx/de/#/apps/aemdesign/components/timings/timing/v2/timing) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/contentfragment/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/contentfragment/.content.xml new file mode 100755 index 000000000..e2ea90040 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/contentfragment/.content.xml @@ -0,0 +1,9 @@ + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/download/v2/download/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/download/v2/download/README.md index 965e8680b..14f0622bf 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/download/v2/download/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/download/v2/download/README.md @@ -10,7 +10,7 @@ Component for adding Assets from DAM to a page to allow download. ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/download](/content/aemdesign-showcase/en/component/content/download.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/download/v2/download](/crx/de/#/apps/aemdesign/components/content/download/v2/download) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/embedsource/v2/embedsource/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/embedsource/v2/embedsource/README.md index 7a7bb6a64..a3f525a4e 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/embedsource/v2/embedsource/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/embedsource/v2/embedsource/README.md @@ -10,7 +10,7 @@ Component for adding ad-hoc HTML to pages ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/embedsource](/content/aemdesign-showcase/en/component/content/embedsource.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/embedsource/v2/embedsource](/crx/de/#/apps/aemdesign/components/content/embedsource/v2/embedsource) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/external/v2/external/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/external/v2/external/README.md index 7a7bb6a64..a3f525a4e 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/external/v2/external/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/external/v2/external/README.md @@ -10,7 +10,7 @@ Component for adding ad-hoc HTML to pages ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/embedsource](/content/aemdesign-showcase/en/component/content/embedsource.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/embedsource/v2/embedsource](/crx/de/#/apps/aemdesign/components/content/embedsource/v2/embedsource) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/link/v2/link/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/link/v2/link/README.md index dd83e876c..c718ebf79 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/link/v2/link/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/link/v2/link/README.md @@ -11,7 +11,7 @@ Call to Acton can be a Link or a Button. ### Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/link/v2/link](/content/aemdesign-showcase/en/component/content/link.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/link/v2/link](/crx/de/index.jsp#/apps/aemdesign/components/content/link/v2/link) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pageauthor/v2/pageauthor/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pageauthor/v2/pageauthor/README.md index 46d21a017..046b782c1 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pageauthor/v2/pageauthor/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pageauthor/v2/pageauthor/README.md @@ -10,7 +10,7 @@ Component for displaying the date on the page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/pageauthor](/content/aemdesign-showcase/en/component/content/pageauthor.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/pageauthor/v2/pageauthor](/crx/de/#/apps/aemdesign/components/content/pageauthor/v2/pageauthor) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedate/v2/pagedate/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedate/v2/pagedate/README.md index 765d3b390..6c48ec53e 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedate/v2/pagedate/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedate/v2/pagedate/README.md @@ -10,7 +10,7 @@ Component for displaying the date on the page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/pagedate](/content/aemdesign-showcase/en/component/content/pagedate.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/pagedate/v2/pagedate](/crx/de/#/apps/aemdesign/components/content/pagedate/v2/pagedate) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedescription/v2/pagedescription/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedescription/v2/pagedescription/README.md index a00853e25..b2e0140e1 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedescription/v2/pagedescription/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagedescription/v2/pagedescription/README.md @@ -10,7 +10,7 @@ Component for displaying the jcr:description property of the page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/pagedescription](/content/aemdesign-showcase/en/component/content/pagedescription.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/pagedescription/v2/pagedescription](/crx/de/#/apps/aemdesign/components/content/pagedescription/v2/pagedescription) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetags/v2/pagetags/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetags/v2/pagetags/README.md index 22d4f0329..ab557d59d 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetags/v2/pagetags/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetags/v2/pagetags/README.md @@ -10,7 +10,7 @@ Component for displaying the cq:tags property of the page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/pagetags](/content/aemdesign-showcase/en/component/content/pagetags.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/pagetags/v2/pagetags](/crx/de/#/apps/aemdesign/components/content/pagetags/v2/pagetags) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetitle/v2/pagetitle/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetitle/v2/pagetitle/README.md index 62df11b97..614a11747 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetitle/v2/pagetitle/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/pagetitle/v2/pagetitle/README.md @@ -10,7 +10,7 @@ Component for displaying the jcr:title property of the page ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/pagetitle](/content/aemdesign-showcase/en/component/content/pagetitle.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/pagetitle/v2/pagetitle](/crx/de/#/apps/aemdesign/components/content/pagetitle/v2/pagetitle) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/reference/v2/reference/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/reference/v2/reference/README.md index 53a1c4278..cab3760c7 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/reference/v2/reference/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/reference/v2/reference/README.md @@ -10,7 +10,7 @@ Component for rendering or including content from other pages ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/reference](/content/aemdesign-showcase/en/component/content/reference.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/reference/v2/reference](/crx/de/#/apps/aemdesign/components/content/reference/v2/reference) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/table/v2/table/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/table/v2/table/README.md index 1ba97fd20..d16ceec26 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/table/v2/table/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/table/v2/table/README.md @@ -10,7 +10,7 @@ Component for adding tables to pages ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v1 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/table](/content/aemdesign-showcase/en/component/content/table.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/table/v2/table](/crx/de/#/apps/aemdesign/components/content/table/v2/table) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/text/v2/text/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/text/v2/text/README.md index 5124c6c39..570d12642 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/text/v2/text/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/text/v2/text/README.md @@ -10,7 +10,7 @@ Component for adding text to pages ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/text](/content/aemdesign-showcase/en/component/content/text.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/text/v2/text](/crx/de/#/apps/aemdesign/components/content/text/v2/text) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/tooltip/v2/tooltip/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/tooltip/v2/tooltip/README.md index a7f72add9..33b9946ba 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/tooltip/v2/tooltip/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/content/tooltip/v2/tooltip/README.md @@ -7,10 +7,14 @@ Tooltip component Component for adding tooltips to pages to use with other content or images +## Usage Example + +If you would like to have an image with points of interest that could be interacted with by user when image is displayed. You could add a contentblock, then add to it an image and a number of tooltips and use Position X and Y as relative coordinates in image. Then you could use Java Script to load those tooltips as overlay icons on the the image. + ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/content/tooltip](/content/aemdesign-showcase/en/component/content/tooltip.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/content/tooltip/v2/tooltip](/crx/de/#/apps/aemdesign/components/content/tooltip/v2/tooltip) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/coral/datasources/tags/tags.jsp b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/coral/datasources/tags/tags.jsp index ce9816c5e..b1d9677c6 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/coral/datasources/tags/tags.jsp +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/coral/datasources/tags/tags.jsp @@ -117,6 +117,7 @@ ValueMap vm = new ValueMapDecorator(new HashMap()); String value = tagId; + String valueAlt = ""; String text = tag.getTitlePath(locale); if (childVM!=null) { @@ -138,11 +139,14 @@ value = childVM.get("value", ""); text = tag.getTitle(locale); } + + valueAlt = childVM.get("valuealt", ""); } vm.put("value", value); vm.put("text", text); + vm.put("valueAlt", valueAlt); return new ValueMapResource(resolver, new ResourceMetadata(), "nt:unstructured", vm); } diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/README.md index d0631a085..ef1b4ef72 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/README.md @@ -10,7 +10,7 @@ Component for adding Contact metadata to a page and Badge config info which is u ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v1 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/details/contact-details](/content/aemdesign-showcase/en/component/details/contact-details.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/details/contact-details/v2/contact-details](/crx/de/#/apps/aemdesign/components/details/contact-details/v2/contact-details) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/event-details/v2/event-details/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/event-details/v2/event-details/README.md index 25a8386a9..0076120a1 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/event-details/v2/event-details/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/event-details/v2/event-details/README.md @@ -10,7 +10,7 @@ Component for adding content metadata to a event and Badge config info which is ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v2 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/details/event-details.html](/content/aemdesign-showcase/en/component/details/event-details.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/details/event-details/v2/event-details](/crx/de/#/apps/aemdesign/components/details/event-details/v2/event-details) diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/.content.xml new file mode 100644 index 000000000..697d380a1 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/.content.xml @@ -0,0 +1,5 @@ + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css.txt b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css.txt new file mode 100644 index 000000000..b4eeee811 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css.txt @@ -0,0 +1,2 @@ +#base=css +style.css diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css/style.css b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css/style.css new file mode 100644 index 000000000..e69de29bb diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js.txt b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js.txt new file mode 100644 index 000000000..9c70f18bb --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js.txt @@ -0,0 +1,3 @@ +#base=js +functions.js +behaviour.js \ No newline at end of file diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/behaviour.js b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/behaviour.js new file mode 100755 index 000000000..a68886573 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/behaviour.js @@ -0,0 +1,75 @@ +//genericdetails - behaviour +window.AEMDESIGN = window.AEMDESIGN || {}; +window.AEMDESIGN.components = AEMDESIGN.components || {}; +window.AEMDESIGN.components.authoring = AEMDESIGN.components.authoring || {}; +window.AEMDESIGN.components.authoring.genericdetails = AEMDESIGN.components.authoring.genericdetails || {}; + + +(function ($, $document, Coral, ns, window, undefined) { //NOSONAR convention for wrapping all modules + + console.log(["dialog-genericdetails-behaviour","ready"]); + $(document).on('dialog-ready', function () { + console.log(["dialog-genericdetails-behaviour","checking"]); + if ($('#dialog-genericdetails')[0]) { + + console.log(["dialog-genericdetails-behaviour","loading"]); + + // $document.on('change', '.pageMetaProperty, .pageMetaPropertyContent', function (event) { + // + // var element = event.target, + // parentElement = element.closest('.dialog-genericdetails-costomfields'), + // childpageMetaPropertyElement = parentElement.querySelector('.pageMetaProperty'), + // childpageMetaPropertyContentElement = parentElement.querySelector('.pageMetaPropertyContent') + // + // }); + + //load content into field + if ($('#dialog-genericdetails').find('.genericdetails-costomfields')[0]) { + + var $form = $("#dialog-genericdetails").closest('form'); + console.log(['$form', $form]); + var formUrl = $form[0].action; + $.getJSON(formUrl + '.json').done(function (data) { + console.log(data); + var + fieldconfigKey = data.pageMetaProperty, + fieldconfigValue = data.pageMetaPropertyContent; + + + if (fieldconfigKey) { + //turn plain string into array + if (typeof fieldconfigKey === 'string') { + fieldconfigKey = [fieldconfigKey]; + } + //turn plain string into array + if (fieldconfigValue && (typeof fieldconfigValue === 'string')) { + fieldconfigValue = [fieldconfigValue]; + } + + + fieldconfigKey.forEach(function (key, index) { + var curr = $('#dialog-genericdetails').find('.genericdetails-costomfields')[0].items.add(); + Coral.commons.ready(curr, function (readyCurr) { + $(readyCurr).find('[name="./pageMetaProperty"]')[0].value = fieldconfigKey[index]; + $(readyCurr).find('[name="./pageMetaPropertyContent"]')[0].value = fieldconfigValue[index]; + + }); + }); + } + else { + //$('.genericdetails-costomfields')[0].items.add(); + } + + + }); + + } else { + console.log(["dialog-genericdetails-behaviour","genericdetails-costomfields","not found"]); + } + + + } + }); + + +})($, $(document), Coral, AEMDESIGN.components.authoring.genericdetails, this); //pass in additional dependencies diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/functions.js b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/functions.js new file mode 100755 index 000000000..46096c2e6 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/functions.js @@ -0,0 +1,76 @@ +//genericdetails - functions +window.AEMDESIGN = window.AEMDESIGN || {}; +window.AEMDESIGN.components = AEMDESIGN.components || {}; +window.AEMDESIGN.components.authoring = AEMDESIGN.components.authoring || {}; +window.AEMDESIGN.components.authoring.genericdetails = AEMDESIGN.components.authoring.genericdetails || {}; + +(function ($, $document, Coral, ns, window, undefined) { //NOSONAR convention for wrapping all modules + + + "use strict"; + var _version = "0.1"; + + ns.version = function () { + return _version; + }; + + + ns.authorUrl = ''; + ns.publishUrl = ''; + + ns.getExternalizeUrl = function() { + $.ajax({ + type: 'GET', + url: Granite.HTTP.externalize + ('/libs/fd/workflow/components/servlets/fetchexternalizerurl.json'), + cache: false, + }).done(function (data, textStatus, jqXHR) { + if (data && data.authorUrl) { + ns.authorUrl = data.authorUrl; + } + if (data && data.publishUrl) { + ns.publishUrl = data.publishUrl; + } + + console.log(["dialog-genericdetails-functions","getExternalizeUrl",ns.authorUrl,ns.publishUrl]); + + }).fail(function (jqXHR, textStatus, errorThrown) { + console.log('error'); + }); + }; + + ns.processMultifieldItem = function(multifieldClass) { + var multifieldItems = $(multifieldClass + " coral-multifield-item"); + for (var i = 0; i < multifieldItems.length; i++) { + Coral.commons.ready(multifieldItems[i], function (currentMultifieldItem) { + hideOrderButton(currentMultifieldItem); + }); + } + } + + ns.hideOrderButton = function(currentMultifieldItem) { + var buttonsOnMultifieldItem = $(currentMultifieldItem).find("button"); + if (buttonsOnMultifieldItem[2]) { + buttonsOnMultifieldItem[2].hide(); + } + } + + ns.hideDelAndOrderButtons = function(curr) { + var buttons = $(curr).find('button'); + if (buttons) { + $(buttons[0]).hide(); + if (buttons.length > 1) { + $(buttons[1]).hide(); + } + } + }; + + ns.hideMultifieldAddButton = function(element) { + $(element).find('button[coral-multifield-add]')[0].hide(); + }; + + ns.getExternalizeUrl(); + console.log(["dialog-genericdetails-functions","loaded"]); + + +})($, $(document), Coral, AEMDESIGN.components.authoring.genericdetails, this); //pass in additional dependencies diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/README.md b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/README.md index 1c4a35c27..80dd6f383 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/README.md +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/README.md @@ -10,7 +10,7 @@ Component for providing base functions for details components ## Information * **Vendor**: [AEM.Design](http://aem.design) * **Version**: v1 -* **Compatibility**: AEM 6.4 +* **Compatibility**: AEM 6.4+ * **Status**: production-ready * **Showcase**: [/content/aemdesign-showcase/en/component/details/generic-details](/content/aemdesign-showcase/en/component/details/generic-details.html?wcmmode=disabled) * **Local Code**: [/apps/aemdesign/components/details/generic-details/v1/generic-details](/crx/de/#/apps/aemdesign/components/details/generic-details/v1/generic-details) @@ -18,9 +18,15 @@ Component for providing base functions for details components * **Readme**: [/apps/aemdesign/components/details/generic-details/v1/generic-details](/mnt/overlay/wcm/core/content/sites/components/details.html/apps/aemdesign/components/details/generic-details/v1/generic-details) ## Features -* Provides mechanism to add page details and badge config -* Provides consistent Page Banner experience -* Supports dynamic badges using sling selectors `http://localhost:4502/content/aemdesign-showcase/au/en/component/details/generic-details/jcr:content/article/par/genericdetails.card-image.image.title.text.date.html` +* Allow creating custom Variants by selecting: + * a custom template + * field to display + * pre-configured template which takes priority over other config fields +* Allow creating custom Badges by selecting: + * a custom template + * field to display + * pre-configured template which takes priority over other config fields +* Supports dynamic badges rendering using sling selectors `http://localhost:4502/content/aemdesign-showcase/au/en/component/details/generic-details/jcr:content/article/par/genericdetails.card-image.image.title.text.date.html` # Authoring diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/_cq_design_dialog/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/_cq_design_dialog/.content.xml new file mode 100644 index 000000000..32871eb0d --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/_cq_design_dialog/.content.xml @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +