pds-dev-kit-web-test 2.7.513 → 2.7.514

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.
@@ -99,6 +99,12 @@ function Text(props) {
99
99
  return t('str_paid');
100
100
  }
101
101
  }
102
+ if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA.endsWith('Date')) {
103
+ var localtime = convertToLocalTime(value);
104
+ if (formatOption) {
105
+ return formatOption.formatter(localtime);
106
+ }
107
+ }
102
108
  if (formatOption) {
103
109
  return formatOption.formatter(value);
104
110
  }
@@ -152,7 +158,7 @@ function Text(props) {
152
158
  e.currentTarget.classList.add('hovered');
153
159
  }, onMouseLeave: function (e) {
154
160
  e.currentTarget.classList.remove('hovered');
155
- }, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")"), overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), (0, jsx_runtime_1.jsx)("a", __assign({ href: "images/my_photo_123.jpg", download: "\uD734\uAC00\uC0AC\uC9C4.jpg" }, { children: "\uC774\uBBF8\uC9C0 \uB2E4\uC6B4\uB85C\uB4DC" })), textSuffix] })) })) }))] }));
161
+ }, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")"), overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), textSuffix] })) })) }))] }));
156
162
  }
157
163
  exports.default = Text;
158
164
  function getTextStyles(props, device) {
@@ -245,3 +251,12 @@ function domstringToPlain(domstring, ellipsis, useEnter) {
245
251
  }
246
252
  return processedText;
247
253
  }
254
+ /**
255
+ * UTC 날짜 문자열을 로컬 타임 문자열로 변환합니다.
256
+ * @param utcString - '2022-07-29 00:55:03' 형태의 문자열
257
+ * @returns 로컬 시간으로 변환된 문자열
258
+ */
259
+ var convertToLocalTime = function (utcString) {
260
+ var date = new Date("".concat(utcString.replace(' ', 'T'), "Z"));
261
+ return date.toLocaleString();
262
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.513",
3
+ "version": "2.7.514",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",