@itwin/imodel-components-react 4.0.0-dev.1 → 4.0.0-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +1 -91
  2. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts +1 -1
  3. package/lib/cjs/imodel-components-react/UiIModelComponents.js +1 -1
  4. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -1
  5. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  6. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +3 -2
  7. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  8. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +19 -21
  9. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts +2 -2
  10. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js +1 -1
  11. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js.map +1 -1
  12. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.scss +2 -2
  13. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  14. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +5 -3
  15. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  16. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +15 -17
  17. package/lib/cjs/imodel-components-react/color/Swatch.scss +5 -7
  18. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +4 -5
  19. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +4 -5
  20. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  21. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +5 -2
  22. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  23. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +6 -7
  24. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +7 -8
  25. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +12 -13
  26. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +3 -3
  27. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  28. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +14 -10
  29. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  30. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +18 -21
  31. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  32. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +10 -4
  33. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  34. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -8
  35. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +11 -13
  36. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  37. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +3 -2
  38. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  39. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -1
  40. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +10 -19
  41. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  42. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +2 -2
  43. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  44. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js +7 -3
  45. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  46. package/lib/cjs/imodel-components-react/timeline/PlayerButton.scss +11 -9
  47. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +13 -15
  48. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  49. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +8 -4
  50. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  51. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +49 -48
  52. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  53. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +13 -6
  54. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  55. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +23 -26
  56. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts +1 -1
  57. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -1
  58. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +1 -1
  59. package/lib/esm/imodel-components-react/UiIModelComponents.js +1 -1
  60. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -1
  61. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  62. package/lib/esm/imodel-components-react/color/ColorPickerButton.js +4 -3
  63. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  64. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +19 -21
  65. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts +2 -2
  66. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js +1 -1
  67. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js.map +1 -1
  68. package/lib/esm/imodel-components-react/color/ColorPickerPanel.scss +2 -2
  69. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  70. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +6 -4
  71. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  72. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +15 -17
  73. package/lib/esm/imodel-components-react/color/Swatch.scss +5 -7
  74. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +4 -5
  75. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +4 -5
  76. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  77. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +6 -3
  78. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  79. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +6 -7
  80. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +7 -8
  81. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +12 -13
  82. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +3 -3
  83. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  84. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +14 -10
  85. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  86. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +18 -21
  87. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  88. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +10 -4
  89. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  90. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -8
  91. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +11 -13
  92. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  93. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +4 -3
  94. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  95. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -1
  96. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js +11 -20
  97. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  98. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +2 -2
  99. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  100. package/lib/esm/imodel-components-react/timeline/PlayerButton.js +7 -3
  101. package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  102. package/lib/esm/imodel-components-react/timeline/PlayerButton.scss +11 -9
  103. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +13 -15
  104. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  105. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +10 -6
  106. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  107. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +49 -48
  108. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  109. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +13 -6
  110. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  111. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +23 -26
  112. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +1 -1
  113. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -1
  114. package/package.json +35 -42
