@avakhula/ui 0.0.36 → 0.0.37
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 +3080 -3081
- package/dist/index.umd.cjs +40 -40
- package/package.json +1 -1
- package/src/components/TreeSelect/Select.vue +46 -50
package/package.json
CHANGED
|
@@ -234,13 +234,9 @@ import List from "../List.vue";
|
|
|
234
234
|
export default {
|
|
235
235
|
name: "IbTreeSelect",
|
|
236
236
|
props: {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
// },
|
|
241
|
-
// LANG_COMPONENTS: {
|
|
242
|
-
// type: Object,
|
|
243
|
-
// },
|
|
237
|
+
LANG_COMPONENTS: {
|
|
238
|
+
type: Object,
|
|
239
|
+
},
|
|
244
240
|
placeholder: {
|
|
245
241
|
type: String,
|
|
246
242
|
default: "",
|
|
@@ -441,7 +437,7 @@ export default {
|
|
|
441
437
|
},
|
|
442
438
|
},
|
|
443
439
|
mounted() {
|
|
444
|
-
console.log(lang, typeof(lang), 'lang')
|
|
440
|
+
console.log(lang, typeof(lang), 'lang', this.LANG_COMPONENTS, 'LANG_COMPONENTS')
|
|
445
441
|
this.marker = new Mark(this.$refs.list.$el);
|
|
446
442
|
|
|
447
443
|
this.registerDependency();
|
|
@@ -489,48 +485,48 @@ export default {
|
|
|
489
485
|
uid: `f${(~~(Math.random() * 1e8)).toString(16)}`,
|
|
490
486
|
actualStrings: {
|
|
491
487
|
...{
|
|
492
|
-
searchPlaceholder: "Search placeholder",
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
emptyTitle: "Empty title",
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
selectAllOptions: "All Options",
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
allSelected: "All selected",
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
loading: "loading",
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
selectedCount: "Selected {selected} of {all} items",
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
buttonTitle: "Button title",
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
requiredDependencyNotFilled: "Required dependency are not filled",
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
488
|
+
// searchPlaceholder: "Search placeholder",
|
|
489
|
+
searchPlaceholder: lang(
|
|
490
|
+
this.searchPlaceholderText.length
|
|
491
|
+
? this.searchPlaceholderText
|
|
492
|
+
: "search_placeholder",
|
|
493
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
494
|
+
),
|
|
495
|
+
// emptyTitle: "Empty title",
|
|
496
|
+
emptyTitle: lang(
|
|
497
|
+
"empty_title",
|
|
498
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
499
|
+
),
|
|
500
|
+
// selectAllOptions: "All Options",
|
|
501
|
+
selectAllOptions: lang(
|
|
502
|
+
"all_options",
|
|
503
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
504
|
+
),
|
|
505
|
+
// allSelected: "All selected",
|
|
506
|
+
allSelected: lang(
|
|
507
|
+
"all_selected",
|
|
508
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
509
|
+
),
|
|
510
|
+
// loading: "loading",
|
|
511
|
+
loading:
|
|
512
|
+
lang("loading", this.LANG_COMPONENTS?.COMPONENT_SELECT) + "...",
|
|
513
|
+
// selectedCount: "Selected {selected} of {all} items",
|
|
514
|
+
selectedCount: lang(
|
|
515
|
+
"selected_count",
|
|
516
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
517
|
+
),
|
|
518
|
+
// buttonTitle: "Button title",
|
|
519
|
+
buttonTitle:
|
|
520
|
+
this.buttonTitle ||
|
|
521
|
+
lang("button_title", this.LANG_COMPONENTS?.COMPONENT_SELECT),
|
|
522
|
+
// requiredDependencyNotFilled: "Required dependency are not filled",
|
|
523
|
+
requiredDependencyNotFilled:
|
|
524
|
+
// eslint-disable-next-line vue/no-computed-properties-in-data
|
|
525
|
+
this.requiredDependencyNotFilled ||
|
|
526
|
+
lang(
|
|
527
|
+
"required_dependency_are_not_filled",
|
|
528
|
+
this.LANG_COMPONENTS?.COMPONENT_SELECT
|
|
529
|
+
),
|
|
534
530
|
},
|
|
535
531
|
...this.strings,
|
|
536
532
|
},
|