Skip to content

Commit

Permalink
Merge branch 'master' into timeline-webworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 authored Mar 5, 2020
2 parents 1451459 + e25ecb6 commit 17dcc0d
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dev-app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
state="${link.isActive ? 'active' : ''}"
>
</c-nav-horizontal-item>
<c-nav-horizontal-item position="right" href="https://github.com/bindable-ui/bindable" title="v1.0.6"></c-nav-horizontal-item>
<c-nav-horizontal-item position="right" href="https://github.com/bindable-ui/bindable" title="v1.0.7"></c-nav-horizontal-item>
</c-nav-horizontal>
</l-box>
</l-sidebar>
Expand Down
1 change: 1 addition & 0 deletions dev-app/routes/components/timeline/demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class TimelineExample {
},
{
accentColor: '#38A56C',
active: true,
duration: 6500,
icons: ['slicer', 'rules'],
start: moment(this.today).add(11, 'hours').add(15, 'minutes').toISOString(),
Expand Down
30 changes: 18 additions & 12 deletions dev-app/routes/components/timeline/properties/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,71 +157,77 @@ export class TimelineProperties {
];

public timelineEntriesRows = [
{
{
description: 'Color of the borders and icons in the entry.',
key: 'accentColor',
type: 'CSS color',
value: '#8E5DB2',
type: 'CSS color'
},
{
description: 'Set if the entry is active.',
key: 'active',
type: 'boolean',
value: 'true',
},
{
description: 'Alternate text value to show in place of time when displaying entry (optional).',
key: 'altTime',
type: 'string',
value: 'Started at 12:05AM.',
type: 'string'
},
{
description: 'Background color of the time entry (optional).',
key: 'background',
type: 'CSS color',
value: 'blue',
type: 'CSS color'
},
{
description: 'Font color of the time entry (optional).',
key: 'color',
type: 'CSS color',
value: 'white',
type: 'CSS color'
},
{
description: 'Duration of entry in seconds.',
key: 'duration',
type: 'number',
value: 1320,
type: 'number'
},
{
description: 'Array of icon names. Up to two are displayed (optional).',
key: 'icons',
type: 'string[]',
value: "['time', 'rules']",
type: 'string[]'
},
{
description: 'The size of the entry on day views (optional).',
key: 'sizeDay',
type: 'string',
value: 'expandable | small',
type: 'string'
},
{
description: 'The size of the entry on week views (optional).',
key: 'sizeWeek',
type: 'string',
value: 'expandable | small',
type: 'string'
},
{
description: 'The start of the entry in ISOString format.',
key: 'start',
type: 'ISOString',
value: 'moment().toISOString()',
type: 'ISOString'
},
{
description: 'The end of the entry in ISOString format (optional).',
key: 'end',
type: 'ISOString',
value: 'moment().toISOString()',
type: 'ISOString'
},
{
description: 'Title of the time entry',
key: 'title',
type: 'string',
value: 'A title',
type: 'string'
},
];
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bindable-ui/bindable",
"description": "An Aurelia component library",
"version": "1.0.6",
"version": "1.0.7",
"repository": {
"type": "git",
"url": "https://github.com/bindable-ui/bindable"
Expand Down
20 changes: 20 additions & 0 deletions src/components/timeline/c-time-entry/c-time-entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Licensed under the terms of the MIT license. See the LICENSE file in the project
/**
* ENTRY
* CLICKABLE
* ACTIVE
* CONTAINER
* - Info
* - Icons
Expand Down Expand Up @@ -77,6 +78,25 @@ Licensed under the terms of the MIT license. See the LICENSE file in the project



/*------------------------------------*\
!ACTIVE
\*------------------------------------*/

.active:before{
opacity: 1;
position: absolute;
width: 100%;
height: 100%;
content: '';
background: var(--time-entry-accent-color);
filter: brightness(45%);
transition: opacity var(--trans_main);
}





/*------------------------------------*\
!CONTAINER
\*------------------------------------*/
Expand Down
1 change: 1 addition & 0 deletions src/components/timeline/c-time-entry/c-time-entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
${styles.entry}
${styles.clickable}
${popoverOpen ? 'popover-open' : ''}
${item.active ? styles.active : ''}
${item.sizeDay === 'small' ? styles.smallDay : ''}
${item.sizeDay === 'expandable' ? styles.expandableDay : ''}
${item.sizeDay === 'expandable' ? 'expandable-day' : ''}
Expand Down
2 changes: 2 additions & 0 deletions src/components/timeline/c-timeline/c-timeline-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export interface ITimelineActions {
}

export interface ITimeEntryBasic {
accentColor?: string;
active?: boolean;
altTime?: string;
background?: string;
color?: string;
Expand Down

0 comments on commit 17dcc0d

Please sign in to comment.