@simai-studio/ui 5.20261022.1534 → 5.20261022.1814
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 +4 -4
- package/distr/component/textarea/css/textarea.min.css +1 -1
- package/distr/component/textarea/js/textarea.min.js +1 -1
- package/distr/core/contracts/packages/larena.package.json +1 -0
- package/distr/core/contracts/public-js-api.json +2 -1
- package/distr/smart/datepicker/js/datepicker.min.js +10 -9
- package/distr/smart/datepicker/smart.manifest.json +17 -7
- package/distr/smart/datepicker/template/default.js +2 -1
- package/distr/smart/field-renderers/js/field-renderers.min.js +120 -88
- package/distr/smart/inputs/js/inputs.min.js +3 -3
- package/distr/smart/inputs/smart.manifest.json +1 -1
- package/distr/smart/textarea/js/textarea.min.js +1 -1
- package/distr/smart/textarea/smart.manifest.json +7 -5
- package/package-manifest.json +15 -15
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 2,
|
|
3
3
|
"id": "smart.datepicker",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"title": "Datepicker",
|
|
6
6
|
"summary": "Accessible date and date-range picker with popup and inline presentation, calendar navigation and host-owned values.",
|
|
7
7
|
"kind": "composite",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"value": {
|
|
50
50
|
"type": "string",
|
|
51
51
|
"default": "",
|
|
52
|
-
"description": "The ISO date (yyyy-mm-dd). As a property, [start, end] for a range
|
|
52
|
+
"description": "The ISO date (yyyy-mm-dd). As a property, [start, end] for a range. The attribute is the initial value: once the date is cleared it stays empty."
|
|
53
53
|
},
|
|
54
54
|
"date": {
|
|
55
55
|
"type": "string",
|
|
56
56
|
"default": "",
|
|
57
|
-
"description": "The ISO date (yyyy-mm-dd) chosen; value is read when date is absent."
|
|
57
|
+
"description": "The ISO date (yyyy-mm-dd) chosen; value is read only when date is absent, so date=\"\" is a cleared value."
|
|
58
58
|
},
|
|
59
59
|
"start-value": {
|
|
60
60
|
"type": "string",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"format": {
|
|
115
115
|
"type": "string",
|
|
116
116
|
"default": "DD.MM.YYYY",
|
|
117
|
-
"description": "How the date is shown in the field, e.g. DD.MM.YYYY. The value stays ISO."
|
|
117
|
+
"description": "How the date is shown in the field and read when typed, e.g. DD.MM.YYYY: the whole text one date, a four-digit year from 1000 to 9999. The value stays ISO."
|
|
118
118
|
},
|
|
119
119
|
"root-class": {
|
|
120
120
|
"type": "string",
|
|
@@ -191,6 +191,16 @@
|
|
|
191
191
|
"default": false,
|
|
192
192
|
"description": "Mark the field required in its form."
|
|
193
193
|
},
|
|
194
|
+
"invalid": {
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"default": false,
|
|
197
|
+
"description": "Draw the field invalid: the error border and aria-invalid on the native input. Removing it restores the valid field."
|
|
198
|
+
},
|
|
199
|
+
"error-message": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"default": "",
|
|
202
|
+
"description": "The message under an invalid field; ignored while the field is valid."
|
|
203
|
+
},
|
|
194
204
|
"icon-start": {
|
|
195
205
|
"type": "string",
|
|
196
206
|
"default": "calendar_today",
|
|
@@ -578,11 +588,11 @@
|
|
|
578
588
|
"source_artifacts": [
|
|
579
589
|
{
|
|
580
590
|
"path": "src/smart/datepicker/index.js",
|
|
581
|
-
"sha256": "
|
|
591
|
+
"sha256": "3d5194c8215b86e834b21cd5ed46925ae18d0aa524c06fbf54cef03113a47085"
|
|
582
592
|
},
|
|
583
593
|
{
|
|
584
594
|
"path": "src/smart/datepicker/js/templates/default.js",
|
|
585
|
-
"sha256": "
|
|
595
|
+
"sha256": "7c9b379eda8911e7e31ce7ed3076121fcb98b5d688d53eeca1af9e2f8bd98492"
|
|
586
596
|
},
|
|
587
597
|
{
|
|
588
598
|
"path": "src/smart/datepicker/rule.js",
|
|
@@ -590,7 +600,7 @@
|
|
|
590
600
|
},
|
|
591
601
|
{
|
|
592
602
|
"path": "src/smart/datepicker/docs/smart-datepicker-guide.md",
|
|
593
|
-
"sha256": "
|
|
603
|
+
"sha256": "6186dd8f081883431b8ce6292ee936dee08afaf7ce7a22ec914f9254fda0eeec"
|
|
594
604
|
}
|
|
595
605
|
],
|
|
596
606
|
"generated_runtime": [
|
|
@@ -84,7 +84,8 @@ function renderDatepickerInput(context) {
|
|
|
84
84
|
aria-label=${context.label ? nothing : (context.ariaLabel || nothing)}
|
|
85
85
|
placeholder=${context.placeholder || nothing} icon-start=${context.iconStart || nothing}
|
|
86
86
|
root-class=${context.inputRootClass || nothing} value=${context.displayValue || ''}
|
|
87
|
-
?disabled=${context.disabled} ?required=${context.required} ?
|
|
87
|
+
?disabled=${context.disabled} ?required=${context.required} ?invalid=${context.invalid}
|
|
88
|
+
error-message=${context.errorMessage || nothing} ?mask=${context.mask}
|
|
88
89
|
mask-pattern=${context.maskPattern || nothing} mask-lazy=${String(context.maskLazy)}
|
|
89
90
|
mask-placeholder-char=${context.maskPlaceholderChar || nothing}
|
|
90
91
|
mask-options=${context.maskOptions || nothing} ?readonly=${context.readonly}
|