Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Update for WinJS 4.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
llongley committed Mar 15, 2017
1 parent d1fe4cb commit a98ce95
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 151 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
Windows Library for JavaScript (WinJS)
=====

[![Join the chat at https://gitter.im/winjs/winjs](https://badges.gitter.im/winjs/winjs.svg)](https://gitter.im/winjs/winjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/winjs/winjs.svg?branch=master)](https://travis-ci.org/winjs/winjs)

This project is actively developed by the WinJS developers working for Microsoft Corporation, in collaboration with the community of open source developers. Together we are dedicated to creating the best possible solution for HTML/JS/CSS application development.

# Status
Right now, Microsoft plans to maintain WinJS's existing features--this means responding to Issues and Pull Requests on a regular basis. We're committed to making sure that WinJS continues to run well. At this time, we don't have plans to invest in new features or feature requests; this also means that we're not planning a new feature release.

# Intro
WinJS is a set of JavaScript toolkits that allow developers to build applications using HTML/JS/CSS technology forged with the following principles in mind:

* Provide developers with a distinctive set of UI controls with high polish and performance with fundamental support for touch, mouse, keyboard and accessibility
Expand Down
11 changes: 7 additions & 4 deletions css/ui-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ iframe {
.win-textbox,
.win-link,
.win-textarea {
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
}
.win-textbox,
.win-textarea {
Expand Down Expand Up @@ -2693,7 +2693,7 @@ button.win-navigation-backbutton:enabled:hover:active {
border-color: transparent;
color: ButtonFace;
}
html.win-hoverable win-semanticzoom-button:hover {
html.win-hoverable .win-semanticzoom-button:hover {
background-color: Highlight;
border-color: ButtonText;
color: HighlightText;
Expand Down Expand Up @@ -2744,7 +2744,7 @@ button.win-navigation-backbutton:enabled:hover:active {
-ms-flex: 0 0 auto;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
font-size: 15px;
font-weight: bold;
white-space: nowrap;
Expand Down Expand Up @@ -3283,7 +3283,7 @@ button[aria-checked=true]:disabled:active .win-commandimage {
Command button labels.
*/
button.win-command .win-label {
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
font-size: 12px;
font-weight: 400;
line-height: 1.167;
Expand Down Expand Up @@ -5373,6 +5373,9 @@ Hide clear button in search box control.
left: 0;
width: 100%;
}
.win-splitview.win-splitview-pane-opened.win-splitview-openeddisplayoverlay.win-splitview-placementleft {
position: static;
}
.win-splitview.win-splitview-pane-opened.win-splitview-openeddisplayoverlay.win-splitview-placementleft .win-splitview-panewrapper {
position: absolute;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion css/ui-dark.min.css

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions css/ui-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ iframe {
.win-textbox,
.win-link,
.win-textarea {
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
}
.win-textbox,
.win-textarea {
Expand Down Expand Up @@ -2693,7 +2693,7 @@ button.win-navigation-backbutton:enabled:hover:active {
border-color: transparent;
color: ButtonFace;
}
html.win-hoverable win-semanticzoom-button:hover {
html.win-hoverable .win-semanticzoom-button:hover {
background-color: Highlight;
border-color: ButtonText;
color: HighlightText;
Expand Down Expand Up @@ -2744,7 +2744,7 @@ button.win-navigation-backbutton:enabled:hover:active {
-ms-flex: 0 0 auto;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
font-size: 15px;
font-weight: bold;
white-space: nowrap;
Expand Down Expand Up @@ -3283,7 +3283,7 @@ button[aria-checked=true]:disabled:active .win-commandimage {
Command button labels.
*/
button.win-command .win-label {
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols";
font-family: "Segoe UI", sans-serif, "Segoe MDL2 Assets", "Symbols", "Segoe UI Emoji";
font-size: 12px;
font-weight: 400;
line-height: 1.167;
Expand Down Expand Up @@ -5373,6 +5373,9 @@ Hide clear button in search box control.
left: 0;
width: 100%;
}
.win-splitview.win-splitview-pane-opened.win-splitview-openeddisplayoverlay.win-splitview-placementleft {
position: static;
}
.win-splitview.win-splitview-pane-opened.win-splitview-openeddisplayoverlay.win-splitview-placementleft .win-splitview-panewrapper {
position: absolute;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion css/ui-light.min.css

Large diffs are not rendered by default.

46 changes: 18 additions & 28 deletions js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
// amd
define([], factory);
} else {
globalObject.msWriteProfilerMark && msWriteProfilerMark('WinJS.4.4 4.4.0.winjs.2015.10.2 base.js,StartTM');
globalObject.msWriteProfilerMark && msWriteProfilerMark('WinJS.4.4 4.4.2.winjs.2017.3.14 base.js,StartTM');
if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
factory();
} else {
// No module system
factory(globalObject.WinJS);
}
globalObject.msWriteProfilerMark && msWriteProfilerMark('WinJS.4.4 4.4.0.winjs.2015.10.2 base.js,StopTM');
globalObject.msWriteProfilerMark && msWriteProfilerMark('WinJS.4.4 4.4.2.winjs.2017.3.14 base.js,StopTM');
}
}(function (WinJS) {

Expand Down Expand Up @@ -1235,6 +1235,10 @@ define('require-json!strings/en-us/Microsoft.WinJS.resjson',{
"_ui/appBarIcons/fontsize.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/cellphone": "\uE1C9", // group:Communications
"_ui/appBarIcons/cellphone.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/print": "\uE749", // group:Communications
"_ui/appBarIcons/print.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/share": "\uE72D", // group:Communications
"_ui/appBarIcons/share.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/reshare": "\uE1CA", // group:Communications
"_ui/appBarIcons/reshare.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/tag": "\uE1CB", // group:Data
Expand Down Expand Up @@ -5198,7 +5202,7 @@ define('WinJS/Core/_BaseUtils',[
_traceAsyncCallbackStarting: _Trace._traceAsyncCallbackStarting,
_traceAsyncCallbackCompleted: _Trace._traceAsyncCallbackCompleted,

_version: "4.4.0"
_version: "4.4.2"
});

_Base.Namespace._moduleDefine(exports, "WinJS", {
Expand Down Expand Up @@ -6219,7 +6223,7 @@ define('WinJS/Utilities/_ElementUtilities',[
_resizeEvent: { get: function () { return 'WinJSElementResize'; } }
}
);

// - object: The object on which GenericListener will listen for events.
// - objectName: A string representing the name of *object*. This will be
// incorporated into the names of the events and classNames created by
Expand Down Expand Up @@ -7523,18 +7527,9 @@ define('WinJS/Utilities/_ElementUtilities',[
return 0;
}

var left = element.offsetLeft;
var e = element.parentNode;
while (e) {
left -= e.offsetLeft;

if (e === parent) {
break;
}
e = e.parentNode;
}

return left;
var elementPosition = exports._getPositionRelativeTo(element, null);
var parentPosition = exports._getPositionRelativeTo(parent, null);
return elementPosition.left - parentPosition.left;
},

getRelativeTop: function (element, parent) {
Expand All @@ -7556,18 +7551,9 @@ define('WinJS/Utilities/_ElementUtilities',[
return 0;
}

var top = element.offsetTop;
var e = element.parentNode;
while (e) {
top -= e.offsetTop;

if (e === parent) {
break;
}
e = e.parentNode;
}

return top;
var elementPosition = exports._getPositionRelativeTo(element, null);
var parentPosition = exports._getPositionRelativeTo(parent, null);
return elementPosition.top - parentPosition.top;
},

getScrollPosition: getScrollPosition,
Expand Down Expand Up @@ -12704,6 +12690,7 @@ define('WinJS/Utilities',[

//wrapper module
});
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
define('WinJS/XYFocus',["require", "exports", "./Core/_Global", "./Core/_Base", "./Core/_BaseUtils", "./Utilities/_ElementUtilities", "./Core/_Events", "./ControlProcessor/_OptionsParser"], function (require, exports, _Global, _Base, _BaseUtils, _ElementUtilities, _Events, _OptionsParser) {
"use strict";
var Keys = _ElementUtilities.Key;
Expand Down Expand Up @@ -13149,6 +13136,9 @@ define('WinJS/XYFocus',["require", "exports", "./Core/_Global", "./Core/_Base",
return container && !_ElementUtilities.hasClass(container, ClassNames.toggleModeActive);
}
function _isToggleMode(element) {
if (_ElementUtilities.hasClass(_Global.document.body, ClassNames.xboxPlatform)) {
return false;
}
if (_ElementUtilities.hasClass(element, ClassNames.toggleMode)) {
return true;
}
Expand Down
22 changes: 11 additions & 11 deletions js/base.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/base.min.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/en-US/ui.strings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
Build: 4.4.0.winjs.2015.10.2
Build: 4.4.2.winjs.2017.3.14
Version: WinJS.4.4
*/

Expand Down Expand Up @@ -451,6 +451,10 @@
"_ui/appBarIcons/fontsize.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/cellphone": "\uE1C9", // group:Communications
"_ui/appBarIcons/cellphone.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/print": "\uE749", // group:Communications
"_ui/appBarIcons/print.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/share": "\uE72D", // group:Communications
"_ui/appBarIcons/share.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/reshare": "\uE1CA", // group:Communications
"_ui/appBarIcons/reshare.comment": "{Locked=qps-ploc,qps-plocm}",
"ui/appBarIcons/tag": "\uE1CB", // group:Data
Expand Down
Loading

0 comments on commit a98ce95

Please sign in to comment.