From 1f6b2dd1359b4a9712a960175df2888c2f81d486 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 24 Nov 2020 12:24:39 +0300 Subject: [PATCH] Fixed #672 - New Timeline Component --- exports/timeline.d.ts | 1 + exports/timeline.js | 2 + public/themes/arya-blue/theme.css | 25 ++ public/themes/arya-green/theme.css | 25 ++ public/themes/arya-orange/theme.css | 25 ++ public/themes/arya-purple/theme.css | 25 ++ public/themes/bootstrap4-dark-blue/theme.css | 25 ++ .../themes/bootstrap4-dark-purple/theme.css | 25 ++ public/themes/bootstrap4-light-blue/theme.css | 25 ++ .../themes/bootstrap4-light-purple/theme.css | 25 ++ public/themes/fluent-light/theme.css | 25 ++ public/themes/luna-amber/theme.css | 25 ++ public/themes/luna-blue/theme.css | 25 ++ public/themes/luna-green/theme.css | 25 ++ public/themes/luna-pink/theme.css | 25 ++ public/themes/md-dark-deeppurple/theme.css | 25 ++ public/themes/md-dark-indigo/theme.css | 25 ++ public/themes/md-light-deeppurple/theme.css | 25 ++ public/themes/md-light-indigo/theme.css | 25 ++ public/themes/mdc-dark-deeppurple/theme.css | 25 ++ public/themes/mdc-dark-indigo/theme.css | 25 ++ public/themes/mdc-light-deeppurple/theme.css | 25 ++ public/themes/mdc-light-indigo/theme.css | 25 ++ public/themes/nova-accent/theme.css | 25 ++ public/themes/nova-alt/theme.css | 25 ++ public/themes/nova-vue/theme.css | 25 ++ public/themes/nova/theme.css | 25 ++ public/themes/rhea/theme.css | 25 ++ public/themes/saga-blue/theme.css | 25 ++ public/themes/saga-green/theme.css | 25 ++ public/themes/saga-orange/theme.css | 25 ++ public/themes/saga-purple/theme.css | 25 ++ public/themes/vela-blue/theme.css | 25 ++ public/themes/vela-green/theme.css | 25 ++ public/themes/vela-orange/theme.css | 25 ++ public/themes/vela-purple/theme.css | 25 ++ src/AppMenu.vue | 1 + src/assets/styles/app/_menu.scss | 5 + src/components/timeline/Timeline.d.ts | 13 + src/components/timeline/Timeline.vue | 164 ++++++++ src/main.js | 2 + src/router/index.js | 5 + src/views/timeline/TimelineDemo.vue | 165 ++++++++ src/views/timeline/TimelineDoc.vue | 360 ++++++++++++++++++ 44 files changed, 1568 insertions(+) create mode 100644 exports/timeline.d.ts create mode 100644 exports/timeline.js create mode 100644 src/components/timeline/Timeline.d.ts create mode 100644 src/components/timeline/Timeline.vue create mode 100644 src/views/timeline/TimelineDemo.vue create mode 100644 src/views/timeline/TimelineDoc.vue diff --git a/exports/timeline.d.ts b/exports/timeline.d.ts new file mode 100644 index 000000000..ee9a556a9 --- /dev/null +++ b/exports/timeline.d.ts @@ -0,0 +1 @@ +export * from './components/timeline/Timeline'; \ No newline at end of file diff --git a/exports/timeline.js b/exports/timeline.js new file mode 100644 index 000000000..31416916c --- /dev/null +++ b/exports/timeline.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./components/timeline/Timeline.vue'); \ No newline at end of file diff --git a/public/themes/arya-blue/theme.css b/public/themes/arya-blue/theme.css index 9b0b1e818..fb120681b 100644 --- a/public/themes/arya-blue/theme.css +++ b/public/themes/arya-blue/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #64B5F6; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1e1e1e; +} +.p-timeline .p-timeline-event-connector { + background-color: #383838; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #383838; background: #1e1e1e; diff --git a/public/themes/arya-green/theme.css b/public/themes/arya-green/theme.css index 9b033a1b8..29ab61abb 100644 --- a/public/themes/arya-green/theme.css +++ b/public/themes/arya-green/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #81C784; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1e1e1e; +} +.p-timeline .p-timeline-event-connector { + background-color: #383838; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #383838; background: #1e1e1e; diff --git a/public/themes/arya-orange/theme.css b/public/themes/arya-orange/theme.css index 688ea74a0..17717903e 100644 --- a/public/themes/arya-orange/theme.css +++ b/public/themes/arya-orange/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #FFD54F; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1e1e1e; +} +.p-timeline .p-timeline-event-connector { + background-color: #383838; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #383838; background: #1e1e1e; diff --git a/public/themes/arya-purple/theme.css b/public/themes/arya-purple/theme.css index 7712e7f1d..cfd659492 100644 --- a/public/themes/arya-purple/theme.css +++ b/public/themes/arya-purple/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #BA68C8; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1e1e1e; +} +.p-timeline .p-timeline-event-connector { + background-color: #383838; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #383838; background: #1e1e1e; diff --git a/public/themes/bootstrap4-dark-blue/theme.css b/public/themes/bootstrap4-dark-blue/theme.css index fcdf63731..ec71ab428 100644 --- a/public/themes/bootstrap4-dark-blue/theme.css +++ b/public/themes/bootstrap4-dark-blue/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #8dd0ff; +} +.p-timeline .p-timeline-event-connector { + background-color: #3f4b5b; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #3f4b5b; background: #2a323d; diff --git a/public/themes/bootstrap4-dark-purple/theme.css b/public/themes/bootstrap4-dark-purple/theme.css index d5ffd7e5c..bbd49b491 100644 --- a/public/themes/bootstrap4-dark-purple/theme.css +++ b/public/themes/bootstrap4-dark-purple/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #c298d8; +} +.p-timeline .p-timeline-event-connector { + background-color: #3f4b5b; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #3f4b5b; background: #2a323d; diff --git a/public/themes/bootstrap4-light-blue/theme.css b/public/themes/bootstrap4-light-blue/theme.css index 15b346b8d..b528f7466 100644 --- a/public/themes/bootstrap4-light-blue/theme.css +++ b/public/themes/bootstrap4-light-blue/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #007bff; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/bootstrap4-light-purple/theme.css b/public/themes/bootstrap4-light-purple/theme.css index fcc9b491b..bb542dc0b 100644 --- a/public/themes/bootstrap4-light-purple/theme.css +++ b/public/themes/bootstrap4-light-purple/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #883cae; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/fluent-light/theme.css b/public/themes/fluent-light/theme.css index df4124790..7f2057ff3 100644 --- a/public/themes/fluent-light/theme.css +++ b/public/themes/fluent-light/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #0078d4; +} +.p-timeline .p-timeline-event-connector { + background-color: #a19f9d; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #a19f9d; background: #ffffff; diff --git a/public/themes/luna-amber/theme.css b/public/themes/luna-amber/theme.css index da0e2f9bf..e2801b2d6 100644 --- a/public/themes/luna-amber/theme.css +++ b/public/themes/luna-amber/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #FFE082; +} +.p-timeline .p-timeline-event-connector { + background-color: #191919; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #191919; background: #323232; diff --git a/public/themes/luna-blue/theme.css b/public/themes/luna-blue/theme.css index ab1ea98b3..06ebdddf8 100644 --- a/public/themes/luna-blue/theme.css +++ b/public/themes/luna-blue/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #81D4FA; +} +.p-timeline .p-timeline-event-connector { + background-color: #191919; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #191919; background: #323232; diff --git a/public/themes/luna-green/theme.css b/public/themes/luna-green/theme.css index f9f7f7a53..3c6716f4b 100644 --- a/public/themes/luna-green/theme.css +++ b/public/themes/luna-green/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #C5E1A5; +} +.p-timeline .p-timeline-event-connector { + background-color: #191919; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #191919; background: #323232; diff --git a/public/themes/luna-pink/theme.css b/public/themes/luna-pink/theme.css index 8758039b2..7794eaf6d 100644 --- a/public/themes/luna-pink/theme.css +++ b/public/themes/luna-pink/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #F48FB1; +} +.p-timeline .p-timeline-event-connector { + background-color: #191919; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #191919; background: #323232; diff --git a/public/themes/md-dark-deeppurple/theme.css b/public/themes/md-dark-deeppurple/theme.css index 49842a859..f99388c95 100644 --- a/public/themes/md-dark-deeppurple/theme.css +++ b/public/themes/md-dark-deeppurple/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid rgba(255, 255, 255, 0.12); background: #1e1e1e; diff --git a/public/themes/md-dark-indigo/theme.css b/public/themes/md-dark-indigo/theme.css index cf1fa25cc..3c465cc22 100644 --- a/public/themes/md-dark-indigo/theme.css +++ b/public/themes/md-dark-indigo/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid rgba(255, 255, 255, 0.12); background: #1e1e1e; diff --git a/public/themes/md-light-deeppurple/theme.css b/public/themes/md-light-deeppurple/theme.css index 6df57fd29..db75d5630 100644 --- a/public/themes/md-light-deeppurple/theme.css +++ b/public/themes/md-light-deeppurple/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #e0e0e0; background: #ffffff; diff --git a/public/themes/md-light-indigo/theme.css b/public/themes/md-light-indigo/theme.css index 56d6ee974..729483369 100644 --- a/public/themes/md-light-indigo/theme.css +++ b/public/themes/md-light-indigo/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #e0e0e0; background: #ffffff; diff --git a/public/themes/mdc-dark-deeppurple/theme.css b/public/themes/mdc-dark-deeppurple/theme.css index 267c97a50..004ce8d64 100644 --- a/public/themes/mdc-dark-deeppurple/theme.css +++ b/public/themes/mdc-dark-deeppurple/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid rgba(255, 255, 255, 0.12); background: #1e1e1e; diff --git a/public/themes/mdc-dark-indigo/theme.css b/public/themes/mdc-dark-indigo/theme.css index be73cd4db..43510c2aa 100644 --- a/public/themes/mdc-dark-indigo/theme.css +++ b/public/themes/mdc-dark-indigo/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid rgba(255, 255, 255, 0.12); background: #1e1e1e; diff --git a/public/themes/mdc-light-deeppurple/theme.css b/public/themes/mdc-light-deeppurple/theme.css index 4c8e55918..0ae10dcf2 100644 --- a/public/themes/mdc-light-deeppurple/theme.css +++ b/public/themes/mdc-light-deeppurple/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #e0e0e0; background: #ffffff; diff --git a/public/themes/mdc-light-indigo/theme.css b/public/themes/mdc-light-indigo/theme.css index 8a70f9184..f4f43e326 100644 --- a/public/themes/mdc-light-indigo/theme.css +++ b/public/themes/mdc-light-indigo/theme.css @@ -2371,6 +2371,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #bdbdbd; +} +.p-timeline .p-timeline-event-connector { + background-color: #bdbdbd; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #e0e0e0; background: #ffffff; diff --git a/public/themes/nova-accent/theme.css b/public/themes/nova-accent/theme.css index 4c8e1790f..49902671e 100644 --- a/public/themes/nova-accent/theme.css +++ b/public/themes/nova-accent/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #e02365; +} +.p-timeline .p-timeline-event-connector { + background-color: #c8c8c8; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #c8c8c8; background: #ffffff; diff --git a/public/themes/nova-alt/theme.css b/public/themes/nova-alt/theme.css index f9c39aade..fd3c481a0 100644 --- a/public/themes/nova-alt/theme.css +++ b/public/themes/nova-alt/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #007ad9; +} +.p-timeline .p-timeline-event-connector { + background-color: #c8c8c8; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #c8c8c8; background: #ffffff; diff --git a/public/themes/nova-vue/theme.css b/public/themes/nova-vue/theme.css index 381f15100..5bad15699 100644 --- a/public/themes/nova-vue/theme.css +++ b/public/themes/nova-vue/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #41b883; +} +.p-timeline .p-timeline-event-connector { + background-color: #c8c8c8; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #c8c8c8; background: #ffffff; diff --git a/public/themes/nova/theme.css b/public/themes/nova/theme.css index 049bf1d1b..f76b4f13f 100644 --- a/public/themes/nova/theme.css +++ b/public/themes/nova/theme.css @@ -2359,6 +2359,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #007ad9; +} +.p-timeline .p-timeline-event-connector { + background-color: #c8c8c8; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #c8c8c8; background: #ffffff; diff --git a/public/themes/rhea/theme.css b/public/themes/rhea/theme.css index 761a107f0..aadfb786c 100644 --- a/public/themes/rhea/theme.css +++ b/public/themes/rhea/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 0 none; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #AFD3C8; +} +.p-timeline .p-timeline-event-connector { + background-color: #c8c8c8; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dadada; background: #ffffff; diff --git a/public/themes/saga-blue/theme.css b/public/themes/saga-blue/theme.css index 51d29b707..5e6da29f6 100644 --- a/public/themes/saga-blue/theme.css +++ b/public/themes/saga-blue/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #2196F3; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #ffffff; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/saga-green/theme.css b/public/themes/saga-green/theme.css index 517ac868f..8147df6a7 100644 --- a/public/themes/saga-green/theme.css +++ b/public/themes/saga-green/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #4CAF50; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #ffffff; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/saga-orange/theme.css b/public/themes/saga-orange/theme.css index f2a9be488..7bc7cc140 100644 --- a/public/themes/saga-orange/theme.css +++ b/public/themes/saga-orange/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #FFC107; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #ffffff; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/saga-purple/theme.css b/public/themes/saga-purple/theme.css index ccde48182..073013ad1 100644 --- a/public/themes/saga-purple/theme.css +++ b/public/themes/saga-purple/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #9C27B0; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #ffffff; +} +.p-timeline .p-timeline-event-connector { + background-color: #dee2e6; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #dee2e6; background: #ffffff; diff --git a/public/themes/vela-blue/theme.css b/public/themes/vela-blue/theme.css index e72a611b5..5c0b0791a 100644 --- a/public/themes/vela-blue/theme.css +++ b/public/themes/vela-blue/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #64B5F6; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1f2d40; +} +.p-timeline .p-timeline-event-connector { + background-color: #304562; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #304562; background: #1f2d40; diff --git a/public/themes/vela-green/theme.css b/public/themes/vela-green/theme.css index c65492c89..093c5b654 100644 --- a/public/themes/vela-green/theme.css +++ b/public/themes/vela-green/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #81C784; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1f2d40; +} +.p-timeline .p-timeline-event-connector { + background-color: #304562; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #304562; background: #1f2d40; diff --git a/public/themes/vela-orange/theme.css b/public/themes/vela-orange/theme.css index 379fcf390..d3510edaa 100644 --- a/public/themes/vela-orange/theme.css +++ b/public/themes/vela-orange/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #FFD54F; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1f2d40; +} +.p-timeline .p-timeline-event-connector { + background-color: #304562; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #304562; background: #1f2d40; diff --git a/public/themes/vela-purple/theme.css b/public/themes/vela-purple/theme.css index d0f193f1a..61428364d 100644 --- a/public/themes/vela-purple/theme.css +++ b/public/themes/vela-purple/theme.css @@ -2347,6 +2347,31 @@ content: ""; } } +.p-timeline .p-timeline-event-marker { + border: 2px solid #BA68C8; + border-radius: 50%; + width: 1rem; + height: 1rem; + background-color: #1f2d40; +} +.p-timeline .p-timeline-event-connector { + background-color: #304562; +} +.p-timeline.p-timeline-vertical .p-timeline-event-opposite, +.p-timeline.p-timeline-vertical .p-timeline-event-content { + padding: 0 1rem; +} +.p-timeline.p-timeline-vertical .p-timeline-event-connector { + width: 2px; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-opposite, +.p-timeline.p-timeline-horizontal .p-timeline-event-content { + padding: 1rem 0; +} +.p-timeline.p-timeline-horizontal .p-timeline-event-connector { + height: 2px; +} + .p-tree { border: 1px solid #304562; background: #1f2d40; diff --git a/src/AppMenu.vue b/src/AppMenu.vue index b9e6cccf3..b3d249e87 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -119,6 +119,7 @@ OrganizationChart Paginator PickList + Timeline New
Tree diff --git a/src/assets/styles/app/_menu.scss b/src/assets/styles/app/_menu.scss index 54c37d831..891cffc34 100644 --- a/src/assets/styles/app/_menu.scss +++ b/src/assets/styles/app/_menu.scss @@ -54,6 +54,11 @@ &.router-link-exact-active { font-weight: 700; } + + .p-tag { + padding-top:.125rem; + padding-bottom: .125rem; + } } div { diff --git a/src/components/timeline/Timeline.d.ts b/src/components/timeline/Timeline.d.ts new file mode 100644 index 000000000..681c1d4ed --- /dev/null +++ b/src/components/timeline/Timeline.d.ts @@ -0,0 +1,13 @@ +import Vue, { VNode } from 'vue'; + +export declare class Timeline extends Vue { + value?: any[]; + align?: string; + layout?: string; + dataKey?: string; + $slots: { + content: VNode[]; + opposite: VNode[]; + marker: VNode[]; + } +} \ No newline at end of file diff --git a/src/components/timeline/Timeline.vue b/src/components/timeline/Timeline.vue new file mode 100644 index 000000000..6e205f2b7 --- /dev/null +++ b/src/components/timeline/Timeline.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/main.js b/src/main.js index df22e691e..3e7880a21 100644 --- a/src/main.js +++ b/src/main.js @@ -66,6 +66,7 @@ import TabPanel from './components/tabpanel/TabPanel'; import Terminal from './components/terminal/Terminal'; import Textarea from './components/textarea/Textarea'; import TieredMenu from './components/tieredmenu/TieredMenu'; +import Timeline from './components/timeline/Timeline'; import Tree from './components/tree/Tree'; import TreeTable from './components/treetable/TreeTable'; import Toast from './components/toast/Toast'; @@ -167,6 +168,7 @@ app.component('TabMenu', TabMenu); app.component('Terminal', Terminal); app.component('Textarea', Textarea); app.component('TieredMenu', TieredMenu); +app.component('Timeline', Timeline); app.component('Toast', Toast); app.component('Toolbar', Toolbar); app.component('ToggleButton', ToggleButton); diff --git a/src/router/index.js b/src/router/index.js index a312c0a25..58a205b5a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -576,6 +576,11 @@ const routes = [ name: 'tieredmenu', component: () => import('../views/tieredmenu/TieredMenuDemo.vue') }, + { + path: '/timeline', + name: 'timeline', + component: () => import('../views/timeline/TimelineDemo.vue') + }, { path: '/toast', name: 'toast', diff --git a/src/views/timeline/TimelineDemo.vue b/src/views/timeline/TimelineDemo.vue new file mode 100644 index 000000000..991c8f78c --- /dev/null +++ b/src/views/timeline/TimelineDemo.vue @@ -0,0 +1,165 @@ + + + + + \ No newline at end of file diff --git a/src/views/timeline/TimelineDoc.vue b/src/views/timeline/TimelineDoc.vue new file mode 100644 index 000000000..ad7151604 --- /dev/null +++ b/src/views/timeline/TimelineDoc.vue @@ -0,0 +1,360 @@ +