File size: 3,124 Bytes
6a79d5c
3fa49b3
 
 
 
 
 
 
 
6a79d5c
3fa49b3
 
6a79d5c
3fa49b3
 
 
 
 
 
 
 
 
 
 
6a79d5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2d16b75
 
 
 
 
 
 
 
 
3fa49b3
 
 
 
2d16b75
 
 
 
 
3fa49b3
 
 
 
2d16b75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fa49b3
 
2d16b75
 
 
 
 
 
3fa49b3
6a79d5c
2d16b75
 
 
 
 
 
6a79d5c
3fa49b3
 
2d16b75
 
6a79d5c
2d16b75
 
6a79d5c
 
3fa49b3
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

class DocumentsTable extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        table {
          width: 100%;
          border-collapse: collapse;
          font-size: 0.875rem;
        }
        th, td {
          padding: 10px 12px;
          text-align: left;
          border-bottom: 1px solid #e5e7eb;
        }
        th {
          background-color: #f9fafb;
          font-weight: 600;
          color: #374151;
        }
        tr:hover {
          background-color: #f3f4f6;
        }
        .sample-notice {
          font-size: 0.75rem;
          color: #6b7280;
          margin-top: 8px;
        }
        .pagination {
          display: flex;
          justify-content: space-between;
          margin-top: 16px;
          align-items: center;
        }
        .pagination-button {
          padding: 6px 12px;
          border: 1px solid #e5e7eb;
          border-radius: 4px;
          background: white;
          cursor: pointer;
        }
        .pagination-button:disabled {
          opacity: 0.5;
          cursor: not-allowed;
        }
        .file-size {
          font-family: monospace;
          text-align: right;
        }
        .processing-time {
          font-family: monospace;
          text-align: right;
        }
</style>
      <table>
        <thead>
          <tr>
            <th>ID</th>
            <th>Doc ID</th>
            <th>File Type</th>
            <th>File Size</th>
            <th>Processing Time</th>
            <th>OCR Date</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>50420</td>
            <td>HOUSE_OVERSIGHT_022477</td>
            <td>image_ocr</td>
            <td>288 KB</td>
            <td>1.42s</td>
            <td>2025-11-16</td>
          </tr>
          <tr>
            <td>50421</td>
            <td>HOUSE_OVERSIGHT_022478</td>
            <td>image_ocr</td>
            <td>305 KB</td>
            <td>5.67s</td>
            <td>2025-11-16</td>
          </tr>
          <tr>
            <td>50426</td>
            <td>HOUSE_OVERSIGHT_022479</td>
            <td>image_ocr</td>
            <td>426 KB</td>
            <td>6.70s</td>
            <td>2025-11-16</td>
          </tr>
          <tr>
            <td>50428</td>
            <td>HOUSE_OVERSIGHT_022480</td>
            <td>image_ocr</td>
            <td>384 KB</td>
            <td>3.27s</td>
            <td>2025-11-16</td>
          </tr>
          <tr>
            <td>50430</td>
            <td>HOUSE_OVERSIGHT_022481</td>
            <td>image_ocr</td>
            <td>329 KB</td>
            <td>2.77s</td>
            <td>2025-11-16</td>
          </tr>
        </tbody>
      </table>
      <div class="sample-notice">Showing sample of 5 records. View full table for complete data.</div>
<div class="pagination">
        <button class="pagination-button" disabled>Previous</button>
        <span>Page 1 of 1002</span>
<button class="pagination-button">Next</button>
      </div>
`;
  }
}

customElements.define('documents-table', DocumentsTable);