├── .gitignore ├── .nuget └── packages.config ├── AZURE.md ├── CONTRIBUTING.md ├── ClauseLibrary.Common ├── ClauseLibrary.Common.csproj ├── EncryptionHelper.cs ├── IListItemsRepository.cs ├── ISharePointService.cs ├── ItemCountResponse.cs ├── ListItem.cs ├── ListItemResponse.cs ├── ListItemsRepository.cs ├── MetaData.cs ├── Models │ ├── SharePointUser.cs │ ├── Token.cs │ └── Web.cs ├── MultipleSymmetricKeySecurityToken.cs ├── Properties │ └── AssemblyInfo.cs ├── RestItemResponse.cs ├── RestItemsResponse.cs ├── ResultsContainer.cs ├── SPBasePermissions.cs ├── Services │ ├── ExceptionService.cs │ ├── LoggingService.cs │ └── ValidationService.cs ├── SharePointAccessInfo.cs ├── SharePointContext.cs ├── SharePointContextToken.cs ├── SharePointList.cs ├── SharePointService.cs ├── SpApiConstants.cs ├── TokenHelper.cs └── packages.config ├── ClauseLibrary.OfficeApp ├── Clause Library.docx ├── ClauseLibrary.OfficeApp.Manifest │ ├── ClauseLibrary.OfficeApp.xml │ └── SharePointProjectItem.spdata ├── ClauseLibrary.OfficeApp.csproj ├── app.config ├── clauselibrary_logo_64x64.ico └── packages.config ├── ClauseLibrary.Web.Tests ├── Builders │ ├── FluentClauseBuilder.cs │ ├── FluentGroupBuilder.cs │ └── FluentSharePointUserBuilder.cs ├── ClauseLibrary.Web.Tests.csproj ├── ListItemsRepositoryTest.cs ├── LoggingServiceTest.cs ├── Logs │ └── Log_15-10-30.txt ├── Properties │ └── AssemblyInfo.cs ├── app.config └── packages.config ├── ClauseLibrary.Web ├── App_Data │ └── LoginSettings.json ├── App_GlobalResources │ ├── Resources.Designer.cs │ └── Resources.resx ├── App_Start │ ├── AccessTokenHandler.cs │ ├── BundleConfig.cs │ ├── FilterConfig.cs │ ├── NinjectWebCommon.cs │ ├── RouteConfig.cs │ ├── UserTokenCacheEntry.cs │ └── WebApiConfig.cs ├── ApplicationInsights.config ├── ClauseLibrary.Web.csproj ├── Content │ ├── Office.css │ ├── OfficeThemes.css │ ├── Site.css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── clauseLibraryIcons.png.css │ ├── fabric │ │ ├── css │ │ │ ├── fabric.components.css │ │ │ ├── fabric.components.min.css │ │ │ ├── fabric.components.rtl.css │ │ │ ├── fabric.components.rtl.min.css │ │ │ ├── fabric.css │ │ │ ├── fabric.min.css │ │ │ ├── fabric.rtl.css │ │ │ └── fabric.rtl.min.css │ │ └── less │ │ │ ├── Fabric.Components.less │ │ │ ├── Fabric.RTL.less │ │ │ ├── Fabric.less │ │ │ ├── _Fabric.Animations.RTL.less │ │ │ ├── _Fabric.Animations.less │ │ │ ├── _Fabric.Color.Mixins.less │ │ │ ├── _Fabric.Color.Variables.less │ │ │ ├── _Fabric.Grid.less │ │ │ ├── _Fabric.Icons.Font.less │ │ │ ├── _Fabric.Icons.RTL.less │ │ │ ├── _Fabric.Icons.less │ │ │ ├── _Fabric.Mixins.less │ │ │ ├── _Fabric.Responsive.Utilities.less │ │ │ ├── _Fabric.Responsive.Variables.less │ │ │ ├── _Fabric.Typography.Fonts.less │ │ │ ├── _Fabric.Typography.Languageoverrides.less │ │ │ ├── _Fabric.Typography.Variables.less │ │ │ ├── _Fabric.Typography.less │ │ │ ├── _Fabric.Utilities.less │ │ │ ├── _Fabric.ZIndex.Variables.less │ │ │ ├── _Office.Color.Mixins.less │ │ │ └── _Office.Color.Variables.less │ ├── jasmine │ │ ├── jasmine.css │ │ └── jasmine_favicon.png │ ├── jquery.cleditor.css │ ├── select.css │ ├── select.min.css │ └── tree.css ├── Controllers │ ├── ApiControllerBase.cs │ ├── AppController.cs │ ├── AuthenticationController.cs │ ├── ClausesController.cs │ ├── ExceptionHandlingAttribute.cs │ ├── ExternalLinksController.cs │ ├── FavouritesController.cs │ ├── GroupsController.cs │ ├── JasmineController.cs │ ├── ListItemsController.cs │ ├── SettingsController.cs │ ├── TagsController.cs │ └── UserController.cs ├── Global.asax ├── Global.asax.cs ├── Hubs │ └── AuthenticationHub.cs ├── Images │ ├── clauseLibraryIcons.png │ ├── clauseLibraryIcons.png.css │ ├── clauseLibraryIcons.png.less │ ├── clauseLibraryIcons.png.map │ ├── clauseLibraryIcons.png.scss │ ├── clauseLibraryIcons.sprite │ ├── clauseLibraryLogo.png │ ├── clauselibrary_logo_32x32.png │ ├── clauselibrary_logo_54x54.png │ ├── clauselibrary_logo_64x64.png │ ├── icon_add.png │ ├── icon_clause_arrow_collapsed.png │ ├── icon_clause_arrow_expanded.png │ ├── icon_close.png │ ├── icon_close_white.png │ ├── icon_cog.png │ ├── icon_cog_disabled.png │ ├── icon_collapse.png │ ├── icon_edit.png │ ├── icon_expand.png │ ├── icon_favorite_selected.png │ ├── icon_favorite_unselected.png │ ├── icon_group_arrow_collapsed.png │ ├── icon_group_arrow_expanded.png │ ├── icon_minus_collapse.png │ ├── icon_minus_collapse_hover.png │ ├── icon_plus_expand.png │ ├── icon_plus_expand_hover.png │ ├── icon_refresh.png │ ├── icon_search.png │ ├── loading.gif │ └── user.png ├── Models │ ├── DataModel │ │ ├── Clause.cs │ │ ├── ExternalLink.cs │ │ ├── Favourite.cs │ │ ├── Group.cs │ │ ├── LibraryConnectionResult.cs │ │ └── Tag.cs │ ├── Database │ │ ├── LoginSettings │ │ │ ├── Library.cs │ │ │ ├── LoginSettingsContext.cs │ │ │ ├── LoginSettingsInitializer .cs │ │ │ ├── Tenant.cs │ │ │ └── User.cs │ │ └── Services │ │ │ ├── ILoginSettingsService.cs │ │ │ ├── JsonFileLoginSettingsService.cs │ │ │ └── SqlLoginSettingsService.cs │ ├── ItemRequestModel.cs │ ├── LibraryModel.cs │ ├── MetaData.cs │ ├── Migrations │ │ └── Configuration.cs │ └── ServiceResponse.cs ├── Properties │ └── AssemblyInfo.cs ├── ProvisioningJson.cs ├── Repositories │ ├── ClauseRepository.cs │ ├── ExternalLinksRepository.cs │ ├── FavouritesRepository.cs │ ├── GroupRepository.cs │ ├── IClauseRepository.cs │ ├── IExternalLinksRepository.cs │ ├── IFavouritesRepository.cs │ ├── IGroupRepository.cs │ ├── ITagRepository.cs │ └── TagRepository.cs ├── Scripts │ ├── App.js │ ├── Controllers │ │ ├── accountController.js │ │ ├── addClauseController.js │ │ ├── addGroupController.js │ │ ├── baseClauseController.js │ │ ├── editClauseController.js │ │ ├── editGroupController.js │ │ ├── headerController.js │ │ ├── manageController.js │ │ ├── modalControllers.js │ │ ├── notificationController.js │ │ ├── settingsController.js │ │ └── welcomeController.js │ ├── Directives │ │ ├── cleditorDirective.js │ │ ├── designeeList.js │ │ ├── dpsOfficeUi.js │ │ ├── hover.js │ │ ├── ps-accordion.js │ │ ├── ps-enter.js │ │ ├── removeClass.js │ │ ├── tree.js │ │ └── trustHtml.js │ ├── Models │ │ └── AccessInfo.js │ ├── Office │ │ ├── 1.1 │ │ │ ├── word-15.01.debug.js │ │ │ ├── word-15.01.js │ │ │ ├── word-15.debug.js │ │ │ ├── word-15.js │ │ │ ├── word-web-16.00.debug.js │ │ │ ├── word-web-16.00.js │ │ │ ├── word-win32-16.00.debug.js │ │ │ └── word-win32-16.00.js │ │ └── MicrosoftAjax.js │ ├── Plugins │ │ ├── jquery.cleditor.js │ │ └── jquery.cleditor.min.js │ ├── Services │ │ ├── analyticsService.js │ │ ├── apiService.js │ │ ├── authenticationHubService.js │ │ ├── clauseItemService.js │ │ ├── clauseLibraryCoreServices.js │ │ ├── clauseLibraryWelcomeServices.js │ │ ├── constantsService.js │ │ ├── dataService.js │ │ ├── exceptionHandler.js │ │ ├── externalLinksService.js │ │ ├── favouriteItemService.js │ │ ├── groupItemService.js │ │ ├── localDatabaseService.js │ │ ├── localStorageService.js │ │ ├── manageViewService.js │ │ ├── modalService.js │ │ ├── navigationService.js │ │ ├── notificationService.js │ │ ├── officeService.js │ │ ├── offlineService.js │ │ ├── sessionService.js │ │ ├── settingsService.js │ │ ├── tagService.js │ │ └── userService.js │ ├── Welcome.js │ ├── _officeintellisense.js │ ├── _references.js │ ├── angular-indexed-db.js │ ├── angular-indexed-db.min.js │ ├── angular-indexed-db.min.js.map │ ├── angular-messages.js │ ├── angular-messages.min.js │ ├── angular-messages.min.js.map │ ├── angular-mocks.js │ ├── angular-route.js │ ├── angular-route.min.js │ ├── angular-route.min.js.map │ ├── angular-sanitize.js │ ├── angular-sanitize.min.js │ ├── angular-sanitize.min.js.map │ ├── angular-spinner.min.js │ ├── angular-spinner.min.js.map │ ├── angular-ui-router.js │ ├── angular-ui-router.min.js │ ├── angular.js │ ├── angular.min.js │ ├── angular.min.js.map │ ├── angulartics-ga.js │ ├── angulartics-ga.min.js │ ├── angulartics.js │ ├── angulartics.min.js │ ├── async.js │ ├── async.min.js │ ├── async.min.js.map │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── fabric │ │ ├── jquery.fabric.js │ │ └── jquery.fabric.min.js │ ├── jasmine-specs │ │ └── localStorageServiceSpec.js │ ├── jasmine │ │ ├── boot.js │ │ ├── console.js │ │ ├── jasmine-html.js │ │ └── jasmine.js │ ├── jquery-1.9.1.intellisense.js │ ├── jquery-1.9.1.js │ ├── jquery-1.9.1.min.js │ ├── jquery-1.9.1.min.js.map │ ├── jquery-1.9.1.min.map │ ├── jquery.signalR-2.2.0.js │ ├── jquery.signalR-2.2.0.min.js │ ├── jquery.validate-vsdoc.js │ ├── jquery.validate.js │ ├── jquery.validate.min.js │ ├── jquery.validate.unobtrusive.js │ ├── jquery.validate.unobtrusive.min.js │ ├── modernizr-2.6.2.js │ ├── npm.js │ ├── office.js │ ├── office.min.js │ ├── office.min.js.map │ ├── select.js │ ├── select.min.js │ ├── spin.min.js │ └── ui-bootstrap-tpls-0.12.1.min.js ├── Services │ ├── ClauseService.cs │ ├── ExternalLinksService.cs │ ├── GroupService.cs │ ├── IExternalLinksService.cs │ ├── IListItemRequestService.cs │ ├── IProvisioningService.cs │ ├── IRefreshTokenManager.cs │ ├── ITagService.cs │ ├── ListItemRequestService.cs │ ├── ProvisioningService.cs │ ├── QueryStringRefreshTokenManager.cs │ └── ServerCookieRefreshTokenManager.cs ├── SettingsHelper.cs ├── Startup.cs ├── UrlHelper.cs ├── ViewModels │ ├── IndexViewModel.cs │ ├── ProcessCodeViewModel.cs │ ├── SignInSuccessViewModel.cs │ └── WelcomeViewModel.cs ├── Views │ ├── App │ │ ├── Index.cshtml │ │ ├── Welcome.cshtml │ │ ├── _Account.cshtml │ │ ├── _ClauseDisplayTemplate.cshtml │ │ ├── _EditClause.cshtml │ │ ├── _EditGroup.cshtml │ │ ├── _GroupDisplayTemplate.cshtml │ │ ├── _GroupSelectionTemplate.cshtml │ │ ├── _Manage.cshtml │ │ ├── _Modals.cshtml │ │ ├── _Notifications.cshtml │ │ ├── _Scripts.cshtml │ │ └── _Settings.cshtml │ ├── Authentication │ │ ├── ProcessCode.cshtml │ │ ├── SignInSuccess.cshtml │ │ └── SignOutSuccess.cshtml │ ├── Jasmine │ │ └── SpecRunner.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _OfficeLayout.cshtml │ ├── _ViewStart.cshtml │ └── web.config ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── components │ ├── Breadcrumb │ │ ├── Breadcrumb.css │ │ ├── Breadcrumb.html │ │ ├── Breadcrumb.json │ │ ├── Breadcrumb.less │ │ └── Breadcrumb.min.css │ ├── Button │ │ ├── Button.css │ │ ├── Button.html │ │ ├── Button.json │ │ ├── Button.less │ │ └── Button.min.css │ ├── Callout │ │ ├── Callout.ActionText.html │ │ ├── Callout.Close.html │ │ ├── Callout.Oobe.html │ │ ├── Callout.Peek.html │ │ ├── Callout.css │ │ ├── Callout.html │ │ ├── Callout.json │ │ ├── Callout.less │ │ └── Callout.min.css │ ├── ChoiceField │ │ ├── ChoiceField.Checkbox.Selected.html │ │ ├── ChoiceField.Checkbox.Unselected.html │ │ ├── ChoiceField.ChoiceFieldGroup.html │ │ ├── ChoiceField.Radio.Selected.html │ │ ├── ChoiceField.Radio.Unselected.html │ │ ├── ChoiceField.css │ │ ├── ChoiceField.json │ │ ├── ChoiceField.less │ │ └── ChoiceField.min.css │ ├── CommandBar │ │ ├── CommandBar.css │ │ ├── CommandBar.html │ │ ├── CommandBar.json │ │ ├── CommandBar.less │ │ ├── CommandBar.min.css │ │ └── Jquery.CommandBar.js │ ├── ContextualMenu │ │ ├── ContextualMenu.Dividers.html │ │ ├── ContextualMenu.Multiselect.html │ │ ├── ContextualMenu.SubMenu.html │ │ ├── ContextualMenu.css │ │ ├── ContextualMenu.html │ │ ├── ContextualMenu.json │ │ ├── ContextualMenu.less │ │ ├── ContextualMenu.min.css │ │ └── Jquery.ContextualMenu.js │ ├── DatePicker │ │ ├── DatePicker.css │ │ ├── DatePicker.html │ │ ├── DatePicker.json │ │ ├── DatePicker.less │ │ ├── DatePicker.min.css │ │ └── Jquery.DatePicker.js │ ├── Dialog │ │ ├── Dialog.Default.html │ │ ├── Dialog.LgHeader.html │ │ ├── Dialog.Multiline.html │ │ ├── Dialog.css │ │ ├── Dialog.json │ │ ├── Dialog.less │ │ └── Dialog.min.css │ ├── Dropdown │ │ ├── Dropdown.css │ │ ├── Dropdown.html │ │ ├── Dropdown.json │ │ ├── Dropdown.less │ │ ├── Dropdown.min.css │ │ └── Jquery.Dropdown.js │ ├── Label │ │ ├── Label.css │ │ ├── Label.html │ │ ├── Label.json │ │ ├── Label.less │ │ └── Label.min.css │ ├── Link │ │ ├── Link.css │ │ ├── Link.html │ │ ├── Link.json │ │ ├── Link.less │ │ └── Link.min.css │ ├── List │ │ ├── List.Grid.html │ │ ├── List.css │ │ ├── List.html │ │ ├── List.json │ │ ├── List.less │ │ └── List.min.css │ ├── ListItem │ │ ├── Jquery.ListItem.js │ │ ├── ListItem.Document.html │ │ ├── ListItem.Image.html │ │ ├── ListItem.Selectable.html │ │ ├── ListItem.Selected.html │ │ ├── ListItem.Unread.html │ │ ├── ListItem.Unseen.html │ │ ├── ListItem.css │ │ ├── ListItem.html │ │ ├── ListItem.json │ │ ├── ListItem.less │ │ └── ListItem.min.css │ ├── NavBar │ │ ├── Jquery.NavBar.js │ │ ├── NavBar.css │ │ ├── NavBar.html │ │ ├── NavBar.json │ │ ├── NavBar.less │ │ └── NavBar.min.css │ ├── OrgChart │ │ ├── OrgChart.Square.html │ │ ├── OrgChart.css │ │ ├── OrgChart.html │ │ ├── OrgChart.json │ │ ├── OrgChart.less │ │ └── OrgChart.min.css │ ├── Overlay │ │ ├── Overlay.css │ │ ├── Overlay.html │ │ ├── Overlay.json │ │ ├── Overlay.less │ │ └── Overlay.min.css │ ├── Panel │ │ ├── Jquery.Panel.js │ │ ├── Panel.css │ │ ├── Panel.html │ │ ├── Panel.json │ │ ├── Panel.less │ │ └── Panel.min.css │ ├── PeoplePicker │ │ ├── Jquery.PeoplePicker.js │ │ ├── PeoplePicker.Compact.html │ │ ├── PeoplePicker.Disconnected.html │ │ ├── PeoplePicker.FacePile.html │ │ ├── PeoplePicker.Searching.png │ │ ├── PeoplePicker.css │ │ ├── PeoplePicker.html │ │ ├── PeoplePicker.json │ │ ├── PeoplePicker.less │ │ └── PeoplePicker.min.css │ ├── Persona │ │ ├── Persona.ExtraLarge.html │ │ ├── Persona.ExtraSmall.html │ │ ├── Persona.Large.html │ │ ├── Persona.Person.jpg │ │ ├── Persona.Person2.png │ │ ├── Persona.Presence.Available.html │ │ ├── Persona.Presence.Away.html │ │ ├── Persona.Presence.Blocked.html │ │ ├── Persona.Presence.Busy.html │ │ ├── Persona.Presence.Dnd.html │ │ ├── Persona.Presence.Offline.html │ │ ├── Persona.Presence.Square.Available.html │ │ ├── Persona.Presence.Square.Away.html │ │ ├── Persona.Presence.Square.Blocked.html │ │ ├── Persona.Presence.Square.Busy.html │ │ ├── Persona.Presence.Square.Dnd.html │ │ ├── Persona.Presence.Square.Offline.html │ │ ├── Persona.Small.html │ │ ├── Persona.Square.ExtraLarge.html │ │ ├── Persona.Square.ExtraSmall.html │ │ ├── Persona.Square.Large.html │ │ ├── Persona.Square.Small.html │ │ ├── Persona.Square.Tiny.html │ │ ├── Persona.Square.html │ │ ├── Persona.Tiny.html │ │ ├── Persona.css │ │ ├── Persona.html │ │ ├── Persona.json │ │ ├── Persona.less │ │ └── Persona.min.css │ ├── PersonaCard │ │ ├── Jquery.PersonaCard.js │ │ ├── PersonaCard.Square.html │ │ ├── PersonaCard.css │ │ ├── PersonaCard.html │ │ ├── PersonaCard.json │ │ ├── PersonaCard.less │ │ └── PersonaCard.min.css │ ├── Pivot │ │ ├── Pivot.css │ │ ├── Pivot.html │ │ ├── Pivot.json │ │ ├── Pivot.less │ │ ├── Pivot.min.css │ │ └── jquery.Pivot.js │ ├── SearchBox │ │ ├── Jquery.SearchBox.js │ │ ├── SearchBox.css │ │ ├── SearchBox.html │ │ ├── SearchBox.json │ │ ├── SearchBox.less │ │ └── SearchBox.min.css │ ├── Spinner │ │ ├── Spinner.css │ │ ├── Spinner.html │ │ ├── Spinner.js │ │ ├── Spinner.json │ │ ├── Spinner.less │ │ └── Spinner.min.css │ ├── Table │ │ ├── Table.css │ │ ├── Table.html │ │ ├── Table.json │ │ ├── Table.less │ │ └── Table.min.css │ ├── TextField │ │ ├── Jquery.TextField.js │ │ ├── TextField.Multiline.html │ │ ├── TextField.Placeholder.html │ │ ├── TextField.Underlined.html │ │ ├── TextField.css │ │ ├── TextField.html │ │ ├── TextField.json │ │ ├── TextField.less │ │ └── TextField.min.css │ └── Toggle │ │ ├── Toggle.TextLeft.html │ │ ├── Toggle.css │ │ ├── Toggle.html │ │ ├── Toggle.json │ │ ├── Toggle.less │ │ └── Toggle.min.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── manifest.appcache └── packages.config ├── ClauseLibrary.sln ├── LICENSE ├── Public publish.ruleset ├── README.md ├── Word-Add-in-ClauseLibrary-Code-Sample.yml └── gh-docs ├── app-create-library.png ├── app-login.png ├── azure-ad-add-an-app-wizard-1.png ├── azure-ad-add-an-app-wizard-2.png ├── azure-ad-add-an-app-wizard-3.png ├── azure-ad-add-an-app.png ├── azure-ad-client-id-secret.png ├── azure-ad-configure.png ├── azure-ad-permissions.png ├── azure-ad-reply-url.png ├── o365-portal-first-release.png ├── office-app-default.png ├── publish-existing-final.png ├── publish-existing.png ├── publish-new.png ├── publish-web-details.png ├── sharepoint-add-subsite-details.png ├── sharepoint-add-subsite.png ├── sharepoint-sitecontents.png ├── visual-studio-office-app-unavailable.png ├── visual-studio-office-developer-tools.png └── web-app-url.png /.nuget/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution guidance 2 | 3 | *work in progress* 4 | 5 | This repository is open for and contributions with the following guidelines. 6 | 7 | * Do not use emoticons in the code or articles 8 | * Submit one PR for specific changes, avoid combining too many commits to one pull request 9 | * Do not delete your feature branch before a pull request has been processed by the core team 10 | * All community contributions are more than welcome. 11 | 12 | ### Getting Started ### 13 | 14 | - For getting started guidance, see the [Readme](readme.md). -------------------------------------------------------------------------------- /ClauseLibrary.Common/ItemCountResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Common 5 | { 6 | /// 7 | /// The item count response. 8 | /// 9 | public class ItemCountResponse 10 | { 11 | /// 12 | /// Gets or sets the item count. 13 | /// 14 | public int ItemCount { get; set; } 15 | } 16 | } 17 | 18 | #region License 19 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 20 | // 21 | // Copyright 2015(c) Microsoft Corporation 22 | // 23 | // All rights reserved. 24 | // 25 | // MIT License: 26 | // 27 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 28 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 29 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 31 | // following conditions: 32 | // 33 | // The above copyright notice and this permission notice shall be included in all copies or substantial 34 | // portions of the Software. 35 | // 36 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 37 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 38 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 39 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 40 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 41 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Common/ListItemResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Common 5 | { 6 | /// 7 | /// A list item response. 8 | /// 9 | /// 10 | internal class ListItemResponse : ListItem 11 | { 12 | /// 13 | /// Rest Item 14 | /// 15 | public T d { get; set; } 16 | 17 | /// 18 | /// Initializes a new instance of the class. 19 | /// 20 | public ListItemResponse() : base(true) 21 | { 22 | } 23 | } 24 | } 25 | 26 | #region License 27 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 28 | // 29 | // Copyright 2015(c) Microsoft Corporation 30 | // 31 | // All rights reserved. 32 | // 33 | // MIT License: 34 | // 35 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 36 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 37 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 38 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 39 | // following conditions: 40 | // 41 | // The above copyright notice and this permission notice shall be included in all copies or substantial 42 | // portions of the Software. 43 | // 44 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 45 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 46 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 47 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 48 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 49 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Common/RestItemResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Common 5 | { 6 | /// 7 | /// Response Package contains an Item when returned from SharePoint REST API 8 | /// 9 | /// Type of Item contained in response 10 | public class RestItemResponse 11 | { 12 | /// 13 | /// Rest Item 14 | /// 15 | public T d { get; set; } 16 | } 17 | } 18 | 19 | #region License 20 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 21 | // 22 | // Copyright 2015(c) Microsoft Corporation 23 | // 24 | // All rights reserved. 25 | // 26 | // MIT License: 27 | // 28 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 29 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 30 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 31 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 32 | // following conditions: 33 | // 34 | // The above copyright notice and this permission notice shall be included in all copies or substantial 35 | // portions of the Software. 36 | // 37 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 38 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 39 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 40 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 41 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 42 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Common/SharePointList.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Common 5 | { 6 | /// 7 | /// A SharePoint list. 8 | /// 9 | public class SharePointList 10 | { 11 | /// 12 | /// Gets or sets the title. 13 | /// 14 | public string Title { get; set; } 15 | } 16 | } 17 | 18 | #region License 19 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 20 | // 21 | // Copyright 2015(c) Microsoft Corporation 22 | // 23 | // All rights reserved. 24 | // 25 | // MIT License: 26 | // 27 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 28 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 29 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 31 | // following conditions: 32 | // 33 | // The above copyright notice and this permission notice shall be included in all copies or substantial 34 | // portions of the Software. 35 | // 36 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 37 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 38 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 39 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 40 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 41 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Common/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ClauseLibrary.OfficeApp/Clause Library.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.OfficeApp/Clause Library.docx -------------------------------------------------------------------------------- /ClauseLibrary.OfficeApp/ClauseLibrary.OfficeApp.Manifest/SharePointProjectItem.spdata: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ClauseLibrary.OfficeApp/clauselibrary_logo_64x64.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.OfficeApp/clauselibrary_logo_64x64.ico -------------------------------------------------------------------------------- /ClauseLibrary.OfficeApp/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ClauseLibrary.Web.Tests/Logs/Log_15-10-30.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web.Tests/Logs/Log_15-10-30.txt -------------------------------------------------------------------------------- /ClauseLibrary.Web.Tests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using System.Web.Mvc; 5 | 6 | namespace ClauseLibrary.Web 7 | { 8 | /// 9 | /// Configures filters. 10 | /// 11 | public class FilterConfig 12 | { 13 | /// 14 | /// Registers the global filters. 15 | /// 16 | /// The filters. 17 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 18 | { 19 | filters.Add(new HandleErrorAttribute()); 20 | } 21 | } 22 | } 23 | 24 | #region License 25 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 26 | // 27 | // Copyright 2015(c) Microsoft Corporation 28 | // 29 | // All rights reserved. 30 | // 31 | // MIT License: 32 | // 33 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 34 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 35 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 36 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 37 | // following conditions: 38 | // 39 | // The above copyright notice and this permission notice shall be included in all copies or substantial 40 | // portions of the Software. 41 | // 42 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 43 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 44 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 45 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 46 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 47 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/Fabric.Components.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Components module loader 7 | 8 | 9 | @import (reference) 'Fabric.less'; 10 | 11 | @import '../components/Breadcrumb/Breadcrumb.less'; 12 | @import '../components/Button/Button.less'; 13 | @import '../components/Callout/Callout.less'; 14 | @import '../components/ChoiceField/ChoiceField.less'; 15 | @import '../components/CommandBar/CommandBar.less'; 16 | @import '../components/ContextualMenu/ContextualMenu.less'; 17 | @import '../components/Datepicker/DatePicker.less'; 18 | @import '../components/Dialog/Dialog.less'; 19 | @import '../components/Dropdown/Dropdown.less'; 20 | @import '../components/Label/Label.less'; 21 | @import '../components/Link/Link.less'; 22 | @import '../components/List/List.less'; 23 | @import '../components/ListItem/ListItem.less'; 24 | @import '../components/NavBar/NavBar.less'; 25 | @import '../components/OrgChart/OrgChart.less'; 26 | @import '../components/Overlay/Overlay.less'; 27 | @import '../components/Panel/Panel.less'; 28 | @import '../components/PeoplePicker/PeoplePicker.less'; 29 | @import '../components/Persona/Persona.less'; 30 | @import '../components/PersonaCard/PersonaCard.less'; 31 | @import '../components/Pivot/Pivot.less'; 32 | @import '../components/SearchBox/Searchbox.less'; 33 | @import '../components/Spinner/Spinner.less'; 34 | @import '../components/Table/Table.less'; 35 | @import '../components/TextField/TextField.less'; 36 | @import '../components/Toggle/Toggle.less'; 37 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/Fabric.RTL.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // OSS Framework Design Language 5 | // -------------------------------------------------- 6 | // Fabric Core Module Loader (RTL) 7 | 8 | // Common utilities 9 | @import '_Fabric.Utilities.less'; 10 | @import '_Fabric.ZIndex.Variables.less'; 11 | @import (reference) '_Fabric.Mixins.less'; 12 | 13 | // Colors 14 | @import '_Fabric.Color.Variables.less'; 15 | @import '_Fabric.Color.Mixins.less'; 16 | 17 | // Typography 18 | @import '_Fabric.Typography.Variables.less'; 19 | @import '_Fabric.Typography.Fonts.less'; 20 | @import '_Fabric.Typography.less'; 21 | @import '_Fabric.Typography.Languageoverrides.less'; 22 | 23 | // Icons 24 | @import '_Fabric.Icons.Font.less'; 25 | @import '_Fabric.Icons.RTL.less'; 26 | 27 | // Animations 28 | @import '_Fabric.Animations.RTL.less'; 29 | 30 | // Responsive 31 | @import '_Fabric.Responsive.Variables.less'; 32 | @import '_Fabric.Responsive.Utilities.less'; 33 | 34 | // Grid 35 | @import '_Fabric.Grid.less'; 36 | 37 | // Office colors 38 | @import '_Office.Color.Variables.less'; 39 | @import '_Office.Color.Mixins.less'; 40 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/Fabric.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Core Module Loader 7 | 8 | 9 | // Common utilities 10 | @import '_Fabric.Utilities.less'; 11 | @import '_Fabric.ZIndex.Variables.less'; 12 | @import (reference) '_Fabric.Mixins.less'; 13 | 14 | // Colors 15 | @import '_Fabric.Color.Variables.less'; 16 | @import '_Fabric.Color.Mixins.less'; 17 | 18 | // Typography 19 | @import '_Fabric.Typography.Variables.less'; 20 | @import '_Fabric.Typography.less'; 21 | @import '_Fabric.Typography.Fonts.less'; 22 | @import '_Fabric.Typography.Languageoverrides.less'; 23 | 24 | // Icons 25 | @import '_Fabric.Icons.Font.less'; 26 | @import '_Fabric.Icons.less'; 27 | 28 | // Animations 29 | @import '_Fabric.Animations.less'; 30 | 31 | // Responsive 32 | @import '_Fabric.Responsive.Variables.less'; 33 | @import '_Fabric.Responsive.Utilities.less'; 34 | 35 | // Grid 36 | @import '_Fabric.Grid.less'; 37 | 38 | // Office colors 39 | @import '_Office.Color.Variables.less'; 40 | @import '_Office.Color.Mixins.less'; 41 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Animations.RTL.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // RTL overrides for Fabric Animations 7 | 8 | 9 | @import '_Fabric.Animations.less'; 10 | 11 | // slideRightIn40 12 | .ms-u-slideRightIn40 { 13 | .animationMix(fadeIn, slideLeft40; @ms-duration3; @ms-ease1); 14 | } 15 | 16 | // slideLeftIn40 17 | .ms-u-slideLeftIn40 { 18 | .animationMix(fadeIn, slideRight40; @ms-duration3; @ms-ease1); 19 | } 20 | 21 | // slideRightIn400 22 | .ms-u-slideRightIn400 { 23 | .animationMix(fadeIn, slideLeft400; @ms-duration3; @ms-ease1); 24 | } 25 | 26 | // slideLeftIn400 27 | .ms-u-slideLeftIn400 { 28 | .animationMix(fadeIn, slideRight400; @ms-duration3; @ms-ease1); 29 | } 30 | 31 | // slideRightOut40 32 | .ms-u-slideRightOut40 { 33 | .animationMix(fadeOut, slideLeftOut40; @ms-duration1; @ms-ease2); 34 | } 35 | 36 | // slideLeftOut40 37 | .ms-u-slideLeftOut40 { 38 | .animationMix(fadeOut, slideRightOut40; @ms-duration1; @ms-ease2); 39 | } 40 | 41 | // slideRightOut400 42 | .ms-u-slideRightOut400 { 43 | .animationMix(fadeOut, slideLeftOut400; @ms-duration1; @ms-ease2); 44 | } 45 | 46 | // slideLeftOut400 47 | .ms-u-slideLeftOut400 { 48 | .animationMix(fadeOut, slideRightOut400; @ms-duration1; @ms-ease2); 49 | } 50 | 51 | // rotate90deg 52 | .ms-u-rotate90deg { 53 | .animationMix(rotateN90; 0.1s; @ms-ease2); 54 | } 55 | 56 | // rotateN90deg 57 | .ms-u-rotateN90deg { 58 | .animationMix(rotate90; 0.1s; @ms-ease2); 59 | } 60 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Grid.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Fluid 12-column grids for small, medium, and large devices 7 | 8 | 9 | //== Grid container (same for all sizes) 10 | // 11 | .ms-Grid { 12 | .ms-u-borderBox; 13 | .ms-u-clearfix; 14 | padding: 0 8px; 15 | } 16 | 17 | //== Grid rows (pull first and last column out) 18 | // 19 | .ms-Grid-row { 20 | margin: 0 -8px; 21 | .ms-u-borderBox; 22 | .ms-u-clearfix; 23 | } 24 | 25 | //== Grid cells 26 | // 27 | .ms-Grid-col { 28 | position: relative; 29 | min-height: 1px; 30 | padding-left: 8px; 31 | padding-right: 8px; 32 | .ms-u-borderBox; 33 | float: left; 34 | } 35 | 36 | // For nested grids (a grid inside a column), removing the padding 37 | // so that the nested grid's columns go to the edge of the parent's. 38 | .ms-Grid-col .ms-Grid { 39 | padding: 0; 40 | } 41 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Icons.Font.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Icon font-family definition 7 | 8 | /* 9 | Your use of the content in the files referenced here are subject to the terms of the license at https://appsforoffice.microsoft.com/fabric/Segoe UI and Fabric CDN License.txt 10 | */ 11 | 12 | 13 | @font-face { 14 | font-family: 'Office365Icons'; 15 | src: url('@{ms-font-directory}/icons/office365icons.eot?'); 16 | src: url('@{ms-font-directory}/icons/office365icons.eot?#iefix') format('embedded-opentype'), 17 | url('@{ms-font-directory}/icons/office365icons.woff?') format('woff'), 18 | url('@{ms-font-directory}/icons/office365icons.ttf?') format('truetype'), 19 | url('@{ms-font-directory}/icons/office365icons.svg?#office365icons') format('svg'); 20 | font-weight: normal; 21 | font-style: normal; 22 | } 23 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Responsive.Variables.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Fabric responsive variables 7 | 8 | 9 | //== Variables for responsive breakpoints 10 | // 11 | 12 | // Small screen / phone (320px - 479px) 13 | @ms-screen-sm-min: 320px; 14 | @ms-screen-sm-max: (@ms-screen-md-min - 1); 15 | 16 | // Medium screen / tablet (480px - 639px) 17 | @ms-screen-md-min: 480px; 18 | @ms-screen-md-max: (@ms-screen-lg-min - 1); 19 | 20 | // Large screen / tablet (640px - 1023px) 21 | @ms-screen-lg-min: 640px; 22 | @ms-screen-lg-max: (@ms-screen-xl-min - 1); 23 | 24 | // Extra large screen / tablet (1024px - 1365px) 25 | @ms-screen-xl-min: 1024px; 26 | @ms-screen-xl-max: (@ms-screen-xxl-min - 1); 27 | 28 | // Extra extra large screen / desktop (1366px - 1919px) 29 | @ms-screen-xxl-min: 1366px; 30 | @ms-screen-xxl-max: (@ms-screen-xxxl-min - 1); 31 | 32 | // Extra extra extra large screen / desktop (1366px and up) 33 | @ms-screen-xxxl-min: 1920px; -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Typography.Variables.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Fabric Core Typography variables 7 | 8 | 9 | @ms-font-family-light: 'Segoe UI Light WestEuropean', 'Segoe UI Light', 'Segoe WP Light', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 10 | @ms-font-family-regular: 'Segoe UI Regular WestEuropean', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 11 | @ms-font-family-semilight: 'Segoe UI Semilight WestEuropean', 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 12 | @ms-font-family-semibold: 'Segoe UI Semibold WestEuropean', 'Segoe UI Semibold', 'Segoe WP Semibold', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 13 | 14 | 15 | //== Type sizes 16 | // 17 | 18 | @ms-font-size-su: 42px; 19 | @ms-font-size-xxl: 28px; 20 | @ms-font-size-xl: 21px; 21 | @ms-font-size-l: 17px; 22 | @ms-font-size-m-plus: 15px; 23 | @ms-font-size-m: 14px; 24 | @ms-font-size-s-plus: 13px; 25 | @ms-font-size-s: 12px; 26 | @ms-font-size-xs: 11px; 27 | @ms-font-size-mi: 10px; 28 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.Utilities.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Utility classes and mixins used throughout Fabric. 7 | 8 | 9 | // The best box is a border box. 10 | .ms-u-borderBox, .ms-u-borderBox:before, .ms-u-borderBox:after { 11 | box-sizing: border-box; 12 | } 13 | 14 | // Ensures the block expands to the full height to enclose its floated childen. 15 | .ms-u-clearfix { 16 | *zoom: 1; 17 | &:before, 18 | &:after { 19 | display: table; 20 | content: ""; 21 | line-height: 0; 22 | } 23 | &:after { 24 | clear: both; 25 | } 26 | } 27 | 28 | // Basic border-box, margin, and padding reset. 29 | .ms-u-normalize { 30 | .ms-u-borderBox; 31 | .resetMargins; 32 | .resetPadding; 33 | .resetBoxShadow; 34 | } 35 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Fabric.ZIndex.Variables.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Z-Index Layeringz 7 | 8 | 9 | // Base Layer Variables 10 | @ms-zIndex-0: 0; 11 | @ms-zIndex-1: 100; 12 | @ms-zIndex-2: 200; 13 | @ms-zIndex-3: 300; 14 | @ms-zIndex-4: 400; 15 | @ms-zIndex-5: 500; 16 | 17 | // Base Layer Modifier Variables 18 | @ms-zIndex-back: 0; 19 | @ms-zIndex-middle: 5; 20 | @ms-zIndex-front: 10; 21 | 22 | 23 | // Fabric Component Base Layer Assignments 24 | 25 | @ms-zIndex-Callout: @ms-zIndex-1; 26 | @ms-zIndex-ContextualMenu: @ms-zIndex-1; 27 | @ms-zIndex-Overlay: @ms-zIndex-2; 28 | @ms-zIndex-Panel: @ms-zIndex-3; 29 | @ms-zIndex-DatePicker: @ms-zIndex-3; 30 | @ms-zIndex-Dialog: @ms-zIndex-3; 31 | @ms-zIndex-PeoplePicker: @ms-zIndex-3; 32 | @ms-zIndex-Dropdown: @ms-zIndex-4; 33 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/fabric/less/_Office.Color.Variables.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Office Core Color Variables 7 | 8 | 9 | //== Theme/Accent colors 10 | // 11 | // Colors used in Office 15 color pickers 12 | // These are deprecated as of Fabric 0.6 13 | 14 | @ms-color-officeAccent1: #FFFFFF; 15 | @ms-color-officeAccent2: #000000; 16 | @ms-color-officeAccent3: #E7E6E5; 17 | @ms-color-officeAccent4: #44546A; 18 | @ms-color-officeAccent5: #5B9BD5; 19 | @ms-color-officeAccent6: #ED7D31; 20 | @ms-color-officeAccent7: #A5A5A5; 21 | @ms-color-officeAccent8: #FFC001; 22 | @ms-color-officeAccent9: #4472C4; 23 | @ms-color-officeAccent10: #70AD47; 24 | 25 | @ms-color-presence-available: #5dd255; 26 | @ms-color-presence-away: #ffd200; 27 | @ms-color-presence-blocked-background: #dedede; 28 | @ms-color-presence-blocked-line: #c72d25; 29 | @ms-color-presence-busy-stripe-light: #e57a79; 30 | @ms-color-presence-busy-stripe-dark: #d00e0d; 31 | @ms-color-presence-busy-average: #d93b3b; 32 | @ms-color-presence-dnd-background: #c72d25; 33 | @ms-color-presence-dnd-line: #ffffff; 34 | @ms-color-presence-offline: #b6cfd8; 35 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/jasmine/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Content/jasmine/jasmine_favicon.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Content/jquery.cleditor.css: -------------------------------------------------------------------------------- 1 | .cleditorMain {border:1px solid #999; padding:0 1px 1px; background-color:white} 2 | .cleditorMain, 3 | .cleditorPopup, 4 | .cleditorMain * {-moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box} 5 | .cleditorMain iframe {border:none; margin:0; padding:0} 6 | .cleditorMain textarea {overflow-y:scroll; font:10pt Arial,Verdana; resize:none; outline:none} 7 | .cleditorToolbar {background: url('images/toolbar.gif') repeat} 8 | .cleditorGroup {float:left; height:26px} 9 | .cleditorButton {float:left; width:24px; height:24px; margin:1px 0 1px 0; background: url('images/buttons.gif')} 10 | .cleditorDisabled {opacity:0.3; filter:alpha(opacity=30)} 11 | .cleditorDivider {float:left; width:1px; height:23px; margin:1px 0 1px 0; background:#CCC} 12 | .cleditorPopup {border:solid 1px #999; background-color:white; color:#333333; position:absolute; font:10pt Arial,Verdana; cursor:default; z-index:10000} 13 | .cleditorList div {padding:2px 4px 2px 4px} 14 | .cleditorList p, 15 | .cleditorList h1, 16 | .cleditorList h2, 17 | .cleditorList h3, 18 | .cleditorList h4, 19 | .cleditorList h5, 20 | .cleditorList h6, 21 | .cleditorList font {padding:0; margin:0; background-color:Transparent} 22 | .cleditorColor {width:150px; padding:1px 0 0 1px} 23 | .cleditorColor div {float:left; width:14px; height:14px; margin:0 1px 1px 0} 24 | .cleditorPrompt {background-color:#F6F7F9; padding:8px; font-size:8.5pt} 25 | .cleditorPrompt label {padding-bottom:8px} 26 | .cleditorMsg {background-color:#FDFCEE; width:150px; padding:4px; font-size:8.5pt} -------------------------------------------------------------------------------- /ClauseLibrary.Web/Controllers/JasmineController.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using System.Web.Mvc; 5 | 6 | namespace ClauseLibrary.Web.Controllers 7 | { 8 | /// 9 | /// Executes jasmine tests. 10 | /// 11 | public class JasmineController : Controller 12 | { 13 | /// 14 | /// Runs the jasmine tests. 15 | /// 16 | public ViewResult Run() 17 | { 18 | return View("SpecRunner"); 19 | } 20 | } 21 | } 22 | 23 | #region License 24 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 25 | // 26 | // Copyright 2015(c) Microsoft Corporation 27 | // 28 | // All rights reserved. 29 | // 30 | // MIT License: 31 | // 32 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 33 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 34 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 35 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 36 | // following conditions: 37 | // 38 | // The above copyright notice and this permission notice shall be included in all copies or substantial 39 | // portions of the Software. 40 | // 41 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 42 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 43 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 44 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 45 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 46 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Controllers/TagsController.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Controllers 8 | { 9 | /// 10 | /// Provides API access to tags. 11 | /// 12 | [ExceptionHandling] 13 | public class TagsController : ListItemsController 14 | { 15 | /// 16 | /// Initializes a new instance of the class. 17 | /// 18 | public TagsController(IListItemsRepository tagRepository) : base(tagRepository) 19 | { 20 | } 21 | } 22 | } 23 | 24 | #region License 25 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 26 | // 27 | // Copyright 2015(c) Microsoft Corporation 28 | // 29 | // All rights reserved. 30 | // 31 | // MIT License: 32 | // 33 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 34 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 35 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 36 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 37 | // following conditions: 38 | // 39 | // The above copyright notice and this permission notice shall be included in all copies or substantial 40 | // portions of the Software. 41 | // 42 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 43 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 44 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 45 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 46 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 47 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ClauseLibrary.Web.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/clauseLibraryIcons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/clauseLibraryIcons.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/clauseLibraryLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/clauseLibraryLogo.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/clauselibrary_logo_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/clauselibrary_logo_32x32.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/clauselibrary_logo_54x54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/clauselibrary_logo_54x54.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/clauselibrary_logo_64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/clauselibrary_logo_64x64.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_add.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_clause_arrow_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_clause_arrow_collapsed.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_clause_arrow_expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_clause_arrow_expanded.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_close.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_close_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_close_white.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_cog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_cog.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_cog_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_cog_disabled.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_collapse.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_edit.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_expand.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_favorite_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_favorite_selected.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_favorite_unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_favorite_unselected.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_group_arrow_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_group_arrow_collapsed.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_group_arrow_expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_group_arrow_expanded.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_minus_collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_minus_collapse.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_minus_collapse_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_minus_collapse_hover.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_plus_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_plus_expand.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_plus_expand_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_plus_expand_hover.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_refresh.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/icon_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/icon_search.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/loading.gif -------------------------------------------------------------------------------- /ClauseLibrary.Web/Images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/Images/user.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/Models/Database/LoginSettings/Tenant.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | 7 | namespace ClauseLibrary.Web.Models.Database.LoginSettings 8 | { 9 | /// 10 | /// A SharePoint tenant. 11 | /// 12 | public class Tenant 13 | { 14 | /// 15 | /// Gets or sets the tenant identifier. 16 | /// 17 | public Guid TenantId { get; set; } 18 | 19 | /// 20 | /// Gets or sets the libraries. 21 | /// 22 | public virtual List Libraries { get; set; } 23 | } 24 | } 25 | 26 | #region License 27 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 28 | // 29 | // Copyright 2015(c) Microsoft Corporation 30 | // 31 | // All rights reserved. 32 | // 33 | // MIT License: 34 | // 35 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 36 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 37 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 38 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 39 | // following conditions: 40 | // 41 | // The above copyright notice and this permission notice shall be included in all copies or substantial 42 | // portions of the Software. 43 | // 44 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 45 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 46 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 47 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 48 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 49 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Models/Migrations/Configuration.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using System.Data.Entity.Migrations; 5 | using ClauseLibrary.Web.Models.Database.LoginSettings; 6 | 7 | namespace ClauseLibrary.Web.Migrations 8 | { 9 | internal sealed class Configuration : DbMigrationsConfiguration 10 | { 11 | public Configuration() 12 | { 13 | AutomaticMigrationsEnabled = true; 14 | ContextKey = "ClauseLibrary.Web.Models.Database.LoginSettings.LoginSettingsContext"; 15 | } 16 | } 17 | } 18 | 19 | #region License 20 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 21 | // 22 | // Copyright 2015(c) Microsoft Corporation 23 | // 24 | // All rights reserved. 25 | // 26 | // MIT License: 27 | // 28 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 29 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 30 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 31 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 32 | // following conditions: 33 | // 34 | // The above copyright notice and this permission notice shall be included in all copies or substantial 35 | // portions of the Software. 36 | // 37 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 38 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 39 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 40 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 41 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 42 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/ClauseRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// A clause repository. 11 | /// 12 | public class ClauseRepository : ListItemsRepository 13 | { 14 | /// 15 | /// Initializes a new instance of the class. 16 | /// 17 | public ClauseRepository() : base("Clauses", new SharePointService()) 18 | { 19 | } 20 | } 21 | } 22 | 23 | #region License 24 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 25 | // 26 | // Copyright 2015(c) Microsoft Corporation 27 | // 28 | // All rights reserved. 29 | // 30 | // MIT License: 31 | // 32 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 33 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 34 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 35 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 36 | // following conditions: 37 | // 38 | // The above copyright notice and this permission notice shall be included in all copies or substantial 39 | // portions of the Software. 40 | // 41 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 42 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 43 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 44 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 45 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 46 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/IClauseRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// A clause repository definition. 11 | /// 12 | public interface IClauseRepository : IListItemsRepository 13 | { 14 | } 15 | } 16 | 17 | #region License 18 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 19 | // 20 | // Copyright 2015(c) Microsoft Corporation 21 | // 22 | // All rights reserved. 23 | // 24 | // MIT License: 25 | // 26 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 27 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 28 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 30 | // following conditions: 31 | // 32 | // The above copyright notice and this permission notice shall be included in all copies or substantial 33 | // portions of the Software. 34 | // 35 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 36 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 37 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 38 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 39 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 40 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/IExternalLinksRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// An external links list item repository 11 | /// 12 | public interface IExternalLinksRepository : IListItemsRepository 13 | { 14 | } 15 | } 16 | 17 | #region License 18 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 19 | // 20 | // Copyright 2015(c) Microsoft Corporation 21 | // 22 | // All rights reserved. 23 | // 24 | // MIT License: 25 | // 26 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 27 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 28 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 30 | // following conditions: 31 | // 32 | // The above copyright notice and this permission notice shall be included in all copies or substantial 33 | // portions of the Software. 34 | // 35 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 36 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 37 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 38 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 39 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 40 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/IFavouritesRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// A favouritew repository definition. 11 | /// 12 | public interface IFavouritesRepository : IListItemsRepository 13 | { 14 | } 15 | } 16 | 17 | #region License 18 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 19 | // 20 | // Copyright 2015(c) Microsoft Corporation 21 | // 22 | // All rights reserved. 23 | // 24 | // MIT License: 25 | // 26 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 27 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 28 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 30 | // following conditions: 31 | // 32 | // The above copyright notice and this permission notice shall be included in all copies or substantial 33 | // portions of the Software. 34 | // 35 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 36 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 37 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 38 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 39 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 40 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/IGroupRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// Defines access for s. 11 | /// 12 | public interface IGroupRepository : IListItemsRepository 13 | { 14 | } 15 | } 16 | 17 | #region License 18 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 19 | // 20 | // Copyright 2015(c) Microsoft Corporation 21 | // 22 | // All rights reserved. 23 | // 24 | // MIT License: 25 | // 26 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 27 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 28 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 30 | // following conditions: 31 | // 32 | // The above copyright notice and this permission notice shall be included in all copies or substantial 33 | // portions of the Software. 34 | // 35 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 36 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 37 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 38 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 39 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 40 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/ITagRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// A tag repository definition. 11 | /// 12 | public interface ITagRepository : IListItemsRepository 13 | { 14 | } 15 | } 16 | 17 | #region License 18 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 19 | // 20 | // Copyright 2015(c) Microsoft Corporation 21 | // 22 | // All rights reserved. 23 | // 24 | // MIT License: 25 | // 26 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 27 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 28 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 29 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 30 | // following conditions: 31 | // 32 | // The above copyright notice and this permission notice shall be included in all copies or substantial 33 | // portions of the Software. 34 | // 35 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 36 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 37 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 38 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 39 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 40 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Repositories/TagRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | using ClauseLibrary.Common; 5 | using ClauseLibrary.Web.Models.DataModel; 6 | 7 | namespace ClauseLibrary.Web.Repositories 8 | { 9 | /// 10 | /// A wrapper around SharePoint access for s. 11 | /// 12 | public class TagRepository : ListItemsRepository 13 | { 14 | /// 15 | /// Initializes a new instance of the class. 16 | /// 17 | public TagRepository() 18 | : base("Tags", new SharePointService()) 19 | { 20 | } 21 | } 22 | } 23 | 24 | #region License 25 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 26 | // 27 | // Copyright 2015(c) Microsoft Corporation 28 | // 29 | // All rights reserved. 30 | // 31 | // MIT License: 32 | // 33 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 34 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 35 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 36 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 37 | // following conditions: 38 | // 39 | // The above copyright notice and this permission notice shall be included in all copies or substantial 40 | // portions of the Software. 41 | // 42 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 43 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 44 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 45 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 46 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 47 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/Controllers/accountController.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | (function (angular) { 5 | "use strict"; 6 | var app = angular.module('clauseLibraryApp'); 7 | accountController['$inject'] = ['$scope', 'sessionService']; 8 | app.controller('accountController', accountController); 9 | 10 | function accountController($scope, sessionService) { 11 | $scope.signOut = function () { 12 | sessionService.signOut(); 13 | }; 14 | 15 | function initialise() { 16 | }; 17 | 18 | initialise(); 19 | }; 20 | })(angular); 21 | 22 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 23 | // 24 | // Copyright 2015(c) Microsoft Corporation 25 | // 26 | // All rights reserved. 27 | // 28 | // MIT License: 29 | // 30 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 31 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 32 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 33 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 34 | // following conditions: 35 | // 36 | // The above copyright notice and this permission notice shall be included in all copies or substantial 37 | // portions of the Software. 38 | // 39 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 40 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 41 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 42 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 43 | // USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/Directives/trustHtml.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | (function (angular) { 5 | 'use strict'; 6 | 7 | var app = angular.module('ui.trustHtml', []); 8 | app.directive("trustHtml", function ($parse, $sce) { 9 | return { 10 | restrict: "A", 11 | link: function ($scope, $element, attrs) { 12 | if (attrs && attrs.hasOwnProperty('trustHtml')) { 13 | var html = $parse($sce.trustAsHtml(attrs['trustHtml'])); 14 | $scope.$parent.data.Text = html; 15 | } 16 | } 17 | }; 18 | }); 19 | 20 | })(angular); 21 | 22 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 23 | // 24 | // Copyright 2015(c) Microsoft Corporation 25 | // 26 | // All rights reserved. 27 | // 28 | // MIT License: 29 | // 30 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 31 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 32 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 33 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 34 | // following conditions: 35 | // 36 | // The above copyright notice and this permission notice shall be included in all copies or substantial 37 | // portions of the Software. 38 | // 39 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 40 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 41 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 42 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 43 | // USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/Services/clauseLibraryWelcomeServices.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | (function (angular) { 5 | "use strict"; 6 | 7 | angular.module('clauselibrary.welcome.services', [ 8 | 'notifications.service', 9 | 'offline.service', 10 | 'modal.service', 11 | 'authenticationHub.service', 12 | 'localStorage.service', 13 | 'analytics.service' 14 | ]).factory('_', function () { 15 | return window._; 16 | }); 17 | 18 | })(angular); 19 | 20 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 21 | // 22 | // Copyright 2015(c) Microsoft Corporation 23 | // 24 | // All rights reserved. 25 | // 26 | // MIT License: 27 | // 28 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 29 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 30 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 31 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 32 | // following conditions: 33 | // 34 | // The above copyright notice and this permission notice shall be included in all copies or substantial 35 | // portions of the Software. 36 | // 37 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 38 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 39 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 40 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 41 | // USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/Services/exceptionHandler.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | (function (angular) { 5 | "use strict"; 6 | angular.module('ErrorCatcher', ['notificationService']) 7 | .factory('$exceptionHandler', function (notificationService) { 8 | return function errorCatcherHandler(exception, cause) { 9 | notificationService.notify(exception, notificationService.types.error); 10 | debugger; 11 | }; 12 | }); 13 | })(angular); 14 | 15 | 16 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 17 | // 18 | // Copyright 2015(c) Microsoft Corporation 19 | // 20 | // All rights reserved. 21 | // 22 | // MIT License: 23 | // 24 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 25 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 26 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 28 | // following conditions: 29 | // 30 | // The above copyright notice and this permission notice shall be included in all copies or substantial 31 | // portions of the Software. 32 | // 33 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 34 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 35 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 36 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 37 | // USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/Welcome.js: -------------------------------------------------------------------------------- 1 | /* Common app functionality */ 2 | 3 | (function () { 4 | "use strict"; 5 | 6 | var app = {}; 7 | 8 | // define angular app and dependencies. 9 | app.clauseLibraryApp = angular.module('clauseLibraryApp', [ 10 | 'clauselibrary.welcome.services', 11 | 'ui.removeClass', 12 | 'angularSpinner' 13 | ]); 14 | 15 | app.clauseLibraryApp.config(['usSpinnerConfigProvider', function (usSpinnerConfigProvider) { 16 | 17 | // Initialize the spinner 18 | usSpinnerConfigProvider.setDefaults({ 19 | lines: 9, // The number of lines to draw 20 | length: 0, // The length of each line 21 | width: 4, // The line thickness 22 | radius: 6, // The radius of the inner circle 23 | corners: 1, // Corner roundness (0..1) 24 | rotate: 0, // The rotation offset 25 | direction: 1, // 1: clockwise, -1: counterclockwise 26 | color: '#000', // #rgb or #rrggbb or array of colors 27 | speed: 1.3, // Rounds per second 28 | trail: 50, // Afterglow percentage 29 | shadow: false, // Whether to render a shadow 30 | hwaccel: false, // Whether to use hardware acceleration 31 | className: 'spinner', // The CSS class to assign to the spinner 32 | zIndex: 2e9, // The z-index (defaults to 2000000000) 33 | top: '-9px', // Top position relative to parent 34 | left: '100%', // Left position relative to parent 35 | position: 'relative' 36 | }); 37 | 38 | }]); 39 | 40 | })(); -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/_officeintellisense.js: -------------------------------------------------------------------------------- 1 | // This file is generated by Visual Studio to enable IntelliSense for the Office JavaScript Object Model. 2 | 3 | var Office = new function() { 4 | this._appContext = 2; 5 | this._showAll = true; 6 | this._setContext = { 7 | 8 | }; 9 | } 10 | 11 | // 1 Excel appContext = 001 12 | // 2 Word appContext = 010 13 | // 3 Word + Excel appContext = 011 14 | // 4 Project appContext = 100 15 | // 5 Project + Excel appContext = 101 16 | // 6 Project + Word appContext = 110 17 | // 7 Project + Word + Excel appContext = 111 18 | // 8 Outlook read-form appContext = 1000 19 | // 16 PowerPoint appContext = 10000 20 | // 17 PowerPoint + Excel appContext = 10001 21 | // 18 PowerPoint + Word appContext = 10010 22 | // 19 PowerPoint + Word + Excel appContext = 10011 23 | // 20 PowerPoint + Project appContext = 10100 24 | // 21 PowerPoint + Project + Excel appContext = 10101 25 | // 22 PowerPoint + Project + Word appContext = 10110 26 | // 23 PowerPoint + Project + Word + Excel appContext = 10111 27 | // 32 Outlook compose-form appContext = 100000 28 | // 40 Outlook read-form + Outlook compose form appContext = 101000 29 | // 64 Access appContext = 1000000 30 | // 65 Access + Excel appContext = 1000001 31 | // 66 Access + Word appContext = 1000010 32 | // 67 Access + Word + Excel appContext = 1000011 33 | // 68 Access + Project appContext = 1000100 34 | // 69 Access + Project + Excel appContext = 1000101 35 | // 70 Access + Project + Word appContext = 1000110 36 | // 71 Access + Project + Word + Excel appContext = 1000111 37 | // 80 Access + PowerPoint appContext = 1010000 38 | // 81 Access + PowerPoint + Excel appContext = 1010001 39 | // 82 Access + PowerPoint + Word appContext = 1010010 40 | // 83 Access + PowerPoint + Word + Excel appContext = 1010011 41 | // 84 Access + PowerPoint + Project appContext = 1010100 42 | // 85 Access + PowerPoint + Project + Excel appContext = 1010101 43 | // 86 Access + PowerPoint + Project + Word appContext = 1010110 44 | // 87 Access + PowerPoint + Project + Word + Excel appContext = 1010111 45 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/_references.js: -------------------------------------------------------------------------------- 1 | /* Required to correctly initalize Office.js for intellisense */ 2 | /// 3 | /* Use offline copy of Office.js for intellisense */ 4 | /// 5 | /// 6 | /* Use online copy of Office.js for intellisense */ 7 | // /// 8 | // /// 9 | /// 10 | /// 11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/angular-messages.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | AngularJS v1.3.15 3 | (c) 2010-2014 Google, Inc. http://angularjs.org 4 | License: MIT 5 | */ 6 | (function(r,f,s){'use strict';f.module("ngMessages",[]).directive("ngMessages",["$compile","$animate","$templateRequest",function(q,k,l){return{restrict:"AE",controller:function(){this.$renderNgMessageClasses=f.noop;var b=[];this.registerMessage=function(d,a){for(var c=0;c").html(a);f.forEach(a.children(), 8 | function(a){a=f.element(a);h?h.after(a):d.prepend(a);h=a;q(a)(b)});c.renderMessages(e,g)})}}}]).directive("ngMessage",["$animate",function(f){return{require:"^ngMessages",transclude:"element",terminal:!0,restrict:"AE",link:function(k,l,b,d,a){for(var c,g,e=l[0],n=e.parentNode,h=0,p=0;h=e;e++)b["dimension"+e.toString()]&&(d["dimension"+e.toString()]=b["dimension"+e.toString()]),b["metric"+e.toString()]&&(d["metric"+e.toString()]=b["metric"+e.toString()]);ga("send","event",d)}}})}])}(angular); -------------------------------------------------------------------------------- /ClauseLibrary.Web/Scripts/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /ClauseLibrary.Web/Services/IRefreshTokenManager.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using ClauseLibrary.Common; 3 | 4 | namespace ClauseLibrary.Web.Services 5 | { 6 | /// 7 | /// Manages refresh token access. 8 | /// 9 | public interface IRefreshTokenManager 10 | { 11 | /// 12 | /// Retrieves the token. 13 | /// 14 | string RetrieveToken(HttpRequestBase request); 15 | 16 | /// 17 | /// Stores the access token. 18 | /// 19 | void StoreAccessToken(SharePointAccessInfo accessInfo, HttpContextBase context); 20 | } 21 | } -------------------------------------------------------------------------------- /ClauseLibrary.Web/Services/QueryStringRefreshTokenManager.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using ClauseLibrary.Common; 3 | 4 | namespace ClauseLibrary.Web.Services 5 | { 6 | /// 7 | /// Manages the refresh token via the query string. 8 | /// 9 | public class QueryStringRefreshTokenManager : IRefreshTokenManager 10 | { 11 | /// 12 | /// Retrieves the token. 13 | /// 14 | public string RetrieveToken(HttpRequestBase request) 15 | { 16 | string refreshTokenEncrypted = request.Form["refreshToken"]; 17 | return refreshTokenEncrypted.Decrypt(); 18 | } 19 | 20 | /// 21 | /// Stores the access token. 22 | /// 23 | public void StoreAccessToken(SharePointAccessInfo accessInfo, HttpContextBase context) 24 | { 25 | accessInfo.RefreshToken = accessInfo.RefreshToken.Encrypt(); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /ClauseLibrary.Web/Services/ServerCookieRefreshTokenManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | using ClauseLibrary.Common; 4 | 5 | namespace ClauseLibrary.Web.Services 6 | { 7 | /// 8 | /// Manages the refresh token through a server encrypted cookie. 9 | /// 10 | public class ServerCookieRefreshTokenManager : IRefreshTokenManager 11 | { 12 | private const string RefreshTokenCookieKey = "RefreshToken"; 13 | 14 | /// 15 | /// Retrieves the token. 16 | /// 17 | public string RetrieveToken(HttpRequestBase request) 18 | { 19 | var httpCookie = request.Cookies[RefreshTokenCookieKey]; 20 | if (httpCookie == null) 21 | { 22 | throw new Exception("No refresh token cookie"); 23 | } 24 | 25 | string refreshToken = httpCookie.Value; 26 | return refreshToken.Decrypt(); 27 | } 28 | 29 | /// 30 | /// Stores the access token. 31 | /// 32 | public void StoreAccessToken(SharePointAccessInfo accessInfo, HttpContextBase context) 33 | { 34 | // always store encypted refresh token. 35 | var cookie = new HttpCookie(RefreshTokenCookieKey, accessInfo.RefreshToken.Encrypt()); 36 | cookie.Expires = DateTime.Now.AddMonths(1); 37 | 38 | context.Response.Cookies.Add(cookie); 39 | accessInfo.RefreshToken = string.Empty; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /ClauseLibrary.Web/ViewModels/ProcessCodeViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Web.ViewModels 5 | { 6 | /// 7 | /// A view model for the Sign In Success view. 8 | /// 9 | public class ProcessCodeViewModel 10 | { 11 | /// 12 | /// Gets or sets the parent identifier. 13 | /// 14 | public string ParentId { get; set; } 15 | } 16 | } 17 | 18 | #region License 19 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 20 | // 21 | // Copyright 2015(c) Microsoft Corporation 22 | // 23 | // All rights reserved. 24 | // 25 | // MIT License: 26 | // 27 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 28 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 29 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 31 | // following conditions: 32 | // 33 | // The above copyright notice and this permission notice shall be included in all copies or substantial 34 | // portions of the Software. 35 | // 36 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 37 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 38 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 39 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 40 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 41 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/ViewModels/SignInSuccessViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Web.ViewModels 5 | { 6 | /// 7 | /// A view model for the Sign In Success view. 8 | /// 9 | public class SignInSuccessViewModel 10 | { 11 | /// 12 | /// Gets or sets the parent identifier. 13 | /// 14 | public string ParentId { get; set; } 15 | } 16 | } 17 | 18 | #region License 19 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 20 | // 21 | // Copyright 2015(c) Microsoft Corporation 22 | // 23 | // All rights reserved. 24 | // 25 | // MIT License: 26 | // 27 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 28 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 29 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 31 | // following conditions: 32 | // 33 | // The above copyright notice and this permission notice shall be included in all copies or substantial 34 | // portions of the Software. 35 | // 36 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 37 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 38 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 39 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 40 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 41 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/ViewModels/WelcomeViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 2 | // See full license at the bottom of this file. 3 | 4 | namespace ClauseLibrary.Web.ViewModels 5 | { 6 | /// 7 | /// The view model for the Welcome screen. 8 | /// 9 | public class WelcomeViewModel 10 | { 11 | /// 12 | /// Gets or sets the session identifier. 13 | /// 14 | public string SessionId { get; set; } 15 | } 16 | } 17 | 18 | #region License 19 | // ClauseLibrary, https://github.com/OfficeDev/clauselibrary 20 | // 21 | // Copyright 2015(c) Microsoft Corporation 22 | // 23 | // All rights reserved. 24 | // 25 | // MIT License: 26 | // 27 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 28 | // associated documentation files (the "Software"), to deal in the Software without restriction, including 29 | // without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | // copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the 31 | // following conditions: 32 | // 33 | // The above copyright notice and this permission notice shall be included in all copies or substantial 34 | // portions of the Software. 35 | // 36 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 37 | // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 38 | // SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 39 | // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 40 | // USE OR OTHER DEALINGS IN THE SOFTWARE. 41 | #endregion -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/App/_Account.cshtml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/App/_EditGroup.cshtml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/App/_GroupSelectionTemplate.cshtml: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/App/_Scripts.cshtml: -------------------------------------------------------------------------------- 1 |  2 | 3 | @Scripts.Render("~/bundles/jquery-signalr") 4 | 5 | 6 | @* 7 | ~/bundles/app is defined in App_Start/BundleConfig.cs. 8 | 9 | The following Scripts.Render(...) command will render all scripts 10 | defined under the "~/bundles/appcommon" bundle definition. The definition 11 | currently loads all *.js files in /Scripts/Controllers, /Scripts/Services, 12 | and app.js. Any .js files added to those directories will be automatically 13 | included, so there is no need to explicitly include them here. 14 | *@ 15 | @Scripts.Render("~/bundles/appdependencies") 16 | @Scripts.Render("~/bundles/app") 17 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Authentication/ProcessCode.cshtml: -------------------------------------------------------------------------------- 1 | @model ClauseLibrary.Web.ViewModels.ProcessCodeViewModel 2 | 3 | @{ 4 | ViewBag.Title = "Home"; 5 | Layout = "~/Views/Shared/_OfficeLayout.cshtml"; 6 | } 7 | @section header 8 | { 9 | } 10 | 11 |
12 |

