@open-condo/ui 2.47.0 → 2.48.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.
Files changed (45) hide show
  1. package/dist/colors/index.js +3 -3
  2. package/dist/components/Table/components/ColumnSettings.d.ts +10 -0
  3. package/dist/components/Table/components/ColumnSettings.d.ts.map +1 -0
  4. package/dist/components/Table/components/ColumnSettingsItem.d.ts +13 -0
  5. package/dist/components/Table/components/ColumnSettingsItem.d.ts.map +1 -0
  6. package/dist/components/Table/components/TableBody.d.ts +13 -0
  7. package/dist/components/Table/components/TableBody.d.ts.map +1 -0
  8. package/dist/components/Table/components/TableHeader.d.ts +13 -0
  9. package/dist/components/Table/components/TableHeader.d.ts.map +1 -0
  10. package/dist/components/Table/components/TablePagination.d.ts +8 -0
  11. package/dist/components/Table/components/TablePagination.d.ts.map +1 -0
  12. package/dist/components/Table/constants.d.ts +7 -0
  13. package/dist/components/Table/constants.d.ts.map +1 -0
  14. package/dist/components/Table/hooks/useColumnOrder.d.ts +14 -0
  15. package/dist/components/Table/hooks/useColumnOrder.d.ts.map +1 -0
  16. package/dist/components/Table/hooks/useColumnSizing.d.ts +14 -0
  17. package/dist/components/Table/hooks/useColumnSizing.d.ts.map +1 -0
  18. package/dist/components/Table/hooks/useColumnVisibility.d.ts +13 -0
  19. package/dist/components/Table/hooks/useColumnVisibility.d.ts.map +1 -0
  20. package/dist/components/Table/hooks/useTableSetting.d.ts +18 -0
  21. package/dist/components/Table/hooks/useTableSetting.d.ts.map +1 -0
  22. package/dist/components/Table/index.d.ts +7 -0
  23. package/dist/components/Table/index.d.ts.map +1 -0
  24. package/dist/components/Table/table.d.ts +8 -0
  25. package/dist/components/Table/table.d.ts.map +1 -0
  26. package/dist/components/Table/types.d.ts +135 -0
  27. package/dist/components/Table/types.d.ts.map +1 -0
  28. package/dist/components/Table/utils/filterComponents.d.ts +37 -0
  29. package/dist/components/Table/utils/filterComponents.d.ts.map +1 -0
  30. package/dist/components/Table/utils/renderCellUtils.d.ts +13 -0
  31. package/dist/components/Table/utils/renderCellUtils.d.ts.map +1 -0
  32. package/dist/components/Table/utils/storage.d.ts +3 -0
  33. package/dist/components/Table/utils/storage.d.ts.map +1 -0
  34. package/dist/components/Table/utils/urlQuery.d.ts +29 -0
  35. package/dist/components/Table/utils/urlQuery.d.ts.map +1 -0
  36. package/dist/events.js +999 -999
  37. package/dist/hooks.js +103 -106
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +75538 -62968
  41. package/dist/style-vars/variables.css +1 -1
  42. package/dist/style-vars/variables.less +1 -1
  43. package/dist/styles.css +490 -0
  44. package/dist/styles.min.css +1 -1
  45. package/package.json +7 -3
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 07 Nov 2025 15:18:34 GMT
3
+ * Generated on Wed, 03 Dec 2025 17:35:19 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 07 Nov 2025 15:18:34 GMT
3
+ // Generated on Wed, 03 Dec 2025 17:35:19 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
package/dist/styles.css CHANGED
@@ -11925,6 +11925,496 @@ span.condo-radio + * {
11925
11925
  background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%);
11926
11926
  }
11927
11927
 
