mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
add bower components to third party
This commit is contained in:
7
third_party/ui/bower_components/angular-material/modules/js/progressCircular/bower.json
vendored
Normal file
7
third_party/ui/bower_components/angular-material/modules/js/progressCircular/bower.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "angular-material-progressCircular",
|
||||
"version": "0.7.0-rc3",
|
||||
"dependencies": {
|
||||
"angular-material-core": "0.7.0-rc3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v0.7.0-rc3
|
||||
*/
|
||||
md-progress-circular.md-THEME_NAME-theme {
|
||||
background-color: transparent; }
|
||||
md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap {
|
||||
border-top-color: '{{primary-color}}';
|
||||
border-bottom-color: '{{primary-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
|
||||
border-top-color: '{{primary-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {
|
||||
border-right-color: '{{primary-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle {
|
||||
border-left-color: '{{primary-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap {
|
||||
border-top-color: '{{warn-color}}';
|
||||
border-bottom-color: '{{warn-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
|
||||
border-top-color: '{{warn-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {
|
||||
border-right-color: '{{warn-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle {
|
||||
border-left-color: '{{warn-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap {
|
||||
border-top-color: '{{accent-color}}';
|
||||
border-bottom-color: '{{accent-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
|
||||
border-top-color: '{{accent-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {
|
||||
border-right-color: '{{accent-color}}'; }
|
||||
md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle {
|
||||
border-left-color: '{{accent-color}}'; }
|
||||
@@ -0,0 +1,6 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v0.7.0-rc3
|
||||
*/md-progress-circular.md-THEME_NAME-theme{background-color:transparent}md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap{border-top-color:'{{primary-color}}';border-bottom-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle{border-top-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle{border-right-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle{border-left-color:'{{primary-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap{border-top-color:'{{warn-color}}';border-bottom-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle{border-top-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle{border-right-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle{border-left-color:'{{warn-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap{border-top-color:'{{accent-color}}';border-bottom-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle,md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle{border-top-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle{border-right-color:'{{accent-color}}'}md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle{border-left-color:'{{accent-color}}'}
|
||||
1445
third_party/ui/bower_components/angular-material/modules/js/progressCircular/progressCircular.css
vendored
Normal file
1445
third_party/ui/bower_components/angular-material/modules/js/progressCircular/progressCircular.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
127
third_party/ui/bower_components/angular-material/modules/js/progressCircular/progressCircular.js
vendored
Normal file
127
third_party/ui/bower_components/angular-material/modules/js/progressCircular/progressCircular.js
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v0.7.0-rc3
|
||||
*/
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @ngdoc module
|
||||
* @name material.components.progressCircular
|
||||
* @description Circular Progress module!
|
||||
*/
|
||||
angular.module('material.components.progressCircular', [
|
||||
'material.core'
|
||||
])
|
||||
.directive('mdProgressCircular', MdProgressCircularDirective);
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name mdProgressCircular
|
||||
* @module material.components.progressCircular
|
||||
* @restrict E
|
||||
*
|
||||
* @description
|
||||
* The circular progress directive is used to make loading content in your app as delightful and painless as possible by minimizing the amount of visual change a user sees before they can view and interact with content.
|
||||
*
|
||||
* For operations where the percentage of the operation completed can be determined, use a determinate indicator. They give users a quick sense of how long an operation will take.
|
||||
*
|
||||
* For operations where the user is asked to wait a moment while something finishes up, and it’s not necessary to expose what's happening behind the scenes and how long it will take, use an indeterminate indicator.
|
||||
*
|
||||
* @param {string} md-mode Select from one of two modes: determinate and indeterminate.
|
||||
* @param {number=} value In determinate mode, this number represents the percentage of the circular progress. Default: 0
|
||||
* @param {number=} md-diameter This specifies the diamter of the circular progress. Default: 48
|
||||
*
|
||||
* @usage
|
||||
* <hljs lang="html">
|
||||
* <md-progress-circular md-mode="determinate" value="..."></md-progress-circular>
|
||||
*
|
||||
* <md-progress-circular md-mode="determinate" ng-value="..."></md-progress-circular>
|
||||
*
|
||||
* <md-progress-circular md-mode="determinate" value="..." md-diameter="100"></md-progress-circular>
|
||||
*
|
||||
* <md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
||||
* </hljs>
|
||||
*/
|
||||
function MdProgressCircularDirective($$rAF, $mdConstant, $mdTheming) {
|
||||
var fillRotations = new Array(101),
|
||||
fixRotations = new Array(101);
|
||||
|
||||
for (var i = 0; i < 101; i++) {
|
||||
var percent = i / 100;
|
||||
var rotation = Math.floor(percent * 180);
|
||||
|
||||
fillRotations[i] = 'rotate(' + rotation.toString() + 'deg)';
|
||||
fixRotations[i] = 'rotate(' + (rotation * 2).toString() + 'deg)';
|
||||
}
|
||||
|
||||
return {
|
||||
restrict: 'E',
|
||||
template:
|
||||
'<div class="md-spinner-wrapper">' +
|
||||
'<div class="md-inner">' +
|
||||
'<div class="md-gap"></div>' +
|
||||
'<div class="md-left">' +
|
||||
'<div class="md-half-circle"></div>' +
|
||||
'</div>' +
|
||||
'<div class="md-right">' +
|
||||
'<div class="md-half-circle"></div>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'</div>',
|
||||
compile: compile
|
||||
};
|
||||
|
||||
function compile(tElement, tAttrs, transclude) {
|
||||
tElement.attr('aria-valuemin', 0);
|
||||
tElement.attr('aria-valuemax', 100);
|
||||
tElement.attr('role', 'progressbar');
|
||||
|
||||
return postLink;
|
||||
}
|
||||
|
||||
function postLink(scope, element, attr) {
|
||||
$mdTheming(element);
|
||||
var circle = element[0],
|
||||
fill = circle.querySelectorAll('.md-fill, .md-mask.md-full'),
|
||||
fix = circle.querySelectorAll('.md-fill.md-fix'),
|
||||
i, clamped, fillRotation, fixRotation;
|
||||
|
||||
var diameter = attr.mdDiameter || 48;
|
||||
var scale = diameter/48;
|
||||
|
||||
circle.style[$mdConstant.CSS.TRANSFORM] = 'scale(' + scale.toString() + ')';
|
||||
|
||||
attr.$observe('value', function(value) {
|
||||
clamped = clamp(value);
|
||||
fillRotation = fillRotations[clamped];
|
||||
fixRotation = fixRotations[clamped];
|
||||
|
||||
element.attr('aria-valuenow', clamped);
|
||||
|
||||
for (i = 0; i < fill.length; i++) {
|
||||
fill[i].style[$mdConstant.CSS.TRANSFORM] = fillRotation;
|
||||
}
|
||||
|
||||
for (i = 0; i < fix.length; i++) {
|
||||
fix[i].style[$mdConstant.CSS.TRANSFORM] = fixRotation;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function clamp(value) {
|
||||
if (value > 100) {
|
||||
return 100;
|
||||
}
|
||||
|
||||
if (value < 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Math.ceil(value || 0);
|
||||
}
|
||||
}
|
||||
MdProgressCircularDirective.$inject = ["$$rAF", "$mdConstant", "$mdTheming"];
|
||||
})();
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v0.7.0-rc3
|
||||
*/
|
||||
!function(){"use strict";function r(r,e,t){function a(r){return r.attr("aria-valuemin",0),r.attr("aria-valuemax",100),r.attr("role","progressbar"),i}function i(r,a,i){t(a);var s,c,o,m,v=a[0],u=v.querySelectorAll(".md-fill, .md-mask.md-full"),f=v.querySelectorAll(".md-fill.md-fix"),g=i.mdDiameter||48,S=g/48;v.style[e.CSS.TRANSFORM]="scale("+S.toString()+")",i.$observe("value",function(r){for(c=l(r),o=n[c],m=d[c],a.attr("aria-valuenow",c),s=0;s<u.length;s++)u[s].style[e.CSS.TRANSFORM]=o;for(s=0;s<f.length;s++)f[s].style[e.CSS.TRANSFORM]=m})}function l(r){return r>100?100:0>r?0:Math.ceil(r||0)}for(var n=new Array(101),d=new Array(101),s=0;101>s;s++){var c=s/100,o=Math.floor(180*c);n[s]="rotate("+o.toString()+"deg)",d[s]="rotate("+(2*o).toString()+"deg)"}return{restrict:"E",template:'<div class="md-spinner-wrapper"><div class="md-inner"><div class="md-gap"></div><div class="md-left"><div class="md-half-circle"></div></div><div class="md-right"><div class="md-half-circle"></div></div></div></div>',compile:a}}angular.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",r),r.$inject=["$$rAF","$mdConstant","$mdTheming"]}();
|
||||
Reference in New Issue
Block a user