Request completed. Returning to Clause Library...

13 |
14 | 15 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Authentication/SignInSuccess.cshtml: -------------------------------------------------------------------------------- 1 | @model ClauseLibrary.Web.ViewModels.SignInSuccessViewModel 2 | 3 | @{ 4 | ViewBag.Title = "Home"; 5 | Layout = "~/Views/Shared/_OfficeLayout.cshtml"; 6 | } 7 | @section header 8 | { 9 | } 10 | 11 |
12 |

Thank you for logging in. Returning to Clause Library

13 |
14 | 15 | @section scripts 16 | { 17 | 22 | } 23 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Authentication/SignOutSuccess.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Home"; 3 | Layout = "~/Views/Shared/_OfficeLayout.cshtml"; 4 | } 5 | @section header 6 | { 7 | } 8 | 9 |
10 |

Request completed. Returning to Clause Library...

11 |
12 | 13 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Jasmine/SpecRunner.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 6 | 7 | 8 | Jasmine Spec Runner 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | @Html.Partial("../App/_Scripts") 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model HandleErrorInfo 2 | @{ 3 | Layout = null; 4 | } 5 | 6 | 7 | 8 | 9 | 10 | Error 11 | @Styles.Render("~/Content/fabric/css/fabric.min.css") 12 | @Styles.Render("~/Content/fabric/css/fabric.components.min.css") 13 | 14 | 15 | Something went wrong 16 |
17 |

