@prioticket/design-system-web 1.2.0 → 1.3.0-beta.2
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.
- package/COMPONENT-DOCUMENTATION.md +41 -1
- package/component-documentation.json +176 -2
- package/custom-elements.json +1506 -0
- package/dist/components/pd-table.cjs.js +559 -0
- package/dist/components/pd-table.es.js +1104 -0
- package/dist/prioticket-design-system-web.cjs.js +1 -1
- package/dist/prioticket-design-system-web.es.js +18 -16
- package/dist/types/components/pd-table.d.ts +209 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @prioticket/design-system-web Components
|
|
2
2
|
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0-beta.2
|
|
4
4
|
|
|
5
5
|
### <pd-box> (PdBox)
|
|
6
6
|
|
|
@@ -695,6 +695,46 @@ This element is not rendered directly but is used to collect tab information.
|
|
|
695
695
|
| `icon` | `icon` | `string` | `''` | The icon to display in the tab. |
|
|
696
696
|
| `ariaLabel` | `aria-label` | `string` | `''` | The aria label for accessibility. |
|
|
697
697
|
|
|
698
|
+
### <pd-table> (PdTable)
|
|
699
|
+
|
|
700
|
+
No description available.
|
|
701
|
+
|
|
702
|
+
**Properties**
|
|
703
|
+
|
|
704
|
+
| Property | Attribute | Type | Default | Description |
|
|
705
|
+
|----------|-----------|------|---------|-------------|
|
|
706
|
+
| `columns` | `columns` | `PdTableColumn<T>[]` | `[]` | Column definitions |
|
|
707
|
+
| `data` | `data` | `T[]` | `[]` | Row data array |
|
|
708
|
+
| `rowKey` | | `RowKeyFn<T>` | | Function to extract unique key from each row.
|
|
709
|
+
Defaults to using `row.id` if present, otherwise falls back to index.
|
|
710
|
+
Recommended to provide for proper selection/reordering behavior. |
|
|
711
|
+
| `selectable` | `selectable` | `boolean` | `false` | Enable row selection with checkboxes |
|
|
712
|
+
| `sortable` | `sortable` | `boolean` | `false` | Enable sorting on all columns (can be overridden per-column) |
|
|
713
|
+
| `pagination` | `pagination` | `boolean` | `false` | Enable pagination controls |
|
|
714
|
+
| `pageSize` | `pageSize` | `number` | `10` | Number of items per page |
|
|
715
|
+
| `pageIndex` | `pageIndex` | `number` | `0` | Current page index (zero-based) |
|
|
716
|
+
| `totalItems` | `totalItems` | `number` | `0` | Total item count for server-side pagination.
|
|
717
|
+
When set to a value > 0, disables client-side pagination slicing. |
|
|
718
|
+
| `draggableRows` | `draggable-rows` | `boolean` | `false` | Enable drag-and-drop row reordering |
|
|
719
|
+
| `draggableColumns` | `draggable-columns` | `boolean` | `false` | Enable drag-and-drop column reordering |
|
|
720
|
+
| `loading` | `loading` | `boolean` | `false` | Show loading state |
|
|
721
|
+
| `clearSelectionOnDataChange` | `clear-selection-on-data-change` | `boolean` | `false` | Clear selection when data changes (useful for server-side pagination) |
|
|
722
|
+
| `currencyCode` | `currency-code` | `string` | `'EUR'` | Default currency code for currency-type columns |
|
|
723
|
+
| `locale` | `locale` | `string \| undefined` | | Locale for number/currency/date formatting (defaults to browser locale) |
|
|
724
|
+
| `pageSizeOptions` | `page-size-options` | `number[]` | `[5, 10, 25, 50, 100]` | Available page size options |
|
|
725
|
+
|
|
726
|
+
**Events**
|
|
727
|
+
|
|
728
|
+
| Event | Type | Description |
|
|
729
|
+
|-------|------|-------------|
|
|
730
|
+
| `pd-table-sort` | `CustomEvent` | |
|
|
731
|
+
| `pd-table-selection-change` | `CustomEvent` | |
|
|
732
|
+
| `pd-table-row-click` | `CustomEvent` | |
|
|
733
|
+
| `pd-table-cell-change` | `CustomEvent` | |
|
|
734
|
+
| `pd-table-row-reorder` | `CustomEvent` | |
|
|
735
|
+
| `pd-table-column-reorder` | `CustomEvent` | |
|
|
736
|
+
| `pd-table-page-change` | `CustomEvent` | |
|
|
737
|
+
|
|
698
738
|
### <pd-tabs> (PdTabs)
|
|
699
739
|
|
|
700
740
|
A thin wrapper around the Material Web Tabs component.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "@prioticket/design-system-web",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0-beta.2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"installation": "npm install @prioticket/design-system-web"
|
|
7
7
|
},
|
|
8
|
-
"generatedAt": "2025-
|
|
8
|
+
"generatedAt": "2025-12-05T12:08:09.050Z",
|
|
9
9
|
"components": {
|
|
10
10
|
"pd-box": {
|
|
11
11
|
"tagName": "pd-box",
|
|
@@ -2115,6 +2115,180 @@
|
|
|
2115
2115
|
"slots": [],
|
|
2116
2116
|
"cssProperties": []
|
|
2117
2117
|
},
|
|
2118
|
+
"pd-table": {
|
|
2119
|
+
"tagName": "pd-table",
|
|
2120
|
+
"className": "PdTable",
|
|
2121
|
+
"description": "No description available.",
|
|
2122
|
+
"properties": [
|
|
2123
|
+
{
|
|
2124
|
+
"name": "columns",
|
|
2125
|
+
"type": "PdTableColumn<T>[]",
|
|
2126
|
+
"attribute": "columns",
|
|
2127
|
+
"description": "Column definitions",
|
|
2128
|
+
"default": "[]",
|
|
2129
|
+
"required": false
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"name": "data",
|
|
2133
|
+
"type": "T[]",
|
|
2134
|
+
"attribute": "data",
|
|
2135
|
+
"description": "Row data array",
|
|
2136
|
+
"default": "[]",
|
|
2137
|
+
"required": false
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"name": "rowKey",
|
|
2141
|
+
"type": "RowKeyFn<T>",
|
|
2142
|
+
"attribute": null,
|
|
2143
|
+
"description": "Function to extract unique key from each row.\nDefaults to using `row.id` if present, otherwise falls back to index.\nRecommended to provide for proper selection/reordering behavior.",
|
|
2144
|
+
"default": null,
|
|
2145
|
+
"required": false
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
"name": "selectable",
|
|
2149
|
+
"type": "boolean",
|
|
2150
|
+
"attribute": "selectable",
|
|
2151
|
+
"description": "Enable row selection with checkboxes",
|
|
2152
|
+
"default": "false",
|
|
2153
|
+
"required": false
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"name": "sortable",
|
|
2157
|
+
"type": "boolean",
|
|
2158
|
+
"attribute": "sortable",
|
|
2159
|
+
"description": "Enable sorting on all columns (can be overridden per-column)",
|
|
2160
|
+
"default": "false",
|
|
2161
|
+
"required": false
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"name": "pagination",
|
|
2165
|
+
"type": "boolean",
|
|
2166
|
+
"attribute": "pagination",
|
|
2167
|
+
"description": "Enable pagination controls",
|
|
2168
|
+
"default": "false",
|
|
2169
|
+
"required": false
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"name": "pageSize",
|
|
2173
|
+
"type": "number",
|
|
2174
|
+
"attribute": "pageSize",
|
|
2175
|
+
"description": "Number of items per page",
|
|
2176
|
+
"default": "10",
|
|
2177
|
+
"required": false
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"name": "pageIndex",
|
|
2181
|
+
"type": "number",
|
|
2182
|
+
"attribute": "pageIndex",
|
|
2183
|
+
"description": "Current page index (zero-based)",
|
|
2184
|
+
"default": "0",
|
|
2185
|
+
"required": false
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"name": "totalItems",
|
|
2189
|
+
"type": "number",
|
|
2190
|
+
"attribute": "totalItems",
|
|
2191
|
+
"description": "Total item count for server-side pagination.\nWhen set to a value > 0, disables client-side pagination slicing.",
|
|
2192
|
+
"default": "0",
|
|
2193
|
+
"required": false
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"name": "draggableRows",
|
|
2197
|
+
"type": "boolean",
|
|
2198
|
+
"attribute": "draggable-rows",
|
|
2199
|
+
"description": "Enable drag-and-drop row reordering",
|
|
2200
|
+
"default": "false",
|
|
2201
|
+
"required": false
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "draggableColumns",
|
|
2205
|
+
"type": "boolean",
|
|
2206
|
+
"attribute": "draggable-columns",
|
|
2207
|
+
"description": "Enable drag-and-drop column reordering",
|
|
2208
|
+
"default": "false",
|
|
2209
|
+
"required": false
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"name": "loading",
|
|
2213
|
+
"type": "boolean",
|
|
2214
|
+
"attribute": "loading",
|
|
2215
|
+
"description": "Show loading state",
|
|
2216
|
+
"default": "false",
|
|
2217
|
+
"required": false
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "clearSelectionOnDataChange",
|
|
2221
|
+
"type": "boolean",
|
|
2222
|
+
"attribute": "clear-selection-on-data-change",
|
|
2223
|
+
"description": "Clear selection when data changes (useful for server-side pagination)",
|
|
2224
|
+
"default": "false",
|
|
2225
|
+
"required": false
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"name": "currencyCode",
|
|
2229
|
+
"type": "string",
|
|
2230
|
+
"attribute": "currency-code",
|
|
2231
|
+
"description": "Default currency code for currency-type columns",
|
|
2232
|
+
"default": "'EUR'",
|
|
2233
|
+
"required": false
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"name": "locale",
|
|
2237
|
+
"type": "string | undefined",
|
|
2238
|
+
"attribute": "locale",
|
|
2239
|
+
"description": "Locale for number/currency/date formatting (defaults to browser locale)",
|
|
2240
|
+
"default": null,
|
|
2241
|
+
"required": false
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"name": "pageSizeOptions",
|
|
2245
|
+
"type": "number[]",
|
|
2246
|
+
"attribute": "page-size-options",
|
|
2247
|
+
"description": "Available page size options",
|
|
2248
|
+
"default": "[5, 10, 25, 50, 100]",
|
|
2249
|
+
"required": false
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"events": [
|
|
2253
|
+
{
|
|
2254
|
+
"name": "pd-table-sort",
|
|
2255
|
+
"type": "CustomEvent",
|
|
2256
|
+
"description": ""
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"name": "pd-table-selection-change",
|
|
2260
|
+
"type": "CustomEvent",
|
|
2261
|
+
"description": ""
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
"name": "pd-table-row-click",
|
|
2265
|
+
"type": "CustomEvent",
|
|
2266
|
+
"description": ""
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
"name": "pd-table-cell-change",
|
|
2270
|
+
"type": "CustomEvent",
|
|
2271
|
+
"description": ""
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"name": "pd-table-row-reorder",
|
|
2275
|
+
"type": "CustomEvent",
|
|
2276
|
+
"description": ""
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"name": "pd-table-column-reorder",
|
|
2280
|
+
"type": "CustomEvent",
|
|
2281
|
+
"description": ""
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
"name": "pd-table-page-change",
|
|
2285
|
+
"type": "CustomEvent",
|
|
2286
|
+
"description": ""
|
|
2287
|
+
}
|
|
2288
|
+
],
|
|
2289
|
+
"slots": [],
|
|
2290
|
+
"cssProperties": []
|
|
2291
|
+
},
|
|
2118
2292
|
"pd-tabs": {
|
|
2119
2293
|
"tagName": "pd-tabs",
|
|
2120
2294
|
"className": "PdTabs",
|