@mediafly/js-ui 47.7.4 → 47.7.5
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.
|
@@ -383,7 +383,16 @@
|
|
|
383
383
|
</span>
|
|
384
384
|
|
|
385
385
|
<!-- Date picker -->
|
|
386
|
-
<div ng-if="schemaField.type === 'date'" class="c-metadata-form__date-input">
|
|
386
|
+
<div ng-if="schemaField.type === 'date' && !schemaField.required" class="c-metadata-form__date-input">
|
|
387
|
+
<mfly:date-input
|
|
388
|
+
input-id="{{ schemaField.name }}"
|
|
389
|
+
is-disabled="$ctrl.isDisabled || ($ctrl.isBulkEdit && !$ctrl.bulkEnabled[schemaField.name])"
|
|
390
|
+
ng-model="$ctrl.metadata[schemaField.name]"
|
|
391
|
+
on-change="$ctrl.change({ [schemaField.name]: value })">
|
|
392
|
+
</mfly:date-input>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<div ng-if="schemaField.type === 'date' && schemaField.required" class="c-metadata-form__date-input">
|
|
387
396
|
<mfly:date-input
|
|
388
397
|
input-id="{{ schemaField.name }}"
|
|
389
398
|
is-disabled="$ctrl.isDisabled || ($ctrl.isBulkEdit && !$ctrl.bulkEnabled[schemaField.name])"
|
package/package.json
CHANGED
|
@@ -383,7 +383,16 @@
|
|
|
383
383
|
</span>
|
|
384
384
|
|
|
385
385
|
<!-- Date picker -->
|
|
386
|
-
<div ng-if="schemaField.type === 'date'" class="c-metadata-form__date-input">
|
|
386
|
+
<div ng-if="schemaField.type === 'date' && !schemaField.required" class="c-metadata-form__date-input">
|
|
387
|
+
<mfly:date-input
|
|
388
|
+
input-id="{{ schemaField.name }}"
|
|
389
|
+
is-disabled="$ctrl.isDisabled || ($ctrl.isBulkEdit && !$ctrl.bulkEnabled[schemaField.name])"
|
|
390
|
+
ng-model="$ctrl.metadata[schemaField.name]"
|
|
391
|
+
on-change="$ctrl.change({ [schemaField.name]: value })">
|
|
392
|
+
</mfly:date-input>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<div ng-if="schemaField.type === 'date' && schemaField.required" class="c-metadata-form__date-input">
|
|
387
396
|
<mfly:date-input
|
|
388
397
|
input-id="{{ schemaField.name }}"
|
|
389
398
|
is-disabled="$ctrl.isDisabled || ($ctrl.isBulkEdit && !$ctrl.bulkEnabled[schemaField.name])"
|