Error.

18 |

An error occurred while processing your request.

19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/Shared/_OfficeLayout.cshtml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | @ViewBag.Title 8 | @*@Styles.Render("~/Content/css/autocomplete")*@ 9 | @Styles.Render("~/Content/bootstrap.min.css") 10 | @Styles.Render("~/Content/site.css") 11 | @Styles.Render("~/Content/clauseLibraryIcons.png.css") 12 | @Styles.Render("~/Content/select.css") 13 | @Styles.Render("~/Content/tree.css") 14 | @Styles.Render("~/Content/fabric/css/fabric.min.css") 15 | @Styles.Render("~/Content/fabric/css/fabric.components.min.css") 16 | @RenderSection("header", false) 17 | 18 | 19 | @*
20 | 21 |
22 | *@ 30 | 31 | 32 |
33 | @RenderBody() 34 |
35 | @RenderSection("scripts", false) 36 | 37 | 38 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_OfficeLayout.cshtml"; 3 | } -------------------------------------------------------------------------------- /ClauseLibrary.Web/Views/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 21 | 22 | 23 | 24 | 35 | 36 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Breadcrumb/Breadcrumb.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | /** 3 | * Fabric 1.0.0 4 | * The front-end framework for building experiences for Office 365. 5 | **/ 6 | .ms-Breadcrumb { 7 | height: 40px; 8 | } 9 | 10 | .ms-Breadcrumb .ms-Breadcrumb-currentLarge { 11 | display: none; 12 | } 13 | 14 | .ms-Breadcrumb .ms-Breadcrumb-parent, 15 | .ms-Breadcrumb .ms-Breadcrumb-current { 16 | font-size: 14px; 17 | font-family: 'Segoe UI Semilight WestEuropean', 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 18 | line-height: 50px; 19 | color: #666666; 20 | } 21 | 22 | .ms-Breadcrumb .ms-Breadcrumb-parent { 23 | color: #333333; 24 | text-decoration: none; 25 | } 26 | 27 | .ms-Breadcrumb .ms-Breadcrumb-parent:hover { 28 | color: #000000; 29 | } 30 | 31 | .ms-Breadcrumb .ms-Breadcrumb-parent:active { 32 | color: #0078d7; 33 | } 34 | 35 | .ms-Breadcrumb .ms-Breadcrumb-chevron { 36 | padding: 0 7px 0 5px; 37 | } 38 | 39 | @media (min-width: 640px) { 40 | .ms-Breadcrumb .ms-Breadcrumb-currentLarge { 41 | display: inline; 42 | font-family: 'Segoe UI Regular WestEuropean', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 43 | font-size: 21px; 44 | color: #0078d7; 45 | line-height: 42px; 46 | margin-right: 20px; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Breadcrumb/Breadcrumb.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Working files 5 | OneDrive @ Contoso 6 | Working files 7 |
-------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Breadcrumb/Breadcrumb.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Breadcrumb", 3 | "notes": "Shows the user's current location in a hierarchy and provides a means of navigating upward.", 4 | "template": "Breadcrumb.html", 5 | "class": "ms-Breadcrumb" 6 | } 7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Breadcrumb/Breadcrumb.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Breadcrumb styles 7 | 8 | 9 | .ms-Breadcrumb { 10 | height: 40px; 11 | 12 | .ms-Breadcrumb-currentLarge { 13 | display: none; 14 | } 15 | .ms-Breadcrumb-parent, .ms-Breadcrumb-current { 16 | font-size: @ms-font-size-m; 17 | font-family: @ms-font-family-semilight; 18 | line-height: 50px; 19 | color: @ms-color-neutralSecondary; 20 | } 21 | .ms-Breadcrumb-parent { 22 | color: @ms-color-neutralPrimary; 23 | text-decoration: none; 24 | 25 | &:hover { 26 | color: @ms-color-black; 27 | } 28 | 29 | &:active { 30 | color: @ms-color-themePrimary; 31 | } 32 | } 33 | 34 | // Right-pointing chevron 35 | // TODO: Localization, point arrow to left. 36 | .ms-Breadcrumb-chevron { 37 | padding: 0 7px 0 5px; 38 | } 39 | 40 | // Only show the big title on large and extra large displays. 41 | @media (min-width: @ms-screen-lg-min) { 42 | .ms-Breadcrumb-currentLarge { 43 | display: inline; 44 | font-family: @ms-font-family-regular; 45 | font-size: @ms-font-size-xl; 46 | color: @ms-color-themePrimary; 47 | line-height: 42px; 48 | margin-right: 20px; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Breadcrumb/Breadcrumb.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Breadcrumb{height:40px}.ms-Breadcrumb .ms-Breadcrumb-currentLarge{display:none}.ms-Breadcrumb .ms-Breadcrumb-current,.ms-Breadcrumb .ms-Breadcrumb-parent{font-size:14px;font-family:'Segoe UI Semilight WestEuropean','Segoe UI Semilight','Segoe WP Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;line-height:50px;color:#666}.ms-Breadcrumb .ms-Breadcrumb-parent{color:#333;text-decoration:none}.ms-Breadcrumb .ms-Breadcrumb-parent:hover{color:#000}.ms-Breadcrumb .ms-Breadcrumb-parent:active{color:#0078d7}.ms-Breadcrumb .ms-Breadcrumb-chevron{padding:0 7px 0 5px}@media (min-width:640px){.ms-Breadcrumb .ms-Breadcrumb-currentLarge{display:inline;font-family:'Segoe UI Regular WestEuropean','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:21px;color:#0078d7;line-height:42px;margin-right:20px}} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Button/Button.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Button/Button.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Button", 3 | "notes": "", 4 | "template": "Button.html", 5 | "class": "ms-Button", 6 | "branches": [ 7 | { 8 | "name": "Action", 9 | "default": true, 10 | "branches": [ 11 | { 12 | "name": "Standard", 13 | "default": true, 14 | "branches": [ 15 | { 16 | "name": "Enabled", 17 | "default": true 18 | }, 19 | { 20 | "name": "Disabled", 21 | "class": "is-disabled" 22 | } 23 | ] 24 | }, 25 | { 26 | "name": "Primary", 27 | "class": "ms-Button--primary", 28 | "branches": [ 29 | { 30 | "name": "Enabled", 31 | "default": true 32 | }, 33 | { 34 | "name": "Disabled", 35 | "class": "is-disabled" 36 | } 37 | ] 38 | } 39 | ] 40 | }, 41 | { 42 | "name": "Hero", 43 | "class": "ms-Button--hero", 44 | "branches": [ 45 | { 46 | "name": "Enabled", 47 | "default": true 48 | }, 49 | { 50 | "name": "Disabled", 51 | "class": "is-disabled" 52 | } 53 | ] 54 | }, 55 | { 56 | "name": "Compound", 57 | "class": "ms-Button--compound", 58 | "branches": [ 59 | { 60 | "name": "Enabled", 61 | "default": true 62 | }, 63 | { 64 | "name": "Disabled", 65 | "class": "is-disabled" 66 | } 67 | ] 68 | }, 69 | { 70 | "name": "Command", 71 | "class": "ms-Button--command", 72 | "branches": [ 73 | { 74 | "name": "Enabled", 75 | "default": true 76 | }, 77 | { 78 | "name": "Disabled", 79 | "class": "is-disabled" 80 | } 81 | ] 82 | } 83 | ] 84 | } 85 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Callout/Callout.ActionText.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

