@robot-admin/naive-ui-components 0.37.1 → 0.37.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/CHANGELOG.md +10 -0
- package/README.md +24 -3
- package/README_EN.md +23 -2
- package/dist/C_Captcha.d.ts +1 -1
- package/dist/C_DataPicker.d.ts +0 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.d.ts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Table.base.css +127 -111
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +127 -111
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +2 -3
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Tree.d.ts +0 -1
- package/dist/C_UserPicker.d.ts +0 -1
- package/dist/C_WorkFlow.d.ts +0 -1
- package/dist/component-config.d.ts +1723 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +3 -2
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +1 -1
- package/dist/constants4.d.ts +1 -1
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.cjs +1 -1
- package/dist/context.d.cts +1118 -3
- package/dist/context.js +1 -1
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +12 -10
- package/dist/editors.d.ts +12 -10
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +4 -4
- package/dist/index14.vue.d.cts +4 -4
- package/dist/index15.vue.d.ts +3 -3
- package/dist/index16.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index18.vue.d.ts +3 -3
- package/dist/index19.vue.d.cts +3 -3
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +4 -4
- package/dist/index22.vue.d.cts +4 -4
- package/dist/index24.vue.d.cts +2 -2
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index28.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index31.vue.d.cts +3 -3
- package/dist/index31.vue.d.ts +3 -3
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +3 -3
- package/dist/index4.vue.d.ts +3 -3
- package/dist/index7.vue.d.ts +2 -2
- package/dist/index8.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +2 -2
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/style.css +127 -111
- package/dist/types3.d.ts +5 -1119
- package/dist/types4.d.cts +5 -1119
- package/dist/types6.d.ts +2 -1
- package/dist/types7.d.cts +2 -1
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +8 -8
- package/dist/useCollapsePanel.d.ts +8 -8
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +8 -8
- package/dist/useSplitResize.d.ts +8 -8
- package/dist/useWorkflowValidation.d.cts +2 -2
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/table-density.md +19 -2
- package/package.json +1 -1
- package/dist/context.d.ts +0 -610
- package/dist/useTableGlobalConfig.cjs +0 -1
- package/dist/useTableGlobalConfig.js +0 -1
package/dist/C_Table.base.css
CHANGED
|
@@ -1618,7 +1618,7 @@ to {
|
|
|
1618
1618
|
.px[data-v-a35abd38]{padding-left:1rem;padding-right:1rem;}
|
|
1619
1619
|
.accent-blue-500[data-v-a35abd38]{--un-accent-opacity:1;accent-color:rgb(59 130 246 / var(--un-accent-opacity));}
|
|
1620
1620
|
|
|
1621
|
-
.c-table-wrapper[data-v-
|
|
1621
|
+
.c-table-wrapper[data-v-16135711] {
|
|
1622
1622
|
--c-table-border-color: var(--c-border, var(--c-theme-border, #e5e7eb));
|
|
1623
1623
|
--c-table-bg: var(--c-bg-body, var(--c-theme-bg-body, #fff));
|
|
1624
1624
|
--c-table-header-bg: var(--c-bg-muted, var(--c-theme-bg-muted, #fafafc));
|
|
@@ -1629,55 +1629,55 @@ to {
|
|
|
1629
1629
|
width: 100%;
|
|
1630
1630
|
position: relative;
|
|
1631
1631
|
}
|
|
1632
|
-
.c-table-wrapper--compact[data-v-
|
|
1632
|
+
.c-table-wrapper--compact[data-v-16135711] {
|
|
1633
1633
|
--c-table-gap: 8px;
|
|
1634
1634
|
--c-table-button-font-size: 14px;
|
|
1635
1635
|
--c-table-cell-min-height: 28px;
|
|
1636
1636
|
--c-table-cell-padding: 2px 4px;
|
|
1637
1637
|
}
|
|
1638
|
-
.c-table-wrapper--default[data-v-
|
|
1638
|
+
.c-table-wrapper--default[data-v-16135711] {
|
|
1639
1639
|
--c-table-gap: 16px;
|
|
1640
1640
|
--c-table-button-font-size: 14px;
|
|
1641
1641
|
--c-table-cell-min-height: 36px;
|
|
1642
1642
|
--c-table-cell-padding: 6px 8px;
|
|
1643
1643
|
}
|
|
1644
|
-
.c-table-wrapper--comfortable[data-v-
|
|
1644
|
+
.c-table-wrapper--comfortable[data-v-16135711] {
|
|
1645
1645
|
--c-table-gap: 20px;
|
|
1646
1646
|
--c-table-button-font-size: 15px;
|
|
1647
1647
|
--c-table-cell-min-height: 40px;
|
|
1648
1648
|
--c-table-cell-padding: 8px 10px;
|
|
1649
1649
|
}
|
|
1650
|
-
.c-table-wrapper--flex[data-v-
|
|
1650
|
+
.c-table-wrapper--flex[data-v-16135711] {
|
|
1651
1651
|
display: flex;
|
|
1652
1652
|
flex-direction: column;
|
|
1653
1653
|
height: 100%;
|
|
1654
1654
|
min-height: 0;
|
|
1655
1655
|
}
|
|
1656
|
-
.c-table-wrapper--flex[data-v-
|
|
1657
|
-
.c-table-wrapper--flex > .table-error-state[data-v-
|
|
1656
|
+
.c-table-wrapper--flex[data-v-16135711] > .n-data-table,
|
|
1657
|
+
.c-table-wrapper--flex > .table-error-state[data-v-16135711] {
|
|
1658
1658
|
flex: 1;
|
|
1659
1659
|
min-height: 0;
|
|
1660
1660
|
}
|
|
1661
|
-
.c-table-wrapper--flex > .table-toolbar[data-v-
|
|
1662
|
-
.c-table-wrapper--flex > .batch-actions-bar[data-v-
|
|
1663
|
-
.c-table-wrapper--flex > .pagination-wrapper[data-v-
|
|
1661
|
+
.c-table-wrapper--flex > .table-toolbar[data-v-16135711],
|
|
1662
|
+
.c-table-wrapper--flex > .batch-actions-bar[data-v-16135711],
|
|
1663
|
+
.c-table-wrapper--flex > .pagination-wrapper[data-v-16135711] {
|
|
1664
1664
|
flex-shrink: 0;
|
|
1665
1665
|
}
|
|
1666
|
-
.column-drag-ghost[data-v-
|
|
1666
|
+
.column-drag-ghost[data-v-16135711] {
|
|
1667
1667
|
opacity: var(--c-table-drag-ghost-opacity);
|
|
1668
1668
|
background: var(--c-table-drag-ghost-bg) !important;
|
|
1669
1669
|
}
|
|
1670
|
-
.drag-handle[data-v-
|
|
1670
|
+
.drag-handle[data-v-16135711] {
|
|
1671
1671
|
cursor: grab;
|
|
1672
1672
|
}
|
|
1673
|
-
.drag-handle[data-v-
|
|
1673
|
+
.drag-handle[data-v-16135711]:active {
|
|
1674
1674
|
cursor: grabbing;
|
|
1675
1675
|
}
|
|
1676
|
-
.c-table-wrapper[data-v-
|
|
1676
|
+
.c-table-wrapper[data-v-16135711] .n-data-table-tfoot {
|
|
1677
1677
|
background: var(--c-table-summary-bg);
|
|
1678
1678
|
font-weight: var(--c-table-summary-font-weight);
|
|
1679
1679
|
}
|
|
1680
|
-
.table-toolbar[data-v-
|
|
1680
|
+
.table-toolbar[data-v-16135711] {
|
|
1681
1681
|
display: flex;
|
|
1682
1682
|
justify-content: space-between;
|
|
1683
1683
|
align-items: center;
|
|
@@ -1685,29 +1685,29 @@ to {
|
|
|
1685
1685
|
gap: var(--c-table-gap, 12px);
|
|
1686
1686
|
flex-wrap: wrap;
|
|
1687
1687
|
}
|
|
1688
|
-
.table-toolbar .toolbar-left[data-v-
|
|
1688
|
+
.table-toolbar .toolbar-left[data-v-16135711] {
|
|
1689
1689
|
display: flex;
|
|
1690
1690
|
align-items: center;
|
|
1691
1691
|
gap: var(--c-table-gap, 12px);
|
|
1692
1692
|
flex-wrap: wrap;
|
|
1693
1693
|
min-width: 0;
|
|
1694
1694
|
}
|
|
1695
|
-
.table-toolbar .toolbar-right[data-v-
|
|
1695
|
+
.table-toolbar .toolbar-right[data-v-16135711] {
|
|
1696
1696
|
display: flex;
|
|
1697
1697
|
align-items: center;
|
|
1698
1698
|
gap: var(--c-table-gap, 8px);
|
|
1699
1699
|
flex-wrap: wrap;
|
|
1700
1700
|
}
|
|
1701
|
-
.table-toolbar .toolbar-right .column-settings-btn[data-v-
|
|
1701
|
+
.table-toolbar .toolbar-right .column-settings-btn[data-v-16135711] {
|
|
1702
1702
|
opacity: 0.6;
|
|
1703
1703
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
1704
1704
|
cursor: pointer;
|
|
1705
1705
|
}
|
|
1706
|
-
.table-toolbar .toolbar-right .column-settings-btn[data-v-
|
|
1706
|
+
.table-toolbar .toolbar-right .column-settings-btn[data-v-16135711]:hover {
|
|
1707
1707
|
opacity: 1;
|
|
1708
1708
|
transform: scale(1.1);
|
|
1709
1709
|
}
|
|
1710
|
-
.dynamic-rows-toolbar[data-v-
|
|
1710
|
+
.dynamic-rows-toolbar[data-v-16135711] {
|
|
1711
1711
|
margin-bottom: var(--c-table-gap, 16px);
|
|
1712
1712
|
padding: var(--c-table-gap, 16px);
|
|
1713
1713
|
border-radius: var(--c-radius-panel, var(--c-theme-radius-panel, 8px));
|
|
@@ -1716,38 +1716,54 @@ to {
|
|
|
1716
1716
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
1717
1717
|
transition: all 0.2s ease;
|
|
1718
1718
|
}
|
|
1719
|
-
.dynamic-rows-toolbar[data-v-
|
|
1719
|
+
.dynamic-rows-toolbar[data-v-16135711]:hover {
|
|
1720
1720
|
border-color: color-mix(in srgb, var(--c-primary, var(--c-theme-primary, #2080f0)) 16%, transparent);
|
|
1721
1721
|
}
|
|
1722
|
-
[data-v-
|
|
1722
|
+
[data-v-16135711] .n-data-table {
|
|
1723
1723
|
table-layout: auto !important;
|
|
1724
1724
|
width: 100% !important;
|
|
1725
1725
|
border-radius: var(--c-radius-panel, var(--c-theme-radius-panel, 8px));
|
|
1726
1726
|
overflow: hidden;
|
|
1727
1727
|
}
|
|
1728
|
-
[data-v-
|
|
1728
|
+
[data-v-16135711] .n-data-table-wrapper {
|
|
1729
1729
|
overflow-x: auto !important;
|
|
1730
1730
|
}
|
|
1731
|
-
.c-table-wrapper[data-v-
|
|
1731
|
+
.c-table-wrapper[data-v-16135711] .n-data-table-table {
|
|
1732
1732
|
width: var(--c-table-native-width, 100%);
|
|
1733
1733
|
}
|
|
1734
|
-
|
|
1734
|
+
[data-v-16135711] .c-table-layout-gap {
|
|
1735
|
+
padding-inline: 0 !important;
|
|
1736
|
+
border-inline: 0 !important;
|
|
1737
|
+
}
|
|
1738
|
+
.c-table-wrapper[data-v-16135711] .n-data-table-td
|
|
1739
|
+
.n-ellipsis:not(.n-ellipsis--line-clamp)
|
|
1740
|
+
> span
|
|
1741
|
+
> :is(button, a):not(.n-button) {
|
|
1742
|
+
display: inline-block;
|
|
1743
|
+
box-sizing: border-box;
|
|
1744
|
+
max-width: 100%;
|
|
1745
|
+
overflow: hidden;
|
|
1746
|
+
text-overflow: ellipsis;
|
|
1747
|
+
white-space: nowrap;
|
|
1748
|
+
vertical-align: bottom;
|
|
1749
|
+
}
|
|
1750
|
+
.pagination-wrapper[data-v-16135711] {
|
|
1735
1751
|
margin-top: var(--c-table-gap, 16px);
|
|
1736
1752
|
display: flex;
|
|
1737
1753
|
justify-content: flex-end;
|
|
1738
1754
|
}
|
|
1739
|
-
[data-v-
|
|
1755
|
+
[data-v-16135711] .c-table-index-column {
|
|
1740
1756
|
padding-inline: 8px;
|
|
1741
1757
|
}
|
|
1742
|
-
[data-v-
|
|
1758
|
+
[data-v-16135711] .c-table-actions-column {
|
|
1743
1759
|
text-align: center !important;
|
|
1744
1760
|
padding: 8px 12px !important;
|
|
1745
1761
|
}
|
|
1746
|
-
[data-v-
|
|
1762
|
+
[data-v-16135711] .c-table-actions-column .n-space {
|
|
1747
1763
|
justify-content: center !important;
|
|
1748
1764
|
align-items: center !important;
|
|
1749
1765
|
}
|
|
1750
|
-
[data-v-
|
|
1766
|
+
[data-v-16135711] .cell-edit-wrapper {
|
|
1751
1767
|
display: flex;
|
|
1752
1768
|
align-items: center;
|
|
1753
1769
|
justify-content: space-between;
|
|
@@ -1759,18 +1775,18 @@ to {
|
|
|
1759
1775
|
cursor: pointer;
|
|
1760
1776
|
position: relative;
|
|
1761
1777
|
}
|
|
1762
|
-
[data-v-
|
|
1778
|
+
[data-v-16135711] .cell-edit-wrapper:hover {
|
|
1763
1779
|
background-color: var(--c-bg-hover, var(--c-theme-bg-hover, #f3f4f6));
|
|
1764
1780
|
}
|
|
1765
|
-
[data-v-
|
|
1781
|
+
[data-v-16135711] .cell-edit-wrapper:hover .cell-edit-icon {
|
|
1766
1782
|
opacity: 1;
|
|
1767
1783
|
color: var(--c-success, var(--c-theme-success, #18a058));
|
|
1768
1784
|
transform: scale(1.05);
|
|
1769
1785
|
}
|
|
1770
|
-
[data-v-
|
|
1786
|
+
[data-v-16135711] .cell-edit-wrapper:active {
|
|
1771
1787
|
transform: translateY(1px);
|
|
1772
1788
|
}
|
|
1773
|
-
[data-v-
|
|
1789
|
+
[data-v-16135711] .cell-value {
|
|
1774
1790
|
flex: 1;
|
|
1775
1791
|
overflow: hidden;
|
|
1776
1792
|
text-overflow: ellipsis;
|
|
@@ -1779,7 +1795,7 @@ to {
|
|
|
1779
1795
|
line-height: 1.4;
|
|
1780
1796
|
font-size: 13px;
|
|
1781
1797
|
}
|
|
1782
|
-
.c-table-wrapper[data-v-
|
|
1798
|
+
.c-table-wrapper[data-v-16135711] .cell-edit-icon {
|
|
1783
1799
|
flex-shrink: 0;
|
|
1784
1800
|
width: 24px;
|
|
1785
1801
|
height: 24px;
|
|
@@ -1794,20 +1810,20 @@ to {
|
|
|
1794
1810
|
opacity: 0;
|
|
1795
1811
|
position: relative;
|
|
1796
1812
|
}
|
|
1797
|
-
.c-table-wrapper[data-v-
|
|
1813
|
+
.c-table-wrapper[data-v-16135711] .cell-edit-icon:hover {
|
|
1798
1814
|
opacity: 1 !important;
|
|
1799
1815
|
color: var(--c-success, var(--c-theme-success, #18a058)) !important;
|
|
1800
1816
|
background-color: color-mix(in srgb, var(--c-success, var(--c-theme-success, #18a058)) 14%, transparent);
|
|
1801
1817
|
transform: scale(1.1);
|
|
1802
1818
|
}
|
|
1803
|
-
.c-table-wrapper[data-v-
|
|
1819
|
+
.c-table-wrapper[data-v-16135711] .cell-edit-icon:active {
|
|
1804
1820
|
transform: scale(0.95);
|
|
1805
1821
|
}
|
|
1806
|
-
.c-table-wrapper[data-v-
|
|
1822
|
+
.c-table-wrapper[data-v-16135711] .cell-edit-icon svg {
|
|
1807
1823
|
width: 14px;
|
|
1808
1824
|
height: 14px;
|
|
1809
1825
|
}
|
|
1810
|
-
[data-v-
|
|
1826
|
+
[data-v-16135711] .cell-editing-container {
|
|
1811
1827
|
display: flex !important;
|
|
1812
1828
|
flex-wrap: wrap;
|
|
1813
1829
|
align-items: center !important;
|
|
@@ -1820,36 +1836,36 @@ to {
|
|
|
1820
1836
|
box-shadow: 0 0 0 2px var(--c-focus-ring, var(--c-theme-focus-ring, color-mix(in srgb, var(--c-primary, var(--c-theme-primary, #2080f0)) 30%, transparent))) !important;
|
|
1821
1837
|
gap: 8px !important;
|
|
1822
1838
|
}
|
|
1823
|
-
[data-v-
|
|
1839
|
+
[data-v-16135711] .cell-editing-input {
|
|
1824
1840
|
flex: 1 0 6rem !important;
|
|
1825
1841
|
min-width: 0 !important;
|
|
1826
1842
|
max-width: 100%;
|
|
1827
1843
|
}
|
|
1828
|
-
[data-v-
|
|
1844
|
+
[data-v-16135711] .cell-editing-input .n-input {
|
|
1829
1845
|
border: none !important;
|
|
1830
1846
|
box-shadow: none !important;
|
|
1831
1847
|
background: transparent !important;
|
|
1832
1848
|
}
|
|
1833
|
-
[data-v-
|
|
1849
|
+
[data-v-16135711] .cell-editing-input .n-input.n-input--focus {
|
|
1834
1850
|
border: none !important;
|
|
1835
1851
|
box-shadow: none !important;
|
|
1836
1852
|
}
|
|
1837
|
-
[data-v-
|
|
1853
|
+
[data-v-16135711] .cell-editing-input .n-input-number {
|
|
1838
1854
|
border: none !important;
|
|
1839
1855
|
box-shadow: none !important;
|
|
1840
1856
|
background: transparent !important;
|
|
1841
1857
|
}
|
|
1842
|
-
[data-v-
|
|
1858
|
+
[data-v-16135711] .cell-editing-input .n-select {
|
|
1843
1859
|
border: none !important;
|
|
1844
1860
|
box-shadow: none !important;
|
|
1845
1861
|
background: transparent !important;
|
|
1846
1862
|
}
|
|
1847
|
-
[data-v-
|
|
1863
|
+
[data-v-16135711] .cell-editing-input .n-select .n-base-selection {
|
|
1848
1864
|
border: none !important;
|
|
1849
1865
|
box-shadow: none !important;
|
|
1850
1866
|
background: transparent !important;
|
|
1851
1867
|
}
|
|
1852
|
-
[data-v-
|
|
1868
|
+
[data-v-16135711] .cell-editing-actions {
|
|
1853
1869
|
display: flex !important;
|
|
1854
1870
|
flex-shrink: 0 !important;
|
|
1855
1871
|
align-items: center !important;
|
|
@@ -1860,7 +1876,7 @@ to {
|
|
|
1860
1876
|
padding: 2px !important;
|
|
1861
1877
|
box-shadow: var(--c-shadow-sm, var(--c-theme-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08))) !important;
|
|
1862
1878
|
}
|
|
1863
|
-
[data-v-
|
|
1879
|
+
[data-v-16135711] .cell-action-btn {
|
|
1864
1880
|
display: flex !important;
|
|
1865
1881
|
align-items: center !important;
|
|
1866
1882
|
justify-content: center !important;
|
|
@@ -1872,25 +1888,25 @@ to {
|
|
|
1872
1888
|
transition: all 0.2s ease !important;
|
|
1873
1889
|
background: transparent !important;
|
|
1874
1890
|
}
|
|
1875
|
-
[data-v-
|
|
1891
|
+
[data-v-16135711] .cell-action-btn.cell-action-save {
|
|
1876
1892
|
color: var(--c-success, var(--c-theme-success, #18a058)) !important;
|
|
1877
1893
|
}
|
|
1878
|
-
[data-v-
|
|
1894
|
+
[data-v-16135711] .cell-action-btn.cell-action-save:hover {
|
|
1879
1895
|
background: color-mix(in srgb, var(--c-success, var(--c-theme-success, #18a058)) 14%, transparent) !important;
|
|
1880
1896
|
transform: scale(1.1) !important;
|
|
1881
1897
|
}
|
|
1882
|
-
[data-v-
|
|
1898
|
+
[data-v-16135711] .cell-action-btn.cell-action-cancel {
|
|
1883
1899
|
color: var(--c-error, var(--c-theme-error, #d03050)) !important;
|
|
1884
1900
|
}
|
|
1885
|
-
[data-v-
|
|
1901
|
+
[data-v-16135711] .cell-action-btn.cell-action-cancel:hover {
|
|
1886
1902
|
background: color-mix(in srgb, var(--c-error, var(--c-theme-error, #d03050)) 14%, transparent) !important;
|
|
1887
1903
|
transform: scale(1.1) !important;
|
|
1888
1904
|
}
|
|
1889
|
-
[data-v-
|
|
1905
|
+
[data-v-16135711] .cell-action-btn svg {
|
|
1890
1906
|
width: 11px !important;
|
|
1891
1907
|
height: 11px !important;
|
|
1892
1908
|
}
|
|
1893
|
-
[data-v-
|
|
1909
|
+
[data-v-16135711] .n-button {
|
|
1894
1910
|
white-space: nowrap;
|
|
1895
1911
|
font-size: var(--c-table-button-font-size, 12px) !important;
|
|
1896
1912
|
flex-shrink: 0 !important;
|
|
@@ -1898,108 +1914,108 @@ to {
|
|
|
1898
1914
|
transition: all 0.2s ease;
|
|
1899
1915
|
font-weight: 500;
|
|
1900
1916
|
}
|
|
1901
|
-
[data-v-
|
|
1917
|
+
[data-v-16135711] .n-button .n-icon {
|
|
1902
1918
|
margin-right: 4px !important;
|
|
1903
1919
|
}
|
|
1904
|
-
[data-v-
|
|
1920
|
+
[data-v-16135711] .n-button.n-button--small-type:not(.c-table-inline-action) {
|
|
1905
1921
|
padding: 4px 8px;
|
|
1906
1922
|
height: 28px;
|
|
1907
1923
|
line-height: 20px;
|
|
1908
1924
|
}
|
|
1909
|
-
[data-v-
|
|
1925
|
+
[data-v-16135711] .n-button.n-button--quaternary-type:hover {
|
|
1910
1926
|
transform: translateY(-1px);
|
|
1911
1927
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
1912
1928
|
}
|
|
1913
|
-
[data-v-
|
|
1929
|
+
[data-v-16135711] .n-button.n-button--quaternary-type:active {
|
|
1914
1930
|
transform: translateY(0);
|
|
1915
1931
|
}
|
|
1916
|
-
[data-v-
|
|
1932
|
+
[data-v-16135711] .n-space.n-space--horizontal .n-space-item:not(:last-child) {
|
|
1917
1933
|
margin-right: 6px !important;
|
|
1918
1934
|
}
|
|
1919
|
-
[data-v-
|
|
1935
|
+
[data-v-16135711] .n-modal .n-card {
|
|
1920
1936
|
border-radius: var(--c-radius-lg, var(--c-theme-radius-lg, 12px));
|
|
1921
1937
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
1922
1938
|
}
|
|
1923
|
-
[data-v-
|
|
1939
|
+
[data-v-16135711] .n-modal .n-card__header {
|
|
1924
1940
|
padding: 20px 24px 16px;
|
|
1925
1941
|
font-weight: 600;
|
|
1926
1942
|
font-size: 16px;
|
|
1927
1943
|
}
|
|
1928
|
-
[data-v-
|
|
1944
|
+
[data-v-16135711] .n-modal .n-card__content {
|
|
1929
1945
|
padding: 0 24px 16px;
|
|
1930
1946
|
}
|
|
1931
|
-
[data-v-
|
|
1947
|
+
[data-v-16135711] .n-modal .n-card__action {
|
|
1932
1948
|
padding: 16px 24px 20px;
|
|
1933
1949
|
border-top: 1px solid var(--c-border, var(--c-theme-border, #e5e7eb));
|
|
1934
1950
|
}
|
|
1935
|
-
[data-v-
|
|
1951
|
+
[data-v-16135711] .n-descriptions .n-descriptions-item-label {
|
|
1936
1952
|
font-weight: 500;
|
|
1937
1953
|
color: var(--c-text-2, var(--c-theme-text-2, #525252));
|
|
1938
1954
|
}
|
|
1939
|
-
[data-v-
|
|
1955
|
+
[data-v-16135711] .n-descriptions .n-descriptions-item-content {
|
|
1940
1956
|
color: var(--c-text-1, var(--c-theme-text-1, #262626));
|
|
1941
1957
|
word-break: break-all;
|
|
1942
1958
|
}
|
|
1943
1959
|
@media (max-width: 768px) {
|
|
1944
|
-
.c-table-wrapper[data-v-
|
|
1960
|
+
.c-table-wrapper[data-v-16135711] {
|
|
1945
1961
|
overflow-x: auto;
|
|
1946
1962
|
}
|
|
1947
|
-
[data-v-
|
|
1963
|
+
[data-v-16135711] .n-button {
|
|
1948
1964
|
font-size: 11px !important;
|
|
1949
1965
|
}
|
|
1950
|
-
[data-v-
|
|
1966
|
+
[data-v-16135711] .n-button:not(.c-table-inline-action) {
|
|
1951
1967
|
padding: 3px 6px;
|
|
1952
1968
|
}
|
|
1953
|
-
[data-v-
|
|
1969
|
+
[data-v-16135711] .n-button .n-icon {
|
|
1954
1970
|
margin-right: 2px !important;
|
|
1955
1971
|
}
|
|
1956
|
-
.cell-edit-icon[data-v-
|
|
1972
|
+
.cell-edit-icon[data-v-16135711] {
|
|
1957
1973
|
opacity: 0.6;
|
|
1958
1974
|
}
|
|
1959
1975
|
}
|
|
1960
1976
|
@media (max-width: 768px) {
|
|
1961
|
-
[data-v-
|
|
1977
|
+
[data-v-16135711] .cell-editing-container {
|
|
1962
1978
|
gap: 6px !important;
|
|
1963
1979
|
}
|
|
1964
|
-
[data-v-
|
|
1980
|
+
[data-v-16135711] .cell-editing-actions {
|
|
1965
1981
|
gap: 3px !important;
|
|
1966
1982
|
padding: 2px !important;
|
|
1967
1983
|
}
|
|
1968
|
-
[data-v-
|
|
1984
|
+
[data-v-16135711] .cell-action-btn {
|
|
1969
1985
|
width: 18px !important;
|
|
1970
1986
|
height: 18px !important;
|
|
1971
1987
|
}
|
|
1972
|
-
[data-v-
|
|
1988
|
+
[data-v-16135711] .cell-action-btn svg {
|
|
1973
1989
|
width: 10px !important;
|
|
1974
1990
|
height: 10px !important;
|
|
1975
1991
|
}
|
|
1976
|
-
.cell-edit-icon[data-v-
|
|
1992
|
+
.cell-edit-icon[data-v-16135711] {
|
|
1977
1993
|
opacity: 0.6 !important;
|
|
1978
1994
|
}
|
|
1979
|
-
[data-v-
|
|
1995
|
+
[data-v-16135711] .cell-value {
|
|
1980
1996
|
margin-right: 12px !important;
|
|
1981
1997
|
}
|
|
1982
1998
|
}
|
|
1983
|
-
[data-v-
|
|
1999
|
+
[data-v-16135711] .cell-edit-wrapper:focus-within,[data-v-16135711] .cell-editing-container:focus-within {
|
|
1984
2000
|
outline: 2px solid var(--c-primary, var(--c-theme-primary, #2080f0));
|
|
1985
2001
|
outline-offset: 2px;
|
|
1986
2002
|
}
|
|
1987
2003
|
@media (prefers-contrast: high) {
|
|
1988
|
-
.cell-edit-icon[data-v-
|
|
2004
|
+
.cell-edit-icon[data-v-16135711] {
|
|
1989
2005
|
opacity: 0.8;
|
|
1990
2006
|
}
|
|
1991
|
-
.cell-editing-actions[data-v-
|
|
2007
|
+
.cell-editing-actions[data-v-16135711] {
|
|
1992
2008
|
border-width: 2px;
|
|
1993
2009
|
}
|
|
1994
2010
|
}
|
|
1995
|
-
.row-drag-ghost[data-v-
|
|
2011
|
+
.row-drag-ghost[data-v-16135711] {
|
|
1996
2012
|
opacity: 0.4;
|
|
1997
2013
|
background: var(--c-table-drag-ghost-bg) !important;
|
|
1998
2014
|
}
|
|
1999
|
-
.row-drag-chosen[data-v-
|
|
2015
|
+
.row-drag-chosen[data-v-16135711] {
|
|
2000
2016
|
background: var(--c-bg-hover, var(--c-theme-bg-hover, #f5f5f5)) !important;
|
|
2001
2017
|
}
|
|
2002
|
-
.batch-actions-bar[data-v-
|
|
2018
|
+
.batch-actions-bar[data-v-16135711] {
|
|
2003
2019
|
display: flex;
|
|
2004
2020
|
align-items: center;
|
|
2005
2021
|
justify-content: space-between;
|
|
@@ -2009,57 +2025,57 @@ to {
|
|
|
2009
2025
|
border-radius: var(--c-radius, var(--c-theme-radius, 6px));
|
|
2010
2026
|
border: 1px solid color-mix(in srgb, var(--c-primary, var(--c-theme-primary, #2080f0)) 16%, transparent);
|
|
2011
2027
|
}
|
|
2012
|
-
.batch-actions-bar .batch-info[data-v-
|
|
2028
|
+
.batch-actions-bar .batch-info[data-v-16135711] {
|
|
2013
2029
|
font-size: 13px;
|
|
2014
2030
|
color: var(--c-text-2, var(--c-theme-text-2, #525252));
|
|
2015
2031
|
font-weight: 500;
|
|
2016
2032
|
}
|
|
2017
|
-
.table-error-state[data-v-
|
|
2033
|
+
.table-error-state[data-v-16135711] {
|
|
2018
2034
|
padding: 48px 24px;
|
|
2019
2035
|
text-align: center;
|
|
2020
2036
|
}
|
|
2021
|
-
.table-error-state .error-content[data-v-
|
|
2037
|
+
.table-error-state .error-content[data-v-16135711] {
|
|
2022
2038
|
display: flex;
|
|
2023
2039
|
flex-direction: column;
|
|
2024
2040
|
align-items: center;
|
|
2025
2041
|
gap: 12px;
|
|
2026
2042
|
color: var(--c-text-3, var(--c-theme-text-3, #999));
|
|
2027
2043
|
}
|
|
2028
|
-
.table-error-state .error-message[data-v-
|
|
2044
|
+
.table-error-state .error-message[data-v-16135711] {
|
|
2029
2045
|
font-size: 14px;
|
|
2030
2046
|
margin: 0;
|
|
2031
2047
|
color: var(--c-text-2, var(--c-theme-text-2, #525252));
|
|
2032
2048
|
}
|
|
2033
|
-
.c-table-wrapper[data-v-
|
|
2034
|
-
.c-table-wrapper[data-v-
|
|
2049
|
+
.c-table-wrapper[data-v-16135711] .n-data-table-th__ellipsis,
|
|
2050
|
+
.c-table-wrapper[data-v-16135711] .n-data-table-th__title .n-ellipsis {
|
|
2035
2051
|
overflow: visible;
|
|
2036
2052
|
text-overflow: clip;
|
|
2037
2053
|
max-width: none;
|
|
2038
2054
|
}
|
|
2039
2055
|
|
|
2040
2056
|
/* layer: default */
|
|
2041
|
-
.visible[data-v-
|
|
2042
|
-
.fixed[data-v-
|
|
2043
|
-
.grid[data-v-
|
|
2044
|
-
.mb-2[data-v-
|
|
2045
|
-
.mb-4[data-v-
|
|
2046
|
-
.ml-2[data-v-
|
|
2047
|
-
.flex[data-v-
|
|
2048
|
-
.table[data-v-
|
|
2049
|
-
.scale-110[data-v-
|
|
2050
|
-
.cursor-pointer[data-v-
|
|
2051
|
-
.items-center[data-v-
|
|
2052
|
-
.justify-end[data-v-
|
|
2053
|
-
.justify-center[data-v-
|
|
2054
|
-
.rd[data-v-
|
|
2055
|
-
.bg-gray-50[data-v-
|
|
2056
|
-
.p-4[data-v-
|
|
2057
|
-
.px[data-v-
|
|
2058
|
-
.py-8[data-v-
|
|
2059
|
-
.text-center[data-v-
|
|
2060
|
-
.text-sm[data-v-
|
|
2061
|
-
.text-gray-400[data-v-
|
|
2062
|
-
.text-gray-500[data-v-
|
|
2063
|
-
.text-gray-600[data-v-
|
|
2064
|
-
.accent-blue-500[data-v-
|
|
2065
|
-
.filter[data-v-
|
|
2057
|
+
.visible[data-v-16135711]{visibility:visible;}
|
|
2058
|
+
.fixed[data-v-16135711]{position:fixed;}
|
|
2059
|
+
.grid[data-v-16135711]{display:grid;}
|
|
2060
|
+
.mb-2[data-v-16135711]{margin-bottom:0.5rem;}
|
|
2061
|
+
.mb-4[data-v-16135711]{margin-bottom:1rem;}
|
|
2062
|
+
.ml-2[data-v-16135711]{margin-left:0.5rem;}
|
|
2063
|
+
.flex[data-v-16135711]{display:flex;}
|
|
2064
|
+
.table[data-v-16135711]{display:table;}
|
|
2065
|
+
.scale-110[data-v-16135711]{--un-scale-x:1.1;--un-scale-y:1.1;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}
|
|
2066
|
+
.cursor-pointer[data-v-16135711]{cursor:pointer;}
|
|
2067
|
+
.items-center[data-v-16135711]{align-items:center;}
|
|
2068
|
+
.justify-end[data-v-16135711]{justify-content:flex-end;}
|
|
2069
|
+
.justify-center[data-v-16135711]{justify-content:center;}
|
|
2070
|
+
.rd[data-v-16135711]{border-radius:0.25rem;}
|
|
2071
|
+
.bg-gray-50[data-v-16135711]{--un-bg-opacity:1;background-color:rgb(249 250 251 / var(--un-bg-opacity));}
|
|
2072
|
+
.p-4[data-v-16135711]{padding:1rem;}
|
|
2073
|
+
.px[data-v-16135711]{padding-left:1rem;padding-right:1rem;}
|
|
2074
|
+
.py-8[data-v-16135711]{padding-top:2rem;padding-bottom:2rem;}
|
|
2075
|
+
.text-center[data-v-16135711]{text-align:center;}
|
|
2076
|
+
.text-sm[data-v-16135711]{font-size:0.875rem;line-height:1.25rem;}
|
|
2077
|
+
.text-gray-400[data-v-16135711]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity));}
|
|
2078
|
+
.text-gray-500[data-v-16135711]{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity));}
|
|
2079
|
+
.text-gray-600[data-v-16135711]{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity));}
|
|
2080
|
+
.accent-blue-500[data-v-16135711]{--un-accent-opacity:1;accent-color:rgb(59 130 246 / var(--un-accent-opacity));}
|
|
2081
|
+
.filter[data-v-16135711]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
|
package/dist/C_Table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./density.cjs`);require(`./C_Icon2.cjs`),require(`./C_Loading2.cjs`),require(`./C_ActionBar2.cjs`);const
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./density.cjs`),t=require(`./context.cjs`);require(`./C_Icon2.cjs`),require(`./C_Loading2.cjs`),require(`./C_ActionBar2.cjs`);const n=require(`./C_Table2.cjs`),r=require(`./helpers.cjs`),i=require(`./editors.cjs`);exports.C_Table=n.t,exports.TABLE_GLOBAL_CONFIG_KEY=t.a,exports.applyFormatter=n.s,exports.createEditModeChecker=n.b,exports.createTableAutoCompleteEditor=i.t,exports.createTableSelectEditor=i.n,exports.defineTableColumns=r.n,exports.defineTableConfig=r.r,exports.exportTableData=n.r,exports.mergeGlobalConfig=n.c,exports.printPresets=n.m,exports.resolveComponentDensity=e.t,exports.resolveConfig=n.x,exports.useCellEdit=n.v,exports.useCrossPageSelection=n.i,exports.useDynamicRows=n.p,exports.useModalEdit=n._,exports.usePagination=n.d,exports.usePrintWatermark=n.h,exports.useRowDrag=n.a,exports.useRowEdit=n.y,exports.useTableActions=n.u,exports.useTableColumns=n.o,exports.useTableExpand=n.g,exports.useTableGlobalConfig=n.l,exports.useTableManager=n.f,exports.useTableQuery=i.r,exports.validateTableRowKeys=r.l;
|