@j-solution/components 1.4.0 → 1.4.2
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/README.md +4 -5
- package/assets/jwms-portal-frontend-ZDGjD3Lz.css +1 -0
- package/assets/styles/j-components.css +1 -1
- package/components/atoms/JCombo.vue.cjs +1 -1
- package/components/atoms/JCombo.vue.cjs.map +1 -1
- package/components/atoms/JCombo.vue.js +40 -36
- package/components/atoms/JCombo.vue.js.map +1 -1
- package/components/atoms/JGrid.vue.cjs +1 -1
- package/components/atoms/JGrid.vue.js +2 -2
- package/components/atoms/JGrid.vue2.cjs +1 -1
- package/components/atoms/JGrid.vue2.cjs.map +1 -1
- package/components/atoms/JGrid.vue2.js +59 -43
- package/components/atoms/JGrid.vue2.js.map +1 -1
- package/components/organisms/JFilterBar.vue.cjs +1 -1
- package/components/organisms/JFilterBar.vue.cjs.map +1 -1
- package/components/organisms/JFilterBar.vue.js +112 -30
- package/components/organisms/JFilterBar.vue.js.map +1 -1
- package/components/organisms/JSidebarSimple/JDynamicMenuItem.vue.cjs +1 -1
- package/components/organisms/JSidebarSimple/JDynamicMenuItem.vue.cjs.map +1 -1
- package/components/organisms/JSidebarSimple/JDynamicMenuItem.vue.js +32 -28
- package/components/organisms/JSidebarSimple/JDynamicMenuItem.vue.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +51 -4
- package/assets/jwms-portal-frontend-Cs1trVbC.css +0 -1
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CellClickedEvent } from 'ag-grid-community';
|
|
2
|
+
import { CellValueChangedEvent } from 'ag-grid-community';
|
|
1
3
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
4
|
import { ColDef } from 'ag-grid-community';
|
|
3
5
|
import { Component } from 'vue';
|
|
@@ -9,11 +11,15 @@ import { DefineComponent } from 'vue';
|
|
|
9
11
|
import { DefineSetupFnComponent } from 'vue';
|
|
10
12
|
import { GlobalComponents } from 'vue';
|
|
11
13
|
import { GlobalDirectives } from 'vue';
|
|
14
|
+
import { GridReadyEvent } from 'ag-grid-community';
|
|
12
15
|
import { HTMLAttributes } from 'vue';
|
|
13
16
|
import { default as JLayoutAdvanced } from './JLayoutAdvanced.vue';
|
|
14
17
|
import { toast as JToast } from 'vue-sonner';
|
|
15
18
|
import { PublicProps } from 'vue';
|
|
16
19
|
import { Ref } from 'vue';
|
|
20
|
+
import { RowClickedEvent } from 'ag-grid-community';
|
|
21
|
+
import { RowDoubleClickedEvent } from 'ag-grid-community';
|
|
22
|
+
import { SelectionChangedEvent } from 'ag-grid-community';
|
|
17
23
|
import { ToasterProps } from 'vue-sonner';
|
|
18
24
|
import { VariantProps } from 'class-variance-authority';
|
|
19
25
|
|
|
@@ -189,13 +195,22 @@ handleError: (errs: any) => void;
|
|
|
189
195
|
}, any>;
|
|
190
196
|
|
|
191
197
|
declare const __VLS_component_19: DefineComponent<JFilterBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
198
|
+
search: () => any;
|
|
192
199
|
"update:collapsed": (value: boolean) => any;
|
|
200
|
+
"update:filterValues": (value: Record<string, unknown>) => any;
|
|
193
201
|
}, string, PublicProps, Readonly<JFilterBarProps> & Readonly<{
|
|
202
|
+
onSearch?: (() => any) | undefined;
|
|
194
203
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
204
|
+
"onUpdate:filterValues"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
195
205
|
}>, {
|
|
196
206
|
collapsible: boolean;
|
|
197
|
-
mode: "full" | "simple";
|
|
198
207
|
collapsed: boolean;
|
|
208
|
+
filterValues: Record<string, unknown>;
|
|
209
|
+
filterConfig: Record<string, FilterConfigItem>;
|
|
210
|
+
showResetButton: boolean;
|
|
211
|
+
showSearchButton: boolean;
|
|
212
|
+
resetButtonText: string;
|
|
213
|
+
searchButtonText: string;
|
|
199
214
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
200
215
|
|
|
201
216
|
declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1620,6 +1635,14 @@ declare interface DynamicTab {
|
|
|
1620
1635
|
meta?: Record<string, any>;
|
|
1621
1636
|
}
|
|
1622
1637
|
|
|
1638
|
+
/** 필터 설정 타입 */
|
|
1639
|
+
declare interface FilterConfigItem {
|
|
1640
|
+
/** 표시할 라벨 */
|
|
1641
|
+
label: string;
|
|
1642
|
+
/** 값을 표시용 문자열로 변환 (예: combo value -> label) */
|
|
1643
|
+
displayValue?: (value: unknown) => string;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1623
1646
|
declare interface FormSchema {
|
|
1624
1647
|
id: string;
|
|
1625
1648
|
name: string;
|
|
@@ -1858,12 +1881,22 @@ theme: "light" | "dark";
|
|
|
1858
1881
|
export declare const JFilterBar: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
1859
1882
|
|
|
1860
1883
|
declare interface JFilterBarProps {
|
|
1861
|
-
/** full: 토글+필터 있음, simple: 버튼만 */
|
|
1862
|
-
mode?: 'full' | 'simple';
|
|
1863
1884
|
/** 필터 접힘 상태 (v-model 지원) */
|
|
1864
1885
|
collapsed?: boolean;
|
|
1865
1886
|
/** 접기/펼치기 가능 여부. false면 토글 버튼 숨김 & 필터 항상 표시 */
|
|
1866
1887
|
collapsible?: boolean;
|
|
1888
|
+
/** 필터 값 객체 (v-model:filterValues 지원) */
|
|
1889
|
+
filterValues?: Record<string, unknown>;
|
|
1890
|
+
/** 필터 설정 (label, displayValue 등) */
|
|
1891
|
+
filterConfig?: Record<string, FilterConfigItem>;
|
|
1892
|
+
/** 초기화 버튼 표시 여부 */
|
|
1893
|
+
showResetButton?: boolean;
|
|
1894
|
+
/** 조회 버튼 표시 여부 */
|
|
1895
|
+
showSearchButton?: boolean;
|
|
1896
|
+
/** 초기화 버튼 텍스트 */
|
|
1897
|
+
resetButtonText?: string;
|
|
1898
|
+
/** 조회 버튼 텍스트 */
|
|
1899
|
+
searchButtonText?: string;
|
|
1867
1900
|
}
|
|
1868
1901
|
|
|
1869
1902
|
export declare const JFormField: DefineComponent<__VLS_Props_25, {
|
|
@@ -1906,7 +1939,21 @@ export declare const JGrid: DefineComponent<__VLS_Props_24, {
|
|
|
1906
1939
|
gridApi: Ref<any, any>;
|
|
1907
1940
|
gridColumnApi: Ref<any, any>;
|
|
1908
1941
|
exportToExcel: () => void;
|
|
1909
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1942
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1943
|
+
rowClicked: (event: RowClickedEvent<any, any>) => any;
|
|
1944
|
+
rowDoubleClicked: (event: RowDoubleClickedEvent<any, any>) => any;
|
|
1945
|
+
cellClicked: (event: CellClickedEvent<any, any, any>) => any;
|
|
1946
|
+
selectionChanged: (event: SelectionChangedEvent<any, any>) => any;
|
|
1947
|
+
cellValueChanged: (event: CellValueChangedEvent<any, any, any>) => any;
|
|
1948
|
+
gridReady: (event: GridReadyEvent<any, any>) => any;
|
|
1949
|
+
}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{
|
|
1950
|
+
onRowClicked?: ((event: RowClickedEvent<any, any>) => any) | undefined;
|
|
1951
|
+
onRowDoubleClicked?: ((event: RowDoubleClickedEvent<any, any>) => any) | undefined;
|
|
1952
|
+
onCellClicked?: ((event: CellClickedEvent<any, any, any>) => any) | undefined;
|
|
1953
|
+
onSelectionChanged?: ((event: SelectionChangedEvent<any, any>) => any) | undefined;
|
|
1954
|
+
onCellValueChanged?: ((event: CellValueChangedEvent<any, any, any>) => any) | undefined;
|
|
1955
|
+
onGridReady?: ((event: GridReadyEvent<any, any>) => any) | undefined;
|
|
1956
|
+
}>, {
|
|
1910
1957
|
theme: string;
|
|
1911
1958
|
pagination: boolean;
|
|
1912
1959
|
checkbox: boolean;
|