zidan-select 2.2.0 → 2.2.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/README.md +25 -18
- package/dist/file/plugin-file-core.css +1 -1
- package/dist/file/plugin-file-theme.css +1 -1
- package/dist/file/zidan-file.js +2 -2
- package/dist/select/plugin-select-core.css +1 -1
- package/dist/select/plugin-select-theme.css +1 -1
- package/dist/select/zidan-select.js +2 -2
- package/dist/zidan-form.js +2 -2
- package/docs/build.md +1 -1
- package/package.json +1 -1
- package/zidan-form.js +2 -2
package/README.md
CHANGED
|
@@ -172,10 +172,10 @@ override presets.
|
|
|
172
172
|
|
|
173
173
|
Copyable URLs for the published files (pin the version in production):
|
|
174
174
|
|
|
175
|
-
- `zidan-form.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
176
|
-
- `zidan-form.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
177
|
-
- `plugin-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
178
|
-
- `plugin-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
175
|
+
- `zidan-form.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/zidan-form.js>
|
|
176
|
+
- `zidan-form.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/zidan-form.mjs>
|
|
177
|
+
- `plugin-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/plugin-core.css>
|
|
178
|
+
- `plugin-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/plugin-theme.css>
|
|
179
179
|
- npm package — <https://www.npmjs.com/package/zidan-select>
|
|
180
180
|
- Source — <https://github.com/akhtar1985/zidan-select>
|
|
181
181
|
|
|
@@ -196,21 +196,21 @@ exactly like the full build.
|
|
|
196
196
|
|
|
197
197
|
Copyable CDN URLs (pin the version):
|
|
198
198
|
|
|
199
|
-
- `zidan-select.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
200
|
-
- `zidan-select.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
201
|
-
- `plugin-select-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
202
|
-
- `plugin-select-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
203
|
-
- `zidan-file.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
204
|
-
- `zidan-file.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
205
|
-
- `plugin-file-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
206
|
-
- `plugin-file-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
199
|
+
- `zidan-select.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/zidan-select.js>
|
|
200
|
+
- `zidan-select.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/zidan-select.mjs>
|
|
201
|
+
- `plugin-select-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/plugin-select-core.css>
|
|
202
|
+
- `plugin-select-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/plugin-select-theme.css>
|
|
203
|
+
- `zidan-file.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/zidan-file.js>
|
|
204
|
+
- `zidan-file.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/zidan-file.mjs>
|
|
205
|
+
- `plugin-file-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/plugin-file-core.css>
|
|
206
|
+
- `plugin-file-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/plugin-file-theme.css>
|
|
207
207
|
|
|
208
208
|
Select / combobox / tags only (≈95 kB JS, ≈12 kB core CSS, ≈32 kB theme CSS):
|
|
209
209
|
|
|
210
210
|
```html
|
|
211
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
212
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
213
|
-
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
211
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/plugin-select-core.css">
|
|
212
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/plugin-select-theme.css">
|
|
213
|
+
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/select/zidan-select.js"></script>
|
|
214
214
|
<script>
|
|
215
215
|
// auto-init covers [data-zidan-select], class="zidan-select", zidan-form scopes
|
|
216
216
|
// and ZIDAN_FORM_CONFIG targets; JS-only options:
|
|
@@ -221,9 +221,9 @@ Select / combobox / tags only (≈95 kB JS, ≈12 kB core CSS, ≈32 kB theme CS
|
|
|
221
221
|
File upload only (≈76 kB JS, ≈9 kB core CSS, ≈35 kB theme CSS):
|
|
222
222
|
|
|
223
223
|
```html
|
|
224
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
225
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
226
|
-
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
224
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/plugin-file-core.css">
|
|
225
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/plugin-file-theme.css">
|
|
226
|
+
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.1/dist/file/zidan-file.js"></script>
|
|
227
227
|
<script>
|
|
228
228
|
zidanField('#upload', { variant: 'dropzone', upload: '/api/files' });
|
|
229
229
|
</script>
|
|
@@ -947,6 +947,13 @@ Full checklist, folder tree and release automation notes: [`docs/build.md`](docs
|
|
|
947
947
|
|
|
948
948
|
The 2.0 API is unchanged; every addition is opt-in.
|
|
949
949
|
|
|
950
|
+
**2.2.1** adds declarative no-JavaScript init — marker classes (`zidan-select`,
|
|
951
|
+
`zidan-field`, `zidan-form`), ID/CSS targets through `window.ZIDAN_FORM_CONFIG` and
|
|
952
|
+
`data-zidan-options` JSON — for the full build and both subset bundles, with docs and demo
|
|
953
|
+
cards. It also restores `getValue()`/`setValue()` on every field, mirrors required-select
|
|
954
|
+
invalid state to the visible control, rebuilds native options on `setOptions()` and mirrors
|
|
955
|
+
programmatic range values into `data-zidan-output`.
|
|
956
|
+
|
|
950
957
|
**2.2.0** adds select-only and file-only builds. Each ships a trimmed JS bundle plus matching
|
|
951
958
|
core and theme stylesheets, keeps all five preset themes, layouts and the Bootstrap, Tailwind,
|
|
952
959
|
Bulma and Foundation adapters, and is generated from the same source by `npm run build`.
|
package/dist/file/zidan-file.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm File-only v2.2.
|
|
2
|
+
* ZidanForm File-only v2.2.1
|
|
3
3
|
* Zero-dependency drag & drop file upload with variants, previews, limits and progress.
|
|
4
4
|
* Pairs with plugin-file-core.css and plugin-file-theme.css.
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
})(typeof window !== 'undefined' ? window : this, function (global) {
|
|
30
30
|
'use strict';
|
|
31
31
|
|
|
32
|
-
var VERSION = '2.2.
|
|
32
|
+
var VERSION = '2.2.1';
|
|
33
33
|
|
|
34
34
|
// Loading the file twice (classic script + module wrapper, or two bundles)
|
|
35
35
|
// must not replace the classes and orphan the live instances.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm Select-only v2.2.
|
|
2
|
+
* ZidanForm Select-only v2.2.1
|
|
3
3
|
* Zero-dependency select / combobox / tags enhancement. Every other control family is omitted.
|
|
4
4
|
* Pairs with plugin-select-core.css and plugin-select-theme.css.
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
})(typeof window !== 'undefined' ? window : this, function (global) {
|
|
30
30
|
'use strict';
|
|
31
31
|
|
|
32
|
-
var VERSION = '2.2.
|
|
32
|
+
var VERSION = '2.2.1';
|
|
33
33
|
|
|
34
34
|
// Loading the file twice (classic script + module wrapper, or two bundles)
|
|
35
35
|
// must not replace the classes and orphan the live instances.
|
package/dist/zidan-form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.1
|
|
3
3
|
* Zero-dependency form enhancement library: select / combobox / tags,
|
|
4
4
|
* checkboxes, switches, radio groups, file upload with drag & drop and
|
|
5
5
|
* upload progress, text / number / phone / date / range inputs and textarea.
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
})(typeof window !== 'undefined' ? window : this, function (global) {
|
|
33
33
|
'use strict';
|
|
34
34
|
|
|
35
|
-
var VERSION = '2.2.
|
|
35
|
+
var VERSION = '2.2.1';
|
|
36
36
|
|
|
37
37
|
// Loading the file twice (classic script + module wrapper, or two bundles)
|
|
38
38
|
// must not replace the classes and orphan the live instances.
|
package/docs/build.md
CHANGED
|
@@ -83,7 +83,7 @@ Both theme stylesheets keep the token set, the five preset themes (`default`, `m
|
|
|
83
83
|
adapters, so `data-zidan-theme`, `data-zidan-layout` and `data-zidan-framework` behave the same
|
|
84
84
|
as in the full build.
|
|
85
85
|
|
|
86
|
-
Approximate v2.2.
|
|
86
|
+
Approximate v2.2.1 sizes: select ≈95 kB JS + 12 kB core + 32 kB theme; file ≈76 kB JS +
|
|
87
87
|
9 kB core + 35 kB theme, against ≈194 kB JS + 36 kB core + 47 kB theme for the full build.
|
|
88
88
|
|
|
89
89
|
A page should load **one** flavour: a subset **or** the full build. The `__zidanFormGuard`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zidan-select",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Zero-dependency form enhancement library: select/combobox/tags, checkboxes, switches, radio groups, drag & drop file upload with progress, text/number/phone/date/range inputs and textarea with input icons and steppers. Split core/theme CSS, 5 themes, 11 layouts, framework adapters, plus select-only and file-only bundles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"select",
|
package/zidan-form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.1
|
|
3
3
|
* Zero-dependency form enhancement library: select / combobox / tags,
|
|
4
4
|
* checkboxes, switches, radio groups, file upload with drag & drop and
|
|
5
5
|
* upload progress, text / number / phone / date / range inputs and textarea.
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
})(typeof window !== 'undefined' ? window : this, function (global) {
|
|
33
33
|
'use strict';
|
|
34
34
|
|
|
35
|
-
var VERSION = '2.2.
|
|
35
|
+
var VERSION = '2.2.1';
|
|
36
36
|
|
|
37
37
|
// Loading the file twice (classic script + module wrapper, or two bundles)
|
|
38
38
|
// must not replace the classes and orphan the live instances.
|