@avakhula/ui 0.0.161 → 0.0.162

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.161",
3
+ "version": "0.0.162",
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,41 +1,33 @@
1
1
  <template>
2
- <form action="">
3
-
4
- <ib-form-group class="form-group">
5
- <ib-label for="email" required>
6
- Email address
7
- </ib-label>
8
-
9
- <ib-input required autofocus type="email" id="email" name="email" ref="email" :disabled="disabled"
10
- placeholder="Enter your email address" />
11
- </ib-form-group>
12
-
13
- <ib-form-group class="form-group">
14
- <ib-label for="password" required>
15
- Password
16
- </ib-label>
17
-
18
- <ib-input required autofocus type="password" id="password" name="password" :disabled="disabled" />
19
- </ib-form-group>
20
- </form>
21
-
22
- <button type="button" @click="() => disabled = !disabled">Disbaled</button>
2
+ <ib-select is-toggle :options="roles" @input="changeRole" :value="roles.map(role => role.id)">
3
+
4
+ <template v-slot:trigger="{ selectedCount }">
5
+ <ib-button kind="tertiary">
6
+ Org Role ({{ roles.length - selectedCount }} hidden)
7
+ <ib-icon style="paddingLeft: 5px" name="chevron-down-outline"></ib-icon>
8
+ </ib-button>
9
+ </template>
10
+ </ib-select>
23
11
  </template>
24
12
 
25
13
  <script>
26
- import IbInput from "./components/Form/Input/Input.vue"
27
- import IbLabel from "./components/Form/Label/Label.vue"
28
- import IbFormGroup from "./components/Form/FormGroup/FormGroup.vue"
29
-
30
-
14
+ import IbSelect from "./components/TreeSelect/Select.vue"
31
15
  export default {
32
16
  data() {
33
17
  return {
34
- disabled: false,
18
+ roles: [{ "id": 1, "title": "ALL Access", "checked": true, "initiallyVisible": true, "visible": true, "isDisabled": false }, { "id": 2, "title": "Manager", "checked": true, "initiallyVisible": true, "visible": true, "isDisabled": false }, { "id": 3, "title": "Department Chair", "checked": true, "initiallyVisible": true, "visible": true, "isDisabled": false }, { "id": 4, "title": "test role", "checked": true, "initiallyVisible": true, "visible": true, "isDisabled": false }]
19
+ }
20
+ },
21
+ methods: {
22
+ changeRole(a) {
23
+ setTimeout(() => {
24
+ console.log(a)
25
+
26
+ })
35
27
  }
36
28
  },
37
29
  components: {
38
- IbInput, IbLabel, IbFormGroup
30
+ IbSelect
39
31
  }
40
32
  }
41
33
  </script>
@@ -241,7 +241,7 @@ export default {
241
241
  this.actualValue = newVal;
242
242
  },
243
243
  disabled(val) {
244
- this.$globalEvents.$emit(`label:disabled:${this.id}`, val);
244
+ // this.$globalEvents.$emit(`label:disabled:${this.id}`, val);
245
245
  },
246
246
  },
247
247
  emits: [
@@ -249,7 +249,7 @@ export default {
249
249
  "blur",
250
250
  "focus",
251
251
  "update:modelValue",
252
- `label:disabled:${this.id}`,
252
+ // `label:disabled:${this.id}`,
253
253
  ],
254
254
  components: {
255
255
  IbAlert,