init
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Magezon
|
||||
*
|
||||
* This source file is subject to the Magezon Software License, which is available at https://www.magezon.com/license.
|
||||
* Do not edit or add to this file if you wish to upgrade the to newer versions in the future.
|
||||
* If you wish to customize this module for your needs.
|
||||
* Please refer to https://www.magezon.com for more information.
|
||||
*
|
||||
* @category Magezon
|
||||
* @package Magezon_Core
|
||||
* @copyright Copyright (C) 2019 Magezon (https://www.magezon.com)
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<css src="Magezon_Core::css/minicolors/jquery.minicolors.css"/>
|
||||
</head>
|
||||
</page>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Magezon
|
||||
*
|
||||
* This source file is subject to the Magezon Software License, which is available at https://www.magezon.com/license.
|
||||
* Do not edit or add to this file if you wish to upgrade the to newer versions in the future.
|
||||
* If you wish to customize this module for your needs.
|
||||
* Please refer to https://www.magezon.com for more information.
|
||||
*
|
||||
* @category Magezon
|
||||
* @package Magezon_Core
|
||||
* @copyright Copyright (C) 2019 Magezon (https://www.magezon.com)
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="after.body.start">
|
||||
<block class="Magezon\Core\Block\Adminhtml\Head" name="global.html" template="head.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Magezon
|
||||
*
|
||||
* This source file is subject to the Magezon Software License, which is available at https://www.magezon.com/license.
|
||||
* Do not edit or add to this file if you wish to upgrade the to newer versions in the future.
|
||||
* If you wish to customize this module for your needs.
|
||||
* Please refer to https://www.magezon.com for more information.
|
||||
*
|
||||
* @category Magezon
|
||||
* @package Magezon_Core
|
||||
* @copyright Copyright (C) 2019 Magezon (https://www.magezon.com)
|
||||
*/
|
||||
-->
|
||||
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
|
||||
<update handle="cms_wysiwyg_images_index"/>
|
||||
<referenceBlock name="wysiwyg_images.content">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Magezon_Core::browser/content.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</layout>
|
||||
@@ -0,0 +1,12 @@
|
||||
var config = {
|
||||
map: {
|
||||
"*": {
|
||||
"mgzmediabrowser": "Magezon_Core/js/mage/browser",
|
||||
}
|
||||
},
|
||||
shim: {
|
||||
'produclabels': {
|
||||
'deps': ['jquery']
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $block dynamic|\Magento\Backend\Block\Template
|
||||
*/
|
||||
$blockGrid = $block->getBlockGrid();
|
||||
$gridJsObjectName = $blockGrid->getJsObjectName();
|
||||
$id = 'in_items' . time() . uniqid();
|
||||
?>
|
||||
<?= $block->getGridHtml() ?>
|
||||
<?php if ($block->getElementName() && $block->getFormPart()): ?>
|
||||
<input type="hidden" name="<?php echo $block->getElementName(); ?>" id="<?php echo $id ?>" data-form-part="<?php echo $block->getFormPart() ?>" value="" />
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Magezon_Core/js/form/assign-items": {
|
||||
"selectedItems": <?= /* @escapeNotVerified */ $block->getJson() ?>,
|
||||
"gridJsObjectName": <?= /* @escapeNotVerified */ '"' . $gridJsObjectName . '"' ?: '{}' ?>,
|
||||
"selector": "<?php echo $id ?>",
|
||||
"ajaxParam": "<?php echo $block->getAjaxParam() ? $block->getAjaxParam() : 'selected_products' ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- @todo remove when "UI components" will support such initialization -->
|
||||
<script>
|
||||
require('mage/apply/main').apply();
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $block \Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content
|
||||
*/
|
||||
$options = json_decode($block->getFilebrowserSetupObject(), true);
|
||||
$options['onInsertUrl'] = str_replace("/cms", "/mgzcore", $options['onInsertUrl']);
|
||||
$options = json_encode($options);
|
||||
$buttonsHtml = str_replace('MediabrowserUtility', 'MgzMediabrowserUtility', $block->getButtonsHtml());
|
||||
?>
|
||||
|
||||
<div data-mage-init='{"mgzmediabrowser": <?php echo $block->escapeHtml($options); ?>}'>
|
||||
<div class="side-col"><?php echo $block->getChildHtml('wysiwyg_images.tree') ?></div>
|
||||
<div class="main-col">
|
||||
<div class="insert-title" id="content_header">
|
||||
<div class="insert-title-inner">
|
||||
<div class="insert-actions">
|
||||
<?= $buttonsHtml ?>
|
||||
</div>
|
||||
<div class="title"><?php /* @escapeNotVerified */ echo $block->getHeaderText() ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="error-message" data-action="show-error"></div>
|
||||
<div id="contents-uploader" class="contents-uploader"><?php echo $block->getChildHtml('wysiwyg_images.uploader') ?></div>
|
||||
<div id="contents"></div>
|
||||
</div>
|
||||
</div>
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
$formName = $this->getFormName();
|
||||
?>
|
||||
<?= $this->getButtonHtml() ?>
|
||||
<script type="text/javascript">
|
||||
require(
|
||||
[
|
||||
'jquery',
|
||||
'underscore',
|
||||
'uiRegistry'
|
||||
],
|
||||
function($, _, uiRegistry) {
|
||||
|
||||
|
||||
/**
|
||||
* Collect form data.
|
||||
*
|
||||
* @param {Array} items
|
||||
* @returns {Object}
|
||||
*/
|
||||
function collectData(items) {
|
||||
var result = {},
|
||||
name;
|
||||
|
||||
items = Array.prototype.slice.call(items);
|
||||
|
||||
items.forEach(function (item) {
|
||||
switch (item.type) {
|
||||
case 'checkbox':
|
||||
result[item.name] = +!!item.checked;
|
||||
break;
|
||||
|
||||
case 'radio':
|
||||
if (item.checked) {
|
||||
result[item.name] = item.value;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'select-multiple':
|
||||
name = item.name.substring(0, item.name.length - 2); //remove [] from the name ending
|
||||
result[name] = _.pluck(item.selectedOptions, 'value');
|
||||
break;
|
||||
|
||||
default:
|
||||
result[item.name] = item.value;
|
||||
}
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
$('#mgz_conditions_preview_btn').click(function () {
|
||||
var data = uiRegistry.get('<?= $formName ?>.<?= $formName ?>_data_source').get('data');
|
||||
var additionalFields = $('[data-form-part=<?= $formName ?>]');
|
||||
var additional = collectData(additionalFields);
|
||||
var post = {...data, ...additional};
|
||||
post['mgz_conditions_grid_id'] = '<?= $this->getRequest()->getParam('mgz_conditions_grid_id') ?>';
|
||||
var url = "<?= $this->getUrl('mgzcore/conditions/productlist') ?>";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
url: url,
|
||||
data: post,
|
||||
showLoader: true,
|
||||
success: function (html) {
|
||||
$('#mgz_conditions_product').replaceWith(html);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $block dynamic|\Magento\Backend\Block\Template
|
||||
*/
|
||||
$blockGrid = $block->getBlockGrid();
|
||||
?>
|
||||
<?= $block->getGridHtml() ?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<script>
|
||||
window.mgzMediaUrl = '<?php echo $block->getMediaUrl() ?>';
|
||||
window.mgzFilesBrowserWindowUrl = '<?php echo $block->getFilesBrowserWindowUrl() ?>';
|
||||
</script>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $block \Magezon\Core\Block\Adminhtml\TopMenu
|
||||
*/
|
||||
$titleId = ($block->getTitleId()) ? ' id="' . $block->getTitleId() . '"' : '';
|
||||
$titleClass = ($block->getTitleClass()) ? ' ' . $block->getTitleClass() : '';
|
||||
$title = $block->escapeHtml($block->getPageTitle());
|
||||
$links = [];
|
||||
if ($block->getLinks()) {
|
||||
$links = $block->getLinks();
|
||||
}
|
||||
$total = count($links);
|
||||
foreach ($links as $_columnLinks) {
|
||||
foreach ($_columnLinks as $_link) {
|
||||
$total++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($total) { ?>
|
||||
<div class="mgz-menu admin__action-dropdown-wrap">
|
||||
<a
|
||||
href="<?= $block->getUrl('adminhtml/system_account/index') ?>"
|
||||
class="admin__action-dropdown"
|
||||
data-mage-init='{"dropdown":{}}'
|
||||
data-toggle="dropdown">
|
||||
<span class="admin__action-dropdown-text">
|
||||
<span class="page-title-wrapper<?= $titleClass ?>">
|
||||
<h1 class="page-title"<?= $titleId ?>><?= $title ?></h1>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="admin__action-dropdown-menu">
|
||||
<?php foreach ($links as $_link) { ?>
|
||||
<?php if (is_array($_link) && isset($_link[0])) { ?>
|
||||
<?php foreach ($_link as $_link1) { ?>
|
||||
<?php if (isset($_link1['class']) || isset($_link1['title']) || isset($_link1['link'])) { ?>
|
||||
<li <?php if (isset($_link1['class'])): ?>class="<?php echo $_link1['class'] ?>"<?php endif; ?>>
|
||||
<?php if (isset($_link1['link']) && $_link1['title']) { ?>
|
||||
<a <?php if (isset($_link1['target'])): ?>target="<?php echo $_link1['target'] ?>"<?php endif; ?> href="<?php echo $_link1['link'] ?>"><?php echo $_link1['title'] ?></a>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if (isset($_link['class']) || isset($_link['title']) || isset($_link['link'])) { ?>
|
||||
<li <?php if (isset($_link['class'])): ?>class="<?php echo $_link['class'] ?>"<?php endif; ?>>
|
||||
<?php if (isset($_link['link']) && $_link['title']) { ?>
|
||||
<a <?php if (isset($_link['target'])): ?>target="<?php echo $_link['target'] ?>"<?php endif; ?> href="<?php echo $_link['link'] ?>"><?php echo $_link['title'] ?></a>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="page-title-wrapper<?= $titleClass ?>">
|
||||
<h1 class="page-title"<?= $titleId ?>><?= $title ?></h1>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<script>
|
||||
require(['jquery'], function($) {
|
||||
$('body').addClass('mgz-extention');
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="mgzreport" class="<?= $block->getAdditionalClasses() ?>" data-bind="scope:'mgzreport'">
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#mgzreport": {
|
||||
"Magento_Ui/js/core/app": <?= $block->getJsLayout() ?>
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
window.mgzReportsConfig = <?= $block->getConfig() ?>;
|
||||
</script>
|
||||
</div>
|
||||
+925
@@ -0,0 +1,925 @@
|
||||
.container {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
max-width: 100%;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 750px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 970px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
width: 1280px;
|
||||
}
|
||||
}
|
||||
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
|
||||
float: left;
|
||||
}
|
||||
.col-xs-12 {
|
||||
width: 100%;
|
||||
}
|
||||
.col-xs-11 {
|
||||
width: 91.66666667%;
|
||||
}
|
||||
.col-xs-10 {
|
||||
width: 83.33333333%;
|
||||
}
|
||||
.col-xs-9 {
|
||||
width: 75%;
|
||||
}
|
||||
.col-xs-8 {
|
||||
width: 66.66666667%;
|
||||
}
|
||||
.col-xs-7 {
|
||||
width: 58.33333333%;
|
||||
}
|
||||
.col-xs-6 {
|
||||
width: 50%;
|
||||
}
|
||||
.col-xs-5 {
|
||||
width: 41.66666667%;
|
||||
}
|
||||
.col-xs-4 {
|
||||
width: 33.33333333%;
|
||||
}
|
||||
.col-xs-3 {
|
||||
width: 25%;
|
||||
}
|
||||
.col-xs-2 {
|
||||
width: 16.66666667%;
|
||||
}
|
||||
.col-xs-1 {
|
||||
width: 8.33333333%;
|
||||
}
|
||||
.col-xs-pull-12 {
|
||||
right: 100%;
|
||||
}
|
||||
.col-xs-pull-11 {
|
||||
right: 91.66666667%;
|
||||
}
|
||||
.col-xs-pull-10 {
|
||||
right: 83.33333333%;
|
||||
}
|
||||
.col-xs-pull-9 {
|
||||
right: 75%;
|
||||
}
|
||||
.col-xs-pull-8 {
|
||||
right: 66.66666667%;
|
||||
}
|
||||
.col-xs-pull-7 {
|
||||
right: 58.33333333%;
|
||||
}
|
||||
.col-xs-pull-6 {
|
||||
right: 50%;
|
||||
}
|
||||
.col-xs-pull-5 {
|
||||
right: 41.66666667%;
|
||||
}
|
||||
.col-xs-pull-4 {
|
||||
right: 33.33333333%;
|
||||
}
|
||||
.col-xs-pull-3 {
|
||||
right: 25%;
|
||||
}
|
||||
.col-xs-pull-2 {
|
||||
right: 16.66666667%;
|
||||
}
|
||||
.col-xs-pull-1 {
|
||||
right: 8.33333333%;
|
||||
}
|
||||
.col-xs-pull-0 {
|
||||
right: auto;
|
||||
}
|
||||
.col-xs-push-12 {
|
||||
left: 100%;
|
||||
}
|
||||
.col-xs-push-11 {
|
||||
left: 91.66666667%;
|
||||
}
|
||||
.col-xs-push-10 {
|
||||
left: 83.33333333%;
|
||||
}
|
||||
.col-xs-push-9 {
|
||||
left: 75%;
|
||||
}
|
||||
.col-xs-push-8 {
|
||||
left: 66.66666667%;
|
||||
}
|
||||
.col-xs-push-7 {
|
||||
left: 58.33333333%;
|
||||
}
|
||||
.col-xs-push-6 {
|
||||
left: 50%;
|
||||
}
|
||||
.col-xs-push-5 {
|
||||
left: 41.66666667%;
|
||||
}
|
||||
.col-xs-push-4 {
|
||||
left: 33.33333333%;
|
||||
}
|
||||
.col-xs-push-3 {
|
||||
left: 25%;
|
||||
}
|
||||
.col-xs-push-2 {
|
||||
left: 16.66666667%;
|
||||
}
|
||||
.col-xs-push-1 {
|
||||
left: 8.33333333%;
|
||||
}
|
||||
.col-xs-push-0 {
|
||||
left: auto;
|
||||
}
|
||||
.col-xs-offset-12 {
|
||||
margin-left: 100%;
|
||||
}
|
||||
.col-xs-offset-11 {
|
||||
margin-left: 91.66666667%;
|
||||
}
|
||||
.col-xs-offset-10 {
|
||||
margin-left: 83.33333333%;
|
||||
}
|
||||
.col-xs-offset-9 {
|
||||
margin-left: 75%;
|
||||
}
|
||||
.col-xs-offset-8 {
|
||||
margin-left: 66.66666667%;
|
||||
}
|
||||
.col-xs-offset-7 {
|
||||
margin-left: 58.33333333%;
|
||||
}
|
||||
.col-xs-offset-6 {
|
||||
margin-left: 50%;
|
||||
}
|
||||
.col-xs-offset-5 {
|
||||
margin-left: 41.66666667%;
|
||||
}
|
||||
.col-xs-offset-4 {
|
||||
margin-left: 33.33333333%;
|
||||
}
|
||||
.col-xs-offset-3 {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.col-xs-offset-2 {
|
||||
margin-left: 16.66666667%;
|
||||
}
|
||||
.col-xs-offset-1 {
|
||||
margin-left: 8.33333333%;
|
||||
}
|
||||
.col-xs-offset-0 {
|
||||
margin-left: 0%;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
|
||||
float: left;
|
||||
}
|
||||
.col-sm-12 {
|
||||
width: 100%;
|
||||
}
|
||||
.col-sm-11 {
|
||||
width: 91.66666667%;
|
||||
}
|
||||
.col-sm-10 {
|
||||
width: 83.33333333%;
|
||||
}
|
||||
.col-sm-9 {
|
||||
width: 75%;
|
||||
}
|
||||
.col-sm-8 {
|
||||
width: 66.66666667%;
|
||||
}
|
||||
.col-sm-7 {
|
||||
width: 58.33333333%;
|
||||
}
|
||||
.col-sm-6 {
|
||||
width: 50%;
|
||||
}
|
||||
.col-sm-5 {
|
||||
width: 41.66666667%;
|
||||
}
|
||||
.col-sm-4 {
|
||||
width: 33.33333333%;
|
||||
}
|
||||
.col-sm-3 {
|
||||
width: 25%;
|
||||
}
|
||||
.col-sm-2 {
|
||||
width: 16.66666667%;
|
||||
}
|
||||
.col-sm-1 {
|
||||
width: 8.33333333%;
|
||||
}
|
||||
.col-sm-pull-12 {
|
||||
right: 100%;
|
||||
}
|
||||
.col-sm-pull-11 {
|
||||
right: 91.66666667%;
|
||||
}
|
||||
.col-sm-pull-10 {
|
||||
right: 83.33333333%;
|
||||
}
|
||||
.col-sm-pull-9 {
|
||||
right: 75%;
|
||||
}
|
||||
.col-sm-pull-8 {
|
||||
right: 66.66666667%;
|
||||
}
|
||||
.col-sm-pull-7 {
|
||||
right: 58.33333333%;
|
||||
}
|
||||
.col-sm-pull-6 {
|
||||
right: 50%;
|
||||
}
|
||||
.col-sm-pull-5 {
|
||||
right: 41.66666667%;
|
||||
}
|
||||
.col-sm-pull-4 {
|
||||
right: 33.33333333%;
|
||||
}
|
||||
.col-sm-pull-3 {
|
||||
right: 25%;
|
||||
}
|
||||
.col-sm-pull-2 {
|
||||
right: 16.66666667%;
|
||||
}
|
||||
.col-sm-pull-1 {
|
||||
right: 8.33333333%;
|
||||
}
|
||||
.col-sm-pull-0 {
|
||||
right: auto;
|
||||
}
|
||||
.col-sm-push-12 {
|
||||
left: 100%;
|
||||
}
|
||||
.col-sm-push-11 {
|
||||
left: 91.66666667%;
|
||||
}
|
||||
.col-sm-push-10 {
|
||||
left: 83.33333333%;
|
||||
}
|
||||
.col-sm-push-9 {
|
||||
left: 75%;
|
||||
}
|
||||
.col-sm-push-8 {
|
||||
left: 66.66666667%;
|
||||
}
|
||||
.col-sm-push-7 {
|
||||
left: 58.33333333%;
|
||||
}
|
||||
.col-sm-push-6 {
|
||||
left: 50%;
|
||||
}
|
||||
.col-sm-push-5 {
|
||||
left: 41.66666667%;
|
||||
}
|
||||
.col-sm-push-4 {
|
||||
left: 33.33333333%;
|
||||
}
|
||||
.col-sm-push-3 {
|
||||
left: 25%;
|
||||
}
|
||||
.col-sm-push-2 {
|
||||
left: 16.66666667%;
|
||||
}
|
||||
.col-sm-push-1 {
|
||||
left: 8.33333333%;
|
||||
}
|
||||
.col-sm-push-0 {
|
||||
left: auto;
|
||||
}
|
||||
.col-sm-offset-12 {
|
||||
margin-left: 100%;
|
||||
}
|
||||
.col-sm-offset-11 {
|
||||
margin-left: 91.66666667%;
|
||||
}
|
||||
.col-sm-offset-10 {
|
||||
margin-left: 83.33333333%;
|
||||
}
|
||||
.col-sm-offset-9 {
|
||||
margin-left: 75%;
|
||||
}
|
||||
.col-sm-offset-8 {
|
||||
margin-left: 66.66666667%;
|
||||
}
|
||||
.col-sm-offset-7 {
|
||||
margin-left: 58.33333333%;
|
||||
}
|
||||
.col-sm-offset-6 {
|
||||
margin-left: 50%;
|
||||
}
|
||||
.col-sm-offset-5 {
|
||||
margin-left: 41.66666667%;
|
||||
}
|
||||
.col-sm-offset-4 {
|
||||
margin-left: 33.33333333%;
|
||||
}
|
||||
.col-sm-offset-3 {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.col-sm-offset-2 {
|
||||
margin-left: 16.66666667%;
|
||||
}
|
||||
.col-sm-offset-1 {
|
||||
margin-left: 8.33333333%;
|
||||
}
|
||||
.col-sm-offset-0 {
|
||||
margin-left: 0%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) {
|
||||
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
|
||||
float: left;
|
||||
}
|
||||
.col-md-12 {
|
||||
width: 100%;
|
||||
}
|
||||
.col-md-11 {
|
||||
width: 91.66666667%;
|
||||
}
|
||||
.col-md-10 {
|
||||
width: 83.33333333%;
|
||||
}
|
||||
.col-md-9 {
|
||||
width: 75%;
|
||||
}
|
||||
.col-md-8 {
|
||||
width: 66.66666667%;
|
||||
}
|
||||
.col-md-7 {
|
||||
width: 58.33333333%;
|
||||
}
|
||||
.col-md-6 {
|
||||
width: 50%;
|
||||
}
|
||||
.col-md-5 {
|
||||
width: 41.66666667%;
|
||||
}
|
||||
.col-md-4 {
|
||||
width: 33.33333333%;
|
||||
}
|
||||
.col-md-3 {
|
||||
width: 25%;
|
||||
}
|
||||
.col-md-2 {
|
||||
width: 16.66666667%;
|
||||
}
|
||||
.col-md-1 {
|
||||
width: 8.33333333%;
|
||||
}
|
||||
.col-md-pull-12 {
|
||||
right: 100%;
|
||||
}
|
||||
.col-md-pull-11 {
|
||||
right: 91.66666667%;
|
||||
}
|
||||
.col-md-pull-10 {
|
||||
right: 83.33333333%;
|
||||
}
|
||||
.col-md-pull-9 {
|
||||
right: 75%;
|
||||
}
|
||||
.col-md-pull-8 {
|
||||
right: 66.66666667%;
|
||||
}
|
||||
.col-md-pull-7 {
|
||||
right: 58.33333333%;
|
||||
}
|
||||
.col-md-pull-6 {
|
||||
right: 50%;
|
||||
}
|
||||
.col-md-pull-5 {
|
||||
right: 41.66666667%;
|
||||
}
|
||||
.col-md-pull-4 {
|
||||
right: 33.33333333%;
|
||||
}
|
||||
.col-md-pull-3 {
|
||||
right: 25%;
|
||||
}
|
||||
.col-md-pull-2 {
|
||||
right: 16.66666667%;
|
||||
}
|
||||
.col-md-pull-1 {
|
||||
right: 8.33333333%;
|
||||
}
|
||||
.col-md-pull-0 {
|
||||
right: auto;
|
||||
}
|
||||
.col-md-push-12 {
|
||||
left: 100%;
|
||||
}
|
||||
.col-md-push-11 {
|
||||
left: 91.66666667%;
|
||||
}
|
||||
.col-md-push-10 {
|
||||
left: 83.33333333%;
|
||||
}
|
||||
.col-md-push-9 {
|
||||
left: 75%;
|
||||
}
|
||||
.col-md-push-8 {
|
||||
left: 66.66666667%;
|
||||
}
|
||||
.col-md-push-7 {
|
||||
left: 58.33333333%;
|
||||
}
|
||||
.col-md-push-6 {
|
||||
left: 50%;
|
||||
}
|
||||
.col-md-push-5 {
|
||||
left: 41.66666667%;
|
||||
}
|
||||
.col-md-push-4 {
|
||||
left: 33.33333333%;
|
||||
}
|
||||
.col-md-push-3 {
|
||||
left: 25%;
|
||||
}
|
||||
.col-md-push-2 {
|
||||
left: 16.66666667%;
|
||||
}
|
||||
.col-md-push-1 {
|
||||
left: 8.33333333%;
|
||||
}
|
||||
.col-md-push-0 {
|
||||
left: auto;
|
||||
}
|
||||
.col-md-offset-12 {
|
||||
margin-left: 100%;
|
||||
}
|
||||
.col-md-offset-11 {
|
||||
margin-left: 91.66666667%;
|
||||
}
|
||||
.col-md-offset-10 {
|
||||
margin-left: 83.33333333%;
|
||||
}
|
||||
.col-md-offset-9 {
|
||||
margin-left: 75%;
|
||||
}
|
||||
.col-md-offset-8 {
|
||||
margin-left: 66.66666667%;
|
||||
}
|
||||
.col-md-offset-7 {
|
||||
margin-left: 58.33333333%;
|
||||
}
|
||||
.col-md-offset-6 {
|
||||
margin-left: 50%;
|
||||
}
|
||||
.col-md-offset-5 {
|
||||
margin-left: 41.66666667%;
|
||||
}
|
||||
.col-md-offset-4 {
|
||||
margin-left: 33.33333333%;
|
||||
}
|
||||
.col-md-offset-3 {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.col-md-offset-2 {
|
||||
margin-left: 16.66666667%;
|
||||
}
|
||||
.col-md-offset-1 {
|
||||
margin-left: 8.33333333%;
|
||||
}
|
||||
.col-md-offset-0 {
|
||||
margin-left: 0%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
|
||||
float: left;
|
||||
}
|
||||
.col-lg-12 {
|
||||
width: 100%;
|
||||
}
|
||||
.col-lg-11 {
|
||||
width: 91.66666667%;
|
||||
}
|
||||
.col-lg-10 {
|
||||
width: 83.33333333%;
|
||||
}
|
||||
.col-lg-9 {
|
||||
width: 75%;
|
||||
}
|
||||
.col-lg-8 {
|
||||
width: 66.66666667%;
|
||||
}
|
||||
.col-lg-7 {
|
||||
width: 58.33333333%;
|
||||
}
|
||||
.col-lg-6 {
|
||||
width: 50%;
|
||||
}
|
||||
.col-lg-5 {
|
||||
width: 41.66666667%;
|
||||
}
|
||||
.col-lg-4 {
|
||||
width: 33.33333333%;
|
||||
}
|
||||
.col-lg-3 {
|
||||
width: 25%;
|
||||
}
|
||||
.col-lg-2 {
|
||||
width: 16.66666667%;
|
||||
}
|
||||
.col-lg-1 {
|
||||
width: 8.33333333%;
|
||||
}
|
||||
.col-lg-pull-12 {
|
||||
right: 100%;
|
||||
}
|
||||
.col-lg-pull-11 {
|
||||
right: 91.66666667%;
|
||||
}
|
||||
.col-lg-pull-10 {
|
||||
right: 83.33333333%;
|
||||
}
|
||||
.col-lg-pull-9 {
|
||||
right: 75%;
|
||||
}
|
||||
.col-lg-pull-8 {
|
||||
right: 66.66666667%;
|
||||
}
|
||||
.col-lg-pull-7 {
|
||||
right: 58.33333333%;
|
||||
}
|
||||
.col-lg-pull-6 {
|
||||
right: 50%;
|
||||
}
|
||||
.col-lg-pull-5 {
|
||||
right: 41.66666667%;
|
||||
}
|
||||
.col-lg-pull-4 {
|
||||
right: 33.33333333%;
|
||||
}
|
||||
.col-lg-pull-3 {
|
||||
right: 25%;
|
||||
}
|
||||
.col-lg-pull-2 {
|
||||
right: 16.66666667%;
|
||||
}
|
||||
.col-lg-pull-1 {
|
||||
right: 8.33333333%;
|
||||
}
|
||||
.col-lg-pull-0 {
|
||||
right: auto;
|
||||
}
|
||||
.col-lg-push-12 {
|
||||
left: 100%;
|
||||
}
|
||||
.col-lg-push-11 {
|
||||
left: 91.66666667%;
|
||||
}
|
||||
.col-lg-push-10 {
|
||||
left: 83.33333333%;
|
||||
}
|
||||
.col-lg-push-9 {
|
||||
left: 75%;
|
||||
}
|
||||
.col-lg-push-8 {
|
||||
left: 66.66666667%;
|
||||
}
|
||||
.col-lg-push-7 {
|
||||
left: 58.33333333%;
|
||||
}
|
||||
.col-lg-push-6 {
|
||||
left: 50%;
|
||||
}
|
||||
.col-lg-push-5 {
|
||||
left: 41.66666667%;
|
||||
}
|
||||
.col-lg-push-4 {
|
||||
left: 33.33333333%;
|
||||
}
|
||||
.col-lg-push-3 {
|
||||
left: 25%;
|
||||
}
|
||||
.col-lg-push-2 {
|
||||
left: 16.66666667%;
|
||||
}
|
||||
.col-lg-push-1 {
|
||||
left: 8.33333333%;
|
||||
}
|
||||
.col-lg-push-0 {
|
||||
left: auto;
|
||||
}
|
||||
.col-lg-offset-12 {
|
||||
margin-left: 100%;
|
||||
}
|
||||
.col-lg-offset-11 {
|
||||
margin-left: 91.66666667%;
|
||||
}
|
||||
.col-lg-offset-10 {
|
||||
margin-left: 83.33333333%;
|
||||
}
|
||||
.col-lg-offset-9 {
|
||||
margin-left: 75%;
|
||||
}
|
||||
.col-lg-offset-8 {
|
||||
margin-left: 66.66666667%;
|
||||
}
|
||||
.col-lg-offset-7 {
|
||||
margin-left: 58.33333333%;
|
||||
}
|
||||
.col-lg-offset-6 {
|
||||
margin-left: 50%;
|
||||
}
|
||||
.col-lg-offset-5 {
|
||||
margin-left: 41.66666667%;
|
||||
}
|
||||
.col-lg-offset-4 {
|
||||
margin-left: 33.33333333%;
|
||||
}
|
||||
.col-lg-offset-3 {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.col-lg-offset-2 {
|
||||
margin-left: 16.66666667%;
|
||||
}
|
||||
.col-lg-offset-1 {
|
||||
margin-left: 8.33333333%;
|
||||
}
|
||||
.col-lg-offset-0 {
|
||||
margin-left: 0%;
|
||||
}
|
||||
}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {
|
||||
clear: both;
|
||||
}
|
||||
.row {
|
||||
margin-left: -15px;
|
||||
margin-right: -15px;
|
||||
}
|
||||
.center-block {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.pull-right {
|
||||
float: right !important;
|
||||
}
|
||||
.pull-left {
|
||||
float: left !important;
|
||||
}
|
||||
.hide {
|
||||
display: none !important;
|
||||
}
|
||||
.show {
|
||||
display: block !important;
|
||||
}
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
.text-hide {
|
||||
font: 0/0 a;
|
||||
color: transparent;
|
||||
text-shadow: none;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
.affix {
|
||||
position: fixed;
|
||||
}
|
||||
@-ms-viewport {
|
||||
width: device-width;
|
||||
}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {
|
||||
display: none !important;
|
||||
}
|
||||
.visible-xs-block,
|
||||
.visible-xs-inline,
|
||||
.visible-xs-inline-block,
|
||||
.visible-sm-block,
|
||||
.visible-sm-inline,
|
||||
.visible-sm-inline-block,
|
||||
.visible-md-block,
|
||||
.visible-md-inline,
|
||||
.visible-md-inline-block,
|
||||
.visible-lg-block,
|
||||
.visible-lg-inline,
|
||||
.visible-lg-inline-block {
|
||||
display: none !important;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.visible-xs {
|
||||
display: block !important;
|
||||
}
|
||||
table.visible-xs {
|
||||
display: table;
|
||||
}
|
||||
tr.visible-xs {
|
||||
display: table-row !important;
|
||||
}
|
||||
th.visible-xs,
|
||||
td.visible-xs {
|
||||
display: table-cell !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.visible-xs-block {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.visible-xs-inline {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.visible-xs-inline-block {
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.visible-sm {
|
||||
display: block !important;
|
||||
}
|
||||
table.visible-sm {
|
||||
display: table;
|
||||
}
|
||||
tr.visible-sm {
|
||||
display: table-row !important;
|
||||
}
|
||||
th.visible-sm,
|
||||
td.visible-sm {
|
||||
display: table-cell !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.visible-sm-block {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.visible-sm-inline {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.visible-sm-inline-block {
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.visible-md {
|
||||
display: block !important;
|
||||
}
|
||||
table.visible-md {
|
||||
display: table;
|
||||
}
|
||||
tr.visible-md {
|
||||
display: table-row !important;
|
||||
}
|
||||
th.visible-md,
|
||||
td.visible-md {
|
||||
display: table-cell !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.visible-md-block {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.visible-md-inline {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.visible-md-inline-block {
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.visible-lg {
|
||||
display: block !important;
|
||||
}
|
||||
table.visible-lg {
|
||||
display: table;
|
||||
}
|
||||
tr.visible-lg {
|
||||
display: table-row !important;
|
||||
}
|
||||
th.visible-lg,
|
||||
td.visible-lg {
|
||||
display: table-cell !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.visible-lg-block {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.visible-lg-inline {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.visible-lg-inline-block {
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.hidden-xs {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.hidden-sm {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.hidden-md {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.hidden-lg {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
.visible-print {
|
||||
display: none !important;
|
||||
}
|
||||
@media print {
|
||||
.visible-print {
|
||||
display: block !important;
|
||||
}
|
||||
table.visible-print {
|
||||
display: table;
|
||||
}
|
||||
tr.visible-print {
|
||||
display: table-row !important;
|
||||
}
|
||||
th.visible-print,
|
||||
td.visible-print {
|
||||
display: table-cell !important;
|
||||
}
|
||||
}
|
||||
.visible-print-block {
|
||||
display: none !important;
|
||||
}
|
||||
@media print {
|
||||
.visible-print-block {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
.visible-print-inline {
|
||||
display: none !important;
|
||||
}
|
||||
@media print {
|
||||
.visible-print-inline {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
.visible-print-inline-block {
|
||||
display: none !important;
|
||||
}
|
||||
@media print {
|
||||
.visible-print-inline-block {
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.hidden-print {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,435 @@
|
||||
.daterangepicker {
|
||||
position: absolute;
|
||||
color: inherit;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ddd;
|
||||
width: 278px;
|
||||
max-width: none;
|
||||
padding: 0;
|
||||
margin-top: 7px;
|
||||
top: 100px;
|
||||
left: 20px;
|
||||
z-index: 3001;
|
||||
display: none;
|
||||
font-size: 15px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.daterangepicker:before, .daterangepicker:after {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
border-bottom-color: rgba(0, 0, 0, 0.2);
|
||||
content: '';
|
||||
}
|
||||
|
||||
.daterangepicker:before {
|
||||
top: -7px;
|
||||
border-right: 7px solid transparent;
|
||||
border-left: 7px solid transparent;
|
||||
border-bottom: 7px solid #ccc;
|
||||
}
|
||||
|
||||
.daterangepicker:after {
|
||||
top: -6px;
|
||||
border-right: 6px solid transparent;
|
||||
border-bottom: 6px solid #fff;
|
||||
border-left: 6px solid transparent;
|
||||
}
|
||||
|
||||
.daterangepicker.opensleft:before {
|
||||
right: 9px;
|
||||
}
|
||||
|
||||
.daterangepicker.opensleft:after {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.daterangepicker.openscenter:before {
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.daterangepicker.openscenter:after {
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.daterangepicker.opensright:before {
|
||||
left: 9px;
|
||||
}
|
||||
|
||||
.daterangepicker.opensright:after {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.daterangepicker.drop-up {
|
||||
margin-top: -7px;
|
||||
}
|
||||
|
||||
.daterangepicker.drop-up:before {
|
||||
top: initial;
|
||||
bottom: -7px;
|
||||
border-bottom: initial;
|
||||
border-top: 7px solid #ccc;
|
||||
}
|
||||
|
||||
.daterangepicker.drop-up:after {
|
||||
top: initial;
|
||||
bottom: -6px;
|
||||
border-bottom: initial;
|
||||
border-top: 6px solid #fff;
|
||||
}
|
||||
|
||||
.daterangepicker.single .daterangepicker .ranges, .daterangepicker.single .drp-calendar {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.daterangepicker.single .drp-selected {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.daterangepicker.show-calendar .drp-calendar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.daterangepicker.show-calendar .drp-buttons {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.daterangepicker.auto-apply .drp-buttons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar {
|
||||
display: none;
|
||||
max-width: 270px;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar.left {
|
||||
padding: 8px 0 8px 8px;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar.right {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar.single .calendar-table {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {
|
||||
color: #fff;
|
||||
border: solid black;
|
||||
border-width: 0 2px 2px 0;
|
||||
border-radius: 0;
|
||||
display: inline-block;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table .next span {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table .prev span {
|
||||
transform: rotate(135deg);
|
||||
-webkit-transform: rotate(135deg);
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table th, .daterangepicker .calendar-table td {
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
min-width: 32px;
|
||||
width: 32px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
font-size: 12px;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table {
|
||||
border: 1px solid #fff;
|
||||
border-radius: 4px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-table table {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.daterangepicker td.available:hover, .daterangepicker th.available:hover {
|
||||
background-color: #eee;
|
||||
border-color: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.daterangepicker td.week, .daterangepicker th.week {
|
||||
font-size: 80%;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
|
||||
background-color: #fff;
|
||||
border-color: transparent;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.daterangepicker td.in-range {
|
||||
background-color: #ebf4f8;
|
||||
border-color: transparent;
|
||||
color: #000;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.daterangepicker td.start-date {
|
||||
border-radius: 4px 0 0 4px;
|
||||
}
|
||||
|
||||
.daterangepicker td.end-date {
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
|
||||
.daterangepicker td.start-date.end-date {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.daterangepicker td.active, .daterangepicker td.active:hover {
|
||||
background-color: #357ebd;
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.daterangepicker th.month {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.daterangepicker td.disabled, .daterangepicker option.disabled {
|
||||
color: #999;
|
||||
cursor: not-allowed;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.daterangepicker select.monthselect, .daterangepicker select.yearselect {
|
||||
font-size: 12px;
|
||||
padding: 1px;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.daterangepicker select.monthselect {
|
||||
margin-right: 2%;
|
||||
width: 56%;
|
||||
}
|
||||
|
||||
.daterangepicker select.yearselect {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
|
||||
width: 50px;
|
||||
margin: 0 auto;
|
||||
background: #eee;
|
||||
border: 1px solid #eee;
|
||||
padding: 2px;
|
||||
outline: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-time {
|
||||
text-align: center;
|
||||
margin: 4px auto 0 auto;
|
||||
line-height: 30px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.daterangepicker .calendar-time select.disabled {
|
||||
color: #ccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-buttons {
|
||||
clear: both;
|
||||
text-align: right;
|
||||
padding: 8px;
|
||||
border-top: 1px solid #ddd;
|
||||
display: none;
|
||||
line-height: 12px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-selected {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-buttons .btn {
|
||||
margin-left: 8px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.daterangepicker.show-ranges .drp-calendar.left {
|
||||
border-left: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges {
|
||||
float: none;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.show-calendar .ranges {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges ul {
|
||||
list-style: none;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges li {
|
||||
font-size: 12px;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges li:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges li.active {
|
||||
background-color: #08c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Larger Screen Styling */
|
||||
@media (min-width: 564px) {
|
||||
.daterangepicker {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.daterangepicker .ranges ul {
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
.daterangepicker.single .ranges ul {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.daterangepicker.single .drp-calendar.left {
|
||||
clear: none;
|
||||
}
|
||||
|
||||
.daterangepicker.single.ltr .ranges, .daterangepicker.single.ltr .drp-calendar {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.daterangepicker.single.rtl .ranges, .daterangepicker.single.rtl .drp-calendar {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .drp-calendar.left {
|
||||
clear: left;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .drp-calendar.left .calendar-table {
|
||||
border-right: none;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .drp-calendar.right {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .drp-calendar.right .calendar-table {
|
||||
border-left: none;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .drp-calendar.left .calendar-table {
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .ranges, .daterangepicker.ltr .drp-calendar {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl {
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .drp-calendar.left {
|
||||
clear: right;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .drp-calendar.left .calendar-table {
|
||||
border-left: none;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .drp-calendar.right {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .drp-calendar.right .calendar-table {
|
||||
border-right: none;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .drp-calendar.left .calendar-table {
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .ranges, .daterangepicker.rtl .drp-calendar {
|
||||
text-align: right;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 730px) {
|
||||
.daterangepicker .ranges {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.daterangepicker.ltr .ranges {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.daterangepicker.rtl .ranges {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar.left {
|
||||
clear: none !important;
|
||||
}
|
||||
}
|
||||
+322
@@ -0,0 +1,322 @@
|
||||
.minicolors {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.minicolors-sprite {
|
||||
background-image: url(jquery.minicolors.png);
|
||||
}
|
||||
|
||||
.minicolors-swatch {
|
||||
position: absolute;
|
||||
vertical-align: middle;
|
||||
background-position: -80px 0;
|
||||
border: solid 1px #ccc;
|
||||
cursor: text;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.minicolors-swatch-color {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.minicolors input[type=hidden] + .minicolors-swatch {
|
||||
width: 28px;
|
||||
position: static;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.minicolors input[type=hidden][disabled] + .minicolors-swatch {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* Panel */
|
||||
.minicolors-panel {
|
||||
position: absolute;
|
||||
width: 173px;
|
||||
background: white;
|
||||
border: solid 1px #CCC;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, .2);
|
||||
z-index: 99999;
|
||||
box-sizing: content-box;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.minicolors-panel.minicolors-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Panel positioning */
|
||||
.minicolors-position-top .minicolors-panel {
|
||||
top: -154px;
|
||||
}
|
||||
|
||||
.minicolors-position-right .minicolors-panel {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.minicolors-position-bottom .minicolors-panel {
|
||||
top: auto;
|
||||
}
|
||||
|
||||
.minicolors-position-left .minicolors-panel {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.minicolors-with-opacity .minicolors-panel {
|
||||
width: 194px;
|
||||
}
|
||||
|
||||
.minicolors .minicolors-grid {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background-position: -120px 0;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.minicolors .minicolors-grid-inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.minicolors-slider-saturation .minicolors-grid {
|
||||
background-position: -420px 0;
|
||||
}
|
||||
|
||||
.minicolors-slider-saturation .minicolors-grid-inner {
|
||||
background-position: -270px 0;
|
||||
background-image: inherit;
|
||||
}
|
||||
|
||||
.minicolors-slider-brightness .minicolors-grid {
|
||||
background-position: -570px 0;
|
||||
}
|
||||
|
||||
.minicolors-slider-brightness .minicolors-grid-inner {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.minicolors-slider-wheel .minicolors-grid {
|
||||
background-position: -720px 0;
|
||||
}
|
||||
|
||||
.minicolors-slider,
|
||||
.minicolors-opacity-slider {
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 152px;
|
||||
width: 20px;
|
||||
height: 150px;
|
||||
background-color: white;
|
||||
background-position: 0 0;
|
||||
cursor: row-resize;
|
||||
}
|
||||
|
||||
.minicolors-slider-saturation .minicolors-slider {
|
||||
background-position: -60px 0;
|
||||
}
|
||||
|
||||
.minicolors-slider-brightness .minicolors-slider {
|
||||
background-position: -20px 0;
|
||||
}
|
||||
|
||||
.minicolors-slider-wheel .minicolors-slider {
|
||||
background-position: -20px 0;
|
||||
}
|
||||
|
||||
.minicolors-opacity-slider {
|
||||
left: 173px;
|
||||
background-position: -40px 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.minicolors-with-opacity .minicolors-opacity-slider {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Pickers */
|
||||
.minicolors-grid .minicolors-picker {
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
left: 70px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: solid 1px black;
|
||||
border-radius: 10px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.minicolors-grid .minicolors-picker > div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 8px;
|
||||
border: solid 2px white;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.minicolors-picker {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 18px;
|
||||
height: 2px;
|
||||
background: white;
|
||||
border: solid 1px black;
|
||||
margin-top: -2px;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/* Swatches */
|
||||
.minicolors-swatches,
|
||||
.minicolors-swatches li {
|
||||
margin: 5px 0 3px 5px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.minicolors-swatches .minicolors-swatch {
|
||||
position: relative;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
margin:0 4px 0 0;
|
||||
}
|
||||
|
||||
.minicolors-with-opacity .minicolors-swatches .minicolors-swatch {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.minicolors-swatch.selected {
|
||||
border-color: #000;
|
||||
}
|
||||
|
||||
/* Inline controls */
|
||||
.minicolors-inline {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.minicolors-inline .minicolors-input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.minicolors-inline .minicolors-panel {
|
||||
position: relative;
|
||||
top: auto;
|
||||
left: auto;
|
||||
box-shadow: none;
|
||||
z-index: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Default theme */
|
||||
.minicolors-theme-default .minicolors-swatch {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.minicolors-theme-default .minicolors-swatches .minicolors-swatch {
|
||||
margin-bottom: 2px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.minicolors-theme-default.minicolors-position-right .minicolors-swatch {
|
||||
left: auto;
|
||||
right: 5px;
|
||||
}
|
||||
.minicolors-theme-default.minicolors {
|
||||
width: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
.minicolors-theme-default .minicolors-input {
|
||||
padding-left: 26px;
|
||||
}
|
||||
.minicolors-theme-default.minicolors-position-right .minicolors-input {
|
||||
padding-right: 26px;
|
||||
padding-left: inherit;
|
||||
}
|
||||
|
||||
/* Bootstrap theme */
|
||||
.minicolors-theme-bootstrap .minicolors-swatch {
|
||||
z-index: 2;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-swatches .minicolors-swatch {
|
||||
margin-bottom: 2px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-swatch-color {
|
||||
border-radius: inherit;
|
||||
}
|
||||
.minicolors-theme-bootstrap.minicolors-position-right > .minicolors-swatch {
|
||||
left: auto;
|
||||
right: 3px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-input {
|
||||
float: none;
|
||||
padding-left: 44px;
|
||||
}
|
||||
.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input {
|
||||
padding-right: 44px;
|
||||
padding-left: 12px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-input.input-lg + .minicolors-swatch {
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
width: 37px;
|
||||
height: 37px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-input.input-sm + .minicolors-swatch {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.minicolors-theme-bootstrap .minicolors-input.input-xs + .minicolors-swatch {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.input-group .minicolors-theme-bootstrap:not(:first-child) .minicolors-input {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
/* Semantic Ui theme */
|
||||
.minicolors-theme-semanticui .minicolors-swatch {
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 18px;
|
||||
}
|
||||
.minicolors-theme-semanticui input {
|
||||
text-indent: 30px;
|
||||
}
|
||||
|
||||
|
||||
.adminhtml-system-config-edit .minicolors-theme-bootstrap .minicolors-swatch {
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,366 @@
|
||||
@import 'module/_checkbox-radio.less';
|
||||
@import 'module/_actions-switcher.less';
|
||||
@import 'module/_mixins.less';
|
||||
@import 'module/_reports.less';
|
||||
|
||||
@font-face {
|
||||
font-family: 'Magezon-Icons';
|
||||
src: url('../Magezon_Core/fonts/mgz_icons.eot');
|
||||
src: url('../Magezon_Core/fonts/mgz_icons.eot?#iefix') format('embedded-opentype'), url('../Magezon_Core/fonts/mgz_icons.woff') format('woff'), url('../Magezon_Core/fonts/mgz_icons.woff') format('woff'), url('../Magezon_Core/fonts/mgz_icons.ttf') format('truetype'), url('../Magezon_Core/fonts/mgz_icons.svg#fonts') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.magezon-icon {
|
||||
/* use !important to prevent issues with browser extensions that change fonts */
|
||||
font-family: 'Magezon-Icons' !important;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.MgzFontAwesome {
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: inherit;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#menu-magezon-core-extensions {
|
||||
|
||||
> a {
|
||||
&:before {
|
||||
content: url('../Magezon_Core/images/logo.svg');
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: url('../Magezon_Core/images/logo_hover.svg');
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&._active {
|
||||
> a:before {
|
||||
content: url('../Magezon_Core/images/logo_hover.svg');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submenu li[data-ui-id*="menu-magezon-"] > a,
|
||||
#nav li li[data-ui-id*="menu-magezon-"].parent > a,
|
||||
#nav li li[data-ui-id*="menu-magezon-"].parent > strong {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.submenu li[data-ui-id*="menu-magezon-"] > a > span:after,
|
||||
#nav li li[data-ui-id*="menu-magezon-"].parent > a > span:after,
|
||||
#nav li li[data-ui-id*="menu-magezon-"].parent > strong:after {
|
||||
content: url('../Magezon_Core/images/logo.svg');
|
||||
float: right;
|
||||
margin-top: -3px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
#menu-magezon-core-extensions .submenu li[data-ui-id*="menu-magezon-"] a > span:after,
|
||||
#menu-magezon-core-extensions .submenu li[data-ui-id*="menu-magezon-"] strong:after,
|
||||
.submenu li[data-ui-id*="menu-magezon-"].parent li[data-ui-id*="menu-magezon-"] > a > span:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#mgz-tabs {
|
||||
.admin__page-nav-item {
|
||||
display: inline-block;
|
||||
border-left: 0;
|
||||
border-top: 3px solid transparent;
|
||||
|
||||
a {
|
||||
border-bottom: 0;
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
&._active,
|
||||
&.ui-state-active {
|
||||
.admin__page-nav-link
|
||||
{
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-top-color: #e4e4e4
|
||||
}
|
||||
|
||||
&.ui-state-active {
|
||||
border-top-color: #eb5202;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
.admin__page-nav-items {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.admin__field-control.control {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mgz-form_image {
|
||||
input {
|
||||
width: 100%;
|
||||
padding-right: 120px !important;
|
||||
}
|
||||
|
||||
.action-add-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
background: #514943;
|
||||
color: #FFF;
|
||||
border-color: #514943;
|
||||
font-weight: normal;
|
||||
|
||||
&:hover {
|
||||
background-color: #35302c;
|
||||
border-color: #35302c;
|
||||
box-shadow: 0 0 0 1px #007bdb;
|
||||
}
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
display: none;
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.minicolors {
|
||||
width: 100% !important;
|
||||
|
||||
input {
|
||||
padding-left: 32px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.minicolors-theme-default {
|
||||
.minicolors-swatch {
|
||||
height: 26px !important;
|
||||
width: 26px !important;
|
||||
top: 3px !important;
|
||||
left: 3px !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.admin__menu .item-extensions .submenu .column:only-of-type .submenu-group-title,
|
||||
.admin__menu .item-extensions.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mgz-status {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
line-height: 17px;
|
||||
padding: 0 3px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid transparent;
|
||||
max-width: 90px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.mgz-status_1 {
|
||||
background: #d0e5a9 none repeat scroll 0 0;
|
||||
border-color: #5b8116;
|
||||
color: #185b00;
|
||||
}
|
||||
|
||||
.mgz-status_0 {
|
||||
background: #f9d4d4 none repeat scroll 0 0;
|
||||
border-color: #e22626;
|
||||
color: #e22626;
|
||||
}
|
||||
|
||||
.data-grid td._date {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.data-grid td._center {
|
||||
text-align: center;
|
||||
}
|
||||
.data-grid td._select {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
|
||||
.mgz-menu.admin__action-dropdown-wrap {
|
||||
z-index: 499;
|
||||
|
||||
a.admin__action-dropdown h1 {
|
||||
background: url('../Magezon_Core/images/logo.png') no-repeat left center;
|
||||
padding-left: 35px;
|
||||
background-size: 25px;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-menu {
|
||||
left: 0;
|
||||
right: auto;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-text:after {
|
||||
left: 0;
|
||||
right: -6px;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-menu > li {
|
||||
width: 50%;
|
||||
float: left;
|
||||
|
||||
> a {
|
||||
padding: 1.1rem 0.5rem;
|
||||
|
||||
&:hover {
|
||||
background-color: #e0f6fe;
|
||||
color: #41362f;
|
||||
}
|
||||
}
|
||||
|
||||
&.separator {
|
||||
border-top: 1px solid #d1d1d1;
|
||||
margin: 1.8rem 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.wide {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin__data-grid-action-columns-menu .col_store_id {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mgz-filemanager._disabled button {
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
.mgz-ui {
|
||||
.admin__action-multiselect-wrap li {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-crumb .action-close {
|
||||
padding: 0;
|
||||
|
||||
&:before {
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mgz-heading {
|
||||
margin: 30px 0;
|
||||
padding: 15px 0;
|
||||
text-align: center;
|
||||
background: #373330;
|
||||
color: #FFF;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
.mgz-system-heading {
|
||||
font-size: 15px;
|
||||
border-left: #eb5202 solid 5px;
|
||||
padding: 8px 12px;
|
||||
text-align: left !important;
|
||||
margin-left: 10%;
|
||||
margin-top: 20px;
|
||||
background: #373330;
|
||||
color: #FFF;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.mgz-action-menu {
|
||||
list-style: none;
|
||||
margin-bottom: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hide-control-value .admin__grid-control-value {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__grid-control .mgz-position {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.mgz-extention .page-actions._fixed {
|
||||
background: url('../Magezon_Core/images/logo.png') no-repeat 10px center #f8f8f8;
|
||||
padding-left: 45px;
|
||||
background-size: 25px;
|
||||
}
|
||||
|
||||
.magezon-extensions {
|
||||
.admin__page-nav-title {
|
||||
background-image: url('../Magezon_Core/images/logo.png') !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: 1.8rem center !important;
|
||||
padding-left: 42px;
|
||||
background-size: 20px !important;
|
||||
|
||||
&:hover {
|
||||
background-color: #f1f1f1 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mgz-text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.mgz-text-right {
|
||||
text-align: right;
|
||||
}
|
||||
.mgz-text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.mgz-text-justify {
|
||||
text-align: justify;
|
||||
}
|
||||
.mgz-hidden {
|
||||
display: none;
|
||||
}
|
||||
.mgz-hide {
|
||||
display: none;
|
||||
}
|
||||
.mgz-visible {
|
||||
display: block;
|
||||
}
|
||||
.mgz_fit {
|
||||
width: 1% !important;
|
||||
}
|
||||
.mgz_center {
|
||||
text-align: center;
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Yes/no switcher
|
||||
// _____________________________________________
|
||||
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
@mgz-toggle-color-gray89: #e3e3e3;
|
||||
@mgz-toggle-color-white: #fff;
|
||||
@mgz-toggle-color-green-apple: #79a22e;
|
||||
@mgz-toggle-disabled__opacity: .5;
|
||||
@mgz-toggle-color-gray65-lighten: #aaa6a0;
|
||||
@mgz-toggle-action__height: 3.2rem;
|
||||
@mgz-toggle-field-size__m: 34rem;
|
||||
@mgz-toggle-actions-switcher-speed: .2s;
|
||||
@mgz-toggle-color-blue-pure: #007bdb;
|
||||
@mgz-toggle-field-control__focus__border-color: @mgz-toggle-color-blue-pure;
|
||||
@mgz-toggle-color-tomato-brick: #e22626;
|
||||
@mgz-toggle-field-error-control__border-color: @mgz-toggle-color-tomato-brick;
|
||||
|
||||
@mgz-toggle-actions-switcher__background-color: @mgz-toggle-color-gray89;
|
||||
@mgz-toggle-actions-switcher__border-radius: 12px;
|
||||
@mgz-toggle-actions-switcher__border: 1px solid @mgz-toggle-color-gray65-lighten;
|
||||
@mgz-toggle-actions-switcher__height: 22px;
|
||||
@mgz-toggle-actions-switcher__width: 37px;
|
||||
|
||||
@mgz-toggle-actions-switcher-control__background-color: @mgz-toggle-color-white;
|
||||
|
||||
@mgz-toggle-actions-switcher-handler__background-color: @mgz-toggle-color-white;
|
||||
@mgz-toggle-actions-switcher-handler__height: @mgz-toggle-actions-switcher__height;
|
||||
@mgz-toggle-actions-switcher-handler__width: @mgz-toggle-actions-switcher__height;
|
||||
|
||||
//
|
||||
|
||||
.mgz__actions-switch {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
|
||||
.admin__field-control & {
|
||||
line-height: @mgz-toggle-action__height;
|
||||
}
|
||||
|
||||
+ .admin__field-service {
|
||||
min-width: @mgz-toggle-field-size__m;
|
||||
}
|
||||
}
|
||||
|
||||
.mgz__actions-switch-checkbox {
|
||||
&:extend(.abs-visually-hidden all);
|
||||
position: absolute !important;
|
||||
|
||||
._disabled &,
|
||||
&.disabled {
|
||||
+ .mgz__actions-switch-label {
|
||||
cursor: not-allowed;
|
||||
opacity: @mgz-toggle-disabled__opacity;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:checked {
|
||||
+ .mgz__actions-switch-label {
|
||||
&:before {
|
||||
left: (@mgz-toggle-actions-switcher__width - @mgz-toggle-actions-switcher-handler__width);
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: @mgz-toggle-color-green-apple;
|
||||
}
|
||||
|
||||
.mgz__actions-switch-text {
|
||||
&:before {
|
||||
content: attr(data-text-on);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
._error & {
|
||||
+ .mgz__actions-switch-label {
|
||||
&:before,
|
||||
&:after {
|
||||
border-color: @mgz-toggle-field-error-control__border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mgz__actions-switch-label {
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: @mgz-toggle-actions-switcher__height;
|
||||
line-height: @mgz-toggle-actions-switcher__height;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
vertical-align: middle;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
background: @mgz-toggle-actions-switcher-handler__background-color;
|
||||
border: @mgz-toggle-actions-switcher__border;
|
||||
border-radius: 100%;
|
||||
content: '';
|
||||
display: block;
|
||||
height: @mgz-toggle-actions-switcher-handler__height;
|
||||
transition: left @mgz-toggle-actions-switcher-speed ease-in 0s;
|
||||
width: @mgz-toggle-actions-switcher-handler__width;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: @mgz-toggle-actions-switcher__background-color;
|
||||
border: @mgz-toggle-actions-switcher__border;
|
||||
border-radius: @mgz-toggle-actions-switcher__border-radius;
|
||||
content: '';
|
||||
display: block;
|
||||
height: @mgz-toggle-actions-switcher__height;
|
||||
transition: background @mgz-toggle-actions-switcher-speed ease-in 0s;
|
||||
width: @mgz-toggle-actions-switcher__width;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mgz__actions-switch-text {
|
||||
&:before {
|
||||
content: attr(data-text-off);
|
||||
padding-left: (@mgz-toggle-actions-switcher__width + 10);
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
@mgz-control-checkbox-radio__background-color: #FFF;
|
||||
@mgz-field-control__border-color: #adadad;
|
||||
@mgz-control-checkbox-radio__size: 1.6rem;
|
||||
@mgz-field-label__indent: 1rem;
|
||||
@mgz-control-checkbox-radio-mark__color: #514943;
|
||||
@mgz-field-control__color: #303030;
|
||||
@mgz-field-control__disabled__background-color: #e9e9e9;
|
||||
@mgz-field-control__focus__border-color: #007bdb;
|
||||
@mgz-field-control__hover__border-color: darken(#adadad, 15%);
|
||||
@mgz-smooth__border-color: border-color .1s linear;
|
||||
@mgz-icon-check-mage__content: '\e62d';
|
||||
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
|
||||
|
||||
.bfb-checkbox-item,
|
||||
.bfb-radio-item {
|
||||
margin-top: 0.7rem;
|
||||
}
|
||||
|
||||
// Checkbox & radio
|
||||
.mgz-control-radio,
|
||||
.mgz-control-checkbox {
|
||||
cursor: pointer;
|
||||
opacity: .01; // hack for successful selenium tests
|
||||
overflow: hidden;
|
||||
position: absolute !important;
|
||||
vertical-align: top;
|
||||
|
||||
&:after { // ToDo UI: Should be deleted with old styles that generate styles for this element
|
||||
display: none;
|
||||
}
|
||||
|
||||
+ label {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
vertical-align: sub;
|
||||
|
||||
&:before {
|
||||
.magezon-icon();
|
||||
.mgz-box-sizing(border-box);
|
||||
background-color: @mgz-control-checkbox-radio__background-color;
|
||||
border: 1px solid @mgz-field-control__border-color;
|
||||
color: transparent;
|
||||
float: left;
|
||||
height: @mgz-control-checkbox-radio__size;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: @mgz-control-checkbox-radio__size;
|
||||
}
|
||||
}
|
||||
|
||||
// Label with text content
|
||||
+ label {
|
||||
padding-left: @mgz-control-checkbox-radio__size + @mgz-field-label__indent - .4;
|
||||
|
||||
&:before {
|
||||
margin: 1px 0 0 -(@mgz-control-checkbox-radio__size + @mgz-field-label__indent - .4);
|
||||
}
|
||||
}
|
||||
|
||||
// Checked state
|
||||
&:checked {
|
||||
+ label {
|
||||
&:before {
|
||||
color: @mgz-control-checkbox-radio-mark__color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Disabled state
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
+ label {
|
||||
color: @mgz-field-control__color;
|
||||
cursor: default;
|
||||
opacity: .5;
|
||||
|
||||
&:before {
|
||||
background-color: @mgz-field-control__disabled__background-color;
|
||||
border-color: @mgz-field-control__border-color;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not([disabled]),
|
||||
&:not(.disabled) {
|
||||
// Focus state
|
||||
&:focus {
|
||||
+ label {
|
||||
&:before {
|
||||
._keyfocus & {
|
||||
border-color: @mgz-field-control__focus__border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hover state
|
||||
&:hover {
|
||||
+ label {
|
||||
&:before {
|
||||
border-color: @mgz-field-control__hover__border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Radio
|
||||
.mgz-control-radio {
|
||||
+ label {
|
||||
&:before {
|
||||
border-radius: @mgz-control-checkbox-radio__size;
|
||||
content: '';
|
||||
transition: @mgz-smooth__border-color, color .1s ease-in;
|
||||
}
|
||||
}
|
||||
|
||||
// Discard extend line-height 1, to fix animation
|
||||
&.mgz-control-radio {
|
||||
+ label {
|
||||
&:before {
|
||||
line-height: 140%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Radio checked state
|
||||
&:checked {
|
||||
+ label {
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
background-color: @mgz-control-checkbox-radio-mark__color;
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
height: 10px;
|
||||
left: 3px;
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
width: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&:not([disabled]),
|
||||
&:not(.disabled) {
|
||||
// Prevent hover effects for checked radio
|
||||
&:hover {
|
||||
cursor: default;
|
||||
|
||||
+ label {
|
||||
cursor: default;
|
||||
|
||||
&:before {
|
||||
border-color: @mgz-field-control__border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Checkbox
|
||||
.mgz-control-checkbox {
|
||||
+ label {
|
||||
&:before {
|
||||
&:extend(.abs-icon all);
|
||||
border-radius: 1px;
|
||||
content: '';
|
||||
font-size: 0;
|
||||
transition: font-size .1s ease-out, color .1s ease-out, @mgz-smooth__border-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:checked {
|
||||
+ label {
|
||||
&:before {
|
||||
content: @mgz-icon-check-mage__content;
|
||||
font-size: 1.1rem;
|
||||
line-height: 125%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
.mgz-text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
|
||||
text-shadow: @string;
|
||||
}
|
||||
|
||||
.mgz-box-shadow (@string) {
|
||||
-webkit-box-shadow: @string;
|
||||
-moz-box-shadow: @string;
|
||||
box-shadow: @string;
|
||||
}
|
||||
|
||||
.mgz-drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
|
||||
-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
-moz-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
}
|
||||
|
||||
.mgz-inner-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
|
||||
-webkit-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
-moz-box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);
|
||||
}
|
||||
|
||||
.mgz-box-sizing (@type: border-box) {
|
||||
-webkit-box-sizing: @type;
|
||||
-moz-box-sizing: @type;
|
||||
box-sizing: @type;
|
||||
}
|
||||
|
||||
.mgz-border-radius (@radius: 5px) {
|
||||
-webkit-border-radius: @radius;
|
||||
-moz-border-radius: @radius;
|
||||
border-radius: @radius;
|
||||
|
||||
-moz-background-clip: padding;
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.mgz-border-radiuses (@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
|
||||
-webkit-border-top-right-radius: @topright;
|
||||
-webkit-border-bottom-right-radius: @bottomright;
|
||||
-webkit-border-bottom-left-radius: @bottomleft;
|
||||
-webkit-border-top-left-radius: @topleft;
|
||||
|
||||
-moz-border-radius-topright: @topright;
|
||||
-moz-border-radius-bottomright: @bottomright;
|
||||
-moz-border-radius-bottomleft: @bottomleft;
|
||||
-moz-border-radius-topleft: @topleft;
|
||||
|
||||
border-top-right-radius: @topright;
|
||||
border-bottom-right-radius: @bottomright;
|
||||
border-bottom-left-radius: @bottomleft;
|
||||
border-top-left-radius: @topleft;
|
||||
|
||||
-moz-background-clip: padding;
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.mgz-opacity (@opacity: 0.5) {
|
||||
-webkit-opacity: @opacity;
|
||||
-moz-opacity: @opacity;
|
||||
opacity: @opacity;
|
||||
}
|
||||
|
||||
.mgz-gradient (@startColor: #eee, @endColor: white) {
|
||||
background-color: @startColor;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor));
|
||||
background: -webkit-linear-gradient(top, @startColor, @endColor);
|
||||
background: -moz-linear-gradient(top, @startColor, @endColor);
|
||||
background: -ms-linear-gradient(top, @startColor, @endColor);
|
||||
background: -o-linear-gradient(top, @startColor, @endColor);
|
||||
}
|
||||
|
||||
.mgz-horizontal-gradient (@startColor: #eee, @endColor: white) {
|
||||
background-color: @startColor;
|
||||
background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor));
|
||||
background-image: -webkit-linear-gradient(left, @startColor, @endColor);
|
||||
background-image: -moz-linear-gradient(left, @startColor, @endColor);
|
||||
background-image: -ms-linear-gradient(left, @startColor, @endColor);
|
||||
background-image: -o-linear-gradient(left, @startColor, @endColor);
|
||||
}
|
||||
|
||||
.mgz-animation (@name, @duration: 300ms, @delay: 0, @ease: ease) {
|
||||
-webkit-animation: @name @duration @delay @ease;
|
||||
-moz-animation: @name @duration @delay @ease;
|
||||
-ms-animation: @name @duration @delay @ease;
|
||||
}
|
||||
|
||||
.mgz-transition (@transition) {
|
||||
-webkit-transition: @transition;
|
||||
-moz-transition: @transition;
|
||||
-ms-transition: @transition;
|
||||
-o-transition: @transition;
|
||||
}
|
||||
|
||||
.mgz-transform(@string) {
|
||||
-webkit-transform: @string;
|
||||
-moz-transform: @string;
|
||||
-ms-transform: @string;
|
||||
-o-transform: @string;
|
||||
}
|
||||
|
||||
.mgz-scale (@factor) {
|
||||
-webkit-transform: scale(@factor);
|
||||
-moz-transform: scale(@factor);
|
||||
-ms-transform: scale(@factor);
|
||||
-o-transform: scale(@factor);
|
||||
}
|
||||
|
||||
.mgz-rotate (@deg) {
|
||||
-webkit-transform: rotate(@deg);
|
||||
-moz-transform: rotate(@deg);
|
||||
-ms-transform: rotate(@deg);
|
||||
-o-transform: rotate(@deg);
|
||||
}
|
||||
|
||||
.mgz-skew (@deg, @deg2) {
|
||||
-webkit-transform: skew(@deg, @deg2);
|
||||
-moz-transform: skew(@deg, @deg2);
|
||||
-ms-transform: skew(@deg, @deg2);
|
||||
-o-transform: skew(@deg, @deg2);
|
||||
}
|
||||
|
||||
.mgz-translate (@x, @y:0) {
|
||||
-webkit-transform: translate(@x, @y);
|
||||
-moz-transform: translate(@x, @y);
|
||||
-ms-transform: translate(@x, @y);
|
||||
-o-transform: translate(@x, @y);
|
||||
}
|
||||
|
||||
.mgz-translate3d (@x, @y: 0, @z: 0) {
|
||||
-webkit-transform: translate3d(@x, @y, @z);
|
||||
-moz-transform: translate3d(@x, @y, @z);
|
||||
-ms-transform: translate3d(@x, @y, @z);
|
||||
-o-transform: translate3d(@x, @y, @z);
|
||||
}
|
||||
|
||||
.mgz-perspective (@value: 1000) {
|
||||
-webkit-perspective: @value;
|
||||
-moz-perspective: @value;
|
||||
-ms-perspective: @value;
|
||||
perspective: @value;
|
||||
}
|
||||
|
||||
.mgz-transform-origin (@x:center, @y:center) {
|
||||
-webkit-transform-origin: @x @y;
|
||||
-moz-transform-origin: @x @y;
|
||||
-ms-transform-origin: @x @y;
|
||||
-o-transform-origin: @x @y;
|
||||
}
|
||||
|
||||
.mgzFlex {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.mgz-center (@percent: 50%) {
|
||||
.mgz-transform(translate(-@percent,-@percent));
|
||||
position: absolute;
|
||||
top: @percent;
|
||||
left: @percent;
|
||||
}
|
||||
|
||||
//
|
||||
// Clearfix
|
||||
// ---------------------------------------------
|
||||
|
||||
.mgz-clearfix() {
|
||||
&:before,
|
||||
&:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
.mgz-invisible {
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
#mgzreport {
|
||||
|
||||
.mgzreport-header {
|
||||
.mgz-clearfix();
|
||||
background: #f8f8f8;
|
||||
border-bottom: 1px solid #e3e3e3;
|
||||
border-top: 1px solid #e3e3e3;
|
||||
padding: 1.5rem;
|
||||
margin: 0 0 3rem;
|
||||
|
||||
> div {
|
||||
margin-right: 10px;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin__action-multiselect-wrap {
|
||||
display: inline-block;
|
||||
min-width: 200px;
|
||||
|
||||
.action-menu {
|
||||
min-width: 400px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Stores
|
||||
#mgzreport-store {
|
||||
display: inline-block;
|
||||
|
||||
.admin__action-multiselect-dropdown:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-wrap {
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-menu {
|
||||
min-width: 220px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li > ul {
|
||||
padding-left: 2.2rem;
|
||||
}
|
||||
|
||||
.admin__action-dropdown-menu {
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
margin-bottom: 0;
|
||||
|
||||
li {
|
||||
> .action-menu-item {
|
||||
.action-dropdown-menu-link-pattern();
|
||||
padding-left: .5em;
|
||||
padding-right: 1.8rem;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: @smooth__background-color;
|
||||
padding: @action-dropdown-menu-link__padding-vertical @action-dropdown-menu-link__padding-horizontal;
|
||||
|
||||
&:hover {
|
||||
background-color: @user-account-menu__hover__background-color;
|
||||
color: @action-dropdown__color;
|
||||
}
|
||||
}
|
||||
|
||||
&._parent > .action-menu-item {
|
||||
color: #adadad;
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.admin__action-dropdown-wrap {
|
||||
.admin__action-dropdown {
|
||||
background: #fff;
|
||||
border: 1px solid #adadad;
|
||||
border-radius: 2px;
|
||||
padding: .6rem 2.5em .6rem 1rem;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 400;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
.admin__action-dropdown {
|
||||
border: 1px solid #007bdb;
|
||||
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.admin__action-dropdown-text:after {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#mgzreports-datepicker {
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
opacity: @component-modal__opacity;
|
||||
padding: @ui-datepicker__padding + @ui-datepicker__indent @ui-datepicker__padding;
|
||||
width: auto;
|
||||
z-index: 999999 !important;
|
||||
margin: 0;
|
||||
|
||||
&:before {
|
||||
background: @ui-datepicker__background;
|
||||
border: @ui-datepicker__border;
|
||||
bottom: @ui-datepicker__indent;
|
||||
box-shadow: @ui-datepicker__shadow;
|
||||
content: '';
|
||||
display: block;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: @ui-datepicker__indent;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-time {
|
||||
.hourselect,
|
||||
.minuteselect,
|
||||
.ampmselect {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
select.monthselect,
|
||||
select.yearselect {
|
||||
&:extend(.admin__control-select all);
|
||||
}
|
||||
|
||||
select.monthselect {
|
||||
margin-right: 6%;
|
||||
}
|
||||
|
||||
&.daterangepicker {
|
||||
.calendar-table {
|
||||
th, td {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
thead {
|
||||
tr th {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
td {
|
||||
border: 1px solid #adadad;
|
||||
}
|
||||
}
|
||||
|
||||
.next span,
|
||||
.prev span {
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
td.available:hover,
|
||||
th.available:hover {
|
||||
//background-color: transparent;
|
||||
}
|
||||
|
||||
td.off,
|
||||
td.disabled,
|
||||
option.disabled {
|
||||
background: #f5f5f5;
|
||||
color: #999999;
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.drp-calendar {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
td {
|
||||
&.in-range,
|
||||
&.active,
|
||||
&.active:hover {
|
||||
background: #007dbd;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
&.active,
|
||||
&.start-date,
|
||||
&.end-date {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.drp-selected {
|
||||
font-size: @font-size__base;
|
||||
}
|
||||
|
||||
.drp-buttons {
|
||||
padding-top: 20px;
|
||||
|
||||
.btn {
|
||||
font-size: @font-size__base;
|
||||
padding: 0.6rem 1em 0.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.ranges {
|
||||
li {
|
||||
&.active {
|
||||
background: #007dbd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Date Range Picker
|
||||
.mgzreport-daterangepicker {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
position: relative;
|
||||
|
||||
.admin__control-text {
|
||||
border-radius: 2px;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.datepicker-active {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
display: block;
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
margin-top: 2px;
|
||||
|
||||
&:after {
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjMDEwMjAyIiBkPSJNMCA2aDN2M0gwVjZ6bTQgM2gzVjZINHYzem00IDBoM1Y2SDh2M3ptNCAwaDNWNmgtM3Yzem0wLTd2M2gzVjJoLTN6TTggNWgzVjJIOHYzek00IDVoM1YySDR2M3ptLTQgOGgzdi0zSDB2M3ptNCAwaDN2LTNINHYzem00IDBoM3YtM0g4djN6Ii8+PC9zdmc+");
|
||||
content: ' ';
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mgzreport-chart-wrapper {
|
||||
width: 800px;
|
||||
margin: 0 auto 5rem auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mgzreport-chart-header {
|
||||
text-align: center;
|
||||
|
||||
> div {
|
||||
padding: 2.75em 0;
|
||||
height: 26%;
|
||||
text-align: center;
|
||||
width: 22%;
|
||||
display: inline-block;
|
||||
|
||||
.one {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
display: block;
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.mgzreport-views {
|
||||
.two {
|
||||
color: #ed8542;
|
||||
}
|
||||
}
|
||||
|
||||
.mgzreport-clicks {
|
||||
.two {
|
||||
color: #6497f3;
|
||||
}
|
||||
}
|
||||
|
||||
.mgzreport-closes {
|
||||
.two {
|
||||
color: #34D7A1;
|
||||
}
|
||||
}
|
||||
|
||||
.mgzreport-conversion {
|
||||
.two {
|
||||
color: #5da85d;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="D" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 23 20.4" style="enable-background:new 0 0 23 20.4;" xml:space="preserve" width="23" height="20">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FF5701;}
|
||||
.st1{fill:#0B61A4;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M22.7,11.3l-4.6,8c-0.4,0.7-1.1,1.1-1.9,1.1l0,0c-1.7,0-2.8-1.8-1.9-3.3l3.3-5.8c0.4-0.7,0.4-1.5,0-2.2
|
||||
l-3.3-5.8C13.4,1.8,14.5,0,16.2,0l0,0c0.8,0,1.5,0.4,1.9,1.1l4.6,8C23.1,9.8,23.1,10.6,22.7,11.3z"/>
|
||||
<path class="st0" d="M8.1,0L8.1,0C6.4,0,5.3,1.8,6.2,3.3l3.3,5.8c0.4,0.7,0.4,1.5,0,2.2l-3.3,5.8c-0.9,1.5,0.2,3.3,1.9,3.3h0
|
||||
c0.8,0,1.5-0.4,1.9-1.1l4.6-8c0.4-0.7,0.4-1.5,0-2.2l-4.6-8C9.6,0.4,8.9,0,8.1,0z"/>
|
||||
<g>
|
||||
<path class="st1" d="M6.8,11c0.3-0.5,0.3-1.1,0-1.6L6,8.2L4.8,6.1c-0.6-1-2.1-1-2.7,0L0.9,8.2L0.2,9.4c-0.3,0.5-0.3,1.1,0,1.6
|
||||
l0.7,1.3l1.2,2.1c0.6,1,2.1,1,2.7,0L6,12.3L6.8,11z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="D" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 23 20.4" style="enable-background:new 0 0 23 20.4;" xml:space="preserve" width="23" height="20">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FF5701;}
|
||||
.st1{fill:#0B61A4;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M22.7,11.3l-4.6,8c-0.4,0.7-1.1,1.1-1.9,1.1l0,0c-1.7,0-2.8-1.8-1.9-3.3l3.3-5.8c0.4-0.7,0.4-1.5,0-2.2
|
||||
l-3.3-5.8C13.4,1.8,14.5,0,16.2,0l0,0c0.8,0,1.5,0.4,1.9,1.1l4.6,8C23.1,9.8,23.1,10.6,22.7,11.3z"/>
|
||||
<path class="st0" d="M8.1,0L8.1,0C6.4,0,5.3,1.8,6.2,3.3l3.3,5.8c0.4,0.7,0.4,1.5,0,2.2l-3.3,5.8c-0.9,1.5,0.2,3.3,1.9,3.3h0
|
||||
c0.8,0,1.5-0.4,1.9-1.1l4.6-8c0.4-0.7,0.4-1.5,0-2.2l-4.6-8C9.6,0.4,8.9,0,8.1,0z"/>
|
||||
<g>
|
||||
<path class="st1" d="M6.8,11c0.3-0.5,0.3-1.1,0-1.6L6,8.2L4.8,6.1c-0.6-1-2.1-1-2.7,0L0.9,8.2L0.2,9.4c-0.3,0.5-0.3,1.1,0,1.6
|
||||
l0.7,1.3l1.2,2.1c0.6,1,2.1,1,2.7,0L6,12.3L6.8,11z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because one or more lines are too long
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'Magento_Catalog/js/components/import-handler',
|
||||
'underscore',
|
||||
'uiRegistry'
|
||||
], function (Element, _, registry) {
|
||||
'use strict';
|
||||
|
||||
return Element.extend({
|
||||
|
||||
/**
|
||||
* Update field with mask value, if it's allowed.
|
||||
*
|
||||
* @param {Object} placeholder
|
||||
* @param {Object} component
|
||||
*/
|
||||
updateValue: function (placeholder, component) {
|
||||
var string = this.mask || '',
|
||||
nonEmptyValueFlag = false;
|
||||
|
||||
if (placeholder) {
|
||||
this.values[placeholder] = component.getPreview() || '';
|
||||
}
|
||||
|
||||
if (!this.allowImport) {
|
||||
return;
|
||||
}
|
||||
|
||||
_.each(this.values, function (propertyValue, propertyName) {
|
||||
string = string.replace('{{' + propertyName + '}}', propertyValue);
|
||||
nonEmptyValueFlag = nonEmptyValueFlag || !!propertyValue;
|
||||
});
|
||||
|
||||
if (nonEmptyValueFlag) {
|
||||
string = string.replace(/(<([^>]+)>)/ig, ''); // Remove html tags
|
||||
string = string.replace(/ /g, '-');
|
||||
string = string.toLowerCase();
|
||||
this.value(string);
|
||||
} else {
|
||||
this.value('');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'Magento_Ui/js/form/element/ui-select'
|
||||
], function (Select) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Processing options list
|
||||
*
|
||||
* @param {Array} array - Property array
|
||||
* @param {String} separator - Level separator
|
||||
* @param {Array} created - list to add new options
|
||||
*
|
||||
* @return {Array} Plain options list
|
||||
*/
|
||||
function flattenCollection(array, separator, created) {
|
||||
var i = 0,
|
||||
length,
|
||||
childCollection;
|
||||
|
||||
array = _.compact(array);
|
||||
length = array.length;
|
||||
created = created || [];
|
||||
|
||||
for (i; i < length; i++) {
|
||||
created.push(array[i]);
|
||||
|
||||
if (array[i].hasOwnProperty(separator)) {
|
||||
childCollection = array[i][separator];
|
||||
delete array[i][separator];
|
||||
flattenCollection.call(this, childCollection, separator, created);
|
||||
}
|
||||
}
|
||||
|
||||
return created;
|
||||
}
|
||||
|
||||
return Select.extend({
|
||||
defaults: {
|
||||
listens: {
|
||||
'${ $.namespace }.${ $.namespace }:responseData': 'setParsed',
|
||||
'newOption': 'toggleOptionSelected'
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* Parse data and set it to options.
|
||||
*
|
||||
* @param {Object} data - Response data object.
|
||||
* @returns {Object}
|
||||
*/
|
||||
setParsed: function (data) {
|
||||
var option = this.parseData(data);
|
||||
|
||||
if (data.error) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.options.push(option);
|
||||
this.value.push(option.value);
|
||||
},
|
||||
|
||||
/**
|
||||
* Normalize option object.
|
||||
*
|
||||
* @param {Object} data - Option object.
|
||||
* @returns {Object}
|
||||
*/
|
||||
parseData: function (data) {
|
||||
return {
|
||||
'is_active': data.brand['is_active'],
|
||||
value: data.brand['entity_id'],
|
||||
label: data.brand.name,
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,120 @@
|
||||
define([
|
||||
'jquery',
|
||||
'Magezon_Core/js/moment',
|
||||
'uiComponent',
|
||||
'Magezon_Core/js/daterangepicker/daterangepicker.min'
|
||||
], function ($, moment, Component) {
|
||||
'use strict';
|
||||
|
||||
var startDate, endDate;
|
||||
if (window.mgzReportsConfig.from) {
|
||||
startDate = moment(window.mgzReportsConfig.from, 'YYYY-MM-DD');
|
||||
} else {
|
||||
startDate = moment().startOf('month').hours(0).minutes(0);
|
||||
}
|
||||
|
||||
if (window.mgzReportsConfig.to) {
|
||||
endDate = moment(window.mgzReportsConfig.to, 'YYYY-MM-DD');
|
||||
} else {
|
||||
endDate = moment().endOf('month').hours(23).minutes(59);
|
||||
}
|
||||
|
||||
return Component.extend({
|
||||
defaults: {
|
||||
template: 'Magezon_Core/daterangepicker',
|
||||
from: startDate.format('YYYY-MM-DD'),
|
||||
to: endDate.format('YYYY-MM-DD'),
|
||||
startDate: startDate,
|
||||
endDate: endDate,
|
||||
minDate: '',
|
||||
maxDate: '',
|
||||
exports: {
|
||||
from: '${ $.provider }:params.from',
|
||||
to: '${ $.provider }:params.to',
|
||||
startDate: '${ $.provider }:data.startDate',
|
||||
endDate: '${ $.provider }:data.endDate'
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
initObservable: function () {
|
||||
this._super()
|
||||
.observe([
|
||||
'from',
|
||||
'to',
|
||||
'startDate',
|
||||
'endDate',
|
||||
'isSameYear',
|
||||
'isSameMonth',
|
||||
'isSameDay'
|
||||
]);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
onElementRender: function (element) {
|
||||
this.initDateRangePicker(element);
|
||||
},
|
||||
|
||||
initDateRangePicker: function (element) {
|
||||
var self = this;
|
||||
|
||||
var start = this.startDate();
|
||||
var end = this.endDate();
|
||||
|
||||
function cb(start, end) {
|
||||
$(element).find('.date-range-field').html(start.format('MMM D, YYYY') + ' - ' + end.format('MMM D, YYYY'));
|
||||
}
|
||||
|
||||
$(element).daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
ranges: {
|
||||
'Today': [moment().hours(0).minutes(0), moment().hours(23).minutes(59)],
|
||||
'Yesterday': [moment().add(-1, 'days').hours(0).minutes(0), moment().add(-1, 'days').hours(23).minutes(59)],
|
||||
'This Week': [moment().startOf('week').hours(0).minutes(0), moment().endOf('week').hours(23).minutes(59)],
|
||||
'This Month': [moment().startOf('month').hours(0).minutes(0), moment().endOf('month').hours(23).minutes(59)],
|
||||
'Last Week': [moment().subtract(1, 'weeks').startOf('week').hours(0).minutes(0), moment().subtract(1, 'weeks').endOf('week').hours(23).minutes(59)],
|
||||
'Last Month': [moment().add(-1, 'month').startOf('month').hours(0).minutes(0), moment().add(-1, 'month').endOf('month').hours(23).minutes(59)]
|
||||
},
|
||||
showDropdowns: true,
|
||||
alwaysShowCalendars: true,
|
||||
minDate: self.minDate,
|
||||
maxDate: self.maxDate,
|
||||
template: '<div id="mgzreports-datepicker" class="daterangepicker ' + self.reportType + '">' +
|
||||
'<div class="ranges"></div>' +
|
||||
'<div class="drp-calendar left">' +
|
||||
'<div class="calendar-table"></div>' +
|
||||
'<div class="calendar-time"></div>' +
|
||||
'</div>' +
|
||||
'<div class="drp-calendar right">' +
|
||||
'<div class="calendar-table"></div>' +
|
||||
'<div class="calendar-time"></div>' +
|
||||
'</div>' +
|
||||
'<div class="drp-buttons">' +
|
||||
'<span class="drp-selected"></span>' +
|
||||
'<button class="cancelBtn" type="button"></button>' +
|
||||
'<button class="applyBtn" disabled="disabled" type="button"></button> ' +
|
||||
'</div>' +
|
||||
'</div>',
|
||||
applyButtonClasses: 'primary',
|
||||
cancelClass: 'action-secondary'
|
||||
}).on('apply.daterangepicker', function(ev, picker) {
|
||||
cb(picker.startDate, picker.endDate);
|
||||
var from = picker.startDate.second(0).format('YYYY-MM-DD');
|
||||
var to = picker.endDate.second(0).format('YYYY-MM-DD');
|
||||
self.from(from);
|
||||
self.to(to);
|
||||
self.startDate(picker.startDate);
|
||||
self.endDate(picker.endDate);
|
||||
}).on('show.daterangepicker', function () {
|
||||
$(element).addClass('datepicker-active');
|
||||
}).on('hide.daterangepicker', function () {
|
||||
$(element).removeClass('datepicker-active');
|
||||
});
|
||||
cb(start, end);
|
||||
}
|
||||
})
|
||||
});
|
||||
Vendored
Executable
+8
File diff suppressed because one or more lines are too long
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
'underscore'
|
||||
], function ($, _) {
|
||||
'use strict';
|
||||
|
||||
var buttons = {
|
||||
'reset': '#reset',
|
||||
'save': '#save_and_close',
|
||||
'saveAndContinue': '#save-button',
|
||||
'saveAndDuplicate': '#save_and_duplicate',
|
||||
'saveAndNew': '#save_and_new',
|
||||
'saveAndSendEmail': '#save_and_send_email'
|
||||
},
|
||||
selectorPrefix = '',
|
||||
eventPrefix;
|
||||
|
||||
/**
|
||||
* Initialize listener.
|
||||
*
|
||||
* @param {Function} callback
|
||||
* @param {String} action
|
||||
*/
|
||||
function initListener(callback, action) {
|
||||
var selector = selectorPrefix ? selectorPrefix + ' ' + buttons[action] : buttons[action],
|
||||
elem = $(selector)[0];
|
||||
|
||||
if (!elem) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (elem.onclick) {
|
||||
elem.onclick = null;
|
||||
}
|
||||
|
||||
$(elem).on('click' + eventPrefix, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy listener.
|
||||
*
|
||||
* @param {String} action
|
||||
*/
|
||||
function destroyListener(action) {
|
||||
var selector = selectorPrefix ? selectorPrefix + ' ' + buttons[action] : buttons[action],
|
||||
elem = $(selector)[0];
|
||||
|
||||
if (!elem) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (elem.onclick) {
|
||||
elem.onclick = null;
|
||||
}
|
||||
|
||||
$(elem).off('click' + eventPrefix);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
/**
|
||||
* Attaches events handlers.
|
||||
*
|
||||
* @param {Object} handlers
|
||||
* @param {String} selectorPref
|
||||
* @param {String} eventPref
|
||||
*/
|
||||
on: function (handlers, selectorPref, eventPref) {
|
||||
selectorPrefix = selectorPrefix || selectorPref;
|
||||
eventPrefix = eventPref;
|
||||
_.each(handlers, initListener);
|
||||
selectorPrefix = '';
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes events handlers.
|
||||
*
|
||||
* @param {Object} handlers
|
||||
* @param {String} eventPref
|
||||
*/
|
||||
off: function (handlers, eventPref) {
|
||||
eventPrefix = eventPref;
|
||||
_.each(handlers, destroyListener);
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/* global $, $H */
|
||||
|
||||
define([
|
||||
'jquery',
|
||||
'mage/adminhtml/grid'
|
||||
], function (jquery) {
|
||||
'use strict';
|
||||
|
||||
return function (config) {
|
||||
var selectedItems = $H(config.selectedItems),
|
||||
gridJsObject = window[config.gridJsObjectName],
|
||||
selector = config.selector,
|
||||
tabIndex = 1000;
|
||||
|
||||
$(selector).value = Object.toJSON(selectedItems);
|
||||
|
||||
/**
|
||||
* @param {Object} grid
|
||||
* @param {Object} element
|
||||
* @param {Boolean} checked
|
||||
*/
|
||||
function registerRow(grid, element, checked) {
|
||||
if (checked) {
|
||||
if (element.positionElement) {
|
||||
element.positionElement.disabled = false;
|
||||
selectedItems.set(element.value, element.positionElement.value);
|
||||
}
|
||||
} else {
|
||||
if (element.positionElement) {
|
||||
element.positionElement.disabled = true;
|
||||
}
|
||||
selectedItems.unset(element.value);
|
||||
}
|
||||
$(selector).value = Object.toJSON(selectedItems);
|
||||
var items = {};
|
||||
items[config.ajaxParam + '[]'] = selectedItems.keys();
|
||||
grid.reloadParams = items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Click on product row
|
||||
*
|
||||
* @param {Object} grid
|
||||
* @param {String} event
|
||||
*/
|
||||
function rowClick(grid, event) {
|
||||
var trElement = Event.findElement(event, 'tr'),
|
||||
isInput = Event.element(event).tagName === 'INPUT',
|
||||
checked = false,
|
||||
checkbox = null,
|
||||
colAction = Event.findElement(event, '.col-action > a');
|
||||
|
||||
|
||||
if (trElement) {
|
||||
if(!colAction){
|
||||
checkbox = Element.getElementsBySelector(trElement, 'input');
|
||||
|
||||
if (checkbox[0]) {
|
||||
checked = isInput ? checkbox[0].checked : !checkbox[0].checked;
|
||||
gridJsObject.setCheckboxChecked(checkbox[0], checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change product position
|
||||
*
|
||||
* @param {String} event
|
||||
*/
|
||||
function positionChange(event) {
|
||||
var element = Event.element(event);
|
||||
|
||||
if (element && element.checkboxElement && element.checkboxElement.checked) {
|
||||
selectedItems.set(element.checkboxElement.value, element.value);
|
||||
$(selector).value = Object.toJSON(selectedItems);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Object} grid
|
||||
* @param {String} row
|
||||
*/
|
||||
function rowInit(grid, row) {
|
||||
var checkbox = $(row).getElementsByClassName('checkbox')[0],
|
||||
position = $(row).getElementsByClassName('input-text')[0];
|
||||
|
||||
var arr = Object.values(selectedItems)[0];
|
||||
for (var k in arr) {
|
||||
if (k == checkbox.value) {
|
||||
$(position).value = arr[k];
|
||||
gridJsObject.setCheckboxChecked(checkbox, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (checkbox && position) {
|
||||
checkbox.positionElement = position;
|
||||
position.checkboxElement = checkbox;
|
||||
position.disabled = !checkbox.checked;
|
||||
position.tabIndex = tabIndex++;
|
||||
Event.observe(position, 'keyup', positionChange);
|
||||
}
|
||||
}
|
||||
|
||||
gridJsObject.rowClickCallback = rowClick;
|
||||
gridJsObject.initRowCallback = rowInit;
|
||||
gridJsObject.checkboxCheckCallback = registerRow;
|
||||
|
||||
if (gridJsObject.rows) {
|
||||
gridJsObject.rows.each(function (row) {
|
||||
rowInit(gridJsObject, row);
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
'ko',
|
||||
'Magento_Ui/js/form/element/abstract',
|
||||
'mage/translate',
|
||||
'Magezon_Core/js/mage/browser'
|
||||
], function ($, ko, Element, $t) {
|
||||
'use strict';
|
||||
|
||||
return Element.extend({
|
||||
defaults: {
|
||||
chooseBtnLabel: $t('Select Image'),
|
||||
tmp: null,
|
||||
showPreview: false,
|
||||
fileUrl: '',
|
||||
fileName: '',
|
||||
fileSize: '',
|
||||
previewHeight: '',
|
||||
previewWidth: '',
|
||||
|
||||
tracks: {
|
||||
showPreview: true,
|
||||
fileUrl: true,
|
||||
fileName: true,
|
||||
fileSize: true,
|
||||
previewHeight: true,
|
||||
previewWidth: true,
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Initializes UISelect component.
|
||||
*
|
||||
* @returns {UISelect} Chainable.
|
||||
*/
|
||||
initialize: function () {
|
||||
this._super();
|
||||
|
||||
if (this.tmp && this.tmp.name) {
|
||||
this.fileSize = this.formatSize(this.tmp.size);
|
||||
this.fileName = this.processFileName(this.tmp.name);
|
||||
this.fileUrl = this.tmp.url;
|
||||
this.showPreview = true;
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes provided file from thes files list.
|
||||
*
|
||||
* @param {Object} file
|
||||
* @returns {FileUploader} Chainable.
|
||||
*/
|
||||
chooseImage: function () {
|
||||
if (!this.disabled()) {
|
||||
window.MgzMediabrowserUtility.openDialog(window.mgzFilesBrowserWindowUrl + 'target_element_id/' + this.uid + '/', false, false, 'Insert Image', {closed: function() { jQuery('#mceModalBlocker').show()}})
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Formats incoming bytes value to a readable format.
|
||||
*
|
||||
* @param {Number} bytes
|
||||
* @returns {String}
|
||||
*/
|
||||
formatSize: function (bytes) {
|
||||
|
||||
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'],
|
||||
i;
|
||||
|
||||
if (bytes === 0) {
|
||||
return '0 Byte';
|
||||
}
|
||||
|
||||
i = window.parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
|
||||
|
||||
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i];
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes provided file from thes files list.
|
||||
*
|
||||
* @param {Object} file
|
||||
* @returns {FileUploader} Chainable.
|
||||
*/
|
||||
removeFile: function (file) {
|
||||
if (!this.disabled()) {
|
||||
this.showPreview = false;
|
||||
this.value('');
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Handler of the preview image load event.
|
||||
*
|
||||
* @param {Object} file - File associated with an image.
|
||||
* @param {Event} e
|
||||
*/
|
||||
onPreviewLoad: function (element, event) {
|
||||
var img = event.currentTarget;
|
||||
this.previewWidth = img.naturalWidth;
|
||||
this.previewHeight = img.naturalHeight;
|
||||
},
|
||||
|
||||
/**
|
||||
* Update the preview, submit ajax get file size
|
||||
*/
|
||||
reloadImage: function(element, event) {
|
||||
var self = this;
|
||||
var input = event.currentTarget;
|
||||
var file = $(input).val();
|
||||
if (file) {
|
||||
this.showPreview = true;
|
||||
this.fileUrl = window.mgzMediaUrl + file;
|
||||
this.fileName = this.processFileName(file);
|
||||
$.ajax({
|
||||
type: 'HEAD',
|
||||
url: this.fileUrl,
|
||||
complete: function(xhr) {
|
||||
var size = self.formatSize(xhr.getResponseHeader('Content-Length'));
|
||||
if (size) {
|
||||
self.fileSize = size;
|
||||
} else {
|
||||
self.fileSize = '';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Convert real image, remove wysiwyg
|
||||
*/
|
||||
processFileName: function(name) {
|
||||
var nameE = name.split("/");
|
||||
return nameE[nameE.length-1];
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/form/form',
|
||||
'Magezon_Core/js/form/adapter'
|
||||
], function ($, Collection, adapter) {
|
||||
return Collection.extend({
|
||||
/** @inheritdoc */
|
||||
initialize: function () {
|
||||
this._super();
|
||||
|
||||
adapter.on({
|
||||
'reset': this.reset.bind(this),
|
||||
'save': this.save.bind(this, true, {}),
|
||||
'saveAndContinue': this.save.bind(this, false, {}),
|
||||
'saveAndDuplicate': this.save.bind(this, true, {'back': 'duplicate'}),
|
||||
'saveAndNew': this.save.bind(this, true, {'back': 'new'}),
|
||||
'saveAndSendEmail': this.save.bind(this, true, {'back': 'save_and_send_email'}),
|
||||
}, this.selectorPrefix, this.eventPrefix);
|
||||
|
||||
return this;
|
||||
},
|
||||
});
|
||||
})
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
define([
|
||||
'Magento_Ui/js/form/element/ui-select'
|
||||
], function (Component) {
|
||||
'use strict';
|
||||
|
||||
var itemId = window.mgzReportsConfig.item_id ? window.mgzReportsConfig.item_id : '';
|
||||
|
||||
return Component.extend({
|
||||
|
||||
defaults: {
|
||||
value: itemId,
|
||||
multiple: false,
|
||||
disableLabel: true,
|
||||
filterOptions: true,
|
||||
template: 'ui/grid/filters/elements/ui-select',
|
||||
|
||||
exports: {
|
||||
value: '${ $.provider }:params.item_id'
|
||||
}
|
||||
},
|
||||
|
||||
initConfig: function (config) {
|
||||
|
||||
config['options'] = window.mgzReportsConfig.items;
|
||||
|
||||
this._super(config);
|
||||
|
||||
return this;
|
||||
}
|
||||
})
|
||||
});
|
||||
File diff suppressed because it is too large
Load Diff
+121
@@ -0,0 +1,121 @@
|
||||
define([
|
||||
"jquery",
|
||||
"Magento_Ui/js/modal/prompt",
|
||||
"Magento_Ui/js/modal/confirm",
|
||||
"Magento_Ui/js/modal/alert",
|
||||
"Magento_Ui/js/modal/modal",
|
||||
"jquery/jstree/jquery.jstree",
|
||||
"mage/mage",
|
||||
"mage/adminhtml/browser"
|
||||
], function($, prompt, confirm, alert){
|
||||
|
||||
window.MgzMediabrowserUtility = {
|
||||
windowId: 'modal_dialog_message',
|
||||
getMaxZIndex: function() {
|
||||
var max = 0, i;
|
||||
var cn = document.body.childNodes;
|
||||
for (i = 0; i < cn.length; i++) {
|
||||
var el = cn[i];
|
||||
var zIndex = el.nodeType == 1 ? parseInt(el.style.zIndex, 10) || 0 : 0;
|
||||
if (zIndex < 10000) {
|
||||
max = Math.max(max, zIndex);
|
||||
}
|
||||
}
|
||||
return max + 10;
|
||||
},
|
||||
openDialog: function(url, width, height, title, options) {
|
||||
var windowId = this.windowId,
|
||||
content = '<div class="popup-window magento-message" "id="' + windowId + '"></div>',
|
||||
self = this;
|
||||
|
||||
if (this.modal) {
|
||||
this.modal.html($(content).html());
|
||||
if (options) {
|
||||
this.modal.modal('option', 'closed', options.closed);
|
||||
}
|
||||
} else {
|
||||
this.modal = $(content).modal($.extend({
|
||||
title: title || 'Insert File...',
|
||||
modalClass: 'magento',
|
||||
type: 'slide',
|
||||
buttons: []
|
||||
}, options));
|
||||
}
|
||||
this.modal.modal('openModal');
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'get',
|
||||
context: $(this),
|
||||
showLoader: true
|
||||
|
||||
}).done(function(data) {
|
||||
self.modal.html(data).trigger('contentUpdated');
|
||||
});
|
||||
},
|
||||
closeDialog: function() {
|
||||
this.modal.modal('closeModal');
|
||||
}
|
||||
};
|
||||
|
||||
$.widget("mage.mgzmediabrowser", $.mage.mediabrowser, {
|
||||
eventPrefix: "mgzmediabrowser",
|
||||
insert: function(event) {
|
||||
var fileRow = $(event.currentTarget);
|
||||
|
||||
if (!fileRow.prop('id')) {
|
||||
return false;
|
||||
}
|
||||
var targetEl = this.getTargetElement();
|
||||
|
||||
if (!targetEl.length) {
|
||||
MgzMediabrowserUtility.closeDialog();
|
||||
throw "Target element not found for content update";
|
||||
}
|
||||
return $.ajax({
|
||||
url: this.options.onInsertUrl,
|
||||
data: {
|
||||
filename: fileRow.attr('id'),
|
||||
node: this.activeNode.id,
|
||||
store: this.options.storeId,
|
||||
as_is: targetEl.is('textarea') ? 1 : 0,
|
||||
form_key: FORM_KEY
|
||||
},
|
||||
context: this,
|
||||
showLoader: true
|
||||
}).done($.proxy(function(data) {
|
||||
|
||||
if (targetEl.is('textarea')) {
|
||||
this.insertAtCursor(targetEl.get(0), data);
|
||||
} else {
|
||||
targetEl.val(data);
|
||||
}
|
||||
MgzMediabrowserUtility.closeDialog();
|
||||
targetEl.focus();
|
||||
jQuery(targetEl).change();
|
||||
}, this));
|
||||
},
|
||||
|
||||
/**
|
||||
* Find document target element in next order:
|
||||
* in acive file browser opener:
|
||||
* - input field with ID: "src" in opener window
|
||||
* - input field with ID: "href" in opener window
|
||||
* in document:
|
||||
* - element with target ID
|
||||
*
|
||||
* return {HTMLElement|null}
|
||||
*/
|
||||
getTargetElement: function () {
|
||||
var opener, targetElementId;
|
||||
if (typeof wysiwyg != 'undefined' && wysiwyg.get(this.options.targetElementId)) {
|
||||
opener = this.getMediaBrowserOpener() || window;
|
||||
targetElementId = tinyMceEditors.get(this.options.targetElementId).getMediaBrowserTargetElementId();
|
||||
return $(opener.document.getElementById(targetElementId));
|
||||
}
|
||||
return $('#' + this.options.targetElementId);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return $.mage.mgzmediabrowser;
|
||||
});
|
||||
+551
@@ -0,0 +1,551 @@
|
||||
//! moment.js
|
||||
//! version : 2.17.1
|
||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
//! license : MIT
|
||||
//! momentjs.com
|
||||
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return od.apply(null,arguments)}
|
||||
// This is done to register the method called with moment()
|
||||
// without creating circular dependencies.
|
||||
function b(a){od=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){
|
||||
// IE8 will treat undefined and null as object if it wasn't for
|
||||
// input != null
|
||||
return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)
|
||||
// even if its not own property I'd still call it non-empty
|
||||
return!1;return!0}function f(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function g(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function h(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function i(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function j(a,b){for(var c in b)i(b,c)&&(a[c]=b[c]);return i(b,"toString")&&(a.toString=b.toString),i(b,"valueOf")&&(a.valueOf=b.valueOf),a}function k(a,b,c,d){return rb(a,b,c,d,!0).utc()}function l(){
|
||||
// We need to deep clone this object.
|
||||
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function m(a){return null==a._pf&&(a._pf=l()),a._pf}function n(a){if(null==a._isValid){var b=m(a),c=qd.call(b.parsedDateParts,function(a){return null!=a}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);if(a._strict&&(d=d&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return d;a._isValid=d}return a._isValid}function o(a){var b=k(NaN);return null!=a?j(m(b),a):m(b).userInvalidated=!0,b}function p(a){return void 0===a}function q(a,b){var c,d,e;if(p(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),p(b._i)||(a._i=b._i),p(b._f)||(a._f=b._f),p(b._l)||(a._l=b._l),p(b._strict)||(a._strict=b._strict),p(b._tzm)||(a._tzm=b._tzm),p(b._isUTC)||(a._isUTC=b._isUTC),p(b._offset)||(a._offset=b._offset),p(b._pf)||(a._pf=m(b)),p(b._locale)||(a._locale=b._locale),rd.length>0)for(c in rd)d=rd[c],e=b[d],p(e)||(a[d]=e);return a}
|
||||
// Moment prototype object
|
||||
function r(b){q(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
||||
// Prevent infinite loop in case updateOffset creates new moment
|
||||
// objects.
|
||||
sd===!1&&(sd=!0,a.updateOffset(this),sd=!1)}function s(a){return a instanceof r||null!=a&&null!=a._isAMomentObject}function t(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function u(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=t(b)),c}
|
||||
// compare two arrays, return the number of differences
|
||||
function v(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;d<e;d++)(c&&a[d]!==b[d]||!c&&u(a[d])!==u(b[d]))&&g++;return g+f}function w(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function x(b,c){var d=!0;return j(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,b),d){for(var e,f=[],g=0;g<arguments.length;g++){if(e="","object"==typeof arguments[g]){e+="\n["+g+"] ";for(var h in arguments[0])e+=h+": "+arguments[0][h]+", ";e=e.slice(0,-2)}else e=arguments[g];f.push(e)}w(b+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function y(b,c){null!=a.deprecationHandler&&a.deprecationHandler(b,c),td[b]||(w(c),td[b]=!0)}function z(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function A(a){var b,c;for(c in a)b=a[c],z(b)?this[c]=b:this["_"+c]=b;this._config=a,
|
||||
// Lenient ordinal parsing accepts just a number in addition to
|
||||
// number + (possibly) stuff coming from _ordinalParseLenient.
|
||||
this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function B(a,b){var c,e=j({},a);for(c in b)i(b,c)&&(d(a[c])&&d(b[c])?(e[c]={},j(e[c],a[c]),j(e[c],b[c])):null!=b[c]?e[c]=b[c]:delete e[c]);for(c in a)i(a,c)&&!i(b,c)&&d(a[c])&&(
|
||||
// make sure changes to properties don't modify parent config
|
||||
e[c]=j({},e[c]));return e}function C(a){null!=a&&this.set(a)}function D(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return z(d)?d.call(b,c):d}function E(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function F(){return this._invalidDate}function G(a){return this._ordinal.replace("%d",a)}function H(a,b,c,d){var e=this._relativeTime[c];return z(e)?e(a,b,c,d):e.replace(/%d/i,a)}function I(a,b){var c=this._relativeTime[a>0?"future":"past"];return z(c)?c(b):c.replace(/%s/i,b)}function J(a,b){var c=a.toLowerCase();Dd[c]=Dd[c+"s"]=Dd[b]=a}function K(a){return"string"==typeof a?Dd[a]||Dd[a.toLowerCase()]:void 0}function L(a){var b,c,d={};for(c in a)i(a,c)&&(b=K(c),b&&(d[b]=a[c]));return d}function M(a,b){Ed[a]=b}function N(a){var b=[];for(var c in a)b.push({unit:c,priority:Ed[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function O(b,c){return function(d){return null!=d?(Q(this,b,d),a.updateOffset(this,c),this):P(this,b)}}function P(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function Q(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}
|
||||
// MOMENTS
|
||||
function R(a){return a=K(a),z(this[a])?this[a]():this}function S(a,b){if("object"==typeof a){a=L(a);for(var c=N(a),d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else if(a=K(a),z(this[a]))return this[a](b);return this}function T(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}
|
||||
// token: 'M'
|
||||
// padded: ['MM', 2]
|
||||
// ordinal: 'Mo'
|
||||
// callback: function () { this.month() + 1 }
|
||||
function U(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Id[a]=e),b&&(Id[b[0]]=function(){return T(e.apply(this,arguments),b[1],b[2])}),c&&(Id[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function V(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function W(a){var b,c,d=a.match(Fd);for(b=0,c=d.length;b<c;b++)Id[d[b]]?d[b]=Id[d[b]]:d[b]=V(d[b]);return function(b){var e,f="";for(e=0;e<c;e++)f+=d[e]instanceof Function?d[e].call(b,a):d[e];return f}}
|
||||
// format date using native date object
|
||||
function X(a,b){return a.isValid()?(b=Y(b,a.localeData()),Hd[b]=Hd[b]||W(b),Hd[b](a)):a.localeData().invalidDate()}function Y(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Gd.lastIndex=0;d>=0&&Gd.test(a);)a=a.replace(Gd,c),Gd.lastIndex=0,d-=1;return a}function Z(a,b,c){$d[a]=z(b)?b:function(a,d){return a&&c?c:b}}function $(a,b){return i($d,a)?$d[a](b._strict,b._locale):new RegExp(_(a))}
|
||||
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
||||
function _(a){return aa(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function aa(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ba(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),f(b)&&(d=function(a,c){c[b]=u(a)}),c=0;c<a.length;c++)_d[a[c]]=d}function ca(a,b){ba(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function da(a,b,c){null!=b&&i(_d,a)&&_d[a](b,c._a,c,a)}function ea(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function fa(a,b){return a?c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||ke).test(b)?"format":"standalone"][a.month()]:this._months}function ga(a,b){return a?c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[ke.test(b)?"format":"standalone"][a.month()]:this._monthsShort}function ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse)for(
|
||||
// this is not used
|
||||
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)f=k([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(f,"").toLocaleLowerCase();return c?"MMM"===b?(e=je.call(this._shortMonthsParse,g),e!==-1?e:null):(e=je.call(this._longMonthsParse,g),e!==-1?e:null):"MMM"===b?(e=je.call(this._shortMonthsParse,g),e!==-1?e:(e=je.call(this._longMonthsParse,g),e!==-1?e:null)):(e=je.call(this._longMonthsParse,g),e!==-1?e:(e=je.call(this._shortMonthsParse,g),e!==-1?e:null))}function ia(a,b,c){var d,e,f;if(this._monthsParseExact)return ha.call(this,a,b,c);
|
||||
// TODO: add sorting
|
||||
// Sorting makes sure if one month (or abbr) is a prefix of another
|
||||
// see sorting in computeMonthsParse
|
||||
for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;d<12;d++){
|
||||
// test the regex
|
||||
if(
|
||||
// make the regex if we don't have it already
|
||||
e=k([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}
|
||||
// MOMENTS
|
||||
function ja(a,b){var c;if(!a.isValid())
|
||||
// No op
|
||||
return a;if("string"==typeof b)if(/^\d+$/.test(b))b=u(b);else
|
||||
// TODO: Another silent failure?
|
||||
if(b=a.localeData().monthsParse(b),!f(b))return a;return c=Math.min(a.date(),ea(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ka(b){return null!=b?(ja(this,b),a.updateOffset(this,!0),this):P(this,"Month")}function la(){return ea(this.year(),this.month())}function ma(a){return this._monthsParseExact?(i(this,"_monthsRegex")||oa.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ne),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function na(a){return this._monthsParseExact?(i(this,"_monthsRegex")||oa.call(this),a?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=oe),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function oa(){function a(a,b){return b.length-a.length}var b,c,d=[],e=[],f=[];for(b=0;b<12;b++)
|
||||
// make the regex if we don't have it already
|
||||
c=k([2e3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(
|
||||
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
||||
// will match the longer piece.
|
||||
d.sort(a),e.sort(a),f.sort(a),b=0;b<12;b++)d[b]=aa(d[b]),e[b]=aa(e[b]);for(b=0;b<24;b++)f[b]=aa(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}
|
||||
// HELPERS
|
||||
function pa(a){return qa(a)?366:365}function qa(a){return a%4===0&&a%100!==0||a%400===0}function ra(){return qa(this.year())}function sa(a,b,c,d,e,f,g){
|
||||
//can't just apply() to create a date:
|
||||
//http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
|
||||
var h=new Date(a,b,c,d,e,f,g);
|
||||
//the date constructor remaps years 0-99 to 1900-1999
|
||||
return a<100&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function ta(a){var b=new Date(Date.UTC.apply(null,arguments));
|
||||
//the Date.UTC function remaps years 0-99 to 1900-1999
|
||||
return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}
|
||||
// start-of-first-week - start-of-year
|
||||
function ua(a,b,c){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
||||
d=7+b-c,
|
||||
// first-week day local weekday -- which local weekday is fwd
|
||||
e=(7+ta(a,0,d).getUTCDay()-b)%7;return-e+d-1}
|
||||
//http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
||||
function va(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ua(a,d,e),j=1+7*(b-1)+h+i;return j<=0?(f=a-1,g=pa(f)+j):j>pa(a)?(f=a+1,g=j-pa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function wa(a,b,c){var d,e,f=ua(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return g<1?(e=a.year()-1,d=g+xa(e,b,c)):g>xa(a.year(),b,c)?(d=g-xa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function xa(a,b,c){var d=ua(a,b,c),e=ua(a+1,b,c);return(pa(a)-d+e)/7}
|
||||
// HELPERS
|
||||
// LOCALES
|
||||
function ya(a){return wa(a,this._week.dow,this._week.doy).week}function za(){return this._week.dow}function Aa(){return this._week.doy}
|
||||
// MOMENTS
|
||||
function Ba(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ca(a){var b=wa(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}
|
||||
// HELPERS
|
||||
function Da(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Ea(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Fa(a,b){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:this._weekdays}function Ga(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Ha(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ia(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)f=k([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=je.call(this._weekdaysParse,g),e!==-1?e:null):"ddd"===b?(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null):"dddd"===b?(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null))):"ddd"===b?(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=je.call(this._minWeekdaysParse,g),e!==-1?e:(e=je.call(this._weekdaysParse,g),e!==-1?e:(e=je.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function Ja(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ia.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){
|
||||
// test the regex
|
||||
if(
|
||||
// make the regex if we don't have it already
|
||||
e=k([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}
|
||||
// MOMENTS
|
||||
function Ka(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Da(a,this.localeData()),this.add(a-b,"d")):b}function La(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Ma(a){if(!this.isValid())return null!=a?this:NaN;
|
||||
// behaves the same as moment#day except
|
||||
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
||||
// as a setter, sunday should belong to the previous week.
|
||||
if(null!=a){var b=Ea(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Na(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ue),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Oa(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ve),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pa(a){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qa.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=we),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g=[],h=[],i=[],j=[];for(b=0;b<7;b++)
|
||||
// make the regex if we don't have it already
|
||||
c=k([2e3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),j.push(d),j.push(e),j.push(f);for(
|
||||
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
||||
// will match the longer piece.
|
||||
g.sort(a),h.sort(a),i.sort(a),j.sort(a),b=0;b<7;b++)h[b]=aa(h[b]),i[b]=aa(i[b]),j[b]=aa(j[b]);this._weekdaysRegex=new RegExp("^("+j.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}
|
||||
// FORMATTING
|
||||
function Ra(){return this.hours()%12||12}function Sa(){return this.hours()||24}function Ta(a,b){U(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}
|
||||
// PARSING
|
||||
function Ua(a,b){return b._meridiemParse}
|
||||
// LOCALES
|
||||
function Va(a){
|
||||
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
||||
// Using charAt should be more compatible.
|
||||
return"p"===(a+"").toLowerCase().charAt(0)}function Wa(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Xa(a){return a?a.toLowerCase().replace("_","-"):a}
|
||||
// pick the locale from the array
|
||||
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
|
||||
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
||||
function Ya(a){for(var b,c,d,e,f=0;f<a.length;){for(e=Xa(a[f]).split("-"),b=e.length,c=Xa(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=Za(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&v(e,c,!0)>=b-1)
|
||||
//the next array item is better than a shallower substring of this one
|
||||
break;b--}f++}return null}function Za(a){var b=null;
|
||||
// TODO: Find a better way to register and load all the locales in Node
|
||||
if(!Be[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=xe._abbr,require("./locale/"+a),
|
||||
// because defineLocale currently also sets the global locale, we
|
||||
// want to undo that for lazy loaded locales
|
||||
$a(b)}catch(a){}return Be[a]}
|
||||
// This function will load locale and then set the global locale. If
|
||||
// no arguments are passed in, it will simply return the current global
|
||||
// locale key.
|
||||
function $a(a,b){var c;
|
||||
// moment.duration._locale = moment._locale = data;
|
||||
return a&&(c=p(b)?bb(a):_a(a,b),c&&(xe=c)),xe._abbr}function _a(a,b){if(null!==b){var c=Ae;if(b.abbr=a,null!=Be[a])y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=Be[a]._config;else if(null!=b.parentLocale){if(null==Be[b.parentLocale])return Ce[b.parentLocale]||(Ce[b.parentLocale]=[]),Ce[b.parentLocale].push({name:a,config:b}),null;c=Be[b.parentLocale]._config}
|
||||
// backwards compat for now: also set the locale
|
||||
// make sure we set the locale AFTER all child locales have been
|
||||
// created, so we won't end up with the child locale set.
|
||||
return Be[a]=new C(B(c,b)),Ce[a]&&Ce[a].forEach(function(a){_a(a.name,a.config)}),$a(a),Be[a]}
|
||||
// useful for testing
|
||||
return delete Be[a],null}function ab(a,b){if(null!=b){var c,d=Ae;
|
||||
// MERGE
|
||||
null!=Be[a]&&(d=Be[a]._config),b=B(d,b),c=new C(b),c.parentLocale=Be[a],Be[a]=c,
|
||||
// backwards compat for now: also set the locale
|
||||
$a(a)}else
|
||||
// pass null for config to unupdate, useful for tests
|
||||
null!=Be[a]&&(null!=Be[a].parentLocale?Be[a]=Be[a].parentLocale:null!=Be[a]&&delete Be[a]);return Be[a]}
|
||||
// returns locale data
|
||||
function bb(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return xe;if(!c(a)){if(
|
||||
//short-circuit everything else
|
||||
b=Za(a))return b;a=[a]}return Ya(a)}function cb(){return wd(Be)}function db(a){var b,c=a._a;return c&&m(a).overflow===-2&&(b=c[be]<0||c[be]>11?be:c[ce]<1||c[ce]>ea(c[ae],c[be])?ce:c[de]<0||c[de]>24||24===c[de]&&(0!==c[ee]||0!==c[fe]||0!==c[ge])?de:c[ee]<0||c[ee]>59?ee:c[fe]<0||c[fe]>59?fe:c[ge]<0||c[ge]>999?ge:-1,m(a)._overflowDayOfYear&&(b<ae||b>ce)&&(b=ce),m(a)._overflowWeeks&&b===-1&&(b=he),m(a)._overflowWeekday&&b===-1&&(b=ie),m(a).overflow=b),a}
|
||||
// date from iso format
|
||||
function eb(a){var b,c,d,e,f,g,h=a._i,i=De.exec(h)||Ee.exec(h);if(i){for(m(a).iso=!0,b=0,c=Ge.length;b<c;b++)if(Ge[b][1].exec(i[1])){e=Ge[b][0],d=Ge[b][2]!==!1;break}if(null==e)return void(a._isValid=!1);if(i[3]){for(b=0,c=He.length;b<c;b++)if(He[b][1].exec(i[3])){
|
||||
// match[2] should be 'T' or space
|
||||
f=(i[2]||" ")+He[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!Fe.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),kb(a)}else a._isValid=!1}
|
||||
// date from iso format or fallback
|
||||
function fb(b){var c=Ie.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(eb(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}
|
||||
// Pick the first defined of two or three arguments.
|
||||
function gb(a,b,c){return null!=a?a:null!=b?b:c}function hb(b){
|
||||
// hooks is actually the exported moment object
|
||||
var c=new Date(a.now());return b._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}
|
||||
// convert an array to a date.
|
||||
// the array should mirror the parameters below
|
||||
// note: all values past the year are optional and will default to the lowest possible value.
|
||||
// [year, month, day , hour, minute, second, millisecond]
|
||||
function ib(a){var b,c,d,e,f=[];if(!a._d){
|
||||
// Default to current date.
|
||||
// * if no year, month, day of month are given, default to today
|
||||
// * if day of month is given, default month and year
|
||||
// * if month is given, default only year
|
||||
// * if year is given, don't default anything
|
||||
for(d=hb(a),
|
||||
//compute day of the year from weeks and weekdays
|
||||
a._w&&null==a._a[ce]&&null==a._a[be]&&jb(a),
|
||||
//if the day of the year is set, figure out what it is
|
||||
a._dayOfYear&&(e=gb(a._a[ae],d[ae]),a._dayOfYear>pa(e)&&(m(a)._overflowDayOfYear=!0),c=ta(e,0,a._dayOfYear),a._a[be]=c.getUTCMonth(),a._a[ce]=c.getUTCDate()),b=0;b<3&&null==a._a[b];++b)a._a[b]=f[b]=d[b];
|
||||
// Zero out whatever was not defaulted, including time
|
||||
for(;b<7;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];
|
||||
// Check for 24:00:00.000
|
||||
24===a._a[de]&&0===a._a[ee]&&0===a._a[fe]&&0===a._a[ge]&&(a._nextDay=!0,a._a[de]=0),a._d=(a._useUTC?ta:sa).apply(null,f),
|
||||
// Apply timezone offset from input. The actual utcOffset can be changed
|
||||
// with parseZone.
|
||||
null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[de]=24)}}function jb(a){var b,c,d,e,f,g,h,i;if(b=a._w,null!=b.GG||null!=b.W||null!=b.E)f=1,g=4,
|
||||
// TODO: We need to take the current isoWeekYear, but that depends on
|
||||
// how we interpret now (local, utc, fixed offset). So create
|
||||
// a now version of current config (take local/utc/offset flags, and
|
||||
// create now).
|
||||
c=gb(b.GG,a._a[ae],wa(sb(),1,4).year),d=gb(b.W,1),e=gb(b.E,1),(e<1||e>7)&&(i=!0);else{f=a._locale._week.dow,g=a._locale._week.doy;var j=wa(sb(),f,g);c=gb(b.gg,a._a[ae],j.year),
|
||||
// Default to current week.
|
||||
d=gb(b.w,j.week),null!=b.d?(
|
||||
// weekday -- low day numbers are considered next week
|
||||
e=b.d,(e<0||e>6)&&(i=!0)):null!=b.e?(
|
||||
// local weekday -- counting starts from begining of week
|
||||
e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):
|
||||
// default to begining of week
|
||||
e=f}d<1||d>xa(c,f,g)?m(a)._overflowWeeks=!0:null!=i?m(a)._overflowWeekday=!0:(h=va(c,d,e,f,g),a._a[ae]=h.year,a._dayOfYear=h.dayOfYear)}
|
||||
// date from string and format string
|
||||
function kb(b){
|
||||
// TODO: Move this to another part of the creation flow to prevent circular deps
|
||||
if(b._f===a.ISO_8601)return void eb(b);b._a=[],m(b).empty=!0;
|
||||
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
||||
var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=Y(b._f,b._locale).match(Fd)||[],c=0;c<e.length;c++)f=e[c],d=(h.match($(f,b))||[])[0],
|
||||
// console.log('token', token, 'parsedInput', parsedInput,
|
||||
// 'regex', getParseRegexForToken(token, config));
|
||||
d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&m(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),
|
||||
// don't parse if it's not a known token
|
||||
Id[f]?(d?m(b).empty=!1:m(b).unusedTokens.push(f),da(f,d,b)):b._strict&&!d&&m(b).unusedTokens.push(f);
|
||||
// add remaining unparsed input length to the string
|
||||
m(b).charsLeftOver=i-j,h.length>0&&m(b).unusedInput.push(h),
|
||||
// clear _12h flag if hour is <= 12
|
||||
b._a[de]<=12&&m(b).bigHour===!0&&b._a[de]>0&&(m(b).bigHour=void 0),m(b).parsedDateParts=b._a.slice(0),m(b).meridiem=b._meridiem,
|
||||
// handle meridiem
|
||||
b._a[de]=lb(b._locale,b._a[de],b._meridiem),ib(b),db(b)}function lb(a,b,c){var d;
|
||||
// Fallback
|
||||
return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&b<12&&(b+=12),d||12!==b||(b=0),b):b}
|
||||
// date from string and array of format strings
|
||||
function mb(a){var b,c,d,e,f;if(0===a._f.length)return m(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=q({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],kb(b),n(b)&&(
|
||||
// if there is any input that was not parsed add a penalty for that format
|
||||
f+=m(b).charsLeftOver,
|
||||
//or tokens
|
||||
f+=10*m(b).unusedTokens.length,m(b).score=f,(null==d||f<d)&&(d=f,c=b));j(a,c||b)}function nb(a){if(!a._d){var b=L(a._i);a._a=h([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),ib(a)}}function ob(a){var b=new r(db(pb(a)));
|
||||
// Adding is smart enough around DST
|
||||
return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function pb(a){var b=a._i,d=a._f;return a._locale=a._locale||bb(a._l),null===b||void 0===d&&""===b?o({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),s(b)?new r(db(b)):(g(b)?a._d=b:c(d)?mb(a):d?kb(a):qb(a),n(a)||(a._d=null),a))}function qb(b){var d=b._i;void 0===d?b._d=new Date(a.now()):g(d)?b._d=new Date(d.valueOf()):"string"==typeof d?fb(b):c(d)?(b._a=h(d.slice(0),function(a){return parseInt(a,10)}),ib(b)):"object"==typeof d?nb(b):f(d)?
|
||||
// from milliseconds
|
||||
b._d=new Date(d):a.createFromInputFallback(b)}function rb(a,b,f,g,h){var i={};
|
||||
// object construction must be done this way.
|
||||
// https://github.com/moment/moment/issues/1423
|
||||
return f!==!0&&f!==!1||(g=f,f=void 0),(d(a)&&e(a)||c(a)&&0===a.length)&&(a=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=f,i._i=a,i._f=b,i._strict=g,ob(i)}function sb(a,b,c,d){return rb(a,b,c,d,!1)}
|
||||
// Pick a moment m from moments so that m[fn](other) is true for all
|
||||
// other. This relies on the function fn to be transitive.
|
||||
//
|
||||
// moments should either be an array of moment objects or an array, whose
|
||||
// first element is an array of moment objects.
|
||||
function tb(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return sb();for(d=b[0],e=1;e<b.length;++e)b[e].isValid()&&!b[e][a](d)||(d=b[e]);return d}
|
||||
// TODO: Use [].sort instead?
|
||||
function ub(){var a=[].slice.call(arguments,0);return tb("isBefore",a)}function vb(){var a=[].slice.call(arguments,0);return tb("isAfter",a)}function wb(a){var b=L(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;
|
||||
// representation for dateAddRemove
|
||||
this._milliseconds=+k+1e3*j+// 1000
|
||||
6e4*i+// 1000 * 60
|
||||
1e3*h*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
||||
// Because of dateAddRemove treats 24 hours as different from a
|
||||
// day when working around DST, we need to store them separately
|
||||
this._days=+g+7*f,
|
||||
// It is impossible translate months into days without knowing
|
||||
// which months you are are talking about, so we have to store
|
||||
// it separately.
|
||||
this._months=+e+3*d+12*c,this._data={},this._locale=bb(),this._bubble()}function xb(a){return a instanceof wb}function yb(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}
|
||||
// FORMATTING
|
||||
function zb(a,b){U(a,0,0,function(){var a=this.utcOffset(),c="+";return a<0&&(a=-a,c="-"),c+T(~~(a/60),2)+b+T(~~a%60,2)})}function Ab(a,b){var c=(b||"").match(a);if(null===c)return null;var d=c[c.length-1]||[],e=(d+"").match(Me)||["-",0,0],f=+(60*e[1])+u(e[2]);return 0===f?0:"+"===e[0]?f:-f}
|
||||
// Return a moment from input, that is local/utc/zone equivalent to model.
|
||||
function Bb(b,c){var d,e;
|
||||
// Use low-level api, because this fn is low-level api.
|
||||
return c._isUTC?(d=c.clone(),e=(s(b)||g(b)?b.valueOf():sb(b).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),a.updateOffset(d,!1),d):sb(b).local()}function Cb(a){
|
||||
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
|
||||
// https://github.com/moment/moment/pull/1871
|
||||
return 15*-Math.round(a._d.getTimezoneOffset()/15)}
|
||||
// MOMENTS
|
||||
// keepLocalTime = true means only change the timezone, without
|
||||
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
|
||||
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
|
||||
// +0200, so we adjust the time as needed, to be valid.
|
||||
//
|
||||
// Keeping the time actually adds/subtracts (one hour)
|
||||
// from the actual represented time. That is why we call updateOffset
|
||||
// a second time. In case it wants us to change the offset again
|
||||
// _changeInProgress == true case, then we have to adjust, because
|
||||
// there is no such time in the given timezone.
|
||||
function Db(b,c){var d,e=this._offset||0;if(!this.isValid())return null!=b?this:NaN;if(null!=b){if("string"==typeof b){if(b=Ab(Xd,b),null===b)return this}else Math.abs(b)<16&&(b=60*b);return!this._isUTC&&c&&(d=Cb(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Tb(this,Ob(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?e:Cb(this)}function Eb(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Fb(a){return this.utcOffset(0,a)}function Gb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Cb(this),"m")),this}function Hb(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var a=Ab(Wd,this._i);null!=a?this.utcOffset(a):this.utcOffset(0,!0)}return this}function Ib(a){return!!this.isValid()&&(a=a?sb(a).utcOffset():0,(this.utcOffset()-a)%60===0)}function Jb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kb(){if(!p(this._isDSTShifted))return this._isDSTShifted;var a={};if(q(a,this),a=pb(a),a._a){var b=a._isUTC?k(a._a):sb(a._a);this._isDSTShifted=this.isValid()&&v(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lb(){return!!this.isValid()&&!this._isUTC}function Mb(){return!!this.isValid()&&this._isUTC}function Nb(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ob(a,b){var c,d,e,g=a,
|
||||
// matching against regexp is expensive, do it on demand
|
||||
h=null;// checks for null or undefined
|
||||
return xb(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:f(a)?(g={},b?g[b]=a:g.milliseconds=a):(h=Ne.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:u(h[ce])*c,h:u(h[de])*c,m:u(h[ee])*c,s:u(h[fe])*c,ms:u(yb(1e3*h[ge]))*c}):(h=Oe.exec(a))?(c="-"===h[1]?-1:1,g={y:Pb(h[2],c),M:Pb(h[3],c),w:Pb(h[4],c),d:Pb(h[5],c),h:Pb(h[6],c),m:Pb(h[7],c),s:Pb(h[8],c)}):null==g?g={}:"object"==typeof g&&("from"in g||"to"in g)&&(e=Rb(sb(g.from),sb(g.to)),g={},g.ms=e.milliseconds,g.M=e.months),d=new wb(g),xb(a)&&i(a,"_locale")&&(d._locale=a._locale),d}function Pb(a,b){
|
||||
// We'd normally use ~~inp for this, but unfortunately it also
|
||||
// converts floats to ints.
|
||||
// inp may be undefined, so careful calling replace on it.
|
||||
var c=a&&parseFloat(a.replace(",","."));
|
||||
// apply sign while we're at it
|
||||
return(isNaN(c)?0:c)*b}function Qb(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Rb(a,b){var c;return a.isValid()&&b.isValid()?(b=Bb(b,a),a.isBefore(b)?c=Qb(a,b):(c=Qb(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}
|
||||
// TODO: remove 'name' arg after deprecation is removed
|
||||
function Sb(a,b){return function(c,d){var e,f;
|
||||
//invert the arguments, but complain about it
|
||||
return null===d||isNaN(+d)||(y(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Ob(c,d),Tb(this,e,a),this}}function Tb(b,c,d,e){var f=c._milliseconds,g=yb(c._days),h=yb(c._months);b.isValid()&&(e=null==e||e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&Q(b,"Date",P(b,"Date")+g*d),h&&ja(b,P(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Ub(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Vb(b,c){
|
||||
// We want to compare the start of today, vs this.
|
||||
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
||||
var d=b||sb(),e=Bb(d,this).startOf("day"),f=a.calendarFormat(this,e)||"sameElse",g=c&&(z(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,sb(d)))}function Wb(){return new r(this)}function Xb(a,b){var c=s(a)?a:sb(a);return!(!this.isValid()||!c.isValid())&&(b=K(p(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf())}function Yb(a,b){var c=s(a)?a:sb(a);return!(!this.isValid()||!c.isValid())&&(b=K(p(b)?"millisecond":b),"millisecond"===b?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()<c.valueOf())}function Zb(a,b,c,d){return d=d||"()",("("===d[0]?this.isAfter(a,c):!this.isBefore(a,c))&&(")"===d[1]?this.isBefore(b,c):!this.isAfter(b,c))}function $b(a,b){var c,d=s(a)?a:sb(a);return!(!this.isValid()||!d.isValid())&&(b=K(b||"millisecond"),"millisecond"===b?this.valueOf()===d.valueOf():(c=d.valueOf(),this.clone().startOf(b).valueOf()<=c&&c<=this.clone().endOf(b).valueOf()))}function _b(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function ac(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function bc(a,b,c){var d,e,f,g;// 1000
|
||||
// 1000 * 60
|
||||
// 1000 * 60 * 60
|
||||
// 1000 * 60 * 60 * 24, negate dst
|
||||
// 1000 * 60 * 60 * 24 * 7, negate dst
|
||||
return this.isValid()?(d=Bb(a,this),d.isValid()?(e=6e4*(d.utcOffset()-this.utcOffset()),b=K(b),"year"===b||"month"===b||"quarter"===b?(g=cc(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1e3:"minute"===b?f/6e4:"hour"===b?f/36e5:"day"===b?(f-e)/864e5:"week"===b?(f-e)/6048e5:f),c?g:t(g)):NaN):NaN}function cc(a,b){
|
||||
// difference in months
|
||||
var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),
|
||||
// b is in (anchor - 1 month, anchor + 1 month)
|
||||
f=a.clone().add(e,"months");
|
||||
//check for negative zero, return zero if negative zero
|
||||
// linear across the month
|
||||
// linear across the month
|
||||
return b-f<0?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)||0}function dc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ec(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?z(Date.prototype.toISOString)?this.toDate().toISOString():X(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):X(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}/**
|
||||
* Return a human readable representation of a moment that can
|
||||
* also be evaluated to get a new moment which is the same
|
||||
*
|
||||
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
||||
*/
|
||||
function fc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",b="";this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",b="Z");var c="["+a+'("]',d=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",f=b+'[")]';return this.format(c+d+e+f)}function gc(b){b||(b=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var c=X(this,b);return this.localeData().postformat(c)}function hc(a,b){return this.isValid()&&(s(a)&&a.isValid()||sb(a).isValid())?Ob({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ic(a){return this.from(sb(),a)}function jc(a,b){return this.isValid()&&(s(a)&&a.isValid()||sb(a).isValid())?Ob({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function kc(a){return this.to(sb(),a)}
|
||||
// If passed a locale key, it will set the locale for this
|
||||
// instance. Otherwise, it will return the locale configuration
|
||||
// variables for this instance.
|
||||
function lc(a){var b;return void 0===a?this._locale._abbr:(b=bb(a),null!=b&&(this._locale=b),this)}function mc(){return this._locale}function nc(a){
|
||||
// the following switch intentionally omits break keywords
|
||||
// to utilize falling through the cases.
|
||||
switch(a=K(a)){case"year":this.month(0);/* falls through */
|
||||
case"quarter":case"month":this.date(1);/* falls through */
|
||||
case"week":case"isoWeek":case"day":case"date":this.hours(0);/* falls through */
|
||||
case"hour":this.minutes(0);/* falls through */
|
||||
case"minute":this.seconds(0);/* falls through */
|
||||
case"second":this.milliseconds(0)}
|
||||
// weeks are a special case
|
||||
// quarters are also special
|
||||
return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function oc(a){
|
||||
// 'date' is an alias for 'day', so it should be considered as such.
|
||||
return a=K(a),void 0===a||"millisecond"===a?this:("date"===a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))}function pc(){return this._d.valueOf()-6e4*(this._offset||0)}function qc(){return Math.floor(this.valueOf()/1e3)}function rc(){return new Date(this.valueOf())}function sc(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function tc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function uc(){
|
||||
// new Date(NaN).toJSON() === null
|
||||
return this.isValid()?this.toISOString():null}function vc(){return n(this)}function wc(){return j({},m(this))}function xc(){return m(this).overflow}function yc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zc(a,b){U(0,[a,a.length],0,b)}
|
||||
// MOMENTS
|
||||
function Ac(a){return Ec.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Bc(a){return Ec.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Cc(){return xa(this.year(),1,4)}function Dc(){var a=this.localeData()._week;return xa(this.year(),a.dow,a.doy)}function Ec(a,b,c,d,e){var f;return null==a?wa(this,d,e).year:(f=xa(a,d,e),b>f&&(b=f),Fc.call(this,a,b,c,d,e))}function Fc(a,b,c,d,e){var f=va(a,b,c,d,e),g=ta(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}
|
||||
// MOMENTS
|
||||
function Gc(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}
|
||||
// HELPERS
|
||||
// MOMENTS
|
||||
function Hc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function Ic(a,b){b[ge]=u(1e3*("0."+a))}
|
||||
// MOMENTS
|
||||
function Jc(){return this._isUTC?"UTC":""}function Kc(){return this._isUTC?"Coordinated Universal Time":""}function Lc(a){return sb(1e3*a)}function Mc(){return sb.apply(null,arguments).parseZone()}function Nc(a){return a}function Oc(a,b,c,d){var e=bb(),f=k().set(d,b);return e[c](f,a)}function Pc(a,b,c){if(f(a)&&(b=a,a=void 0),a=a||"",null!=b)return Oc(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=Oc(a,d,c,"month");return e}
|
||||
// ()
|
||||
// (5)
|
||||
// (fmt, 5)
|
||||
// (fmt)
|
||||
// (true)
|
||||
// (true, 5)
|
||||
// (true, fmt, 5)
|
||||
// (true, fmt)
|
||||
function Qc(a,b,c,d){"boolean"==typeof a?(f(b)&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,f(b)&&(c=b,b=void 0),b=b||"");var e=bb(),g=a?e._week.dow:0;if(null!=c)return Oc(b,(c+g)%7,d,"day");var h,i=[];for(h=0;h<7;h++)i[h]=Oc(b,(h+g)%7,d,"day");return i}function Rc(a,b){return Pc(a,b,"months")}function Sc(a,b){return Pc(a,b,"monthsShort")}function Tc(a,b,c){return Qc(a,b,c,"weekdays")}function Uc(a,b,c){return Qc(a,b,c,"weekdaysShort")}function Vc(a,b,c){return Qc(a,b,c,"weekdaysMin")}function Wc(){var a=this._data;return this._milliseconds=Ze(this._milliseconds),this._days=Ze(this._days),this._months=Ze(this._months),a.milliseconds=Ze(a.milliseconds),a.seconds=Ze(a.seconds),a.minutes=Ze(a.minutes),a.hours=Ze(a.hours),a.months=Ze(a.months),a.years=Ze(a.years),this}function Xc(a,b,c,d){var e=Ob(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}
|
||||
// supports only 2.0-style add(1, 's') or add(duration)
|
||||
function Yc(a,b){return Xc(this,a,b,1)}
|
||||
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
||||
function Zc(a,b){return Xc(this,a,b,-1)}function $c(a){return a<0?Math.floor(a):Math.ceil(a)}function _c(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;
|
||||
// if we have a mix of positive and negative values, bubble down first
|
||||
// check: https://github.com/moment/moment/issues/2166
|
||||
// The following code bubbles up values, see the tests for
|
||||
// examples of what that means.
|
||||
// convert days to months
|
||||
// 12 months -> 1 year
|
||||
return f>=0&&g>=0&&h>=0||f<=0&&g<=0&&h<=0||(f+=864e5*$c(bd(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=t(f/1e3),i.seconds=a%60,b=t(a/60),i.minutes=b%60,c=t(b/60),i.hours=c%24,g+=t(c/24),e=t(ad(g)),h+=e,g-=$c(bd(e)),d=t(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function ad(a){
|
||||
// 400 years have 146097 days (taking into account leap year rules)
|
||||
// 400 years have 12 months === 4800
|
||||
return 4800*a/146097}function bd(a){
|
||||
// the reverse of daysToMonths
|
||||
return 146097*a/4800}function cd(a){var b,c,d=this._milliseconds;if(a=K(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+ad(b),"month"===a?c:c/12;switch(
|
||||
// handle milliseconds separately because of floating point math errors (issue #1867)
|
||||
b=this._days+Math.round(bd(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;
|
||||
// Math.floor prevents floating point math errors here
|
||||
case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}
|
||||
// TODO: Use this.as('ms')?
|
||||
function dd(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*u(this._months/12)}function ed(a){return function(){return this.as(a)}}function fd(a){return a=K(a),this[a+"s"]()}function gd(a){return function(){return this._data[a]}}function hd(){return t(this.days()/7)}
|
||||
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
||||
function id(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function jd(a,b,c){var d=Ob(a).abs(),e=of(d.as("s")),f=of(d.as("m")),g=of(d.as("h")),h=of(d.as("d")),i=of(d.as("M")),j=of(d.as("y")),k=e<pf.s&&["s",e]||f<=1&&["m"]||f<pf.m&&["mm",f]||g<=1&&["h"]||g<pf.h&&["hh",g]||h<=1&&["d"]||h<pf.d&&["dd",h]||i<=1&&["M"]||i<pf.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,id.apply(null,k)}
|
||||
// This function allows you to set the rounding function for relative time strings
|
||||
function kd(a){return void 0===a?of:"function"==typeof a&&(of=a,!0)}
|
||||
// This function allows you to set a threshold for relative time strings
|
||||
function ld(a,b){return void 0!==pf[a]&&(void 0===b?pf[a]:(pf[a]=b,!0))}function md(a){var b=this.localeData(),c=jd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function nd(){
|
||||
// for ISO strings we do not use the normal bubbling rules:
|
||||
// * milliseconds bubble up until they become hours
|
||||
// * days do not bubble at all
|
||||
// * months bubble up until they become years
|
||||
// This is because there is no context-free conversion between hours and days
|
||||
// (think of clock changes)
|
||||
// and also not between days and months (28-31 days per month)
|
||||
var a,b,c,d=qf(this._milliseconds)/1e3,e=qf(this._days),f=qf(this._months);
|
||||
// 3600 seconds -> 60 minutes -> 1 hour
|
||||
a=t(d/60),b=t(a/60),d%=60,a%=60,
|
||||
// 12 months -> 1 year
|
||||
c=t(f/12),f%=12;
|
||||
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
||||
var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var od,pd;pd=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var qd=pd,rd=a.momentProperties=[],sd=!1,td={};a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;var ud;ud=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)i(a,b)&&c.push(b);return c};var vd,wd=ud,xd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},yd={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},zd="Invalid date",Ad="%d",Bd=/\d{1,2}/,Cd={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Dd={},Ed={},Fd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hd={},Id={},Jd=/\d/,Kd=/\d\d/,Ld=/\d{3}/,Md=/\d{4}/,Nd=/[+-]?\d{6}/,Od=/\d\d?/,Pd=/\d\d\d\d?/,Qd=/\d\d\d\d\d\d?/,Rd=/\d{1,3}/,Sd=/\d{1,4}/,Td=/[+-]?\d{1,6}/,Ud=/\d+/,Vd=/[+-]?\d+/,Wd=/Z|[+-]\d\d:?\d\d/gi,Xd=/Z|[+-]\d\d(?::?\d\d)?/gi,Yd=/[+-]?\d+(\.\d{1,3})?/,Zd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,$d={},_d={},ae=0,be=1,ce=2,de=3,ee=4,fe=5,ge=6,he=7,ie=8;vd=Array.prototype.indexOf?Array.prototype.indexOf:function(a){
|
||||
// I know
|
||||
var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1};var je=vd;
|
||||
// FORMATTING
|
||||
U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),U("MMMM",0,0,function(a){return this.localeData().months(this,a)}),
|
||||
// ALIASES
|
||||
J("month","M"),
|
||||
// PRIORITY
|
||||
M("month",8),
|
||||
// PARSING
|
||||
Z("M",Od),Z("MM",Od,Kd),Z("MMM",function(a,b){return b.monthsShortRegex(a)}),Z("MMMM",function(a,b){return b.monthsRegex(a)}),ba(["M","MM"],function(a,b){b[be]=u(a)-1}),ba(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);
|
||||
// if we didn't find a month name, mark the date as invalid.
|
||||
null!=e?b[be]=e:m(c).invalidMonth=a});
|
||||
// LOCALES
|
||||
var ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=Zd,oe=Zd;
|
||||
// FORMATTING
|
||||
U("Y",0,0,function(){var a=this.year();return a<=9999?""+a:"+"+a}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),
|
||||
// ALIASES
|
||||
J("year","y"),
|
||||
// PRIORITIES
|
||||
M("year",1),
|
||||
// PARSING
|
||||
Z("Y",Vd),Z("YY",Od,Kd),Z("YYYY",Sd,Md),Z("YYYYY",Td,Nd),Z("YYYYYY",Td,Nd),ba(["YYYYY","YYYYYY"],ae),ba("YYYY",function(b,c){c[ae]=2===b.length?a.parseTwoDigitYear(b):u(b)}),ba("YY",function(b,c){c[ae]=a.parseTwoDigitYear(b)}),ba("Y",function(a,b){b[ae]=parseInt(a,10)}),
|
||||
// HOOKS
|
||||
a.parseTwoDigitYear=function(a){return u(a)+(u(a)>68?1900:2e3)};
|
||||
// MOMENTS
|
||||
var pe=O("FullYear",!0);
|
||||
// FORMATTING
|
||||
U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),
|
||||
// ALIASES
|
||||
J("week","w"),J("isoWeek","W"),
|
||||
// PRIORITIES
|
||||
M("week",5),M("isoWeek",5),
|
||||
// PARSING
|
||||
Z("w",Od),Z("ww",Od,Kd),Z("W",Od),Z("WW",Od,Kd),ca(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=u(a)});var qe={dow:0,// Sunday is the first day of the week.
|
||||
doy:6};
|
||||
// FORMATTING
|
||||
U("d",0,"do","day"),U("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),U("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),U("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),
|
||||
// ALIASES
|
||||
J("day","d"),J("weekday","e"),J("isoWeekday","E"),
|
||||
// PRIORITY
|
||||
M("day",11),M("weekday",11),M("isoWeekday",11),
|
||||
// PARSING
|
||||
Z("d",Od),Z("e",Od),Z("E",Od),Z("dd",function(a,b){return b.weekdaysMinRegex(a)}),Z("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Z("dddd",function(a,b){return b.weekdaysRegex(a)}),ca(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);
|
||||
// if we didn't get a weekday name, mark the date as invalid
|
||||
null!=e?b.d=e:m(c).invalidWeekday=a}),ca(["d","e","E"],function(a,b,c,d){b[d]=u(a)});
|
||||
// LOCALES
|
||||
var re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),se="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),te="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ue=Zd,ve=Zd,we=Zd;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ra),U("k",["kk",2],0,Sa),U("hmm",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ra.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ta("a",!0),Ta("A",!1),
|
||||
// ALIASES
|
||||
J("hour","h"),
|
||||
// PRIORITY
|
||||
M("hour",13),Z("a",Ua),Z("A",Ua),Z("H",Od),Z("h",Od),Z("HH",Od,Kd),Z("hh",Od,Kd),Z("hmm",Pd),Z("hmmss",Qd),Z("Hmm",Pd),Z("Hmmss",Qd),ba(["H","HH"],de),ba(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),ba(["h","hh"],function(a,b,c){b[de]=u(a),m(c).bigHour=!0}),ba("hmm",function(a,b,c){var d=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d)),m(c).bigHour=!0}),ba("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d,2)),b[fe]=u(a.substr(e)),m(c).bigHour=!0}),ba("Hmm",function(a,b,c){var d=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d))}),ba("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[de]=u(a.substr(0,d)),b[ee]=u(a.substr(d,2)),b[fe]=u(a.substr(e))});var xe,ye=/[ap]\.?m?\.?/i,ze=O("Hours",!0),Ae={calendar:xd,longDateFormat:yd,invalidDate:zd,ordinal:Ad,ordinalParse:Bd,relativeTime:Cd,months:le,monthsShort:me,week:qe,weekdays:re,weekdaysMin:te,weekdaysShort:se,meridiemParse:ye},Be={},Ce={},De=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ee=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fe=/Z|[+-]\d\d(?::?\d\d)?/,Ge=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],
|
||||
// YYYYMM is NOT allowed by the standard
|
||||
["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],He=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ie=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=x("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),
|
||||
// constant that refers to the ISO standard
|
||||
a.ISO_8601=function(){};var Je=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=sb.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:o()}),Ke=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=sb.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:o()}),Le=function(){return Date.now?Date.now():+new Date};zb("Z",":"),zb("ZZ",""),
|
||||
// PARSING
|
||||
Z("Z",Xd),Z("ZZ",Xd),ba(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Ab(Xd,a)});
|
||||
// HELPERS
|
||||
// timezone chunker
|
||||
// '+10:00' > ['10', '00']
|
||||
// '-1530' > ['-15', '30']
|
||||
var Me=/([\+\-]|\d\d)/gi;
|
||||
// HOOKS
|
||||
// This function will be called whenever a moment is mutated.
|
||||
// It is intended to keep the offset in sync with the timezone.
|
||||
a.updateOffset=function(){};
|
||||
// ASP.NET json date format regex
|
||||
var Ne=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Oe=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ob.fn=wb.prototype;var Pe=Sb(1,"add"),Qe=Sb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Re=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});
|
||||
// FORMATTING
|
||||
U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zc("gggg","weekYear"),zc("ggggg","weekYear"),zc("GGGG","isoWeekYear"),zc("GGGGG","isoWeekYear"),
|
||||
// ALIASES
|
||||
J("weekYear","gg"),J("isoWeekYear","GG"),
|
||||
// PRIORITY
|
||||
M("weekYear",1),M("isoWeekYear",1),
|
||||
// PARSING
|
||||
Z("G",Vd),Z("g",Vd),Z("GG",Od,Kd),Z("gg",Od,Kd),Z("GGGG",Sd,Md),Z("gggg",Sd,Md),Z("GGGGG",Td,Nd),Z("ggggg",Td,Nd),ca(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=u(a)}),ca(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),
|
||||
// FORMATTING
|
||||
U("Q",0,"Qo","quarter"),
|
||||
// ALIASES
|
||||
J("quarter","Q"),
|
||||
// PRIORITY
|
||||
M("quarter",7),
|
||||
// PARSING
|
||||
Z("Q",Jd),ba("Q",function(a,b){b[be]=3*(u(a)-1)}),
|
||||
// FORMATTING
|
||||
U("D",["DD",2],"Do","date"),
|
||||
// ALIASES
|
||||
J("date","D"),
|
||||
// PRIOROITY
|
||||
M("date",9),
|
||||
// PARSING
|
||||
Z("D",Od),Z("DD",Od,Kd),Z("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),ba(["D","DD"],ce),ba("Do",function(a,b){b[ce]=u(a.match(Od)[0],10)});
|
||||
// MOMENTS
|
||||
var Se=O("Date",!0);
|
||||
// FORMATTING
|
||||
U("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
||||
// ALIASES
|
||||
J("dayOfYear","DDD"),
|
||||
// PRIORITY
|
||||
M("dayOfYear",4),
|
||||
// PARSING
|
||||
Z("DDD",Rd),Z("DDDD",Ld),ba(["DDD","DDDD"],function(a,b,c){c._dayOfYear=u(a)}),
|
||||
// FORMATTING
|
||||
U("m",["mm",2],0,"minute"),
|
||||
// ALIASES
|
||||
J("minute","m"),
|
||||
// PRIORITY
|
||||
M("minute",14),
|
||||
// PARSING
|
||||
Z("m",Od),Z("mm",Od,Kd),ba(["m","mm"],ee);
|
||||
// MOMENTS
|
||||
var Te=O("Minutes",!1);
|
||||
// FORMATTING
|
||||
U("s",["ss",2],0,"second"),
|
||||
// ALIASES
|
||||
J("second","s"),
|
||||
// PRIORITY
|
||||
M("second",15),
|
||||
// PARSING
|
||||
Z("s",Od),Z("ss",Od,Kd),ba(["s","ss"],fe);
|
||||
// MOMENTS
|
||||
var Ue=O("Seconds",!1);
|
||||
// FORMATTING
|
||||
U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),
|
||||
// ALIASES
|
||||
J("millisecond","ms"),
|
||||
// PRIORITY
|
||||
M("millisecond",16),
|
||||
// PARSING
|
||||
Z("S",Rd,Jd),Z("SS",Rd,Kd),Z("SSS",Rd,Ld);var Ve;for(Ve="SSSS";Ve.length<=9;Ve+="S")Z(Ve,Ud);for(Ve="S";Ve.length<=9;Ve+="S")ba(Ve,Ic);
|
||||
// MOMENTS
|
||||
var We=O("Milliseconds",!1);
|
||||
// FORMATTING
|
||||
U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Xe=r.prototype;Xe.add=Pe,Xe.calendar=Vb,Xe.clone=Wb,Xe.diff=bc,Xe.endOf=oc,Xe.format=gc,Xe.from=hc,Xe.fromNow=ic,Xe.to=jc,Xe.toNow=kc,Xe.get=R,Xe.invalidAt=xc,Xe.isAfter=Xb,Xe.isBefore=Yb,Xe.isBetween=Zb,Xe.isSame=$b,Xe.isSameOrAfter=_b,Xe.isSameOrBefore=ac,Xe.isValid=vc,Xe.lang=Re,Xe.locale=lc,Xe.localeData=mc,Xe.max=Ke,Xe.min=Je,Xe.parsingFlags=wc,Xe.set=S,Xe.startOf=nc,Xe.subtract=Qe,Xe.toArray=sc,Xe.toObject=tc,Xe.toDate=rc,Xe.toISOString=ec,Xe.inspect=fc,Xe.toJSON=uc,Xe.toString=dc,Xe.unix=qc,Xe.valueOf=pc,Xe.creationData=yc,
|
||||
// Year
|
||||
Xe.year=pe,Xe.isLeapYear=ra,
|
||||
// Week Year
|
||||
Xe.weekYear=Ac,Xe.isoWeekYear=Bc,
|
||||
// Quarter
|
||||
Xe.quarter=Xe.quarters=Gc,
|
||||
// Month
|
||||
Xe.month=ka,Xe.daysInMonth=la,
|
||||
// Week
|
||||
Xe.week=Xe.weeks=Ba,Xe.isoWeek=Xe.isoWeeks=Ca,Xe.weeksInYear=Dc,Xe.isoWeeksInYear=Cc,
|
||||
// Day
|
||||
Xe.date=Se,Xe.day=Xe.days=Ka,Xe.weekday=La,Xe.isoWeekday=Ma,Xe.dayOfYear=Hc,
|
||||
// Hour
|
||||
Xe.hour=Xe.hours=ze,
|
||||
// Minute
|
||||
Xe.minute=Xe.minutes=Te,
|
||||
// Second
|
||||
Xe.second=Xe.seconds=Ue,
|
||||
// Millisecond
|
||||
Xe.millisecond=Xe.milliseconds=We,
|
||||
// Offset
|
||||
Xe.utcOffset=Db,Xe.utc=Fb,Xe.local=Gb,Xe.parseZone=Hb,Xe.hasAlignedHourOffset=Ib,Xe.isDST=Jb,Xe.isLocal=Lb,Xe.isUtcOffset=Mb,Xe.isUtc=Nb,Xe.isUTC=Nb,
|
||||
// Timezone
|
||||
Xe.zoneAbbr=Jc,Xe.zoneName=Kc,
|
||||
// Deprecations
|
||||
Xe.dates=x("dates accessor is deprecated. Use date instead.",Se),Xe.months=x("months accessor is deprecated. Use month instead",ka),Xe.years=x("years accessor is deprecated. Use year instead",pe),Xe.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Eb),Xe.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kb);var Ye=C.prototype;Ye.calendar=D,Ye.longDateFormat=E,Ye.invalidDate=F,Ye.ordinal=G,Ye.preparse=Nc,Ye.postformat=Nc,Ye.relativeTime=H,Ye.pastFuture=I,Ye.set=A,
|
||||
// Month
|
||||
Ye.months=fa,Ye.monthsShort=ga,Ye.monthsParse=ia,Ye.monthsRegex=na,Ye.monthsShortRegex=ma,
|
||||
// Week
|
||||
Ye.week=ya,Ye.firstDayOfYear=Aa,Ye.firstDayOfWeek=za,
|
||||
// Day of Week
|
||||
Ye.weekdays=Fa,Ye.weekdaysMin=Ha,Ye.weekdaysShort=Ga,Ye.weekdaysParse=Ja,Ye.weekdaysRegex=Na,Ye.weekdaysShortRegex=Oa,Ye.weekdaysMinRegex=Pa,
|
||||
// Hours
|
||||
Ye.isPM=Va,Ye.meridiem=Wa,$a("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===u(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),
|
||||
// Side effect imports
|
||||
a.lang=x("moment.lang is deprecated. Use moment.locale instead.",$a),a.langData=x("moment.langData is deprecated. Use moment.localeData instead.",bb);var Ze=Math.abs,$e=ed("ms"),_e=ed("s"),af=ed("m"),bf=ed("h"),cf=ed("d"),df=ed("w"),ef=ed("M"),ff=ed("y"),gf=gd("milliseconds"),hf=gd("seconds"),jf=gd("minutes"),kf=gd("hours"),lf=gd("days"),mf=gd("months"),nf=gd("years"),of=Math.round,pf={s:45,// seconds to minute
|
||||
m:45,// minutes to hour
|
||||
h:22,// hours to day
|
||||
d:26,// days to month
|
||||
M:11},qf=Math.abs,rf=wb.prototype;
|
||||
// Deprecations
|
||||
// Side effect imports
|
||||
// FORMATTING
|
||||
// PARSING
|
||||
// Side effect imports
|
||||
return rf.abs=Wc,rf.add=Yc,rf.subtract=Zc,rf.as=cd,rf.asMilliseconds=$e,rf.asSeconds=_e,rf.asMinutes=af,rf.asHours=bf,rf.asDays=cf,rf.asWeeks=df,rf.asMonths=ef,rf.asYears=ff,rf.valueOf=dd,rf._bubble=_c,rf.get=fd,rf.milliseconds=gf,rf.seconds=hf,rf.minutes=jf,rf.hours=kf,rf.days=lf,rf.weeks=hd,rf.months=mf,rf.years=nf,rf.humanize=md,rf.toISOString=nd,rf.toString=nd,rf.toJSON=nd,rf.locale=lc,rf.localeData=mc,rf.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nd),rf.lang=Re,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Z("x",Vd),Z("X",Yd),ba("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),ba("x",function(a,b,c){c._d=new Date(u(a))}),a.version="2.17.1",b(sb),a.fn=Xe,a.min=ub,a.max=vb,a.now=Le,a.utc=k,a.unix=Lc,a.months=Rc,a.isDate=g,a.locale=$a,a.invalid=o,a.duration=Ob,a.isMoment=s,a.weekdays=Tc,a.parseZone=Mc,a.localeData=bb,a.isDuration=xb,a.monthsShort=Sc,a.weekdaysMin=Vc,a.defineLocale=_a,a.updateLocale=ab,a.locales=cb,a.weekdaysShort=Uc,a.normalizeUnits=K,a.relativeTimeRounding=kd,a.relativeTimeThreshold=ld,a.calendarFormat=Ub,a.prototype=Xe,a});
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/grid/provider'
|
||||
], function ($, Provider) {
|
||||
'use strict';
|
||||
|
||||
return Provider.extend({
|
||||
|
||||
initObservable: function () {
|
||||
this._super()
|
||||
.observe('loading');
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Initializes regular properties of instance.
|
||||
*
|
||||
* @returns {Abstract} Chainable.
|
||||
*/
|
||||
initConfig: function (config) {
|
||||
|
||||
config['update_url'] = window.mgzReportsConfig.update_url;
|
||||
|
||||
this._super(config);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
initLoadData: function () {
|
||||
this.setData({
|
||||
items: [],
|
||||
totalRecords: window.mgzReportsConfig.totalRecords
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Reloads data with current parameters.
|
||||
*
|
||||
* @returns {Promise} Reload promise object.
|
||||
*/
|
||||
reload: function (options) {
|
||||
this.loading(true);
|
||||
options = options || {};
|
||||
options['refresh'] = true;
|
||||
var request = this.storage().getData(this.params, options);
|
||||
|
||||
this.trigger('reload');
|
||||
|
||||
request
|
||||
.done(this.onReload)
|
||||
.fail(this.onError.bind(this));
|
||||
|
||||
return request;
|
||||
},
|
||||
|
||||
/**
|
||||
* Handles successful data reload.
|
||||
*
|
||||
* @param {Object} data - Retrieved data object.
|
||||
*/
|
||||
onReload: function (data) {
|
||||
this._super(data);
|
||||
this.loading(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
define([
|
||||
'mage/translate',
|
||||
'uiComponent'
|
||||
], function ($t, Component) {
|
||||
'use strict';
|
||||
|
||||
return Component.extend({
|
||||
|
||||
defaults: {
|
||||
template: 'Magezon_Core/report'
|
||||
},
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
initObservable: function () {
|
||||
this._super()
|
||||
.track({
|
||||
products: []
|
||||
});
|
||||
return this;
|
||||
},
|
||||
})
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
define([
|
||||
'Magento_Ui/js/form/element/ui-select'
|
||||
], function (Component) {
|
||||
'use strict';
|
||||
|
||||
var id = window.mgzReportsConfig.store_id ? window.mgzReportsConfig.store_id : 'all';
|
||||
|
||||
return Component.extend({
|
||||
|
||||
defaults: {
|
||||
value: id,
|
||||
multiple: false,
|
||||
options: window.mgzReportsConfig.stores,
|
||||
template: 'Magezon_Core/store-switcher',
|
||||
|
||||
exports: {
|
||||
value: '${ $.provider }:params.store_id'
|
||||
},
|
||||
|
||||
presets: {
|
||||
single: {
|
||||
showCheckbox: false,
|
||||
chipsEnabled: false,
|
||||
lastSelectable: true,
|
||||
closeBtn: false
|
||||
},
|
||||
optgroup: {
|
||||
showCheckbox: false,
|
||||
lastSelectable: true,
|
||||
optgroupLabels: true,
|
||||
openLevelsAction: false,
|
||||
labelsDecoration: true,
|
||||
showOpenLevelsActionIcon: false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
initConfig: function (config) {
|
||||
|
||||
config['options'] = window.mgzReportsConfig.stores;
|
||||
|
||||
this._super(config);
|
||||
|
||||
return this;
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/modal/confirm',
|
||||
'Magento_Ui/js/form/form',
|
||||
'Magento_Ui/js/form/adapter',
|
||||
'mage/translate'
|
||||
], function ($, confirm, form, adapter) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @param {String} url
|
||||
* @returns {Object}
|
||||
*/
|
||||
function getForm(url) {
|
||||
return $('<form>', {
|
||||
'action': url,
|
||||
'method': 'POST'
|
||||
}).append($('<input>', {
|
||||
'name': 'form_key',
|
||||
'value': window.FORM_KEY,
|
||||
'type': 'hidden'
|
||||
}));
|
||||
}
|
||||
|
||||
$('#save-button').click(function () {
|
||||
// $('.page-content').trigger('save');
|
||||
// console.log(adapter);
|
||||
|
||||
//form.save('http://google.com', {'demo': 1});
|
||||
});
|
||||
|
||||
$('#customer-edit-delete-button').click(function () {
|
||||
var msg = $.mage.__('Are you sure you want to do this?'),
|
||||
url = $('#customer-edit-delete-button').data('url');
|
||||
|
||||
confirm({
|
||||
'content': msg,
|
||||
'actions': {
|
||||
|
||||
/**
|
||||
* 'Confirm' action handler.
|
||||
*/
|
||||
confirm: function () {
|
||||
getForm(url).appendTo('body').submit();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
require([
|
||||
'Magezon_Core/js/tabs/buttons'
|
||||
]);
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="mgzreport-daterangepicker">
|
||||
<div type="text" class="admin__control-text" afterRender="onElementRender">
|
||||
<span class="date-range-field"></span>
|
||||
<a href="#" class="arrow"></a>
|
||||
</div>
|
||||
</div>
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<input class="admin__control-text" type="text"
|
||||
data-bind="
|
||||
event: {change: userChanges},
|
||||
value: value,
|
||||
hasFocus: focused,
|
||||
valueUpdate: valueUpdate,
|
||||
attr: {
|
||||
name: inputName,
|
||||
placeholder: placeholder,
|
||||
'aria-describedby': noticeId,
|
||||
id: uid
|
||||
}" disabled="true"/>
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
|
||||
<div class="admin__field mgz-filemanager" visible="visible" css="$data.additionalClasses">
|
||||
<label class="admin__field-label" if="$data.label" attr="for: uid">
|
||||
<span translate="label" attr="'data-config-scope': $data.scopeLabel" click="$data.chooseImage"></span>
|
||||
</label>
|
||||
|
||||
<div class="admin__field-control" css="'_with-tooltip': $data.tooltip">
|
||||
<div class="file-uploader" data-role="drop-zone">
|
||||
<div class="file-uploader-area">
|
||||
<input type="hidden" event="change: reloadImage" data-bind="value: value" attr="id: uid, name: inputName" disable="disabled"/>
|
||||
<button class="action-default scalable action-secondary" attr="for: uid" text="chooseBtnLabel" click="$data.chooseImage"></button>
|
||||
</div>
|
||||
|
||||
<render args="tooltipTpl" if="$data.tooltip"></render>
|
||||
|
||||
<div class="admin__field-note" if="$data.notice" attr="id: noticeId">
|
||||
<span html="notice"></span>
|
||||
</div>
|
||||
|
||||
<label class="admin__field-error" if="error" attr="for: uid" text="error"></label>
|
||||
|
||||
<div class="file-uploader-summary" visible="showPreview">
|
||||
<div class="file-uploader-preview">
|
||||
<a attr="href: fileUrl" target="_blank">
|
||||
<img
|
||||
class="preview-image"
|
||||
event="load: onPreviewLoad"
|
||||
attr="
|
||||
src: fileUrl,
|
||||
alt: fileName">
|
||||
</a>
|
||||
|
||||
<div class="actions">
|
||||
<button
|
||||
type="button"
|
||||
class="action-remove"
|
||||
data-role="delete-button"
|
||||
attr="title: $t('Delete image')"
|
||||
click="removeFile">
|
||||
<span translate="'Delete image'"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div text="fileName">
|
||||
<div class="file-uploader-meta">
|
||||
<text args="previewWidth"></text>x<text args="previewHeight"></text>
|
||||
<text args="fileSize"></text>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<render args="$data.service.template" if="$data.hasService()"></render>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,22 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<input type="text"
|
||||
data-bind="
|
||||
event: {change: userChanges},
|
||||
value: value,
|
||||
hasFocus: focused,
|
||||
valueUpdate: valueUpdate,
|
||||
attr: {
|
||||
name: inputName,
|
||||
placeholder: placeholder,
|
||||
'aria-describedby': noticeId,
|
||||
id: uid,
|
||||
disabled: disabled,
|
||||
style: $data.style,
|
||||
class: 'admin__control-text ' + $data.classes
|
||||
}"
|
||||
/>
|
||||
@@ -0,0 +1 @@
|
||||
<div data-bind="html: grid" if="visible"></div>
|
||||
@@ -0,0 +1,21 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<a
|
||||
class="action-menu-item"
|
||||
if="$col.isSingle($row()._rowIndex)"
|
||||
repeat="foreach: $col.getVisibleActions($row()._rowIndex), item: '$action'"
|
||||
click="$col.getActionHandler($action())"
|
||||
text="$action().label"
|
||||
attr="target: '_self', href: $action().href"></a>
|
||||
|
||||
<div class="action-select-wrap" if="$col.isMultiple($row()._rowIndex)" collapsible>
|
||||
<ul class="mgz-action-menu" css="_active: $collapsible.opened">
|
||||
<li repeat="foreach: $col.getVisibleActions($row()._rowIndex), item: '$action'">
|
||||
<a class="action-menu-item" click="$col.getActionHandler($action())" text="$action().label" attr="target: '_self', href: $action().href, 'data-action': 'item-' + $action().index"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div class="data-grid-cell-content" html="$row()[$col.index]"></div>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div class="admin__action-dropdown-wrap admin__data-grid-action-columns" collapsible>
|
||||
<button class="admin__action-dropdown" type="button" toggleCollapsible>
|
||||
<span class="admin__action-dropdown-text" translate="'Columns'"></span>
|
||||
</button>
|
||||
<div class="admin__action-dropdown-menu admin__data-grid-action-columns-menu" css="_overflow: hasOverflow()">
|
||||
<div class="admin__action-dropdown-menu-header" text="getHeaderMessage()"></div>
|
||||
<div class="admin__action-dropdown-menu-content">
|
||||
<div repeat="foreach: elems, item: '$col'" attr="class: 'admin__field-option ' + 'col_' + $col().index">
|
||||
<input class="admin__control-checkbox" type="checkbox"
|
||||
disable="isDisabled($col())"
|
||||
ko-checked="$col().visible"
|
||||
attr="id: ++ko.uid"/>
|
||||
<label class="admin__field-label"
|
||||
translate="$col().label"
|
||||
attr="for: ko.uid, title: $col().label"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="admin__action-dropdown-menu-footer">
|
||||
<div class="admin__action-dropdown-footer-secondary-actions">
|
||||
<button class="action-tertiary" type="button" click="reset" translate="'Reset'"></button>
|
||||
</div>
|
||||
<div class="admin__action-dropdown-footer-main-actions">
|
||||
<button class="action-tertiary" type="button" click="cancel" translate="'Cancel'" closeCollapsible></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="mgzreport-header" if="getRegion('header')().length">
|
||||
<each args="getRegion('header')" render="" />
|
||||
</div>
|
||||
<div class="mgzreport-before-content" if="getRegion('beforeMainContent')().length">
|
||||
<each args="getRegion('beforeMainContent')" render="" />
|
||||
</div>
|
||||
<div class="mgzreport-maincontent" css="'has-sidebar': getRegion('sidebar')().length">
|
||||
<div class="mgzreport-sidebar" if="getRegion('sidebar')().length">
|
||||
<each args="getRegion('sidebar')" render="" />
|
||||
</div>
|
||||
<div class="mgzreport-content" if="getRegion('content')().length">
|
||||
<each args="getRegion('content')" render="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="mgzreport-footer" if="getRegion('footer')().length">
|
||||
<each args="getRegion('footer')" render="" />
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
<div id="mgzreport-store">
|
||||
<div class="admin__action-dropdown-wrap" data-bind="click: function(data, event) {
|
||||
toggleListVisible(data, event)
|
||||
},
|
||||
css: {
|
||||
active: listVisible
|
||||
},
|
||||
outerClick: outerClick.bind($data)">
|
||||
<button class="admin__action-dropdown" type="button" data-toggle="dropdown">
|
||||
<span class="admin__action-dropdown-text">
|
||||
<span data-bind="text: setCaption()"></span>
|
||||
</span>
|
||||
</button>
|
||||
<ul class="admin__action-dropdown-menu" data-target="dropdown">
|
||||
<!-- ko foreach: { data: options, as: 'option'} -->
|
||||
<li class="admin__action-multiselect-menu-inner-item _root"
|
||||
data-bind="css: { _parent: $data.optgroup }"
|
||||
data-role="option-group">
|
||||
<div class="action-menu-item"
|
||||
data-bind="
|
||||
css: {
|
||||
_selected: $parent.isSelected(option.value),
|
||||
_hover: $parent.isHovered(option, $element)
|
||||
},
|
||||
click: function(data, event){
|
||||
$parent.toggleOptionSelected($data, $index(), event);
|
||||
},
|
||||
clickBubble: false
|
||||
">
|
||||
<label class="admin__action-multiselect-label">
|
||||
<span data-bind="text: option.label"></span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- ko if: $data.optgroup -->
|
||||
<!-- ko template: {name: $parent.optgroupTmpl, data: {root: $parent, current: $data}} -->
|
||||
<!-- /ko -->
|
||||
<!-- /ko-->
|
||||
</li>
|
||||
<!-- /ko -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user