@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.
Files changed (115) hide show
  1. package/dist/nano-ui.css +1 -0
  2. package/dist/nano-ui.js +4 -0
  3. package/dist/nano-ui.js.map +1 -0
  4. package/dist/themes/dark.css +1 -0
  5. package/dist/themes/light.css +1 -0
  6. package/package.json +7 -1
  7. package/.github/workflows/compile-deploy-publish.yml +0 -65
  8. package/assets/nano-ui-dark.svg +0 -19
  9. package/assets/nano-ui-light.svg +0 -19
  10. package/assets/pico-js-dark.svg +0 -19
  11. package/assets/pico-js-light.svg +0 -19
  12. package/babel.config.js +0 -17
  13. package/demos/builder.html +0 -411
  14. package/demos/button/index.html +0 -129
  15. package/demos/cascader/index.html +0 -127
  16. package/demos/chart/index.html +0 -53
  17. package/demos/checkbox/index.html +0 -97
  18. package/demos/config/index.html +0 -95
  19. package/demos/confirm/index.html +0 -78
  20. package/demos/datepicker/index.html +0 -69
  21. package/demos/draggable/index.html +0 -127
  22. package/demos/form/index.html +0 -83
  23. package/demos/form.html +0 -462
  24. package/demos/grid.html +0 -321
  25. package/demos/input/index.html +0 -100
  26. package/demos/map/index.html +0 -81
  27. package/demos/matrix/index.html +0 -104
  28. package/demos/modal/index.html +0 -98
  29. package/demos/overview.html +0 -1468
  30. package/demos/paginator/index.html +0 -58
  31. package/demos/popover/index.html +0 -103
  32. package/demos/radio/index.html +0 -71
  33. package/demos/resizer/index.html +0 -106
  34. package/demos/scrollbar.html +0 -328
  35. package/demos/select/index.html +0 -174
  36. package/demos/select.html +0 -164
  37. package/demos/style.css +0 -50
  38. package/demos/switch/index.html +0 -69
  39. package/demos/table/index.html +0 -126
  40. package/demos/tabs/index.html +0 -110
  41. package/demos/tabs.html +0 -293
  42. package/demos/textarea/index.html +0 -77
  43. package/demos/timepicker/index.html +0 -66
  44. package/demos/transfer/index.html +0 -88
  45. package/demos/wysiwyg/index.html +0 -49
  46. package/docs/README.md +0 -34
  47. package/docs/_sidebar.md +0 -37
  48. package/docs/files/data/draggable.md +0 -143
  49. package/docs/files/data/map.md +0 -1
  50. package/docs/files/data/paginator.md +0 -23
  51. package/docs/files/data/table.md +0 -247
  52. package/docs/files/data/virtualscroller.md +0 -2
  53. package/docs/files/form/button.md +0 -131
  54. package/docs/files/form/cascader.md +0 -164
  55. package/docs/files/form/checkbox.md +0 -179
  56. package/docs/files/form/datepicker.md +0 -78
  57. package/docs/files/form/form.md +0 -52
  58. package/docs/files/form/input.md +0 -90
  59. package/docs/files/form/radio.md +0 -150
  60. package/docs/files/form/select.md +0 -202
  61. package/docs/files/form/switch.md +0 -98
  62. package/docs/files/form/textarea.md +0 -102
  63. package/docs/files/form/timepicker.md +0 -78
  64. package/docs/files/form/transfer.md +0 -30
  65. package/docs/files/others/config.md +0 -261
  66. package/docs/files/others/confirm.md +0 -51
  67. package/docs/files/others/drawer.md +0 -32
  68. package/docs/files/others/loader.md +0 -22
  69. package/docs/files/others/map.md +0 -32
  70. package/docs/files/others/modal.md +0 -32
  71. package/docs/files/others/notification.md +0 -52
  72. package/docs/files/others/popover.md +0 -36
  73. package/docs/files/others/resizer.md +0 -8
  74. package/docs/files/others/scrollbar.md +0 -8
  75. package/docs/files/others/tabs.md +0 -32
  76. package/docs/index.template.html +0 -76
  77. package/docs/src/js/backup.js +0 -128
  78. package/docs/src/js/helper/item-helper.js +0 -0
  79. package/docs/src/js/index.js +0 -21
  80. package/docs/src/js/plugin/title-plugin.js +0 -0
  81. package/docs/src/js/plugin/vue-demo-plugin.js +0 -97
  82. package/docs/src/js/theme/basic.js +0 -31
  83. package/docs/src/js/theme/docsify.js +0 -11
  84. package/docs/src/scss/index-dark.scss +0 -3
  85. package/docs/src/scss/index-light.scss +0 -3
  86. package/docs/src/scss/index.scss +0 -15
  87. package/docs/src/scss/mixins/base.scss +0 -14
  88. package/docs/src/scss/mixins/grid.scss +0 -213
  89. package/docs/src/scss/mixins/media.scss +0 -35
  90. package/docs/src/scss/mixins/space.scss +0 -61
  91. package/docs/src/scss/root/vars-dark.scss +0 -15
  92. package/docs/src/scss/root/vars-light.scss +0 -15
  93. package/docs/src/scss/root/vars.scss +0 -110
  94. package/docs/src/scss/theme/default.scss +0 -123
  95. package/docs/src/scss/theme/header.scss +0 -147
  96. package/docs/src/scss/theme/layout.scss +0 -186
  97. package/docs/src/scss/theme/loader.scss +0 -63
  98. package/docs/src/scss/theme/markdown.scss +0 -79
  99. package/docs/src/scss/theme/navigation.scss +0 -58
  100. package/docs/src/scss/theme/progress.scss +0 -9
  101. package/docs/src/scss/theme/search.scss +0 -119
  102. package/docs/src/scss/theme/syntax.scss +0 -142
  103. package/docs/src/scss/theme/table.scss +0 -63
  104. package/favicon/apple-touch-icon.png +0 -0
  105. package/favicon/favicon-96x96.png +0 -0
  106. package/favicon/favicon.ico +0 -0
  107. package/favicon/favicon.svg +0 -3
  108. package/favicon/site.webmanifest +0 -21
  109. package/favicon/web-app-manifest-192x192.png +0 -0
  110. package/favicon/web-app-manifest-512x512.png +0 -0
  111. package/mix-manifest.json +0 -4
  112. package/postcss.config.js +0 -14
  113. package/webpack.config.js +0 -211
  114. package/webservy.json +0 -8
  115. /package/{.nojekyll → dist/.ignore.js} +0 -0
