Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

83
web/node_modules/antd/lib/table/style/bordered.less generated vendored Normal file
View File

@@ -0,0 +1,83 @@
@import './index';
@import './size';
@table-border: @border-width-base @border-style-base @border-color-split;
.@{table-prefix-cls}.@{table-prefix-cls}-bordered {
// ============================ Title =============================
.@{table-prefix-cls}-title {
border: @table-border;
border-bottom: 0;
}
// ============================= Cell =============================
thead > tr > th,
tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td {
border-right: @table-border;
}
// Fixed right should provides additional border
.@{table-prefix-cls}-cell-fix-right-first::after {
border-right: @table-border;
}
// ============================ Header ============================
table > {
thead {
> tr:not(:last-child) > th {
border-bottom: @border-width-base @border-style-base @border-color-split;
}
}
}
// =========================== Content ============================
.@{table-prefix-cls}-container {
border: @table-border;
border-right: 0;
border-bottom: 0;
}
// ========================== Expandable ==========================
.@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical (-@table-padding-horizontal - @border-width-base);
&::after {
position: absolute;
top: 0;
right: @border-width-base;
bottom: 0;
border-right: @table-border;
content: '';
}
}
&.@{table-prefix-cls}-scroll-horizontal {
tr.@{table-prefix-cls}-expanded-row,
tr.@{table-prefix-cls}-placeholder {
> td {
border-right: 0;
}
}
}
// Size related
&.@{table-prefix-cls}-middle {
.@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-md (-@table-padding-horizontal-md - @border-width-base);
}
}
&.@{table-prefix-cls}-small {
.@{table-prefix-cls}-expanded-row-fixed {
margin: -@table-padding-vertical-sm (-@table-padding-horizontal-sm - @border-width-base);
}
}
// ============================ Footer ============================
.@{table-prefix-cls}-footer {
border: @table-border;
border-top: 0;
}
}

21
web/node_modules/antd/lib/table/style/css.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
require("../../style/index.css");
require("./index.css");
require("../../button/style/css");
require("../../empty/style/css");
require("../../radio/style/css");
require("../../checkbox/style/css");
require("../../dropdown/style/css");
require("../../spin/style/css");
require("../../pagination/style/css");
require("../../tooltip/style/css");

