Skip to content

Commit

Permalink
chore: VRT update, build
Browse files Browse the repository at this point in the history
  • Loading branch information
micahjones13 committed Feb 17, 2025
1 parent c7a3d99 commit eb3040f
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

import * as d from './proxies';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24595,14 +24595,14 @@ export declare interface RuxTimeRegion extends Components.RuxTimeRegion {}


@ProxyCmp({
inputs: ['end', 'hasPlayedIndicator', 'interval', 'playhead', 'rulerPosition', 'showGrid', 'showSecondaryRuler', 'start', 'timezone', 'zoom']
inputs: ['end', 'hasPlayedIndicator', 'hideJDay', 'interval', 'playhead', 'rulerPosition', 'showGrid', 'showSecondaryRuler', 'start', 'timezone', 'zoom']
})
@Component({
selector: 'rux-timeline',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['end', 'hasPlayedIndicator', 'interval', 'playhead', 'rulerPosition', 'showGrid', 'showSecondaryRuler', 'start', 'timezone', 'zoom'],
inputs: ['end', 'hasPlayedIndicator', 'hideJDay', 'interval', 'playhead', 'rulerPosition', 'showGrid', 'showSecondaryRuler', 'start', 'timezone', 'zoom'],
})
export class RuxTimeline {
protected el: HTMLElement;
Expand Down
12 changes: 4 additions & 8 deletions packages/web-components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19777,9 +19777,7 @@ export namespace Components {
"hideJDay": boolean;
"interval": any;
"isSecondary": boolean;
"rulerPosition": | 'top'
| 'bottom'
| 'both';
"rulerPosition": 'top' | 'bottom' | 'both';
"showSecondaryRuler"?: boolean | undefined;
/**
* Display the day (MM/DD) at 00:00. Only works when Timeline interval is set to 'hour' or 'minutes'.
Expand Down Expand Up @@ -20116,7 +20114,7 @@ export namespace Components {
*/
"showGrid": boolean;
/**
* Controls wether or not the attached rux-ruler displays the secondary date portion.
* Controls whether or not the attached rux-ruler displays the secondary date portion.
*/
"showSecondaryRuler": boolean;
/**
Expand Down Expand Up @@ -55384,9 +55382,7 @@ declare namespace LocalJSX {
"hideJDay"?: boolean;
"interval"?: any;
"isSecondary"?: boolean;
"rulerPosition"?: | 'top'
| 'bottom'
| 'both';
"rulerPosition"?: 'top' | 'bottom' | 'both';
"showSecondaryRuler"?: boolean | undefined;
/**
* Display the day (MM/DD) at 00:00. Only works when Timeline interval is set to 'hour' or 'minutes'.
Expand Down Expand Up @@ -55776,7 +55772,7 @@ declare namespace LocalJSX {
*/
"showGrid"?: boolean;
/**
* Controls wether or not the attached rux-ruler displays the secondary date portion.
* Controls whether or not the attached rux-ruler displays the secondary date portion.
*/
"showSecondaryRuler"?: boolean;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
| -------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ----------- |
| `end` | `end` | The timeline's end date. Must be an ISO string "2021-02-02T05:00:00Z" | `string` | `''` |
| `hasPlayedIndicator` | `has-played-indicator` | Visually marks past time as played in each track | `boolean` | `false` |
| `hideJDay` | `hide-j-day` | Hides the J-Day display when show-secondary-ruler is true. | `boolean` | `false` |
| `interval` | `interval` | The timeline's date time interval | `"day" \| "hour" \| "minute" \| "month" \| "week"` | `'hour'` |
| `playhead` | `playhead` | The timeline's playhead date time. Must be an ISO string "2021-02-02T05:00:00Z" | `string \| undefined` | `undefined` |
| `rulerPosition` | `ruler-position` | Controls the position of the ruler. Either top, bottom or both. | `"both" \| "bottom" \| "top"` | `'both'` |
| `showGrid` | `show-grid` | Controls the display of grid lines | `boolean` | `false` |
| `showSecondaryRuler` | `show-secondary-ruler` | Controls wether or not the attached rux-ruler displays the secondary date portion. | `boolean` | `false` |
| `showSecondaryRuler` | `show-secondary-ruler` | Controls whether or not the attached rux-ruler displays the secondary date portion. | `boolean` | `false` |
| `start` | `start` | The timeline's start date. Must be an ISO string "2021-02-02T05:00:00Z" | `string` | `''` |
| `timezone` | `timezone` | Controls the timezone that the timeline is localized to. Must be an IANA time zone name ("America/New_York") or an offset string. | `string` | `'UTC'` |
| `zoom` | `zoom` | The timeline's zoom level. | `number` | `1` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ---------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------- |
| `showStartOfDay` | `show-start-of-day` | <span style="color:red">**[DEPRECATED]**</span> This property is deprecated and will be removed in the next major release. Please use the new `show-secondary-ruler` prop on the rux-timeline component.<br/><br/>Display the day (MM/DD) at 00:00. Only works when Timeline interval is set to 'hour' or 'minutes'. | `boolean \| undefined` | `false` |
| Property | Attribute | Description | Type | Default |
| ---------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------- |
| `showStartOfDay` | `show-start-of-day` | <span style="color:red">**[DEPRECATED]**</span> This property is deprecated and will be removed in the next major release. Please use the `show-secondary-ruler` property on the rux-timeline component instead.<br/><br/>Display the day (MM/DD) at 00:00. Only works when Timeline interval is set to 'hour' or 'minutes'. | `boolean \| undefined` | `false` |


## Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ export class RuxRuler {
* @internal - The position of the ruler, either top bottom or both. This denotes if the new-day span is rendered
* on top or bottom within the ruler.
*/
@Prop({ attribute: 'ruler-position', reflect: true }) rulerPosition:
| 'top'
| 'bottom'
| 'both' = 'both'
@Prop() rulerPosition: 'top' | 'bottom' | 'both' = 'both'

/**
* @internal Display a secondary ruler which shows one level up from the current interval. IE: Days for Hours, Months for Days, etc. Set by the parent Timeline component.
*/
@Prop({ attribute: 'show-secondary-ruler' }) showSecondaryRuler? = false
@Prop() showSecondaryRuler? = false

/**
* Display the day (MM/DD) at 00:00. Only works when Timeline interval is set to 'hour' or 'minutes'.
Expand All @@ -68,7 +65,7 @@ export class RuxRuler {
/**
* @internal used to hide j-day in secondary ruler
*/
@Prop({ attribute: 'hide-j-day' }) hideJDay: boolean = false
@Prop() hideJDay: boolean = false

//a "map" that allows us to tell which grid-row a given ruler section should be.
positionMap: Record<Type, Record<Variant, Record<Position, string>>> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class RuxTimeline {
@Prop({ attribute: 'hide-j-day' }) hideJDay: boolean = false

/**
* Controls wether or not the attached rux-ruler displays the secondary date portion.
* Controls whether or not the attached rux-ruler displays the secondary date portion.
*/
@Prop({ attribute: 'show-secondary-ruler' })
showSecondaryRuler: boolean = false
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb3040f

Please sign in to comment.