@marianmeres/stuic 3.182.0 → 3.184.0
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 +1 -1
- package/dist/components/Input/FieldAssets.svelte +9 -132
- package/dist/components/Input/FieldSingleAsset.svelte +934 -0
- package/dist/components/Input/FieldSingleAsset.svelte.d.ts +152 -0
- package/dist/components/Input/README.md +269 -21
- package/dist/components/Input/_internal/asset-helpers.d.ts +16 -0
- package/dist/components/Input/_internal/asset-helpers.js +46 -0
- package/dist/components/Input/_internal/paste-target.d.ts +15 -0
- package/dist/components/Input/_internal/paste-target.js +114 -0
- package/dist/components/Input/field-single-asset-i18n-sk.d.ts +21 -0
- package/dist/components/Input/field-single-asset-i18n-sk.js +50 -0
- package/dist/components/Input/field-single-asset-i18n.d.ts +69 -0
- package/dist/components/Input/field-single-asset-i18n.js +76 -0
- package/dist/components/Input/index.css +217 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.js +3 -0
- package/docs/domains/actions.md +3 -3
- package/docs/domains/components.md +22 -21
- package/package.json +1 -1
|
@@ -62,25 +62,26 @@
|
|
|
62
62
|
|
|
63
63
|
### Form
|
|
64
64
|
|
|
65
|
-
| Component | Purpose
|
|
66
|
-
| --------------------------------------------- |
|
|
67
|
-
| Input (FieldInput, FieldSelect, etc.) | Form fields
|
|
68
|
-
| FieldMoney | Money input storing integer minor units (e.g. cents)
|
|
69
|
-
| Calendar | Month grid for single-date / range picking: keyboard grid, min/max, dropdown caption, i18n
|
|
70
|
-
| FieldDate, FieldDateRange | Date / date-range fields around Calendar: trigger + dialog or embedded; ISO hidden inputs
|
|
71
|
-
| FieldPhoneNumber | International phone input with country picker
|
|
72
|
-
| FieldObject | Dual-mode JSON object editor (pretty-print/raw)
|
|
73
|
-
| CronInput | Cron expression editor with presets and validation
|
|
74
|
-
| Fieldset | Field grouping with legend
|
|
75
|
-
| FieldKeyValues | Key-value pair editor
|
|
76
|
-
| FieldTable | Rows × typed columns editor (text/number/select/checkbox/date/url cells, container layout)
|
|
77
|
-
| FieldsBuilder | Field-definition list editor ("what properties does a thing have?")
|
|
78
|
-
| FieldAssets | File/asset management
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
65
|
+
| Component | Purpose |
|
|
66
|
+
| --------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| Input (FieldInput, FieldSelect, etc.) | Form fields |
|
|
68
|
+
| FieldMoney | Money input storing integer minor units (e.g. cents) |
|
|
69
|
+
| Calendar | Month grid for single-date / range picking: keyboard grid, min/max, dropdown caption, i18n |
|
|
70
|
+
| FieldDate, FieldDateRange | Date / date-range fields around Calendar: trigger + dialog or embedded; ISO hidden inputs |
|
|
71
|
+
| FieldPhoneNumber | International phone input with country picker |
|
|
72
|
+
| FieldObject | Dual-mode JSON object editor (pretty-print/raw) |
|
|
73
|
+
| CronInput | Cron expression editor with presets and validation |
|
|
74
|
+
| Fieldset | Field grouping with legend |
|
|
75
|
+
| FieldKeyValues | Key-value pair editor |
|
|
76
|
+
| FieldTable | Rows × typed columns editor (text/number/select/checkbox/date/url cells, container layout) |
|
|
77
|
+
| FieldsBuilder | Field-definition list editor ("what properties does a thing have?") |
|
|
78
|
+
| FieldAssets | File/asset management |
|
|
79
|
+
| FieldSingleAsset | One asset (avatar, logo, cover): replace-in-place tile, inline remove + undo, rollback on failure |
|
|
80
|
+
| LoginForm, LoginFormModal | Standalone login form with optional modal variant |
|
|
81
|
+
| RegisterForm | Standalone registration form with declarative extra fields |
|
|
82
|
+
| LoginOrRegisterForm, LoginOrRegisterFormModal | Composite login/register/verify form (3 modes, shared social-logins) |
|
|
83
|
+
| EmailVerifyForm | Post-registration email-verify form (OtpInput + resend cooldown) |
|
|
84
|
+
| OtpInput | Generic N-slot one-time-code input (numeric/alphanumeric, paste-distribute) |
|
|
84
85
|
|
|
85
86
|
### Display
|
|
86
87
|
|
|
@@ -157,7 +158,7 @@ failed `validate()` (imperative or event-driven) renders the inline error.
|
|
|
157
158
|
Use `validate={false}` to bypass stuic's validation entirely.
|
|
158
159
|
|
|
159
160
|
> **Why default-on?** Hidden-input field components (`FieldPhoneNumber`,
|
|
160
|
-
> `FieldCountry`, `FieldObject`, `FieldAssets`, `FieldInputLocalized`,
|
|
161
|
+
> `FieldCountry`, `FieldObject`, `FieldAssets`, `FieldSingleAsset`, `FieldInputLocalized`,
|
|
161
162
|
> `FieldKeyValues`, `FieldTable`, `FieldLikeButton`, `FieldDate`, `FieldDateRange`, `Rating`) _must_ be default-on because hidden
|
|
162
163
|
> inputs are excluded from native browser constraint validation — without the
|
|
163
164
|
> stuic action enforcing `required` in a `customValidator`, the attribute is a
|
|
@@ -167,7 +168,7 @@ Use `validate={false}` to bypass stuic's validation entirely.
|
|
|
167
168
|
### Per-field methods
|
|
168
169
|
|
|
169
170
|
Available on `FieldInput`, `FieldMoney`, `FieldTextarea`, `FieldCheckbox`,
|
|
170
|
-
`FieldSelect`, `FieldFile`, `FieldObject`, `FieldAssets`, `FieldInputLocalized`,
|
|
171
|
+
`FieldSelect`, `FieldFile`, `FieldObject`, `FieldAssets`, `FieldSingleAsset`, `FieldInputLocalized`,
|
|
171
172
|
`FieldKeyValues`, `FieldTable`, `FieldPhoneNumber`, `FieldCountry`, `FieldLikeButton`,
|
|
172
173
|
`FieldRadios`, `FieldSwitch`, `FieldOptions`, `FieldDate`, `FieldDateRange`, and
|
|
173
174
|
`Switch`:
|