bfg-common 1.3.280 → 1.3.282

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,39 +1,39 @@
1
- <template>
2
- <common-modals-confirmation
3
- :headline="props.title"
4
- :sub-title="props.subTitle"
5
- @hide-modal="emits('hide')"
6
- @confirm="emits('confirm')"
7
- >
8
- <template #content>
9
- <div class="flex-align-center">
10
- <atoms-the-icon
11
- name="exclamation-triangle"
12
- class="confirm-modal__icon"
13
- />
14
- <slot />
15
- </div>
16
- </template>
17
- </common-modals-confirmation>
18
- </template>
19
-
20
- <script lang="ts" setup>
21
- const props = defineProps<{
22
- title: string
23
- subTitle: string
24
- }>()
25
-
26
- const emits = defineEmits<{
27
- (event: 'hide'): void
28
- (event: 'confirm'): void
29
- }>()
30
- </script>
31
-
32
- <style lang="scss" scoped>
33
- .confirm-modal__icon {
34
- min-width: 40px;
35
- height: 40px;
36
- margin-right: 20px;
37
- fill: #c27b00;
38
- }
39
- </style>
1
+ <template>
2
+ <common-modals-confirmation
3
+ :headline="props.title"
4
+ :sub-title="props.subTitle"
5
+ @hide-modal="emits('hide')"
6
+ @confirm="emits('confirm')"
7
+ >
8
+ <template #content>
9
+ <div class="flex-align-center">
10
+ <atoms-the-icon
11
+ name="exclamation-triangle"
12
+ class="confirm-modal__icon"
13
+ />
14
+ <slot />
15
+ </div>
16
+ </template>
17
+ </common-modals-confirmation>
18
+ </template>
19
+
20
+ <script lang="ts" setup>
21
+ const props = defineProps<{
22
+ title: string
23
+ subTitle: string
24
+ }>()
25
+
26
+ const emits = defineEmits<{
27
+ (event: 'hide'): void
28
+ (event: 'confirm'): void
29
+ }>()
30
+ </script>
31
+
32
+ <style lang="scss" scoped>
33
+ .confirm-modal__icon {
34
+ min-width: 40px;
35
+ height: 40px;
36
+ margin-right: 20px;
37
+ fill: #c27b00;
38
+ }
39
+ </style>
@@ -0,0 +1,15 @@
1
+ export const useDeepClone = (obj: any): any => {
2
+ if (Array.isArray(obj)) {
3
+ return obj.map((item) => useDeepClone(item))
4
+ } else if (obj && typeof obj === 'object') {
5
+ const clone: any = {}
6
+ for (const key in obj) {
7
+ if (obj.hasOwnProperty(key)) {
8
+ clone[key] = useDeepClone(obj[key])
9
+ }
10
+ }
11
+ return clone
12
+ } else {
13
+ return obj
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.280",
4
+ "version": "1.3.282",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -16,7 +16,7 @@
16
16
  "@vueuse/core": "^10.1.2",
17
17
  "@vueuse/nuxt": "^10.1.2",
18
18
  "eslint-config-prettier": "^8.5.0",
19
- "nuxt": "^3.11.2",
19
+ "nuxt": "3.11.2",
20
20
  "prettier": "2.7.1",
21
21
  "sass": "^1.54.9",
22
22
  "sass-loader": "^10.3.1",