94 Commits

Author SHA1 Message Date
Yarden Eitan
3fe2bff374
[Podspec] Fix podspec warnings when issuing a lint (#2811)
* added supressing of partial-availability and changed image bit depth to remove podspec warnings on linting

* added code check
2018-01-08 11:45:11 -05:00
ianegordon
a63e8610da [Activity Indicator] Don't call UIAppearance in +initialize (#2810) 2018-01-05 17:47:04 -05:00
ianegordon
49de50edae Consolidate installation requirements in the main README (#2809) 2018-01-05 13:50:38 -05:00
John Detloff
d30df6c569
Add an api to MDCActivityIndicator to allow animations before/after animating (#2766) 2018-01-05 12:05:27 -05:00
Yarden Eitan
6df22d2cd6
Update MaterialComponents podspec to separate extensions from component. Breaking change, please see description when sending out a new release (#2748)
* [Catalog] Update catalog readme to reflect podspec filename change

* upate podspec

* update spec to extension

* more specific dependency

* added documentation
2018-01-02 16:51:58 -05:00
Yarden Eitan
29d760c7d6
Added isPresentable to catalog files, ported over ZShadow to dragons. (#2726) 2017-12-15 12:20:35 -05:00
Robert Moore
d2e028f388 [kokoro] Add :ColorThemer targets (#2712)
These components were missing BUILD definitions for their ColorThemer extensions
2017-12-13 15:38:08 -05:00
featherless
b9404ded10
Revert "Add compile time flag for import style (#2562)" (#2612)
This reverts commit 6791dc4993d3a0ffa11735eeeef0583102621d52.
2017-12-06 11:22:17 -05:00
Louis Romero
6791dc4993
Add compile time flag for import style (#2562)
Closes #2550
2017-12-04 10:06:31 -08:00
John Detloff
beac4fa150 Add a delegate callback for the activity indicator mode animation (#2537) 2017-12-03 16:36:30 -05:00
Junius Gunaratne
7dc9470943 [Themers] Add nullability to themers (#2551)
* Add nullability to themers

* Wrap optional
2017-12-01 17:31:41 -05:00
featherless
2a3b2d1220
[ActivityIndicator] Make the motion spec values be class properties. (#2473)
This will provide better Swift support if/when we expose the spec as a public API.
2017-11-17 14:33:10 -05:00
Sylvain Defresne
c3615fa300 Use framework-style imports. (#2428)
* Use framework-style imports.

MDFInternationalization is built as a framework, so use the style
recommended to import from the framework (#import <...>).

MotionAnimator and MotionInterchange mixed the normal style import
and the framework style import; settle them on the framework style.

* Update MDCActivityIndicator.m

Re-order to match our style guide.

* Update MDCBottomNavigationBar.m

Re-order to match our style guide.

* Update MDCBottomNavigationItemView.m

Re-order to match style guide.

* Update MDCBottomAppBarView.m

* Update MDCButtonBar.m

* Update MDCAppBarButtonBarBuilder.m

* Update MDCAppBarButtonBarBuilder.m

* Update MDCCollectionViewCell.m

* Update MDCAlertController.m

* Update NavigationBarIconsExample.m

* Update MDCNavigationBar.m

* Update MDCItemBarCell.m

* Update MDCTextField.m

* Update MDCThumbTrack.m
2017-11-17 10:39:48 -05:00
Will Larche
1bd5590bbb
[Kokoro] Support for TextFields, Math, and Typography (#2432)
* [TextFields] Kokoro work.

* [Math] Imports needed for kokoro.

* [Kokoro] Support for MDCMath.

* [TextFields] Alphabetizing.

* [Kokoro] Formatting.

* [Kokoro] Formatting
2017-11-16 22:25:52 -05:00
Yurii Samsoniuk
2a96682230 Replace unnecessary imports with forward declarations (#2429)
* [Themes] Remove unnecessary imports.

* [TextFields] Remove unnecessary imports.

* [Typography] Do not use an umbrella header inside of a component.

* [Snackbar] Do not use self umbrella header.

* [ActivityIndicator] Do not use self umbrella header.

* [AppBar] Use umbrella headers.

* [AppBar] Remove self import header.

* [ButtonBar] Removed self umbrella header imports.

* [Buttons] Removed self umbrella header imports.

* [Collections] Update imports.

* [Dialogs] Moved import into an m file.

* [Collections] Fixed imports.

* [FeatureHighlight] Removed self umbrealla imports.

* [HeaderStackView] Reordered imports.

* [Ink] Replaced imports with forward declarations.

* [Slider] Replaced self umbrella import use.

* [Snackbar] Removed self umbrella header import.

* [Tabs] Changed math import. Replaced self umbrella header import.

* [Icons] Removed unnecessary imports.

* [Overlay] Replaced umbrella header import.

* [ShapeLibrary] Replace Shapes imports with an umbrella header.

* [Shapes] Replaced imports with forward declarations.

* [AppBar] Replace import with a forward declaration.

* [Examples] Updated imports.

* Fixed conflicting imports

* Added space between different import categories
2017-11-16 18:25:06 -05:00
featherless
68356bbd90
[ActivityIndicator] Convert motion spec to an Objective-C static class. (#2451)
* [ActivityIndicator] Convert motion spec to an Objective-C static class.

The interchange library will soon be dropping support for static spec initialization in favor of runtime APIs. This change moves the ActivityIndicator off of all macro-based APIs.

* Review feedback.
2017-11-16 14:29:13 -05:00
Will Larche
d9e0811a81 [Themer] Updating the protocol generic syntax. (#2440) 2017-11-16 07:59:18 -05:00
featherless
30c9fcb841
Replace Motion relative imports with framework imports throughout the repo. (#2424)
Updated the kokoro script to automatically replace framework imports with relative imports.
2017-11-14 15:51:32 -05:00
featherless
c25d6e3248
[ActivityIndicator] Fix bug where outer rotation was incorrect in determinate state. (#2390)
* [ActivityIndicator] Fix bug where outer rotation was incorrect in determinate state.

When transitioning from indeterminate to determinate we have to reset the outer rotation. This logic was unintentionally removed in 8e6da0f4973b202f4f7334e33bd2747f7ff05bec. This change adds the logic back.

* Remove straggler line.
2017-11-10 14:59:23 -05:00
featherless
13b0631515
[ActivityIndicator] Prefix the motion spec with the API name. (#2387)
This minimizes the likelihood that the motion spec will conflict with other symbols at link time.
2017-11-09 16:46:01 -05:00
Brian Moore
114b2e28cd [ProgressView|ActivityIndicator] Fix build (#2385)
* [ProgressView] Fix type error in +defaultProgressTintColor

MDCColorFromRGB takes a uint32. MDCProgressViewDefaultTintColor is a function. I assume calling it is what was intended.

* [ActivityIndicator/ProgressView] Small build fixes
2017-11-09 12:17:42 -05:00
John Detloff
bfe59c010f Implement sizeThatFits on MDCActivityIndicator (#2380) 2017-11-08 17:16:49 -05:00
featherless
8e6da0f497
[ActivityIndicator] Extract motion spec and use the Material Motion Animator for all animations. (#2344)
This conversion revealed a bug in the motion timing where the indeterminate strokeEnd animation's duration was inheriting Core Animation's default duration of 0.25 seconds rather than the spec's duration. This resulted in the stroke animating in a much more jarring way than intended. This bug was fixed in https://github.com/material-components/material-components-ios/pull/2345.

Before:
![before](https://user-images.githubusercontent.com/45670/32393512-25f82ada-c0b0-11e7-91a6-dd9f9bfddb4a.gif)

After:

![after](https://user-images.githubusercontent.com/45670/32393515-2a19fb66-c0b0-11e7-8cf3-683c75f1aae6.gif)

(The gifs don't loop perfectly so there are some hitches in the animations).
2017-11-06 10:47:05 -05:00
featherless
4923871005
[ActivityIndicator] Fix bug where the indeterminate animation stroke end would animate too quickly. (#2345)
Prior to this change we were accidentally setting the strokeEnd animation's duration to 0, which would cause Core Animation to use its default animation duration of 0.25 rather than the desired motion timing duration. The result was an animation that animated much more jarringly.

The animation now aligns more closely with the intended behavior.
2017-11-03 16:50:48 -04:00
featherless
7ed14b83b9
[ActivityIndicator] Remove ActivityIndicator prefix from local static consts. (#2342) 2017-11-03 15:52:38 -04:00
featherless
26297be7d6
[ActivityIndicator] Add a mode switch for the configurator example. (#2341)
* [ActivityIndicator] Add a mode switch for the configurator example.

Allows you to toggle between determinate and indeterminate modes.

* Title case.
2017-11-03 14:35:53 -04:00
featherless
4ef8b6fdae
Initial addition of kokoro and bazel continuous integration support. (#2316)
* Initial addition of kokoro and bazel continuous integration support.

Only adds support for ActivityIndicator and its dependencies. Will add other components to the continuous integration in follow up changes.

* Add AnimationTiming.

* Fix target name.

* Use ... matching to run all tests and build all targets.

* Just run tests.

* Add skeleton tests.

* Fix copyrights and build files.

* Add bzl file.

* Standardize build files.

* Fix typo.

* Naming.

* Remove confusing comment.

* Use Xcode 8.2.
2017-11-01 13:29:49 -04:00
Martin Petrov
f98a9d42ed @objc annoaing catalog by convention (#2305) 2017-10-30 10:24:17 -04:00
Yurii Samsoniuk
58ad191297 [ActivityIndicator] Migrated to MDFi18n. (#2246)
* [ActivityIndicator] Migrated to MDFi18n.

* Replaced RTL dependency in Podspec
2017-10-25 18:43:30 -04:00
Adrian Secord
479f7b1141 Remove trailing whitespace everywhere. (#2168) 2017-10-13 11:33:35 -04:00
John Detloff
34f8b4e0af Resolve issues caused by starting and stopping activitiy indicator quickly (#2053) 2017-10-10 12:58:31 -04:00
Cody Weaver
a462a2ac4f [Mutliple components] Update components that use colors to use MDCPalette. (#2129)
* Update components that use colors to use MDCPalette.

* Update podspec to make palettes available to Collection Cell
2017-10-09 12:53:50 -04:00
Cody Weaver
7f647e0ee6 [AnimationTiming | ActivityIndicator] Add swift examples (#1944)
Added Swift examples for both ActivityIndicator and AnimationTiming
2017-09-02 17:58:22 -04:00
Brian Moore
695712da63 [ActivityIndicator] Use explicit class for bundle (#1930)
Using [self class] to determine the bundle to load resources/strings here breaks if you subclass MDCActivityIndicator and that subclass ends up being placed in a different bundle. Writing MDCActivityIndicator here explicitly ensures that we find the intended resources: those included alongside the base MDCActivityIndicator definition.
2017-09-01 17:44:59 -04:00
Robert Moore
5498005f65 [Catalog] Enabling all "unused" warnings (#1875)
Re-enabling warnings for unused parameters. Turning on every other
unused warning I could find.

Closes #1874
2017-08-29 17:57:41 -04:00
Cody Weaver
178a7d676b [Activity Indicator] Added swift example (#1890)
* Added example for activity indicator

* Fixed all issues with the pull request.

* Added swift example for [AnimationTiming]

* Delete AnimationTimingExample.swift

* Update ActivityIndicatorExample.swift
2017-08-25 16:21:52 -04:00
Adrian Secord
5bc8758de5 Porting warning fixes from internal change 166066139. 2017-08-22 17:29:23 -04:00
Justin Shephard
be23697c81 [ActivityIndicator] - Added voice accessibility support for MDCActivityIndicator (#1765)
* [ActivityIndicator] - Added voice aver accessibility support

* [AccessibilityIndicator] - Added determinate option which tells percentage complete

* [ActivityIndicator] - Lint

* [ActivityIndicator] - Added localized number string
2017-08-18 15:31:40 -04:00
Randall Li
97098c6caa [Activity Indicator] Add import to QuartzCore (#1587) 2017-06-29 14:36:39 -04:00
Junius Gunaratne
2873e798f2 [Themes] Add ability to change catalog theme (#1477)
Discussed merge with Ian offline. Issues with Travis CI may be resolved once the PR is merged.

* Add color to tiles.

* Add theming to catalog

* Update text field tile.

* Implementation method signatures should match those in header.

* Update MDCDrawFunc typedef

* Pass color scheme through NSNotification

* Add component theming

* Add tabbar themer

* Update tab example to use UIAppearance

* Theme sliders based on UIAppearance proxy

* Allow any class conforming to MDCColorScheme

* Override navigation bar color theme for imagery example.

* Update AppBar and ButtonBar color theming

* Update button bar themer comment

* Update button theming

* Remove theme imports where not necessary.

* Fix case of private
2017-06-23 11:36:48 -04:00
Robert Moore
8be69aecb9 [ActivityIndicator] Default cycleColors property for empty arrays #1508 (#1540)
* [ActivityIndicator] Default cycleColors property for empty arrays

The |cycleColors| property currently handles empty array assignments by assigning an array with a
single blue color.  This change will modify that behavior to revert back to the original "default"
array.

* Adding unit tests to confirm the default behavior in different scenarios.

* Simplifying implementation of default `cycleColors` values based on feedback from @ianegordon

* * Code clean-up and simplification for stroke color updates

* Adding class check in +initialize

* Adding basic Swift unit tests, minor clean-up, removing bad test.
2017-06-21 22:32:56 -04:00
Randall Li
266a716f60 Fix imports to use umbrella imports (#1529)
* [ColorThemes] Use umbrella header instead of MDCColorScheme

* [Application] Use umbrella header instead of class header

* [Button] use umbrella header in private header

* [Typography] use umbrella header in private header

* icons using umbrella header in individual icon class

* [Icons] added header to umbrella header

* [collection] umbrella header instead of class header in test

* [Collections] use umbrella header in private header

* [ActivityIndicator] use umbrella header in private header

* [ButtonBar] use umbrella header in private header

* [Dialog] use umbrella header in private header

* [featurehighlight] use umbrella header in private header

* [snackbar] use umbrella header in private header

* [textFields] use umbrella header in private header

* [thumbtrack] use umbrella header in private header

* [Overlay] use umbrella header in private header

also removed spurious ’s’ at end of MaterialOverlay.h file

* [slider] use umbrella header in private header

* [buttonBar] use umbrella header in private header

* [slider] use umbrella header in test

* [Overlay] fixed overlay reference to use umbrella header
2017-06-19 15:57:48 -04:00
Justin Shephard
224f66b206 [ActivityIndicator] - Add ticket to TODO 2017-06-15 20:01:37 -04:00
Justin Shephard
6762f96e78 [ActivityIndicator] - Added hack for empty cycleColors array. Will be fixed with ticket 1508 2017-06-15 19:45:58 -04:00
Justin Shephard
9a08ecaa5c Exposed enum and private method to be used for subclassing (#1481)
Travis completed successfully. Merging
2017-06-02 17:41:56 -04:00
Junius Gunaratne
71d441a065 Component themers and usage example for catalog (#1443)
Adding color scheme component themers.
2017-05-30 17:28:03 -04:00
Randall Li
25e57b2c73 white space nit 2017-05-25 15:42:37 -04:00
Alastair Tse
3ae88076c7 [catalog] Restyle Activity Indicator example (#1433)
* [catalog] Restyle Activity Indicator example

Simplify layout with a regular sized indicator.

* [catalog] Restyle Activity Indicator example

Simplify layout with a regular sized indicator.
2017-05-15 16:29:44 -04:00
Scott Hyndman
eed028eacb [Docs] Adds API documentation roots and tidies up here and there. (#1425)
* [Docs] Marks component files as API documentation roots.

Used by the site generator to determine where to build API docs. I
marked everything built by the previous version.

* [Docs] Adds a prefix to all Material guidelines links.

* [Docs] Adds API doc links to some components.
2017-05-12 16:03:56 -04:00
Scott Hyndman
1571a1b9ee [Docs] Nests components in the navigation as spec'd. (#1404)
Also took the opportunity to remove an unneeded liquid style
application.
2017-05-09 11:49:44 -04:00