@ldmjs/ui 1.0.0-dev-18 → 1.0.0-dev-19
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/dist/index.js +10 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7247,7 +7247,7 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7247
7247
|
async onSelect() {
|
|
7248
7248
|
if (this.handlers.select instanceof Function) {
|
|
7249
7249
|
const selected = await this.handlers.select();
|
|
7250
|
-
if (selected && selected.length) {
|
|
7250
|
+
if (Array.isArray(selected) && selected.length || !Array.isArray(selected) && selected) {
|
|
7251
7251
|
this.selected = selected;
|
|
7252
7252
|
this.onInput();
|
|
7253
7253
|
this.validate();
|
|
@@ -7256,12 +7256,15 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
7256
7256
|
}
|
|
7257
7257
|
validate() {
|
|
7258
7258
|
this.errorBucket = [];
|
|
7259
|
-
let funcResult =
|
|
7260
|
-
if (
|
|
7261
|
-
|
|
7262
|
-
|
|
7259
|
+
let funcResult = true;
|
|
7260
|
+
if (this.required) {
|
|
7261
|
+
funcResult = requiredRule()(this.selectedToArray);
|
|
7262
|
+
if (funcResult !== true) {
|
|
7263
|
+
this.validationMessage = this.messagesBucket.validation || funcResult;
|
|
7264
|
+
return false;
|
|
7265
|
+
}
|
|
7263
7266
|
}
|
|
7264
|
-
this.
|
|
7267
|
+
this.myRules.forEach(func => {
|
|
7265
7268
|
funcResult = func(this.selectedToArray);
|
|
7266
7269
|
if (funcResult !== true) {
|
|
7267
7270
|
this.validationMessage = funcResult;
|
|
@@ -7430,7 +7433,7 @@ ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
7430
7433
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Number)
|
|
7431
7434
|
], SelectListBoxComponent.prototype, "limit", void 0);
|
|
7432
7435
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
7433
|
-
(0,external_vue_property_decorator_.Prop)({ default:
|
|
7436
|
+
(0,external_vue_property_decorator_.Prop)({ default: false }),
|
|
7434
7437
|
ld_select_list_boxvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
7435
7438
|
], SelectListBoxComponent.prototype, "disableDialog", void 0);
|
|
7436
7439
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|