@robot-admin/naive-ui-components 0.34.0 → 0.36.0
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 +17 -0
- package/README.md +11 -7
- package/README_EN.md +11 -7
- package/THIRD_PARTY_NOTICES.md +10 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +63 -48
- package/dist/C_DataPicker.d.cts +3 -2
- package/dist/C_DataPicker.d.ts +3 -2
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Form.d.ts +1 -1
- package/dist/C_FormModal.d.ts +1 -1
- package/dist/C_Select.d.cts +1 -1
- package/dist/C_Select.d.ts +1 -1
- package/dist/C_Table.base.css +112 -110
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +112 -110
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +6 -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.cts +2 -1
- package/dist/C_Tree.d.ts +5 -2
- package/dist/C_UserPicker.cjs +1 -0
- package/dist/C_UserPicker.css +75 -0
- package/dist/C_UserPicker.d.cts +3 -0
- package/dist/C_UserPicker.d.ts +7 -0
- package/dist/C_UserPicker.js +1 -0
- package/dist/C_WorkFlow.css +635 -355
- package/dist/C_WorkFlow.d.cts +2 -2
- package/dist/C_WorkFlow.d.ts +7 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/NodeConfigModal.cjs +1 -0
- package/dist/NodeConfigModal.js +1 -0
- package/dist/conditions.cjs +1 -0
- package/dist/conditions.js +1 -0
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +1 -1
- package/dist/constants3.d.ts +1 -1
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data2.d.cts +5 -5
- package/dist/data2.d.ts +5 -5
- package/dist/editors.d.cts +15 -234
- package/dist/editors.d.ts +15 -234
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +7 -1190
- package/dist/formField.d.ts +7 -1190
- package/dist/formField.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +13 -9
- 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.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.cts +3 -3
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +5 -5
- package/dist/index17.vue.d.cts +5 -5
- package/dist/index17.vue.d.ts +6 -6
- package/dist/index18.vue.d.cts +6 -6
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.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/index8.vue.d.ts +3 -3
- package/dist/index9.vue.d.cts +3 -3
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/source.cjs +1 -0
- package/dist/source.d.cts +37 -0
- package/dist/source.d.ts +37 -0
- package/dist/source.js +1 -0
- package/dist/style.css +886 -512
- package/dist/types3.d.ts +1223 -53
- package/dist/types4.d.cts +1223 -53
- package/dist/types4.d.ts +55 -45
- package/dist/types5.d.cts +55 -45
- package/dist/types5.d.ts +50 -0
- package/dist/types6.d.cts +50 -0
- package/dist/types6.d.ts +284 -0
- package/dist/types7.d.cts +284 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDynamicFormState.d.cts +1 -1
- package/dist/useDynamicFormState.d.ts +1 -1
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +3 -3
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useWorkflowValidation.d.cts +165 -43
- package/dist/useWorkflowValidation.d.ts +165 -43
- package/dist/verification.d.cts +3 -3
- package/dist/verification.d.ts +3 -3
- package/docs/components.en.md +8 -7
- package/docs/components.md +8 -7
- package/docs/guides/table-density.md +7 -7
- package/docs/guides/user-picker.md +124 -0
- package/docs/guides/workflow-people.md +60 -0
- package/docs/guides/workflow.md +153 -0
- package/docs/people-workflow-review-20261114.md +75 -0
- package/licenses/VueFlow.txt +20 -0
- package/package.json +1 -1
package/dist/C_Date.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./
|
|
1
|
+
import { a as DateProps, i as DatePickerMode, n as DateExpose, o as DateRangeValue, r as DateModelValue, s as DateValue, t as DateEmits } from "./types4.js";
|
|
2
2
|
import { AllowedComponentProps, ComponentCustomProps, EmitFn, VNode, VNodeProps } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Date/index.d.ts
|
package/dist/C_Form.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import { A as FormTabActionsSlotProps, B as TabsLayoutConfig, C as FormMode, D a
|
|
|
4
4
|
import { FORM_GLOBAL_CONFIG_KEY } from "./config.js";
|
|
5
5
|
import { a as FormRendererRegistry, c as createFormRendererRegistry, d as useFormRenderer, i as FormRendererContext, l as registerRenderer, n as FORM_RENDERER_REGISTRY_KEY, o as RendererProps, r as FormRenderer, s as UseFormRendererOptions, t as ComponentMap, u as unregisterRenderer } from "./useFormRenderer.js";
|
|
6
6
|
import { a as UseFormDirtyReturn, c as createAutoCompleteField, d as UseCFormReturn, f as defineFormConfig, h as _default, i as useDynamicFormState, l as createSelectField, m as useCForm, n as DynamicFormStateType, o as useFormDirty, p as defineFormOptions, r as FIELD_TYPE_OPTIONS, s as useFormState, t as DYNAMIC_FORM_STATE_KEY, u as UseCFormOptions } from "./useDynamicFormState.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./types5.js";
|
|
8
8
|
export { type AsyncOptionsContext, _default as C_Form, type CardLayoutConfig, type ComponentDensity, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormController, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, FORM_GLOBAL_CONFIG_KEY, FORM_RENDERER_REGISTRY_KEY, type FieldPath, type FieldPathValue, type FormActionSlotProps, type FormConfig, type FormErrorContext, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRecord, type FormRenderer, type FormRendererContext, type FormRendererRegistry, type FormSlots, type FormStepActionsSlotProps, type FormSubmitContext, type FormTabActionsSlotProps, type FormValidationRule, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type MaybePromise, NAIVE_COMBOS, type OptionItem, type OptionsState, PRESET_RULES, type RendererProps, type ResolvedFormConfig, type RuleSpec, SPEC_RULES, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseCFormOptions, type UseCFormReturn, type UseFormDirtyReturn, type UseFormRendererOptions, createAutoCompleteField, createFormRendererRegistry, createSelectField, defineFormConfig, defineFormOptions, mergeFormConfig, registerRenderer, resolveFormConfig, shouldShowActions, unregisterRenderer, useCForm, useDynamicFormState, useFormDirty, useFormGlobalConfig, useFormRenderer, useFormState };
|
package/dist/C_FormModal.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import "./types2.js";
|
|
|
2
2
|
import "./useFormConfig.js";
|
|
3
3
|
import "./useFormRenderer.js";
|
|
4
4
|
import "./useDynamicFormState.js";
|
|
5
|
-
import "./
|
|
5
|
+
import "./types5.js";
|
|
6
6
|
import { a as FormModalProps, i as FormModalMode, n as FormModalEditor, r as FormModalEmits, t as _default } from "./index15.vue.js";
|
|
7
7
|
export { _default as C_FormModal, type FormModalEditor, type FormModalEmits, type FormModalMode, type FormModalProps };
|
package/dist/C_Select.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as OptionValue, n as OptionRequest, r as OptionSource, t as OptionPage } from "./optionSource.cjs";
|
|
2
|
-
import { a as SelectProps, i as SelectOptionNode, n as SelectOptionGroup, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./
|
|
2
|
+
import { a as SelectProps, i as SelectOptionNode, n as SelectOptionGroup, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types6.cjs";
|
|
3
3
|
import { t as _default } from "./index26.vue.cjs";
|
|
4
4
|
export { _default as C_Select, type OptionPage, type OptionRequest, type OptionSource, type OptionValue, type SelectModelValue, type SelectOptionGroup, type SelectOptionItem, type SelectOptionNode, type SelectProps, type SelectSelection, type SelectValue };
|
package/dist/C_Select.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as OptionValue, n as OptionRequest, r as OptionSource, t as OptionPage } from "./optionSource.js";
|
|
2
|
-
import { a as SelectProps, i as SelectOptionNode, n as SelectOptionGroup, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./
|
|
2
|
+
import { a as SelectProps, i as SelectOptionNode, n as SelectOptionGroup, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types5.js";
|
|
3
3
|
import { t as _default } from "./index26.vue.js";
|
|
4
4
|
export { _default as C_Select, type OptionPage, type OptionRequest, type OptionSource, type OptionValue, type SelectModelValue, type SelectOptionGroup, type SelectOptionItem, type SelectOptionNode, type SelectProps, type SelectSelection, type SelectValue };
|
package/dist/C_Table.base.css
CHANGED
|
@@ -1615,7 +1615,7 @@ to {
|
|
|
1615
1615
|
.px[data-v-a35abd38]{padding-left:1rem;padding-right:1rem;}
|
|
1616
1616
|
.accent-blue-500[data-v-a35abd38]{--un-accent-opacity:1;accent-color:rgb(59 130 246 / var(--un-accent-opacity));}
|
|
1617
1617
|
|
|
1618
|
-
.c-table-wrapper[data-v-
|
|
1618
|
+
.c-table-wrapper[data-v-5f569b16] {
|
|
1619
1619
|
--c-table-border-color: var(--border-color, #e5e7eb);
|
|
1620
1620
|
--c-table-bg: var(--body-color, #fff);
|
|
1621
1621
|
--c-table-header-bg: var(--card-color, #fafafc);
|
|
@@ -1626,55 +1626,55 @@ to {
|
|
|
1626
1626
|
width: 100%;
|
|
1627
1627
|
position: relative;
|
|
1628
1628
|
}
|
|
1629
|
-
.c-table-wrapper--compact[data-v-
|
|
1629
|
+
.c-table-wrapper--compact[data-v-5f569b16] {
|
|
1630
1630
|
--c-table-gap: 8px;
|
|
1631
1631
|
--c-table-button-font-size: 14px;
|
|
1632
1632
|
--c-table-cell-min-height: 28px;
|
|
1633
1633
|
--c-table-cell-padding: 2px 4px;
|
|
1634
1634
|
}
|
|
1635
|
-
.c-table-wrapper--default[data-v-
|
|
1635
|
+
.c-table-wrapper--default[data-v-5f569b16] {
|
|
1636
1636
|
--c-table-gap: 16px;
|
|
1637
1637
|
--c-table-button-font-size: 14px;
|
|
1638
1638
|
--c-table-cell-min-height: 36px;
|
|
1639
1639
|
--c-table-cell-padding: 6px 8px;
|
|
1640
1640
|
}
|
|
1641
|
-
.c-table-wrapper--comfortable[data-v-
|
|
1641
|
+
.c-table-wrapper--comfortable[data-v-5f569b16] {
|
|
1642
1642
|
--c-table-gap: 20px;
|
|
1643
1643
|
--c-table-button-font-size: 15px;
|
|
1644
1644
|
--c-table-cell-min-height: 40px;
|
|
1645
1645
|
--c-table-cell-padding: 8px 10px;
|
|
1646
1646
|
}
|
|
1647
|
-
.c-table-wrapper--flex[data-v-
|
|
1647
|
+
.c-table-wrapper--flex[data-v-5f569b16] {
|
|
1648
1648
|
display: flex;
|
|
1649
1649
|
flex-direction: column;
|
|
1650
1650
|
height: 100%;
|
|
1651
1651
|
min-height: 0;
|
|
1652
1652
|
}
|
|
1653
|
-
.c-table-wrapper--flex[data-v-
|
|
1654
|
-
.c-table-wrapper--flex > .table-error-state[data-v-
|
|
1653
|
+
.c-table-wrapper--flex[data-v-5f569b16] > .n-data-table,
|
|
1654
|
+
.c-table-wrapper--flex > .table-error-state[data-v-5f569b16] {
|
|
1655
1655
|
flex: 1;
|
|
1656
1656
|
min-height: 0;
|
|
1657
1657
|
}
|
|
1658
|
-
.c-table-wrapper--flex > .table-toolbar[data-v-
|
|
1659
|
-
.c-table-wrapper--flex > .batch-actions-bar[data-v-
|
|
1660
|
-
.c-table-wrapper--flex > .pagination-wrapper[data-v-
|
|
1658
|
+
.c-table-wrapper--flex > .table-toolbar[data-v-5f569b16],
|
|
1659
|
+
.c-table-wrapper--flex > .batch-actions-bar[data-v-5f569b16],
|
|
1660
|
+
.c-table-wrapper--flex > .pagination-wrapper[data-v-5f569b16] {
|
|
1661
1661
|
flex-shrink: 0;
|
|
1662
1662
|
}
|
|
1663
|
-
.column-drag-ghost[data-v-
|
|
1663
|
+
.column-drag-ghost[data-v-5f569b16] {
|
|
1664
1664
|
opacity: var(--c-table-drag-ghost-opacity);
|
|
1665
1665
|
background: var(--c-table-drag-ghost-bg) !important;
|
|
1666
1666
|
}
|
|
1667
|
-
.drag-handle[data-v-
|
|
1667
|
+
.drag-handle[data-v-5f569b16] {
|
|
1668
1668
|
cursor: grab;
|
|
1669
1669
|
}
|
|
1670
|
-
.drag-handle[data-v-
|
|
1670
|
+
.drag-handle[data-v-5f569b16]:active {
|
|
1671
1671
|
cursor: grabbing;
|
|
1672
1672
|
}
|
|
1673
|
-
.c-table-wrapper[data-v-
|
|
1673
|
+
.c-table-wrapper[data-v-5f569b16] .n-data-table-tfoot {
|
|
1674
1674
|
background: var(--c-table-summary-bg);
|
|
1675
1675
|
font-weight: var(--c-table-summary-font-weight);
|
|
1676
1676
|
}
|
|
1677
|
-
.table-toolbar[data-v-
|
|
1677
|
+
.table-toolbar[data-v-5f569b16] {
|
|
1678
1678
|
display: flex;
|
|
1679
1679
|
justify-content: space-between;
|
|
1680
1680
|
align-items: center;
|
|
@@ -1682,29 +1682,29 @@ to {
|
|
|
1682
1682
|
gap: var(--c-table-gap, 12px);
|
|
1683
1683
|
flex-wrap: wrap;
|
|
1684
1684
|
}
|
|
1685
|
-
.table-toolbar .toolbar-left[data-v-
|
|
1685
|
+
.table-toolbar .toolbar-left[data-v-5f569b16] {
|
|
1686
1686
|
display: flex;
|
|
1687
1687
|
align-items: center;
|
|
1688
1688
|
gap: var(--c-table-gap, 12px);
|
|
1689
1689
|
flex-wrap: wrap;
|
|
1690
1690
|
min-width: 0;
|
|
1691
1691
|
}
|
|
1692
|
-
.table-toolbar .toolbar-right[data-v-
|
|
1692
|
+
.table-toolbar .toolbar-right[data-v-5f569b16] {
|
|
1693
1693
|
display: flex;
|
|
1694
1694
|
align-items: center;
|
|
1695
1695
|
gap: var(--c-table-gap, 8px);
|
|
1696
1696
|
flex-wrap: wrap;
|
|
1697
1697
|
}
|
|
1698
|
-
.table-toolbar .toolbar-right .column-settings-btn[data-v-
|
|
1698
|
+
.table-toolbar .toolbar-right .column-settings-btn[data-v-5f569b16] {
|
|
1699
1699
|
opacity: 0.6;
|
|
1700
1700
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
1701
1701
|
cursor: pointer;
|
|
1702
1702
|
}
|
|
1703
|
-
.table-toolbar .toolbar-right .column-settings-btn[data-v-
|
|
1703
|
+
.table-toolbar .toolbar-right .column-settings-btn[data-v-5f569b16]:hover {
|
|
1704
1704
|
opacity: 1;
|
|
1705
1705
|
transform: scale(1.1);
|
|
1706
1706
|
}
|
|
1707
|
-
.dynamic-rows-toolbar[data-v-
|
|
1707
|
+
.dynamic-rows-toolbar[data-v-5f569b16] {
|
|
1708
1708
|
margin-bottom: var(--c-table-gap, 16px);
|
|
1709
1709
|
padding: var(--c-table-gap, 16px);
|
|
1710
1710
|
border-radius: 8px;
|
|
@@ -1713,38 +1713,38 @@ to {
|
|
|
1713
1713
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
1714
1714
|
transition: all 0.2s ease;
|
|
1715
1715
|
}
|
|
1716
|
-
.dynamic-rows-toolbar[data-v-
|
|
1716
|
+
.dynamic-rows-toolbar[data-v-5f569b16]:hover {
|
|
1717
1717
|
border-color: var(--n-primary-color-suppl);
|
|
1718
1718
|
}
|
|
1719
|
-
[data-v-
|
|
1719
|
+
[data-v-5f569b16] .n-data-table {
|
|
1720
1720
|
table-layout: auto !important;
|
|
1721
1721
|
width: 100% !important;
|
|
1722
1722
|
border-radius: 8px;
|
|
1723
1723
|
overflow: hidden;
|
|
1724
1724
|
}
|
|
1725
|
-
[data-v-
|
|
1725
|
+
[data-v-5f569b16] .n-data-table-wrapper {
|
|
1726
1726
|
overflow-x: auto !important;
|
|
1727
1727
|
}
|
|
1728
|
-
.c-table-wrapper[data-v-
|
|
1728
|
+
.c-table-wrapper[data-v-5f569b16] .n-data-table-table {
|
|
1729
1729
|
width: var(--c-table-native-width, 100%);
|
|
1730
1730
|
}
|
|
1731
|
-
.pagination-wrapper[data-v-
|
|
1731
|
+
.pagination-wrapper[data-v-5f569b16] {
|
|
1732
1732
|
margin-top: var(--c-table-gap, 16px);
|
|
1733
1733
|
display: flex;
|
|
1734
1734
|
justify-content: flex-end;
|
|
1735
1735
|
}
|
|
1736
|
-
[data-v-
|
|
1736
|
+
[data-v-5f569b16] .c-table-index-column {
|
|
1737
1737
|
padding-inline: 8px;
|
|
1738
1738
|
}
|
|
1739
|
-
[data-v-
|
|
1739
|
+
[data-v-5f569b16] .c-table-actions-column {
|
|
1740
1740
|
text-align: center !important;
|
|
1741
1741
|
padding: 8px 12px !important;
|
|
1742
1742
|
}
|
|
1743
|
-
[data-v-
|
|
1743
|
+
[data-v-5f569b16] .c-table-actions-column .n-space {
|
|
1744
1744
|
justify-content: center !important;
|
|
1745
1745
|
align-items: center !important;
|
|
1746
1746
|
}
|
|
1747
|
-
[data-v-
|
|
1747
|
+
[data-v-5f569b16] .cell-edit-wrapper {
|
|
1748
1748
|
display: flex;
|
|
1749
1749
|
align-items: center;
|
|
1750
1750
|
justify-content: space-between;
|
|
@@ -1756,18 +1756,18 @@ to {
|
|
|
1756
1756
|
cursor: pointer;
|
|
1757
1757
|
position: relative;
|
|
1758
1758
|
}
|
|
1759
|
-
[data-v-
|
|
1759
|
+
[data-v-5f569b16] .cell-edit-wrapper:hover {
|
|
1760
1760
|
background-color: var(--n-color-target);
|
|
1761
1761
|
}
|
|
1762
|
-
[data-v-
|
|
1762
|
+
[data-v-5f569b16] .cell-edit-wrapper:hover .cell-edit-icon {
|
|
1763
1763
|
opacity: 1;
|
|
1764
1764
|
color: var(--n-color-success);
|
|
1765
1765
|
transform: scale(1.05);
|
|
1766
1766
|
}
|
|
1767
|
-
[data-v-
|
|
1767
|
+
[data-v-5f569b16] .cell-edit-wrapper:active {
|
|
1768
1768
|
transform: translateY(1px);
|
|
1769
1769
|
}
|
|
1770
|
-
[data-v-
|
|
1770
|
+
[data-v-5f569b16] .cell-value {
|
|
1771
1771
|
flex: 1;
|
|
1772
1772
|
overflow: hidden;
|
|
1773
1773
|
text-overflow: ellipsis;
|
|
@@ -1776,7 +1776,7 @@ to {
|
|
|
1776
1776
|
line-height: 1.4;
|
|
1777
1777
|
font-size: 13px;
|
|
1778
1778
|
}
|
|
1779
|
-
.c-table-wrapper[data-v-
|
|
1779
|
+
.c-table-wrapper[data-v-5f569b16] .cell-edit-icon {
|
|
1780
1780
|
flex-shrink: 0;
|
|
1781
1781
|
width: 24px;
|
|
1782
1782
|
height: 24px;
|
|
@@ -1791,20 +1791,20 @@ to {
|
|
|
1791
1791
|
opacity: 0;
|
|
1792
1792
|
position: relative;
|
|
1793
1793
|
}
|
|
1794
|
-
.c-table-wrapper[data-v-
|
|
1794
|
+
.c-table-wrapper[data-v-5f569b16] .cell-edit-icon:hover {
|
|
1795
1795
|
opacity: 1 !important;
|
|
1796
1796
|
color: var(--n-color-success-hover) !important;
|
|
1797
1797
|
background-color: var(--n-color-success-pressed);
|
|
1798
1798
|
transform: scale(1.1);
|
|
1799
1799
|
}
|
|
1800
|
-
.c-table-wrapper[data-v-
|
|
1800
|
+
.c-table-wrapper[data-v-5f569b16] .cell-edit-icon:active {
|
|
1801
1801
|
transform: scale(0.95);
|
|
1802
1802
|
}
|
|
1803
|
-
.c-table-wrapper[data-v-
|
|
1803
|
+
.c-table-wrapper[data-v-5f569b16] .cell-edit-icon svg {
|
|
1804
1804
|
width: 14px;
|
|
1805
1805
|
height: 14px;
|
|
1806
1806
|
}
|
|
1807
|
-
[data-v-
|
|
1807
|
+
[data-v-5f569b16] .cell-editing-container {
|
|
1808
1808
|
display: flex !important;
|
|
1809
1809
|
flex-wrap: wrap;
|
|
1810
1810
|
align-items: center !important;
|
|
@@ -1817,36 +1817,36 @@ to {
|
|
|
1817
1817
|
box-shadow: 0 0 0 2px var(--n-primary-color-suppl) !important;
|
|
1818
1818
|
gap: 8px !important;
|
|
1819
1819
|
}
|
|
1820
|
-
[data-v-
|
|
1820
|
+
[data-v-5f569b16] .cell-editing-input {
|
|
1821
1821
|
flex: 1 0 6rem !important;
|
|
1822
1822
|
min-width: 0 !important;
|
|
1823
1823
|
max-width: 100%;
|
|
1824
1824
|
}
|
|
1825
|
-
[data-v-
|
|
1825
|
+
[data-v-5f569b16] .cell-editing-input .n-input {
|
|
1826
1826
|
border: none !important;
|
|
1827
1827
|
box-shadow: none !important;
|
|
1828
1828
|
background: transparent !important;
|
|
1829
1829
|
}
|
|
1830
|
-
[data-v-
|
|
1830
|
+
[data-v-5f569b16] .cell-editing-input .n-input.n-input--focus {
|
|
1831
1831
|
border: none !important;
|
|
1832
1832
|
box-shadow: none !important;
|
|
1833
1833
|
}
|
|
1834
|
-
[data-v-
|
|
1834
|
+
[data-v-5f569b16] .cell-editing-input .n-input-number {
|
|
1835
1835
|
border: none !important;
|
|
1836
1836
|
box-shadow: none !important;
|
|
1837
1837
|
background: transparent !important;
|
|
1838
1838
|
}
|
|
1839
|
-
[data-v-
|
|
1839
|
+
[data-v-5f569b16] .cell-editing-input .n-select {
|
|
1840
1840
|
border: none !important;
|
|
1841
1841
|
box-shadow: none !important;
|
|
1842
1842
|
background: transparent !important;
|
|
1843
1843
|
}
|
|
1844
|
-
[data-v-
|
|
1844
|
+
[data-v-5f569b16] .cell-editing-input .n-select .n-base-selection {
|
|
1845
1845
|
border: none !important;
|
|
1846
1846
|
box-shadow: none !important;
|
|
1847
1847
|
background: transparent !important;
|
|
1848
1848
|
}
|
|
1849
|
-
[data-v-
|
|
1849
|
+
[data-v-5f569b16] .cell-editing-actions {
|
|
1850
1850
|
display: flex !important;
|
|
1851
1851
|
flex-shrink: 0 !important;
|
|
1852
1852
|
align-items: center !important;
|
|
@@ -1857,7 +1857,7 @@ to {
|
|
|
1857
1857
|
padding: 2px !important;
|
|
1858
1858
|
box-shadow: var(--n-box-shadow) !important;
|
|
1859
1859
|
}
|
|
1860
|
-
[data-v-
|
|
1860
|
+
[data-v-5f569b16] .cell-action-btn {
|
|
1861
1861
|
display: flex !important;
|
|
1862
1862
|
align-items: center !important;
|
|
1863
1863
|
justify-content: center !important;
|
|
@@ -1869,25 +1869,25 @@ to {
|
|
|
1869
1869
|
transition: all 0.2s ease !important;
|
|
1870
1870
|
background: transparent !important;
|
|
1871
1871
|
}
|
|
1872
|
-
[data-v-
|
|
1872
|
+
[data-v-5f569b16] .cell-action-btn.cell-action-save {
|
|
1873
1873
|
color: var(--n-color-success) !important;
|
|
1874
1874
|
}
|
|
1875
|
-
[data-v-
|
|
1875
|
+
[data-v-5f569b16] .cell-action-btn.cell-action-save:hover {
|
|
1876
1876
|
background: var(--n-color-success-pressed) !important;
|
|
1877
1877
|
transform: scale(1.1) !important;
|
|
1878
1878
|
}
|
|
1879
|
-
[data-v-
|
|
1879
|
+
[data-v-5f569b16] .cell-action-btn.cell-action-cancel {
|
|
1880
1880
|
color: var(--n-color-error) !important;
|
|
1881
1881
|
}
|
|
1882
|
-
[data-v-
|
|
1882
|
+
[data-v-5f569b16] .cell-action-btn.cell-action-cancel:hover {
|
|
1883
1883
|
background: var(--n-color-error-pressed) !important;
|
|
1884
1884
|
transform: scale(1.1) !important;
|
|
1885
1885
|
}
|
|
1886
|
-
[data-v-
|
|
1886
|
+
[data-v-5f569b16] .cell-action-btn svg {
|
|
1887
1887
|
width: 11px !important;
|
|
1888
1888
|
height: 11px !important;
|
|
1889
1889
|
}
|
|
1890
|
-
[data-v-
|
|
1890
|
+
[data-v-5f569b16] .n-button {
|
|
1891
1891
|
white-space: nowrap;
|
|
1892
1892
|
font-size: var(--c-table-button-font-size, 12px) !important;
|
|
1893
1893
|
flex-shrink: 0 !important;
|
|
@@ -1895,106 +1895,108 @@ to {
|
|
|
1895
1895
|
transition: all 0.2s ease;
|
|
1896
1896
|
font-weight: 500;
|
|
1897
1897
|
}
|
|
1898
|
-
[data-v-
|
|
1898
|
+
[data-v-5f569b16] .n-button .n-icon {
|
|
1899
1899
|
margin-right: 4px !important;
|
|
1900
1900
|
}
|
|
1901
|
-
[data-v-
|
|
1901
|
+
[data-v-5f569b16] .n-button.n-button--small-type:not(.c-table-inline-action) {
|
|
1902
1902
|
padding: 4px 8px;
|
|
1903
1903
|
height: 28px;
|
|
1904
1904
|
line-height: 20px;
|
|
1905
1905
|
}
|
|
1906
|
-
[data-v-
|
|
1906
|
+
[data-v-5f569b16] .n-button.n-button--quaternary-type:hover {
|
|
1907
1907
|
transform: translateY(-1px);
|
|
1908
1908
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
1909
1909
|
}
|
|
1910
|
-
[data-v-
|
|
1910
|
+
[data-v-5f569b16] .n-button.n-button--quaternary-type:active {
|
|
1911
1911
|
transform: translateY(0);
|
|
1912
1912
|
}
|
|
1913
|
-
[data-v-
|
|
1913
|
+
[data-v-5f569b16] .n-space.n-space--horizontal .n-space-item:not(:last-child) {
|
|
1914
1914
|
margin-right: 6px !important;
|
|
1915
1915
|
}
|
|
1916
|
-
[data-v-
|
|
1916
|
+
[data-v-5f569b16] .n-modal .n-card {
|
|
1917
1917
|
border-radius: 12px;
|
|
1918
1918
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
1919
1919
|
}
|
|
1920
|
-
[data-v-
|
|
1920
|
+
[data-v-5f569b16] .n-modal .n-card__header {
|
|
1921
1921
|
padding: 20px 24px 16px;
|
|
1922
1922
|
font-weight: 600;
|
|
1923
1923
|
font-size: 16px;
|
|
1924
1924
|
}
|
|
1925
|
-
[data-v-
|
|
1925
|
+
[data-v-5f569b16] .n-modal .n-card__content {
|
|
1926
1926
|
padding: 0 24px 16px;
|
|
1927
1927
|
}
|
|
1928
|
-
[data-v-
|
|
1928
|
+
[data-v-5f569b16] .n-modal .n-card__action {
|
|
1929
1929
|
padding: 16px 24px 20px;
|
|
1930
1930
|
border-top: 1px solid var(--n-divider-color);
|
|
1931
1931
|
}
|
|
1932
|
-
[data-v-
|
|
1932
|
+
[data-v-5f569b16] .n-descriptions .n-descriptions-item-label {
|
|
1933
1933
|
font-weight: 500;
|
|
1934
1934
|
color: var(--n-text-color-2);
|
|
1935
1935
|
}
|
|
1936
|
-
[data-v-
|
|
1936
|
+
[data-v-5f569b16] .n-descriptions .n-descriptions-item-content {
|
|
1937
1937
|
color: var(--n-text-color-1);
|
|
1938
1938
|
word-break: break-all;
|
|
1939
1939
|
}
|
|
1940
1940
|
@media (max-width: 768px) {
|
|
1941
|
-
.c-table-wrapper[data-v-
|
|
1941
|
+
.c-table-wrapper[data-v-5f569b16] {
|
|
1942
1942
|
overflow-x: auto;
|
|
1943
1943
|
}
|
|
1944
|
-
[data-v-
|
|
1944
|
+
[data-v-5f569b16] .n-button {
|
|
1945
1945
|
font-size: 11px !important;
|
|
1946
|
+
}
|
|
1947
|
+
[data-v-5f569b16] .n-button:not(.c-table-inline-action) {
|
|
1946
1948
|
padding: 3px 6px;
|
|
1947
1949
|
}
|
|
1948
|
-
[data-v-
|
|
1950
|
+
[data-v-5f569b16] .n-button .n-icon {
|
|
1949
1951
|
margin-right: 2px !important;
|
|
1950
1952
|
}
|
|
1951
|
-
.cell-edit-icon[data-v-
|
|
1953
|
+
.cell-edit-icon[data-v-5f569b16] {
|
|
1952
1954
|
opacity: 0.6;
|
|
1953
1955
|
}
|
|
1954
1956
|
}
|
|
1955
1957
|
@media (max-width: 768px) {
|
|
1956
|
-
[data-v-
|
|
1958
|
+
[data-v-5f569b16] .cell-editing-container {
|
|
1957
1959
|
gap: 6px !important;
|
|
1958
1960
|
}
|
|
1959
|
-
[data-v-
|
|
1961
|
+
[data-v-5f569b16] .cell-editing-actions {
|
|
1960
1962
|
gap: 3px !important;
|
|
1961
1963
|
padding: 2px !important;
|
|
1962
1964
|
}
|
|
1963
|
-
[data-v-
|
|
1965
|
+
[data-v-5f569b16] .cell-action-btn {
|
|
1964
1966
|
width: 18px !important;
|
|
1965
1967
|
height: 18px !important;
|
|
1966
1968
|
}
|
|
1967
|
-
[data-v-
|
|
1969
|
+
[data-v-5f569b16] .cell-action-btn svg {
|
|
1968
1970
|
width: 10px !important;
|
|
1969
1971
|
height: 10px !important;
|
|
1970
1972
|
}
|
|
1971
|
-
.cell-edit-icon[data-v-
|
|
1973
|
+
.cell-edit-icon[data-v-5f569b16] {
|
|
1972
1974
|
opacity: 0.6 !important;
|
|
1973
1975
|
}
|
|
1974
|
-
[data-v-
|
|
1976
|
+
[data-v-5f569b16] .cell-value {
|
|
1975
1977
|
margin-right: 12px !important;
|
|
1976
1978
|
}
|
|
1977
1979
|
}
|
|
1978
|
-
[data-v-
|
|
1980
|
+
[data-v-5f569b16] .cell-edit-wrapper:focus-within,[data-v-5f569b16] .cell-editing-container:focus-within {
|
|
1979
1981
|
outline: 2px solid var(--n-primary-color);
|
|
1980
1982
|
outline-offset: 2px;
|
|
1981
1983
|
}
|
|
1982
1984
|
@media (prefers-contrast: high) {
|
|
1983
|
-
.cell-edit-icon[data-v-
|
|
1985
|
+
.cell-edit-icon[data-v-5f569b16] {
|
|
1984
1986
|
opacity: 0.8;
|
|
1985
1987
|
}
|
|
1986
|
-
.cell-editing-actions[data-v-
|
|
1988
|
+
.cell-editing-actions[data-v-5f569b16] {
|
|
1987
1989
|
border-width: 2px;
|
|
1988
1990
|
}
|
|
1989
1991
|
}
|
|
1990
|
-
.row-drag-ghost[data-v-
|
|
1992
|
+
.row-drag-ghost[data-v-5f569b16] {
|
|
1991
1993
|
opacity: 0.4;
|
|
1992
1994
|
background: var(--c-table-drag-ghost-bg) !important;
|
|
1993
1995
|
}
|
|
1994
|
-
.row-drag-chosen[data-v-
|
|
1996
|
+
.row-drag-chosen[data-v-5f569b16] {
|
|
1995
1997
|
background: var(--n-color-hover, #f5f5f5) !important;
|
|
1996
1998
|
}
|
|
1997
|
-
.batch-actions-bar[data-v-
|
|
1999
|
+
.batch-actions-bar[data-v-5f569b16] {
|
|
1998
2000
|
display: flex;
|
|
1999
2001
|
align-items: center;
|
|
2000
2002
|
justify-content: space-between;
|
|
@@ -2004,57 +2006,57 @@ to {
|
|
|
2004
2006
|
border-radius: 6px;
|
|
2005
2007
|
border: 1px solid var(--n-primary-color-suppl, #70b3ff);
|
|
2006
2008
|
}
|
|
2007
|
-
.batch-actions-bar .batch-info[data-v-
|
|
2009
|
+
.batch-actions-bar .batch-info[data-v-5f569b16] {
|
|
2008
2010
|
font-size: 13px;
|
|
2009
2011
|
color: var(--n-text-color-2);
|
|
2010
2012
|
font-weight: 500;
|
|
2011
2013
|
}
|
|
2012
|
-
.table-error-state[data-v-
|
|
2014
|
+
.table-error-state[data-v-5f569b16] {
|
|
2013
2015
|
padding: 48px 24px;
|
|
2014
2016
|
text-align: center;
|
|
2015
2017
|
}
|
|
2016
|
-
.table-error-state .error-content[data-v-
|
|
2018
|
+
.table-error-state .error-content[data-v-5f569b16] {
|
|
2017
2019
|
display: flex;
|
|
2018
2020
|
flex-direction: column;
|
|
2019
2021
|
align-items: center;
|
|
2020
2022
|
gap: 12px;
|
|
2021
2023
|
color: var(--n-text-color-3, #999);
|
|
2022
2024
|
}
|
|
2023
|
-
.table-error-state .error-message[data-v-
|
|
2025
|
+
.table-error-state .error-message[data-v-5f569b16] {
|
|
2024
2026
|
font-size: 14px;
|
|
2025
2027
|
margin: 0;
|
|
2026
2028
|
color: var(--n-text-color-2, #666);
|
|
2027
2029
|
}
|
|
2028
|
-
.c-table-wrapper[data-v-
|
|
2029
|
-
.c-table-wrapper[data-v-
|
|
2030
|
+
.c-table-wrapper[data-v-5f569b16] .n-data-table-th__ellipsis,
|
|
2031
|
+
.c-table-wrapper[data-v-5f569b16] .n-data-table-th__title .n-ellipsis {
|
|
2030
2032
|
overflow: visible;
|
|
2031
2033
|
text-overflow: clip;
|
|
2032
2034
|
max-width: none;
|
|
2033
2035
|
}
|
|
2034
2036
|
|
|
2035
2037
|
/* layer: default */
|
|
2036
|
-
.visible[data-v-
|
|
2037
|
-
.fixed[data-v-
|
|
2038
|
-
.grid[data-v-
|
|
2039
|
-
.mb-2[data-v-
|
|
2040
|
-
.mb-4[data-v-
|
|
2041
|
-
.ml-2[data-v-
|
|
2042
|
-
.flex[data-v-
|
|
2043
|
-
.table[data-v-
|
|
2044
|
-
.scale-110[data-v-
|
|
2045
|
-
.cursor-pointer[data-v-
|
|
2046
|
-
.items-center[data-v-
|
|
2047
|
-
.justify-end[data-v-
|
|
2048
|
-
.justify-center[data-v-
|
|
2049
|
-
.rd[data-v-
|
|
2050
|
-
.bg-gray-50[data-v-
|
|
2051
|
-
.p-4[data-v-
|
|
2052
|
-
.px[data-v-
|
|
2053
|
-
.py-8[data-v-
|
|
2054
|
-
.text-center[data-v-
|
|
2055
|
-
.text-sm[data-v-
|
|
2056
|
-
.text-gray-400[data-v-
|
|
2057
|
-
.text-gray-500[data-v-
|
|
2058
|
-
.text-gray-600[data-v-
|
|
2059
|
-
.accent-blue-500[data-v-
|
|
2060
|
-
.filter[data-v-
|
|
2038
|
+
.visible[data-v-5f569b16]{visibility:visible;}
|
|
2039
|
+
.fixed[data-v-5f569b16]{position:fixed;}
|
|
2040
|
+
.grid[data-v-5f569b16]{display:grid;}
|
|
2041
|
+
.mb-2[data-v-5f569b16]{margin-bottom:0.5rem;}
|
|
2042
|
+
.mb-4[data-v-5f569b16]{margin-bottom:1rem;}
|
|
2043
|
+
.ml-2[data-v-5f569b16]{margin-left:0.5rem;}
|
|
2044
|
+
.flex[data-v-5f569b16]{display:flex;}
|
|
2045
|
+
.table[data-v-5f569b16]{display:table;}
|
|
2046
|
+
.scale-110[data-v-5f569b16]{--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));}
|
|
2047
|
+
.cursor-pointer[data-v-5f569b16]{cursor:pointer;}
|
|
2048
|
+
.items-center[data-v-5f569b16]{align-items:center;}
|
|
2049
|
+
.justify-end[data-v-5f569b16]{justify-content:flex-end;}
|
|
2050
|
+
.justify-center[data-v-5f569b16]{justify-content:center;}
|
|
2051
|
+
.rd[data-v-5f569b16]{border-radius:0.25rem;}
|
|
2052
|
+
.bg-gray-50[data-v-5f569b16]{--un-bg-opacity:1;background-color:rgb(249 250 251 / var(--un-bg-opacity));}
|
|
2053
|
+
.p-4[data-v-5f569b16]{padding:1rem;}
|
|
2054
|
+
.px[data-v-5f569b16]{padding-left:1rem;padding-right:1rem;}
|
|
2055
|
+
.py-8[data-v-5f569b16]{padding-top:2rem;padding-bottom:2rem;}
|
|
2056
|
+
.text-center[data-v-5f569b16]{text-align:center;}
|
|
2057
|
+
.text-sm[data-v-5f569b16]{font-size:0.875rem;line-height:1.25rem;}
|
|
2058
|
+
.text-gray-400[data-v-5f569b16]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity));}
|
|
2059
|
+
.text-gray-500[data-v-5f569b16]{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity));}
|
|
2060
|
+
.text-gray-600[data-v-5f569b16]{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity));}
|
|
2061
|
+
.accent-blue-500[data-v-5f569b16]{--un-accent-opacity:1;accent-color:rgb(59 130 246 / var(--un-accent-opacity));}
|
|
2062
|
+
.filter[data-v-5f569b16]{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 t=require(`./
|
|
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 t=require(`./C_Table2.cjs`),n=require(`./helpers.cjs`),r=require(`./useTableGlobalConfig.cjs`),i=require(`./editors.cjs`);exports.C_Table=t.t,exports.TABLE_GLOBAL_CONFIG_KEY=r.t,exports.applyFormatter=r.n,exports.createEditModeChecker=t._,exports.createTableAutoCompleteEditor=i.t,exports.createTableSelectEditor=i.n,exports.defineTableColumns=n.n,exports.defineTableConfig=n.r,exports.exportTableData=t.r,exports.mergeGlobalConfig=r.r,exports.printPresets=t.d,exports.resolveComponentDensity=e.t,exports.resolveConfig=t.v,exports.useCellEdit=t.h,exports.useCrossPageSelection=t.i,exports.useDynamicRows=t.u,exports.useModalEdit=t.m,exports.usePagination=t.c,exports.usePrintWatermark=t.f,exports.useRowDrag=t.a,exports.useRowEdit=t.g,exports.useTableActions=t.s,exports.useTableColumns=t.o,exports.useTableExpand=t.p,exports.useTableGlobalConfig=r.i,exports.useTableManager=t.l,exports.useTableQuery=i.r,exports.validateTableRowKeys=n.l;
|