@threadlabs/looma 0.43.0 → 0.43.1

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 (37) hide show
  1. package/components/ui-card/ui-card.html +6 -6
  2. package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
  3. package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
  4. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +1 -0
  5. package/dist/index.js +1 -1
  6. package/docs/README.md +2 -2
  7. package/docs/card.html +2 -6
  8. package/docs/card.js +7 -37
  9. package/docs/catalog.json +214 -10
  10. package/docs/catalog.mjs +1 -1
  11. package/docs/customizer-render.mjs +7 -6
  12. package/docs/customizer.js +2 -7
  13. package/docs/documentation.css +3 -7
  14. package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
  15. package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
  16. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
  17. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
  18. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
  19. package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
  20. package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
  21. package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
  22. package/docs/index.d.ts +1 -1
  23. package/docs/local-server.mjs +2 -5
  24. package/docs/pastoral.svg +54 -0
  25. package/docs/portrait.svg +15 -0
  26. package/docs/render.mjs +33 -3
  27. package/docs/site.mjs +22 -54
  28. package/package.json +1 -1
  29. package/styles/ui-card.css +6 -6
  30. package/vanilla/UiEditorTableOverlay.js +50 -36
  31. package/vue/UiCard.vue +6 -6
  32. package/vue/UiEditorTableOverlay.d.ts +11 -1
  33. package/vue/UiEditorTableOverlay.vue +98 -63
  34. package/vue/chunks/UiCard.js +1 -1
  35. package/vue/chunks/UiEditorTableOverlay.js +41 -13
  36. package/vue/components.css +54 -53
  37. package/docs/preview.js +0 -22
@@ -667,63 +667,79 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
667
667
  aria-label="Table controls"
668
668
  v-bind="nativeAttrs($attrs)"
669
669
  data-hn
670
+ data-hn-ui-editor-table-overlay
670
671
  :hidden="!checkedProps.open"
671
672
  v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
672
673
  :data-ui-editor-table-overlay-prop-geometry="reflectedProp('geometry', 'geometry', checkedProps.geometry, undefined, false)"
673
674
  :data-ui-editor-table-overlay-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
674
675
  ref="root"
675
676
  >
676
- <div class="rows">
677
+ <slot />
678
+ <div class="rows" data-hn-ui-editor-table-overlay>
677
679
  <KeyedBoundary><div
678
680
  v-for="control in uniqueKeys(rows, (control, index, loop) => control.key)"
679
681
  :key="control.key"
680
682
  class="control row"
683
+ data-hn-ui-editor-table-overlay
681
684
  :data-control-key="control.key"
682
685
  :class="{ active: control.key === activeKey }"
683
686
  :style="{ top: control.offset }"
684
687
  >
685
- <span class="line" aria-hidden="true"></span>{{ ' ' }}<span
688
+ <span class="line" aria-hidden="true" data-hn-ui-editor-table-overlay></span>{{
689
+ ' '
690
+ }}<span
686
691
  class="guide"
687
692
  data-ui-guide=""
688
693
  aria-hidden="true"
694
+ data-hn-ui-editor-table-overlay
689
695
  ></span>{{ ' ' }}<button
690
696
  type="button"
691
697
  class="handle"
698
+ data-hn-ui-editor-table-overlay
692
699
  :data-ui-affordance="control.affordance"
693
700
  :data-action="control.action"
694
701
  :data-boundary-index="control.index"
695
702
  :aria-label="control.label"
696
703
  >
697
- <UiIcon class="ui-icon" name="plus" />{{ ' ' }}<span class="tooltip" role="tooltip">{{
698
- control.label
699
- }}</span>
704
+ <UiIcon class="ui-icon" name="plus" />{{ ' ' }}<span
705
+ class="tooltip"
706
+ role="tooltip"
707
+ data-hn-ui-editor-table-overlay
708
+ >{{ control.label }}</span>
700
709
  </button>
701
710
  </div></KeyedBoundary>
702
711
  </div>
