@wipco/sdui 0.12.0 → 0.12.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.
@@ -1,4 +1,4 @@
1
- import { includesLooseSearch } from './chunk-CDYIUQAD.js';
1
+ import { includesLooseSearch } from './chunk-QIDMPWZH.js';
2
2
  import { Icon, Button, Input, Spinner } from './chunk-B5JTXYDB.js';
3
3
  import { boxed } from './chunk-SAN4IX6N.js';
4
4
  import { useId, useRef, useState, useEffect, useMemo } from 'react';
@@ -66,10 +66,16 @@ function normalizeSearchOptions(options, valueKey, labelKey) {
66
66
  function normalizeSearchFields(fields) {
67
67
  return fields.map((field) => {
68
68
  if (field.type === "select") {
69
- return { ...field, options: normalizeSearchOptions(field.options, field.valueKey, field.labelKey) };
69
+ if (!field.valueKey && !field.labelKey) return field;
70
+ return {
71
+ ...field,
72
+ options: normalizeSearchOptions(field.options, field.valueKey, field.labelKey),
73
+ valueKey: void 0,
74
+ labelKey: void 0
75
+ };
70
76
  }
71
77
  if (field.type === "cascading" && field.tree) {
72
- return { ...field, options: buildCascadingTree(field.options, field.tree) };
78
+ return { ...field, options: buildCascadingTree(field.options, field.tree), tree: void 0 };
73
79
  }
74
80
  return field;
75
81
  });
@@ -1,4 +1,4 @@
1
- import { includesLooseSearch } from './chunk-CDYIUQAD.js';
1
+ import { includesLooseSearch } from './chunk-QIDMPWZH.js';
2
2
  import { Button, Dialog, Input, Tag, Checkbox } from './chunk-B5JTXYDB.js';
3
3
  import { boxed } from './chunk-SAN4IX6N.js';
4
4
  import React, { useMemo, useState, useEffect } from 'react';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DEV, HoistedStyle, isSafeNavigationTarget, useSduiAdapter, hostFetchOf, DateRangePicker, DatePicker, useSduiSandbox, resolveAdapter, assetResolverOf, SduiAdapterContext } from './chunk-5A7BWIGN.js';
2
2
  export { DatePicker, DateRangePicker, defaultAdapter, useSduiAssetResolver, useSduiSandbox } from './chunk-5A7BWIGN.js';
3
- import { normalizeSearchFields, searchValuesFromParams, splitMultiValue, includesLooseSearch, cascadingValuePaths, SearchToolbar, searchFieldKeys, Popover } from './chunk-CDYIUQAD.js';
4
- export { SearchToolbar, cascadingValuePaths, cleanSearchValues, includesLooseSearch, joinMultiValue, normalizeSearchText, searchFieldKeys, searchValuesFromParams, splitMultiValue } from './chunk-CDYIUQAD.js';
3
+ import { normalizeSearchFields, searchValuesFromParams, splitMultiValue, includesLooseSearch, cascadingValuePaths, SearchToolbar, searchFieldKeys, Popover } from './chunk-QIDMPWZH.js';
4
+ export { SearchToolbar, cascadingValuePaths, cleanSearchValues, includesLooseSearch, joinMultiValue, normalizeSearchText, searchFieldKeys, searchValuesFromParams, splitMultiValue } from './chunk-QIDMPWZH.js';
5
5
  import { EmptyState, Button, Checkbox, SegmentedControl, Spinner, Select, Pagination, Icon, Card, Badge, ProgressBar, Tag, Toast, Textarea, Tabs, Table, Switch, StatCard, Input, IconButton, Field, Alert, warnOnce, Dialog } from './chunk-B5JTXYDB.js';
6
6
  export { Alert, Avatar, Badge, Breadcrumb, Button, Card, Checkbox, Dialog, EmptyState, Field, Icon, IconButton, Input, Pagination, ProgressBar, Radio, SegmentedControl, Select, SidebarNav, Spinner, StatCard, Switch, Table, Tabs, Tag, Textarea, Toast, Tooltip } from './chunk-B5JTXYDB.js';
7
7
  import { boxed, mergeStyle, containerLayoutStyle, joinClass, columnsClass, typographyStyle, LAYOUT_CSS, childLayoutFrom, CHILD_LAYOUT_PROPS } from './chunk-SAN4IX6N.js';
package/dist/styles.css CHANGED
@@ -947,7 +947,11 @@
947
947
  z-index: var(--wp-z-dropdown);
948
948
  }
