@ldmjs/ui 1.0.19 → 1.0.21

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.
@@ -0,0 +1,89 @@
1
+ .ld-data-iterator {
2
+ display: flex;
3
+ flex-flow: column nowrap;
4
+ position: relative;
5
+ height: 100%;
6
+
7
+ .iterator-list {
8
+ height: 100%;
9
+ overflow-y: auto;
10
+ overflow-anchor: auto;
11
+ contain: content;
12
+ }
13
+
14
+ .scroller {
15
+ position: relative;
16
+ transform: translateZ(0);
17
+ &.mobile {
18
+ scroll-snap-type: y mandatory;
19
+ }
20
+ }
21
+
22
+ .item {
23
+ position: absolute;
24
+ width: 100%;
25
+ &.mobile {
26
+ scroll-snap-align: start;
27
+ }
28
+
29
+ &.blink {
30
+ animation: blinker 0.5s linear;
31
+ }
32
+
33
+ @keyframes blinker {
34
+ 5% {
35
+ left: -5%;
36
+ }
37
+ 15% {
38
+ left: -15%;
39
+ }
40
+ 25% {
41
+ opacity: 75%;
42
+ left: -25%;
43
+ }
44
+ 50% {
45
+ opacity: 50%;
46
+ left: -50%;
47
+ }
48
+ 75% {
49
+ opacity: 25%;
50
+ left: -75%;
51
+ }
52
+ 100% {
53
+ opacity: 0;
54
+ left: -100%;
55
+ }
56
+ }
57
+ }
58
+
59
+ .top-fixed-item-wrapper {
60
+ position: relative;
61
+ flex: none;
62
+ margin-bottom: 5px;
63
+ box-shadow: 0px 0px 15px 0px var(--grey);
64
+ }
65
+
66
+ .top-fixed-item {
67
+ position: relative;
68
+ width: 100%;
69
+ }
70
+
71
+ .empty-item {
72
+ position: absolute;
73
+ width: 100%;
74
+
75
+ .empty {
76
+ display: flex;
77
+ flex-flow: column;
78
+ background-color: var(--white);
79
+ border: 1px solid var(--grey-l-5);
80
+ border-radius: 4px;
81
+
82
+ .empty-actions {
83
+ height: 50px;
84
+ margin-top: auto;
85
+ background-color: var(--grey-l-6);
86
+ }
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,20 @@
1
+ .pager {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ height: var(--pager-height);
6
+ padding: 2px 12px !important;
7
+ background-color: var(--white);
8
+ font-size: var(--font-size);
9
+
10
+ &--border-top {
11
+ border-top: 1px solid var(--grey-l-5);
12
+ }
13
+
14
+ .v-btn {
15
+ &.--active {
16
+ font-weight: 700 !important;
17
+ color: var(--primary) !important;
18
+ }
19
+ }
20
+ }
@@ -4,6 +4,7 @@ $border-radius: 4px !default; // радиус скругления атомар
4
4
  $chip-height: 20px !default; // высота элемента chip
5
5
  $toolbar-height: 44px !default; // высота тулбара
6
6
  $toolbar-border-radius: 8px !default; // радиус скругления тулбара
7
+ $pager-height: 32px !default;
7
8
 
8
9
  $ld-tab-height: $input-height + 10px; // высота элемента ld-tab
9
10
 
@@ -22,6 +23,7 @@ $shadow-4: 0px 16px 20px 0px rgba(0, 0, 0, 0.20);
22
23
  --ld-tab-height: #{$ld-tab-height};
23
24
  --toolbar-height: #{$toolbar-height};
24
25
  --toolbar-border-radius: #{$toolbar-border-radius};
26
+ --pager-height: #{$pager-height};
25
27
  --shadow-1: #{$shadow-1};
26
28
  --shadow-2: #{$shadow-2};
27
29
  --shadow-3: #{$shadow-3};
@@ -10,3 +10,5 @@
10
10
  @import 'multiselect';
11
11
  @import 'toasted';
12
12
  @import 'dialogs';
13
+ @import 'iterator';
14
+ @import 'pager';
@@ -0,0 +1,11 @@
1
+ export interface IIteratorRemovedItem<T> {
2
+ id: number | string;
3
+ index: number;
4
+ item: T;
5
+ }
6
+
7
+ export interface IIteratorSortField {
8
+ prop: string;
9
+ direction: 'asc' | 'desc';
10
+ type: 'date' | 'string' | 'number';
11
+ }
@@ -24,6 +24,8 @@ export interface ldmuiOptions {
24
24
  'ld-text-markup'?: string;
25
25
  'ld-switch'?: string;
26
26
  'ld-dialog'?: string;
27
+ 'ld-data-iterator'?: string;
28
+ 'ld-pager'?: string;
27
29
  },
28
30
  viewport?: {
29
31
  isMobile: string;
@@ -46,4 +48,7 @@ export interface ldmuiOptions {
46
48
  LdTabs?: {
47
49
  header: string;
48
50
  }
51
+ LdPager?: {
52
+ entityName: (contentType: unknown, count: number) => string;
53
+ }
49
54
  }
@@ -0,0 +1,10 @@
1
+ export interface IPagerOptions {
2
+ page: number;
3
+ pageSize: number;
4
+ total: number;
5
+ }
6
+
7
+ export interface IPage {
8
+ number: number;
9
+ text: string;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -44,7 +44,7 @@
44
44
  "@babel/preset-typescript": "7.23.3",
45
45
  "@floating-ui/dom": "^1.6.3",
46
46
  "@ldmjs/core": "1.0.0",
47
- "@ldmjs/datatable": "1.0.6",
47
+ "@ldmjs/datatable": "1.0.7",
48
48
  "@popperjs/core": "^2.11.8",
49
49
  "@types/babel__core": "^7",
50
50
  "@types/babel__plugin-transform-runtime": "^7",