@kizmann/nano-ui 1.0.0 → 1.0.1
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/nano-ui.css +1 -0
- package/dist/nano-ui.js +4 -0
- package/dist/nano-ui.js.map +1 -0
- package/dist/themes/dark.css +1 -0
- package/dist/themes/light.css +1 -0
- package/package.json +7 -1
- package/.github/workflows/compile-deploy-publish.yml +0 -65
- package/assets/nano-ui-dark.svg +0 -19
- package/assets/nano-ui-light.svg +0 -19
- package/assets/pico-js-dark.svg +0 -19
- package/assets/pico-js-light.svg +0 -19
- package/babel.config.js +0 -17
- package/demos/builder.html +0 -411
- package/demos/button/index.html +0 -129
- package/demos/cascader/index.html +0 -127
- package/demos/chart/index.html +0 -53
- package/demos/checkbox/index.html +0 -97
- package/demos/config/index.html +0 -95
- package/demos/confirm/index.html +0 -78
- package/demos/datepicker/index.html +0 -69
- package/demos/draggable/index.html +0 -127
- package/demos/form/index.html +0 -83
- package/demos/form.html +0 -462
- package/demos/grid.html +0 -321
- package/demos/input/index.html +0 -100
- package/demos/map/index.html +0 -81
- package/demos/matrix/index.html +0 -104
- package/demos/modal/index.html +0 -98
- package/demos/overview.html +0 -1468
- package/demos/paginator/index.html +0 -58
- package/demos/popover/index.html +0 -103
- package/demos/radio/index.html +0 -71
- package/demos/resizer/index.html +0 -106
- package/demos/scrollbar.html +0 -328
- package/demos/select/index.html +0 -174
- package/demos/select.html +0 -164
- package/demos/style.css +0 -50
- package/demos/switch/index.html +0 -69
- package/demos/table/index.html +0 -126
- package/demos/tabs/index.html +0 -110
- package/demos/tabs.html +0 -293
- package/demos/textarea/index.html +0 -77
- package/demos/timepicker/index.html +0 -66
- package/demos/transfer/index.html +0 -88
- package/demos/wysiwyg/index.html +0 -49
- package/docs/README.md +0 -34
- package/docs/_sidebar.md +0 -37
- package/docs/files/data/draggable.md +0 -143
- package/docs/files/data/map.md +0 -1
- package/docs/files/data/paginator.md +0 -23
- package/docs/files/data/table.md +0 -247
- package/docs/files/data/virtualscroller.md +0 -2
- package/docs/files/form/button.md +0 -131
- package/docs/files/form/cascader.md +0 -164
- package/docs/files/form/checkbox.md +0 -179
- package/docs/files/form/datepicker.md +0 -78
- package/docs/files/form/form.md +0 -52
- package/docs/files/form/input.md +0 -90
- package/docs/files/form/radio.md +0 -150
- package/docs/files/form/select.md +0 -202
- package/docs/files/form/switch.md +0 -98
- package/docs/files/form/textarea.md +0 -102
- package/docs/files/form/timepicker.md +0 -78
- package/docs/files/form/transfer.md +0 -30
- package/docs/files/others/config.md +0 -261
- package/docs/files/others/confirm.md +0 -51
- package/docs/files/others/drawer.md +0 -32
- package/docs/files/others/loader.md +0 -22
- package/docs/files/others/map.md +0 -32
- package/docs/files/others/modal.md +0 -32
- package/docs/files/others/notification.md +0 -52
- package/docs/files/others/popover.md +0 -36
- package/docs/files/others/resizer.md +0 -8
- package/docs/files/others/scrollbar.md +0 -8
- package/docs/files/others/tabs.md +0 -32
- package/docs/index.template.html +0 -76
- package/docs/src/js/backup.js +0 -128
- package/docs/src/js/helper/item-helper.js +0 -0
- package/docs/src/js/index.js +0 -21
- package/docs/src/js/plugin/title-plugin.js +0 -0
- package/docs/src/js/plugin/vue-demo-plugin.js +0 -97
- package/docs/src/js/theme/basic.js +0 -31
- package/docs/src/js/theme/docsify.js +0 -11
- package/docs/src/scss/index-dark.scss +0 -3
- package/docs/src/scss/index-light.scss +0 -3
- package/docs/src/scss/index.scss +0 -15
- package/docs/src/scss/mixins/base.scss +0 -14
- package/docs/src/scss/mixins/grid.scss +0 -213
- package/docs/src/scss/mixins/media.scss +0 -35
- package/docs/src/scss/mixins/space.scss +0 -61
- package/docs/src/scss/root/vars-dark.scss +0 -15
- package/docs/src/scss/root/vars-light.scss +0 -15
- package/docs/src/scss/root/vars.scss +0 -110
- package/docs/src/scss/theme/default.scss +0 -123
- package/docs/src/scss/theme/header.scss +0 -147
- package/docs/src/scss/theme/layout.scss +0 -186
- package/docs/src/scss/theme/loader.scss +0 -63
- package/docs/src/scss/theme/markdown.scss +0 -79
- package/docs/src/scss/theme/navigation.scss +0 -58
- package/docs/src/scss/theme/progress.scss +0 -9
- package/docs/src/scss/theme/search.scss +0 -119
- package/docs/src/scss/theme/syntax.scss +0 -142
- package/docs/src/scss/theme/table.scss +0 -63
- package/favicon/apple-touch-icon.png +0 -0
- package/favicon/favicon-96x96.png +0 -0
- package/favicon/favicon.ico +0 -0
- package/favicon/favicon.svg +0 -3
- package/favicon/site.webmanifest +0 -21
- package/favicon/web-app-manifest-192x192.png +0 -0
- package/favicon/web-app-manifest-512x512.png +0 -0
- package/mix-manifest.json +0 -4
- package/postcss.config.js +0 -14
- package/webpack.config.js +0 -211
- package/webservy.json +0 -8
- /package/{.nojekyll → dist/.ignore.js} +0 -0
@@ -1,261 +0,0 @@
|
|
1
|
-
|
2
|
-
# pi.Arr Class
|
3
|
-
|
4
|
-
A lightweight utility class for working with arrays.
|
5
|
-
|
6
|
-
```js
|
7
|
-
import { Arr } from "@kizmann/pico-js";
|
8
|
-
```
|
9
|
-
|
10
|
-
<hr>
|
11
|
-
|
12
|
-
### Arr.make(count)
|
13
|
-
Creates an array of a given count filled with incrementing integers starting from 1.
|
14
|
-
|
15
|
-
```js
|
16
|
-
Arr.make(3);
|
17
|
-
// => [1, 2, 3]
|
18
|
-
```
|
19
|
-
|
20
|
-
**Arguments:**
|
21
|
-
count `Int`: The number of elements in the new array.
|
22
|
-
|
23
|
-
**Returns:**
|
24
|
-
`Array<Int>`: An array of integers `[1, 2, ..., count]`.
|
25
|
-
|
26
|
-
<hr>
|
27
|
-
|
28
|
-
### Arr.all(arr)
|
29
|
-
Ensures the input is always returned as an array.
|
30
|
-
|
31
|
-
```js
|
32
|
-
Arr.all(5);
|
33
|
-
// => [5]
|
34
|
-
|
35
|
-
Arr.all([1, 2]);
|
36
|
-
// => [1, 2]
|
37
|
-
```
|
38
|
-
|
39
|
-
**Arguments:**
|
40
|
-
arr `Any`: The value to wrap in an array if it isn't already.
|
41
|
-
|
42
|
-
**Returns:**
|
43
|
-
`Array`: The original array or a single-element array.
|
44
|
-
|
45
|
-
<hr>
|
46
|
-
|
47
|
-
### Arr.get(arr, index, fallback = null)
|
48
|
-
Returns the value at a given index or a fallback if it doesn't exist.
|
49
|
-
|
50
|
-
```js
|
51
|
-
Arr.get([1, 2, 3], 1);
|
52
|
-
// => 2
|
53
|
-
|
54
|
-
Arr.get([1, 2, 3], 5, null);
|
55
|
-
// => null
|
56
|
-
```
|
57
|
-
|
58
|
-
**Arguments:**
|
59
|
-
arr `Array`: The array to query.
|
60
|
-
index `Int`: The index to access.
|
61
|
-
fallback `Any`: Value returned if the index is out of bounds.
|
62
|
-
|
63
|
-
**Returns:**
|
64
|
-
`Any`: The element at the index or the fallback.
|
65
|
-
|
66
|
-
<hr>
|
67
|
-
|
68
|
-
### Arr.set(arr, index, value)
|
69
|
-
Sets a value at the specified index of the array.
|
70
|
-
|
71
|
-
```js
|
72
|
-
Arr.set([0, 2, 44], 1, 42);
|
73
|
-
// => [0, 42, 44]
|
74
|
-
```
|
75
|
-
|
76
|
-
**Arguments:**
|
77
|
-
arr `Array`: The array to modify.
|
78
|
-
index `Int`: The index to set.
|
79
|
-
value `Any`: The value to assign.
|
80
|
-
|
81
|
-
**Returns:**
|
82
|
-
`Any`: The assigned value.
|
83
|
-
|
84
|
-
<hr>
|
85
|
-
|
86
|
-
### Arr.first(arr, fallback = null)
|
87
|
-
Gets the first element of the array or a fallback.
|
88
|
-
|
89
|
-
```js
|
90
|
-
Arr.first([10, 20]);
|
91
|
-
// => 10
|
92
|
-
|
93
|
-
Arr.first([], null);
|
94
|
-
// => null
|
95
|
-
```
|
96
|
-
|
97
|
-
**Arguments:**
|
98
|
-
arr `Array`: The array to query.
|
99
|
-
fallback `Any`: Returned if array is empty or invalid.
|
100
|
-
|
101
|
-
**Returns:**
|
102
|
-
`Any`: First element or fallback.
|
103
|
-
|
104
|
-
<hr>
|
105
|
-
|
106
|
-
### Arr.second(arr, fallback = null)
|
107
|
-
Gets the second element of the array, falling back to the first or a fallback.
|
108
|
-
|
109
|
-
```js
|
110
|
-
Arr.second([10, 20]);
|
111
|
-
// => 20
|
112
|
-
|
113
|
-
Arr.second([10], 'none');
|
114
|
-
// => 10
|
115
|
-
```
|
116
|
-
|
117
|
-
**Arguments:**
|
118
|
-
arr `Array`: The array to query.
|
119
|
-
fallback `Any`: Returned if array is empty or invalid.
|
120
|
-
|
121
|
-
**Returns:**
|
122
|
-
`Any`: Second element or fallback.
|
123
|
-
|
124
|
-
<hr>
|
125
|
-
|
126
|
-
### Arr.third(arr, fallback = null)
|
127
|
-
Gets the third element, or falls back to second, first, or fallback.
|
128
|
-
|
129
|
-
```js
|
130
|
-
Arr.third([1, 2, 3]);
|
131
|
-
// => 3
|
132
|
-
|
133
|
-
Arr.third([1], 'none');
|
134
|
-
// => 1
|
135
|
-
```
|
136
|
-
|
137
|
-
**Arguments:**
|
138
|
-
arr `Array`: The array to query.
|
139
|
-
fallback `Any`: Returned if array is empty or invalid.
|
140
|
-
|
141
|
-
**Returns:**
|
142
|
-
`Any`: Third element or fallback.
|
143
|
-
|
144
|
-
<hr>
|
145
|
-
|
146
|
-
### Arr.last(arr, fallback = null)
|
147
|
-
Gets the last element of the array.
|
148
|
-
|
149
|
-
```js
|
150
|
-
Arr.last([5, 6, 7]);
|
151
|
-
// => 7
|
152
|
-
```
|
153
|
-
|
154
|
-
**Arguments:**
|
155
|
-
arr `Array`: The array to query.
|
156
|
-
fallback `Any`: Returned if array is empty or invalid.
|
157
|
-
|
158
|
-
**Returns:**
|
159
|
-
`Any`: Last element or fallback.
|
160
|
-
|
161
|
-
<hr>
|
162
|
-
|
163
|
-
### Arr.prepend(arr, val)
|
164
|
-
Adds a value to the beginning of an array.
|
165
|
-
|
166
|
-
```js
|
167
|
-
Arr.prepend([2, 3], 1);
|
168
|
-
// => [1, 2, 3]
|
169
|
-
```
|
170
|
-
|
171
|
-
**Arguments:**
|
172
|
-
arr `Array`: The array to modify.
|
173
|
-
val `Any`: The value to prepend.
|
174
|
-
|
175
|
-
**Returns:**
|
176
|
-
`Array`: The updated array.
|
177
|
-
|
178
|
-
<hr>
|
179
|
-
|
180
|
-
### Arr.append(arr, val)
|
181
|
-
Adds a value to the end of an array.
|
182
|
-
|
183
|
-
```js
|
184
|
-
Arr.append([1, 2], 3);
|
185
|
-
// => [1, 2, 3]
|
186
|
-
```
|
187
|
-
|
188
|
-
**Arguments:**
|
189
|
-
arr `Array`: The array to modify.
|
190
|
-
val `Any`: The value to append.
|
191
|
-
|
192
|
-
**Returns:**
|
193
|
-
`Array`: The updated array.
|
194
|
-
|
195
|
-
<hr>
|
196
|
-
|
197
|
-
### Arr.sort(obj, key)
|
198
|
-
Sorts an object of keyed values by a key or a custom function.
|
199
|
-
|
200
|
-
```js
|
201
|
-
Arr.sort([{ val: 2 }, { val: 1 }], 'val');
|
202
|
-
// => [{ val: 1, _key: 1 }, { val: 2, _key: 0 }]
|
203
|
-
```
|
204
|
-
|
205
|
-
**Arguments:**
|
206
|
-
obj `Object`: The object to sort.
|
207
|
-
key `String|Function`: A key to sort by or a custom comparison function.
|
208
|
-
|
209
|
-
**Returns:**
|
210
|
-
`Array`: Sorted array of values, each augmented with `_key`.
|
211
|
-
|
212
|
-
<hr>
|
213
|
-
|
214
|
-
### Arr.sortString(obj, key)
|
215
|
-
Sorts an object’s values alphabetically by a string key.
|
216
|
-
|
217
|
-
```js
|
218
|
-
Arr.sortString([{ name: "Zoe" }, { name: "Anna" }], 'name');
|
219
|
-
// => [{ name: "Anna", _key: 1 }, { name: "Zoe", _key: 0 }]
|
220
|
-
```
|
221
|
-
|
222
|
-
**Arguments:**
|
223
|
-
obj `Object`: The object to sort.
|
224
|
-
key `String`: Key to sort values by (case-insensitive).
|
225
|
-
|
226
|
-
**Returns:**
|
227
|
-
`Array`: Alphabetically sorted values.
|
228
|
-
|
229
|
-
<hr>
|
230
|
-
|
231
|
-
### Arr.filter(arr, filter)
|
232
|
-
Filters array values by a function, object, or array.
|
233
|
-
|
234
|
-
```js
|
235
|
-
Arr.filter([1, 2, 3, 4], n => n > 2);
|
236
|
-
// => [3, 4]
|
237
|
-
```
|
238
|
-
|
239
|
-
**Arguments:**
|
240
|
-
arr `Array`: The array to filter.
|
241
|
-
filter `Function|Object|Array`: Filter logic.
|
242
|
-
|
243
|
-
**Returns:**
|
244
|
-
`Array`: Filtered array.
|
245
|
-
|
246
|
-
<hr>
|
247
|
-
|
248
|
-
### Arr.filterIndex(arr, filter)
|
249
|
-
Gets indexes of values matching a filter.
|
250
|
-
|
251
|
-
```js
|
252
|
-
Arr.filterIndex([1, 2, 3, 4], n => n > 2);
|
253
|
-
// => ['2', '3']
|
254
|
-
```
|
255
|
-
|
256
|
-
**Arguments:**
|
257
|
-
arr `Array`: The array to filter.
|
258
|
-
filter `Function|Object|Array`: Filter logic.
|
259
|
-
|
260
|
-
**Returns:**
|
261
|
-
`Array<Number>`: Array of indexes matching the condition.
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Confirm
|
2
|
-
Confirm y0.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div class="grid grid--row grid--wrap grid--20-20">
|
8
|
-
<n-button class="col--1-1" type="primary" :plain="true">Primary</n-button>
|
9
|
-
<n-confirm type="primary" @abort="abort" @confirm="confirm">
|
10
|
-
Confirmtext!
|
11
|
-
</n-confirm>
|
12
|
-
<n-button class="col--1-1" type="success" :plain="true">Success</n-button>
|
13
|
-
<n-confirm type="success" @abort="abort" @confirm="confirm">
|
14
|
-
Confirmtext!
|
15
|
-
</n-confirm>
|
16
|
-
<n-button class="col--1-1" type="warning" :plain="true">Warning</n-button>
|
17
|
-
<n-confirm type="warning" @abort="abort" @confirm="confirm">
|
18
|
-
Confirmtext!
|
19
|
-
</n-confirm>
|
20
|
-
<n-button class="col--1-1" type="danger" :plain="true">Danger</n-button>
|
21
|
-
<n-confirm type="danger" @abort="abort" @confirm="confirm">
|
22
|
-
Confirmtext!
|
23
|
-
</n-confirm>
|
24
|
-
<n-button class="col--1-1" type="info" :plain="true">Info</n-button>
|
25
|
-
<n-confirm type="info" @abort="abort" @confirm="confirm">
|
26
|
-
Confirmtext!
|
27
|
-
</n-confirm>
|
28
|
-
|
29
|
-
</div>
|
30
|
-
</template>
|
31
|
-
<script>
|
32
|
-
export default {
|
33
|
-
methods: {
|
34
|
-
abort()
|
35
|
-
{
|
36
|
-
window.alert('abort');
|
37
|
-
},
|
38
|
-
confirm()
|
39
|
-
{
|
40
|
-
window.alert('confirm');
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
</script>
|
45
|
-
```
|
46
|
-
|
47
|
-
### Properties
|
48
|
-
coming soon
|
49
|
-
|
50
|
-
### Events
|
51
|
-
coming soon
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# Modal
|
2
|
-
Modal you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div>
|
8
|
-
<n-button>Open</n-button>
|
9
|
-
<n-modal ref="modal">
|
10
|
-
<div slot="header">
|
11
|
-
<h3>Hi</h3>
|
12
|
-
</div>
|
13
|
-
<div>
|
14
|
-
<p>Im the content</p>
|
15
|
-
</div>
|
16
|
-
<div slot="footer">
|
17
|
-
<n-button @click="$refs.modal.close()">Ok!</n-button>
|
18
|
-
</div>
|
19
|
-
</n-modal>
|
20
|
-
</div>
|
21
|
-
</template>
|
22
|
-
<script>
|
23
|
-
export default {
|
24
|
-
}
|
25
|
-
</script>
|
26
|
-
```
|
27
|
-
|
28
|
-
### Properties
|
29
|
-
coming soon
|
30
|
-
|
31
|
-
### Events
|
32
|
-
coming soon
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# Loader
|
2
|
-
Loader you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<n-loader :visible="true" style="background: #eee; width: 100%; height: 500px; line-height: 500px; text-align: center; border-radius: 3px;">
|
8
|
-
Im the content
|
9
|
-
</n-loader>
|
10
|
-
</template>
|
11
|
-
<script>
|
12
|
-
export default {
|
13
|
-
//
|
14
|
-
}
|
15
|
-
</script>
|
16
|
-
```
|
17
|
-
|
18
|
-
### Properties
|
19
|
-
coming soon
|
20
|
-
|
21
|
-
### Events
|
22
|
-
coming soon
|
package/docs/files/others/map.md
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Modal
|
2
|
-
Modal you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div>
|
8
|
-
<n-button>Open</n-button>
|
9
|
-
<n-modal ref="modal">
|
10
|
-
<div slot="header">
|
11
|
-
<h3>Hi</h3>
|
12
|
-
</div>
|
13
|
-
<div>
|
14
|
-
<p>Im the content</p>
|
15
|
-
</div>
|
16
|
-
<div slot="footer">
|
17
|
-
<n-button @click="$refs.modal.close()">Ok!</n-button>
|
18
|
-
</div>
|
19
|
-
</n-modal>
|
20
|
-
</div>
|
21
|
-
</template>
|
22
|
-
<script>
|
23
|
-
export default {
|
24
|
-
}
|
25
|
-
</script>
|
26
|
-
```
|
27
|
-
|
28
|
-
### Properties
|
29
|
-
coming soon
|
30
|
-
|
31
|
-
### Events
|
32
|
-
coming soon
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# Modal
|
2
|
-
Modal you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div>
|
8
|
-
<n-button>Open</n-button>
|
9
|
-
<n-modal ref="modal">
|
10
|
-
<div slot="header">
|
11
|
-
<h3>Hi</h3>
|
12
|
-
</div>
|
13
|
-
<div>
|
14
|
-
<p>Im the content</p>
|
15
|
-
</div>
|
16
|
-
<div slot="footer">
|
17
|
-
<n-button @click="$refs.modal.close()">Ok!</n-button>
|
18
|
-
</div>
|
19
|
-
</n-modal>
|
20
|
-
</div>
|
21
|
-
</template>
|
22
|
-
<script>
|
23
|
-
export default {
|
24
|
-
}
|
25
|
-
</script>
|
26
|
-
```
|
27
|
-
|
28
|
-
### Properties
|
29
|
-
coming soon
|
30
|
-
|
31
|
-
### Events
|
32
|
-
coming soon
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# Notification
|
2
|
-
Notification pop up box.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div class="grid grid--row grid--wrap grid--20-20">
|
8
|
-
<n-button class="col--1-1" type="primary" :plain="true" @click="showPrimary">Primary</n-button>
|
9
|
-
|
10
|
-
<n-button class="col--1-1" type="success" :plain="true" @click="showSuccess">Success</n-button>
|
11
|
-
|
12
|
-
<n-button class="col--1-1" type="warning" :plain="true" @click="showWarning">Warning</n-button>
|
13
|
-
|
14
|
-
<n-button class="col--1-1" type="danger" :plain="true" @click="showDanger">Danger</n-button>
|
15
|
-
|
16
|
-
<n-button class="col--1-1" type="info" :plain="true" @click="showInfo">Info</n-button>
|
17
|
-
|
18
|
-
</div>
|
19
|
-
</template>
|
20
|
-
<script>
|
21
|
-
export default {
|
22
|
-
methods: {
|
23
|
-
showPrimary()
|
24
|
-
{
|
25
|
-
this.Notify('Im a primary message', 'primary');
|
26
|
-
},
|
27
|
-
showSuccess()
|
28
|
-
{
|
29
|
-
this.Notify('Im a success message', 'success');
|
30
|
-
},
|
31
|
-
showWarning()
|
32
|
-
{
|
33
|
-
this.Notify('Im a warning message', 'warning');
|
34
|
-
},
|
35
|
-
showDanger()
|
36
|
-
{
|
37
|
-
this.Notify('Im a danger message', 'danger');
|
38
|
-
},
|
39
|
-
showInfo()
|
40
|
-
{
|
41
|
-
this.Notify('Im a info message', 'info');
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
</script>
|
46
|
-
```
|
47
|
-
|
48
|
-
### Properties
|
49
|
-
coming soon
|
50
|
-
|
51
|
-
### Events
|
52
|
-
coming soon
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# Popover
|
2
|
-
Popover you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div class="grid grid--row grid--wrap grid--20-20">
|
8
|
-
<n-button class="col--1-1" type="primary">Open on hover</n-button>
|
9
|
-
<n-popover trigger="hover" type="tooltip" :window="true">
|
10
|
-
Hello im the popover
|
11
|
-
</n-popover>
|
12
|
-
<n-button class="col--1-1" type="primary">Open on click</n-button>
|
13
|
-
<n-popover trigger="click" :window="true">
|
14
|
-
Hello im the popover
|
15
|
-
</n-popover>
|
16
|
-
<div class="col--1-1">
|
17
|
-
<div style="background: #eee; width: 100%; height: 500px; line-height: 500px; text-align: center; border-radius: 3px;">
|
18
|
-
Open on right click
|
19
|
-
</div>
|
20
|
-
<n-popover trigger="context" :window="true">
|
21
|
-
Hello im the popover
|
22
|
-
</n-popover>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</template>
|
26
|
-
<script>
|
27
|
-
export default {
|
28
|
-
}
|
29
|
-
</script>
|
30
|
-
```
|
31
|
-
|
32
|
-
### Properties
|
33
|
-
coming soon
|
34
|
-
|
35
|
-
### Events
|
36
|
-
coming soon
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# Tabs
|
2
|
-
Tabs you know.
|
3
|
-
|
4
|
-
```html
|
5
|
-
/*vue*/
|
6
|
-
<template>
|
7
|
-
<div>
|
8
|
-
<n-tabs>
|
9
|
-
<n-tabs-item name="default" label="Start">
|
10
|
-
Hi im the starttext
|
11
|
-
</n-tabs-item>
|
12
|
-
<n-tabs-item name="keep" label="Keep" icon="fa fa-bug" :keep="true">
|
13
|
-
<n-input value="I will stay while editing"></n-input>
|
14
|
-
</n-tabs-item>
|
15
|
-
<n-tabs-item name="forget" label="Forget" icon="fa fa-clock">
|
16
|
-
<n-input value="I will reset while editing"></n-input>
|
17
|
-
</n-tabs-item>
|
18
|
-
</n-tabs>
|
19
|
-
</div>
|
20
|
-
</template>
|
21
|
-
<script>
|
22
|
-
export default {
|
23
|
-
//
|
24
|
-
}
|
25
|
-
</script>
|
26
|
-
```
|
27
|
-
|
28
|
-
### Properties
|
29
|
-
coming soon
|
30
|
-
|
31
|
-
### Events
|
32
|
-
coming soon
|
package/docs/index.template.html
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<title>nano.ui</title>
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
7
|
-
<meta name="description" content="Description">
|
8
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
9
|
-
|
10
|
-
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.base %>/favicon/favicon-96x96.png" sizes="96x96" />
|
11
|
-
<link rel="icon" type="image/svg+xml" href="<%= htmlWebpackPlugin.options.base %>/favicon/favicon.svg" />
|
12
|
-
<link rel="shortcut icon" href="<%= htmlWebpackPlugin.options.base %>/favicon/favicon.ico" />
|
13
|
-
<link rel="apple-touch-icon" sizes="180x180" href="<%= htmlWebpackPlugin.options.base %>/favicon/apple-touch-icon.png" />
|
14
|
-
<meta name="apple-mobile-web-app-title" content="nano.ui" />
|
15
|
-
<link rel="manifest" href="<%= htmlWebpackPlugin.options.base %>/favicon/site.webmanifest" />
|
16
|
-
|
17
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
18
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
19
|
-
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,700&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" rel="stylesheet">
|
20
|
-
|
21
|
-
<link rel="stylesheet" href="//unpkg.com/backpack.css@2.0.0/lib/backpack.css">
|
22
|
-
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/all.min.css">
|
23
|
-
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.base %>/dist/nano-ui.css">
|
24
|
-
<link rel="stylesheet" data-theme-href="<%= htmlWebpackPlugin.options.base %>/dist/themes/{theme}.css">
|
25
|
-
<link rel="stylesheet" data-theme-href="<%= htmlWebpackPlugin.options.base %>/docs/dist/{theme}.css">
|
26
|
-
|
27
|
-
<style>
|
28
|
-
<%= htmlWebpackPlugin.options.loaderCss %>
|
29
|
-
</style>
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
<header>
|
33
|
-
<div class="wrapper">
|
34
|
-
<div class="logo">
|
35
|
-
<a href="<%= htmlWebpackPlugin.options.base %>/docs/#/README">
|
36
|
-
<img data-theme-src="<%= htmlWebpackPlugin.options.base %>/assets/nano-ui-{theme}.svg" alt="nano.ui">
|
37
|
-
</a>
|
38
|
-
</div>
|
39
|
-
<div class="logo logo-alt">
|
40
|
-
<a href="https://pico-js.vanki.de" target="_blank">
|
41
|
-
<img data-theme-src="<%= htmlWebpackPlugin.options.base %>/assets/pico-js-{theme}.svg" alt="pico.js">
|
42
|
-
</a>
|
43
|
-
</div>
|
44
|
-
<div class="spacer">
|
45
|
-
<!-- SPACER -->
|
46
|
-
</div>
|
47
|
-
<div class="theme">
|
48
|
-
<a href="javascript:void(0)" data-theme-light>Light</a>
|
49
|
-
</div>
|
50
|
-
<div class="theme last">
|
51
|
-
<a href="javascript:void(0)" data-theme-dark>Dark</a>
|
52
|
-
</div>
|
53
|
-
<div class="social black">
|
54
|
-
<a href="https://www.paypal.com/paypalme/vankizmann" target="_blank">
|
55
|
-
<i class="fab fa-paypal"></i> <span>Support</span>
|
56
|
-
</a>
|
57
|
-
</div>
|
58
|
-
<div class="social blue">
|
59
|
-
<a href="https://github.com/vankizmann/nano-ui" target="_blank">
|
60
|
-
<i class="fab fa-github"></i> <span>Github</span>
|
61
|
-
</a>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</header>
|
65
|
-
<div id="app">
|
66
|
-
<!-- Docs -->
|
67
|
-
</div>
|
68
|
-
<div class="loader">
|
69
|
-
<span>
|
70
|
-
<%= htmlWebpackPlugin.options.logoSvg %>
|
71
|
-
</span>
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<script src="<%= htmlWebpackPlugin.options.base %>/docs/dist/docs.js" defer></script>
|
75
|
-
</body>
|
76
|
-
</html>
|