@inceptionbg/iui 2.0.8 → 2.0.10
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/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +286 -259
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/idea/GridTable/GridTable.tsx +119 -0
- package/idea/GridTable/gridTable.scss +42 -0
- package/{src/components → idea}/Table/Components/Print/CustomTablePrint.tsx +2 -2
- package/{src/components → idea}/Table/Components/Print/TablePrint.tsx +2 -2
- package/{src/components → idea}/Table/Components/SetTableFilter.tsx +1 -1
- package/{src/components → idea}/Table/Components/TableOptions.tsx +4 -4
- package/idea/{Table2 → Table}/Table.tsx +151 -281
- package/idea/Table/hooks/useDefaultTemplate.ts +20 -0
- package/{src/components → idea}/Table/hooks/useTableKeyboard.ts +1 -2
- package/idea/Table/hooks/useTableSelect.ts +11 -0
- package/package.json +1 -1
- package/src/assets/icons/index.ts +1 -1
- package/src/assets/icons/light/faClipboardCheck.ts +15 -0
- package/src/assets/icons/light/faHouse.ts +15 -15
- package/src/assets/icons/light/faIdBadge.ts +15 -15
- package/src/assets/icons/light/faPen.ts +15 -0
- package/src/components/Button/IconButton.tsx +3 -1
- package/src/components/Dialog/Dialog.tsx +59 -123
- package/src/components/Dialog/components/DialogFooter.tsx +92 -0
- package/src/components/Dialog/hooks/useDialogKeyboard.ts +6 -5
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Inputs/DateInput/DateInput.tsx +108 -102
- package/src/components/Inputs/DateInput/components/DatePartInput.tsx +7 -3
- package/src/components/Inputs/InputWrapper.tsx +6 -1
- package/src/components/Inputs/SearchInput.tsx +9 -4
- package/src/components/Inputs/Select2/Select.tsx +65 -30
- package/src/components/Inputs/Select2/select.scss +13 -14
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +4 -2
- package/src/components/Inputs/Selects/utils/selectStyles.ts +9 -12
- package/src/components/Menu/Menu.tsx +10 -2
- package/src/components/Menu/MenuItem.tsx +11 -10
- package/src/components/Menu/hooks/useMenuPosition.tsx +23 -6
- package/src/components/Pullover/Pullover.tsx +122 -59
- package/src/components/Table/Table.tsx +78 -342
- package/src/components/Table/components/edit/TableEditRow.tsx +69 -0
- package/src/components/Table/components/filters/FilterItem.tsx +15 -0
- package/src/components/Table/components/filters/TableFilters.tsx +125 -0
- package/src/components/Table/components/footer/TableFooter.tsx +128 -0
- package/src/components/Table/components/header/TableHeader.tsx +42 -0
- package/src/components/Table/components/header/TableHeaderRow.tsx +47 -0
- package/src/components/Table/components/items/TableItemActions.tsx +66 -0
- package/src/components/Table/components/select/TableSelect.tsx +49 -0
- package/src/components/Table/components/sort/TableSort.tsx +52 -0
- package/src/components/Table/contexts/TableContext.tsx +123 -0
- package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +73 -0
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +78 -0
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +173 -0
- package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +12 -0
- package/src/components/Table/hooks/useTableEdit.tsx +111 -0
- package/src/components/Table/hooks/useTableFilterFields.tsx +150 -0
- package/src/components/Table/hooks/useTablePagination.ts +16 -0
- package/src/components/Table/hooks/useTableSearch.ts +29 -0
- package/src/components/Table/hooks/useTableSort.ts +8 -0
- package/src/components/Tooltip/Tooltip.tsx +1 -1
- package/src/components/Wrappers/PageLayout.tsx +9 -12
- package/src/hooks/useGetFocusableElements.ts +42 -0
- package/src/hooks/useLocalPopoverControl.ts +38 -0
- package/src/hooks/usePopupControl.ts +13 -0
- package/src/index.ts +53 -39
- package/src/styles/components/_accordions.scss +1 -1
- package/src/styles/components/_badge.scss +4 -3
- package/src/styles/components/_card.scss +1 -1
- package/src/styles/components/_dialog.scss +8 -8
- package/src/styles/components/_input.scss +1 -1
- package/src/styles/components/_inputCheckbox.scss +1 -1
- package/src/styles/components/_inputDateTime.scss +2 -2
- package/src/styles/components/_inputRadio.scss +1 -1
- package/src/styles/components/_inputSelect.scss +6 -4
- package/src/styles/components/_menu-v2.scss +1 -1
- package/src/styles/components/_menu.scss +23 -15
- package/src/styles/components/_pullover.scss +74 -18
- package/src/styles/components/_table.scss +151 -142
- package/src/styles/components/_widget.scss +1 -1
- package/src/styles/variables/_bp.scss +1 -0
- package/src/styles/variables/_variables.scss +4 -2
- package/src/types/IKeyboard.ts +2 -1
- package/src/types/IMenu.ts +1 -0
- package/src/types/ISelect.ts +1 -0
- package/src/types/ITable.ts +87 -80
- package/src/utils/fileUtils.ts +3 -3
- package/src/utils/i18n/i18nIUICyrilic.ts +4 -0
- package/src/utils/i18n/i18nIUILatin.ts +3 -1
- package/src/utils/i18n/i18nIUIMe.ts +4 -0
- package/src/utils/{ObjectUtils.ts → objectUtils.ts} +8 -8
- package/src/utils/popupUtils.ts +82 -0
- package/src/utils/{TableUtils.ts → tableUtils.ts} +5 -5
- package/src/utils/{Toasts.ts → toasts.ts} +6 -6
- package/src/utils/{UrlUtils.ts → urlUtils.ts} +4 -4
- package/idea/Table2/Components/Columns/ColumnsList.tsx +0 -56
- package/idea/Table2/Components/Columns/SetColumnsList.tsx +0 -107
- package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +0 -87
- package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +0 -32
- package/idea/Table2/Components/Edit/TableEditRow.tsx +0 -56
- package/idea/Table2/Components/FilterItem.tsx +0 -20
- package/idea/Table2/Components/Header/TableHeader.tsx +0 -35
- package/idea/Table2/Components/Header/TableHeaderRow.tsx +0 -37
- package/idea/Table2/Components/Print/CustomTablePrint.tsx +0 -119
- package/idea/Table2/Components/Print/TablePrint.tsx +0 -208
- package/idea/Table2/Components/SetSortList.tsx +0 -33
- package/idea/Table2/Components/SetTableFilter.tsx +0 -90
- package/idea/Table2/Components/TableFooter.tsx +0 -107
- package/idea/Table2/Components/TableOptions.tsx +0 -211
- package/idea/Table2/Components/Templates/TemplateCreate.tsx +0 -75
- package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +0 -45
- package/idea/Table2/Components/Templates/TemplateList.tsx +0 -167
- package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +0 -51
- package/idea/Table2/_table.scss +0 -300
- package/idea/Table2/hooks/useDefaultTemplate.ts +0 -22
- package/idea/Table2/hooks/useTableKeyboard.ts +0 -115
- package/src/assets/icons/light/faPenField.ts +0 -15
- package/src/assets/icons/solid/faMagnifyingGlass.ts +0 -15
- package/src/components/Dialog/DeleteItemDialog.tsx +0 -52
- package/src/components/Dialog/hooks/useDialogObserver.ts +0 -21
- /package/{src/components → idea}/Table/Components/Columns/ColumnsList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Columns/SetColumnsList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/ItemActionsMenu.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Edit/TableEditRow.tsx +0 -0
- /package/{src/components → idea}/Table/Components/FilterItem.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Header/TableHeader.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Header/TableHeaderRow.tsx +0 -0
- /package/{src/components → idea}/Table/Components/SetSortList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/TableFooter.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateCreate.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateCreateDefault.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/TemplateList.tsx +0 -0
- /package/{src/components → idea}/Table/Components/Templates/repo/TemplateRepo.ts +0 -0
- /package/src/utils/{DateUtils.ts → dateUtils.ts} +0 -0
- /package/src/utils/{LocalStorageHelper.ts → localStorageHelper.ts} +0 -0
- /package/src/utils/{NumberUtils.ts → numberUtils.ts} +0 -0
- /package/src/utils/{RootDir.ts → rootDir.ts} +0 -0
- /package/src/utils/{StringUtils.ts → stringUtils.ts} +0 -0
|
@@ -1,37 +1,52 @@
|
|
|
1
|
+
@use '../variables/bp';
|
|
2
|
+
|
|
3
|
+
$viewportWidth: (25, 50, 75, 100);
|
|
4
|
+
$fixedWidth: (500, 600);
|
|
5
|
+
|
|
1
6
|
.pullover {
|
|
2
7
|
position: fixed;
|
|
3
8
|
inset: 0;
|
|
9
|
+
z-index: 1000;
|
|
4
10
|
display: flex;
|
|
5
11
|
justify-content: end;
|
|
6
|
-
z-index: 100;
|
|
7
12
|
overflow: hidden;
|
|
8
|
-
background:
|
|
9
|
-
backdrop-filter: blur(
|
|
13
|
+
background: var(--neutral-t);
|
|
14
|
+
backdrop-filter: blur(4px);
|
|
10
15
|
animation: fade-in 0.2s forwards;
|
|
11
16
|
.container {
|
|
12
17
|
transition: width, 0.2s;
|
|
13
|
-
|
|
14
|
-
background: var(--white);
|
|
15
|
-
height: 100%;
|
|
18
|
+
background: var(--background);
|
|
16
19
|
width: 0;
|
|
17
|
-
overflow: hidden;
|
|
18
20
|
max-width: 100vw;
|
|
19
21
|
.content {
|
|
20
|
-
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
height: 100dvh;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
overscroll-behavior: none;
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
&.open .container {
|
|
24
|
-
|
|
25
|
-
width:
|
|
30
|
+
@media #{bp.$mobile} {
|
|
31
|
+
width: 100%;
|
|
26
32
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
@media #{bp.$not-mobile} {
|
|
34
|
+
@each $key in $viewportWidth {
|
|
35
|
+
&.vw#{$key} {
|
|
36
|
+
width: #{$key}vw;
|
|
37
|
+
.content {
|
|
38
|
+
min-width: #{$key}vw;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@each $key in $fixedWidth {
|
|
43
|
+
&.w#{$key} {
|
|
44
|
+
width: #{$key}px;
|
|
45
|
+
.content {
|
|
46
|
+
min-width: #{$key}px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
35
50
|
}
|
|
36
51
|
}
|
|
37
52
|
&.closing {
|
|
@@ -40,4 +55,45 @@
|
|
|
40
55
|
width: 0px !important;
|
|
41
56
|
}
|
|
42
57
|
}
|
|
58
|
+
|
|
59
|
+
.pullover-form {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
flex: 1;
|
|
63
|
+
overflow: auto;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pullover-header,
|
|
67
|
+
.pullover-footer {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: flex-end;
|
|
71
|
+
gap: 16px;
|
|
72
|
+
padding: 16px 24px;
|
|
73
|
+
box-shadow: var(--container-shadow);
|
|
74
|
+
z-index: 2;
|
|
75
|
+
}
|
|
76
|
+
.pullover-header {
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
.search-input {
|
|
79
|
+
width: min(250px, 50vw);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.pullover-content {
|
|
83
|
+
flex: 1;
|
|
84
|
+
overflow: auto;
|
|
85
|
+
padding: 16px 24px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media #{bp.$mobile} {
|
|
89
|
+
.pullover-header,
|
|
90
|
+
.pullover-content,
|
|
91
|
+
.pullover-footer {
|
|
92
|
+
padding: 8px 16px;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
}
|
|
95
|
+
.pullover-footer .main-actions {
|
|
96
|
+
gap: 8px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
43
99
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@use '../variables/bp';
|
|
2
2
|
|
|
3
|
-
$pagination-color: rgba(0, 0, 0, 0.8);
|
|
4
|
-
|
|
5
3
|
table {
|
|
6
4
|
border-spacing: 0px;
|
|
7
5
|
border-collapse: collapse;
|
|
@@ -10,32 +8,35 @@ table {
|
|
|
10
8
|
//// Header ////
|
|
11
9
|
thead {
|
|
12
10
|
z-index: 2;
|
|
13
|
-
background-color:
|
|
11
|
+
background-color: var(--primary-100);
|
|
14
12
|
}
|
|
15
13
|
th {
|
|
16
|
-
padding:
|
|
14
|
+
padding: 4px 12px;
|
|
17
15
|
border-left: var(--border);
|
|
18
16
|
border-right: var(--border);
|
|
19
17
|
|
|
20
|
-
font-weight:
|
|
18
|
+
font-weight: bold;
|
|
21
19
|
p {
|
|
22
20
|
font-size: 12px;
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
.table-container {
|
|
26
24
|
overflow: auto;
|
|
27
|
-
|
|
25
|
+
scroll-snap-type: y proximity;
|
|
26
|
+
// box-shadow: var(--container-shadow);
|
|
27
|
+
&::-webkit-scrollbar {
|
|
28
|
+
width: 8px;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
.sticky-header {
|
|
30
|
-
position: -webkit-sticky;
|
|
31
32
|
position: sticky;
|
|
32
33
|
top: 0;
|
|
34
|
+
z-index: 1;
|
|
33
35
|
}
|
|
34
36
|
.border-row {
|
|
37
|
+
background-color: var(--border-color);
|
|
35
38
|
height: 1px;
|
|
36
|
-
|
|
37
|
-
width: 100%;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
+
padding: 0;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
//// Body ////
|
|
@@ -44,13 +45,16 @@ table {
|
|
|
44
45
|
// }
|
|
45
46
|
// Row
|
|
46
47
|
tr {
|
|
47
|
-
|
|
48
|
+
scroll-snap-align: start;
|
|
49
|
+
}
|
|
50
|
+
tbody tr {
|
|
51
|
+
// border-bottom: var(--border);
|
|
48
52
|
&.clickable:hover,
|
|
49
53
|
&.selected {
|
|
50
54
|
background-color: rgba(0, 0, 0, 0.05);
|
|
51
55
|
}
|
|
52
56
|
&.focused {
|
|
53
|
-
background-color: var(--primary-
|
|
57
|
+
background-color: var(--primary-100);
|
|
54
58
|
}
|
|
55
59
|
&.loading {
|
|
56
60
|
opacity: 0.5;
|
|
@@ -69,78 +73,91 @@ table {
|
|
|
69
73
|
}
|
|
70
74
|
td {
|
|
71
75
|
border: var(--border);
|
|
72
|
-
|
|
76
|
+
border-top: none;
|
|
73
77
|
font-size: 14px;
|
|
74
78
|
box-sizing: border-box;
|
|
75
|
-
height:
|
|
76
|
-
padding:
|
|
79
|
+
height: 48px;
|
|
80
|
+
padding: 6px 12px;
|
|
77
81
|
&.s {
|
|
78
82
|
height: 40px;
|
|
79
|
-
padding: 2px
|
|
83
|
+
padding: 2px 12px;
|
|
80
84
|
}
|
|
81
85
|
&.xs {
|
|
82
86
|
height: 30px;
|
|
83
|
-
padding: 2px
|
|
87
|
+
padding: 2px 12px;
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
.clickable-column:hover {
|
|
87
91
|
background-color: var(--primary-o10) !important;
|
|
88
92
|
}
|
|
93
|
+
// Item Actions
|
|
94
|
+
.table-item-actions {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
padding: 0 4px;
|
|
99
|
+
// gap: 8px;
|
|
100
|
+
}
|
|
89
101
|
|
|
90
102
|
//// Footer ////
|
|
91
|
-
|
|
92
103
|
.table-footer {
|
|
93
104
|
display: flex;
|
|
94
105
|
align-items: center;
|
|
95
106
|
width: 100%;
|
|
96
|
-
height: 52px;
|
|
97
107
|
padding: 8px;
|
|
98
108
|
font-size: var(--fs-m);
|
|
99
109
|
box-sizing: border-box;
|
|
110
|
+
.pagination {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: 12px;
|
|
114
|
+
color: var(--text);
|
|
115
|
+
p,
|
|
116
|
+
.offset-input {
|
|
117
|
+
font-size: 12px !important;
|
|
118
|
+
}
|
|
119
|
+
p {
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
}
|
|
122
|
+
.offset-input {
|
|
123
|
+
.iui-input-wrapper-field {
|
|
124
|
+
width: 40px;
|
|
125
|
+
min-height: 24px;
|
|
126
|
+
height: 24px;
|
|
127
|
+
}
|
|
128
|
+
input {
|
|
129
|
+
font-size: 12px !important;
|
|
130
|
+
text-align: center;
|
|
131
|
+
padding: 0 5px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media #{bp.$mobile} {
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
align-items: end;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
100
140
|
}
|
|
101
|
-
|
|
141
|
+
|
|
142
|
+
//// Actions ////
|
|
143
|
+
.iui-table-header-actions {
|
|
102
144
|
display: flex;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
p,
|
|
107
|
-
// select,
|
|
108
|
-
.offset-input {
|
|
109
|
-
font-size: 12px !important;
|
|
110
|
-
}
|
|
111
|
-
p {
|
|
112
|
-
white-space: nowrap;
|
|
113
|
-
}
|
|
114
|
-
.separator {
|
|
115
|
-
height: 16px;
|
|
116
|
-
width: 1px;
|
|
117
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
145
|
+
gap: 8px;
|
|
146
|
+
&:has(> *) {
|
|
147
|
+
padding: 8px 10px;
|
|
118
148
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
padding: 0 8px;
|
|
127
|
-
user-select: none;
|
|
128
|
-
margin-left: 8px;
|
|
129
|
-
margin-right: 16px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media #{bp.$landscape} {
|
|
152
|
+
.select-col,
|
|
153
|
+
.actions-col {
|
|
154
|
+
padding: 0;
|
|
130
155
|
}
|
|
131
|
-
.
|
|
132
|
-
width:
|
|
133
|
-
input {
|
|
134
|
-
font-size: 12px !important;
|
|
135
|
-
height: 24px;
|
|
136
|
-
text-align: center;
|
|
137
|
-
padding: 0 5px;
|
|
138
|
-
}
|
|
156
|
+
.select-col {
|
|
157
|
+
width: 50px;
|
|
139
158
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
flex-direction: column;
|
|
143
|
-
align-items: end;
|
|
159
|
+
.actions-col {
|
|
160
|
+
width: 70px;
|
|
144
161
|
}
|
|
145
162
|
}
|
|
146
163
|
|
|
@@ -150,13 +167,15 @@ table {
|
|
|
150
167
|
display: block;
|
|
151
168
|
}
|
|
152
169
|
tr {
|
|
153
|
-
padding: 20px
|
|
170
|
+
padding-bottom: 20px;
|
|
171
|
+
border-top: var(--border);
|
|
154
172
|
}
|
|
155
173
|
td {
|
|
156
174
|
display: flex;
|
|
157
175
|
align-items: center;
|
|
158
176
|
height: unset !important;
|
|
159
177
|
text-align: left;
|
|
178
|
+
width: unset !important;
|
|
160
179
|
}
|
|
161
180
|
thead {
|
|
162
181
|
display: none;
|
|
@@ -172,99 +191,89 @@ table {
|
|
|
172
191
|
}
|
|
173
192
|
}
|
|
174
193
|
|
|
175
|
-
.iui-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
.filters-search {
|
|
181
|
-
display: flex;
|
|
182
|
-
align-items: center;
|
|
183
|
-
justify-content: space-between;
|
|
184
|
-
gap: 8px;
|
|
185
|
-
.search-input {
|
|
186
|
-
max-width: 250px;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
194
|
+
.iui-filters-list {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
gap: 16px;
|
|
189
198
|
.table-filter-item {
|
|
190
199
|
display: flex;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
// width: 100%;
|
|
201
|
-
flex: 1;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
width: 100%;
|
|
202
|
+
gap: 6px;
|
|
203
|
+
.filter-item-label {
|
|
204
|
+
font-weight: 500;
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
cursor: default;
|
|
202
209
|
}
|
|
203
210
|
}
|
|
204
211
|
}
|
|
205
212
|
|
|
206
|
-
.dual-list-container {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
213
|
+
// .dual-list-container {
|
|
214
|
+
// .dual-list-content {
|
|
215
|
+
// display: grid;
|
|
216
|
+
// grid-template-columns: 1fr auto 1fr;
|
|
217
|
+
// gap: 12px;
|
|
218
|
+
// }
|
|
219
|
+
// .list-box {
|
|
220
|
+
// border: var(--border);
|
|
221
|
+
// border-radius: 16px;
|
|
222
|
+
// padding: 10px;
|
|
223
|
+
// user-select: none;
|
|
224
|
+
// & > .item {
|
|
225
|
+
// display: flex;
|
|
226
|
+
// justify-content: space-between;
|
|
227
|
+
// align-items: center;
|
|
228
|
+
// padding: 8px;
|
|
229
|
+
// font-size: 12px;
|
|
230
|
+
// svg {
|
|
231
|
+
// color: rgba(0, 0, 0, 0.6);
|
|
232
|
+
// margin-left: 1rem;
|
|
233
|
+
// }
|
|
234
|
+
// &:hover {
|
|
235
|
+
// background-color: var(--primary-o10);
|
|
236
|
+
// }
|
|
237
|
+
// &:active {
|
|
238
|
+
// background-color: var(--primary-o25);
|
|
239
|
+
// }
|
|
240
|
+
// }
|
|
241
|
+
// }
|
|
242
|
+
// .exchange-icon {
|
|
243
|
+
// display: flex;
|
|
244
|
+
// align-items: center;
|
|
245
|
+
// svg {
|
|
246
|
+
// height: 20px;
|
|
247
|
+
// width: 20px;
|
|
248
|
+
// }
|
|
249
|
+
// }
|
|
250
|
+
// }
|
|
244
251
|
|
|
245
252
|
.edit-row {
|
|
246
253
|
background: var(--neutral-100);
|
|
247
254
|
td {
|
|
248
|
-
padding: 4px
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
padding: 4px;
|
|
256
|
+
.iui-input-wrapper-field {
|
|
257
|
+
// border: none;
|
|
258
|
+
// border-radius: 0;
|
|
259
|
+
box-shadow: none !important;
|
|
260
|
+
}
|
|
261
|
+
.select-wrapper {
|
|
262
|
+
min-width: 120px;
|
|
263
|
+
}
|
|
256
264
|
}
|
|
257
265
|
}
|
|
258
|
-
.primary-row {
|
|
259
|
-
background-color: rgba(var(--primary-rgb), 0.15);
|
|
260
|
-
}
|
|
261
|
-
.secondary-row {
|
|
262
|
-
background-color: #f1f1f1;
|
|
263
|
-
}
|
|
264
266
|
|
|
265
|
-
.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
267
|
+
// .primary-row {
|
|
268
|
+
// background-color: var(--primary-100);
|
|
269
|
+
// }
|
|
270
|
+
// .secondary-row {
|
|
271
|
+
// background-color: #f1f1f1;
|
|
272
|
+
// }
|
|
273
|
+
|
|
274
|
+
// .table-options {
|
|
275
|
+
// display: flex;
|
|
276
|
+
// align-items: center;
|
|
277
|
+
// justify-content: space-between;
|
|
278
|
+
// padding: 8px;
|
|
279
|
+
// }
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
--text: var(--neutral-700);
|
|
66
66
|
--text-inverse: var(--white);
|
|
67
67
|
--text-disabled: var(--neutral-400);
|
|
68
|
+
--background: var(--white);
|
|
68
69
|
--background-disabled: var(--neutral-100);
|
|
69
70
|
--neutral-hover: var(--neutral-200);
|
|
70
71
|
--border-color: var(--neutral-300);
|
|
@@ -86,8 +87,9 @@
|
|
|
86
87
|
|
|
87
88
|
--container-radius: 25px;
|
|
88
89
|
--container-radius-bottom: 0 0 25px 25px;
|
|
89
|
-
--container-shadow: 0px 0px 5px rgba(
|
|
90
|
-
--deep-shadow:
|
|
90
|
+
--container-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
|
91
|
+
--deep-shadow:
|
|
92
|
+
0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
91
93
|
0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
92
94
|
}
|
|
93
95
|
|
package/src/types/IKeyboard.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ITableDataItem } from './ITable';
|
|
2
2
|
|
|
3
3
|
export interface IKeyboardAction {
|
|
4
|
-
|
|
4
|
+
code: string;
|
|
5
5
|
onAction: () => void;
|
|
6
6
|
ctrl?: boolean;
|
|
7
|
+
shift?: boolean;
|
|
7
8
|
normalizedKey?: boolean;
|
|
8
9
|
onBulkAction?: (itemUuids: string[]) => void;
|
|
9
10
|
disabled?: boolean;
|
package/src/types/IMenu.ts
CHANGED