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