@kizmann/nano-ui 1.0.0 → 1.0.2

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 (139) hide show
  1. package/README.md +1 -114
  2. package/dist/nano-ui.css +1 -0
  3. package/dist/nano-ui.js +4 -0
  4. package/dist/nano-ui.js.map +1 -0
  5. package/dist/themes/dark.css +1 -0
  6. package/dist/themes/light.css +1 -0
  7. package/package.json +12 -6
  8. package/src/drawer/src/drawer/drawer.js +8 -8
  9. package/src/drawer/src/drawer/drawer.scss +8 -2
  10. package/src/form/src/form-item/form-item.scss +6 -1
  11. package/src/map/src/map/map.scss +1 -0
  12. package/src/map/src/map-marker/map-marker.js +1 -1
  13. package/src/resizer/src/resizer/resizer.js +6 -4
  14. package/src/root/vars.scss +1 -1
  15. package/src/scrollbar/src/scrollbar/scrollbar.next.js +1 -1
  16. package/src/scrollbar/src/scrollbar/scrollbar.scss +3 -2
  17. package/src/select/src/select/select.js +1 -1
  18. package/src/slider/src/slider/slider.js +5 -0
  19. package/src/slider/src/slider/slider.scss +4 -0
  20. package/src/table/src/table/table.scss +6 -2
  21. package/src/table/src/table-column/table-column.scss +0 -1
  22. package/themes/macos/button/src/button/button.scss +9 -0
  23. package/themes/macos/radio/src/radio/radio.scss +1 -1
  24. package/themes/macos/root/vars-dark.scss +1 -1
  25. package/themes/macos/root/vars-light.scss +1 -1
  26. package/themes/macos/root/vars.scss +0 -1
  27. package/themes/macos/scrollbar/src/scrollbar/scrollbar.scss +1 -1
  28. package/themes/macos/select/src/select/select.scss +1 -1
  29. package/themes/macos/slider/src/slider/slider.scss +23 -3
  30. package/themes/macos/tags/src/tags-item/tags-item.scss +4 -2
  31. package/.github/workflows/compile-deploy-publish.yml +0 -65
  32. package/assets/nano-ui-dark.svg +0 -19
  33. package/assets/nano-ui-light.svg +0 -19
  34. package/assets/pico-js-dark.svg +0 -19
  35. package/assets/pico-js-light.svg +0 -19
  36. package/babel.config.js +0 -17
  37. package/demos/builder.html +0 -411
  38. package/demos/button/index.html +0 -129
  39. package/demos/cascader/index.html +0 -127
  40. package/demos/chart/index.html +0 -53
  41. package/demos/checkbox/index.html +0 -97
  42. package/demos/config/index.html +0 -95
  43. package/demos/confirm/index.html +0 -78
  44. package/demos/datepicker/index.html +0 -69
  45. package/demos/draggable/index.html +0 -127
  46. package/demos/form/index.html +0 -83
  47. package/demos/form.html +0 -462
  48. package/demos/grid.html +0 -321
  49. package/demos/input/index.html +0 -100
  50. package/demos/map/index.html +0 -81
  51. package/demos/matrix/index.html +0 -104
  52. package/demos/modal/index.html +0 -98
  53. package/demos/overview.html +0 -1468
  54. package/demos/paginator/index.html +0 -58
  55. package/demos/popover/index.html +0 -103
  56. package/demos/radio/index.html +0 -71
  57. package/demos/resizer/index.html +0 -106
  58. package/demos/scrollbar.html +0 -328
  59. package/demos/select/index.html +0 -174
  60. package/demos/select.html +0 -164
  61. package/demos/style.css +0 -50
  62. package/demos/switch/index.html +0 -69
  63. package/demos/table/index.html +0 -126
  64. package/demos/tabs/index.html +0 -110
  65. package/demos/tabs.html +0 -293
  66. package/demos/textarea/index.html +0 -77
  67. package/demos/timepicker/index.html +0 -66
  68. package/demos/transfer/index.html +0 -88
  69. package/demos/wysiwyg/index.html +0 -49
  70. package/docs/README.md +0 -34
  71. package/docs/_sidebar.md +0 -37
  72. package/docs/files/data/draggable.md +0 -143
  73. package/docs/files/data/map.md +0 -1
  74. package/docs/files/data/paginator.md +0 -23
  75. package/docs/files/data/table.md +0 -247
  76. package/docs/files/data/virtualscroller.md +0 -2
  77. package/docs/files/form/button.md +0 -131
  78. package/docs/files/form/cascader.md +0 -164
  79. package/docs/files/form/checkbox.md +0 -179
  80. package/docs/files/form/datepicker.md +0 -78
  81. package/docs/files/form/form.md +0 -52
  82. package/docs/files/form/input.md +0 -90
  83. package/docs/files/form/radio.md +0 -150
  84. package/docs/files/form/select.md +0 -202
  85. package/docs/files/form/switch.md +0 -98
  86. package/docs/files/form/textarea.md +0 -102
  87. package/docs/files/form/timepicker.md +0 -78
  88. package/docs/files/form/transfer.md +0 -30
  89. package/docs/files/others/config.md +0 -261
  90. package/docs/files/others/confirm.md +0 -51
  91. package/docs/files/others/drawer.md +0 -32
  92. package/docs/files/others/loader.md +0 -22
  93. package/docs/files/others/map.md +0 -32
  94. package/docs/files/others/modal.md +0 -32
  95. package/docs/files/others/notification.md +0 -52
  96. package/docs/files/others/popover.md +0 -36
  97. package/docs/files/others/resizer.md +0 -8
  98. package/docs/files/others/scrollbar.md +0 -8
  99. package/docs/files/others/tabs.md +0 -32
  100. package/docs/index.template.html +0 -76
  101. package/docs/src/js/backup.js +0 -128
  102. package/docs/src/js/helper/item-helper.js +0 -0
  103. package/docs/src/js/index.js +0 -21
  104. package/docs/src/js/plugin/title-plugin.js +0 -0
  105. package/docs/src/js/plugin/vue-demo-plugin.js +0 -97
  106. package/docs/src/js/theme/basic.js +0 -31
  107. package/docs/src/js/theme/docsify.js +0 -11
  108. package/docs/src/scss/index-dark.scss +0 -3
  109. package/docs/src/scss/index-light.scss +0 -3
  110. package/docs/src/scss/index.scss +0 -15
  111. package/docs/src/scss/mixins/base.scss +0 -14
  112. package/docs/src/scss/mixins/grid.scss +0 -213
  113. package/docs/src/scss/mixins/media.scss +0 -35
  114. package/docs/src/scss/mixins/space.scss +0 -61
  115. package/docs/src/scss/root/vars-dark.scss +0 -15
  116. package/docs/src/scss/root/vars-light.scss +0 -15
  117. package/docs/src/scss/root/vars.scss +0 -110
  118. package/docs/src/scss/theme/default.scss +0 -123
  119. package/docs/src/scss/theme/header.scss +0 -147
  120. package/docs/src/scss/theme/layout.scss +0 -186
  121. package/docs/src/scss/theme/loader.scss +0 -63
  122. package/docs/src/scss/theme/markdown.scss +0 -79
  123. package/docs/src/scss/theme/navigation.scss +0 -58
  124. package/docs/src/scss/theme/progress.scss +0 -9
  125. package/docs/src/scss/theme/search.scss +0 -119
  126. package/docs/src/scss/theme/syntax.scss +0 -142
  127. package/docs/src/scss/theme/table.scss +0 -63
  128. package/favicon/apple-touch-icon.png +0 -0
  129. package/favicon/favicon-96x96.png +0 -0
  130. package/favicon/favicon.ico +0 -0
  131. package/favicon/favicon.svg +0 -3
  132. package/favicon/site.webmanifest +0 -21
  133. package/favicon/web-app-manifest-192x192.png +0 -0
  134. package/favicon/web-app-manifest-512x512.png +0 -0
  135. package/mix-manifest.json +0 -4
  136. package/postcss.config.js +0 -14
  137. package/webpack.config.js +0 -211
  138. package/webservy.json +0 -8
  139. /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