UNPKG

@true-directive/grid

Version:

Angular Data Grid from Yopsilon.

401 lines (350 loc) 18.7 kB
.true-grid-appearance { border: 2px solid #30353e; background-color: #282d34; user-select: none; } .true-grid-appearance .true-accent { color: #4987eb; } .true-grid-appearance .true-grid-data { transition: opacity 0.4s ease, background-color 0.4s ease; } .true-grid-appearance .true-scroller-header-left, .true-grid-appearance .true-scroller-footer-left, .true-grid-appearance .true-scroller-data-left { border-right: 2px solid #30353e; } .true-grid-appearance .true-scroller-header-right, .true-grid-appearance .true-scroller-footer-right, .true-grid-appearance .true-scroller-data-right { border-left: 2px solid #30353e; } .true-grid-appearance .true-grid-drag-item-appearance .true-grid-header { opacity: 0.97; border: 2px solid #30353e; background-color: #30353e; } .true-grid-appearance .true-grid-drag-item-appearance .true-drag-data { padding: 40px; } .true-grid-appearance .true-grid-drag-item-appearance .true-grid-data { opacity: 0.97; border: 2px solid #30353e; background-color: #282d34; box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.08); } .true-grid-appearance .true-grid-drag-item-appearance .true-grid-data td { overflow-x: hidden; text-overflow: ellipsis; border: 0 !important; } .true-grid-appearance .true-grid-btn { color: #9eb2bf; opacity: 0.15; transition-delay: 0.1s; transition: background-color .25s ease-in, opacity .25s ease-in, border-color .25s ease-in; } .true-grid-appearance .true-grid-btn:hover, .true-grid-appearance .true-grid-btn-visible .true-grid-btn { visibility: visible; background-color: #424853; border-color: #d5d7d9; opacity: 1.0 !important; } .true-grid-appearance .true-fix-touch .true-grid-btn { opacity: 0.2; visibility: visible; } .true-grid-appearance .true-header-appearance { color: #9ca1a8; font-weight: 500; background-color: #30353e; border-bottom: 0; } .true-grid-appearance .true-header-appearance .true-grid-header tr:last-child { border-bottom: 0; } .true-grid-appearance .true-header-appearance .true-grid-header td.band { padding: 0; } .true-grid-appearance .true-header-appearance .true-grid-header td:not(.band) { padding: 0 2px; } .true-grid-appearance .true-header-appearance .true-grid-header.true-v-lines td:not(:last-child) { border-right: 1px solid #373d48; } .true-grid-appearance .true-header-appearance .true-grid-header td.true-header-cell__checkbox { border-right: 0 !important; text-align: center; } .true-grid-appearance .true-header-appearance .true-grid-header.true-h-lines .true-header-band__caption { border-bottom: 1px solid #373d48; } .true-grid-appearance .true-header-appearance .true-grid-header .true-header-band__caption { padding: 3px 5px; } .true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell { padding: 0 3px; } .true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell__sort-indicator { padding-right: 3px; } .true-grid-appearance .true-header-appearance .true-grid-header .true-header-cell__txt { padding: 3px 5px 3px 0; } .true-grid-appearance .true-header-appearance .true-grid-header td:not(.true-column-resizable) + td.true-column-resizable .true-header-cell { padding-left: 5px !important; } .true-grid-appearance .true-footer-appearance { background-color: #30353e; border-top: 0; } .true-grid-appearance .true-footer-appearance .true-grid-footer td { padding: 0; vertical-align: top; } .true-grid-appearance .true-footer-appearance .true-grid-footer td.true-footer-cell__is-checkbox { border-right: 0 !important; } .true-grid-appearance .true-footer-appearance .true-grid-footer td .true-footer-btn-container { padding: 0 5px; } .true-grid-appearance .true-footer-appearance .true-grid-footer td { border-right: 0; } .true-grid-appearance .true-footer-appearance .true-grid-footer.true-v-lines td:not(:last-child) { border-right: 1px solid #373d48; } .true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr { cursor: pointer; box-sizing: border-box; padding: 3px 5px; transition: background-color .3s ease-in, opacity .3s ease-in; } .true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr:hover { background-color: #424853; } .true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr .true-aggr-caption { text-transform: uppercase; color: #999; } .true-grid-appearance .true-footer-appearance .true-grid-footer .true-aggr + .true-aggr { margin-top: -3px; } .true-group-simple td { color: #555; font-weight: bold; } .true-group td { border-bottom: 1px solid #30363c; color: #4987eb; font-weight: normal; background-color: #24282e; } .true-group:not(:first-child) td { border-top: 1px solid #30363c; } .true-group-l1 td { font-weight: bold; color: #4987eb; background-color: #24282e; } .true-group-switcher { color: #bbb; font-size: 0.85em; display: inline-block; cursor: pointer !important; } .true-cell-indent { text-align: right; color: #888 !important; padding-right: 0.7em !important; padding-top: 0; padding-bottom: 0; } .true-stub { background-color: #eee; border-radius: 4px; width: 100%; box-sizing: border-box; display: inline-block; } .true-stub:before { content: "\00a0"; } .true-grid-appearance .true-cell-checkbox, .true-grid-appearance .true-cell-boolean { text-align: center; overflow-y: visible !important; overflow-x: visible !important; } .true-grid-appearance .true-grid-data-appearance.true-h-lines > table > tbody > tr > td, .true-grid-appearance .true-grid-data-appearance.true-h-lines > div > table > tbody > tr > td { border-bottom: 1px solid #30363c; } .true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines { margin-top: -1px; } .true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines > table > tbody > tr > td, .true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-h-lines > div > table > tbody > tr > td { border-top: 1px solid #30363c; } .true-grid-appearance .true-grid-data-appearance:not(.true-h-lines) tr:not(.true-group) + tr.true-group > td { border-top: 1px solid #30363c; } .true-grid-appearance .true-grid-data-appearance.true-v-lines > table > tbody > tr > td:not(.true-cell-checkbox), .true-grid-appearance .true-grid-data-appearance.true-v-lines > div > table > tbody > tr > td:not(.true-cell-checkbox) { border-right: 1px solid #30363c; } .true-grid-appearance .true-grid-data-appearance.true-v-lines tr:not(.true-group) td.true-cell-indent { border-top: none !important; border-bottom: none !important; } .true-grid-appearance .true-grid-data-appearance.true-v-lines > .data-left td:last-child, .true-grid-appearance .true-grid-data-appearance.true-v-lines > .data-right td:last-child { border-right: none !important; } .true-grid-appearance .true-grid-data-appearance.true-v-lines tr.true-group > td:not(:last-child) { border-right: 0; } .true-grid-appearance .true-grid-data-appearance > table > tbody > tr > td, .true-grid-appearance .true-grid-data-appearance > div > table > tbody > tr > td { padding: 3px 5px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: opacity 0.4s ease; } .true-grid-appearance .true-grid-data-appearance td .true-hl { background-color: #f6b94d; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) { transition: opacity 0.5s ease; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected { color: unset; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected a { color: unset; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected1 { border-color: #3d434c !important; background-color: #3f4551; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected2:not(.true-indent-cell) { background-color: #464e5c; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected3:not(.true-indent-cell) { border-color: #4b5363 !important; background-color: #4b5363; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected4:not(.true-indent-cell) { border-color: #525b6e !important; background-color: #525b6e; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked) td.true-range-selected5:not(.true-indent-cell) { border-color: #59647b !important; background-color: #59647b; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-row-checked).true-show-animate { opacity: 0.0 !important; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked { transition: opacity 0.5s ease; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td:not(.true-cell-indent) { border-color: #465a83 !important; background-color: #43557b; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected1 { background-color: #4a608e; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected2:not(.true-indent-cell) { background-color: #4d6597; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected3:not(.true-indent-cell) { border-color: #506ba2 !important; background-color: #506ba2; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected4:not(.true-indent-cell) { border-color: #526fac !important; background-color: #526fac; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked > td.true-range-selected5:not(.true-indent-cell) { border-color: #5474b7 !important; background-color: #5474b7; } .true-grid-appearance .true-grid-data-appearance tr.true-row-checked.true-show-animate { opacity: 0.0 !important; } .true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell), .true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > div > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell) { outline-offset: -1px; outline-style: solid; outline-color: #4987eb; outline-width: 1px; } .true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr:not(.true-row-checked) > td.true-cell-focused:not(.true-indent-cell) { background-color: #313740 !important; } .true-grid-appearance .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr.true-row-checked > td.true-cell-focused:not(.true-indent-cell) { background-color: #3e4e70 !important; } .true-grid-appearance .true-grid-data-appearance.true-hovered-row-hl > table > tbody > tr:not(.true-row-checked):hover > td:not(.true-cell-indent):not(.true-range-selected):not(.true-cell-focused) { background-color: #2c323c; } .true-grid-appearance .true-grid-data-appearance tr:not(.true-group) > td.true-cell-disabled:not(.true-range-selected):not(.true-cell-focused) { opacity: 0.4; } .true-grid-appearance.true-fix-ie .true-grid-data-appearance.true-focused-cell-hl:not(.true-drag-in-process) > table > tbody > tr > td.true-cell-focused:not(.true-indent-cell) { outline-width: 0; box-shadow: inset 0px 0px 0 1px #4987eb; } .true-grid-appearance.true-resize-in-process { cursor: ew-resize !important; } .true-grid-appearance.true-resize-in-process .true-cb, .true-grid-appearance.true-resize-in-process .true-cell-checkbox, .true-grid-appearance.true-resize-in-process .true-header-cell, .true-grid-appearance.true-resize-in-process .true-aggr, .true-grid-appearance.true-resize-in-process .true-grid-btn, .true-grid-appearance.true-resize-in-process .band { cursor: ew-resize !important; } .true-grid-appearance.true-resize-in-process:not(.true-fix-touch) .true-header-cell__caption:not(.true-header-cell__filtered) > .true-grid-btn { visibility: hidden !important; cursor: ew-resize; } .true-grid-appearance.true-resize-in-process .true-header-cell__caption { cursor: ew-resize !important; } .true-grid-appearance.true-drag-in-process:not(.true-fix-touch) .true-header-cell__caption:not(.true-header-cell__filtered) > .true-grid-btn { visibility: hidden !important; cursor: default; } .true-grid-appearance.true-drag-in-process td { cursor: default !important; } .true-grid-appearance.true-drag-in-process td .true-cb { cursor: default !important; } .true-grid-appearance td.true-cell-input { padding: 0 !important; position: relative; box-shadow: none !important; height: 100%; } .true-grid-appearance .true-grid-data-appearance.true-h-lines tr:not(:first-child) > td > .true-grid__input-container { border: 0; margin: -1px 0 0 0; } .true-grid-appearance .true-grid-input { padding-top: 3px; padding-bottom: 3px; padding-left: 5px; padding-right: 5px; border: 0 !important; outline: 0; box-sizing: border-box; border-radius: 0; width: 100%; vertical-align: baseline; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .true-grid-appearance .true-grid-editor-100p { height: 100%; position: absolute; top: 0px; bottom: 0px; } .true-grid-appearance .true-grid-editor-ie { height: 100%; } .true-grid-appearance.true-fix-ie .true-grid__input-container { margin-top: 0 !important; } .true-grid-appearance.true-fix-ie .true-grid-input { box-shadow: inset 0px 0px 0 2px #4987eb !important; } .true-grid-appearance .true-icon-sigma::before { font-family: Cambria, Georgia, Times, Times New Roman, serif; content: "\03a3"; font-size: 1.1em; font-weight: bold; } .true-group-area { display: block; color: #9ca1a8; border-bottom: 2px solid #30353e; background: repeating-linear-gradient(40deg, #2b2f35, #2b2f35 7px, #272c33 7px, #272c33 14px); display: flex; flex-direction: row; padding: 0.3em; align-items: center; } .true-group-area > span { padding: 0.2em; } .true-group-area > div { display: inline-block; color: #9ca1a8; background-color: #30353e; border: 2px solid #30353e; margin-left: 1em; transition: opacity 0.4s ease-in; } .true-group-area > div.temp { border-style: dashed; opacity: 0.5; } .true-group-area > div.hidden { visibility: hidden; } .true-popup { z-index: 9; background-color: #282d34; border: 1px solid #202327; box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.35); transition: opacity 0.15s ease, transform 0.2s ease-out; } .true-popup.true-snack { border-radius: 6px; } .true-button { min-height: 1em; } .true-close, .true-bool { display: inline-block; width: 1.2em; height: 1.2em; background-repeat: no-repeat; background-position-x: center; background-position-y: center; } .true-bool:not(.checked) { opacity: 0.4; } .true-bool:not(.checked), .true-close { background-size: 100%; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNMTAgMTAgTCAyOSAyOSBNMTAgMjkgTCAyOSAxMCIvPjwvZGVmcz4KICAgIDxnPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDEpIj4KICAgICAgICA8dXNlIGZpbGw9IiM1NTUiIGZpbGwtb3BhY2l0eT0iMCIgc3Ryb2tlPSIjNTU1IgogICAgICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iNTAiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2ljb24iLz48L2c+CiAgICA8L2c+CiAgPC9zdmc+"); } .true-bool-editable { cursor: pointer; background-color: #21252b; border: 1px solid #4c5562; } .true-close:before, .true-bool:before { content: "\00a0"; } .true-bool.checked { background-size: 100%; background-repeat: no-repeat; background-position-x: center; background-position-y: center; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNOCAxOSBMIDE2IDI3IEwgMzEgMTAiLz48L2RlZnM+CiAgICA8Zz4KICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwKSI+CiAgICAgICAgPHVzZSBmaWxsPSIjODg4IiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzU1NSIKICAgICAgICAgIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1taXRlcmxpbWl0PSI1MCIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjaWNvbiIvPjwvZz4KICAgIDwvZz4KICA8L3N2Zz4="); } .true-bool.indeterminate { background: none; } .true-cb { display: inline-block; box-sizing: border-box; vertical-align: middle; width: 1.3em; height: 1.3em; background-color: #21252b; border: 1px solid #4c5562; cursor: pointer; } .true-cb:before { content: "\00a0"; } .true-cb.checked { background-size: 100%; background-repeat: no-repeat; background-position-x: center; background-position-y: center; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNOCAxOSBMIDE2IDI3IEwgMzEgMTAiLz48L2RlZnM+CiAgICA8Zz4KICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwKSI+CiAgICAgICAgPHVzZSBmaWxsPSIjODg4IiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzU1NSIKICAgICAgICAgIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS1taXRlcmxpbWl0PSI1MCIgc3Ryb2tlLXdpZHRoPSI0IiB4bGluazpocmVmPSIjaWNvbiIvPjwvZz4KICAgIDwvZz4KICA8L3N2Zz4="); } .true-cb.indeterminate { background-size: 100%; background-repeat: no-repeat; background-position-x: center; background-position-y: center; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDM5IDM5Ij4KICA8ZGVmcz4KICAgIDxwYXRoIGlkPSJpY29uIiBkPSJNMTIgMTkgTCAyNyAxOSIvPjwvZGVmcz4KICAgIDxnPgogICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIj4KICAgICAgICA8dXNlIGZpbGw9IiM1NTUiIHN0cm9rZT0iIzg4OCIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLW1pdGVybGltaXQ9IjAiIHN0cm9rZS13aWR0aD0iNCIgeGxpbms6aHJlZj0iI2ljb24iLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvc3ZnPg"); }