@@ -15,7 +15,7 @@ export interface MilestoneRange {
15
15
  /**
16
16
  * A Milestone event that is to be noted in the timeline.
17
17
  * @internal
18
- * @deprecated in 3.0.
18
+ * @deprecated
19
19
  */
20
20
  export interface Milestone {
21
21
  /** uniqueId of milestone */
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/interfaces.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAsCH;;GAEG;AACH,MAAM,CAAN,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,iBAAiB;IACjB,mDAAK,CAAA;IACL,oBAAoB;IACpB,yDAAQ,CAAA;IACR,kBAAkB;IAClB,qDAAM,CAAA;IACN,gBAAgB;IAChB,iDAAI,CAAA;IACJ,iBAAiB;IACjB,mDAAK,CAAA;AACP,CAAC,EAXW,aAAa,KAAb,aAAa,QAWxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,qDAAqD;IACrD,yEAAU,CAAA;IACV,sEAAsE;IACtE,2EAAW,CAAA;AACb,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAoCD;;GAEG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,yEAAM,CAAA;IACN,uEAAK,CAAA;IACL,qEAAI,CAAA;AACN,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Timeline\r\n */\r\n\r\nimport { ColorDef } from \"@itwin/core-common\";\r\nimport { ScreenViewport } from \"@itwin/core-frontend\";\r\nimport { GenericUiEventArgs } from \"@itwin/appui-abstract\";\r\n\r\n/**\r\n * A range of time which can be used to focus in on activities scheduled around a milestone.\r\n * @public\r\n */\r\nexport interface MilestoneRange {\r\n start: Date;\r\n end: Date;\r\n}\r\n\r\n/**\r\n * A Milestone event that is to be noted in the timeline.\r\n * @internal\r\n * @deprecated in 3.0.\r\n */\r\nexport interface Milestone {\r\n /** uniqueId of milestone */\r\n id: string;\r\n /** milestone date */\r\n date: Date;\r\n parentId?: string;\r\n /** Milestone label that is display if space allows */\r\n label?: string;\r\n /** Milestone description that is show as tooltip */\r\n description?: string;\r\n /** animation range that includes milestone */\r\n range?: MilestoneRange;\r\n /** Set to true if read only. */\r\n readonly?: boolean;\r\n // eslint-disable-next-line deprecation/deprecation\r\n children?: Milestone[];\r\n}\r\n\r\n/** The timeline scale.\r\n * @public\r\n */\r\nexport enum TimelineScale {\r\n /** Show years */\r\n Years,\r\n /** Show quarters */\r\n Quarters,\r\n /** Show months */\r\n Months,\r\n /** Show days */\r\n Days,\r\n /** Show hours */\r\n Hours,\r\n}\r\n\r\n/** Determines if data displayed to use is the actual date or the amount of time elapsed since project start.\r\n * @public\r\n */\r\nexport enum TimelineDateDisplay {\r\n /** Display time axis using actual start/end dates */\r\n ActualTime,\r\n /** Display time axis using time relative to actual start/end dates */\r\n ProjectTime,\r\n}\r\n\r\n/**\r\n * Playback Settings.\r\n * @public\r\n */\r\nexport interface PlaybackSettings {\r\n /** time in milliseconds to play animation from start date to end date */\r\n duration?: number;\r\n /** Set to True if animation to restart each time playbackEnd is reached. Defaults to false. */\r\n loop?: boolean;\r\n /** If true a minimal set of data is displayed. */\r\n minimized?: boolean;\r\n /** Playback start. If defined must be within start-end range. If not define 'start' is used. */\r\n playbackStart?: Date;\r\n /** Playback end. If defined must be within start-end range and later than playbackStart. If not define 'end' is used. */\r\n playbackEnd?: Date;\r\n /** Set to True if user should be allowed to insert milestone dates. Defaults to false */\r\n allowMilestoneEdits?: boolean;\r\n /** Define if actual date/times are used or date/times relative to project are used to draw timeline axis. */\r\n dateDisplay?: TimelineDateDisplay;\r\n}\r\n\r\n/**\r\n * An interface used to notify Handlers of the current pointer position in the timeline playback. Valid range is 0 to 1 and it determines percentage complete.\r\n * @public\r\n */\r\nexport type AnimationFractionChangeHandler = (animationFraction: number) => void;\r\n\r\n/**\r\n * An interface used to notify Handlers of Playback Settings changes.\r\n * Contains the settings to be used.\r\n * @public\r\n */\r\nexport type PlaybackSettingsChangeHandler = (settingsChange: PlaybackSettings) => void;\r\n\r\n/** Actions for Pause/Play event\r\n * @public\r\n */\r\nexport enum TimelinePausePlayAction {\r\n Toggle,\r\n Pause,\r\n Play,\r\n}\r\n/** Args for event to pause or play the timeline component\r\n * @public\r\n */\r\nexport interface TimelinePausePlayArgs extends GenericUiEventArgs {\r\n timelineAction: TimelinePausePlayAction;\r\n}\r\n/** Interface for a timeline data provider class\r\n * @public\r\n */\r\nexport interface TimelineDataProvider {\r\n /** uniqueId of provider */\r\n id: string;\r\n /** view id when viewport is initially assigned */\r\n viewId: string;\r\n /** returns true if the provider has timeline animation data available */\r\n supportsTimelineAnimation: boolean;\r\n /** Starting date for entire timeline */\r\n start?: Date;\r\n /** End date for entire timeline */\r\n end?: Date;\r\n /** Current animation fraction from 0.0 to 1.0 */\r\n animationFraction?: number;\r\n getSettings(): PlaybackSettings;\r\n /** Called to get the initial scrubber location. This must be a value between 0 and the duration in PlaybackSettings. */\r\n initialDuration: number;\r\n /** Called to get the duration of the Playback. */\r\n duration: number;\r\n /** If true the playback will continuously loop. */\r\n loop: boolean;\r\n /** Called to save the playback settings */\r\n updateSettings(settings: PlaybackSettings): void;\r\n /** Async call to load milestone and settings data */\r\n loadTimelineData(): Promise<boolean>;\r\n /** Called when an internal process has defined the playback settings and the UI needs to be updated */\r\n onPlaybackSettingChanged?: PlaybackSettingsChangeHandler;\r\n /** Called when the an internal process has defined the playback settings and the UI needs to be updated */\r\n onAnimationFractionChanged?: AnimationFractionChangeHandler;\r\n /** viewport to show animation */\r\n viewport?: ScreenViewport;\r\n}\r\n\r\n/**\r\n * An interface used to notify Handlers of Playback progress.\r\n * Contains the settings to be used.\r\n * @alpha\r\n */\r\nexport type SolarPlaybackProgressHandler = (time: Date) => void;\r\n\r\n/** Data Provider interface for getting and setting solar position\r\n * @alpha\r\n */\r\nexport interface SolarDataProvider {\r\n // View Id used to determine sunrise and sunset\r\n viewId: string;\r\n /** returns true if the provider has timeline animation data available */\r\n supportsTimelineAnimation: boolean;\r\n // set to true is timeline should be shown - return false if view is not set to display shadow.\r\n readonly shouldShowTimeline: boolean;\r\n /** Starting date for entire timeline */\r\n day: Date;\r\n /** Starting time for day in milliseconds */\r\n readonly dayStartMs: number;\r\n /** Time of day for sun */\r\n readonly timeOfDay: Date;\r\n /** Called during playback to update animation */\r\n onTimeChanged?: SolarPlaybackProgressHandler;\r\n /** viewport to show animation */\r\n viewport?: ScreenViewport;\r\n /** Time of Sunrise to nearest minute */\r\n readonly sunrise: Date;\r\n /** time of Sunrise to nearest minute */\r\n readonly sunset: Date;\r\n /** shadow color */\r\n shadowColor: ColorDef;\r\n /** timezone offset for local project time */\r\n readonly timeZoneOffset: number;\r\n /** set date for shadow study. If isProjectDate is false the is assume to be in users\r\n * current time and the value is adjusted to be the same date and time at the project location. */\r\n setDateAndTime: (day: Date, isProjectDate?: boolean) => void;\r\n}\r\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/timeline/interfaces.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAsCH;;GAEG;AACH,MAAM,CAAN,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,iBAAiB;IACjB,mDAAK,CAAA;IACL,oBAAoB;IACpB,yDAAQ,CAAA;IACR,kBAAkB;IAClB,qDAAM,CAAA;IACN,gBAAgB;IAChB,iDAAI,CAAA;IACJ,iBAAiB;IACjB,mDAAK,CAAA;AACP,CAAC,EAXW,aAAa,KAAb,aAAa,QAWxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,qDAAqD;IACrD,yEAAU,CAAA;IACV,sEAAsE;IACtE,2EAAW,CAAA;AACb,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAoCD;;GAEG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,yEAAM,CAAA;IACN,uEAAK,CAAA;IACL,qEAAI,CAAA;AACN,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Timeline\r\n */\r\n\r\nimport { ColorDef } from \"@itwin/core-common\";\r\nimport { ScreenViewport } from \"@itwin/core-frontend\";\r\nimport { GenericUiEventArgs } from \"@itwin/appui-abstract\";\r\n\r\n/**\r\n * A range of time which can be used to focus in on activities scheduled around a milestone.\r\n * @public\r\n */\r\nexport interface MilestoneRange {\r\n start: Date;\r\n end: Date;\r\n}\r\n\r\n/**\r\n * A Milestone event that is to be noted in the timeline.\r\n * @internal\r\n * @deprecated\r\n */\r\nexport interface Milestone {\r\n /** uniqueId of milestone */\r\n id: string;\r\n /** milestone date */\r\n date: Date;\r\n parentId?: string;\r\n /** Milestone label that is display if space allows */\r\n label?: string;\r\n /** Milestone description that is show as tooltip */\r\n description?: string;\r\n /** animation range that includes milestone */\r\n range?: MilestoneRange;\r\n /** Set to true if read only. */\r\n readonly?: boolean;\r\n // eslint-disable-next-line deprecation/deprecation\r\n children?: Milestone[];\r\n}\r\n\r\n/** The timeline scale.\r\n * @public\r\n */\r\nexport enum TimelineScale {\r\n /** Show years */\r\n Years,\r\n /** Show quarters */\r\n Quarters,\r\n /** Show months */\r\n Months,\r\n /** Show days */\r\n Days,\r\n /** Show hours */\r\n Hours,\r\n}\r\n\r\n/** Determines if data displayed to use is the actual date or the amount of time elapsed since project start.\r\n * @public\r\n */\r\nexport enum TimelineDateDisplay {\r\n /** Display time axis using actual start/end dates */\r\n ActualTime,\r\n /** Display time axis using time relative to actual start/end dates */\r\n ProjectTime,\r\n}\r\n\r\n/**\r\n * Playback Settings.\r\n * @public\r\n */\r\nexport interface PlaybackSettings {\r\n /** time in milliseconds to play animation from start date to end date */\r\n duration?: number;\r\n /** Set to True if animation to restart each time playbackEnd is reached. Defaults to false. */\r\n loop?: boolean;\r\n /** If true a minimal set of data is displayed. */\r\n minimized?: boolean;\r\n /** Playback start. If defined must be within start-end range. If not define 'start' is used. */\r\n playbackStart?: Date;\r\n /** Playback end. If defined must be within start-end range and later than playbackStart. If not define 'end' is used. */\r\n playbackEnd?: Date;\r\n /** Set to True if user should be allowed to insert milestone dates. Defaults to false */\r\n allowMilestoneEdits?: boolean;\r\n /** Define if actual date/times are used or date/times relative to project are used to draw timeline axis. */\r\n dateDisplay?: TimelineDateDisplay;\r\n}\r\n\r\n/**\r\n * An interface used to notify Handlers of the current pointer position in the timeline playback. Valid range is 0 to 1 and it determines percentage complete.\r\n * @public\r\n */\r\nexport type AnimationFractionChangeHandler = (animationFraction: number) => void;\r\n\r\n/**\r\n * An interface used to notify Handlers of Playback Settings changes.\r\n * Contains the settings to be used.\r\n * @public\r\n */\r\nexport type PlaybackSettingsChangeHandler = (settingsChange: PlaybackSettings) => void;\r\n\r\n/** Actions for Pause/Play event\r\n * @public\r\n */\r\nexport enum TimelinePausePlayAction {\r\n Toggle,\r\n Pause,\r\n Play,\r\n}\r\n/** Args for event to pause or play the timeline component\r\n * @public\r\n */\r\nexport interface TimelinePausePlayArgs extends GenericUiEventArgs {\r\n timelineAction: TimelinePausePlayAction;\r\n}\r\n/** Interface for a timeline data provider class\r\n * @public\r\n */\r\nexport interface TimelineDataProvider {\r\n /** uniqueId of provider */\r\n id: string;\r\n /** view id when viewport is initially assigned */\r\n viewId: string;\r\n /** returns true if the provider has timeline animation data available */\r\n supportsTimelineAnimation: boolean;\r\n /** Starting date for entire timeline */\r\n start?: Date;\r\n /** End date for entire timeline */\r\n end?: Date;\r\n /** Current animation fraction from 0.0 to 1.0 */\r\n animationFraction?: number;\r\n getSettings(): PlaybackSettings;\r\n /** Called to get the initial scrubber location. This must be a value between 0 and the duration in PlaybackSettings. */\r\n initialDuration: number;\r\n /** Called to get the duration of the Playback. */\r\n duration: number;\r\n /** If true the playback will continuously loop. */\r\n loop: boolean;\r\n /** Called to save the playback settings */\r\n updateSettings(settings: PlaybackSettings): void;\r\n /** Async call to load milestone and settings data */\r\n loadTimelineData(): Promise<boolean>;\r\n /** Called when an internal process has defined the playback settings and the UI needs to be updated */\r\n onPlaybackSettingChanged?: PlaybackSettingsChangeHandler;\r\n /** Called when the an internal process has defined the playback settings and the UI needs to be updated */\r\n onAnimationFractionChanged?: AnimationFractionChangeHandler;\r\n /** viewport to show animation */\r\n viewport?: ScreenViewport;\r\n}\r\n\r\n/**\r\n * An interface used to notify Handlers of Playback progress.\r\n * Contains the settings to be used.\r\n * @alpha\r\n */\r\nexport type SolarPlaybackProgressHandler = (time: Date) => void;\r\n\r\n/** Data Provider interface for getting and setting solar position\r\n * @alpha\r\n */\r\nexport interface SolarDataProvider {\r\n // View Id used to determine sunrise and sunset\r\n viewId: string;\r\n /** returns true if the provider has timeline animation data available */\r\n supportsTimelineAnimation: boolean;\r\n // set to true is timeline should be shown - return false if view is not set to display shadow.\r\n readonly shouldShowTimeline: boolean;\r\n /** Starting date for entire timeline */\r\n day: Date;\r\n /** Starting time for day in milliseconds */\r\n readonly dayStartMs: number;\r\n /** Time of day for sun */\r\n readonly timeOfDay: Date;\r\n /** Called during playback to update animation */\r\n onTimeChanged?: SolarPlaybackProgressHandler;\r\n /** viewport to show animation */\r\n viewport?: ScreenViewport;\r\n /** Time of Sunrise to nearest minute */\r\n readonly sunrise: Date;\r\n /** time of Sunrise to nearest minute */\r\n readonly sunset: Date;\r\n /** shadow color */\r\n shadowColor: ColorDef;\r\n /** timezone offset for local project time */\r\n readonly timeZoneOffset: number;\r\n /** set date for shadow study. If isProjectDate is false the is assume to be in users\r\n * current time and the value is adjusted to be the same date and time at the project location. */\r\n setDateAndTime: (day: Date, isProjectDate?: boolean) => void;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/imodel-components-react",
3
- "version": "4.0.0-dev.1",
3
+ "version": "4.0.0-dev.11",
4
4
  "description": "iTwin.js UI IModel Components",
5
5
  "main": "lib/cjs/imodel-components-react.js",
6
6
  "module": "lib/esm/imodel-components-react.js",
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/iTwin/itwinjs-core/tree/master/ui/imodel-components-react"
11
+ "url": "https://github.com/iTwin/appui/tree/master/ui/imodel-components-react"
12
12
  },
13
13
  "keywords": [
14
14
  "Bentley",
@@ -20,44 +20,43 @@
20
20
  "url": "http://www.bentley.com"
21
21
  },
22
22
  "peerDependencies": {
23
- "@itwin/appui-abstract": "^4.0.0-dev.1",
24
- "@itwin/components-react": "^4.0.0-dev.1",
25
- "@itwin/core-bentley": "^4.0.0-dev.1",
26
- "@itwin/core-common": "^4.0.0-dev.1",
27
- "@itwin/core-frontend": "^4.0.0-dev.1",
28
- "@itwin/core-geometry": "^4.0.0-dev.1",
29
- "@itwin/core-quantity": "^4.0.0-dev.1",
30
- "@itwin/core-react": "^4.0.0-dev.1",
31
- "react": "^17.0.0",
32
- "react-dom": "^17.0.0"
23
+ "@itwin/appui-abstract": "^3.6.0",
24
+ "@itwin/components-react": "^4.0.0-dev.11",
25
+ "@itwin/core-bentley": "^3.6.0",
26
+ "@itwin/core-common": "^3.6.0",
27
+ "@itwin/core-frontend": "^3.6.0",
28
+ "@itwin/core-geometry": "^3.6.0",
29
+ "@itwin/core-quantity": "^3.6.0",
30
+ "@itwin/core-react": "^4.0.0-dev.11",
31
+ "react": "^17.0.0 || ^18.0.0",
32
+ "react-dom": "^17.0.0 || ^18.0.0"
33
33
  },
34
34
  "//devDependencies": [
35
35
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
36
36
  "NOTE: All tools used by scripts in this package must be listed as devDependencies"
37
37
  ],
38
38
  "devDependencies": {
39
- "@itwin/appui-abstract": "4.0.0-dev.1",
40
- "@itwin/build-tools": "4.0.0-dev.1",
41
- "@itwin/components-react": "4.0.0-dev.1",
42
- "@itwin/core-bentley": "4.0.0-dev.1",
43
- "@itwin/core-common": "4.0.0-dev.1",
44
- "@itwin/core-frontend": "4.0.0-dev.1",
45
- "@itwin/core-geometry": "4.0.0-dev.1",
46
- "@itwin/core-quantity": "4.0.0-dev.1",
47
- "@itwin/core-react": "4.0.0-dev.1",
48
- "@itwin/eslint-plugin": "4.0.0-dev.1",
39
+ "@itwin/appui-abstract": "^3.6.0",
40
+ "@itwin/build-tools": "^3.6.0",
41
+ "@itwin/components-react": "4.0.0-dev.11",
42
+ "@itwin/core-bentley": "^3.6.0",
43
+ "@itwin/core-common": "^3.6.0",
44
+ "@itwin/core-frontend": "^3.6.0",
45
+ "@itwin/core-geometry": "^3.6.0",
46
+ "@itwin/core-orbitgt": "^3.6.0",
47
+ "@itwin/core-quantity": "^3.6.0",
48
+ "@itwin/core-react": "4.0.0-dev.11",
49
+ "@itwin/eslint-plugin": "^3.6.0",
50
+ "@itwin/webgl-compatibility": "^3.6.0",
49
51
  "@testing-library/dom": "^8.11.2",
50
52
  "@testing-library/react": "^12.0.0",
51
53
  "@testing-library/react-hooks": "^7.0.2",
52
54
  "@testing-library/user-event": "^14.4.2",
53
55
  "@types/chai": "4.3.1",
54
56
  "@types/chai-as-promised": "^7",
55
- "@types/chai-jest-snapshot": "^1.3.0",
56
57
  "@types/chai-spies": "^1.0.0",
57
58
  "@types/chai-string": "^1.4.1",
58
- "@types/enzyme": "3.9.3",
59
59
  "@types/faker": "^4.1.0",
60
- "@types/lodash": "^4.14.0",
61
60
  "@types/mocha": "^8.2.2",
62
61
  "@types/node": "18.11.5",
63
62
  "@types/react": "^17.0.37",
@@ -66,13 +65,9 @@
66
65
  "@types/sinon-chai": "^3.2.0",
67
66
  "chai": "^4.1.2",
68
67
  "chai-as-promised": "^7",
69
- "chai-jest-snapshot": "^2.0.0",
70
68
  "chai-spies": "1.0.0",
71
69
  "chai-string": "^1.5.0",
72
70
  "cpx2": "^3.0.0",
73
- "enzyme": "3.10.0",
74
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
75
- "enzyme-to-json": "^3.3.4",
76
71
  "eslint": "^7.11.0",
77
72
  "faker": "^4.1.0",
78
73
  "ignore-styles": "^5.0.1",
@@ -97,15 +92,12 @@
97
92
  "NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
98
93
  ],
99
94
  "dependencies": {
100
- "@bentley/icons-generic-webfont": "^1.0.15",
101
- "@itwin/itwinui-css": "0.x",
102
- "@itwin/itwinui-react": "~1.46.0",
103
- "callable-instance2": "1.0.0",
104
- "classnames": "^2.3.1",
105
- "eventemitter2": "^5.0.1",
106
- "immer": "9.0.6",
107
- "immutable": "^3.8.2",
108
- "ts-key-enum": "^2.0.0"
95
+ "@bentley/icons-generic": "^1.0.34",
96
+ "@itwin/itwinui-react": "^2.5.0",
97
+ "@itwin/itwinui-variables": "^2.0.0",
98
+ "@itwin/itwinui-icons-react": "^2.1.0",
99
+ "classnames": "2.3.1",
100
+ "immer": "9.0.6"
109
101
  },
110
102
  "nyc": {
111
103
  "extends": "./node_modules/@itwin/build-tools/.nycrc",
@@ -131,8 +123,7 @@
131
123
  ]
132
124
  },
