Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
xjerwa 79c63899c7 Moved geteventlisteners module to local and revised JS to use es5 syntax (#48)
* Updated to v0.5.1, Moved geteventlisteners module to local and revised JS to use es5 syntax, Minor typing fixes

* Updated changelog

* Remove changelog change

* Update @types/react

* Better type

* revert version bumps for core + fabric
2018-12-06 17:18:30 +02:00
Ben Grynhaus 57f7b0f52c Fix up package-lock.json 2018-12-04 11:06:26 +02:00
xjerwa bc393707bd Upgrade to Angular 7.0, Fabric 6.110.0; Fix build errors (#45)
* Upgrade react and react-dom to latest versions

* Updated Angular to v7.0, Updated office-ui-fabric-react to v6.110.0

* Fixed missing imports and reference errors

* Un-generic-ed EventListener (was causing errors since default EventListener is not generic)

* Removed noops on HoverCard and Tooltip component scss since they were moved to global styles in Fabric

* Upgrade office-ui-fabric-react to 6.110.0 + Add PlainCard and ExpandingCard components

* Renamed EventListener to IEventListener, Renamed some *.d.ts files to *.ts due to build issues

* Updated component property bindings to match new Fabric version

* Rename EventListener array and map to `I`-prefied versions to avoid confusion
2018-12-04 10:34:15 +02:00
Ben Grynhaus 68f3581e9e
Package upgrades, Prettier alignment (#38)
- Package upgrades (non-breaking)
- Align repo to Prettier 1.15.3
  - [includes] Revert decorators to their previous position in components, before the change in 1.14.
2018-12-01 21:25:27 +02:00
Ben Grynhaus 13ff801cc7
Allow specifying arbitrary event handlers to any ReactWrapperComponent (#39)
Using the [`geteventlisteners`](https://www.npmjs.com/package/geteventlisteners) package to allow capturing arbitrary event handlers specified as `@Output`s on any React-wrapper component. e.g.:
```html
<fab-icon iconName="Add" (onClick)="handleIconClick($event)" (onMouseOver)="handleIconMouseOver($event)"></fab-icon>
```
```typescript
handleIconClick(ev: MouseEvent) {
  console.log('icon clicked!', ev);  
}

handleIconMouseOver(ev: MouseEvent) {
  console.log('icon moused-over!', ev);  
}
```

Although extending global prototypes (i.e. not-yours) is bad practice, this is what Angular uses to capture events, and this seemed like the only way to get any arbitrary output from the element.
The other option is to handle each specific event, which is a rather long list, and requires further maintenance, when the DOM, React or the component library adds events to listen to.
This is similar in the idea as us passing any arbitrary attribute to the underlying React component.
2018-12-01 20:47:31 +02:00
Ben Grynhaus c0f51c1229 [Core] Added stylenames package (bundleded dependency) 2018-10-19 22:17:13 +03:00
Ben Grynhaus 6a8dae502b [Core] Added classnames package (bundleded dependency) 2018-10-19 22:17:13 +03:00
Ben Grynhaus 8319aff818 Upgrade office-ui-fabric-react to 6.73.0 2018-09-26 13:29:47 +03:00
Ben Feely 04b0e620d8 Update to license/copyright on each lib file. Lint fixes. 2018-08-16 12:17:03 -07:00
Ben Feely d1dedb975a Update to docs. 2018-08-16 11:23:31 -07:00
Ben Feely 3bcc903e10 Update to fix after github move. 2018-08-10 15:17:01 -07:00
Ben Grynhaus 3fde3c11c1 Upgrade all dependencies- Angular 6.1- TypeScript 2.9.2- office-ui-fabric-react 6.43.0
# Conflicts:
#	apps/demo/src/app/app.component.ts
#	libs/core/package-lock.json
#	libs/core/package.json
#	libs/fabric/package.json
#	libs/fabric/public-api.ts
#	libs/fabric/src/lib/components/command-bar/command-bar.component.ts
#	package-lock.json
#	package.json
2018-08-02 11:16:43 +03:00
Ben Grynhaus 31b580c8b7 Change to external dependency on @types/css-to-style 2018-07-19 10:48:11 +03:00
Ben Grynhaus 1b4c032c76 move css-to-style to root package.json 2018-07-19 10:45:41 +03:00
Ben Grynhaus 9f2da7d3bc - Align dependencies (core & fabric & semantic-ui)
- Bump versions (core & fabric)
2018-07-13 13:52:50 +03:00
Ben Grynhaus 8779fe002a Added Shimmer component 2018-07-06 16:10:09 +03:00
Ben Grynhaus 90a68246de Upgrade safe dependencies 2018-06-28 16:40:46 +03:00
Ben Feely 3bbd1546a3
Users/benfeely/material (#2)
* Update NX and add support for Angular Material.

* Added support for Angular Material and implemented simple nav.
Patterned after Angular-Material website.

* Update npm dependency.

* Fix bug when switching between perf pages.

* Rename Demo app to Docs

* Initial after adding demo app.

* Update demo app.

* Build docs for github hosting.
2018-04-10 16:29:10 -07:00
Ben Feely ae743b4040 Working on library builds. 2018-04-04 10:05:15 -07:00
Ben Feely d538d186c6 Post install. 2018-04-03 20:26:53 -07:00