@awes-io/ui 2.67.0 → 2.69.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/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.69.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.68.1...@awes-io/ui@2.69.0) (2023-09-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * pkg ([3a0fb7b](https://github.com/awes-io/client/commit/3a0fb7bac1c9f2b41abbeebc866458ac9d6a06d9))
12
+
13
+
14
+ ### Features
15
+
16
+ * update ([ba17580](https://github.com/awes-io/client/commit/ba1758017437b2cb18109807ab4465f6be4a0ba1))
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.68.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.68.0...@awes-io/ui@2.68.1) (2023-09-04)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * change styles and code in some components ([1d998fb](https://github.com/awes-io/client/commit/1d998fb7d07587feead975fafc9dd9205e4372c4))
28
+
29
+
30
+
31
+
32
+
33
+ # [2.68.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.67.0...@awes-io/ui@2.68.0) (2023-08-25)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * checkbox value prop fixed ([783ff5a](https://github.com/awes-io/client/commit/783ff5ae3ccaa675910365eee1c134188465e556))
39
+
40
+
41
+ ### Features
42
+
43
+ * change partical props in checkbox and add object to value ([62e62d8](https://github.com/awes-io/client/commit/62e62d860a1b1ce5f818ade4750bf5440c4c328f))
44
+
45
+
46
+
47
+
48
+
6
49
  # [2.67.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.66.0...@awes-io/ui@2.67.0) (2023-08-24)
7
50
 
8
51
 
@@ -1,7 +1,7 @@
1
1
  .aw-page-menu-buttons {
2
2
  display: flex;
3
3
 
4
- &__expanded-btns + &__aw-context-menu {
4
+ &__aw-context-menu + &__expanded-btns {
5
5
  margin-left: theme('spacing.4', 1rem);
6
6
  }
7
7
 
@@ -57,6 +57,7 @@
57
57
 
58
58
  &--keyboard {
59
59
  max-height: 44vh;
60
+ height: fit-content;
60
61
  }
61
62
  }
62
63
 
@@ -45,7 +45,7 @@
45
45
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
46
46
  }
47
47
 
48
- &--partical {
48
+ &--partial {
49
49
  &:checked {
50
50
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.33089 10.8334H16.6667C16.8877 10.8334 17.0997 10.7456 17.256 10.5893C17.4123 10.4331 17.5001 10.2211 17.5001 10.0001C17.5001 9.77907 17.4123 9.56711 17.256 9.41083C17.0997 9.25455 16.8877 9.16675 16.6667 9.16675H3.33089C3.10988 9.16675 2.89792 9.25455 2.74164 9.41083C2.58536 9.56711 2.49756 9.77907 2.49756 10.0001C2.49756 10.2211 2.58536 10.4331 2.74164 10.5893C2.89792 10.7456 3.10988 10.8334 3.33089 10.8334Z'/%3e%3c/svg%3e");
51
51
  }
@@ -116,7 +116,7 @@
116
116
 
117
117
  &__label {
118
118
  @apply absolute opacity-50 truncate;
119
- max-width: 100%;
119
+ max-width: calc(100% - 0.75rem);
120
120
  left: theme('spacing.3', 0.75rem);
121
121
  top: theme('spacing.3', 0.75rem);
122
122
  transform-origin: left top;
@@ -11,9 +11,9 @@
11
11
  >
12
12
  <input
13
13
  class="aw-switch-field__element"
14
- :class="{ 'aw-switch-field__element--partical': partical }"
14
+ :class="{ 'aw-switch-field__element--partial': partial }"
15
15
  type="checkbox"
16
- v-bind="{ value, checked: isChecked, ...skipAttr, ...$attrs }"
16
+ v-bind="{ value: _valueAttr, checked: isChecked, ...skipAttr, ...$attrs }"
17
17
  :id="id || defaultId"
18
18
  :aria-describedby="errorText ? errorId : null"
19
19
  v-tooltip:top-start.show.prepend="errorTooltip"
@@ -32,6 +32,7 @@
32
32
  </template>
33
33
 
34
34
  <script>
35
+ import { isType } from 'rambdax'
35
36
  import FieldMixin from '@AwMixins/field'
36
37
  import ErrorMixin from '@AwMixins/error'
37
38
 
@@ -48,16 +49,16 @@ export default {
48
49
  props: {
49
50
  // Value that checkbox emits when checked
50
51
  value: {
51
- type: String,
52
+ type: [String, Number, Boolean, Object],
52
53
  default: 'on'
53
54
  },
54
55
 
55
56
  checked: {
56
- type: [Array, Object, Boolean, Number],
57
+ type: [Array, Boolean, Number],
57
58
  default: false
58
59
  },
59
60
 
60
- partical: Boolean
61
+ partial: Boolean
61
62
  },
62
63
 
63
64
  computed: {
@@ -65,6 +66,10 @@ export default {
65
66
  return null
66
67
  },
67
68
 
69
+ _valueAttr() {
70
+ return isType('Object', this.value) ? null : this.value
71
+ },
72
+
68
73
  wrapperClasses() {
69
74
  return {
70
75
  'fb-field': !this.$slots.default,
@@ -14,7 +14,7 @@
14
14
  class="w-6 text-left inline-block mr-1"
15
15
  >
16
16
  <slot name="icon">
17
- <AwIcon :name="icon" />
17
+ <AwIcon :name="icon" :size="iconSize" />
18
18
  </slot>
19
19
  </span>
20
20
  <slot>
@@ -58,6 +58,11 @@ export default {
58
58
  default: ''
59
59
  },
60
60
 
61
+ iconSize: {
62
+ type: [String, Number],
63
+ default: ''
64
+ },
65
+
61
66
  /**
62
67
  * Sets active state class
63
68
  */
@@ -72,9 +72,10 @@ export default {
72
72
  props: {
73
73
  theme: 'ghost',
74
74
  color: 'default',
75
- contentClass: 'p-2'
75
+ contentClass: 'p-2',
76
+ text: this.$t('More')
76
77
  },
77
- staticClass: 'w-10 h-10 ' + this.buttonClass,
78
+ staticClass: 'h-10 ' + this.buttonClass,
78
79
  attrs: {
79
80
  'data-arrow-focus': ''
80
81
  },
@@ -1,5 +1,23 @@
1
1
  <template>
2
2
  <div v-if="items && items.length" class="aw-page-menu-buttons">
3
+ <!-- context menu -->
4
+ <AwContextMenu
5
+ v-if="splitButtons.dropdown.length"
6
+ class="aw-page-menu-buttons__aw-context-menu"
7
+ vertical
8
+ :options="$options.dropdownOptions"
9
+ >
10
+ <AwDropdownButton
11
+ v-for="({ listeners, tooltip, iconSize, ...attrs },
12
+ i) in splitButtons.dropdown"
13
+ :key="i"
14
+ :iconSize="iconSize ? iconSize : 24"
15
+ v-tooltip="tooltip"
16
+ v-bind="attrs"
17
+ v-on="listeners"
18
+ />
19
+ </AwContextMenu>
20
+
3
21
  <!-- default buttons -->
4
22
  <AwFlow
5
23
  v-if="isExpanded && splitButtons.buttons.length"
@@ -17,23 +35,6 @@
17
35
  />
18
36
  </AwFlow>
19
37
 
20
- <!-- context menu -->
21
- <AwContextMenu
22
- v-if="splitButtons.dropdown.length"
23
- class="aw-page-menu-buttons__aw-context-menu"
24
- vertical
25
- :options="$options.dropdownOptions"
26
- >
27
- <AwDropdownButton
28
- v-for="({ listeners, tooltip, ...attrs },
29
- i) in splitButtons.dropdown"
30
- :key="i"
31
- v-tooltip="tooltip"
32
- v-bind="attrs"
33
- v-on="listeners"
34
- />
35
- </AwContextMenu>
36
-
37
38
  <!-- fixed button -->
38
39
  <div
39
40
  v-if="!isExpanded && splitButtons.fixed"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.67.0",
3
+ "version": "2.69.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -112,5 +112,5 @@
112
112
  "rollup-plugin-visualizer": "^2.6.0",
113
113
  "rollup-plugin-vue": "^5.0.1"
114
114
  },
115
- "gitHead": "7cd4ca56900a7c32fcab1516ee346528ec9eb9fe"
115
+ "gitHead": "4759d6f928a64de1452f06409a79b2a00fcbd735"
116
116
  }
package/readme.md CHANGED
@@ -1 +1 @@
1
- Awes.io/Ui 423
1
+ Awes.io/Ui 424