703
- <div class="cols">
712
+ <div class="cols" data-hn-ui-editor-table-overlay>
704
713
  <KeyedBoundary><div
705
714
  v-for="control in uniqueKeys(cols, (control, indexLoop, loop) => control.key)"
706
715
  :key="control.key"
707
716
  class="control col"
717
+ data-hn-ui-editor-table-overlay
708
718
  :data-control-key="control.key"
709
719
  :class="{ active: control.key === activeKey }"
710
720
  :style="{ left: control.offset }"
711
721
  >
712
- <span class="line" aria-hidden="true"></span>{{ ' ' }}<span
722
+ <span class="line" aria-hidden="true" data-hn-ui-editor-table-overlay></span>{{
723
+ ' '
724
+ }}<span
713
725
  class="guide"
714
726
  data-ui-guide=""
715
727
  aria-hidden="true"
728
+ data-hn-ui-editor-table-overlay
716
729
  ></span>{{ ' ' }}<button
717
730
  type="button"
718
731
  class="handle"
732
+ data-hn-ui-editor-table-overlay
719
733
  :data-ui-affordance="control.affordance"
720
734
  :data-action="control.action"
721
735
  :data-boundary-index="control.index"
722
736
  :aria-label="control.label"
723
737
  >
724
- <UiIcon class="ui-icon" name="plus" />{{ ' ' }}<span class="tooltip" role="tooltip">{{
725
- control.label
726
- }}</span>
738
+ <UiIcon class="ui-icon" name="plus" />{{ ' ' }}<span
739
+ class="tooltip"
740
+ role="tooltip"
741
+ data-hn-ui-editor-table-overlay
742
+ >{{ control.label }}</span>
727
743
  </button>
728
744
  </div></KeyedBoundary>
729
745
  </div>
@@ -733,22 +749,30 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
733
749
  data-action="select-row"
734
750
  title="Drag row to reorder; click for actions"
735
751
  aria-label="Row actions"
752
+ data-hn-ui-editor-table-overlay
736
753
  :data-row-index="guardedBinding"
737
754
  :data-column-index="guardedBinding2"
738
755
  :style="{ top: guarded }"
739
756
  >
740
- <span class="glyph"><UiIcon class="ui-icon" name="grip-vertical" /></span>
757
+ <span class="glyph" data-hn-ui-editor-table-overlay><UiIcon
758
+ class="ui-icon"
759
+ name="grip-vertical"
760
+ /></span>
741
761
  </button>{{ ' ' }}<button
742
762
  type="button"
743
763
  class="selector column"
744
764
  data-action="select-column"
745
765
  title="Drag column to reorder; click for actions"
746
766
  aria-label="Column actions"
767
+ data-hn-ui-editor-table-overlay
747
768
  :data-row-index="guardedBinding4"
748
769
  :data-column-index="guardedBinding5"
749
770
  :style="{ left: guardedBinding3 }"
750
771
  >
751
- <span class="glyph"><UiIcon class="ui-icon" name="grip-horizontal" /></span>
772
+ <span class="glyph" data-hn-ui-editor-table-overlay><UiIcon
773
+ class="ui-icon"
774
+ name="grip-horizontal"
775
+ /></span>
752
776
  </button>{{ ' ' }}</template>{{ ' ' }}<button
753
777
  v-if="active"
754
778
  type="button"
@@ -756,6 +780,7 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
756
780
  data-action="open-cell-menu"
757
781
  title="Cell actions"
758
782
  aria-label="Cell actions"
783
+ data-hn-ui-editor-table-overlay
759
784
  :data-row-index="guardedBinding8"
760
785
  :data-column-index="guardedBinding9"
761
786
  :style="{ left: guardedBinding6, top: guardedBinding7 }"
@@ -766,44 +791,46 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
766
791
  data-drop-indicator=""
767
792
  hidden=""
768
793
  aria-hidden="true"
794
+ data-hn-ui-editor-table-overlay
769
795
  ></span>
770
796
  </div>
771
797
  </template>
772
798
 
773
799
  <style scoped>
