@wipco/sdui 0.45.0 → 0.46.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.
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { CSSProperties, ReactNode, ComponentType } from 'react';
|
|
3
|
-
import { S as SduiPage, a as SduiAction, b as SduiPropValue, c as SduiRule } from './types
|
|
4
|
-
export { d as SduiArgRef, e as SduiCalcRef, f as SduiChild, g as SduiIndexRef, h as SduiItemRef, i as SduiNode, j as SduiPageQuery, k as SduiScalar, l as SduiStateRef } from './types
|
|
3
|
+
import { S as SduiPage, a as SduiAction, b as SduiPropValue, c as SduiRule } from './types-C6cOUNPz.js';
|
|
4
|
+
export { d as SduiArgRef, e as SduiCalcRef, f as SduiChild, g as SduiIndexRef, h as SduiItemRef, i as SduiNode, j as SduiPageQuery, k as SduiScalar, l as SduiStateRef } from './types-C6cOUNPz.js';
|
|
5
5
|
import { S as SduiBoxProps, a as SduiContainerLayoutProps, b as SduiColumnsScale, c as SduiGapScale, d as SduiWeightScale, e as SduiTextAlignScale } from './layout-C3nRXMwb.js';
|
|
6
6
|
export { C as CHILD_LAYOUT_PROPS, L as LAYOUT_CSS, f as SduiAlignScale, g as SduiChildLayoutProps, h as SduiSizeScale, i as SduiSpanScale, j as childLayoutFrom, k as columnsClass, l as containerLayoutStyle, m as joinClass, n as mergeStyle, t as typographyStyle } from './layout-C3nRXMwb.js';
|
|
7
7
|
import { D as DatePickerProps, a as DateRangePickerProps, T as TimePickerProps } from './DatePicker-BK_jsV7i.js';
|
package/dist/index.js
CHANGED
|
@@ -1953,7 +1953,8 @@ function evaluateCalc(calc, resolved, resolve) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
case "split": {
|
|
1955
1955
|
const sep = typeof calc.sep === "string" ? calc.sep : ",";
|
|
1956
|
-
|
|
1956
|
+
let parts = String(first ?? "").split(sep);
|
|
1957
|
+
if (calc.trim === true) parts = parts.map((part) => part.trim());
|
|
1957
1958
|
if (calc.take === void 0) return parts;
|
|
1958
1959
|
const index = toNumber2(calc.take);
|
|
1959
1960
|
const at = index < 0 ? parts.length + index : index;
|
package/dist/meta.d.ts
CHANGED
|
@@ -129,6 +129,11 @@ interface SduiCalcRef {
|
|
|
129
129
|
sep?: string;
|
|
130
130
|
/** `split`에서 꺼낼 조각의 인덱스. 음수는 뒤에서부터 센다 */
|
|
131
131
|
take?: number;
|
|
132
|
+
/**
|
|
133
|
+
* `split`의 조각에서 앞뒤 공백을 턴다. 사람이 치는 쉼표 목록("S, A, B")이
|
|
134
|
+
* 이 연산의 주된 입력인데, 그 조각이 **키로 쓰이면** 공백 하나가 사고가 된다.
|
|
135
|
+
*/
|
|
136
|
+
trim?: boolean;
|
|
132
137
|
/** `sortBy`를 내림차순으로 */
|
|
133
138
|
desc?: boolean;
|
|
134
139
|
};
|