@iris-ui-kit/vue 0.2.19 → 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 (49) hide show
  1. package/dist/admin.cjs +24 -6
  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-2ETVCAVL.js → chunk-4WQOZ2OV.js} +7 -8
  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-FG5USQSY.js +55 -0
  11. package/dist/chunk-FG5USQSY.js.map +1 -0
  12. package/dist/{chunk-W2JVHGFR.js → chunk-MO7AAXA6.js} +33 -13
  13. package/dist/chunk-MO7AAXA6.js.map +1 -0
  14. package/dist/{chunk-H7HVVPYR.js → chunk-UPC4GN3F.js} +8 -2
  15. package/dist/chunk-UPC4GN3F.js.map +1 -0
  16. package/dist/{chunk-72PZMU6R.js → chunk-ZTPIXL7Q.js} +21 -3
  17. package/dist/chunk-ZTPIXL7Q.js.map +1 -0
  18. package/dist/index.cjs +119 -45
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.js +32 -11
  21. package/dist/index.js.map +1 -1
  22. package/dist/layouts.cjs +2 -1
  23. package/dist/layouts.cjs.map +1 -1
  24. package/dist/layouts.js +1 -1
  25. package/dist/provider.cjs +53 -9
  26. package/dist/provider.cjs.map +1 -1
  27. package/dist/provider.js +3 -3
  28. package/dist/skeletons.cjs +2 -1
  29. package/dist/skeletons.cjs.map +1 -1
  30. package/dist/skeletons.js +2 -2
  31. package/dist/skins.cjs +6 -0
  32. package/dist/skins.cjs.map +1 -1
  33. package/dist/skins.js +1 -1
  34. package/dist/theme.cjs +19 -1
  35. package/dist/theme.cjs.map +1 -1
  36. package/dist/theme.js +1 -1
  37. package/dist/undo.cjs +37 -28
  38. package/dist/undo.cjs.map +1 -1
  39. package/dist/undo.d.cts +8 -2
  40. package/dist/undo.d.ts +8 -2
  41. package/dist/undo.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-2ETVCAVL.js.map +0 -1
  44. package/dist/chunk-72PZMU6R.js.map +0 -1
  45. package/dist/chunk-H7HVVPYR.js.map +0 -1
  46. package/dist/chunk-I6D5VXQK.js.map +0 -1
  47. package/dist/chunk-RLVG5JQH.js +0 -46
  48. package/dist/chunk-RLVG5JQH.js.map +0 -1
  49. 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
  () => {
@@ -815,10 +834,7 @@ var IrisNavMenu = vue.defineComponent({
815
834
  "data-iris-nav-group": "",
816
835
  "data-open": shown ? "true" : void 0,
817
836
  "data-depth": String(depth),
818
- class: [
819
- "iris-nav-menu-group",
820
- `iris-nav-menu-group--depth-${Math.min(9, depth)}`
821
- ],
837
+ class: ["iris-nav-menu-group", `iris-nav-menu-group--depth-${Math.min(9, depth)}`],
822
838
  ...horizontal ? {
823
839
  onMouseenter: (event) => {
824
840
  if (!keepsPointerInside(event.currentTarget, event)) {
@@ -1967,6 +1983,8 @@ var IrisAdminTabs = vue.defineComponent({
1967
1983
  onClick: (e) => {
1968
1984
  e.stopPropagation();
1969
1985
  close(tab.key);
1986
+ const root = e.currentTarget.closest('[role="tablist"]');
1987
+ void vue.nextTick(() => focusTab(root, props.nav.getState().activeKey));
1970
1988
  }
1971
1989
  },
1972
1990
  [vue.h(IrisIcon, { name: "x", size: 12 })]