949
949
  .erp-popover--left { right: auto; left: 0; }
950
- .erp-popover__body { max-height: 60vh; overflow: auto; padding: var(--wp-space-4); }
950
+ /* 내부 스크롤을 두지 않는다 — 낮은 창에서 60vh 캡이 필드 두 줄짜리 패널마저 잘라
951
+ 컨트롤이 반쯤 걸친 채 스크롤됐다(실사용 지적, 법인차 관리). 패널은 내용만큼 크고,
952
+ 화면보다 길면 페이지가 스크롤된다. 정말 긴 목록(분류 175종)은 목록 자신이
953
+ 스크롤한다(SearchToolbar 의 옵션 목록 max-height). */
954
+ .erp-popover__body { padding: var(--wp-space-4); }
951
955
  .erp-popover__foot {
952
956
  display: flex; align-items: center; justify-content: space-between; gap: var(--wp-space-2);
953
957
  padding: var(--wp-space-3); border-top: var(--wp-border-w) solid var(--wp-divider);
@@ -1,4 +1,4 @@
1
- export { AutocompleteField, toAutocompleteOptions } from '../chunk-PEDU6LQK.js';
2
- import '../chunk-CDYIUQAD.js';
1
+ export { AutocompleteField, toAutocompleteOptions } from '../chunk-PBGYAVQZ.js';
2
+ import '../chunk-QIDMPWZH.js';
3
3
  import '../chunk-B5JTXYDB.js';
4
4
  import '../chunk-SAN4IX6N.js';
@@ -1,4 +1,4 @@
1
- export { SearchableMultiPicker } from '../chunk-4TS2N5KU.js';
2
- import '../chunk-CDYIUQAD.js';
1
+ export { SearchableMultiPicker } from '../chunk-UA5CT24N.js';
2
+ import '../chunk-QIDMPWZH.js';
3
3
  import '../chunk-B5JTXYDB.js';
4
4
  import '../chunk-SAN4IX6N.js';
@@ -1,5 +1,5 @@
1
- import { SearchableMultiPicker } from '../chunk-4TS2N5KU.js';
2
- export { SearchableMultiPicker } from '../chunk-4TS2N5KU.js';
1
+ import { SearchableMultiPicker } from '../chunk-UA5CT24N.js';
2
+ export { SearchableMultiPicker } from '../chunk-UA5CT24N.js';
3
3
  import { SecureScreen } from '../chunk-4CZJF5PR.js';
4
4
  export { SecureScreen } from '../chunk-4CZJF5PR.js';
5
5
  import { StackedMeter } from '../chunk-BMZKZGJF.js';
@@ -32,8 +32,8 @@ import { PeriodFilter } from '../chunk-WJEGCCPY.js';
32
32
  export { PeriodFilter } from '../chunk-WJEGCCPY.js';
33
33
  import { PrintSheet } from '../chunk-JWYBFODH.js';
34
34
  export { PrintSheet } from '../chunk-JWYBFODH.js';
35
- export { AutocompleteField, toAutocompleteOptions } from '../chunk-PEDU6LQK.js';
36
- import '../chunk-CDYIUQAD.js';
35
+ export { AutocompleteField, toAutocompleteOptions } from '../chunk-PBGYAVQZ.js';
36
+ import '../chunk-QIDMPWZH.js';
37
37
  import { ColumnBoard } from '../chunk-VK6KWB65.js';
38
38
  export { ColumnBoard } from '../chunk-VK6KWB65.js';
39
39
  import { DiffView } from '../chunk-4IRLQWQC.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipco/sdui",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "WIPCO 서버 주도 UI(SDUI) 렌더러 — JSON 페이지 스펙을 React 컴포넌트로 렌더링",
5
5
  "keywords": [
6
6
  "sdui",