11928
+ .condo-table-container {
11929
+ position: relative;
11930
+ width: 100%;
11931
+ font-family: "Wix Madefor Display", var(--condo-font-fallback);
11932
+ }
11933
+ .condo-table-wrapper {
11934
+ box-sizing: border-box;
11935
+ width: 100%;
11936
+ overflow-x: auto;
11937
+ background-color: #fff;
11938
+ border: 1px solid #d0d3e5;
11939
+ border-radius: 12px;
11940
+ border-collapse: separate;
11941
+ border-spacing: 0;
11942
+ }
11943
+ .condo-table {
11944
+ width: -webkit-fit-content;
11945
+ width: -moz-fit-content;
11946
+ width: fit-content;
11947
+ }
11948
+ .condo-table-thead {
11949
+ position: -webkit-sticky;
11950
+ position: sticky;
11951
+ top: 0;
11952
+ z-index: 10;
11953
+ display: flex;
11954
+ min-width: -webkit-fit-content;
11955
+ min-width: -moz-fit-content;
11956
+ min-width: fit-content;
11957
+ }
11958
+ .condo-table-tbody {
11959
+ display: flex;
11960
+ flex-direction: column;
11961
+ min-width: -webkit-fit-content;
11962
+ min-width: -moz-fit-content;
11963
+ min-width: fit-content;
11964
+ }
11965
+ .condo-table-loading-placeholder {
11966
+ min-height: 200px;
11967
+ }
11968
+ .condo-table-loading-overlay {
11969
+ position: absolute;
11970
+ top: 50px;
11971
+ right: 0;
11972
+ bottom: 0;
11973
+ left: 0;
11974
+ z-index: 1;
11975
+ display: flex;
11976
+ align-items: center;
11977
+ justify-content: center;
11978
+ pointer-events: none;
11979
+ }
11980
+ .condo-table-loading-spinner {
11981
+ width: 24px;
11982
+ height: 24px;
11983
+ border: 3px solid #f2f4f6;
11984
+ border-top: 3px solid #2bc359;
11985
+ border-radius: 50%;
11986
+ -webkit-animation: condo-table-loading-spin 1s linear infinite;
11987
+ animation: condo-table-loading-spin 1s linear infinite;
11988
+ }
11989
+ @-webkit-keyframes condo-table-loading-spin {
11990
+ 0% {
11991
+ transform: rotate(0deg);
11992
+ }
11993
+ 100% {
11994
+ transform: rotate(360deg);
11995
+ }
11996
+ }
11997
+ @keyframes condo-table-loading-spin {
11998
+ 0% {
11999
+ transform: rotate(0deg);
12000
+ }
12001
+ 100% {
12002
+ transform: rotate(360deg);
12003
+ }
12004
+ }
12005
+ .condo-table-th-more-icon {
12006
+ display: flex;
12007
+ align-items: center;
12008
+ opacity: 0;
12009
+ transition: all 0.15s ease;
12010
+ }
12011
+ .condo-table-th {
12012
+ position: relative;
12013
+ display: flex;
12014
+ align-items: center;
12015
+ box-sizing: border-box;
12016
+ min-width: 0;
12017
+ padding: 16px 12px;
12018
+ color: #707695;
12019
+ font-weight: 600;
12020
+ font-size: 12px;
12021
+ background-color: #fff;
12022
+ border: none;
12023
+ border-bottom: 1px solid #d0d3e5;
12024
+ cursor: pointer;
12025
+ -webkit-user-select: none;
12026
+ -moz-user-select: none;
12027
+ -ms-user-select: none;
12028
+ user-select: none;
12029
+ }
12030
+ .condo-table-th:hover {
12031
+ background-color: #f2f4f6;
12032
+ }
12033
+ .condo-table-th:hover .condo-table-th-more-icon {
12034
+ color: #707695;
12035
+ opacity: 1;
12036
+ }
12037
+ .condo-table-th:hover .condo-table-th-more-icon:hover {
12038
+ color: #2bc359;
12039
+ opacity: 1;
12040
+ }
12041
+ .condo-table-th.non-sortable {
12042
+ cursor: default;
12043
+ }
12044
+ .condo-table-th.condo-table-th-active {
12045
+ background: #f2f4f6;
12046
+ }
12047
+ .condo-table-th:first-child {
12048
+ border-top-left-radius: 12px;
12049
+ }
12050
+ .condo-table-th:last-child {
12051
+ border-right: none;
12052
+ border-top-right-radius: 12px;
12053
+ }
12054
+ .condo-table-th-content {
12055
+ display: flex;
12056
+ gap: 8px;
12057
+ align-items: center;
12058
+ justify-content: space-between;
12059
+ width: 100%;
12060
+ }
12061
+ .condo-table-th-title-content {
12062
+ flex: 1;
12063
+ min-width: 0;
12064
+ overflow: hidden;
12065
+ }
12066
+ .condo-table-th-icons {
12067
+ display: flex;
12068
+ gap: 8px;
12069
+ }
12070
+ .condo-table-th-resize-handle {
12071
+ position: absolute;
12072
+ top: 0;
12073
+ right: 0;
12074
+ z-index: 100;
12075
+ display: block;
12076
+ width: 4px;
12077
+ height: 100%;
12078
+ padding: 0;
12079
+ background-color: #fff;
12080
+ border: none;
12081
+ cursor: col-resize;
12082
+ -webkit-user-select: none;
12083
+ -moz-user-select: none;
12084
+ -ms-user-select: none;
12085
+ user-select: none;
12086
+ }
12087
+ .condo-table-th-resize-handle:hover {
12088
+ background-color: #2bc359;
12089
+ }
12090
+ .condo-table-th-resize-handle::after {
12091
+ position: absolute;
12092
+ top: 0;
12093
+ right: 0;
12094
+ z-index: 1000;
12095
+ width: 4px;
12096
+ height: 100%;
12097
+ content: "";
12098
+ }
12099
+ .condo-table-th-resizing .condo-table-th-resize-handle::after {
12100
+ position: absolute;
12101
+ top: 0;
12102
+ right: 0;
12103
+ right: var(--resize-line-position, 0);
12104
+ width: 4px;
12105
+ height: 100vh;
12106
+ background-color: #2bc359;
12107
+ content: "";
12108
+ pointer-events: none;
12109
+ }
12110
+ .condo-table-td {
12111
+ box-sizing: border-box;
12112
+ min-width: 0;
12113
+ padding: 16px 12px;
12114
+ color: #222;
12115
+ font-size: 14px;
12116
+ line-height: 24px;
12117
+ letter-spacing: -0.01em;
12118
+ border: none;
12119
+ border-bottom: 1px solid #d0d3e5;
12120
+ }
12121
+ .condo-table-tr:last-child .condo-table-td {
12122
+ border-bottom: none;
12123
+ }
12124
+ .condo-table-cell-skeleton {
12125
+ width: 100%;
12126
+ height: 24px;
12127
+ background: linear-gradient(90deg, #e1e5ed 25%, #d0d3e5 37%, #e1e5ed 63%);
12128
+ background-size: 400% 100%;
12129
+ border-radius: 6px;
12130
+ -webkit-animation: condo-skeleton-loading 1.4s ease infinite;
12131
+ animation: condo-skeleton-loading 1.4s ease infinite;
12132
+ }
12133
+ @-webkit-keyframes condo-skeleton-loading {
12134
+ 0% {
12135
+ background-position: 100% 50%;
12136
+ }
12137
+ 100% {
12138
+ background-position: 0 50%;
12139
+ }
12140
+ }
12141
+ @keyframes condo-skeleton-loading {
12142
+ 0% {
12143
+ background-position: 100% 50%;
12144
+ }
12145
+ 100% {
12146
+ background-position: 0 50%;
12147
+ }
12148
+ }
12149
+ .condo-table-tr {
12150
+ display: flex;
12151
+ outline: none;
12152
+ transition: background-color 0.15s ease;
12153
+ }
12154
+ .condo-table-tr:last-child {
12155
+ border-bottom: none;
12156
+ }
12157
+ .condo-table-tr.hoverable {
12158
+ cursor: pointer;
12159
+ }
12160
+ .condo-table-tr:hover {
12161
+ background-color: #f2f4f6;
12162
+ }
12163
+ .condo-table-tr:hover .condo-table-td {
12164
+ background-color: #f2f4f6;
12165
+ }
12166
+ .condo-table-tr:focus {
12167
+ outline: 2px solid #2bc359;
12168
+ outline-offset: -2px;
12169
+ }
12170
+ .condo-table-tr:focus:not(.focus-visible) {
12171
+ outline: none;
12172
+ }
12173
+ .condo-table-tr:focus:not(:focus-visible) {
12174
+ outline: none;
12175
+ }
12176
+ .condo-table-tr[role="button"] {
12177
+ cursor: pointer;
12178
+ }
12179
+ .condo-table-column-settings-dropdown {
12180
+ display: flex;
12181
+ flex-direction: column;
12182
+ gap: 16px;
12183
+ }
12184
+ .condo-table-column-settings-dropdown[\:has\(.condo-table-column-settings-item.is-dragging\)] * {
12185
+ cursor: -webkit-grabbing !important;
12186
+ cursor: grabbing !important;
12187
+ }
12188
+ .condo-table-column-settings-dropdown:has(.condo-table-column-settings-item.is-dragging) * {
12189
+ cursor: -webkit-grabbing !important;
12190
+ cursor: grabbing !important;
12191
+ }
12192
+ .condo-table-column-settings-item {
12193
+ position: relative;
12194
+ height: auto;
12195
+ background-color: transparent;
12196
+ border-radius: 4px;
12197
+ transition: background-color 0.15s ease;
12198
+ }
12199
+ .condo-table-column-settings-item.is-dragging {
12200
+ opacity: 0.3 !important;
12201
+ }
12202
+ .condo-table-grip-container {
12203
+ display: flex;
12204
+ align-items: center;
12205
+ justify-content: center;
12206
+ padding: 4px;
12207
+ color: #d0d3e5;
12208
+ background-color: transparent;
12209
+ border-radius: 4px;
12210
+ outline: none;
12211
+ transition: all 0.15s ease;
12212
+ }
12213
+ .condo-table-grip-container:hover {
12214
+ cursor: -webkit-grab;
12215
+ cursor: grab;
12216
+ }
12217
+ .condo-table-grip-container:active {
12218
+ cursor: -webkit-grabbing;
12219
+ cursor: grabbing;
12220
+ }
12221
+ .condo-table-grip-container:focus {
12222
+ outline: 2px solid #2bc359;
12223
+ outline-offset: 2px;
12224
+ }
12225
+ .condo-table-grip-container:focus:not(.focus-visible) {
12226
+ outline: none;
12227
+ }
12228
+ .condo-table-grip-container:focus:not(:focus-visible) {
12229
+ outline: none;
12230
+ }
12231
+ .condo-table-switch-container {
12232
+ display: block;
12233
+ outline: none;
12234
+ cursor: pointer;
12235
+ }
12236
+ .condo-table-switch-container:focus {
12237
+ outline: 2px solid #2bc359;
12238
+ outline-offset: 2px;
12239
+ }
12240
+ .condo-table-switch-container:focus:not(.focus-visible) {
12241
+ outline: none;
12242
+ }
12243
+ .condo-table-switch-container:focus:not(:focus-visible) {
12244
+ outline: none;
12245
+ }
12246
+ .condo-table-switch-container[aria-disabled="true"] {
12247
+ cursor: not-allowed;
12248
+ opacity: 0.6;
12249
+ }
12250
+ .condo-table-pagination {
12251
+ display: flex;
12252
+ gap: 8px;
12253
+ align-items: center;
12254
+ justify-content: start;
12255
+ width: 100%;
12256
+ margin: 0;
12257
+ padding: 16px 0;
12258
+ list-style: none;
12259
+ }
12260
+ .condo-table-pagination li {
12261
+ margin: 0;
12262
+ }
12263
+ .condo-table-pagination .condo-item {
12264
+ display: flex;
12265
+ align-items: center;
12266
+ justify-content: center;
12267
+ box-sizing: border-box;
12268
+ min-width: 30px;
12269
+ height: 30px;
12270
+ padding: 0 10px;
12271
+ color: #707695;
12272
+ background-color: #fff;
12273
+ border: 1px solid #d0d3e5;
12274
+ border-radius: 8px;
12275
+ transition: all 0.15s ease;
12276
+ }
12277
+ .condo-table-pagination .condo-item a {
12278
+ color: inherit;
12279
+ }
12280
+ .condo-table-pagination .condo-prev .condo-item-link,
12281
+ .condo-table-pagination .condo-next .condo-item-link,
12282
+ .condo-table-pagination .condo-jump-prev .condo-item-link,
12283
+ .condo-table-pagination .condo-jump-next .condo-item-link {
12284
+ display: flex;
12285
+ align-items: center;
12286
+ justify-content: center;
12287
+ box-sizing: border-box;
12288
+ min-width: 30px;
12289
+ height: 30px;
12290
+ padding: 0 10px;
12291
+ color: #707695;
12292
+ background-color: #fff;
12293
+ border: 1px solid #d0d3e5;
12294
+ border-radius: 8px;
12295
+ transition: all 0.15s ease;
12296
+ }
12297
+ .condo-table-pagination .condo-prev.condo-disabled .condo-item-link,
12298
+ .condo-table-pagination .condo-next.condo-disabled .condo-item-link {
12299
+ color: #d0d3e5;
12300
+ background-color: #f2f4f6;
12301
+ border-color: #e1e5ed;
12302
+ }
12303
+ .condo-table-pagination .condo-jump-prev .condo-item-link:hover,
12304
+ .condo-table-pagination .condo-jump-next .condo-item-link:hover,
12305
+ .condo-table-pagination .condo-prev:not(.condo-disabled) .condo-item-link:hover,
12306
+ .condo-table-pagination .condo-next:not(.condo-disabled) .condo-item-link:hover,
12307
+ .condo-table-pagination .condo-item:hover {
12308
+ color: #2bc359;
12309
+ border-color: #2bc359;
12310
+ }
12311
+ .condo-table-pagination .condo-item-active {
12312
+ color: #2bc359;
12313
+ background-color: #ebfaef;
12314
+ border-color: #2bc359;
12315
+ }
12316
+ .condo-table-pagination .condo-item-active a {
12317
+ color: #2bc359;
12318
+ }
12319
+ .condo-table-pagination .condo-item-ellipsis {
12320
+ display: flex;
12321
+ align-items: center;
12322
+ justify-content: center;
12323
+ color: #d0d3e5;
12324
+ background: transparent;
12325
+ border: none;
12326
+ }
12327
+ .condo-dropdown-menu-item-inner {
12328
+ display: flex;
12329
+ gap: 8px;
12330
+ align-items: center;
12331
+ justify-content: space-between;
12332
+ }
12333
+ .condo-table-icon {
12334
+ transition: color 0.15s ease;
12335
+ }
12336
+ .condo-table-icon svg {
12337
+ color: #707695;
12338
+ }
12339
+ .condo-table-icon-green svg {
12340
+ color: #2bc359;
12341
+ }
12342
+ .condo-table-icon-gray svg {
12343
+ color: #707695;
12344
+ }
12345
+ .condo-table-icon-black svg {
12346
+ color: #222;
12347
+ }
12348
+ .condo-table-empty-icon svg {
12349
+ color: #707695;
12350
+ }
12351
+ .condo-dropdown-menu-item-inner-left {
12352
+ display: flex;
12353
+ gap: 8px;
12354
+ align-items: center;
12355
+ }
12356
+ .condo-dropdown-menu-item-inner-left:hover svg {
12357
+ color: #2bc359;
12358
+ }
12359
+ .condo-dropdown-menu-item-container:hover {
12360
+ color: #2bc359;
12361
+ }
12362
+ .condo-dropdown-menu-item-container:hover .condo-dropdown-menu-item-inner-left svg {
12363
+ color: #2bc359;
12364
+ }
12365
+ .condo-dropdown-menu-item-inner-left-active {
12366
+ color: #2bc359;
12367
+ }
12368
+ .condo-table-pagination-size-selector {
12369
+ padding: 4px 8px;
12370
+ color: #222;
12371
+ font-size: 14px;
12372
+ background: #fff;
12373
+ border: 1px solid #2bc359;
12374
+ border-radius: 6px;
12375
+ cursor: pointer;
12376
+ }
12377
+ .condo-table-pagination-size-selector:hover {
12378
+ border-color: #2bc359;
12379
+ }
12380
+ .condo-table-pagination-size-selector:focus {
12381
+ border-color: #2bc359;
12382
+ outline: none;
12383
+ box-shadow: 0 0 0 2px #ebfaef;
12384
+ }
12385
+ .condo-table-empty {
12386
+ display: flex;
12387
+ flex-direction: column;
12388
+ gap: 12px;
12389
+ align-items: center;
12390
+ justify-content: center;
12391
+ min-height: 200px;
12392
+ padding: 40px 20px;
12393
+ background: #fff;
12394
+ border-radius: 12px;
12395
+ }
12396
+ .condo-table-empty-content {
12397
+ display: flex;
12398
+ flex-direction: column;
12399
+ gap: 12px;
12400
+ align-items: center;
12401
+ color: #707695;
12402
+ font-size: 14px;
12403
+ text-align: center;
12404
+ }
12405
+ .condo-dropdown-menu-item-wrapper {
12406
+ padding: 16px;
12407
+ background-color: #fff;
12408
+ border-radius: 12px;
12409
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
12410
+ }
12411
+ .condo-dropdown-menu-item-wrapper-reset-button {
12412
+ display: flex;
12413
+ align-items: center;
12414
+ justify-content: center;
12415
+ margin-top: 16px;
12416
+ }
12417
+
11928
12418
  /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
11929
12419
  /* stylelint-disable no-duplicate-selectors */
11930
12420
  /* stylelint-disable */