133
125
  "scripts": {
134
- "build": "npm run -s copy:locale && npm run -s build:cjs",
135
- "build:ci": "npm run -s build && npm run -s build:esm",
126
+ "build": "npm run -s copy:locale && npm run -s build:cjs && npm run -s build:esm",
136
127
  "build:cjs": "tsc 1>&2 --outDir lib/cjs && npm run -s copy:cjs",
137
128
  "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm && npm run -s copy:esm",
138
129
  "copy:locale": "cpx \"./public/**/*\" ./lib/public",
@@ -141,11 +132,13 @@
141
132
  "pseudolocalize": "betools pseudolocalize --englishDir ./public/locales/en --out ./public/locales/en-PSEUDO",
142
133
  "clean": "rimraf lib .rush/temp/package-deps*.json",
143
134
  "cover": "nyc npm -s test",
144
- "docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/ui/imodel-components-react/file.json --tsIndexFile=./imodel-components-react.ts --onlyJson",
145
135
  "lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
146
136
  "extract-api": "betools extract-api --entry=imodel-components-react",
147
137
  "test": "mocha --config ../.mocharc.json \"./lib/cjs/test/**/*.test.js\"",
148
- "test:watch": "npm -s test -- --reporter min --watch-extensions ts,tsx --watch"
138
+ "test:watch": "npm -s test -- --reporter min --watch-extensions ts,tsx --watch",
139
+ "docs": "npm run -s docs:reference && npm run -s docs:changelog",
140
+ "docs:changelog": "cpx ./CHANGELOG.md ../../generated-docs/ui/imodel-components-react",
141
+ "docs:reference": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/ui/imodel-components-react/file.json --tsIndexFile=./imodel-components-react.ts --onlyJson"
149
142
  },
150
143
  "readme": "# @itwin/imodel-components-react\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe __@itwin/imodel-components-react__ package contains React components that depend on the imodeljs-frontend, imodeljs-common or imodeljs-quantity packages.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
151
144
  }