Commit 633537a2 authored by Mostafa Barmshory's avatar Mostafa Barmshory
Browse files

Merge branch 'release/0.2.3'

parents f31b3b8f d42c8601
Pipeline #11412040 failed with stage
in 9 minutes and 45 seconds
......@@ -12,6 +12,7 @@
# Eclipse
.settings
.project
.tern-project
# KDE
.directory
......
{
"name": "angular-material-weburger-common",
"version": "0.2.1",
"version": "0.2.3",
"authors": [
"Mostafa Barmshory <mostafa.barmshory@dpq.co.ir>",
"Hadi mansouri <mohammad.hadi.mansouri@dpq.co.ir>",
......@@ -19,7 +19,7 @@
"dist/angular-material-weburger-common.css"
],
"dependencies": {
"angular-material-weburger": "^0.2.0"
"angular-material-weburger": "https://gitlab.com/weburger/angular-material-weburger.git#^0.2.2"
},
"devDependencies": {
"angular-mocks": "^1.6.0"
......
......@@ -13,11 +13,14 @@
<link rel="stylesheet" href="bower_components/md-color-picker/dist/mdColorPicker.min.css" />
<link rel="stylesheet" href="bower_components/angular-material-expansion-panel/dist/md-expansion-panel.css" />
<link rel="stylesheet" href="bower_components/angular-material-icons/angular-material-icons.css" />
<link rel="stylesheet" href="bower_components/pikaday/css/pikaday.css" />
<link rel="stylesheet" href="bower_components/handsontable/dist/handsontable.css" />
<link rel="stylesheet" href="bower_components/angular-material-weburger/dist/angular-material-weburger.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/feature-list.css">
<link rel="stylesheet" href="styles/main-demo.css">
<!-- endbuild -->
</head>
......@@ -69,9 +72,6 @@
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/moment-jalaali/build/moment-jalaali.js"></script>
<script src="bower_components/angular-pluf/dist/angular-pluf.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-aria/angular-aria.js"></script>
<script src="bower_components/angular-messages/angular-messages.js"></script>
......@@ -85,6 +85,12 @@
<script src="bower_components/angular-material-expansion-panel/dist/md-expansion-panel.js"></script>
<script src="bower_components/angular-material-icons/angular-material-icons.min.js"></script>
<script src="bower_components/weakmap-polyfill/weakmap-polyfill.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/numbro/numbro.js"></script>
<script src="bower_components/pikaday/pikaday.js"></script>
<script src="bower_components/zeroclipboard/dist/ZeroClipboard.js"></script>
<script src="bower_components/handsontable/dist/handsontable.js"></script>
<script src="bower_components/ngHandsontable/dist/ngHandsontable.js"></script>
<script src="bower_components/angular-material-weburger/dist/angular-material-weburger.js"></script>
<!-- endbower -->
<!-- endbuild -->
......@@ -95,6 +101,7 @@
<script src="scripts/app.js"></script>
<script src="scripts/configs/icons.js"></script>
<script src="scripts/configs/filters.js"></script>
<script src="scripts/runs/widgets.js"></script>
<script src="scripts/runs/settings.js"></script>
......@@ -102,6 +109,8 @@
<script src="scripts/controllers/action.js"></script>
<script src="scripts/controllers/features.js"></script>
<script src="scripts/controllers/dialogmodel.js"></script>
<script src="scripts/controllers/video-player.js"></script>
<script src="scripts/controllers/audio-player.js"></script>
<!-- endbuild -->
</body>
</html>
{"type":"Page","label":"دونیت - حمایت مالی پروژه‌ها","description":"دونیت شمارا در جمع کردن کمک‌های مالی یاری می‌کند.","style":{"layout":"column","borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{},"flexDirection":"wb-flex-column","padding":{},"margin":{}},"contents":[{"style":{"padding":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{"bottom":"none"},"margin":{},"flexAlignItem":"wb-flex-item-auto"},"type":"CommonFeatureToolbar","name":"Widget","features":[{"icon":"assignment_turned_in","title":"Home","text":"Feature description.","image":"home","action":{"type":"link","link":"https://gitlab.com/weburger/am-wb-common","label":"Common widget home"}},{"icon":"assignment_turned_in","title":"Favorite items","text":"Feature description.","image":"favorite","action":{"type":"link","link":"https://gitlab.com/weburger/am-wb-common/wikis/toolbar","label":"faivorite"}},{"icon":"assignment_turned_in","title":"Contact us","text":"Feature description.","image":"phone","action":{"type":"link","link":"http://dpq.co.ir","label":"DPQ home"}}],"label":"Common widgets","description":"This is a demo of common widgets."},{"type":"CommonActionCall","style":{"padding":{},"margin":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{"bottom":"none"},"flexAlignItem":"wb-flex-item-auto","background":"url(\"images/wallpaper.jpg\")","backgroundSize":"cover"},"features":[{"icon":"assignment_turned_in","title":"Go to Home","text":"Feature description.","action":{"type":"link","link":"https://gitlab.com/weburger/am-wb-common","label":"Home"}},{"icon":"assignment_turned_in","title":"Action call","text":"Action Call","image":"","action":{"type":"link","link":"https://gitlab.com/weburger/am-wb-common/wikis/action-call"}}],"name":"Widget","action":{"label":"My action","type":"link","link":"http://google.com"},"label":"DigiDoci","description":"Repair your device as easy as possible"},{"type":"CommonFeatureList","style":{"padding":{},"margin":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{}},"features":[{"icon":"assignment_turned_in","title":"Customize","text":"This is fully customization widgets.","image":"images/demo/settings-3.svg"},{"icon":"assignment_turned_in","title":"Share it","text":"Easy to share your configuration and design.","image":"images/demo/share.svg","action":{"type":"link","link":"http://google.com","label":"Go"}},{"icon":"assignment_turned_in","title":"Mobile frindly","text":"The system is fully mobile adaptable.","image":"images/demo/smartphone-4.svg"},{"icon":"assignment_turned_in","title":"Multimedia","text":"Supports multimedia to attract users.","image":"images/demo/speaker-2.svg"}],"name":"Widget"},{"style":{"padding":{},"margin":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{"bottom":"none"},"flexDirection":"wb-flex-row","alignItems":"wb-flex-align-items-stretch","justifyContent":"wb-flex-justify-content-space-around","flexAlignItem":"wb-flex-item-auto"},"type":"Group","name":"Panel","contents":[{"style":{"padding":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{"bottom":"none"},"margin":{},"flexAlignItem":"wb-flex-item-auto"},"type":"CommonFeatureLinks","name":"Widget","features":[{"icon":"assignment_turned_in","title":"Weburger","text":"See weburger home","action":{"type":"link","link":"https://gitlab.com/groups/weburger","label":"Weburger"}},{"icon":"assignment_turned_in","title":"Common widgets","text":"See common widgets","action":{"type":"link","link":"https://gitlab.com/weburger/am-wb-common","label":"common"}},{"icon":"assignment_turned_in","title":"Feature links help","text":"See online help about feature list.","action":{"link":"https://gitlab.com/weburger/am-wb-common/wikis/feature-links","type":"link","label":"Features link"}},{"icon":"assignment_turned_in","title":"Action title#1","text":"Feature description."},{"icon":"assignment_turned_in","title":"Action title#2","text":"Feature description."},{"icon":"assignment_turned_in","title":"Action title#3","text":"Feature description."}]},{"style":{"padding":{},"borderRadius":{},"borderStyleColorWidth":{},"borderStyle":{},"borderWidth":{},"borderColor":{},"margin":{}},"type":"CommonFeatureMozaic","name":"Widget","features":[{"icon":"assignment_turned_in","title":"Feature title","text":"Feature description."},{"icon":"assignment_turned_in","title":"Feature title","text":"Feature description."},{"icon":"assignment_turned_in","title":"Feature title","text":"Feature description."},{"icon":"assignment_turned_in","title":"Feature title","text":"Feature description."}]}]}]}
\ No newline at end of file
{
"type": "Page",
"label": "دونیت - حمایت مالی پروژه‌ها",
"description": "دونیت شمارا در جمع کردن کمک‌های مالی یاری می‌کند.",
"style": {
"layout": "column",
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
},
"flexDirection": "wb-flex-column",
"padding": {
},
"margin": {
}
},
"contents": [
{
"style": {
"padding": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
"bottom": "none"
},
"margin": {
},
"flexAlignItem": "wb-flex-item-auto"
},
"type": "CommonFeatureToolbar",
"name": "Widget",
"features": [
{
"icon": "assignment_turned_in",
"title": "Home",
"text": "Feature description.",
"image": "/images/logo.svg",
"action": {
"type": "link",
"link": "https://gitlab.com/weburger/am-wb-common",
"label": "Common widget home"
}
},
{
"icon": "assignment_turned_in",
"title": "Feature title",
"text": "Feature description.",
"image": "/images/logo.svg"
}
],
"label": "Common widgets",
"description": "This is a demo of common widgets."
},
{
"type": "CommonActionCall",
"style": {
"padding": {
},
"margin": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
"bottom": "none"
},
"flexAlignItem": "wb-flex-item-auto",
"background": "url(\"images/wallpaper.jpg\")",
"backgroundSize": "cover"
},
"features": [
{
"icon": "assignment_turned_in",
"title": "Go to Home",
"text": "Feature description.",
"action": {
"type": "link",
"link": "https://gitlab.com/weburger/am-wb-common",
"label": "Home"
}
},
{
"icon": "assignment_turned_in",
"title": "Action call",
"text": "Action Call",
"image": "",
"action": {
"type": "link",
"link": "https://gitlab.com/weburger/am-wb-common/wikis/action-call"
}
}
],
"name": "Widget",
"action": {
"label": "My action",
"type": "link",
"link": "http://google.com"
},
"label": "DigiDoci",
"description": "Repair your device as easy as possible"
},
{
"type": "CommonFeatureList",
"style": {
"padding": {
},
"margin": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
}
},
"features": [
{
"icon": "assignment_turned_in",
"title": "Customize",
"text": "This is fully customization widgets.",
"image": "images/demo/settings-3.svg"
},
{
"icon": "assignment_turned_in",
"title": "Share it",
"text": "Easy to share your configuration and design.",
"image": "images/demo/share.svg",
"action": {
"type": "link",
"link": "http://google.com",
"label": "Go"
}
},
{
"icon": "assignment_turned_in",
"title": "Mobile frindly",
"text": "The system is fully mobile adaptable.",
"image": "images/demo/smartphone-4.svg"
},
{
"icon": "assignment_turned_in",
"title": "Multimedia",
"text": "Supports multimedia to attract users.",
"image": "images/demo/speaker-2.svg"
}
],
"name": "Widget"
},
{
"style": {
"padding": {
},
"margin": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
}
},
"type": "CommonVideoPlayer",
"name": "Widget",
"content": {
"url": "https://www.w3schools.com/html/mov_bbb.ogg",
"mimeType": "video/ogg"
},
"setting": {
"autoplay": "false",
"controls": "true",
"loop": "true",
"width": "60%",
"height": "auto",
"poster": "images/wallpaper.jpg"
}
},
{
"style": {
"padding": {
},
"margin": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
}
},
"type": "CommonAudioPlayer",
"name": "Widget",
"content": {
"url": "https://www.w3schools.com/html/mov_bbb.ogg",
"mimeType": "audio/mpeg"
},
"setting": {
"autoplay": "false",
"controls": "true",
"preload": "auto"
}
},
{
"style": {
"padding": {
},
"margin": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
"bottom": "none"
},
"flexDirection": "wb-flex-row",
"alignItems": "wb-flex-align-items-stretch",
"justifyContent": "wb-flex-justify-content-space-around",
"flexAlignItem": "wb-flex-item-auto"
},
"type": "Group",
"name": "Panel",
"contents": [
{
"style": {
"padding": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
"bottom": "none"
},
"margin": {
},
"flexAlignItem": "wb-flex-item-auto"
},
"type": "CommonFeatureLinks",
"name": "Widget",
"features": [
{
"icon": "assignment_turned_in",
"title": "Weburger",
"text": "See weburger home",
"action": {
"type": "link",
"link": "https://gitlab.com/groups/weburger",
"label": "Weburger"
}
},
{
"icon": "assignment_turned_in",
"title": "Common widgets",
"text": "See common widgets",
"action": {
"type": "link",
"link": "https://gitlab.com/weburger/am-wb-common",
"label": "common"
}
},
{
"icon": "assignment_turned_in",
"title": "Feature links help",
"text": "See online help about feature list.",
"action": {
"link": "https://gitlab.com/weburger/am-wb-common/wikis/feature-links",
"type": "link",
"label": "Features link"
}
},
{
"icon": "assignment_turned_in",
"title": "Action title#1",
"text": "Feature description."
},
{
"icon": "assignment_turned_in",
"title": "Action title#2",
"text": "Feature description."
},
{
"icon": "assignment_turned_in",
"title": "Action title#3",
"text": "Feature description."
}
]
},
{
"style": {
"padding": {
},
"borderRadius": {
},
"borderStyleColorWidth": {
},
"borderStyle": {
},
"borderWidth": {
},
"borderColor": {
},
"margin": {
}
},
"type": "CommonFeatureMozaic",
"name": "Widget",
"features": [
{
"icon": "assignment_turned_in",
"title": "Feature title",
"text": "Feature description."
},
{
"icon": "assignment_turned_in",
"title": "Feature title",
"text": "Feature description."
},
{
"icon": "assignment_turned_in",
"title": "Feature title",
"text": "Feature description."
},
{
"icon": "assignment_turned_in",
"title": "Feature title",
"text": "Feature description."
}
]
}
]
}
]
}
\ No newline at end of file
/* Ling view if ther is and link value */
.feature-list-link{
cursor: pointer;
}
This diff is collapsed.
.feature-list-link{cursor:pointer}
\ No newline at end of file
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 weburger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
'use strict';
/**
*
*/
angular.module('ngMaterialWeburgerCommon')
.filter("trueOrUndefined", function() {
return function(value) {
var res = (value === true || value === 'true');
return res ? res : undefined;
};
});
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 weburger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
'use strict';
/**
*
*/
angular.module('ngMaterialWeburgerCommon')
/**
*
*/
.controller('AmWbCommonAudioCtrl', function($scope, $rootScope, $wbUi) {
var ngModel = $scope.wbModel;
/*
* Listen model
*/
$scope.$watch('wbModel', function() {