pgo-ui 1.1.49 → 1.1.51
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/Radio-C0dJx-tu.js +4 -0
- package/dist/{index-HmqNPZr5.js → index-BmVSLeVv.js} +4248 -4235
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +36 -36
- package/dist/pgo-ui.css +1 -1
- package/package.json +1 -1
- package/src/components/pgo/DataTable.vue +9 -0
- package/src/components/pgo/forms/DynamicForm.vue +10 -1
- package/dist/Radio-B_-QJSkx.js +0 -4
package/package.json
CHANGED
|
@@ -959,6 +959,15 @@ const formatCellValue = (value, header) => {
|
|
|
959
959
|
if (header.format && typeof header.format === 'function') {
|
|
960
960
|
return header.format(value)
|
|
961
961
|
}
|
|
962
|
+
if (header.displayType === 'date' && value) {
|
|
963
|
+
const d = new Date(value)
|
|
964
|
+
if (!isNaN(d.getTime())) {
|
|
965
|
+
const dd = String(d.getDate()).padStart(2, '0')
|
|
966
|
+
const mm = String(d.getMonth() + 1).padStart(2, '0')
|
|
967
|
+
const yyyy = d.getFullYear()
|
|
968
|
+
return `${dd}-${mm}-${yyyy}`
|
|
969
|
+
}
|
|
970
|
+
}
|
|
962
971
|
return value ?? ''
|
|
963
972
|
}
|
|
964
973
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
</template>
|
|
135
135
|
|
|
136
136
|
<script setup>
|
|
137
|
-
import { ref, computed, watch, defineAsyncComponent, inject, reactive, onMounted, nextTick } from 'vue'
|
|
137
|
+
import { ref, computed, watch, defineAsyncComponent, inject, reactive, onMounted, onBeforeUnmount, nextTick } from 'vue'
|
|
138
138
|
import Form from './Form.vue';
|
|
139
139
|
import Modal from '../Modal.vue'
|
|
140
140
|
import { Banner, LabelField } from '../index'
|
|
@@ -1022,6 +1022,15 @@
|
|
|
1022
1022
|
dataChanged.value = true;
|
|
1023
1023
|
fetchData();
|
|
1024
1024
|
};
|
|
1025
|
+
|
|
1026
|
+
const onEscKey = (e) => {
|
|
1027
|
+
if (e.key === 'Escape' && open.value) {
|
|
1028
|
+
handleClose()
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
onMounted(() => document.addEventListener('keydown', onEscKey))
|
|
1032
|
+
onBeforeUnmount(() => document.removeEventListener('keydown', onEscKey))
|
|
1033
|
+
|
|
1025
1034
|
// Initialize on mount
|
|
1026
1035
|
initializeVariables();
|
|
1027
1036
|
initializeFormData();
|
package/dist/Radio-B_-QJSkx.js
DELETED