774
800
  @scope (.ui-editor-table-overlay) to ([data-hn]) {
775
- :global(:scope) {
801
+ :global(:scope:where([data-hn-ui-editor-table-overlay])) {
776
802
  display: block !important;
777
803
  width: 100%;
778
804
  height: 100%;
779
805
  overflow: visible;
780
806
  pointer-events: none;
781
807
  }
782
- :global(:scope) {
808
+ :global(:scope:where([data-hn-ui-editor-table-overlay])) {
783
809
  position: relative;
784
810
  width: 100%;
785
811
  height: 100%;
786
812
  overflow: visible;
787
813
  pointer-events: none;
788
814
  }
789
- :global(.rows), :global(.cols) {
815
+ :global(.rows:where([data-hn-ui-editor-table-overlay])),
816
+ :global(.cols:where([data-hn-ui-editor-table-overlay])) {
790
817
  pointer-events: none;
791
818
  position: absolute;
792
819
  }
793
- :global(.rows) {
820
+ :global(.rows:where([data-hn-ui-editor-table-overlay])) {
794
821
  inset: 0;
795
822
  width: 100%;
796
823
  }
797
- :global(.cols) {
824
+ :global(.cols:where([data-hn-ui-editor-table-overlay])) {
798
825
  inset: 0;
799
826
  height: 100%;
800
827
  }
801
- :global(.control) {
828
+ :global(.control:where([data-hn-ui-editor-table-overlay])) {
802
829
  position: absolute;
803
830
  z-index: 1;
804
831
  pointer-events: none;
805
832
  }
806
- :global(.handle) {
833
+ :global(.handle:where([data-hn-ui-editor-table-overlay])) {
807
834
  position: absolute;
808
835
  display: inline-flex !important;
809
836
  align-items: center !important;
@@ -830,64 +857,65 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
830
857
  pointer-events: auto;
831
858
  cursor: pointer;
832
859
  }
833
- :global(.handle) {
860
+ :global(.handle:where([data-hn-ui-editor-table-overlay])) {
834
861
  --_ui-default-icon-size: 14px;
835
862
  --_ui-default-icon-stroke-width: 2;
836
863
  }
837
- :global(.handle[data-ui-proximity="near"]),
838
- :global(.control.active .handle),
839
- :global(.handle:focus-visible) {
864
+ :global(.handle[data-ui-proximity="near"]:where([data-hn-ui-editor-table-overlay])),
865
+ :global(.control.active .handle:where([data-hn-ui-editor-table-overlay])),
866
+ :global(.handle:focus-visible:where([data-hn-ui-editor-table-overlay])) {
840
867
  opacity: 1;
841
868
  scale: 1;
842
869
  }
843
- :global(.control.active .handle), :global(.handle:focus-visible) {
870
+ :global(.control.active .handle:where([data-hn-ui-editor-table-overlay])),
871
+ :global(.handle:focus-visible:where([data-hn-ui-editor-table-overlay])) {
844
872
  border-color: var(--ui-affordance-direct-color, var(--ui-accent-solid));
845
873
  background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
846
874
  color: var(--ui-text-on-accent);
847
875
  box-shadow: var(--ui-shadow-sm, 0 1px 3px rgb(0 0 0 / 0.1));
848
876
  }
849
- :global(.handle:focus-visible),
850
- :global(.selector:focus-visible),
851
- :global(.cell-menu:focus-visible) {
877
+ :global(.handle:focus-visible:where([data-hn-ui-editor-table-overlay])),
878
+ :global(.selector:focus-visible:where([data-hn-ui-editor-table-overlay])),
879
+ :global(.cell-menu:focus-visible:where([data-hn-ui-editor-table-overlay])) {
852
880
  outline: var(--ui-focus-width) solid var(--ui-focus-ring);
853
881
  outline-offset: var(--ui-focus-width);
854
882
  }
855
- :global(.control.row) {
883
+ :global(.control.row:where([data-hn-ui-editor-table-overlay])) {
856
884
  left: 0;
857
885
  width: 100%;
858
886
  height: 0;
859
887
  }
860
- :global(.control.row .handle) {
888
+ :global(.control.row .handle:where([data-hn-ui-editor-table-overlay])) {
861
889
  top: -12px;
862
890
  left: -30px;
863
891
  }
864
- :global(.control.col) {
892
+ :global(.control.col:where([data-hn-ui-editor-table-overlay])) {
865
893
  top: 0;
866
894
  width: 0;
867
895
  height: 100%;
868
896
  }
869
- :global(.control.col .handle) {
897
+ :global(.control.col .handle:where([data-hn-ui-editor-table-overlay])) {
870
898
  top: -30px;
871
899
  left: -12px;
872
900
  }
873
- :global(.line) {
901
+ :global(.line:where([data-hn-ui-editor-table-overlay])) {
874
902
  position: absolute;
875
903
  background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
876
904
  opacity: 0;
877
905
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
878
906
  }
879
- :global(.control.row .line) {
907
+ :global(.control.row .line:where([data-hn-ui-editor-table-overlay])) {
880
908
  inset: calc(-0.5 * var(--ui-accent-line-width)) 0 auto;
881
909
  height: var(--ui-accent-line-width);
882
910
  }
883
- :global(.control.col .line) {
911
+ :global(.control.col .line:where([data-hn-ui-editor-table-overlay])) {
884
912
  inset: 0 auto 0 calc(-0.5 * var(--ui-accent-line-width));
885
913
  width: var(--ui-accent-line-width);
886
914
  }
887
- :global(.control.active .line) {
915
+ :global(.control.active .line:where([data-hn-ui-editor-table-overlay])) {
888
916
  opacity: 0.8;
889
917
  }
890
- :global(.guide) {
918
+ :global(.guide:where([data-hn-ui-editor-table-overlay])) {
891
919
  position: absolute;
892
920
  width: var(--ui-affordance-guide-size);
893
921
  height: var(--ui-affordance-guide-size);
@@ -896,18 +924,20 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
896
924
  opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
897
925
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
898
926
  }
899
- :global(.control.row .guide) {
927
+ :global(.control.row .guide:where([data-hn-ui-editor-table-overlay])) {
900
928
  left: -10px;
901
929
  top: -2px;
902
930
  }
903
- :global(.control.col .guide) {
931
+ :global(.control.col .guide:where([data-hn-ui-editor-table-overlay])) {
904
932
  left: -2px;
905
933
  top: -10px;
906
934
  }
907
- :global(.control:has(.handle[data-ui-proximity="near"]) .guide), :global(.control.active .guide) {
935
+ :global(.control:has(.handle[data-ui-proximity="near"])
936
+ .guide:where([data-hn-ui-editor-table-overlay])),
937
+ :global(.control.active .guide:where([data-hn-ui-editor-table-overlay])) {
908
938
  opacity: 0;
909
939
  }
910
- :global(.tooltip) {
940
+ :global(.tooltip:where([data-hn-ui-editor-table-overlay])) {
911
941
  position: absolute;
912
942
  z-index: 2;
913
943
  top: calc(100% + 6px);
@@ -926,16 +956,18 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
926
956
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
927
957
  pointer-events: none;
928
958
  }
929
- :global(.control.row .tooltip) {
959
+ :global(.control.row .tooltip:where([data-hn-ui-editor-table-overlay])) {
930
960
  top: 50%;
931
961
  left: auto;
932
962
  right: calc(100% + 8px);
933
963
  transform: translateY(-50%);
934
964
  }
935
- :global(.control.active .tooltip), :global(.handle:focus-visible .tooltip) {
965
+ :global(.control.active .tooltip:where([data-hn-ui-editor-table-overlay])),
966
+ :global(.handle:focus-visible .tooltip:where([data-hn-ui-editor-table-overlay])) {
936
967
  opacity: 1;
937
968
  }
938
- :global(.selector), :global(.cell-menu) {
969
+ :global(.selector:where([data-hn-ui-editor-table-overlay])),
970
+ :global(.cell-menu:where([data-hn-ui-editor-table-overlay])) {
939
971
  position: absolute;
940
972
  z-index: 2;
941
973
  display: inline-flex !important;
@@ -954,20 +986,21 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
954
986
  border-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
955
987
  box-shadow var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
956
988
  }
957
- :global(.selector:hover), :global(.cell-menu:hover) {
989
+ :global(.selector:hover:where([data-hn-ui-editor-table-overlay])),
990
+ :global(.cell-menu:hover:where([data-hn-ui-editor-table-overlay])) {
958
991
  background: var(--ui-surface-muted);
959
992
  color: var(--ui-text-primary);
960
993
  box-shadow: var(--ui-shadow-xs, 0 1px 2px rgb(0 0 0 / 0.05));
961
994
  }
962
- :global(.selector) {
995
+ :global(.selector:where([data-hn-ui-editor-table-overlay])) {
963
996
  border-radius: var(--ui-radius-round);
964
997
  touch-action: none;
965
998
  cursor: grab;
966
999
  }
967
- :global(.selector:active) {
1000
+ :global(.selector:active:where([data-hn-ui-editor-table-overlay])) {
968
1001
  cursor: grabbing;
969
1002
  }
970
- :global(.selector::before) {
1003
+ :global(.selector:where([data-hn-ui-editor-table-overlay])::before) {
971
1004
  content: "";
972
1005
  position: absolute;
973
1006
  inset: 50% auto auto 50%;
@@ -978,7 +1011,7 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
978
1011
  transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
979
1012
  pointer-events: none;
980
1013
  }
981
- :global(.selector .glyph) {
1014
+ :global(.selector .glyph:where([data-hn-ui-editor-table-overlay])) {
982
1015
  display: block !important;
983
1016
  width: 14px;
984
1017
  height: 14px;
@@ -990,74 +1023,76 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
990
1023
  opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
991
1024
  transform var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
992
1025
  }
993
- :global(.selector:hover::before), :global(.selector:focus-visible::before) {
1026
+ :global(.selector:hover:where([data-hn-ui-editor-table-overlay])::before),
1027
+ :global(.selector:focus-visible:where([data-hn-ui-editor-table-overlay])::before) {
994
1028
  opacity: 0;
995
1029
  }
996
- :global(.selector:hover .glyph), :global(.selector:focus-visible .glyph) {
1030
+ :global(.selector:hover .glyph:where([data-hn-ui-editor-table-overlay])),
1031
+ :global(.selector:focus-visible .glyph:where([data-hn-ui-editor-table-overlay])) {
997
1032
  opacity: 1;
998
1033
  transform: scale(1);
999
1034
  }
1000
- :global(.selector.row) {
1035
+ :global(.selector.row:where([data-hn-ui-editor-table-overlay])) {
1001
1036
  left: -9px;
1002
1037
  width: 18px;
1003
1038
  height: 32px;
1004
1039
  transform: translateY(-50%);
1005
1040
  }
1006
- :global(.selector.row::before) {
1041
+ :global(.selector.row:where([data-hn-ui-editor-table-overlay])::before) {
1007
1042
  width: 2px;
1008
1043
  height: 16px;
1009
1044
  }
1010
- :global(.selector.column) {
1045
+ :global(.selector.column:where([data-hn-ui-editor-table-overlay])) {
1011
1046
  top: -9px;
1012
1047
  width: 32px;
1013
1048
  height: 18px;
1014
1049
  transform: translateX(-50%);
1015
1050
  }
1016
- :global(.selector.column::before) {
1051
+ :global(.selector.column:where([data-hn-ui-editor-table-overlay])::before) {
1017
1052
  width: 16px;
1018
1053
  height: 2px;
1019
1054
  }
1020
1055
  @media (hover: none), (pointer: coarse) {
1021
- :global(.selector::before) {
1056
+ :global(.selector:where([data-hn-ui-editor-table-overlay])::before) {
1022
1057
  opacity: 0;
1023
1058
  }
1024
1059
 
1025
- :global(.selector .glyph) {
1060
+ :global(.selector .glyph:where([data-hn-ui-editor-table-overlay])) {
1026
1061
  opacity: 1;
1027
1062
  transform: none;
1028
1063
  }
1029
1064
  }
1030
- :global(.cell-menu) {
1065
+ :global(.cell-menu:where([data-hn-ui-editor-table-overlay])) {
1031
1066
  width: 24px;
1032
1067
  height: 24px;
1033
1068
  border-radius: var(--ui-radius-sm);
1034
1069
  background: color-mix(in srgb, var(--ui-surface-muted) 78%, transparent);
1035
1070
  }
1036
- :global(.cell-menu) {
1071
+ :global(.cell-menu:where([data-hn-ui-editor-table-overlay])) {
1037
1072
  --_ui-default-icon-size: 15px;
1038
1073
  --_ui-default-icon-stroke-width: 2;
1039
1074
  }
1040
- :global(.drop-indicator) {
1075
+ :global(.drop-indicator:where([data-hn-ui-editor-table-overlay])) {
1041
1076
  position: absolute;
1042
1077
  z-index: 3;
1043
1078
  background: var(--ui-accent-solid);
1044
1079
  box-shadow: 0 0 0 var(--ui-border-width) var(--ui-surface);
1045
1080
  pointer-events: none;
1046
1081
  }
1047
- :global(.drop-indicator.row) {
1082
+ :global(.drop-indicator.row:where([data-hn-ui-editor-table-overlay])) {
1048
1083
  left: 0;
1049
1084
  width: 100%;
1050
1085
  height: var(--ui-accent-line-width);
1051
1086
  }
1052
- :global(.drop-indicator.column) {
1087
+ :global(.drop-indicator.column:where([data-hn-ui-editor-table-overlay])) {
1053
1088
  top: 0;
1054
1089
  width: var(--ui-accent-line-width);
1055
1090
  height: 100%;
1056
1091
  }
1057
- :global(.drop-indicator[hidden]) {
1092
+ :global(.drop-indicator[hidden]:where([data-hn-ui-editor-table-overlay])) {
1058
1093
  display: none !important;
1059
1094
  }
1060
- :global(:scope[hidden]) {
1095
+ :global(:scope[hidden]:where([data-hn-ui-editor-table-overlay])) {
1061
1096
  display: none !important;
1062
1097
  }
1063
1098
  }
@@ -300,6 +300,6 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
300
300
  }]]);
301
301
  };
302
302
  }
303
- }), [["__scopeId", "data-v-eddc2cc1"]]);
303
+ }), [["__scopeId", "data-v-919b8eb9"]]);
304
304
  //#endregion
305
305
  export { UiCard_default as t };
@@ -1,14 +1,17 @@
1
1
  import { C as useReflectedProp, S as useComponentHost, T as warnUnless, _ as nativeAttrs, a as checkHydratedRoot, n as KeyedBoundary, s as createDispatch, t as _plugin_vue_export_helper_default, x as uniqueKeys } from "./_plugin-vue_export-helper.js";
2
2
  import { d as propValidityState, h as vuePropInputs, i as checkPropInput, m as vPropValidity, r as acceptsControllerWrite, t as BINDING_INPUTS_PROP } from "./props.js";
3
3
  import { t as UiIcon_default } from "./UiIcon.js";
4
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, toDisplayString, unref, watchSyncEffect, withCtx, withDirectives } from "vue";
4
+ import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watchSyncEffect, withCtx, withDirectives } from "vue";
5
5
  //#region .build/vue/UiEditorTableOverlay.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = [
7
7
  "hidden",
8
8
  "data-ui-editor-table-overlay-prop-geometry",
9
9
  "data-ui-editor-table-overlay-prop-open"
10
10
  ];
11
- var _hoisted_2 = { class: "rows" };
11
+ var _hoisted_2 = {
12
+ class: "rows",
13
+ "data-hn-ui-editor-table-overlay": ""
14
+ };
12
15
  var _hoisted_3 = ["data-control-key"];
13
16
  var _hoisted_4 = [
14
17
  "data-ui-affordance",
@@ -18,9 +21,13 @@ var _hoisted_4 = [
18
21
  ];
19
22
  var _hoisted_5 = {
20
23
  class: "tooltip",
21
- role: "tooltip"
24
+ role: "tooltip",
25
+ "data-hn-ui-editor-table-overlay": ""
26
+ };
27
+ var _hoisted_6 = {
28
+ class: "cols",
29
+ "data-hn-ui-editor-table-overlay": ""
22
30
  };
23
- var _hoisted_6 = { class: "cols" };
24
31
  var _hoisted_7 = ["data-control-key"];
25
32
  var _hoisted_8 = [
26
33
  "data-ui-affordance",
@@ -30,12 +37,19 @@ var _hoisted_8 = [
30
37
  ];
31
38
  var _hoisted_9 = {
32
39
  class: "tooltip",
33
- role: "tooltip"
40
+ role: "tooltip",
41
+ "data-hn-ui-editor-table-overlay": ""
34
42
  };
35
43
  var _hoisted_10 = ["data-row-index", "data-column-index"];
36
- var _hoisted_11 = { class: "glyph" };
44
+ var _hoisted_11 = {
45
+ class: "glyph",
46
+ "data-hn-ui-editor-table-overlay": ""
47
+ };
37
48
  var _hoisted_12 = ["data-row-index", "data-column-index"];
38
- var _hoisted_13 = { class: "glyph" };
49
+ var _hoisted_13 = {
50
+ class: "glyph",
51
+ "data-hn-ui-editor-table-overlay": ""
52
+ };
39
53
  var _hoisted_14 = ["data-row-index", "data-column-index"];
40
54
  //#endregion
41
55
  //#region .build/vue/UiEditorTableOverlay.vue
@@ -810,34 +824,40 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
810
824
  "aria-label": "Table controls"
811
825
  }, unref(nativeAttrs)(_ctx.$attrs), {
812
826
  "data-hn": "",
827
+ "data-hn-ui-editor-table-overlay": "",
813
828
  hidden: !checkedProps.value.open,
814
829
  "data-ui-editor-table-overlay-prop-geometry": unref(reflectedProp)("geometry", "geometry", checkedProps.value.geometry, void 0, false),
815
830
  "data-ui-editor-table-overlay-prop-open": unref(reflectedProp)("open", "open", checkedProps.value.open, void 0, false),
816
831
  ref_key: "root",
817
832
  ref: root
818
833
  }), [
834
+ renderSlot(_ctx.$slots, "default", {}, void 0, true),
819
835
  createElementVNode("div", _hoisted_2, [createVNode(unref(KeyedBoundary), null, {
820
836
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(uniqueKeys)(rows.value, (control, index, loop) => control.key), (control) => {
821
837
  return openBlock(), createElementBlock("div", {
822
838
  key: control.key,
823
839
  class: normalizeClass(["control row", { active: control.key === activeKey.value }]),
840
+ "data-hn-ui-editor-table-overlay": "",
824
841
  "data-control-key": control.key,
825
842
  style: normalizeStyle({ top: control.offset })
826
843
  }, [
827
844
  _cache[1] || (_cache[1] = createElementVNode("span", {
828
845
  class: "line",
829
- "aria-hidden": "true"
846
+ "aria-hidden": "true",
847
+ "data-hn-ui-editor-table-overlay": ""
830
848
  }, null, -1)),
831
849
  _cache[2] || (_cache[2] = createTextVNode(toDisplayString(" "), -1)),
832
850
  _cache[3] || (_cache[3] = createElementVNode("span", {
833
851
  class: "guide",
834
852
  "data-ui-guide": "",
835
- "aria-hidden": "true"
853
+ "aria-hidden": "true",
854
+ "data-hn-ui-editor-table-overlay": ""
836
855
  }, null, -1)),
837
856
  _cache[4] || (_cache[4] = createTextVNode(toDisplayString(" "), -1)),
838
857
  createElementVNode("button", {
839
858
  type: "button",
840
859
  class: "handle",
860
+ "data-hn-ui-editor-table-overlay": "",
841
861
  "data-ui-affordance": control.affordance,
842
862
  "data-action": control.action,
843
863
  "data-boundary-index": control.index,
@@ -859,23 +879,27 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
859
879
  return openBlock(), createElementBlock("div", {
860
880
  key: control.key,
861
881
  class: normalizeClass(["control col", { active: control.key === activeKey.value }]),
882
+ "data-hn-ui-editor-table-overlay": "",
862
883
  "data-control-key": control.key,
863
884
  style: normalizeStyle({ left: control.offset })
864
885
  }, [
865
886
  _cache[6] || (_cache[6] = createElementVNode("span", {
866
887
  class: "line",
867
- "aria-hidden": "true"
888
+ "aria-hidden": "true",
889
+ "data-hn-ui-editor-table-overlay": ""
868
890
  }, null, -1)),
869
891
  _cache[7] || (_cache[7] = createTextVNode(toDisplayString(" "), -1)),
870
892
  _cache[8] || (_cache[8] = createElementVNode("span", {
871
893
  class: "guide",
872
894
  "data-ui-guide": "",
873
- "aria-hidden": "true"
895
+ "aria-hidden": "true",
896
+ "data-hn-ui-editor-table-overlay": ""
874
897
  }, null, -1)),
875
898
  _cache[9] || (_cache[9] = createTextVNode(toDisplayString(" "), -1)),
876
899
  createElementVNode("button", {
877
900
  type: "button",
878
901
  class: "handle",
902
+ "data-hn-ui-editor-table-overlay": "",
879
903
  "data-ui-affordance": control.affordance,
880
904
  "data-action": control.action,
881
905
  "data-boundary-index": control.index,
@@ -900,6 +924,7 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
900
924
  "data-action": "select-row",
901
925
  title: "Drag row to reorder; click for actions",
902
926
  "aria-label": "Row actions",
927
+ "data-hn-ui-editor-table-overlay": "",
903
928
  "data-row-index": guardedBinding.value,
904
929
  "data-column-index": guardedBinding2.value,
905
930
  style: normalizeStyle({ top: guarded.value })
@@ -914,6 +939,7 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
914
939
  "data-action": "select-column",
915
940
  title: "Drag column to reorder; click for actions",
916
941
  "aria-label": "Column actions",
942
+ "data-hn-ui-editor-table-overlay": "",
917
943
  "data-row-index": guardedBinding4.value,
918
944
  "data-column-index": guardedBinding5.value,
919
945
  style: normalizeStyle({ left: guardedBinding3.value })
@@ -931,6 +957,7 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
931
957
  "data-action": "open-cell-menu",
932
958
  title: "Cell actions",
933
959
  "aria-label": "Cell actions",
960
+ "data-hn-ui-editor-table-overlay": "",
934
961
  "data-row-index": guardedBinding8.value,
935
962
  "data-column-index": guardedBinding9.value,
936
963
  style: normalizeStyle({
@@ -946,7 +973,8 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
946
973
  class: "drop-indicator",
947
974
  "data-drop-indicator": "",
948
975
  hidden: "",
949
- "aria-hidden": "true"
976
+ "aria-hidden": "true",
977
+ "data-hn-ui-editor-table-overlay": ""
950
978
  }, null, -1))
951
979
  ], 16, _hoisted_1)), [[unref(vPropValidity), {
952
980
  contract: propValidityContract,
@@ -954,6 +982,6 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
954
982
  }]]);
955
983
  };
956
984
  }
957
- }), [["__scopeId", "data-v-60177502"]]);
985
+ }), [["__scopeId", "data-v-9ad9f9fe"]]);
958
986
  //#endregion
959
987
  export { UiEditorTableOverlay_default as t };