@avakhula/ui 0.0.58 → 0.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
package/src/App.vue CHANGED
@@ -1,90 +1,29 @@
1
1
  <template>
2
- <ib-select
3
- :options="roles"
4
- :is-required="true"
5
- :is-multiple="false"
6
- :show-clear-button="false"
7
- v-model:model-value="value"
8
- >
9
- </ib-select>
10
-
11
- <button @click="() => value = null">test</button>
12
- </template>
2
+ <div style="padding-top: 200px;">
3
+ <ib-text-editor character-limit="10" placeholder="test" @change="onChange" @blur="onBlur" />
4
+ </div>
5
+ </template>
13
6
 
14
7
  <script>
15
- import IbSelect from "./components/TreeSelect/Select.vue";
8
+ import IbTextEditor from "./components/Form/TextEditor/TextEditor.vue";
16
9
 
17
10
  export default {
18
- data() {
19
- return {
20
- value: 1,
21
- value1: "123",
22
- connections: [
23
- {
24
- id: 5,
25
- title: "Blackboard Demo",
26
- lms_connection_type: 3,
27
- initiallyVisible: true,
28
- visible: true,
29
- isDisabled: false,
30
- checked: false,
31
- },
32
- {
33
- id: 3,
34
- title: "Ilias",
35
- lms_connection_type: 16,
36
- initiallyVisible: true,
37
- visible: true,
38
- isDisabled: false,
39
- checked: true,
40
- },
41
- {
42
- id: 9,
43
- title: "Ilias Don't Delete Pol",
44
- lms_connection_type: 16,
45
- initiallyVisible: true,
46
- visible: true,
47
- isDisabled: false,
48
- checked: false,
49
- },
50
- {
51
- id: 10,
52
- title: "Sakai Demo",
53
- lms_connection_type: 18,
54
- initiallyVisible: true,
55
- visible: true,
56
- isDisabled: false,
57
- checked: false,
58
- },
59
- ],
60
- roles: [
61
- {
62
- id: 1,
63
- title: "test role",
64
- initiallyVisible: true,
65
- visible: true,
66
- isDisabled: false,
67
- checked: false,
68
- },
69
- {
70
- id: 2,
71
- title: "testset",
72
- initiallyVisible: true,
73
- visible: true,
74
- isDisabled: false,
75
- checked: false,
76
- },
77
- ],
78
- };
79
- },
80
11
  components: {
81
- IbSelect,
12
+ IbTextEditor,
82
13
  },
83
- watch: {
84
- value(val) {
85
- console.log('testsetset')
14
+ methods: {
15
+ onChange(delta, oldValue, source) {
16
+ console.log(delta, oldValue, source);
17
+ },
18
+ onBlur(val, test) {
19
+ console.log(val, test);
86
20
  },
87
21
  },
88
22
  };
89
23
  </script>
90
-
24
+ <style lang="scss">
25
+ @import "./assets/scss/style.scss";
26
+ body {
27
+ background-color: rgba(128, 128, 128, 0.079);
28
+ }
29
+ </style>
@@ -31,9 +31,6 @@ import IbCharacterCount from "../CharactersCount.vue";
31
31
  export default {
32
32
  name: "IbTextarea",
33
33
  props: {
34
- modelValue: {
35
- type: String,
36
- },
37
34
  disabled: {
38
35
  type: Boolean,
39
36
  default: false,
@@ -61,15 +58,9 @@ export default {
61
58
  default: "",
62
59
  },
63
60
  },
64
- watch: {
65
- val(val) {
66
- console.log('test')
67
- this.$emit("update:modelValue", val);
68
- }
69
- },
70
61
  data() {
71
62
  return {
72
- val: this.modelValue,
63
+ val: "",
73
64
  };
74
65
  },
75
66
  methods: {
@@ -13,6 +13,7 @@
13
13
  <ib-tooltip v-if="tooltipTextSorting" :text="tooltipTextSorting">
14
14
  </ib-tooltip>
15
15
  </button>
16
+
16
17
  <ib-icon-button kind="white" size="s" @click="clickHandler">
17
18
  <ion-icon :name="iconType"></ion-icon>
18
19
  <ib-tooltip v-if="tooltipIconSorting" :text="tooltipIconSorting">
@@ -32,13 +33,7 @@
32
33
  }"
33
34
  >
34
35
  {{ title }}
35
- <ib-icon
36
- v-if="iconType"
37
- :name="iconType"
38
- :style="{
39
- fontSize: iconSize + 'px',
40
- }"
41
- ></ib-icon>
36
+ <ib-icon v-if="iconType" :name="iconType"></ib-icon>
42
37
  <ib-tooltip v-if="tooltipTextSorting" :text="tooltipTextSorting">
43
38
  </ib-tooltip>
44
39
  </button>
@@ -101,7 +96,7 @@ export default {
101
96
  this.currentTypeSort = null;
102
97
  },
103
98
  updateTypeSorting() {
104
- this.$emit("update-sorting", this.typeSort);
99
+ this.$emit("update-sorting", this.currentTypeSort);
105
100
  },
106
101
  },
107
102
  computed: {
@@ -519,7 +519,7 @@ export default {
519
519
  lang(
520
520
  "required_dependency_are_not_filled",
521
521
  this.LANG_COMPONENTS?.COMPONENT_SELECT
522
- ),
522
+ ),
523
523
  },
524
524
  ...this.strings,
525
525
  },
package/src/main.js CHANGED
@@ -9,4 +9,4 @@ app.config.globalProperties.$emitEvent = function (event, ...args) {
9
9
  this.$emit.apply(this, arguments);
10
10
  this.$emit("all", { event, args });
11
11
  };
12
- app.mount("#app");
12
+ app.mount("#app");