@iris-ui-kit/vue 0.2.20 → 0.2.21

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.
Files changed (40) hide show
  1. package/dist/admin.cjs +23 -2
  2. package/dist/admin.cjs.map +1 -1
  3. package/dist/admin.js +3 -3
  4. package/dist/{chunk-I6D5VXQK.js → chunk-3V46HGRC.js} +4 -3
  5. package/dist/chunk-3V46HGRC.js.map +1 -0
  6. package/dist/{chunk-MMQKSFME.js → chunk-4WQOZ2OV.js} +6 -4
  7. package/dist/chunk-4WQOZ2OV.js.map +1 -0
  8. package/dist/{chunk-QLUIKEMJ.js → chunk-ENKE2BPC.js} +3 -3
  9. package/dist/{chunk-QLUIKEMJ.js.map → chunk-ENKE2BPC.js.map} +1 -1
  10. package/dist/{chunk-W2JVHGFR.js → chunk-MO7AAXA6.js} +33 -13
  11. package/dist/chunk-MO7AAXA6.js.map +1 -0
  12. package/dist/{chunk-H7HVVPYR.js → chunk-UPC4GN3F.js} +8 -2
  13. package/dist/chunk-UPC4GN3F.js.map +1 -0
  14. package/dist/{chunk-72PZMU6R.js → chunk-ZTPIXL7Q.js} +21 -3
  15. package/dist/chunk-ZTPIXL7Q.js.map +1 -0
  16. package/dist/index.cjs +81 -13
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.js +31 -10
  19. package/dist/index.js.map +1 -1
  20. package/dist/layouts.cjs +2 -1
  21. package/dist/layouts.cjs.map +1 -1
  22. package/dist/layouts.js +1 -1
  23. package/dist/provider.cjs +53 -9
  24. package/dist/provider.cjs.map +1 -1
  25. package/dist/provider.js +3 -3
  26. package/dist/skeletons.cjs +2 -1
  27. package/dist/skeletons.cjs.map +1 -1
  28. package/dist/skeletons.js +2 -2
  29. package/dist/skins.cjs +6 -0
  30. package/dist/skins.cjs.map +1 -1
  31. package/dist/skins.js +1 -1
  32. package/dist/theme.cjs +19 -1
  33. package/dist/theme.cjs.map +1 -1
  34. package/dist/theme.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-72PZMU6R.js.map +0 -1
  37. package/dist/chunk-H7HVVPYR.js.map +0 -1
  38. package/dist/chunk-I6D5VXQK.js.map +0 -1
  39. package/dist/chunk-MMQKSFME.js.map +0 -1
  40. package/dist/chunk-W2JVHGFR.js.map +0 -1
package/dist/admin.cjs CHANGED
@@ -33,7 +33,8 @@ var IrisSidebarLayout = vue.defineComponent({
33
33
  () => props.collapsed,
34
34
  (value) => {
35
35
  if (value !== void 0) internalCollapsed.value = value;
36
- }
36
+ },
37
+ { immediate: true }
37
38
  );
38
39
  const setCollapsed = (value) => {
39
40
  if (!isControlled.value) internalCollapsed.value = value;
@@ -192,7 +193,7 @@ vue.defineComponent({
192
193
  },
193
194
  setup(props, { slots }) {
194
195
  const current = vue.ref(props.store.store.getState());
195
- const unsubscribe = props.store.store.subscribe((next) => {
196
+ let unsubscribe = props.store.store.subscribe((next) => {
196
197
  current.value = next;
197
198
  });
198
199
  let applied = null;
@@ -214,6 +215,24 @@ vue.defineComponent({
214
215
  vue.watch(current, () => {
215
216
  if (applied) applyCurrent();
216
217
  });
218
+ vue.watch(
219
+ () => props.store,
220
+ (nextStore) => {
221
+ unsubscribe();
222
+ unsubscribe = nextStore.store.subscribe((next) => {
223
+ current.value = next;
224
+ });
225
+ current.value = nextStore.store.getState();
226
+ if (applied) applyCurrent();
227
+ }
228
+ );
229
+ vue.watch(
230
+ () => props.target,
231
+ () => {
232
+ if (applied) applyCurrent();
233
+ if (dirApplied) applyDir();
234
+ }
235
+ );
217
236
  vue.watch(
218
237
  () => props.dir,
219
238
  () => {
@@ -1964,6 +1983,8 @@ var IrisAdminTabs = vue.defineComponent({
1964
1983
  onClick: (e) => {
1965
1984
  e.stopPropagation();
1966
1985
  close(tab.key);
1986
+ const root = e.currentTarget.closest('[role="tablist"]');
1987
+ void vue.nextTick(() => focusTab(root, props.nav.getState().activeKey));
1967
1988
  }
1968
1989
  },
1969
1990
  [vue.h(IrisIcon, { name: "x", size: 12 })]