724
web/node_modules/antd/lib/table/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,724 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-table.ant-table-middle .ant-table-title,
.ant-table.ant-table-middle .ant-table-footer,
.ant-table.ant-table-middle .ant-table-thead > tr > th,
.ant-table.ant-table-middle .ant-table-tbody > tr > td,
.ant-table.ant-table-middle tfoot > tr > th,
.ant-table.ant-table-middle tfoot > tr > td {
padding: 12px 8px;
}
.ant-table.ant-table-middle .ant-table-thead th.ant-table-column-has-sorters {
padding: 0;
}
.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column {
margin: -12px -8px;
}
.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column-title {
padding: 12px 2.3em 12px 8px;
}
.ant-table.ant-table-middle .ant-table-thead .ant-table-column-sorters {
padding: 12px 8px;
}
.ant-table.ant-table-middle .ant-table-expanded-row-fixed {
margin: -12px -8px;
}
.ant-table.ant-table-small .ant-table-title,
.ant-table.ant-table-small .ant-table-footer,
.ant-table.ant-table-small .ant-table-thead > tr > th,
.ant-table.ant-table-small .ant-table-tbody > tr > td,
.ant-table.ant-table-small tfoot > tr > th,
.ant-table.ant-table-small tfoot > tr > td {
padding: 8px 8px;
}
.ant-table.ant-table-small .ant-table-thead th.ant-table-column-has-sorters {
padding: 0;
}
.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column {
margin: -8px -8px;
}
.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column-title {
padding: 8px 2.3em 8px 8px;
}
.ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {
padding: 8px 8px;
}
.ant-table.ant-table-small .ant-table-expanded-row-fixed {
margin: -8px -8px;
}
.ant-table-small .ant-table-thead > tr > th {
background-color: #fafafa;
}
.ant-table.ant-table-bordered .ant-table-title {
border: 1px solid #f0f0f0;
border-bottom: 0;
}
.ant-table.ant-table-bordered thead > tr > th,
.ant-table.ant-table-bordered tbody > tr > td,
.ant-table.ant-table-bordered tfoot > tr > th,
.ant-table.ant-table-bordered tfoot > tr > td {
border-right: 1px solid #f0f0f0;
}
.ant-table.ant-table-bordered .ant-table-cell-fix-right-first::after {
border-right: 1px solid #f0f0f0;
}
.ant-table.ant-table-bordered table thead > tr:not(:last-child) > th {
border-bottom: 1px solid #f0f0f0;
}
.ant-table.ant-table-bordered .ant-table-container {
border: 1px solid #f0f0f0;
border-right: 0;
border-bottom: 0;
}
.ant-table.ant-table-bordered .ant-table-expanded-row-fixed {
margin: -16px -17px;
}
.ant-table.ant-table-bordered .ant-table-expanded-row-fixed::after {
position: absolute;
top: 0;
right: 1px;
bottom: 0;
border-right: 1px solid #f0f0f0;
content: '';
}
.ant-table.ant-table-bordered.ant-table-scroll-horizontal tr.ant-table-expanded-row > td,
.ant-table.ant-table-bordered.ant-table-scroll-horizontal tr.ant-table-placeholder > td {
border-right: 0;
}
.ant-table.ant-table-bordered.ant-table-middle .ant-table-expanded-row-fixed {
margin: -12px -9px;
}
.ant-table.ant-table-bordered.ant-table-small .ant-table-expanded-row-fixed {
margin: -8px -9px;
}
.ant-table.ant-table-bordered .ant-table-footer {
border: 1px solid #f0f0f0;
border-top: 0;
}
.ant-table-wrapper::before {
display: table;
content: '';
}
.ant-table-wrapper::after {
display: table;
clear: both;
content: '';
}
.ant-table {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
position: relative;
z-index: 0;
clear: both;
background: #fff;
border-radius: 2px;
}
.ant-table table {
width: 100%;
text-align: left;
border-radius: 2px 2px 0 0;
border-collapse: separate;
border-spacing: 0;
}
.ant-table-thead > tr > th,
.ant-table-tbody > tr > td,
.ant-table tfoot > tr > th,
.ant-table tfoot > tr > td {
position: relative;
padding: 16px 16px;
overflow-wrap: break-word;
}
.ant-table-cell-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
}
.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,
.ant-table-cell-ellipsis.ant-table-cell-fix-right-first {
overflow: visible;
}
.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,
.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.ant-table-title {
padding: 16px 16px;
}
.ant-table-footer {
padding: 16px 16px;
color: rgba(0, 0, 0, 0.85);
background: #fafafa;
}
.ant-table-thead > tr > th {
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
text-align: left;
background: #fafafa;
border-bottom: 1px solid #f0f0f0;
-webkit-transition: background 0.3s ease;
transition: background 0.3s ease;
}
.ant-table-thead > tr > th[colspan]:not([colspan='1']) {
text-align: center;
}
.ant-table-thead > tr:not(:last-child) > th[colspan] {
border-bottom: 0;
}
.ant-table-tbody > tr > td {
border-bottom: 1px solid #f0f0f0;
-webkit-transition: background 0.3s;
transition: background 0.3s;
}
.ant-table-tbody > tr.ant-table-row:hover > td {
background: #fafafa;
}
.ant-table-tbody > tr.ant-table-row-selected > td {
background: #e6f7ff;
}
.ant-table-tbody > tr.ant-table-row-selected:hover > td {
background: #e6f7ff;
}
.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table {
margin: -16px -16px -16px 33px;
}
.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table td {
background: transparent;
}
.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td {
border-bottom: 0;
}
.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:first-child,
.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child {
border-radius: 0;
}
.ant-table tfoot > tr > th,
.ant-table tfoot > tr > td {
border-bottom: 1px solid #f0f0f0;
}
.ant-table-pagination.ant-pagination {
margin: 16px 0;
}
.ant-table-pagination-left {
float: left;
}
.ant-table-pagination-center {
text-align: center;
}
.ant-table-pagination-right {
float: right;
}
.ant-table-thead th.ant-table-column-has-sorters {
padding: 0;
cursor: pointer;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-table-thead th.ant-table-column-has-sorters:hover {
background: #f2f2f2;
}
.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container {
background: #f7f7f7;
}
.ant-table-thead th.ant-table-column-sort {
background: #f5f5f5;
}
td.ant-table-column-sort {
background: #fafafa;
}
.ant-table-column-sorters-with-tooltip {
display: inline-block;
width: 100%;
}
.ant-table-column-sorters {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 16px 16px;
}
.ant-table-column-sorter {
margin-top: 0.15em;
margin-bottom: -0.15em;
margin-left: 8px;
color: #bfbfbf;
}
.ant-table-column-sorter-full {
margin-top: -0.2em;
margin-bottom: 0;
}
.ant-table-column-sorter-inner {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.ant-table-column-sorter-up,
.ant-table-column-sorter-down {
display: inline-block;
font-size: 11px;
}
.ant-table-column-sorter-up.active,
.ant-table-column-sorter-down.active {
color: #1890ff;
}
.ant-table-column-sorter-up + .ant-table-column-sorter-down {
margin-top: -0.3em;
}
.ant-table-filter-column {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin: -16px -16px;
}
.ant-table-filter-column-title {
-webkit-box-flex: 1;
-ms-flex: auto;
flex: auto;
padding: 16px 2.3em 16px 16px;
}
.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column {
margin: 0;
}
.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {
padding: 0 2.3em 0 0;
}
.ant-table-filter-trigger-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-ms-flex: none;
flex: none;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
cursor: pointer;
-webkit-transition: background-color 0.3s;
transition: background-color 0.3s;
}
.ant-table-filter-trigger-container-open,
.ant-table-filter-trigger-container:hover,
.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container:hover {
background: #e5e5e5;
}
.ant-table-filter-trigger {
display: block;
width: 2.3em;
color: #bfbfbf;
font-size: 12px;
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.ant-table-filter-trigger .anticon {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.ant-table-filter-trigger-container-open .ant-table-filter-trigger,
.ant-table-filter-trigger:hover {
color: rgba(0, 0, 0, 0.45);
}
.ant-table-filter-trigger.active {
color: #1890ff;
}
.ant-table-filter-dropdown {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
min-width: 120px;
background-color: #fff;
border-radius: 2px;
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}
.ant-table-filter-dropdown .ant-dropdown-menu {
max-height: calc(100vh - 130px);
overflow-x: hidden;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.ant-table-filter-dropdown-submenu > ul {
max-height: calc(100vh - 130px);
overflow-x: hidden;
overflow-y: auto;
}
.ant-table-filter-dropdown .ant-checkbox-wrapper + span,
.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {
padding-left: 8px;
}
.ant-table-filter-dropdown-btns {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 7px 8px 7px 3px;
overflow: hidden;
background-color: inherit;
border-top: 1px solid #f0f0f0;
}
.ant-table colgroup > col.ant-table-selection-col {
width: 60px;
}
table tr th.ant-table-selection-column,
table tr td.ant-table-selection-column {
text-align: center;
}
table tr th.ant-table-selection-column .ant-radio-wrapper,
table tr td.ant-table-selection-column .ant-radio-wrapper {
margin-right: 0;
}
.ant-table-selection {
position: relative;
}
.ant-table-selection-extra {
position: absolute;
top: 0;
right: -10px;
cursor: pointer;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-table-selection-extra .anticon {
display: inline-block;
font-size: 10px;
color: #bfbfbf;
}
.ant-table-selection-extra .anticon:hover {
color: #a6a6a6;
}
.ant-table-expand-icon-col {
width: 48px;
}
.ant-table-row-expand-icon-cell {
text-align: center;
}
.ant-table-row-indent {
float: left;
height: 1px;
}
.ant-table-row-expand-icon {
color: #1890ff;
text-decoration: none;
cursor: pointer;
-webkit-transition: color 0.3s;
transition: color 0.3s;
position: relative;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
float: left;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 17px;
height: 17px;
padding: 0;
color: inherit;
line-height: 12px;
vertical-align: -2px;
background: #fff;
border: 1px solid #f0f0f0;
border-radius: 2px;
outline: none;
-webkit-transition: all 0.3s;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-table-row-expand-icon:focus,
.ant-table-row-expand-icon:hover {
color: #40a9ff;
}
.ant-table-row-expand-icon:active {
color: #096dd9;
}
.ant-table-row-expand-icon:focus,
.ant-table-row-expand-icon:hover,
.ant-table-row-expand-icon:active {
border-color: currentColor;
}
.ant-table-row-expand-icon::before,
.ant-table-row-expand-icon::after {
position: absolute;
background: currentColor;
-webkit-transition: -webkit-transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
content: '';
}
.ant-table-row-expand-icon::before {
top: 7px;
right: 3px;
left: 3px;
height: 1px;
}
.ant-table-row-expand-icon::after {
top: 3px;
bottom: 3px;
left: 7px;
width: 1px;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.ant-table-row-expand-icon-collapsed::before {
-webkit-transform: rotate(-180deg);
transform: rotate(-180deg);
}
.ant-table-row-expand-icon-collapsed::after {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.ant-table-row-expand-icon-spaced {
background: transparent;
border: 0;
}
.ant-table-row-expand-icon-spaced::before,
.ant-table-row-expand-icon-spaced::after {
display: none;
content: none;
}
.ant-table-row-indent + .ant-table-row-expand-icon {
margin-top: 2.5005px;
margin-right: 8px;
}
tr.ant-table-expanded-row > td,
tr.ant-table-expanded-row:hover > td {
background: #fbfbfb;
}
.ant-table .ant-table-expanded-row-fixed {
position: relative;
margin: -16px -16px;
padding: 16px 16px;
}
.ant-table-tbody > tr.ant-table-placeholder {
text-align: center;
}
.ant-table-tbody > tr.ant-table-placeholder:hover > td {
background: #fff;
}
.ant-table-cell-fix-left,
.ant-table-cell-fix-right {
position: -webkit-sticky !important;
position: sticky !important;
z-index: 2;
background: #fff;
}
.ant-table-cell-fix-left-first::after,
.ant-table-cell-fix-left-last::after {
position: absolute;
top: 0;
right: 0;
bottom: -1px;
width: 30px;
-webkit-transform: translateX(100%);
transform: translateX(100%);
-webkit-transition: -webkit-box-shadow 0.3s;
transition: -webkit-box-shadow 0.3s;
transition: box-shadow 0.3s;
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
content: '';
pointer-events: none;
}
.ant-table-cell-fix-right-first::after,
.ant-table-cell-fix-right-last::after {
position: absolute;
top: 0;
bottom: -1px;
left: 0;
width: 30px;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
-webkit-transition: -webkit-box-shadow 0.3s;
transition: -webkit-box-shadow 0.3s;
transition: box-shadow 0.3s;
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
content: '';
pointer-events: none;
}
.ant-table .ant-table-container::before,
.ant-table .ant-table-container::after {
position: absolute;
top: 0;
bottom: 0;
z-index: 1;
width: 30px;
-webkit-transition: -webkit-box-shadow 0.3s;
transition: -webkit-box-shadow 0.3s;
transition: box-shadow 0.3s;
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
content: '';
pointer-events: none;
}
.ant-table .ant-table-container::before {
left: 0;
}
.ant-table .ant-table-container::after {
right: 0;
}
.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container {
position: relative;
}
.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container::before {
-webkit-box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
}
.ant-table-ping-left .ant-table-cell-fix-left-first::after,
.ant-table-ping-left .ant-table-cell-fix-left-last::after {
-webkit-box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
}
.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container {
position: relative;
}
.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after {
-webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
}
.ant-table-ping-right .ant-table-cell-fix-right-first::after,
.ant-table-ping-right .ant-table-cell-fix-right-last::after {
-webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
}
@media all and (-ms-high-contrast: none) {
.ant-table-ping-left .ant-table-cell-fix-left-last::after {
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
.ant-table-ping-right .ant-table-cell-fix-right-first::after {
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
}
.ant-table {
/* title + table */
/* table */
/* table + footer */
}
.ant-table-title {
border-radius: 2px 2px 0 0;
}
.ant-table-title + .ant-table-container {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {
border-radius: 0;
}
.ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {
border-radius: 0;
}
.ant-table-container {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.ant-table-container table > thead > tr:first-child th:first-child {
border-top-left-radius: 2px;
}
.ant-table-container table > thead > tr:first-child th:last-child {
border-top-right-radius: 2px;
}
.ant-table-footer {
border-radius: 0 0 2px 2px;
}
.ant-table-wrapper-rtl {
direction: rtl;
}
.ant-table-rtl {
direction: rtl;
}
.ant-table-wrapper-rtl .ant-table table {
text-align: right;
}
.ant-table-wrapper-rtl .ant-table-thead > tr > th[colspan]:not([colspan='1']) {
text-align: center;
}
.ant-table-wrapper-rtl .ant-table-thead > tr > th {
text-align: right;
}
.ant-table-tbody > tr .ant-table.ant-table-rtl {
margin: -16px 33px -16px -16px;
}
.ant-table-wrapper-rtl .ant-table-pagination.ant-pagination {
float: left;
}
.ant-table-wrapper-rtl .ant-table-column-sorter {
margin-right: 8px;
margin-left: 0;
}
.ant-table-wrapper-rtl .ant-table-filter-column-title {
padding: 16px 16px 16px 2.3em;
}
.ant-table-wrapper-rtl .ant-table-filter-trigger-container {
right: auto;
left: 0;
}
.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper + span,
.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {
padding-right: 8px;
padding-left: 0;
}
.ant-table-wrapper-rtl .ant-table-selection {
text-align: center;
}
.ant-table-wrapper-rtl .ant-table-selection-extra {
right: auto;
left: 0;
-webkit-transform: translate(-100%, -50%);
transform: translate(-100%, -50%);
}
.ant-table-wrapper-rtl .ant-table-row-indent {
float: right;
}
.ant-table-wrapper-rtl .ant-table-row-expand-icon {
float: right;
}
.ant-table-wrapper-rtl .ant-table-row-indent + .ant-table-row-expand-icon {
margin-right: 0;
margin-left: 8px;
}

10
web/node_modules/antd/lib/table/style/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import '../../style/index.less';
import './index.less';
import '../../button/style';
import '../../empty/style';
import '../../radio/style';
import '../../checkbox/style';
import '../../dropdown/style';
import '../../spin/style';
import '../../pagination/style';
import '../../tooltip/style';

21
web/node_modules/antd/lib/table/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
require("../../style/index.less");
require("./index.less");
require("../../button/style");
require("../../empty/style");
require("../../radio/style");
require("../../checkbox/style");
require("../../dropdown/style");
require("../../spin/style");
require("../../pagination/style");
require("../../tooltip/style");

609
web/node_modules/antd/lib/table/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,609 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import './size';
@import './bordered';
@table-prefix-cls: ~'@{ant-prefix}-table';
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
@table-header-icon-color: #bfbfbf;
@table-header-icon-color-hover: darken(@table-header-icon-color, 10%);
@table-header-sort-active-filter-bg: lighten(@table-header-sort-active-bg, 2%);
@table-selection-column-width: 60px;
.@{table-prefix-cls}-wrapper {
.clearfix;
}
.@{table-prefix-cls} {
.reset-component;
position: relative;
z-index: 0;
clear: both;
background: @table-bg;
border-radius: @border-radius-base;
// https://github.com/ant-design/ant-design/issues/17611
table {
width: 100%;
text-align: left;
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
border-collapse: separate;
border-spacing: 0;
}
// ============================= Cell =============================
&-thead > tr > th,
&-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td {
position: relative;
padding: @table-padding-vertical @table-padding-horizontal;
overflow-wrap: break-word;
}
&-cell-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
// Fixed first or last should special process
&.@{table-prefix-cls}-cell-fix-left-last,
&.@{table-prefix-cls}-cell-fix-right-first {
overflow: visible;
.@{table-prefix-cls}-cell-content {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
// ============================ Title =============================
&-title {
padding: @table-padding-vertical @table-padding-horizontal;
}
// ============================ Footer ============================
&-footer {
padding: @table-padding-vertical @table-padding-horizontal;
color: @table-footer-color;
background: @table-footer-bg;
}
// ============================ Header ============================
&-thead {
> tr {
> th {
color: @table-header-color;
font-weight: 500;
text-align: left;
background: @table-header-bg;
border-bottom: @border-width-base @border-style-base @border-color-split;
transition: background 0.3s ease;
&[colspan]:not([colspan='1']) {
text-align: center;
}
}
}
> tr:not(:last-child) > th {
&[colspan] {
border-bottom: 0;
}
}
}
// ============================= Body =============================
&-tbody {
> tr {
> td {
border-bottom: @border-width-base @border-style-base @border-color-split;
transition: background 0.3s;
}
&.@{table-prefix-cls}-row:hover {
> td {
background: @table-row-hover-bg;
}
}
&.@{table-prefix-cls}-row-selected {
> td {
background: @table-selected-row-bg;
}
&:hover {
> td {
background: @table-selected-row-hover-bg;
}
}
}
// ========================= Nest Table ===========================
.@{table-prefix-cls}-wrapper:only-child {
.@{table-prefix-cls} {
margin: -@table-padding-vertical -@table-padding-horizontal -@table-padding-vertical (@table-padding-horizontal +
ceil(@font-size-sm * 1.4));
td {
background: transparent;
}
&-tbody > tr:last-child > td {
border-bottom: 0;
&:first-child,
&:last-child {
border-radius: 0;
}
}
}
}
}
}
// =========================== Summary ============================
tfoot {
> tr {
> th,
> td {
border-bottom: @border-width-base @border-style-base @border-color-split;
}
}
}
// ========================== Pagination ==========================
&-pagination.@{ant-prefix}-pagination {
margin: 16px 0;
}
&-pagination {
&-left {
float: left;
}
&-center {
text-align: center;
}
&-right {
float: right;
}
}
// ================================================================
// = Function =
// ================================================================
// ============================ Sorter ============================
&-thead th.@{table-prefix-cls}-column-has-sorters {
padding: 0;
cursor: pointer;
transition: all 0.3s;
&:hover {
background: @table-header-sort-active-bg;
.@{table-prefix-cls}-filter-trigger-container {
background: @table-header-sort-active-filter-bg;
}
}
}
&-thead th.@{table-prefix-cls}-column-sort {
background: @table-header-sort-bg;
}
td&-column-sort {
background: @table-body-sort-bg;
}
&-column-sorters-with-tooltip {
display: inline-block;
width: 100%;
}
&-column-sorters {
display: inline-flex;
align-items: center;
padding: @table-padding-vertical @table-padding-horizontal;
}
&-column-sorter {
margin-top: 0.15em;
margin-bottom: -0.15em;
margin-left: @padding-xs;
color: @table-header-icon-color;
&-full {
margin-top: -0.2em;
margin-bottom: 0;
}
&-inner {
display: inline-flex;
flex-direction: column;
align-items: center;
}
&-up,
&-down {
.iconfont-size-under-12px(11px);
&.active {
color: @primary-color;
}
}
&-up + &-down {
margin-top: -0.3em;
}
}
// ============================ Filter ============================
&-filter-column {
display: flex;
align-items: center;
margin: -@table-padding-vertical -@table-padding-horizontal;
}
&-filter-column-title {
flex: auto;
padding: @table-padding-vertical 2.3em @table-padding-vertical @table-padding-horizontal;
}
// Remove padding when sorter also provided
&-thead tr th.@{table-prefix-cls}-column-has-sorters {
.@{table-prefix-cls}-filter-column {
margin: 0;
}
.@{table-prefix-cls}-filter-column-title {
padding: 0 2.3em 0 0;
}
}
&-filter-trigger-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
display: flex;
flex: none;
align-items: stretch;
align-self: stretch;
cursor: pointer;
transition: background-color 0.3s;
&-open,
&:hover,
.@{table-prefix-cls}-thead th.@{table-prefix-cls}-column-has-sorters:hover &:hover {
background: @table-header-filter-active-bg;
}
}
&-filter-trigger {
display: block;
width: 2.3em;
color: @table-header-icon-color;
font-size: @font-size-sm;
transition: color 0.3s;
.@{iconfont-css-prefix} {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.@{table-prefix-cls}-filter-trigger-container-open &,
&:hover {
color: @text-color-secondary;
}
&.active {
color: @primary-color;
}
}
// Dropdown
&-filter-dropdown {
.reset-component;
// Reset menu
.@{dropdown-prefix-cls}-menu {
// https://github.com/ant-design/ant-design/issues/4916
// https://github.com/ant-design/ant-design/issues/19542
max-height: calc(100vh - 130px);
overflow-x: hidden;
border: 0;
box-shadow: none;
}
min-width: 120px;
background-color: @table-filter-dropdown-bg;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
&-submenu > ul {
max-height: calc(100vh - 130px);
overflow-x: hidden;
overflow-y: auto;
}
// Checkbox
&,
&-submenu {
.@{ant-prefix}-checkbox-wrapper + span {
padding-left: 8px;
}
}
// Operation
&-btns {
display: flex;
justify-content: space-between;
padding: 7px 8px 7px 3px;
overflow: hidden;
background-color: @table-filter-btns-bg;
border-top: @border-width-base @border-style-base @border-color-split;
}
}
// ========================== Selections ==========================
colgroup {
> col.@{table-prefix-cls}-selection-col {
width: @table-selection-column-width;
}
}
table tr th&-selection-column,
table tr td&-selection-column {
text-align: center;
.@{ant-prefix}-radio-wrapper {
margin-right: 0;
}
}
&-selection {
position: relative;
&-extra {
position: absolute;
top: 0;
right: -10px;
cursor: pointer;
transition: all 0.3s;
.@{iconfont-css-prefix} {
.iconfont-size-under-12px(10px);
color: @table-header-icon-color;
&:hover {
color: @table-header-icon-color-hover;
}
}
}
}
// ========================== Expandable ==========================
&-expand-icon-col {
width: 48px;
}
&-row-expand-icon-cell {
text-align: center;
}
&-row-indent {
float: left;
height: 1px;
}
&-row-expand-icon {
.operation-unit();
position: relative;
display: inline-flex;
float: left;
box-sizing: border-box;
width: ceil(@font-size-sm * 1.4);
height: ceil(@font-size-sm * 1.4);
padding: 0;
color: inherit;
line-height: @font-size-sm;
vertical-align: floor((@font-size-base - ceil(@font-size-sm * 1.4)) / 2);
background: @table-expand-icon-bg;
border: @border-width-base @border-style-base @border-color-split;
border-radius: @border-radius-base;
outline: none;
transition: all 0.3s;
user-select: none;
&:focus,
&:hover,
&:active {
border-color: currentColor;
}
&::before,
&::after {
position: absolute;
background: currentColor;
transition: transform 0.3s ease-out;
content: '';
}
&::before {
top: 7px;
right: 3px;
left: 3px;
height: @border-width-base;
}
&::after {
top: 3px;
bottom: 3px;
left: 7px;
width: @border-width-base;
transform: rotate(90deg);
}
// Motion effect
&-collapsed::before {
transform: rotate(-180deg);
}
&-collapsed::after {
transform: rotate(0deg);
}
&-spaced {
&::before,
&::after {
display: none;
content: none;
}
background: transparent;
border: 0;
}
.@{table-prefix-cls}-row-indent + & {
margin-top: (@font-size-base * @line-height-base - ceil(@font-size-sm * 1.4)) / 2;
margin-right: @padding-xs;
}
}
tr&-expanded-row {
&,
&:hover {
> td {
background: @table-expanded-row-bg;
}
}
}
// With fixed
.@{table-prefix-cls}-expanded-row-fixed {
position: relative;
margin: -@table-padding-vertical -@table-padding-horizontal;
padding: @table-padding-vertical @table-padding-horizontal;
}
// ========================= Placeholder ==========================
&-tbody > tr&-placeholder {
text-align: center;
&:hover {
> td {
background: @component-background;
}
}
}
// ============================ Fixed =============================
&-cell-fix-left,
&-cell-fix-right {
position: -webkit-sticky !important;
position: sticky !important;
z-index: 2;
background: @table-bg;
}
&-cell-fix-left-first::after,
&-cell-fix-left-last::after {
position: absolute;
top: 0;
right: 0;
bottom: -1px;
width: 30px;
transform: translateX(100%);
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
&-cell-fix-right-first::after,
&-cell-fix-right-last::after {
position: absolute;
top: 0;
bottom: -1px;
left: 0;
width: 30px;
transform: translateX(-100%);
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
.@{table-prefix-cls}-container {
&::before,
&::after {
position: absolute;
top: 0;
bottom: 0;
z-index: 1;
width: 30px;
transition: box-shadow 0.3s;
content: '';
pointer-events: none;
}
&::before {
left: 0;
}
&::after {
right: 0;
}
}
&-ping-left {
&:not(.@{table-prefix-cls}-has-fix-left) .@{table-prefix-cls}-container {
position: relative;
&::before {
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
}
}
.@{table-prefix-cls}-cell-fix-left-first::after,
.@{table-prefix-cls}-cell-fix-left-last::after {
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
}
}
&-ping-right {
&:not(.@{table-prefix-cls}-has-fix-right) .@{table-prefix-cls}-container {
position: relative;
&::after {
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
.@{table-prefix-cls}-cell-fix-right-first::after,
.@{table-prefix-cls}-cell-fix-right-last::after {
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
}
}
}
@media all and (-ms-high-contrast: none) {
.@{table-prefix-cls} {
&-ping-left {
.@{table-prefix-cls}-cell-fix-left-last::after {
box-shadow: none !important;
}
}
&-ping-right {
.@{table-prefix-cls}-cell-fix-right-first::after {
box-shadow: none !important;
}
}
}
}
@import './radius';
@import './rtl';

45
web/node_modules/antd/lib/table/style/radius.less generated vendored Normal file
View File

@@ -0,0 +1,45 @@
// ================================================================
// = Border Radio =
// ================================================================
.@{table-prefix-cls} {
/* title + table */
&-title {
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
}
&-title + &-container {
border-top-left-radius: 0;
border-top-right-radius: 0;
table > thead > tr:first-child {
th:first-child {
border-radius: 0;
}
th:last-child {
border-radius: 0;
}
}
}
/* table */
&-container {
border-top-left-radius: @table-border-radius-base;
border-top-right-radius: @table-border-radius-base;
table > thead > tr:first-child {
th:first-child {
border-top-left-radius: @table-border-radius-base;
}
th:last-child {
border-top-right-radius: @table-border-radius-base;
}
}
}
/* table + footer */
&-footer {
border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
}
}

134
web/node_modules/antd/lib/table/style/rtl.less generated vendored Normal file
View File

@@ -0,0 +1,134 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@table-prefix-cls: ~'@{ant-prefix}-table';
@table-wrapepr-rtl-cls: ~'@{table-prefix-cls}-wrapper-rtl';
.@{table-prefix-cls}-wrapper {
&-rtl {
direction: rtl;
}
}
.@{table-prefix-cls} {
&-rtl {
direction: rtl;
}
table {
.@{table-wrapepr-rtl-cls} & {
text-align: right;
}
}
// ============================ Header ============================
&-thead {
> tr {
> th {
&[colspan]:not([colspan='1']) {
.@{table-wrapepr-rtl-cls} & {
text-align: center;
}
}
.@{table-wrapepr-rtl-cls} & {
text-align: right;
}
}
}
}
// ============================= Body =============================
&-tbody {
> tr {
// ========================= Nest Table ===========================
.@{table-prefix-cls} {
&.@{table-prefix-cls}-rtl {
margin: -@table-padding-vertical (@table-padding-horizontal + ceil(@font-size-sm * 1.4)) -@table-padding-vertical -@table-padding-horizontal;
}
}
}
}
// ========================== Pagination ==========================
&-pagination.@{ant-prefix}-pagination {
.@{table-wrapepr-rtl-cls} & {
float: left;
}
}
// ================================================================
// = Function =
// ================================================================
// ============================ Sorter ============================
&-column-sorter {
.@{table-wrapepr-rtl-cls} & {
margin-right: @padding-xs;
margin-left: 0;
}
}
// ============================ Filter ============================
&-filter-column-title {
.@{table-wrapepr-rtl-cls} & {
padding: @table-padding-vertical @table-padding-horizontal @table-padding-vertical 2.3em;
}
}
&-filter-trigger-container {
.@{table-wrapepr-rtl-cls} & {
right: auto;
left: 0;
}
}
// Dropdown
&-filter-dropdown {
// Checkbox
&,
&-submenu {
.@{ant-prefix}-checkbox-wrapper + span {
.@{ant-prefix}-dropdown-rtl & {
padding-right: 8px;
padding-left: 0;
}
}
}
}
// ========================== Selections ==========================
&-selection {
.@{table-wrapepr-rtl-cls} & {
text-align: center;
}
&-extra {
.@{table-wrapepr-rtl-cls} & {
right: auto;
left: 0;
transform: translate(-100%, -50%);
}
}
}
// ========================== Expandable ==========================
&-row-indent {
.@{table-wrapepr-rtl-cls} & {
float: right;
}
}
&-row-expand-icon {
.@{table-wrapepr-rtl-cls} & {
float: right;
}
.@{table-prefix-cls}-row-indent + & {
.@{table-wrapepr-rtl-cls} & {
margin-right: 0;
margin-left: @padding-xs;
}
}
}
}

52
web/node_modules/antd/lib/table/style/size.less generated vendored Normal file
View File

@@ -0,0 +1,52 @@
@import './index';
.table-size(@size, @padding-vertical, @padding-horizontal) {
.@{table-prefix-cls}.@{table-prefix-cls}-@{size} {
.@{table-prefix-cls}-title,
.@{table-prefix-cls}-footer,
.@{table-prefix-cls}-thead > tr > th,
.@{table-prefix-cls}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td {
padding: @padding-vertical @padding-horizontal;
}
.@{table-prefix-cls}-thead {
th.@{table-prefix-cls}-column-has-sorters {
padding: 0;
}
.@{table-prefix-cls}-filter-column {
margin: -@padding-vertical -@padding-horizontal;
}
.@{table-prefix-cls}-filter-column-title {
padding: @padding-vertical 2.3em @padding-vertical @padding-horizontal;
}
.@{table-prefix-cls}-column-sorters {
padding: @padding-vertical @padding-horizontal;
}
}
.@{table-prefix-cls}-expanded-row-fixed {
margin: -@padding-vertical -@padding-horizontal;
}
}
}
// ================================================================
// = Middle =
// ================================================================
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md);
// ================================================================
// = Small =
// ================================================================
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm);
.@{table-prefix-cls}-small {
.@{table-prefix-cls}-thead > tr > th {
background-color: @table-header-bg-sm;
}
}