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