@prioticket/design-system-web 1.6.3 → 1.7.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 +1 -1
- package/component-documentation.json +2 -2
- package/custom-elements.json +123 -30
- package/dist/client-C4NwtAXt.js +20655 -0
- package/dist/client-CjTRT4wy.cjs +212 -0
- package/dist/components/pd-table.cjs.js +62 -56
- package/dist/components/pd-table.es.js +302 -206
- package/dist/types/components/pd-table.d.ts +55 -7
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "@prioticket/design-system-web",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0-beta.2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"installation": "npm install @prioticket/design-system-web"
|
|
7
7
|
},
|
|
8
|
-
"generatedAt": "2026-
|
|
8
|
+
"generatedAt": "2026-03-09T17:06:03.680Z",
|
|
9
9
|
"components": {
|
|
10
10
|
"pd-box": {
|
|
11
11
|
"tagName": "pd-box",
|
package/custom-elements.json
CHANGED
|
@@ -6708,6 +6708,21 @@
|
|
|
6708
6708
|
"privacy": "private",
|
|
6709
6709
|
"default": "null"
|
|
6710
6710
|
},
|
|
6711
|
+
{
|
|
6712
|
+
"kind": "field",
|
|
6713
|
+
"name": "_flipPositions",
|
|
6714
|
+
"privacy": "private",
|
|
6715
|
+
"default": "new Map<string | number, number>()"
|
|
6716
|
+
},
|
|
6717
|
+
{
|
|
6718
|
+
"kind": "field",
|
|
6719
|
+
"name": "_flipPending",
|
|
6720
|
+
"type": {
|
|
6721
|
+
"text": "boolean"
|
|
6722
|
+
},
|
|
6723
|
+
"privacy": "private",
|
|
6724
|
+
"default": "false"
|
|
6725
|
+
},
|
|
6711
6726
|
{
|
|
6712
6727
|
"kind": "field",
|
|
6713
6728
|
"name": "_displayDataCache",
|
|
@@ -6726,6 +6741,18 @@
|
|
|
6726
6741
|
"privacy": "private",
|
|
6727
6742
|
"default": "''"
|
|
6728
6743
|
},
|
|
6744
|
+
{
|
|
6745
|
+
"kind": "field",
|
|
6746
|
+
"name": "_displayToDataIndexMap",
|
|
6747
|
+
"privacy": "private",
|
|
6748
|
+
"default": "new Map<T, number>()"
|
|
6749
|
+
},
|
|
6750
|
+
{
|
|
6751
|
+
"kind": "field",
|
|
6752
|
+
"name": "_reactRoots",
|
|
6753
|
+
"privacy": "private",
|
|
6754
|
+
"default": "new Map<string, { render: (el: ReactElement) => void; unmount: () => void }>()"
|
|
6755
|
+
},
|
|
6729
6756
|
{
|
|
6730
6757
|
"kind": "field",
|
|
6731
6758
|
"name": "_isServerSidePagination",
|
|
@@ -6766,6 +6793,38 @@
|
|
|
6766
6793
|
"description": "Processed data with sorting and pagination applied.\nResults are memoized for performance.",
|
|
6767
6794
|
"readonly": true
|
|
6768
6795
|
},
|
|
6796
|
+
{
|
|
6797
|
+
"kind": "method",
|
|
6798
|
+
"name": "_captureRowPositions",
|
|
6799
|
+
"privacy": "private",
|
|
6800
|
+
"return": {
|
|
6801
|
+
"type": {
|
|
6802
|
+
"text": "void"
|
|
6803
|
+
}
|
|
6804
|
+
},
|
|
6805
|
+
"description": "Captures the current Y position of every visible row.\nMust be called BEFORE data changes trigger a re-render."
|
|
6806
|
+
},
|
|
6807
|
+
{
|
|
6808
|
+
"kind": "method",
|
|
6809
|
+
"name": "_playFlipAnimation",
|
|
6810
|
+
"privacy": "private",
|
|
6811
|
+
"return": {
|
|
6812
|
+
"type": {
|
|
6813
|
+
"text": "void"
|
|
6814
|
+
}
|
|
6815
|
+
},
|
|
6816
|
+
"description": "After re-render, computes the delta between old and new positions\nand animates rows from their old position to the new one."
|
|
6817
|
+
},
|
|
6818
|
+
{
|
|
6819
|
+
"kind": "field",
|
|
6820
|
+
"name": "_dataRevision",
|
|
6821
|
+
"type": {
|
|
6822
|
+
"text": "number"
|
|
6823
|
+
},
|
|
6824
|
+
"privacy": "private",
|
|
6825
|
+
"default": "0",
|
|
6826
|
+
"description": "Incremented whenever data is set, ensuring the cache is always invalidated.\nThis replaces the fragile fingerprinting approach that missed adjacent swaps."
|
|
6827
|
+
},
|
|
6769
6828
|
{
|
|
6770
6829
|
"kind": "method",
|
|
6771
6830
|
"name": "_computeCacheKey",
|
|
@@ -6818,25 +6877,6 @@
|
|
|
6818
6877
|
}
|
|
6819
6878
|
]
|
|
6820
6879
|
},
|
|
6821
|
-
{
|
|
6822
|
-
"kind": "method",
|
|
6823
|
-
"name": "_getActualDataIndex",
|
|
6824
|
-
"privacy": "private",
|
|
6825
|
-
"return": {
|
|
6826
|
-
"type": {
|
|
6827
|
-
"text": "number"
|
|
6828
|
-
}
|
|
6829
|
-
},
|
|
6830
|
-
"parameters": [
|
|
6831
|
-
{
|
|
6832
|
-
"name": "row",
|
|
6833
|
-
"type": {
|
|
6834
|
-
"text": "T"
|
|
6835
|
-
}
|
|
6836
|
-
}
|
|
6837
|
-
],
|
|
6838
|
-
"description": "Finds the actual index of a row in the full data array.\nThis is critical for stable row keys when pagination is active."
|
|
6839
|
-
},
|
|
6840
6880
|
{
|
|
6841
6881
|
"kind": "method",
|
|
6842
6882
|
"name": "_isColumnSortable",
|
|
@@ -7060,7 +7100,7 @@
|
|
|
7060
7100
|
}
|
|
7061
7101
|
},
|
|
7062
7102
|
{
|
|
7063
|
-
"name": "
|
|
7103
|
+
"name": "displayIndex",
|
|
7064
7104
|
"type": {
|
|
7065
7105
|
"text": "number"
|
|
7066
7106
|
}
|
|
@@ -7084,7 +7124,7 @@
|
|
|
7084
7124
|
}
|
|
7085
7125
|
},
|
|
7086
7126
|
{
|
|
7087
|
-
"name": "
|
|
7127
|
+
"name": "displayIndex",
|
|
7088
7128
|
"type": {
|
|
7089
7129
|
"text": "number"
|
|
7090
7130
|
}
|
|
@@ -7126,7 +7166,7 @@
|
|
|
7126
7166
|
}
|
|
7127
7167
|
},
|
|
7128
7168
|
{
|
|
7129
|
-
"name": "
|
|
7169
|
+
"name": "toDisplayIndex",
|
|
7130
7170
|
"type": {
|
|
7131
7171
|
"text": "number"
|
|
7132
7172
|
}
|
|
@@ -7180,7 +7220,7 @@
|
|
|
7180
7220
|
}
|
|
7181
7221
|
},
|
|
7182
7222
|
{
|
|
7183
|
-
"name": "
|
|
7223
|
+
"name": "displayIndex",
|
|
7184
7224
|
"type": {
|
|
7185
7225
|
"text": "number"
|
|
7186
7226
|
}
|
|
@@ -7198,18 +7238,19 @@
|
|
|
7198
7238
|
},
|
|
7199
7239
|
"parameters": [
|
|
7200
7240
|
{
|
|
7201
|
-
"name": "
|
|
7241
|
+
"name": "fromDisplayIndex",
|
|
7202
7242
|
"type": {
|
|
7203
7243
|
"text": "number"
|
|
7204
7244
|
}
|
|
7205
7245
|
},
|
|
7206
7246
|
{
|
|
7207
|
-
"name": "
|
|
7247
|
+
"name": "toDisplayIndex",
|
|
7208
7248
|
"type": {
|
|
7209
7249
|
"text": "number"
|
|
7210
7250
|
}
|
|
7211
7251
|
}
|
|
7212
|
-
]
|
|
7252
|
+
],
|
|
7253
|
+
"description": "Maps display indices to this.data indices, performs the reorder\ninternally, and emits the event with the complete reordered array.\n\nWhen sorting is active the user sees a sorted view; dragging within it\nmeans \"I accept this sorted order AND want to adjust it.\" We therefore\n**materialize** the sort into the data array before applying the drag,\nso the result matches what the user visually intended."
|
|
7213
7254
|
},
|
|
7214
7255
|
{
|
|
7215
7256
|
"kind": "method",
|
|
@@ -7574,6 +7615,48 @@
|
|
|
7574
7615
|
}
|
|
7575
7616
|
]
|
|
7576
7617
|
},
|
|
7618
|
+
{
|
|
7619
|
+
"kind": "method",
|
|
7620
|
+
"name": "_isReactElement",
|
|
7621
|
+
"privacy": "private",
|
|
7622
|
+
"return": {
|
|
7623
|
+
"type": {
|
|
7624
|
+
"text": "value is ReactElement"
|
|
7625
|
+
}
|
|
7626
|
+
},
|
|
7627
|
+
"parameters": [
|
|
7628
|
+
{
|
|
7629
|
+
"name": "value",
|
|
7630
|
+
"type": {
|
|
7631
|
+
"text": "unknown"
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
]
|
|
7635
|
+
},
|
|
7636
|
+
{
|
|
7637
|
+
"kind": "method",
|
|
7638
|
+
"name": "_renderReactCellContent",
|
|
7639
|
+
"privacy": "private",
|
|
7640
|
+
"return": {
|
|
7641
|
+
"type": {
|
|
7642
|
+
"text": "TemplateResult"
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7645
|
+
"parameters": [
|
|
7646
|
+
{
|
|
7647
|
+
"name": "element",
|
|
7648
|
+
"type": {
|
|
7649
|
+
"text": "ReactElement"
|
|
7650
|
+
}
|
|
7651
|
+
},
|
|
7652
|
+
{
|
|
7653
|
+
"name": "cellKey",
|
|
7654
|
+
"type": {
|
|
7655
|
+
"text": "string"
|
|
7656
|
+
}
|
|
7657
|
+
}
|
|
7658
|
+
]
|
|
7659
|
+
},
|
|
7577
7660
|
{
|
|
7578
7661
|
"kind": "method",
|
|
7579
7662
|
"name": "_renderRow",
|
|
@@ -7588,15 +7671,25 @@
|
|
|
7588
7671
|
"name": "row",
|
|
7589
7672
|
"type": {
|
|
7590
7673
|
"text": "T"
|
|
7591
|
-
}
|
|
7674
|
+
},
|
|
7675
|
+
"description": "The data item"
|
|
7592
7676
|
},
|
|
7593
7677
|
{
|
|
7594
|
-
"name": "
|
|
7678
|
+
"name": "displayIndex",
|
|
7595
7679
|
"type": {
|
|
7596
7680
|
"text": "number"
|
|
7597
|
-
}
|
|
7681
|
+
},
|
|
7682
|
+
"description": "0-based position in the visible (sorted/paginated) list — used for drag-and-drop"
|
|
7683
|
+
},
|
|
7684
|
+
{
|
|
7685
|
+
"name": "dataIndex",
|
|
7686
|
+
"type": {
|
|
7687
|
+
"text": "number"
|
|
7688
|
+
},
|
|
7689
|
+
"description": "Position in the original this.data array — used for row keys, selection, and events"
|
|
7598
7690
|
}
|
|
7599
|
-
]
|
|
7691
|
+
],
|
|
7692
|
+
"description": "Renders a single table row."
|
|
7600
7693
|
},
|
|
7601
7694
|
{
|
|
7602
7695
|
"kind": "method",
|