zidan-select 2.2.2 → 2.2.4
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 +45 -35
- 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/plugin-core.css +1 -1
- package/dist/plugin-theme.css +1 -1
- 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 +6 -3
- package/docs/comparison.md +1 -1
- package/docs/index.html +8 -0
- package/docs/validation.html +8 -0
- package/package.json +12 -2
- package/plugin-core.css +1 -1
- package/plugin-theme.css +1 -1
- package/zidan-form.js +2 -2
package/README.md
CHANGED
|
@@ -28,9 +28,9 @@ bundle.
|
|
|
28
28
|
|
|
29
29
|
| Build | JavaScript (CDN) | CSS (CDN) |
|
|
30
30
|
| --- | --- | --- |
|
|
31
|
-
| Full — every control | [zidan-form.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
32
|
-
| Select-only — ≈95 kB | [zidan-select.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
33
|
-
| File-only — ≈76 kB | [zidan-file.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
31
|
+
| Full — every control | [zidan-form.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/zidan-form.js) | [plugin-core.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-core.css) + [plugin-theme.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-theme.css) |
|
|
32
|
+
| Select-only — ≈95 kB | [zidan-select.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.js) | [plugin-select-core.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-core.css) + [plugin-select-theme.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-theme.css) |
|
|
33
|
+
| File-only — ≈76 kB | [zidan-file.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.js) | [plugin-file-core.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-core.css) + [plugin-file-theme.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-theme.css) |
|
|
34
34
|
|
|
35
35
|
Copyable snippets, ESM files and per-file sizes live in
|
|
36
36
|
[Select-only and file-only builds](#select-only-and-file-only-builds); the
|
|
@@ -47,9 +47,9 @@ the pinned version:
|
|
|
47
47
|
|
|
48
48
|
| Build | JS (min) | CSS (min) |
|
|
49
49
|
| --- | --- | --- |
|
|
50
|
-
| Full | [zidan-form.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
51
|
-
| Select-only | [zidan-select.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
52
|
-
| File-only | [zidan-file.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
50
|
+
| Full | [zidan-form.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/zidan-form.min.js) | [plugin-core.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-core.min.css) + [plugin-theme.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-theme.min.css) |
|
|
51
|
+
| Select-only | [zidan-select.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.min.js) | [plugin-select-core.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-core.min.css) + [plugin-select-theme.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-theme.min.css) |
|
|
52
|
+
| File-only | [zidan-file.min.js](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.min.js) | [plugin-file-core.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-core.min.css) + [plugin-file-theme.min.css](https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-theme.min.css) |
|
|
53
53
|
|
|
54
54
|
- **One file of JS** — `zidan-form.js` (classic script, UMD-ish) + `zidan-form.mjs` (ESM wrapper).
|
|
55
55
|
- **Split CSS** — `plugin-core.css` (structure only) and `plugin-theme.css` (tokens, presets, skins).
|
|
@@ -210,17 +210,18 @@ override presets.
|
|
|
210
210
|
| `dist/file/` | File-only build: `zidan-file.js`, `zidan-file.mjs`, `plugin-file-core.css`, `plugin-file-theme.css`. |
|
|
211
211
|
| `index.html`, `demo.css`, `demo.js` | The tabbed demo / theme showcase (not shipped logic). |
|
|
212
212
|
| `playground.html`, `playground.css`, `playground.js` | Per-field option builder with live preview and copyable HTML / JS output (not shipped logic). |
|
|
213
|
+
| `robots.txt`, `sitemap.xml` | Crawler directives and the public page list for GitHub Pages (not shipped on npm). |
|
|
213
214
|
| `docs/` | Comparison, options, validation, frameworks, theming and build guides. |
|
|
214
215
|
|
|
215
216
|
Copyable URLs for the published files (pin the version in production):
|
|
216
217
|
|
|
217
|
-
- `zidan-form.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
218
|
-
- `zidan-form.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
219
|
-
- `zidan-form.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
220
|
-
- `plugin-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
221
|
-
- `plugin-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
222
|
-
- `plugin-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
223
|
-
- `plugin-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
218
|
+
- `zidan-form.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/zidan-form.js>
|
|
219
|
+
- `zidan-form.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/zidan-form.min.js>
|
|
220
|
+
- `zidan-form.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/zidan-form.mjs>
|
|
221
|
+
- `plugin-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-core.css>
|
|
222
|
+
- `plugin-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-core.min.css>
|
|
223
|
+
- `plugin-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-theme.css>
|
|
224
|
+
- `plugin-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/plugin-theme.min.css>
|
|
224
225
|
- npm package — <https://www.npmjs.com/package/zidan-select>
|
|
225
226
|
- Source — <https://github.com/akhtar1985/zidan-select>
|
|
226
227
|
|
|
@@ -241,27 +242,27 @@ exactly like the full build.
|
|
|
241
242
|
|
|
242
243
|
Copyable CDN URLs (pin the version):
|
|
243
244
|
|
|
244
|
-
- `zidan-select.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
245
|
-
- `zidan-select.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
246
|
-
- `zidan-select.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
247
|
-
- `plugin-select-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
248
|
-
- `plugin-select-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
249
|
-
- `plugin-select-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
250
|
-
- `plugin-select-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
251
|
-
- `zidan-file.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
252
|
-
- `zidan-file.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
253
|
-
- `zidan-file.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
254
|
-
- `plugin-file-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
255
|
-
- `plugin-file-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
256
|
-
- `plugin-file-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
257
|
-
- `plugin-file-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
245
|
+
- `zidan-select.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.js>
|
|
246
|
+
- `zidan-select.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.min.js>
|
|
247
|
+
- `zidan-select.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.mjs>
|
|
248
|
+
- `plugin-select-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-core.css>
|
|
249
|
+
- `plugin-select-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-core.min.css>
|
|
250
|
+
- `plugin-select-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-theme.css>
|
|
251
|
+
- `plugin-select-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-theme.min.css>
|
|
252
|
+
- `zidan-file.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.js>
|
|
253
|
+
- `zidan-file.min.js` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.min.js>
|
|
254
|
+
- `zidan-file.mjs` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.mjs>
|
|
255
|
+
- `plugin-file-core.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-core.css>
|
|
256
|
+
- `plugin-file-core.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-core.min.css>
|
|
257
|
+
- `plugin-file-theme.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-theme.css>
|
|
258
|
+
- `plugin-file-theme.min.css` — <https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-theme.min.css>
|
|
258
259
|
|
|
259
260
|
Select / combobox / tags only (≈95 kB JS, ≈12 kB core CSS, ≈32 kB theme CSS):
|
|
260
261
|
|
|
261
262
|
```html
|
|
262
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
263
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
264
|
-
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
263
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-core.css">
|
|
264
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/plugin-select-theme.css">
|
|
265
|
+
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.js"></script>
|
|
265
266
|
<script>
|
|
266
267
|
// auto-init covers [data-zidan-select], class="zidan-select", zidan-form scopes
|
|
267
268
|
// and ZIDAN_FORM_CONFIG targets; JS-only options:
|
|
@@ -272,9 +273,9 @@ Select / combobox / tags only (≈95 kB JS, ≈12 kB core CSS, ≈32 kB theme CS
|
|
|
272
273
|
File upload only (≈76 kB JS, ≈9 kB core CSS, ≈35 kB theme CSS):
|
|
273
274
|
|
|
274
275
|
```html
|
|
275
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
276
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
277
|
-
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
276
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-core.css">
|
|
277
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/plugin-file-theme.css">
|
|
278
|
+
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/file/zidan-file.js"></script>
|
|
278
279
|
<script>
|
|
279
280
|
zidanField('#upload', { variant: 'dropzone', upload: '/api/files' });
|
|
280
281
|
</script>
|
|
@@ -403,7 +404,7 @@ argument to `zidanSelect()`:
|
|
|
403
404
|
</select>
|
|
404
405
|
|
|
405
406
|
<!-- select-only build; use zidan-form.js for every control -->
|
|
406
|
-
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
407
|
+
<script src="https://cdn.jsdelivr.net/npm/zidan-select@2.2.4/dist/select/zidan-select.js"></script>
|
|
407
408
|
<script>
|
|
408
409
|
const picker = zidanSelect('#mymov', {
|
|
409
410
|
mode: 'combobox', // 'select' | 'combobox' | 'tags'
|
|
@@ -1005,7 +1006,7 @@ npm run build # dist/ (+ local .min files when esbuild is installed)
|
|
|
1005
1006
|
| `scripts/test.mjs` | Verifies syntax, that core CSS carries no colour literals, that all presets/adapters exist, the public API is exported, and the playground, README and demo stay wired to each other. |
|
|
1006
1007
|
|
|
1007
1008
|
Minified files on the CDN do not need esbuild: jsDelivr generates `.min.*` from the
|
|
1008
|
-
published sources, so the `@2.2.
|
|
1009
|
+
published sources, so the `@2.2.4` `.min` URLs above stay valid without a local build.
|
|
1009
1010
|
|
|
1010
1011
|
Publishing:
|
|
1011
1012
|
|
|
@@ -1064,6 +1065,15 @@ Full checklist, folder tree and release automation notes: [`docs/build.md`](docs
|
|
|
1064
1065
|
|
|
1065
1066
|
The 2.0 API is unchanged; every addition is opt-in.
|
|
1066
1067
|
|
|
1068
|
+
**2.2.4** corrects the version banner in `plugin-core.css` and `plugin-theme.css`, which still
|
|
1069
|
+
reported 2.2.0 in the shipped files and their `dist/` copies. No selectors, declarations or
|
|
1070
|
+
JavaScript behaviour changed; the version constant is bumped so cached copies stay distinguishable.
|
|
1071
|
+
|
|
1072
|
+
**2.2.3** is a metadata-only release. It adds the author profile URL, expands the npm keywords
|
|
1073
|
+
with `form-validation`, `phone-input`, `range-slider` and `theming`, and sets
|
|
1074
|
+
`publishConfig.access` explicitly. No JavaScript or CSS behaviour changed; the version constant
|
|
1075
|
+
is bumped so cached copies stay distinguishable.
|
|
1076
|
+
|
|
1067
1077
|
**2.2.2** adds a per-control [field playground](https://akhtar1985.github.io/zidan-select/playground.html)
|
|
1068
1078
|
that previews every option and copies either HTML data attributes or the equivalent vanilla JS,
|
|
1069
1079
|
lists the jsDelivr `.min` CDN URLs for all three builds, and states plainly in the README, demo
|
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.4
|
|
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.4';
|
|
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/plugin-core.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.4 — plugin-core.css
|
|
3
3
|
* Structure and mechanics only: layout, positioning, visibility, focus
|
|
4
4
|
* plumbing and accessible native-input handling. No colours, borders colours,
|
|
5
5
|
* shadows or decorative skin — load plugin-theme.css (or your own theme) for
|
package/dist/plugin-theme.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.4 — plugin-theme.css
|
|
3
3
|
* Design tokens, paint, state colours, preset themes (default, modern,
|
|
4
4
|
* minimal, dark, glass), the five select layouts and framework adapters
|
|
5
5
|
* (bootstrap, tailwind, bulma, foundation).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm Select-only v2.2.
|
|
2
|
+
* ZidanForm Select-only v2.2.4
|
|
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.4';
|
|
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.4
|
|
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.4';
|
|
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
|
@@ -15,6 +15,8 @@ zidan-select/
|
|
|
15
15
|
├─ index.html # tabbed demo + theme showcase
|
|
16
16
|
├─ playground.html # per-field option builder
|
|
17
17
|
├─ playground.css/js # playground-only assets
|
|
18
|
+
├─ robots.txt # Pages crawler directives + sitemap pointer
|
|
19
|
+
├─ sitemap.xml # public Pages URLs
|
|
18
20
|
├─ demo.css / demo.js # demo-only assets
|
|
19
21
|
├─ package.json # npm metadata + scripts
|
|
20
22
|
├─ scripts/
|
|
@@ -96,7 +98,7 @@ tarball only contains the readable files:
|
|
|
96
98
|
| Select-only | `/dist/select/zidan-select.min.js` | `/dist/select/plugin-select-core.min.css` | `/dist/select/plugin-select-theme.min.css` |
|
|
97
99
|
| File-only | `/dist/file/zidan-file.min.js` | `/dist/file/plugin-file-core.min.css` | `/dist/file/plugin-file-theme.min.css` |
|
|
98
100
|
|
|
99
|
-
Prepend `https://cdn.jsdelivr.net/npm/zidan-select@2.2.
|
|
101
|
+
Prepend `https://cdn.jsdelivr.net/npm/zidan-select@2.2.4` to each path. Check the three you use
|
|
100
102
|
with `curl -I` before changing a version, then update the URLs in the README, the demo build
|
|
101
103
|
cards and the playground in the same commit.
|
|
102
104
|
|
|
@@ -117,7 +119,7 @@ Both theme stylesheets keep the token set, the five preset themes (`default`, `m
|
|
|
117
119
|
adapters, so `data-zidan-theme`, `data-zidan-layout` and `data-zidan-framework` behave the same
|
|
118
120
|
as in the full build.
|
|
119
121
|
|
|
120
|
-
Approximate v2.2.
|
|
122
|
+
Approximate v2.2.4 sizes: select ≈95 kB JS + 12 kB core + 32 kB theme; file ≈76 kB JS +
|
|
121
123
|
9 kB core + 35 kB theme, against ≈194 kB JS + 36 kB core + 47 kB theme for the full build.
|
|
122
124
|
|
|
123
125
|
A page should load **one** flavour: a subset **or** the full build. The `__zidanFormGuard`
|
|
@@ -199,7 +201,7 @@ import 'zidan-select/file/css/theme';
|
|
|
199
201
|
|
|
200
202
|
The demo is static and needs no build. `.github/workflows/pages.yml` assembles `_site/` on every
|
|
201
203
|
push to `main` — `index.html`, `playground.html`, `playground.css`, `playground.js`, `demo.css`,
|
|
202
|
-
`demo.js`, the four library files and `docs/` — then uploads it with
|
|
204
|
+
`demo.js`, `robots.txt`, `sitemap.xml`, the four library files and `docs/` — then uploads it with
|
|
203
205
|
`actions/upload-pages-artifact` and publishes it with `actions/deploy-pages`.
|
|
204
206
|
|
|
205
207
|
One-time setup: **Settings → Pages → Build and deployment → Source: GitHub Actions**.
|
|
@@ -211,6 +213,7 @@ One-time setup: **Settings → Pages → Build and deployment → Source: GitHub
|
|
|
211
213
|
| `https://akhtar1985.github.io/zidan-select/docs/` | Documentation index |
|
|
212
214
|
| `/#select`, `/#check`, `/#file`, `/#inputs`, `/#themes` | Deep links to a demo tab |
|
|
213
215
|
| `/playground.html#select`, `#file`, `#checkbox`, `#radio`, `#text` | Deep links to a playground control |
|
|
216
|
+
| `/robots.txt`, `/sitemap.xml` | Crawler directives and the four public page URLs |
|
|
214
217
|
|
|
215
218
|
The workflow only copies demo assets, so `scripts/`, `dist/`, `package.json` and local scratch
|
|
216
219
|
files are never published.
|
package/docs/comparison.md
CHANGED
|
@@ -83,5 +83,5 @@ close some gaps — check the other project's current docs before deciding.
|
|
|
83
83
|
ZidanForm enhances the same native elements the other libraries start from, so migration is
|
|
84
84
|
usually: remove the old library's init call and CSS, add `data-zidan` attributes (or call
|
|
85
85
|
`initZidanForms()`), then keep your existing `<select>` markup. Values, names and validation
|
|
86
|
-
attributes do not change — see [Migrating from 1.x](
|
|
86
|
+
attributes do not change — see [Migrating from 1.x](https://github.com/akhtar1985/zidan-select/blob/main/README.md#migrating-from-1x) for the
|
|
87
87
|
in-library upgrade path.
|
package/docs/index.html
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>ZidanForm documentation</title>
|
|
7
|
+
<meta name="description" content="ZidanForm documentation index: field playground, options and data attributes, validation compatibility, theming, framework integration, build and publish guides.">
|
|
8
|
+
<link rel="canonical" href="https://akhtar1985.github.io/zidan-select/docs/">
|
|
9
|
+
<meta property="og:type" content="website">
|
|
10
|
+
<meta property="og:title" content="ZidanForm documentation">
|
|
11
|
+
<meta property="og:description" content="Options, validation, theming, frameworks and build guides for the ZidanForm vanilla form library.">
|
|
12
|
+
<meta property="og:url" content="https://akhtar1985.github.io/zidan-select/docs/">
|
|
13
|
+
<meta property="og:image" content="https://akhtar1985.github.io/zidan-select/docs/demo-inputs.png">
|
|
14
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
7
15
|
<style>
|
|
8
16
|
:root { color-scheme: light; }
|
|
9
17
|
* { box-sizing: border-box; }
|
package/docs/validation.html
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>ZidanForm × validation libraries</title>
|
|
7
|
+
<meta name="description" content="Validation-library test bench: the same ZidanForm markup under jQuery Validation, JustValidate, Parsley and native HTML5 validation.">
|
|
8
|
+
<link rel="canonical" href="https://akhtar1985.github.io/zidan-select/docs/validation.html">
|
|
9
|
+
<meta property="og:type" content="website">
|
|
10
|
+
<meta property="og:title" content="ZidanForm × validation libraries">
|
|
11
|
+
<meta property="og:description" content="The same ZidanForm markup under jQuery Validation, JustValidate, Parsley and native HTML5 validation.">
|
|
12
|
+
<meta property="og:url" content="https://akhtar1985.github.io/zidan-select/docs/validation.html">
|
|
13
|
+
<meta property="og:image" content="https://akhtar1985.github.io/zidan-select/docs/demo-inputs.png">
|
|
14
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
7
15
|
<link rel="stylesheet" href="../plugin-core.css">
|
|
8
16
|
<link rel="stylesheet" href="../plugin-theme.css">
|
|
9
17
|
<style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zidan-select",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
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. Load only the select-only or file-only build if that is all you need, or the full form bundle to enhance every input at once.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"select",
|
|
@@ -11,14 +11,21 @@
|
|
|
11
11
|
"radio",
|
|
12
12
|
"file-upload",
|
|
13
13
|
"form",
|
|
14
|
+
"form-validation",
|
|
15
|
+
"phone-input",
|
|
16
|
+
"range-slider",
|
|
14
17
|
"vanilla-js",
|
|
15
18
|
"zero-dependency",
|
|
16
19
|
"accessible",
|
|
20
|
+
"theming",
|
|
17
21
|
"bootstrap",
|
|
18
22
|
"tailwind"
|
|
19
23
|
],
|
|
20
24
|
"license": "MIT",
|
|
21
|
-
"author":
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "akhtar1985",
|
|
27
|
+
"url": "https://github.com/akhtar1985"
|
|
28
|
+
},
|
|
22
29
|
"homepage": "https://akhtar1985.github.io/zidan-select/",
|
|
23
30
|
"repository": {
|
|
24
31
|
"type": "git",
|
|
@@ -83,5 +90,8 @@
|
|
|
83
90
|
},
|
|
84
91
|
"engines": {
|
|
85
92
|
"node": ">=18"
|
|
93
|
+
},
|
|
94
|
+
"publishConfig": {
|
|
95
|
+
"access": "public"
|
|
86
96
|
}
|
|
87
97
|
}
|
package/plugin-core.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.4 — plugin-core.css
|
|
3
3
|
* Structure and mechanics only: layout, positioning, visibility, focus
|
|
4
4
|
* plumbing and accessible native-input handling. No colours, borders colours,
|
|
5
5
|
* shadows or decorative skin — load plugin-theme.css (or your own theme) for
|
package/plugin-theme.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.4 — plugin-theme.css
|
|
3
3
|
* Design tokens, paint, state colours, preset themes (default, modern,
|
|
4
4
|
* minimal, dark, glass), the five select layouts and framework adapters
|
|
5
5
|
* (bootstrap, tailwind, bulma, foundation).
|
package/zidan-form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.2.
|
|
2
|
+
* ZidanForm v2.2.4
|
|
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.4';
|
|
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.
|