All of your favorite people

7 |
8 |
9 |
10 |

People automatically puts together all of the people you care most about in one place.

11 |
12 |
13 | 17 | 21 |
22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Callout/Callout.Close.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

All of your favorite people

7 |
8 | 11 |
12 |
13 |

Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.

14 |
15 |
16 | Learn more 17 |
18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Callout/Callout.Oobe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

All of your favorite people

7 |
8 |
9 |
10 |

People automatically puts together all of the people you care most about in one place.

11 |
12 |
13 | 17 | 21 |
22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Callout/Callout.Peek.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

Uploaded 2 items to Alton's OneDrive

7 |
8 |
9 |
10 | 14 |
15 |
16 |
17 |
-------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Callout/Callout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

All of your favorite people

7 |
8 |
9 |
10 |

Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.

11 |
12 |
13 | Learn more 14 |
15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ChoiceField/ChoiceField.Checkbox.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ChoiceField/ChoiceField.Checkbox.Unselected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ChoiceField/ChoiceField.ChoiceFieldGroup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 |
7 |
8 | 9 | 10 |
11 |
12 | 13 | 14 |
15 |
16 | 17 | 18 |
19 |
20 | 21 | 22 |
23 |
24 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ChoiceField/ChoiceField.Radio.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ChoiceField/ChoiceField.Radio.Unselected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/CommandBar/CommandBar.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CommandBar", 3 | "notes": "", 4 | "accessibilityNotes": 5 | { 6 | "role": "CommandBar", 7 | "narration": "Read all the elements in the dialog on open.", 8 | "keyboard": "Use the TAB key to navigate between elements in the dialog. To exit, use ESC. Trap focus in the dialog until the user dismisses it. The user needs to return to the previous element on close." 9 | }, 10 | "class": "ms-CommandBar", 11 | "dependencies": [ 12 | "ContextualMenu" 13 | ], 14 | "branches": [ 15 | { 16 | "name": "Default", 17 | "default": true, 18 | "template": "CommandBar.html", 19 | "branches": [ 20 | { 21 | "name": "Standard", 22 | "default": true 23 | }, 24 | { 25 | "name": "Close button", 26 | "class": "ms-Dialog--close" 27 | } 28 | ] 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/ContextualMenu.Dividers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/ContextualMenu.Multiselect.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/ContextualMenu.SubMenu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/ContextualMenu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/ContextualMenu.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ContextualMenu", 3 | "notes": "", 4 | "template": "ContextualMenu.html", 5 | "class": "ms-ContextualMenu", 6 | "fileOrder": [ 7 | "ContextualMenu.html", 8 | "ContextualMenu.SubMenu.html", 9 | "ContextualMenu.Dividers.html", 10 | "ContextualMenu.Multiselect.html" 11 | ], 12 | "branches": [ 13 | { 14 | "name": "Standard", 15 | "default": true 16 | }, 17 | { 18 | "name": "Sub menu", 19 | "template": "contextualmenu.submenu.html" 20 | }, 21 | { 22 | "name": "Group", 23 | "template": "contextualmenu.dividers.html" 24 | }, 25 | { 26 | "name": "Multi-select", 27 | "template": "contextualmenu.multiselect.html", 28 | "class": "ms-ContextualMenu--multiselect" 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ContextualMenu/Jquery.ContextualMenu.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Contextual Menu Plugin 5 | */ 6 | (function ($) { 7 | $.fn.ContextualMenu = function () { 8 | 9 | /** Go through each nav bar we've been given. */ 10 | return this.each(function () { 11 | 12 | var $contextualMenu = $(this); 13 | 14 | 15 | // Set selected states. 16 | $contextualMenu.on('click', '.ms-ContextualMenu-link:not(.is-disabled)', function(event) { 17 | event.preventDefault(); 18 | 19 | // Check if multiselect - set selected states 20 | if ( $contextualMenu.hasClass('ms-ContextualMenu--multiselect') ) { 21 | 22 | // If already selected, remove selection; if not, add selection 23 | if ( $(this).hasClass('is-selected') ) { 24 | $(this).removeClass('is-selected'); 25 | } 26 | else { 27 | $(this).addClass('is-selected'); 28 | } 29 | 30 | } 31 | // All other contextual menu variants 32 | else { 33 | 34 | // Deselect all of the items and close any menus. 35 | $('.ms-ContextualMenu-link') 36 | .removeClass('is-selected') 37 | .siblings('.ms-ContextualMenu') 38 | .removeClass('is-open'); 39 | 40 | // Select this item. 41 | $(this).addClass('is-selected'); 42 | 43 | // If this item has a menu, open it. 44 | if ($(this).hasClass('ms-ContextualMenu-link--hasMenu')) { 45 | $(this).siblings('.ms-ContextualMenu:first').addClass('is-open'); 46 | 47 | // Open the menu without bubbling up the click event, 48 | // which can cause the menu to close. 49 | event.stopPropagation(); 50 | } 51 | 52 | } 53 | 54 | 55 | }); 56 | 57 | }); 58 | }; 59 | })(jQuery); 60 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/DatePicker/DatePicker.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DatePicker", 3 | "notes": "This is a sample Date Picker that works for Gregorian calendars. It uses jQuery and pickadate.js for demonstration.", 4 | "template": "DatePicker.html", 5 | "class": "ms-DatePicker", 6 | "dependencies": [ 7 | "TextField", 8 | "Label", 9 | "Link" 10 | ], 11 | "branches": [ 12 | { 13 | "name": "Default", 14 | "default": true 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dialog/Dialog.Default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 9 |
10 |

All emails together

11 |
12 |
13 |
14 |

Your Inbox has changed. No longer does it include favorites, it is a singular destination for your emails.

15 |
16 | 17 | 18 |
19 |
20 | 21 | 22 |
23 |
24 |
25 |
26 | 29 | 32 |
33 |
34 |
35 |
36 |
37 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dialog/Dialog.LgHeader.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 9 |
10 |

All emails together now

11 |
12 |
13 |
14 |

Your Inbox has changed. No longer does it include favorites, it is a singular destination for your emails.

15 |
16 |
17 |
18 | 21 | 24 |
25 |
26 |
27 |
28 |
29 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dialog/Dialog.Multiline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 9 |
10 |

Create account

11 |
12 |
13 |
14 | 19 | 24 | 29 |
30 |
31 |
32 |
33 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dialog/Dialog.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dialog", 3 | "notes": "", 4 | "accessibilityNotes": 5 | { 6 | "role": "Dialog", 7 | "narration": "Read all the elements in the dialog on open.", 8 | "keyboard": "Use the TAB key to navigate between elements in the dialog. To exit, use ESC. Trap focus in the dialog until the user dismisses it. The user needs to return to the previous element on close." 9 | }, 10 | "class": "ms-Dialog", 11 | "dependencies": [ 12 | "Button", 13 | "ChoiceField" 14 | ], 15 | "branches": [ 16 | { 17 | "name": "Default", 18 | "default": true, 19 | "template": "Dialog.Default.html", 20 | "branches": [ 21 | { 22 | "name": "Standard", 23 | "default": true 24 | }, 25 | { 26 | "name": "Close button", 27 | "class": "ms-Dialog--close" 28 | } 29 | ] 30 | }, 31 | { 32 | "name": "Multiline Button", 33 | "class": "ms-Dialog--multiline", 34 | "template": "Dialog.Multiline.html", 35 | "branches": [ 36 | { 37 | "name": "Standard", 38 | "default": true 39 | }, 40 | { 41 | "name": "Close button", 42 | "class": "ms-Dialog--close" 43 | } 44 | ] 45 | }, 46 | { 47 | "name": "Large Header", 48 | "class": "ms-Dialog--lgHeader", 49 | "template": "Dialog.LgHeader.html" 50 | } 51 | ] 52 | } 53 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dropdown/Dropdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 12 |
13 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Dropdown/Dropdown.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dropdown", 3 | "notes": "", 4 | "template": "Dropdown.html", 5 | "class": "ms-Dropdown", 6 | "branches": [ 7 | { 8 | "name": "Enabled", 9 | "default": true 10 | }, 11 | { 12 | "name": "Disabled", 13 | "class": "is-disabled" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Label/Label.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | /** 3 | * Fabric 1.0.0 4 | * The front-end framework for building experiences for Office 365. 5 | **/ 6 | .ms-Label { 7 | color: #333333; 8 | font-family: 'Segoe UI Regular WestEuropean', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 9 | font-size: 12px; 10 | font-weight: normal; 11 | margin: 0; 12 | padding: 0; 13 | box-shadow: none; 14 | box-sizing: border-box; 15 | display: block; 16 | padding: 5px 0; 17 | } 18 | 19 | .ms-Label.is-required:after { 20 | content: ' *'; 21 | color: #a80000; 22 | } 23 | 24 | .ms-Label.is-disabled { 25 | color: #a6a6a6; 26 | } 27 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Label/Label.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Label/Label.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Label", 3 | "notes": "A standard form label.", 4 | "template": "Label.html", 5 | "class": "ms-Label", 6 | "branches": [ 7 | { 8 | "name": "Standard", 9 | "default": true 10 | }, 11 | { 12 | "name": "Disabled", 13 | "class": "is-disabled" 14 | }, 15 | { 16 | "name": "Required", 17 | "class": "is-required" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Label/Label.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Form field label styles 7 | 8 | 9 | .ms-Label { 10 | .ms-font-s; 11 | .ms-u-normalize; 12 | box-sizing: border-box; 13 | display: block; 14 | padding: 5px 0; 15 | 16 | &.is-required { 17 | &:after { 18 | content: ' *'; 19 | color: @ms-color-error; 20 | } 21 | } 22 | 23 | &.is-disabled { 24 | color: @ms-color-neutralTertiary; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Label/Label.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Label{color:#333;font-family:'Segoe UI Regular WestEuropean','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:12px;font-weight:400;margin:0;box-shadow:none;box-sizing:border-box;display:block;padding:5px 0}.ms-Label.is-required:after{content:' *';color:#a80000}.ms-Label.is-disabled{color:#a6a6a6} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Link/Link.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | /** 3 | * Fabric 1.0.0 4 | * The front-end framework for building experiences for Office 365. 5 | **/ 6 | .ms-Link { 7 | color: #0078d7; 8 | text-decoration: none; 9 | cursor: pointer; 10 | } 11 | 12 | .ms-Link:hover, 13 | .ms-Link:focus { 14 | color: #004578; 15 | } 16 | 17 | .ms-Link:active { 18 | color: #0078d7; 19 | } 20 | 21 | .ms-Link.ms-Link--hero { 22 | font-family: 'Segoe UI Semilight WestEuropean', 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; 23 | padding: 2px 8px 4px; 24 | } 25 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Link/Link.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Link to a webpage 4 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Link/Link.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Link", 3 | "notes": "", 4 | "template": "Link.html", 5 | "class": "ms-Link", 6 | "branches": [ 7 | { 8 | "name": "Hero", 9 | "class": "ms-Link--hero", 10 | "default": true 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Link/Link.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Link (anchor) styles 7 | 8 | 9 | .ms-Link { 10 | color: @ms-color-themePrimary; 11 | text-decoration: none; 12 | cursor: pointer; 13 | 14 | &:hover, 15 | &:focus { 16 | color: @ms-color-themeDarker; 17 | } 18 | 19 | &:active { 20 | color: @ms-color-themePrimary; 21 | } 22 | } 23 | 24 | 25 | //== Modifier: Hero Links 26 | // 27 | .ms-Link.ms-Link--hero { 28 | font-family: @ms-font-family-semilight; 29 | padding: 2px 8px 4px; 30 | } 31 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Link/Link.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Link{color:#0078d7;text-decoration:none;cursor:pointer}.ms-Link:focus,.ms-Link:hover{color:#004578}.ms-Link:active{color:#0078d7}.ms-Link.ms-Link--hero{font-family:'Segoe UI Semilight WestEuropean','Segoe UI Semilight','Segoe WP Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;padding:2px 8px 4px} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/List/List.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "List", 3 | "notes": "", 4 | "template": "List.html", 5 | "class": "ms-List", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "List.html", 9 | "List.Grid.html" 10 | ], 11 | "dependencies": [ 12 | "ListItem" 13 | ], 14 | "branches": [ 15 | { 16 | "name": "Basic", 17 | "default": true 18 | }, 19 | { 20 | "name": "Grid", 21 | "class": "ms-List--grid" 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/List/List.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // List and Grid styles 7 | 8 | 9 | .ms-List { 10 | .ms-font-m; 11 | .ms-u-normalize; 12 | } 13 | 14 | 15 | //== Modifier: List rendered as a grid 16 | // 17 | .ms-List.ms-List--grid { 18 | @media (min-width: @ms-screen-md-min) { 19 | .ms-ListItem { 20 | .ms-u-sm4; 21 | float: left; 22 | border-width: 0 1px 1px 0; 23 | } 24 | 25 | // Remove the border from the last column. 26 | .ms-ListItem:nth-child(3n) { 27 | border-width: 0 0 1px 0; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/Jquery.ListItem.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * List Item Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-ListItem components. 7 | * 8 | * @param {jQuery Object} One or more .ms-ListItem components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.ListItem = function () { 13 | 14 | /** Go through each panel we've been given. */ 15 | return this.each(function () { 16 | 17 | var $listItem = $(this); 18 | 19 | /** Detect clicks on selectable list items. */ 20 | $listItem.on('click', '.js-toggleSelection', function(event) { 21 | $(this).parents('.ms-ListItem').toggleClass('is-selected'); 22 | }); 23 | 24 | }); 25 | 26 | }; 27 | })(jQuery); 28 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Document.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | Perdivn Pitch.mp3 6 | 08/11/14 12:32p 7 |
8 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Image.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
 
5 | Alton Lafferty 6 | Meeting notes 7 | Today we discussed the importance of a, b, and c in regards to d. 8 | 2:42p 9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Selectable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Selected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Unread.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.Unseen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Alton Lafferty 5 | Meeting notes 6 | Today we discussed the importance of a, b, and c in regards to d. 7 | 2:42p 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/ListItem/ListItem.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ListItem", 3 | "notes": "", 4 | "template": "ListItem.html", 5 | "class": "ms-ListItem", 6 | "fileOrder": [ 7 | "ListItem.html", 8 | "ListItem.Selectable.html", 9 | "ListItem.Selected.html", 10 | "ListItem.Unseen.html", 11 | "ListItem.Unread.html", 12 | "ListItem.Image.html", 13 | "ListItem.Document.html" 14 | ], 15 | "branches": [ 16 | { 17 | "name": "Standard", 18 | "default": true 19 | }, 20 | { 21 | "name": "With image", 22 | "template": "ListItem.Image.html" 23 | }, 24 | { 25 | "name": "Unread", 26 | "class": "is-unread" 27 | }, 28 | { 29 | "name": "Unseen", 30 | "class": "is-unseen" 31 | }, 32 | { 33 | "name": "Selectable", 34 | "class": "is-selectable" 35 | }, 36 | { 37 | "name": "Document", 38 | "template": "ListItem.Document.html", 39 | "class": "ms-ListItem--document" 40 | } 41 | ] 42 | } 43 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/NavBar/NavBar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 |
7 | 28 |
29 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/NavBar/NavBar.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NavBar", 3 | "notes": "", 4 | "template": "NavBar.html", 5 | "class": "ms-NavBar", 6 | "dependencies": [ 7 | "List", 8 | "ListItem", 9 | "ContextualMenu" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/OrgChart/OrgChart.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OrgChart", 3 | "notes": "", 4 | "template": "OrgChart.html", 5 | "class": "ms-OrgChart", 6 | "wrapBranches": true, 7 | "dependencies": [ 8 | "Persona" 9 | ], 10 | "fileOrder": [ 11 | "OrgChart.html", 12 | "OrgChart.Square.html" 13 | ], 14 | "branches": [ 15 | { 16 | "name": "Regular", 17 | "default": true 18 | }, 19 | { 20 | "name": "Circles", 21 | "notes": "Circle personas.", 22 | "class": "ms-OrgChart--circles" 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/OrgChart/OrgChart.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Org chart styles 7 | 8 | 9 | .ms-OrgChart { 10 | .ms-font-m; 11 | .ms-u-normalize; 12 | } 13 | 14 | .ms-OrgChart-groupTitle { 15 | color: @ms-color-neutralSecondary; 16 | line-height: 1; 17 | } 18 | 19 | .ms-OrgChart-list { 20 | padding: 0; 21 | margin: 12px 0 16px 0; 22 | } 23 | 24 | .ms-OrgChart-listItem { 25 | height: 50px; 26 | width: 100%; 27 | position: relative; 28 | list-style: none; 29 | margin-bottom: 8px; 30 | } 31 | 32 | .ms-OrgChart-listItemBtn { 33 | .button-reset(); 34 | position: relative; 35 | height: 50px; 36 | width: 100%; 37 | background: none; 38 | border: 0; 39 | text-align: left; 40 | margin: 0; 41 | padding: 0; 42 | outline: transparent; 43 | } 44 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Overlay/Overlay.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | /** 3 | * Fabric 1.0.0 4 | * The front-end framework for building experiences for Office 365. 5 | **/ 6 | .ms-Overlay { 7 | background-color: rgba(255, 255, 255, 0.4); 8 | position: absolute; 9 | bottom: 0; 10 | left: 0; 11 | right: 0; 12 | top: 0; 13 | z-index: 200; 14 | } 15 | 16 | .ms-Overlay.ms-Overlay--dark { 17 | background-color: rgba(0, 0, 0, 0.4); 18 | } 19 | 20 | .ms-Overlay.ms-Overlay--none { 21 | visibility: hidden; 22 | } 23 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Overlay/Overlay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Overlay/Overlay.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Overlay", 3 | "notes": "", 4 | "template": "Overlay.html", 5 | "class": "ms-Overlay", 6 | "branches": [ 7 | { 8 | "name": "Light (default)", 9 | "default": true 10 | }, 11 | { 12 | "name": "Dark", 13 | "class": "ms-Overlay--dark" 14 | }, 15 | { 16 | "name": "None", 17 | "notes": "A hidden overlay, used primarly as part of other components like the dialog.", 18 | "class": "ms-Overlay--none" 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Overlay/Overlay.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Modal overlay styles 7 | 8 | 9 | .ms-Overlay { 10 | background-color: @ms-color-whiteTranslucent40; 11 | position: absolute; 12 | bottom: 0; 13 | left: 0; 14 | right: 0; 15 | top: 0; 16 | z-index: @ms-zIndex-Overlay; 17 | 18 | &.ms-Overlay--dark { 19 | background-color: @ms-color-blackTranslucent40; 20 | } 21 | 22 | &.ms-Overlay--none { 23 | visibility: hidden; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Overlay/Overlay.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Overlay{background-color:rgba(255,255,255,.4);position:absolute;bottom:0;left:0;right:0;top:0;z-index:200}.ms-Overlay.ms-Overlay--dark{background-color:rgba(0,0,0,.4)}.ms-Overlay.ms-Overlay--none{visibility:hidden} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Panel/Jquery.Panel.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Panel Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-Panel components. 7 | * 8 | * @param {jQuery Object} One or more .ms-Panel components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.Panel = function () { 13 | 14 | /** Go through each panel we've been given. */ 15 | return this.each(function () { 16 | 17 | var $panel = $(this); 18 | var $panelMain = $panel.find(".ms-Panel-main"); 19 | 20 | /** Hook to open the panel. */ 21 | $(".js-togglePanel").on("click", function() { 22 | // Panel must be set to display "block" in order for animations to render 23 | $panelMain.css({display: "block"}); 24 | $panel.toggleClass("is-open"); 25 | }); 26 | 27 | $panelMain.on("animationend webkitAnimationEnd MSAnimationEnd", function(event) { 28 | if (event.originalEvent.animationName === "fadeOut") { 29 | // Hide and Prevent ms-Panel-main from being interactive 30 | $(this).css({display: "none"}); 31 | } 32 | }); 33 | 34 | }); 35 | 36 | }; 37 | })(jQuery); 38 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Panel/Panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Panel", 3 | "notes": "", 4 | "template": "Panel.html", 5 | "class": "ms-Panel", 6 | "dependencies": [ 7 | "Button", 8 | "CommandBar", 9 | "Label", 10 | "Overlay" 11 | ], 12 | "branches": [ 13 | { 14 | "name": "Small", 15 | "default": true, 16 | "class": "ms-Panel--small", 17 | "branches": [ 18 | { 19 | "name": "Right", 20 | "default": true 21 | }, 22 | { 23 | "name": "Left", 24 | "class": "ms-Panel--left" 25 | } 26 | ] 27 | }, 28 | { 29 | "name": "Medium", 30 | "class": "ms-Panel--medium" 31 | }, 32 | { 33 | "name": "Large", 34 | "class": "ms-Panel--large" 35 | }, 36 | { 37 | "name": "Extra Large", 38 | "class": "ms-Panel--extraLarge" 39 | } 40 | ] 41 | } 42 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/PeoplePicker/PeoplePicker.Searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/components/PeoplePicker/PeoplePicker.Searching.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/PeoplePicker/PeoplePicker.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PeoplePicker", 3 | "notes": "", 4 | "template": "PeoplePicker.html", 5 | "class": "ms-PeoplePicker", 6 | "dependencies": [ 7 | "Button", 8 | "Label", 9 | "Overlay", 10 | "Persona" 11 | ], 12 | "branches": [ 13 | { 14 | "name": "Regular", 15 | "default": true 16 | }, 17 | { 18 | "name": "Compact", 19 | "template": "PeoplePicker.Compact.html", 20 | "class": "ms-PeoplePicker--compact" 21 | }, 22 | { 23 | "name": "Disconnected", 24 | "notes": "When the search can not be completed, an error message is shown.", 25 | "template": "PeoplePicker.Disconnected.html" 26 | }, 27 | { 28 | "name": "Facepile", 29 | "template": "PeoplePicker.FacePile.html", 30 | "class": "ms-PeoplePicker--facePile" 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.ExtraLarge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
In a meeting
15 |
Available at 4:00pm
16 |
17 |
18 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.ExtraSmall.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
14 |
15 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
In a meeting
15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Person.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/components/Persona/Persona.Person.jpg -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Person2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/components/Persona/Persona.Person2.png -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Available.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Away.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Blocked.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Busy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Dnd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Offline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Available.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Away.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Blocked.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Busy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Dnd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Presence.Square.Offline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Small.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.ExtraLarge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
Available at 4:00pm
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.ExtraSmall.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
12 |
13 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.Large.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
In a meeting
13 |
14 |
15 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.Small.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.Tiny.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
7 |
8 |
Alton Lafferty
9 |
10 |
11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Square.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 |
8 |
9 |
10 |
Alton Lafferty
11 |
Accountant
12 |
13 |
14 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.Tiny.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
7 |
8 |
Alton Lafferty
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Persona/Persona.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 7 | 8 |
9 |
10 |
11 |
12 |
Alton Lafferty
13 |
Accountant
14 |
15 |
16 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/PersonaCard/PersonaCard.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PersonaCard", 3 | "notes": "", 4 | "template": "PersonaCard.html", 5 | "class": "ms-PersonaCard", 6 | "wrapBranches": true, 7 | "fileOrder": [ 8 | "PersonaCard.html", 9 | "PersonaCard.Square.html" 10 | ], 11 | "dependencies": [ 12 | "Persona", 13 | "OrgChart", 14 | "Link" 15 | ], 16 | "branches": [ 17 | { 18 | "name": "Regular", 19 | "default": true 20 | }, 21 | { 22 | "name": "Circles", 23 | "notes": "This persona card uses circle personas and has the org chart built in.", 24 | "class": "ms-PersonaCard--circles" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Pivot/Pivot.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 10 |
11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Pivot/Pivot.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pivot", 3 | "notes": "", 4 | "template": "Pivot.html", 5 | "class": "ms-Pivot", 6 | "branches": [ 7 | { 8 | "name": "Pivots", 9 | "default": true, 10 | "branches": [ 11 | { 12 | "name": "Standard", 13 | "default": true 14 | }, 15 | { 16 | "name": "Large", 17 | "class": "ms-Pivot--large" 18 | } 19 | ] 20 | }, 21 | 22 | { 23 | "name": "Tabs", 24 | "class": "ms-Pivot--tabs", 25 | "branches": [ 26 | { 27 | "name": "Standard", 28 | "default": true 29 | }, 30 | { 31 | "name": "Large", 32 | "class": "ms-Pivot--large" 33 | } 34 | ] 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Pivot/jquery.Pivot.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Pivot Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-Pivot components. 7 | * 8 | * @param {jQuery Object} One or more .ms-Pivot components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.Pivot = function () { 13 | 14 | /** Go through each pivot we've been given. */ 15 | return this.each(function () { 16 | 17 | var $pivotContainer = $(this); 18 | 19 | /** When clicking/tapping a link, select it. */ 20 | $pivotContainer.on('click', '.ms-Pivot-link', function(event) { 21 | event.preventDefault(); 22 | $(this).siblings('.ms-Pivot-link').removeClass('is-selected'); 23 | $(this).addClass('is-selected'); 24 | }); 25 | 26 | }); 27 | 28 | }; 29 | })(jQuery); 30 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/SearchBox/Jquery.SearchBox.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * SearchBox Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-SearchBox components. 7 | * 8 | * @param {jQuery Object} One or more .ms-SearchBox components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.SearchBox = function () { 13 | 14 | /** Iterate through each text field provided. */ 15 | return this.each(function () { 16 | // Set cancel to false 17 | var cancel = false; 18 | 19 | /** SearchBox focus - hide label and show cancel button */ 20 | $(this).find('.ms-SearchBox-field').on('focus', function() { 21 | /** Hide the label on focus. */ 22 | $(this).siblings('.ms-SearchBox-label').hide(); 23 | // Show cancel button by adding is-active class 24 | $(this).parent('.ms-SearchBox').addClass('is-active'); 25 | }); 26 | 27 | 28 | // If cancel button is selected, change cancel value to true 29 | $(this).find('.ms-SearchBox-closeButton').on('mousedown', function() { 30 | cancel = true; 31 | }); 32 | 33 | /** Show the label again when leaving the field. */ 34 | $(this).find('.ms-SearchBox-field').on('blur', function() { 35 | 36 | // If cancel button is selected remove the text and show the label 37 | if ( cancel == true ) { 38 | $(this).val(''); 39 | $(this).siblings('.ms-SearchBox-label').show(); 40 | } 41 | 42 | // Remove is-active class - hides cancel button 43 | $(this).parent('.ms-SearchBox').removeClass('is-active'); 44 | 45 | /** Only do this if no text was entered. */ 46 | if ($(this).val().length === 0 ) { 47 | $(this).siblings('.ms-SearchBox-label').show(); 48 | } 49 | 50 | // Reset cancel to false 51 | cancel = false; 52 | }); 53 | 54 | 55 | }); 56 | 57 | }; 58 | })(jQuery); 59 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/SearchBox/SearchBox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/SearchBox/SearchBox.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SearchBox", 3 | "notes": "", 4 | "template": "SearchBox.html", 5 | "class": "ms-SearchBox", 6 | "dependencies": [ 7 | "Label" 8 | ], 9 | "branches": [ 10 | { 11 | "name": "Enabled", 12 | "default": true 13 | }, 14 | { 15 | "name": "Disabled", 16 | "class": "is-disabled" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/SearchBox/SearchBox.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Label,.ms-SearchBox{font-family:'Segoe UI Regular WestEuropean','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-weight:400}.ms-Label{color:#333;font-size:12px;margin:0;box-shadow:none;box-sizing:border-box;display:block;padding:5px 0}.ms-SearchBox,.ms-SearchBox-field{box-sizing:border-box;box-shadow:none;font-size:14px}.ms-Label.is-required:after{content:' *';color:#a80000}.ms-Label.is-disabled{color:#a6a6a6}.ms-SearchBox{color:#333;margin:0 0 10px;padding:0;position:relative;display:inline-block}.ms-SearchBox.is-disabled .ms-SearchBox-label{color:#a6a6a6}.ms-SearchBox.is-disabled .ms-SearchBox-icon{color:#c8c8c8}.ms-SearchBox.is-disabled .ms-SearchBox-field{background-color:#f4f4f4;border-color:#f4f4f4;pointer-events:none;cursor:default}.ms-SearchBox.is-active .ms-SearchBox-closeButton{display:block;outline:transparent solid 1px}.ms-SearchBox-field{margin:0;border:1px solid #71afe5;border-radius:0;font-family:'Segoe UI Semilight WestEuropean','Segoe UI Semilight','Segoe WP Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;color:#000;height:32px;padding:6px 3px 7px 10px;width:180px}.ms-SearchBox-field:focus,.ms-SearchBox-field:hover{border-color:#0078d7;background-color:#c7e0f4}.ms-SearchBox-field:hover+.ms-SearchBox-label{color:#000}.ms-SearchBox-field:hover+.ms-SearchBox-label .ms-Icon{color:#333}.ms-SearchBox-field:focus{padding:6px 32px 7px 10px}.ms-SearchBox-closeButton{border:none;cursor:pointer;position:absolute;right:0;top:0;height:32px;width:32px;background-color:#0078d7;text-align:center;display:none;font-size:17px;color:#fff}.ms-SearchBox-label{position:absolute;top:0;left:0;padding-left:8px;line-height:32px;color:#666}.ms-SearchBox-icon{margin-right:7px;font-size:17px;color:#767676} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Spinner/Spinner.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | /** 3 | * Fabric 1.0.0 4 | * The front-end framework for building experiences for Office 365. 5 | **/ 6 | .ms-Spinner { 7 | position: relative; 8 | width: 64px; 9 | height: 64px; 10 | } 11 | 12 | .ms-Spinner-circle { 13 | position: absolute; 14 | border-radius: 999px; 15 | background-color: black; 16 | opacity: 0; 17 | } 18 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Spinner/Spinner.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Spinner/Spinner.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Spinner", 3 | "notes": "An animating activity indicator.", 4 | "template": "Spinner.html", 5 | "class": "ms-Spinner" 6 | } 7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Spinner/Spinner.less: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Spinner styles 7 | 8 | .ms-Spinner { 9 | position: relative; 10 | width: 64px; 11 | height: 64px; 12 | } 13 | .ms-Spinner-circle { 14 | position: absolute; 15 | border-radius: 999px; 16 | background-color: black; 17 | opacity: 0; 18 | } 19 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Spinner/Spinner.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Spinner{position:relative;width:64px;height:64px}.ms-Spinner-circle{position:absolute;border-radius:999px;background-color:#000;opacity:0} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Table/Table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | File name 7 | Location 8 | Modified 9 | Type 10 |
11 |
12 | 13 | File name 14 | Location 15 | Modified 16 | Type 17 |
18 |
19 | 20 | File name 21 | Location 22 | Modified 23 | Type 24 |
25 |
26 | 27 | File name 28 | Location 29 | Modified 30 | Type 31 |
32 |
33 | 34 | File name 35 | Location 36 | Modified 37 | Type 38 |
39 |
40 | 41 | File name 42 | Location 43 | Modified 44 | Type 45 |
46 |
47 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Table/Table.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Table", 3 | "notes": "", 4 | "template": "Table.html", 5 | "class": "ms-Table", 6 | "branches": [ 7 | { 8 | "name": "Default", 9 | "default": true 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Table/Table.min.css: -------------------------------------------------------------------------------- 1 | /* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. */ 2 | .ms-Table{display:table;width:100%}.ms-Table-row{display:table-row;height:30px;line-height:30px;font-family:'Segoe UI Semilight WestEuropean','Segoe UI Semilight','Segoe WP Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:12px;color:#333}.ms-Table-row.is-selected .ms-Table-rowCheck:after,.ms-Table-row:first-child .ms-Table-rowCheck:after{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;line-height:1;speak:none;content:'\e041';position:absolute;left:4px;top:9px}.ms-Table-row:hover{background-color:#f4f4f4;cursor:pointer;outline:transparent solid 1px}.ms-Table-row.is-selected{background-color:#c7e0f4}.ms-Table-row.is-selected .ms-Table-rowCheck{background-color:#0078d7}.ms-Table-row.is-selected .ms-Table-rowCheck:before{display:none}.ms-Table-row.is-selected .ms-Table-rowCheck:after{display:inline-block;font-family:'Office365Icons';color:#fff;font-size:12px}.ms-Table-cell{display:table-cell;padding:0 10px}.ms-Table-row:first-child{font-family:'Segoe UI Semilight WestEuropean','Segoe UI Semilight','Segoe WP Semilight','Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:11px;color:#666}.ms-Table-row:first-child .ms-Table-cell,.ms-Table-row:first-child .ms-Table-rowCheck{border-bottom:1px solid #eaeaea}.ms-Table-row:first-child .ms-Table-rowCheck:after{display:inline-block;font-family:'Office365Icons';color:#a6a6a6;font-size:12px}.ms-Table-rowCheck{display:table-cell;width:20px;position:relative}.ms-Table-rowCheck:before{border:1px solid #a6a6a6;content:'';display:block;height:14px;left:2px;position:absolute;top:6px;width:14px}@media screen and (-ms-high-contrast:active){.ms-Table-row.is-selected .ms-Table-rowCheck{background:0 0}.ms-Table-row.is-selected .ms-Table-rowCheck:before{display:block}} -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/TextField/Jquery.TextField.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Text Field Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-TextField components. 7 | * 8 | * @param {jQuery Object} One or more .ms-TextField components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | (function ($) { 12 | $.fn.TextField = function () { 13 | 14 | /** Iterate through each text field provided. */ 15 | return this.each(function () { 16 | 17 | /** Does it have a placeholder? */ 18 | if ($(this).hasClass("ms-TextField--placeholder")) { 19 | 20 | /** Hide the label on click. */ 21 | $(this).on('click', function () { 22 | $(this).find('.ms-Label').hide(); 23 | }); 24 | 25 | /** Show the label again when leaving the field. */ 26 | $(this).find('.ms-TextField-field').on('blur', function () { 27 | 28 | /** Only do this if no text was entered. */ 29 | if ($(this).val().length === 0) { 30 | $(this).siblings('.ms-Label').show(); 31 | } 32 | }); 33 | }; 34 | 35 | /** Underlined - adding/removing a focus class */ 36 | if ($(this).hasClass('ms-TextField--underlined')) { 37 | 38 | /** Add is-active class - changes border color to theme primary */ 39 | $(this).find('.ms-TextField-field').on('focus', function() { 40 | $(this).parent('.ms-TextField--underlined').addClass('is-active'); 41 | }); 42 | 43 | /** Remove is-active on blur of textfield */ 44 | $(this).find('.ms-TextField-field').on('blur', function() { 45 | $(this).parent('.ms-TextField--underlined').removeClass('is-active'); 46 | }); 47 | }; 48 | 49 | }); 50 | }; 51 | })(jQuery); 52 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/TextField/TextField.Multiline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/TextField/TextField.Placeholder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 |
8 | 9 | 10 |
11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/TextField/TextField.Underlined.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/TextField/TextField.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | This should be your first and last name. 7 |
8 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Toggle/Toggle.TextLeft.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Let apps use my location 5 | 6 | 10 |
11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Toggle/Toggle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Let apps use my location 5 | 6 | 10 |
11 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/components/Toggle/Toggle.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Toggle", 3 | "notes": "", 4 | "template": "Toggle.html", 5 | "class": "ms-Toggle", 6 | "branches": [ 7 | { 8 | "name": "Text above", 9 | "class": "ms-Toggle--textAbove", 10 | "default": true, 11 | "branches": [ 12 | { 13 | "name": "Enabled", 14 | "default": true 15 | }, 16 | { 17 | "name": "Disabled", 18 | "class": "is-disabled" 19 | } 20 | ] 21 | }, 22 | { 23 | "name": "Text left", 24 | "class": "ms-Toggle--textLeft", 25 | "branches": [ 26 | { 27 | "name": "Enabled", 28 | "default": true 29 | }, 30 | { 31 | "name": "Disabled", 32 | "class": "is-disabled" 33 | } 34 | ] 35 | } 36 | ] 37 | } 38 | -------------------------------------------------------------------------------- /ClauseLibrary.Web/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ClauseLibrary.Web/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /ClauseLibrary.Web/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ClauseLibrary.Web/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/ClauseLibrary.Web/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Microsoft 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Public publish.ruleset: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Word-Add-in-ClauseLibrary-Code-Sample.yml: -------------------------------------------------------------------------------- 1 | ### YamlMime:Sample 2 | sample: 3 | - name: Office Clause Library 4 | path: '' 5 | description: This repository shows how you can build a library of clauses that can be added to a Word document. These clauses can then be reused within documents. 6 | readme: '' 7 | generateZip: FALSE 8 | isLive: TRUE 9 | technologies: 10 | - Office Add-in 11 | azureDeploy: '' 12 | author: rick-kirkham 13 | platforms: [] 14 | languages: 15 | - JavaScript 16 | extensions: 17 | products: 18 | - Word 19 | scenarios: [] 20 | -------------------------------------------------------------------------------- /gh-docs/app-create-library.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/app-create-library.png -------------------------------------------------------------------------------- /gh-docs/app-login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/app-login.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-add-an-app-wizard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-add-an-app-wizard-1.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-add-an-app-wizard-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-add-an-app-wizard-2.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-add-an-app-wizard-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-add-an-app-wizard-3.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-add-an-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-add-an-app.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-client-id-secret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-client-id-secret.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-configure.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-permissions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-permissions.png -------------------------------------------------------------------------------- /gh-docs/azure-ad-reply-url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/azure-ad-reply-url.png -------------------------------------------------------------------------------- /gh-docs/o365-portal-first-release.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/o365-portal-first-release.png -------------------------------------------------------------------------------- /gh-docs/office-app-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/office-app-default.png -------------------------------------------------------------------------------- /gh-docs/publish-existing-final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/publish-existing-final.png -------------------------------------------------------------------------------- /gh-docs/publish-existing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/publish-existing.png -------------------------------------------------------------------------------- /gh-docs/publish-new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/publish-new.png -------------------------------------------------------------------------------- /gh-docs/publish-web-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/publish-web-details.png -------------------------------------------------------------------------------- /gh-docs/sharepoint-add-subsite-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/sharepoint-add-subsite-details.png -------------------------------------------------------------------------------- /gh-docs/sharepoint-add-subsite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/sharepoint-add-subsite.png -------------------------------------------------------------------------------- /gh-docs/sharepoint-sitecontents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/sharepoint-sitecontents.png -------------------------------------------------------------------------------- /gh-docs/visual-studio-office-app-unavailable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/visual-studio-office-app-unavailable.png -------------------------------------------------------------------------------- /gh-docs/visual-studio-office-developer-tools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/visual-studio-office-developer-tools.png -------------------------------------------------------------------------------- /gh-docs/web-app-url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/Word-Add-in-ClauseLibrary-Code-Sample/62ddfe95d1c031ae4fdb1eb62bdf840983e9d4ec/gh-docs/web-app-url.png --------------------------------------------------------------------------------