forstok-ui-lib 6.3.3 → 6.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "6.3.3",
3
+ "version": "6.4.1",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -3749,6 +3749,17 @@ export const IconDot = styled.span<{ $mode?: 'list' | 'header' | 'chat' }>`
3749
3749
  text-align: center;
3750
3750
  padding: 0px 4px;
3751
3751
  border-radius: var(--ter-rd);
3752
+ ${({ $mode }) => $mode === 'chat' && css`
3753
+ position: absolute;
3754
+ z-index: 8;
3755
+ left: 18px;
3756
+ top: 0;
3757
+ padding: 0.2em 0.3em;
3758
+ font-weight: bold;
3759
+ font-size: 10px;
3760
+ min-width: 16px;
3761
+ height: 16px;
3762
+ `}
3752
3763
  ${({ $mode }) => ($mode === 'list' || $mode === 'header') && css`
3753
3764
  position: absolute;
3754
3765
  top: 0;
@@ -3763,17 +3774,6 @@ export const IconDot = styled.span<{ $mode?: 'list' | 'header' | 'chat' }>`
3763
3774
  transform: scale(1) translate(50%, -50%);
3764
3775
  `}
3765
3776
  `}
3766
- ${({ $mode }) => $mode === 'chat' && css`
3767
- position: absolute;
3768
- z-index: 8;
3769
- left: 18px;
3770
- top: 0;
3771
- padding: 0.2em 0.3em;
3772
- font-weight: bold;
3773
- font-size: 10px;
3774
- min-width: 16px;
3775
- height: 16px;
3776
- `}
3777
3777
  `
3778
3778
  export const SortByWrapper = styled.section`
3779
3779
  justify-self: end;
@@ -48,4 +48,22 @@ export type TFileImage = TFile & {
48
48
  src: string
49
49
  url?: string
50
50
  };
51
- export type TState<T> = Dispatch<SetStateAction<T>>;
51
+ export type TState<T> = Dispatch<SetStateAction<T>>;
52
+ export interface TUPage {
53
+ totalCount?: number | null;
54
+ totalPageCount?: number | null;
55
+ pageInfo?: {
56
+ endCursor?: string | null;
57
+ hasNextPage: boolean;
58
+ hasPreviousPage: boolean;
59
+ startCursor?: string | null;
60
+ } | null;
61
+ pageCursors?:
62
+ | ({
63
+ __typename?: 'PageCursor';
64
+ page: number;
65
+ startCursor: string;
66
+ endCursor: string;
67
+ } | null)[]
68
+ | null;
69
+ }
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, JSX } from 'react';
2
- import { TChangeEvent, TMouseEvent, TObject, TPage, TState } from './base.typed';
2
+ import { TChangeEvent, TMouseEvent, TObject, TPage, TState, TUPage } from './base.typed';
3
3
  import { TCustomField, TAutoCopy } from '../components/masterTable/typed';
4
4
  import { TMessageFunction, TMessageQuestionFunction } from '../components/message/typed';
5
5
  import { TPopupFunction, TPopupOpenFunction } from '../components/popup/typed';
@@ -188,14 +188,14 @@ export type TInlistPart = Omit<TInList,
188
188
  evReload?: () => void
189
189
  }
190
190
 
191
- export type TPagination = {
192
- data?: TPage | null
193
- type: string
194
- activePage: number
195
- evSetPage: TMouseEvent
196
- activePageOption?: number
197
- evSetPageOption: TMouseEvent
198
- $mode?: string
191
+ export interface TPagination {
192
+ data?: TPage | TUPage | null;
193
+ type: string;
194
+ activePage: number;
195
+ evSetPage: TMouseEvent;
196
+ activePageOption?: number;
197
+ evSetPageOption: TMouseEvent;
198
+ mode?: 'noPageOption' | 'min10PageOption';
199
199
  }
200
200
 
201
201
  export type TObjPage = {