@a-vision-software/vue-input-components 1.2.11 → 1.2.13

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.
@@ -6,17 +6,9 @@
6
6
 
7
7
  <div class="navigation-test__section">
8
8
  <h2>Tiles Navigation (Default)</h2>
9
- <Navigation
10
- :items="defaultItems"
11
- type="tiles"
12
- orientation="horizontal"
13
- v-model:activeItem="activeDefaultItem"
14
- @item-click="handleDefaultClick"
15
- iconSize="large"
16
- height="90px"
17
- backgroundColor="#fff"
18
- activeBackgroundColor="var(--background-color)"
19
- />
9
+ <Navigation :items="defaultItems" type="tiles" orientation="horizontal" v-model:activeItem="activeDefaultItem"
10
+ @item-click="handleDefaultClick" iconSize="large" height="90px" backgroundColor="#fff"
11
+ activeBackgroundColor="var(--background-color)" />
20
12
  <div v-if="lastClicked.default" class="click-info">
21
13
  Last clicked: {{ lastClicked.default.url || `id:${lastClicked.default.id}` }}
22
14
  </div>
@@ -24,15 +16,8 @@
24
16
 
25
17
  <div class="navigation-test__section">
26
18
  <h2>Tabs Navigation (Mixed Alignment)</h2>
27
- <Navigation
28
- :items="mixedAlignmentItems"
29
- type="tiles"
30
- orientation="horizontal"
31
- v-model:activeItem="activeTabsItem"
32
- @item-click="handleTabsClick"
33
- height="2em"
34
- showBottomBorder
35
- />
19
+ <Navigation :items="mixedAlignmentItems" type="tiles" orientation="horizontal" v-model:activeItem="activeTabsItem"
20
+ @item-click="handleTabsClick" height="2em" showBottomBorder />
36
21
  <div v-if="lastClicked.tabs" class="click-info">
37
22
  Last clicked: {{ lastClicked.tabs.label }}
38
23
  <span v-if="lastClicked.tabs.alignment">({{ lastClicked.tabs.alignment }} aligned)</span>
@@ -41,46 +26,20 @@
41
26
 
42
27
  <div class="navigation-test__section">
43
28
  <h2>Dropdown Navigation (Vertical)</h2>
44
- <Navigation
45
- :items="dropdownItems"
46
- type="dropdowns"
47
- orientation="vertical"
48
- v-model:activeItem="activeDropdownItem"
49
- @item-click="handleDropdownClick"
50
- :showIcons="false"
51
- color="#805ad5"
52
- hoverColor="#6b46c1"
53
- activeColor="#553c9a"
54
- disabledColor="#b794f4"
55
- gap="0.5rem"
56
- padding="0.75rem 1rem"
57
- borderRadius="6px"
58
- />
29
+ <Navigation :items="dropdownItems" type="dropdowns" orientation="vertical" v-model:activeItem="activeDropdownItem"
30
+ @item-click="handleDropdownClick" :showIcons="false" color="#805ad5" hoverColor="#6b46c1" activeColor="#553c9a"
31
+ disabledColor="#b794f4" gap="0.5rem" padding="0.75rem 1rem" borderRadius="6px" />
59
32
  <div v-if="lastClicked.dropdown" class="click-info">
60
33
  Last clicked: {{ lastClicked.dropdown.label }}
61
- <span v-if="lastClicked.dropdown.children"
62
- >(has {{ lastClicked.dropdown.children.length }} children)</span
63
- >
34
+ <span v-if="lastClicked.dropdown.children">(has {{ lastClicked.dropdown.children.length }} children)</span>
64
35
  </div>
65
36
  </div>
66
37
 
67
38
  <div class="navigation-test__section">
68
39
  <h2>Custom Styled Navigation</h2>
69
- <Navigation
70
- :items="customItems"
71
- type="tiles"
72
- orientation="horizontal"
73
- v-model:activeItem="activeCustomItem"
74
- @item-click="handleCustomClick"
75
- :showIcons="false"
76
- color="#4a90e2"
77
- hoverColor="#357abd"
78
- activeColor="#2c5a8c"
79
- disabledColor="#a0c4e8"
80
- gap="1.5rem"
81
- padding="1rem 2rem"
82
- borderRadius="8px"
83
- />
40
+ <Navigation :items="customItems" type="tiles" orientation="horizontal" v-model:activeItem="activeCustomItem"
41
+ @item-click="handleCustomClick" :showIcons="false" color="#4a90e2" hoverColor="#357abd" activeColor="#2c5a8c"
42
+ disabledColor="#a0c4e8" gap="1.5rem" padding="1rem 2rem" borderRadius="8px" />
84
43
  <div v-if="lastClicked.custom" class="click-info">
85
44
  Last clicked: {{ lastClicked.custom.label }}
86
45
  <span v-if="lastClicked.custom.disabled">(disabled)</span>
@@ -129,7 +88,7 @@ const defaultItems: NavigationItem[] = [
129
88
  },
130
89
  {
131
90
  id: 'about',
132
- label: 'About',
91
+ label: 'About ahole lot of things',
133
92
  url: 'https://example.com',
134
93
  icon: 'info',
135
94
  alignment: 'right',