@flux-ui/components 3.0.0-next.65 → 3.0.0-next.66
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/dist/component/FluxDataTable.vue.d.ts +9 -3
- package/dist/component/FluxTableRow.vue.d.ts +4 -1
- package/dist/index.css +46 -12
- package/dist/index.js +382 -290
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/src/component/FluxCheckbox.vue +2 -2
- package/src/component/FluxDataTable.vue +151 -5
- package/src/component/FluxTable.vue +1 -1
- package/src/component/FluxTableRow.vue +6 -1
- package/src/css/component/Form.module.scss +7 -5
- package/src/css/component/LayerPane.module.scss +4 -0
- package/src/css/component/Overlay.module.scss +1 -1
- package/src/css/component/Tab.module.scss +3 -3
- package/src/css/component/Table.module.scss +33 -3
|
@@ -3,7 +3,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly onNavigate?: (args_0: number) => any;
|
|
5
5
|
readonly onLimit?: (args_0: number) => any;
|
|
6
|
-
|
|
6
|
+
readonly "onUpdate:selected"?: (value: (string | number) | (string | number)[]) => any;
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onNavigate" | "onLimit" | "onUpdate:selected"> & ({
|
|
8
|
+
selected?: (string | number) | (string | number)[];
|
|
9
|
+
} & {
|
|
7
10
|
readonly fillColumns?: number;
|
|
8
11
|
readonly isBordered?: boolean;
|
|
9
12
|
readonly isHoverable?: boolean;
|
|
@@ -14,9 +17,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
14
17
|
readonly limits: number[];
|
|
15
18
|
readonly page: number;
|
|
16
19
|
readonly perPage: number;
|
|
20
|
+
readonly selectionMode?: "single" | "multiple";
|
|
17
21
|
readonly total: number;
|
|
18
22
|
readonly uniqueKey?: string;
|
|
19
|
-
} & Partial<{}>> & PublicProps;
|
|
23
|
+
}) & Partial<{}>> & PublicProps;
|
|
20
24
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
21
25
|
attrs: any;
|
|
22
26
|
slots: Readonly<{
|
|
@@ -27,6 +31,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
27
31
|
readonly item: T;
|
|
28
32
|
readonly items: T[];
|
|
29
33
|
readonly total: number;
|
|
34
|
+
readonly isSelected: boolean;
|
|
30
35
|
}) => VNode;
|
|
31
36
|
filter(props: {
|
|
32
37
|
readonly page: number;
|
|
@@ -61,6 +66,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
61
66
|
readonly item: T;
|
|
62
67
|
readonly items: T[];
|
|
63
68
|
readonly total: number;
|
|
69
|
+
readonly isSelected: boolean;
|
|
64
70
|
}) => VNode;
|
|
65
71
|
filter(props: {
|
|
66
72
|
readonly page: number;
|
|
@@ -88,7 +94,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
88
94
|
}): VNode;
|
|
89
95
|
colgroups(): VNode;
|
|
90
96
|
};
|
|
91
|
-
emit: ((evt: "navigate", args_0: number) => void) & ((evt: "limit", args_0: number) => void);
|
|
97
|
+
emit: (((evt: "navigate", args_0: number) => void) & ((evt: "limit", args_0: number) => void)) & ((evt: "update:selected", value: (string | number) | (string | number)[]) => void);
|
|
92
98
|
}>) => VNode & {
|
|
93
99
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
94
100
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
readonly isSelected?: boolean;
|
|
4
|
+
};
|
|
2
5
|
declare function __VLS_template(): {
|
|
3
6
|
attrs: Partial<{}>;
|
|
4
7
|
slots: Readonly<{
|
|
@@ -10,7 +13,7 @@ declare function __VLS_template(): {
|
|
|
10
13
|
rootEl: HTMLTableRowElement;
|
|
11
14
|
};
|
|
12
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: DefineComponent<
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLTableRowElement>;
|
|
14
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
18
|
export default _default;
|
|
16
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/index.css
CHANGED
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
}
|
|
768
768
|
.slide-over > .base-pane-structure > .pane-header + .tab-bar-default {
|
|
769
769
|
position: sticky;
|
|
770
|
-
top:
|
|
770
|
+
top: 60px;
|
|
771
771
|
z-index: 100;
|
|
772
772
|
}
|
|
773
773
|
.slide-over > .base-pane-structure > .pane-header:has(.pane-header-caption > :is(span)) + .tab-bar-default {
|
|
@@ -2573,6 +2573,10 @@
|
|
|
2573
2573
|
border: 0;
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
|
+
.layer-pane > .pane-header .button {
|
|
2577
|
+
margin: -9px -9px -9px 0;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2576
2580
|
.layer-pane-secondary {
|
|
2577
2581
|
display: flex;
|
|
2578
2582
|
align-items: center;
|
|
@@ -3091,6 +3095,7 @@
|
|
|
3091
3095
|
display: inline-flex;
|
|
3092
3096
|
flex-shrink: 0;
|
|
3093
3097
|
gap: 12px;
|
|
3098
|
+
line-height: 20px;
|
|
3094
3099
|
outline: 0;
|
|
3095
3100
|
}
|
|
3096
3101
|
.checkbox.is-disabled {
|
|
@@ -3116,16 +3121,16 @@
|
|
|
3116
3121
|
|
|
3117
3122
|
.checkbox-element,
|
|
3118
3123
|
.checkbox-native {
|
|
3119
|
-
margin: 1px 0;
|
|
3120
|
-
height:
|
|
3121
|
-
width:
|
|
3124
|
+
margin: 1px 0 0;
|
|
3125
|
+
height: 20px;
|
|
3126
|
+
width: 20px;
|
|
3122
3127
|
}
|
|
3123
3128
|
|
|
3124
3129
|
.checkbox-element {
|
|
3125
3130
|
position: relative;
|
|
3126
3131
|
display: inline-flex;
|
|
3127
|
-
height:
|
|
3128
|
-
width:
|
|
3132
|
+
height: 20px;
|
|
3133
|
+
width: 20px;
|
|
3129
3134
|
padding: 0;
|
|
3130
3135
|
align-items: center;
|
|
3131
3136
|
justify-content: center;
|
|
@@ -3157,6 +3162,7 @@
|
|
|
3157
3162
|
|
|
3158
3163
|
.checkbox-native {
|
|
3159
3164
|
position: absolute;
|
|
3165
|
+
cursor: pointer;
|
|
3160
3166
|
opacity: 0;
|
|
3161
3167
|
}
|
|
3162
3168
|
@media (hover: hover) {
|
|
@@ -4808,6 +4814,9 @@
|
|
|
4808
4814
|
margin: 0;
|
|
4809
4815
|
padding: 0;
|
|
4810
4816
|
}
|
|
4817
|
+
.table-row.is-selectable-row {
|
|
4818
|
+
cursor: pointer;
|
|
4819
|
+
}
|
|
4811
4820
|
|
|
4812
4821
|
.table-cell {
|
|
4813
4822
|
height: 0;
|
|
@@ -4851,11 +4860,24 @@ tbody .table-row:nth-child(even) .table-cell.is-striped {
|
|
|
4851
4860
|
background: rgb(from var(--gray-50) r g b/0.5);
|
|
4852
4861
|
}
|
|
4853
4862
|
|
|
4863
|
+
tbody .table-row.is-selected .table-cell {
|
|
4864
|
+
background: var(--primary-50);
|
|
4865
|
+
border-color: var(--primary-100);
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
tbody .table-row.is-selected + .table-row .table-cell {
|
|
4869
|
+
border-top-color: var(--primary-100);
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4854
4872
|
@media (hover: hover) {
|
|
4855
4873
|
tbody .table-row:hover .table-cell.is-hoverable,
|
|
4856
4874
|
tbody .table-row:has(:focus-visible) .table-cell.is-hoverable {
|
|
4857
4875
|
background: var(--gray-50);
|
|
4858
4876
|
}
|
|
4877
|
+
tbody .table-row.is-selected:hover .table-cell.is-hoverable,
|
|
4878
|
+
tbody .table-row.is-selected:has(:focus-visible) .table-cell.is-hoverable {
|
|
4879
|
+
background: var(--primary-50);
|
|
4880
|
+
}
|
|
4859
4881
|
}
|
|
4860
4882
|
tfoot .table-cell {
|
|
4861
4883
|
border-top: 1px solid var(--gray-100);
|
|
@@ -4873,6 +4895,10 @@ tfoot .table-cell {
|
|
|
4873
4895
|
margin: -4px 0 -4px -3px;
|
|
4874
4896
|
}
|
|
4875
4897
|
|
|
4898
|
+
.table-cell-selection {
|
|
4899
|
+
width: 0;
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4876
4902
|
.table-fill {
|
|
4877
4903
|
pointer-events: none;
|
|
4878
4904
|
}
|
|
@@ -4932,12 +4958,20 @@ tfoot .table-cell {
|
|
|
4932
4958
|
}
|
|
4933
4959
|
}
|
|
4934
4960
|
|
|
4961
|
+
.base-pane-structure:has(.table) {
|
|
4962
|
+
--table-spacing: 18px;
|
|
4963
|
+
}
|
|
4964
|
+
|
|
4965
|
+
.base-pane-structure .base-pane-structure {
|
|
4966
|
+
--table-spacing: 15px;
|
|
4967
|
+
}
|
|
4968
|
+
|
|
4935
4969
|
.base-pane-structure > .table .table-cell:first-child .table-cell-content {
|
|
4936
|
-
padding-left:
|
|
4970
|
+
padding-left: var(--table-spacing);
|
|
4937
4971
|
}
|
|
4938
4972
|
|
|
4939
4973
|
.base-pane-structure > .table .table-cell:last-child .table-cell-content {
|
|
4940
|
-
padding-right:
|
|
4974
|
+
padding-right: var(--table-spacing);
|
|
4941
4975
|
}
|
|
4942
4976
|
|
|
4943
4977
|
.base-pane-structure > .table .table-actions {
|
|
@@ -4945,7 +4979,7 @@ tfoot .table-cell {
|
|
|
4945
4979
|
}
|
|
4946
4980
|
|
|
4947
4981
|
.base-pane-structure > .table :is(caption) {
|
|
4948
|
-
padding: 12px
|
|
4982
|
+
padding: 12px var(--table-spacing);
|
|
4949
4983
|
border-top: 1px solid var(--gray-100);
|
|
4950
4984
|
}
|
|
4951
4985
|
|
|
@@ -6972,7 +7006,7 @@ tfoot .table-cell {
|
|
|
6972
7006
|
.tab-bar-arrow {
|
|
6973
7007
|
position: absolute;
|
|
6974
7008
|
display: flex;
|
|
6975
|
-
top:
|
|
7009
|
+
top: 2px;
|
|
6976
7010
|
height: calc(100% - 6px);
|
|
6977
7011
|
width: 30px;
|
|
6978
7012
|
align-items: center;
|
|
@@ -6993,11 +7027,11 @@ tfoot .table-cell {
|
|
|
6993
7027
|
}
|
|
6994
7028
|
|
|
6995
7029
|
.tab-bar-arrow-start {
|
|
6996
|
-
left:
|
|
7030
|
+
left: 3px;
|
|
6997
7031
|
}
|
|
6998
7032
|
|
|
6999
7033
|
.tab-bar-arrow-end {
|
|
7000
|
-
right:
|
|
7034
|
+
right: 3px;
|
|
7001
7035
|
}
|
|
7002
7036
|
|
|
7003
7037
|
.base-tab-bar-tabs {
|