@@ -1,202 +0,0 @@
1
- # Select
2
- Select with diffrent styles.
3
-
4
- ```vue
5
- <n-select v-model="value">
6
- <n-select-option value="foo">Foo</n-select-option>
7
- <n-select-option value="bar">Bar</n-select-option>
8
- </n-select>
9
- ```
10
-
11
- ### Select
12
-
13
- ```html
14
- /*vue*/
15
-
16
- <template>
17
- <div class="grid grid--col grid--20-20">
18
- <div class="col--1-1">
19
- <n-select v-model="value">
20
- <n-select-option value="hamburg">Hamburg</n-select-option>
21
- <n-select-option value="berlin">Berlin</n-select-option>
22
- <n-select-option value="frankfurt" :disabled="true">Frankfurt</n-select-option>
23
- <n-select-option value="munich">Munich</n-select-option>
24
- </n-select>
25
- </div>
26
- </div>
27
- </template>
28
-
29
- <script>
30
- export default {
31
- data()
32
- {
33
- return { value: null };
34
- }
35
- }
36
- </script>
37
-
38
- ```
39
-
40
-
41
- ### Clearable select
42
-
43
- ```html
44
- /*vue*/
45
-
46
- <template>
47
- <div class="grid grid--col grid--20-20">
48
- <div class="col--1-1">
49
- <n-select v-model="value" :clearable="true">
50
- <n-select-option value="hamburg">Hamburg</n-select-option>
51
- <n-select-option value="berlin">Berlin</n-select-option>
52
- <n-select-option value="frankfurt" :disabled="true">Frankfurt</n-select-option>
53
- <n-select-option value="munich">Munich</n-select-option>
54
- </n-select>
55
- </div>
56
- </div>
57
- </template>
58
-
59
- <script>
60
- export default {
61
- data()
62
- {
63
- return { value: null };
64
- }
65
- }
66
- </script>
67
-
68
- ```
69
-
70
- ### Multiple select
71
-
72
- ```html
73
- /*vue*/
74
-
75
- <template>
76
- <div class="grid grid--col grid--20-20">
77
- <div class="col--1-1">
78
- <n-select v-model="value" :multiple="true">
79
- <n-select-option value="hamburg">Hamburg</n-select-option>
80
- <n-select-option value="berlin">Berlin</n-select-option>
81
- <n-select-option value="frankfurt" :disabled="true">Frankfurt</n-select-option>
82
- <n-select-option value="munich">Munich</n-select-option>
83
- </n-select>
84
- </div>
85
- </div>
86
- </template>
87
-
88
- <script>
89
- export default {
90
- data()
91
- {
92
- return { value: null };
93
- }
94
- }
95
- </script>
96
-
97
- ```
98
-
99
- ### Create new options
100
-
101
- ```html
102
- /*vue*/
103
-
104
- <template>
105
- <div class="grid grid--col grid--20-20">
106
- <div class="col--1-1">
107
- <n-select v-model="value" :allow-create="true">
108
- <n-select-option value="hamburg">Hamburg</n-select-option>
109
- <n-select-option value="berlin">Berlin</n-select-option>
110
- <n-select-option value="frankfurt" :disabled="true">Frankfurt</n-select-option>
111
- <n-select-option value="munich">Munich</n-select-option>
112
- </n-select>
113
- </div>
114
- </div>
115
- </template>
116
-
117
- <script>
118
- export default {
119
- data()
120
- {
121
- return { value: null };
122
- }
123
- }
124
- </script>
125
-
126
- ```
127
-
128
- ### Select group
129
-
130
- ```html
131
- /*vue*/
132
-
133
- <template>
134
- <div class="grid grid--col grid--20-20">
135
- <div class="col--1-1">
136
- <n-button-group>
137
- <n-select v-model="value">
138
- <n-select-option value="hamburg">Hamburg</n-select-option>
139
- <n-select-option value="berlin">Berlin</n-select-option>
140
- <n-select-option value="frankfurt" :disabled="true">Frankfurt</n-select-option>
141
- <n-select-option value="munich">Munich</n-select-option>
142
- </n-select>
143
- <n-button icon="fa fa-pen">Edit</n-button>
144
- </n-button-group>
145
- </div>
146
- </div>
147
- </template>
148
-
149
- <script>
150
- export default {
151
- data()
152
- {
153
- return { value: null };
154
- }
155
- }
156
- </script>
157
-
158
- ```
159
-
160
- ### Properties
161
- **value**
162
- default: null
163
- types: String
164
- _Select value_
165
-
166
- **size**
167
- default: 'default'
168
- types: String
169
- _Button size (small, default, large)_
170
-
171
- **round**
172
- default: false
173
- types: Boolean
174
- _If button is rounded_
175
-
176
- **disabled**
177
- default: false
178
- types: Boolean
179
- _If button uses disabled style and mode_
180
-
181
- **icon**
182
- default: ''
183
- types: String
184
- _Icon class (fa fa-times)_
185
-
186
- **iconDisabled**
187
- default: false
188
- types: Boolen
189
- _If icon button will be disabled_
190
-
191
- **nativeType**
192
- default: 'button'
193
- types: String
194
- _Native button type (a, button, div etc.)_
195
-
196
- ### Events
197
- ```javascript
198
- /* Allows all types which are supported by native type, but overrides default input event */
199
- NDraggable.$on('input', (value) => {
200
- console.log(value);
201
- });
202
- ```
@@ -1,98 +0,0 @@
1
- # Switch
2
-
3
- The `<n-switch>` component is a customizable switch component with various options to control its appearance and behavior. Below is a detailed description of its props, methods, and usage.
4
-
5
-
6
- ## Demo
7
-
8
- ```js [demo]
9
- pi.Obj.assign(window.VueData, {
10
- switchBinds: {
11
- size: 'md', disabled: false,
12
- },
13
- switchReact: {
14
- model: 'foo'
15
- }
16
- });
17
- ```
18
-
19
- ```html [demo]
20
- <n-form>
21
- <div class="demo-options">
22
- <div class="grid grid--row grid--wrap grid--20-20">
23
- <n-form-item class="col--1-1 col--6-12@sm col--3-12@lg" label="Size">
24
- <n-select v-model="switchBinds.size" :options="sizes" />
25
- </n-form-item>
26
- <n-form-item class="col--1-1 col--6-12@sm col--3-12@lg" label="Disabled">
27
- <n-switch v-model="switchBinds.disabled">Activate disable state</n-switch>
28
- </n-form-item>
29
- </div>
30
- </div>
31
- <div class="demo-display">
32
- <div class="grid grid--row grid--wrap grid--40-40 grid--middle">
33
- <div class="col--1-1">
34
- <h3>Default</h3>
35
- </div>
36
- <div class="col--auto">
37
- <n-switch :model-value="true" v-bind="switchBinds" on-type="primary">Primary</n-switch>
38
- </div>
39
- <div class="col--auto">
40
- <n-switch v-bind="switchBinds" on-type="secondary">Secondary</n-switch>
41
- </div>
42
- <div class="col--auto">
43
- <n-switch :model-value="true" v-bind="switchBinds" on-type="success">Success</n-switch>
44
- </div>
45
- <div class="col--auto">
46
- <n-switch v-bind="switchBinds" on-type="warning">Warning</n-switch>
47
- </div>
48
- <div class="col--auto">
49
- <n-switch v-bind="switchBinds" on-type="danger">Danger</n-switch>
50
- </div>
51
- <div class="col--auto">
52
- <n-switch v-bind="switchBinds" on-type="info">Info</n-switch>
53
- </div>
54
- </div>
55
- <div class="grid grid--row grid--wrap grid--40-40 grid--middle">
56
- <div class="col--1-1">
57
- <h3>With custom values</h3>
58
- </div>
59
- <div class="col--auto">
60
- <n-switch v-model="switchReact.model" v-bind="switchBinds" on-value="foo" off-value="bar">Switch between to strings</n-switch>
61
- </div>
62
- <div class="col--flex-1-1">
63
- <code style="white-space: initial">{{ switchReact }}</code>
64
- </div>
65
- </div>
66
- </div>
67
- </n-form>
68
- ```
69
-
70
- ## Example
71
-
72
- ```vue
73
- <template>
74
- <n-switch v-model="modelValue" on-value="yes" off-value="no" @click="window.alert('Switch toggled!')">
75
- Toggle Switch
76
- </n-switch>
77
- </template>
78
- <script>
79
- export default {
80
- data() {
81
- return { modelValue: 'yes' };
82
- }
83
- }
84
- </script>
85
-
86
- ```
87
-
88
- ## Properties
89
-
90
- | **Prop** | **Type** | **Default** | **Description** |
91
- |--------------|---------------------|-------------|--------------------------------------------------------------------------------------------------|
92
- | `modelValue` | `Boolean` | `false` | The current value of the switch. |
93
- | `onValue` | `Any` | `true` | The value when the switch is turned on. |
94
- | `offValue` | `Any` | `false` | The value when the switch is turned off. |
95
- | `onType` | `String` | `'primary'` | The style type when the switch is on (e.g., 'primary', 'secondary'). |
96
- | `offType` | `String` | `'default'` | The style type when the switch is off. |
97
- | `size` | `String` | `'md'` | Sets the size of the switch (e.g., 'sm', 'md', 'lg'). |
98
- | `disabled` | `Boolean` | `false` | If true, disables the switch. |
@@ -1,102 +0,0 @@
1
- # Textarea
2
- Textarea with diffrent styles.
3
-
4
- ```vue
5
- <n-textarea v-model="text"></n-textarea>
6
- ```
7
-
8
- ### Textarea
9
-
10
- ```html
11
- /*vue*/
12
-
13
- <template>
14
- <div class="grid grid--col grid--20-20">
15
- <div class="col--1-1">
16
- <n-textarea v-model="text" placeholder="Enter text" />
17
- </div>
18
- <div class="col--1-1">
19
- <n-textarea v-model="text" placeholder="Enter text" :disabled="true" />
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- export default {
26
- data()
27
- {
28
- return { text: '' };
29
- }
30
- }
31
- </script>
32
-
33
- ```
34
-
35
- ### Textarea with autorow
36
-
37
- ```html
38
- /*vue*/
39
-
40
- <template>
41
- <div class="grid grid--col grid--20-20">
42
- <div class="col--1-1">
43
- <n-textarea v-model="text" placeholder="Enter text" :auto-rows="true" :min-rows="2" />
44
- </div>
45
- </div>
46
- </template>
47
-
48
- <script>
49
- export default {
50
- data()
51
- {
52
- return { text: '' };
53
- }
54
- }
55
- </script>
56
-
57
- ```
58
-
59
-
60
- ### Properties
61
- **value**
62
- default: null
63
- types: String
64
- _Textarea value_
65
-
66
- **size**
67
- default: 'default'
68
- types: String
69
- _Button size (small, default, large)_
70
-
71
- **round**
72
- default: false
73
- types: Boolean
74
- _If button is rounded_
75
-
76
- **disabled**
77
- default: false
78
- types: Boolean
79
- _If button uses disabled style and mode_
80
-
81
- **icon**
82
- default: ''
83
- types: String
84
- _Icon class (fa fa-times)_
85
-
86
- **iconDisabled**
87
- default: false
88
- types: Boolen
89
- _If icon button will be disabled_
90
-
91
- **nativeType**
92
- default: 'button'
93
- types: String
94
- _Native button type (a, button, div etc.)_
95
-
96
- ### Events
97
- ```javascript
98
- /* Allows all types which are supported by native type, but overrides default textarea event */
99
- NDraggable.$on('textarea', (value) => {
100
- console.log(value);
101
- });
102
- ```
@@ -1,78 +0,0 @@
1
- # Timepicker
2
- Timepicker with diffrent styles.
3
-
4
- ```vue
5
- <n-timepicker v-model="text"></n-timepicker>
6
- ```
7
-
8
- ### Timepicker
9
-
10
- ```html
11
- /*vue*/
12
-
13
- <template>
14
- <div class="grid grid--col grid--20-20">
15
- <div class="col--1-1">
16
- <n-timepicker v-model="timestamp" placeholder="Select time" />
17
- </div>
18
- <div class="col--1-1">
19
- <n-timepicker v-model="timestamp" placeholder="Select time" :disabled="true" />
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- export default {
26
- data()
27
- {
28
- return { timestamp: 'now+2hours' };
29
- }
30
- }
31
- </script>
32
-
33
- ```
34
-
35
-
36
- ### Properties
37
- **value**
38
- default: null
39
- types: String
40
- _Timepicker value_
41
-
42
- **size**
43
- default: 'default'
44
- types: String
45
- _Button size (small, default, large)_
46
-
47
- **round**
48
- default: false
49
- types: Boolean
50
- _If button is rounded_
51
-
52
- **disabled**
53
- default: false
54
- types: Boolean
55
- _If button uses disabled style and mode_
56
-
57
- **icon**
58
- default: ''
59
- types: String
60
- _Icon class (fa fa-times)_
61
-
62
- **iconDisabled**
63
- default: false
64
- types: Boolen
65
- _If icon button will be disabled_
66
-
67
- **nativeType**
68
- default: 'button'
69
- types: String
70
- _Native button type (a, button, div etc.)_
71
-
72
- ### Events
73
- ```javascript
74
- /* Allows all types which are supported by native type, but overrides default timepicker event */
75
- NDraggable.$on('timepicker', (value) => {
76
- console.log(value);
77
- });
78
- ```
@@ -1,30 +0,0 @@
1
- # Transfer
2
- Drag and drop list or tree.
3
-
4
- ```html
5
- /*vue*/
6
- <template>
7
- <div>
8
- <n-transfer v-model="value" :items="items" label-prop="title"></n-transfer>
9
- </div>
10
- </template>
11
- <script>
12
- export default {
13
- data() {
14
-
15
- let items = pi.Arr.make(40).map((index) => {
16
- return { id: pi.UUID(), title: 'foo-' + index };
17
- });
18
-
19
- return {
20
- items: items, value: items.slice(0, 10)
21
- }
22
- }
23
- }
24
- </script>
25
- ```
26
-
27
- ### Properties
28
-
29
-
30
- ### Events