polarvo-layout 1.0.66 → 1.0.67

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": "polarvo-layout",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "type": "module",
5
5
  "author": "unigence <unigencelab@gmail.com>",
6
6
  "repository": {
@@ -79,6 +79,19 @@ function getPropsDefaults(props) {
79
79
  );
80
80
  }
81
81
 
82
+ function formatElDate(createdAt) {
83
+ if (!createdAt) return null;
84
+
85
+ const d = new Date(createdAt);
86
+ const yy = String(d.getFullYear()).slice(-2);
87
+ const mm = String(d.getMonth() + 1).padStart(2, '0');
88
+ const dd = String(d.getDate()).padStart(2, '0');
89
+ const hh = String(d.getHours()).padStart(2, '0');
90
+ const min = String(d.getMinutes()).padStart(2, '0');
91
+
92
+ return `${yy}${mm}${dd}_${hh}:${min}`;
93
+ }
94
+
82
95
  // 기본 요소 목록에서 제외할 컴포넌트
83
96
  const EXCLUDED_ELEMENTS = [
84
97
  'button',
@@ -121,7 +134,7 @@ function buildCustomElements() {
121
134
 
122
135
  cachedCustomElements = props.customElements.map((el) => {
123
136
  const { elName, type, mode, position, size, section, isLocked, createdAt, ...propDefaults } = el;
124
- const elDate = createdAt ? createdAt.split('T')[0] : null;
137
+ const elDate = formatElDate(createdAt);
125
138
 
126
139
  return {
127
140
  label: elDate ? `${type}_${elDate}` : type,