diff --git a/fragments/navigationnested/hatch.js b/fragments/navigationnested/hatch.js new file mode 100644 index 000000000..03232e86e --- /dev/null +++ b/fragments/navigationnested/hatch.js @@ -0,0 +1,15 @@ +module.exports = { + convert: function($, f) { + f.bindAttribute($, 'style', "`list-style-type: none;padding: 0px;display:${active[i] ? 'flex' : 'none'};`", false) + f.addFor($.find('li.children').first(), 'model.childrenPages', 'child') + f.bindAttribute($.find('li.children a').first(),'href',f.pathToUrl('child.path')) + f.mapField($.find('li.children a').first(),'child.title') + f.replace( $.find('ul.nested').eq(0), '') + f.addIf($.find('themecleanflex-components-navigationnested').first(), 'child.hasChildren && child.childrenPages && child.childrenPages.length > 0') + + let nestedArrow = $.find('svg').eq(0); + f.addIf(nestedArrow, 'child.hasChildren && child.childrenPages && child.childrenPages.length > 0'); + f.bindAttribute(nestedArrow, "style", "`transform:rotate(180deg);`") + f.bindEvent(nestedArrow, 'click', "(e) => { toggleItem(i, e) }") + } +} \ No newline at end of file diff --git a/fragments/navigationnested/model.json b/fragments/navigationnested/model.json new file mode 100644 index 000000000..5cd8af7a2 --- /dev/null +++ b/fragments/navigationnested/model.json @@ -0,0 +1,10 @@ +{ + "definitions": { + "Navigationnested": { + "type": "object", + "x-type": "component", + "properties": { + } + } + } + } \ No newline at end of file diff --git a/fragments/navigationnested/readme.md b/fragments/navigationnested/readme.md new file mode 100644 index 000000000..d3f13d711 --- /dev/null +++ b/fragments/navigationnested/readme.md @@ -0,0 +1,3 @@ +# Navigation Nested + +Used by the Navigation component diff --git a/fragments/navigationnested/sample.json b/fragments/navigationnested/sample.json new file mode 100644 index 000000000..b8fcdb360 --- /dev/null +++ b/fragments/navigationnested/sample.json @@ -0,0 +1,6 @@ +{ + "title": "Navigationnested", + "group": ".hidden", + "model": { + } + } \ No newline at end of file diff --git a/fragments/navigationnested/template.html b/fragments/navigationnested/template.html new file mode 100644 index 000000000..f1ff51a46 --- /dev/null +++ b/fragments/navigationnested/template.html @@ -0,0 +1,68 @@ + + + \ No newline at end of file diff --git a/fragments/navigationnested/template.vue b/fragments/navigationnested/template.vue new file mode 100644 index 000000000..442b6fccc --- /dev/null +++ b/fragments/navigationnested/template.vue @@ -0,0 +1,65 @@ + + + + + + \ No newline at end of file diff --git a/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/.content.xml b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/.content.xml new file mode 100644 index 000000000..245773550 --- /dev/null +++ b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/.content.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/dialog.json b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/dialog.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/dialog.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/template.vue b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/template.vue new file mode 100644 index 000000000..0a7bbad56 --- /dev/null +++ b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/navigationnested/template.vue @@ -0,0 +1,68 @@ + + + + + + \ No newline at end of file diff --git a/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/page/renderer.html b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/page/renderer.html index 769f5acbc..38c113c98 100644 --- a/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/page/renderer.html +++ b/ui.apps/src/main/content/jcr_root/apps/themecleanflex/components/page/renderer.html @@ -40,4 +40,5 @@ $peregrineApp.loadComponent('themecleanflex-components-menubuttons') $peregrineApp.loadComponent('themecleanflex-components-socialicons') $peregrineApp.loadComponent('themecleanflex-components-pagelistnested') + $peregrineApp.loadComponent('themecleanflex-components-navigationnested') diff --git a/ui.apps/src/main/content/jcr_root/etc/felibs/themecleanflex/css/build.css b/ui.apps/src/main/content/jcr_root/etc/felibs/themecleanflex/css/build.css index 723c2b197..d87243967 100644 --- a/ui.apps/src/main/content/jcr_root/etc/felibs/themecleanflex/css/build.css +++ b/ui.apps/src/main/content/jcr_root/etc/felibs/themecleanflex/css/build.css @@ -621,16 +621,6 @@ video { background-color: var(--bg-secondary); } -.hover\:bg-black:hover { - --bg-opacity: 1; - background-color: #000; - background-color: rgba(0, 0, 0, var(--bg-opacity)); -} - -.hover\:bg-gray-200:hover { - background-color: var(--color-gray-200); -} - .hover\:bg-blue-700:hover { background-color: var(--color-blue-700); } @@ -759,10 +749,6 @@ video { align-self: center; } -.self-stretch { - align-self: stretch; -} - .justify-start { justify-content: flex-start; } @@ -1100,10 +1086,6 @@ video { color: rgba(255, 255, 255, var(--text-opacity)); } -.text-gray-200 { - color: var(--color-gray-200); -} - .text-gray-800 { color: var(--color-gray-800); } @@ -1136,10 +1118,6 @@ video { color: rgba(255, 255, 255, var(--text-opacity)); } -.hover\:text-gray-200:hover { - color: var(--color-gray-200); -} - .hover\:text-red-600:hover { color: var(--color-red-600); } @@ -1284,6 +1262,17 @@ video { z-index: 10; } +.transform { + --transform-translate-x: 0; + --transform-translate-y: 0; + --transform-rotate: 0; + --transform-skew-x: 0; + --transform-skew-y: 0; + --transform-scale-x: 1; + --transform-scale-y: 1; + transform: translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y)); +} + .transition-colors { transition-property: background-color, border-color, color, fill, stroke; }