@logimaxx/kgrid 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,172 @@
1
+ (function (CT) {
2
+ /**
3
+ * Setup new record row
4
+ * @returns {jQuery}
5
+ */
6
+ CT.setupNewRecordForm = function (table, options, grid) {
7
+ if(!options.insertFormRow || !CT.isPlainObject(options.insertFormRow)) {
8
+ table.find(".before-main-tbody").remove();
9
+ table.find(".after-main-tbody").remove();
10
+ return;
11
+ }
12
+
13
+ const columns = [...options.columns];
14
+
15
+ const newRecordRow = $("<tr>").addClass("new-record-row");
16
+ const position = options.insertFormRow?.position ?? "top";
17
+ if(position==="top") {
18
+ table.find(".after-main-tbody").remove();
19
+ newRecordRow.appendTo(table.find(".before-main-tbody"));
20
+ }
21
+ else {
22
+ table.find(".before-main-tbody").remove();
23
+ newRecordRow.appendTo(table.find(".after-main-tbody"));
24
+ }
25
+
26
+ const newRecordFormId = "new_record_row_form_"+CT.uuid();
27
+ const newRecordForm = $("<form class='table-row-form'>").attr("id",newRecordFormId)
28
+ .off("submit").on("submit",(event)=>{
29
+ event.preventDefault();
30
+ const data = CT.serializeForm(event.target, columns);
31
+ Object.keys(data).forEach(key => {
32
+ if(columns.find(col => col.name === key)?.insert?.dontsave) {
33
+ delete data[key];
34
+ }
35
+ });
36
+ grid.instance.newItem(data).then(()=>{
37
+ event.target.reset();
38
+ if(typeof options.onNewItemCreated=="function") {
39
+ options.onNewItemCreated(data);
40
+ }
41
+ }).catch(CT.onError);
42
+ });
43
+
44
+ columns.forEach(col => {
45
+
46
+ if(col.hidden) {
47
+ if(options.features?.create && col.features?.create) {
48
+ const input = $("<input type='hidden'>")
49
+ .attr("name",col.name)
50
+ .attr("form",newRecordFormId).appendTo(newRecordForm);
51
+ if(col.insert.default) {
52
+ input.val(col.insert.default);
53
+ }
54
+ }
55
+ return;
56
+ }
57
+ if(!col.features.create){
58
+ const $empty = $("<td>").appendTo(newRecordRow).attr("data-label", col.label);
59
+ CT.applyColumnCellMeta($empty, col);
60
+ return;
61
+ }
62
+
63
+ const insertConfig = col.insert;
64
+ if(!insertConfig || !CT.isPlainObject(insertConfig)) {
65
+ throw new Error("Column must have an insert config object when column.features.create is true: \n"+JSON.stringify(col,null,2));
66
+ }
67
+
68
+ if(!insertConfig.type) {
69
+ throw new Error("Column must have an insert.type when column.features.insert is true: \n"+JSON.stringify(col,null,2));
70
+ }
71
+
72
+ let input;
73
+ const insertType = insertConfig.type ?? "text";
74
+ const pluggable = CT.createFieldInput({ mode: "insert", col, config: insertConfig });
75
+ if (pluggable) {
76
+ input = pluggable.$input;
77
+ } else {
78
+ switch(insertType) {
79
+ case "textarea":
80
+ input = $(`<textarea class='form-input form-control form-control-sm'>`);
81
+ break;
82
+ case "select":
83
+ input = $(`<select class='form-input form-control form-control-sm'/>`);
84
+ if(!insertConfig.options || !Array.isArray(insertConfig.options)) {
85
+ throw new Error("Column must have an insert.options array when column.features.insert is true: \n"+JSON.stringify(col,null,2));
86
+ }
87
+ insertConfig.options.forEach((opt)=>{
88
+ if(typeof opt.label!="string" || typeof opt.value=="undefined") {
89
+ throw new Error("Column must have an insert.options object with label and value when column.features.insert is true: \n"+JSON.stringify(col,null,2));
90
+ }
91
+ $("<option>").text(opt.label).attr("value",opt.value).appendTo(input);
92
+ });
93
+ break;
94
+ case "hidden":
95
+ input = $(`<input type='hidden' class='form-input form-control form-control-sm'/>`);
96
+ break;
97
+ default:
98
+ if(CT.isValidInputType(insertType)) {
99
+ input = $(`<input autocomplete='off' type='${insertType}' class='form-input form-control form-control-sm'/>`);
100
+ } else {
101
+ throw new Error("Invalid type: "+JSON.stringify(insertConfig,null,2));
102
+ }
103
+ input.attr("data-type", insertType);
104
+ }
105
+ }
106
+
107
+ if(insertConfig.default != null && insertConfig.default !== "" && !input.val()) {
108
+ const defVal = (typeof insertConfig.default === "object" && insertConfig.default.value != null)
109
+ ? insertConfig.default.value
110
+ : insertConfig.default;
111
+ if(String(defVal).trim()) {
112
+ input.val(defVal).trigger("change");
113
+ }
114
+ }
115
+
116
+ if(insertConfig.attrs && typeof insertConfig.attrs === 'object') {
117
+ Object.keys(insertConfig.attrs).forEach(k => input.attr(k, insertConfig.attrs[k]));
118
+ }
119
+
120
+ input.attr("form",newRecordFormId).attr("name",col.name);
121
+ if(insertConfig.disabled) {
122
+ input.attr("disabled",true);
123
+ }
124
+ if(insertConfig.readonly) {
125
+ input.attr("readonly",true);
126
+ }
127
+ if(insertConfig.required) {
128
+ input.attr("required",true);
129
+ }
130
+ if(insertConfig.attrs && typeof insertConfig.attrs === 'object') {
131
+ Object.keys(insertConfig.attrs).forEach(k => input.attr(k, insertConfig.attrs[k]));
132
+ }
133
+
134
+ if(insertConfig.type!=="hidden") {
135
+ const $td = $("<td>").append(input).appendTo(newRecordRow).attr("data-label", col.label);
136
+ CT.applyColumnCellMeta($td, col);
137
+ }
138
+ CT.mountField({
139
+ mode: "insert",
140
+ $input: input,
141
+ col,
142
+ config: insertConfig,
143
+ formEl: newRecordForm[0],
144
+ rowEl: newRecordRow[0],
145
+ });
146
+ if(insertConfig.events && Array.isArray(insertConfig.events)) {
147
+ insertConfig.events.forEach(ev=>{
148
+ input.off(ev.event).on(ev.event, function(e, ...args) {
149
+ if (typeof ev.callback === "function") ev.callback(e, newRecordForm[0],newRecordRow[0], ...args);
150
+ });
151
+ });
152
+ }
153
+ });
154
+ CT.anchorRowForm(newRecordForm, newRecordRow);
155
+ const actionColumn = $("<td>")
156
+ .addClass("kgrid-row-actions")
157
+ .appendTo(newRecordRow)
158
+ .attr("data-label", "action");
159
+ const grp = $("<div>").addClass("btn-group").appendTo(actionColumn);
160
+ $("<button>").addClass("btn btn-sm btn-primary new-item-btn")
161
+ .html("<i class='fas fa-plus-square'></i>")
162
+ .attr("form",newRecordFormId)
163
+ .attr("type","submit")
164
+ .appendTo(grp);
165
+
166
+ if (typeof options.onInsertRowReady === "function") {
167
+ options.onInsertRowReady(newRecordForm[0], newRecordRow[0]);
168
+ }
169
+
170
+ return newRecordRow;
171
+ };
172
+ })(window.KGrid);
@@ -0,0 +1,43 @@
1
+ (function (CT) {
2
+ /** @returns {"view"|"edit"} */
3
+ CT.resolveDefaultInteraction = function (options) {
4
+ if (options.defaultInteraction === "edit" || options.defaultInteraction === "view") {
5
+ return options.defaultInteraction;
6
+ }
7
+ if (options.editmode === true) {
8
+ return "edit";
9
+ }
10
+ if (options.editmode === false) {
11
+ return "view";
12
+ }
13
+ return "view";
14
+ };
15
+
16
+ /** Host element that owns interaction CSS (.custom-table-shell). */
17
+ CT.getTableInteractionHost = function ($host) {
18
+ if ($host.hasClass("custom-table-shell")) {
19
+ return $host;
20
+ }
21
+ const $shell = $host.find(".custom-table-shell").first();
22
+ return $shell.length ? $shell : $host;
23
+ };
24
+
25
+ CT.applyInteraction = function ($host, mode, overrides) {
26
+ const $shell = CT.getTableInteractionHost($host);
27
+ const interaction = mode === "edit" ? "edit" : "view";
28
+ $shell.attr("data-interaction", interaction);
29
+ if (overrides && typeof overrides === "object") {
30
+ if (overrides.create !== undefined) {
31
+ $shell.attr("data-allow-insert", overrides.create ? "true" : "false");
32
+ }
33
+ if (overrides.update !== undefined) {
34
+ $shell.attr("data-allow-update", overrides.update ? "true" : "false");
35
+ }
36
+ if (overrides.delete !== undefined) {
37
+ $shell.attr("data-allow-delete", overrides.delete ? "true" : "false");
38
+ }
39
+ } else if (interaction === "edit") {
40
+ $shell.removeAttr("data-allow-insert data-allow-update data-allow-delete");
41
+ }
42
+ };
43
+ })(window.KGrid);
package/src/labels.js ADDED
@@ -0,0 +1,49 @@
1
+ (function (CT) {
2
+ /**
3
+ * Setup labels row
4
+ * @returns {jQuery}
5
+ */
6
+ CT.setupLabelsHeader = function (labelsThead, options) {
7
+ const labelsRow = labelsThead.children("tr");
8
+
9
+ const existingTh = labelsRow.children();
10
+ const labelTemplate = existingTh.first().clone(true);
11
+ existingTh.remove();
12
+ const columns = [...options.columns];
13
+ columns.forEach((col) => {
14
+ if (col.hidden) {
15
+ return;
16
+ }
17
+
18
+ let cell = labelTemplate.clone(true);
19
+ if (col.attrs && typeof col.attrs === "object") {
20
+ Object.keys(col.attrs).forEach((attr) => cell.attr(attr, col.attrs[attr]));
21
+ }
22
+ CT.applyColumnCellMeta(cell, col);
23
+
24
+ if (!col.features?.sort) {
25
+ const tmp = cell.empty().html(col.label ?? "");
26
+ CT.applyColumnCellMeta(tmp, col);
27
+ labelsRow.append(tmp);
28
+ return;
29
+ }
30
+ if (!col.name) {
31
+ throw new Error(
32
+ "Column must have a name when column.sortable is true: \n" +
33
+ JSON.stringify(col, null, 2)
34
+ );
35
+ }
36
+ cell.find("span.column-label").text(col.label ?? "");
37
+ cell.children("a").attr("data-sortfld", col.name);
38
+ cell.appendTo(labelsRow);
39
+ });
40
+ if (CT.hasActionColumn(options)) {
41
+ $("<th>")
42
+ .addClass("kgrid-row-actions")
43
+ .attr("aria-label", "Actions")
44
+ .appendTo(labelsRow);
45
+ }
46
+
47
+ return labelsRow;
48
+ };
49
+ })(window.KGrid);
@@ -0,0 +1,152 @@
1
+ /**
2
+ * Build the KGrid table DOM skeleton (self-contained; no external HTML file).
3
+ *
4
+ * Edit TABLE_SHELL_TEMPLATE below to change markup. Dynamic slots:
5
+ * {{EMPTY_ROW_MESSAGE}} — text in .no-data-tbody
6
+ * {{PAGES_DATA_PAGESIZE}} — value for .pages data-pagesize
7
+ * {{PAGE_SIZE_OPTIONS}} — <option> elements for .pagesize
8
+ * {{PAGING_FOOTER_LABEL}} — text after page-size select
9
+ */
10
+ (function (CT) {
11
+ CT.DEFAULT_EMPTY_ROW_MESSAGE = "No records match your search.";
12
+
13
+ /**
14
+ * Static table skeleton (one sortable header cell template; labels.js clones it per column).
15
+ * @type {string}
16
+ */
17
+ CT.TABLE_SHELL_TEMPLATE = `
18
+ <table class="custom-table" style="table-layout: fixed;">
19
+ <thead class="thead-labels">
20
+ <tr>
21
+ <th class="align-top">
22
+ <a class="sort" data-sortfld="" style="cursor: pointer;">
23
+ <span class="column-label"></span>
24
+ <i class="fas fa-sort-up sort-up" style="display: none"></i>
25
+ <i class="fas fa-sort-down sort-down" style="display: none"></i>
26
+ <i class="fas fa-sort sort-default"></i>
27
+ </a>
28
+ </th>
29
+ </tr>
30
+ </thead>
31
+ <thead class="thead-filters"></thead>
32
+ <tbody class="before-main-tbody"></tbody>
33
+ <tbody class="main-tbody"></tbody>
34
+ <tbody class="after-main-tbody"></tbody>
35
+ <tbody class="no-data-tbody">
36
+ <tr><td>{{EMPTY_ROW_MESSAGE}}</td></tr>
37
+ </tbody>
38
+ <tfoot class="paging-footer">
39
+ <tr>
40
+ <td>
41
+ <div class="btn-group pages" data-pagesize="{{PAGES_DATA_PAGESIZE}}">
42
+ <button type="button" name="first" class="btn btn-sm btn-outline-secondary">&lt;&lt;</button>
43
+ <button type="button" name="prev" class="btn btn-sm btn-outline-secondary">&lt;</button>
44
+ <button type="button" name="page" class="btn btn-sm btn-outline-secondary">1</button>
45
+ <button type="button" name="next" class="btn btn-sm btn-outline-secondary">&gt;</button>
46
+ <button type="button" name="last" class="btn btn-sm btn-outline-secondary">&gt;&gt;</button>
47
+ </div>
48
+ <select class="pagesize">
49
+ {{PAGE_SIZE_OPTIONS}}
50
+ </select>
51
+ {{PAGING_FOOTER_LABEL}} <span class="totalrecscount"></span>
52
+ </td>
53
+ </tr>
54
+ </tfoot>
55
+ </table>`.trim();
56
+
57
+ CT._escapeTableShellText = function (text) {
58
+ return String(text)
59
+ .replace(/&/g, "&amp;")
60
+ .replace(/</g, "&lt;")
61
+ .replace(/>/g, "&gt;")
62
+ .replace(/"/g, "&quot;");
63
+ };
64
+
65
+ CT._renderPageSizeOptions = function (pageSizes, defaultSize) {
66
+ return pageSizes
67
+ .map((size) => {
68
+ const value = String(size);
69
+ const selected = value === String(defaultSize) ? " selected" : "";
70
+ return ` <option value="${value}"${selected}>${value}</option>`;
71
+ })
72
+ .join("\n");
73
+ };
74
+
75
+ /**
76
+ * Fill template placeholders from table options.
77
+ * @param {Object} options
78
+ * @param {string} [template]
79
+ * @returns {string}
80
+ */
81
+ CT.renderTableShellHtml = function (options, template) {
82
+ const pageSizes = Array.isArray(options.pagingPageSizes)
83
+ ? options.pagingPageSizes
84
+ : [10, 25, 50, 75];
85
+ const defaultSize =
86
+ options.pagingDefaultSize != null ? options.pagingDefaultSize : pageSizes[0];
87
+ const emptyMsg = CT._escapeTableShellText(
88
+ options.emptyRowMessage || CT.DEFAULT_EMPTY_ROW_MESSAGE
89
+ );
90
+ const pagingLabel = CT._escapeTableShellText(
91
+ options.pagingFooterLabel || "records per page. Total"
92
+ );
93
+
94
+ return (template || CT.TABLE_SHELL_TEMPLATE)
95
+ .replace(/\{\{EMPTY_ROW_MESSAGE\}\}/g, emptyMsg)
96
+ .replace(/\{\{PAGES_DATA_PAGESIZE\}\}/g, String(defaultSize))
97
+ .replace(
98
+ /\{\{PAGE_SIZE_OPTIONS\}\}/g,
99
+ CT._renderPageSizeOptions(pageSizes, defaultSize)
100
+ )
101
+ .replace(/\{\{PAGING_FOOTER_LABEL\}\}/g, pagingLabel);
102
+ };
103
+
104
+ /**
105
+ * Create the table element (not yet attached to document).
106
+ * @param {Object} options merged table options
107
+ * @returns {JQuery} table.custom-table
108
+ */
109
+ CT.createTableShell = function (options) {
110
+ const html = CT.renderTableShellHtml(options);
111
+ const nodes = $.parseHTML(html, document, true);
112
+ const $table = $(nodes).filter("table").first();
113
+ if (!$table.length) {
114
+ throw new Error("KGrid TABLE_SHELL_TEMPLATE must contain a root <table> element");
115
+ }
116
+
117
+ if (options.tableAttrs && CT.isPlainObject(options.tableAttrs)) {
118
+ Object.keys(options.tableAttrs).forEach((att) => {
119
+ if (att !== "class") {
120
+ $table.attr(att, options.tableAttrs[att]);
121
+ }
122
+ });
123
+ if (typeof options.tableAttrs.class === "string" && options.tableAttrs.class) {
124
+ $table.addClass(options.tableAttrs.class);
125
+ }
126
+ }
127
+
128
+ return $table;
129
+ };
130
+
131
+ /**
132
+ * Ensure host contains a KGrid table; build one if missing.
133
+ * @param {JQuery} $host
134
+ * @param {Object} options
135
+ * @returns {JQuery} table element
136
+ */
137
+ CT.mountTableShell = function ($host, options) {
138
+ const $existing = $host.find("table.custom-table, table").first();
139
+ if ($existing.length) {
140
+ return $existing;
141
+ }
142
+
143
+ const $shell = CT.getTableInteractionHost($host);
144
+ if (!$shell.hasClass("custom-table-shell")) {
145
+ $shell.addClass("custom-table-shell");
146
+ }
147
+
148
+ const $table = CT.createTableShell(options);
149
+ $shell.append($table);
150
+ return $table;
151
+ };
152
+ })(window.KGrid);
@@ -0,0 +1,201 @@
1
+ .custom-table-shell{
2
+ border-bottom-left-radius: var(--bs-border-radius-lg, 0.5rem);
3
+ border-bottom-right-radius: var(--bs-border-radius-lg, 0.5rem);
4
+
5
+ }
6
+ @media (max-width: 768px) {
7
+ .card-body{
8
+ padding: 10px;
9
+ }
10
+ .custom-table-shell table,
11
+ .custom-table-shell thead,
12
+ .custom-table-shell tbody,
13
+ .custom-table-shell tr,
14
+ .custom-table-shell th,
15
+ .custom-table-shell td {
16
+ display: block;
17
+ }
18
+
19
+ .custom-table-shell thead {
20
+ display: none;
21
+ }
22
+
23
+ .custom-table-shell tr {
24
+ margin-top: 5px;
25
+ border: 1px solid #ddd;
26
+ border-radius: 5px;
27
+ background: #fff;
28
+ }
29
+
30
+ .custom-table-shell td {
31
+ padding: 5px 0;
32
+ border: 0 !important;
33
+ }
34
+
35
+ .custom-table-shell td::before {
36
+ content: attr(data-label);
37
+ display: block;
38
+ font-weight: 600;
39
+ font-size: 13px;
40
+ color: #6b7280; /* gri calm */
41
+ margin-bottom: 6px;
42
+ padding-bottom: 4px;
43
+ border-bottom: 1px solid #e5e7eb; /* separator subtil */
44
+ }
45
+
46
+ .custom-table-shell td input,
47
+ .custom-table-shell td select,
48
+ .custom-table-shell td textarea,
49
+ .custom-table-shell td .input,
50
+ .custom-table-shell td .form-control,
51
+ .custom-table-shell td .your-custom-input-wrapper,
52
+ .custom-table-shell td button {
53
+ width: 100%;
54
+ max-width: 100%;
55
+ box-sizing: border-box;
56
+ }
57
+ }
58
+
59
+ tr.new-record-row{
60
+ background-color: rgb(112, 165, 218,0.5) !important;
61
+ }
62
+ tr.new-record-row td{
63
+ background-color: rgb(112, 165, 218,0.5) !important;
64
+ }
65
+ tr.confirm-delete{
66
+ background-color: rgba(255, 0, 0, 0.5) !important;
67
+ }
68
+ tr.confirm-delete td{
69
+ background-color: rgba(255, 0, 0, 0.5) !important;
70
+ }
71
+ tr.editing{
72
+ border: 3px dashed #007bff;
73
+ border-radius: 5px;
74
+ padding: 5px;
75
+ margin: 5px;
76
+ font-weight: bold;
77
+ color: #007bff;
78
+ font-size: 14px;
79
+ }
80
+ tr.editing td{
81
+ background-color: rgb(255, 153, 28) !important;
82
+ }
83
+ div.save-item{
84
+ display: none;
85
+ }
86
+ .editing div.save-item{
87
+ display: inline-flex;
88
+ }
89
+
90
+ .editing .default-action-buttons{
91
+ display: none;
92
+ }
93
+ .cell-input{
94
+ display: none;
95
+ }
96
+ .custom-table-shell[data-interaction="view"] .cell-input,
97
+ .custom-table-shell[data-interaction="view"] .delete-item{
98
+ display: none;
99
+ }
100
+ .custom-table-shell[data-interaction="edit"] .cell-input,
101
+ .custom-table-shell[data-interaction="edit"] .delete-item{
102
+ display: block;
103
+ }
104
+ .new-record-row{
105
+ display: none;
106
+ }
107
+ .custom-table-shell[data-interaction="edit"] .new-record-row{
108
+ display: table-row;
109
+ }
110
+
111
+ .custom-table-shell[data-allow-insert="false"] .new-record-row {
112
+ display: none !important;
113
+ }
114
+ .custom-table-shell[data-allow-delete="false"] button.delete-item {
115
+ display: none !important;
116
+ }
117
+ .custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-input{
118
+ display: none;
119
+ }
120
+ .custom-table-shell[data-allow-update="false"][data-interaction="edit"] .cell-content{
121
+ display: block;
122
+ }
123
+ .custom-table-shell[data-interaction="view"] .cell-content{
124
+ display: block;
125
+ }
126
+ .custom-table-shell[data-interaction="edit"] .cell-content{
127
+ display: none;
128
+ }
129
+ .edit-item-grp {
130
+ display: none;
131
+ }
132
+ .editing .edit-item-grp{
133
+ display: inline-flex;
134
+ }
135
+
136
+ /* Row-actions: collapse column in view so fixed layout gives full width to data cols */
137
+ .custom-table-shell[data-interaction="view"] col.kgrid-row-actions-col {
138
+ visibility: collapse;
139
+ width: 0 !important;
140
+ }
141
+ .custom-table-shell[data-interaction="view"] th.kgrid-row-actions,
142
+ .custom-table-shell[data-interaction="view"] td.kgrid-row-actions {
143
+ visibility: collapse;
144
+ width: 0 !important;
145
+ max-width: 0;
146
+ padding: 0;
147
+ border-width: 0 !important;
148
+ overflow: hidden;
149
+ }
150
+ .custom-table-shell[data-interaction="edit"] col.kgrid-row-actions-col {
151
+ width: 100px;
152
+ }
153
+ .custom-table-shell[data-interaction="edit"] th.kgrid-row-actions {
154
+ width: 100px;
155
+ }
156
+ .editing .delete-item-grp {
157
+ display: none;
158
+ }
159
+
160
+
161
+ .custom-table .thead-labels th{
162
+ background-color: #2c3e50;
163
+ color: #fff;
164
+ }
165
+ .custom-table th,.custom-table td{
166
+ padding: 5px;
167
+ }
168
+ .custom-table .thead-filters th{
169
+ background-color: #f1f3f5;
170
+ }
171
+
172
+ .custom-table .thead-labels th a{
173
+ color: #fff;
174
+ }
175
+ .custom-table{
176
+ font-size: 14px;
177
+ box-sizing: content-box;
178
+ margin-bottom: 0;
179
+ width: 100%;
180
+ table-layout: fixed;
181
+ }
182
+ @media (min-width: 769px) {
183
+ table.custom-table {
184
+ border-collapse: separate !important;
185
+ border-spacing: 0 !important;
186
+ border-top: 1px solid var(--bs-border-color, #dee2e6) !important;
187
+ border-left: 1px solid var(--bs-border-color, #dee2e6) !important;
188
+ }
189
+ table.custom-table > * > tr > th,
190
+ table.custom-table > * > tr > td {
191
+ border-style: solid !important;
192
+ border-width: 0 1px 1px 0 !important;
193
+ border-color: var(--bs-border-color, #dee2e6) !important;
194
+ box-shadow: none !important;
195
+ background-clip: padding-box;
196
+ }
197
+ table.custom-table .thead-labels th {
198
+ border-right-color: rgba(255, 255, 255, 0.28) !important;
199
+ border-bottom-color: rgba(255, 255, 255, 0.28) !important;
200
+ }
201
+ }