@univerjs/docs-hyper-link-ui 1.0.0-insiders.20260813-7c9aa50 → 1.0.0

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 (100) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +0 -1
  3. package/lib/cjs/index.js +767 -232
  4. package/lib/cjs/locale/ar-SA.js +0 -3
  5. package/lib/cjs/locale/ca-ES.js +0 -3
  6. package/lib/cjs/locale/de-DE.js +0 -3
  7. package/lib/cjs/locale/en-US.js +0 -3
  8. package/lib/cjs/locale/es-ES.js +0 -3
  9. package/lib/cjs/locale/fa-IR.js +0 -3
  10. package/lib/cjs/locale/fr-FR.js +0 -3
  11. package/lib/cjs/locale/id-ID.js +0 -3
  12. package/lib/cjs/locale/it-IT.js +0 -3
  13. package/lib/cjs/locale/ja-JP.js +0 -3
  14. package/lib/cjs/locale/ko-KR.js +0 -3
  15. package/lib/cjs/locale/pl-PL.js +0 -3
  16. package/lib/cjs/locale/pt-BR.js +0 -3
  17. package/lib/cjs/locale/ru-RU.js +0 -3
  18. package/lib/cjs/locale/sk-SK.js +0 -3
  19. package/lib/cjs/locale/vi-VN.js +0 -3
  20. package/lib/cjs/locale/zh-CN.js +0 -3
  21. package/lib/cjs/locale/zh-HK.js +0 -3
  22. package/lib/cjs/locale/zh-TW.js +0 -3
  23. package/lib/es/index.js +769 -240
  24. package/lib/es/locale/ar-SA.js +0 -2
  25. package/lib/es/locale/ca-ES.js +0 -2
  26. package/lib/es/locale/de-DE.js +0 -2
  27. package/lib/es/locale/en-US.js +0 -2
  28. package/lib/es/locale/es-ES.js +0 -2
  29. package/lib/es/locale/fa-IR.js +0 -2
  30. package/lib/es/locale/fr-FR.js +0 -2
  31. package/lib/es/locale/id-ID.js +0 -2
  32. package/lib/es/locale/it-IT.js +0 -2
  33. package/lib/es/locale/ja-JP.js +0 -2
  34. package/lib/es/locale/ko-KR.js +0 -2
  35. package/lib/es/locale/pl-PL.js +0 -2
  36. package/lib/es/locale/pt-BR.js +0 -2
  37. package/lib/es/locale/ru-RU.js +0 -2
  38. package/lib/es/locale/sk-SK.js +0 -2
  39. package/lib/es/locale/vi-VN.js +0 -2
  40. package/lib/es/locale/zh-CN.js +0 -2
  41. package/lib/es/locale/zh-HK.js +0 -2
  42. package/lib/es/locale/zh-TW.js +0 -2
  43. package/lib/index.css +80 -4
  44. package/lib/index.js +769 -240
  45. package/lib/locale/ar-SA.js +0 -2
  46. package/lib/locale/ca-ES.js +0 -2
  47. package/lib/locale/de-DE.js +0 -2
  48. package/lib/locale/en-US.js +0 -2
  49. package/lib/locale/es-ES.js +0 -2
  50. package/lib/locale/fa-IR.js +0 -2
  51. package/lib/locale/fr-FR.js +0 -2
  52. package/lib/locale/id-ID.js +0 -2
  53. package/lib/locale/it-IT.js +0 -2
  54. package/lib/locale/ja-JP.js +0 -2
  55. package/lib/locale/ko-KR.js +0 -2
  56. package/lib/locale/pl-PL.js +0 -2
  57. package/lib/locale/pt-BR.js +0 -2
  58. package/lib/locale/ru-RU.js +0 -2
  59. package/lib/locale/sk-SK.js +0 -2
  60. package/lib/locale/vi-VN.js +0 -2
  61. package/lib/locale/zh-CN.js +0 -2
  62. package/lib/locale/zh-HK.js +0 -2
  63. package/lib/locale/zh-TW.js +0 -2
  64. package/lib/types/commands/operations/popup.operation.d.ts +1 -0
  65. package/lib/types/controllers/doc-hyper-link-selection.controller.d.ts +1 -0
  66. package/lib/types/controllers/mobile/components.controller.d.ts +24 -0
  67. package/lib/types/controllers/render-controllers/hyper-link-event.render-controller.d.ts +2 -0
  68. package/lib/types/controllers/render-controllers/mobile/hyper-link-event.render-controller.d.ts +33 -0
  69. package/lib/types/controllers/render-controllers/render.controller.d.ts +1 -5
  70. package/lib/types/index.d.ts +1 -0
  71. package/lib/types/locale/en-US.d.ts +0 -2
  72. package/lib/types/mobile-plugin.d.ts +32 -0
  73. package/lib/types/services/hyper-link-popup.service.d.ts +33 -10
  74. package/lib/types/services/mobile/hyper-link-popup.service.d.ts +22 -0
  75. package/lib/types/views/MobileDocHyperLinkEdit.d.ts +19 -0
  76. package/lib/types/views/MobileDocLinkPopup.d.ts +19 -0
  77. package/lib/types/views/hyper-link-edit/index.d.ts +19 -0
  78. package/lib/types/views/hyper-link-edit/use-doc-hyper-link-edit.d.ts +28 -0
  79. package/lib/types/views/hyper-link-popup/index.d.ts +19 -0
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +13 -12
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "تأكيد",
5
5
  cancel: "إلغاء",
6
- title: "ارتباط",
7
6
  address: "ارتباط",
8
- placeholder: "يُرجى إدخال عنوان URL للارتباط",
9
7
  addressError: "عنوان URL غير قانوني!",
10
8
  label: "تسمية",
11
9
  labelError: "يُرجى إدخال تسمية الارتباط"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirma",
5
5
  cancel: "Cancel·la",
6
- title: "Enllaç",
7
6
  address: "Enllaç",
8
- placeholder: "Si us plau, introdueix una URL",
9
7
  addressError: "La URL no és vàlida!",
10
8
  label: "Etiqueta",
11
9
  labelError: "Si us plau, introdueix l'etiqueta de l'enllaç"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Bestätigen",
5
5
  cancel: "Abbrechen",
6
- title: "Link",
7
6
  address: "Link",
8
- placeholder: "Bitte eine Link-URL eingeben",
9
7
  addressError: "URL ist ungültig!",
10
8
  label: "Bezeichnung",
11
9
  labelError: "Bitte die Bezeichnung des Links eingeben"
@@ -18,9 +18,7 @@ const locale = { "docs-hyper-link-ui": {
18
18
  edit: {
19
19
  confirm: "Confirm",
20
20
  cancel: "Cancel",
21
- title: "Link",
22
21
  address: "Link",
23
- placeholder: "Please input a link url",
24
22
  addressError: "Url is illegal!",
25
23
  label: "Label",
26
24
  labelError: "Please input label of link"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirmar",
5
5
  cancel: "Cancelar",
6
- title: "Enlace",
7
6
  address: "Enlace",
8
- placeholder: "Por favor, introduce una URL",
9
7
  addressError: "¡La URL no es válida!",
10
8
  label: "Etiqueta",
11
9
  labelError: "Por favor, introduce la etiqueta del enlace"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "تایید",
5
5
  cancel: "انصراف",
6
- title: "لینک",
7
6
  address: "لینک",
8
- placeholder: "لطفا یک آدرس لینک وارد کنید",
9
7
  addressError: "آدرس غیرمجاز است!",
10
8
  label: "برچسب",
11
9
  labelError: "لطفا برچسب لینک را وارد کنید"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirmer",
5
5
  cancel: "Annuler",
6
- title: "Lien",
7
6
  address: "Lien",
8
- placeholder: "Veuillez entrer un lien",
9
7
  addressError: "L'url est illégal!",
10
8
  label: "Libellé",
11
9
  labelError: "Veuillez entrer le label du lien"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Konfirmasi",
5
5
  cancel: "Batal",
6
- title: "Tautan",
7
6
  address: "Tautan",
8
- placeholder: "Silakan masukkan URL tautan",
9
7
  addressError: "URL tidak valid!",
10
8
  label: "Label",
11
9
  labelError: "Silakan masukkan label tautan"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Conferma",
5
5
  cancel: "Annulla",
6
- title: "Collegamento",
7
6
  address: "Collegamento",
8
- placeholder: "Inserisci un URL di collegamento",
9
7
  addressError: "URL non valido!",
10
8
  label: "Etichetta",
11
9
  labelError: "Inserisci l'etichetta del collegamento"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "OK",
5
5
  cancel: "キャンセル",
6
- title: "リンク",
7
6
  address: "アドレス",
8
- placeholder: "リンクのURLを入力してください",
9
7
  addressError: "URLが正しくありません!",
10
8
  label: "表示文字列",
11
9
  labelError: "リンクの表示文字列を入力してください"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "확인",
5
5
  cancel: "취소",
6
- title: "링크",
7
6
  address: "링크",
8
- placeholder: "링크 URL을 입력해주세요",
9
7
  addressError: "URL이 올바르지 않습니다!",
10
8
  label: "라벨",
11
9
  labelError: "링크 라벨을 입력해주세요"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Potwierdź",
5
5
  cancel: "Anuluj",
6
- title: "Łącze",
7
6
  address: "Łącze",
8
- placeholder: "Wprowadź adres URL",
9
7
  addressError: "Adres URL jest nieprawidłowy!",
10
8
  label: "Etykieta",
11
9
  labelError: "Wprowadź etykietę łącza"
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Confirmar",
5
5
  cancel: "Cancelar",
6
- title: "Link",
7
6
  address: "Link",
8
- placeholder: "Insira uma URL de link",
9
7
  addressError: "URL inválida!",
10
8
  label: "Rótulo",
11
9
  labelError: "Insira o rótulo do link"
@@ -3,11 +3,9 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Подтвердить",
5
5
  cancel: "Отменить",
6
- title: "Ссылка",
7
6
  address: "Ссылка",
8
7
  label: "Текст",
9
8
  labelError: "Введите текст ссылки",
10
- placeholder: "Пожалуйста, введите ссылку",
11
9
  addressError: "Пожалуйста, введите корректную ссылку"
12
10
  },
13
11
  info: {
@@ -3,9 +3,7 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Potvrdiť",
5
5
  cancel: "Zrušiť",
6
- title: "Odkaz",
7
6
  address: "Odkaz",
8
- placeholder: "Zadajte URL odkazu",
9
7
  addressError: "URL je neplatná!",
10
8
  label: "Popisok",
11
9
  labelError: "Zadajte popis odkazu"
@@ -3,11 +3,9 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "Xác nhận",
5
5
  cancel: "Hủy",
6
- title: "Liên kết",
7
6
  address: "Liên kết",
8
7
  label: "Nhãn",
9
8
  labelError: "Vui lòng nhập nhãn liên kết",
10
- placeholder: "Vui lòng nhập liên kết hợp lệ",
11
9
  addressError: "Vui lòng nhập liên kết hợp lệ"
12
10
  },
13
11
  info: {
@@ -3,11 +3,9 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "确认",
5
5
  cancel: "取消",
6
- title: "链接",
7
6
  address: "链接",
8
7
  label: "文本",
9
8
  labelError: "请输入链接文本",
10
- placeholder: "请输入合法的链接",
11
9
  addressError: "请输入合法的链接"
12
10
  },
13
11
  info: {
@@ -3,11 +3,9 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "確認",
5
5
  cancel: "取消",
6
- title: "連結",
7
6
  address: "連結",
8
7
  label: "文字",
9
8
  labelError: "請輸入連結文字",
10
- placeholder: "請輸入合法的連結",
11
9
  addressError: "請輸入合法的連結"
12
10
  },
13
11
  info: {
@@ -3,11 +3,9 @@ const locale = { "docs-hyper-link-ui": {
3
3
  edit: {
4
4
  confirm: "確認",
5
5
  cancel: "取消",
6
- title: "連結",
7
6
  address: "連結",
8
7
  label: "文字",
9
8
  labelError: "請輸入連結文字",
10
- placeholder: "請輸入合法的連結",
11
9
  addressError: "請輸入合法的連結"
12
10
  },
13
11
  info: {
package/lib/index.css CHANGED
@@ -6,10 +6,18 @@
6
6
  margin-right: .5rem;
7
7
  }
8
8
 
9
+ .univer-mt-5 {
10
+ margin-top: 1.25rem;
11
+ }
12
+
9
13
  .univer-box-border {
10
14
  box-sizing: border-box;
11
15
  }
12
16
 
17
+ .\!univer-flex {
18
+ display: flex !important;
19
+ }
20
+
13
21
  .univer-flex {
14
22
  display: flex;
15
23
  }
@@ -24,6 +32,10 @@
24
32
  height: 1.5rem;
25
33
  }
26
34
 
35
+ .univer-h-12 {
36
+ height: 3rem;
37
+ }
38
+
27
39
  .univer-h-6 {
28
40
  height: 1.5rem;
29
41
  }
@@ -32,6 +44,10 @@
32
44
  width: 328px;
33
45
  }
34
46
 
47
+ .univer-w-full {
48
+ width: 100%;
49
+ }
50
+
35
51
  .univer-max-w-80 {
36
52
  max-width: 20rem;
37
53
  }
@@ -48,6 +64,10 @@
48
64
  cursor: pointer;
49
65
  }
50
66
 
67
+ .univer-flex-col {
68
+ flex-direction: column;
69
+ }
70
+
51
71
  .univer-items-center {
52
72
  align-items: center;
53
73
  }
@@ -64,6 +84,10 @@
64
84
  justify-content: space-between;
65
85
  }
66
86
 
87
+ .univer-gap-2 {
88
+ gap: .5rem;
89
+ }
90
+
67
91
  .univer-gap-3 {
68
92
  gap: .75rem;
69
93
  }
@@ -78,6 +102,10 @@
78
102
  overflow: hidden;
79
103
  }
80
104
 
105
+ .\!univer-rounded {
106
+ border-radius: .25rem !important;
107
+ }
108
+
81
109
  .univer-rounded {
82
110
  border-radius: .25rem;
83
111
  }
@@ -90,8 +118,20 @@
90
118
  border-radius: .75rem;
91
119
  }
92
120
 
93
- .univer-bg-white {
94
- background-color: var(--univer-white);
121
+ .\!univer-border-0 {
122
+ border-width: 0 !important;
123
+ }
124
+
125
+ .\!univer-bg-transparent {
126
+ background-color: #0000 !important;
127
+ }
128
+
129
+ .univer-bg-gray-0 {
130
+ background-color: var(--univer-gray-0);
131
+ }
132
+
133
+ .\!univer-p-0 {
134
+ padding: 0 !important;
95
135
  }
96
136
 
97
137
  .univer-p-3 {
@@ -103,11 +143,21 @@
103
143
  padding-right: 1.5rem;
104
144
  }
105
145
 
146
+ .univer-py-2 {
147
+ padding-top: .5rem;
148
+ padding-bottom: .5rem;
149
+ }
150
+
106
151
  .univer-py-5 {
107
152
  padding-top: 1.25rem;
108
153
  padding-bottom: 1.25rem;
109
154
  }
110
155
 
156
+ .\!univer-text-base {
157
+ font-size: 1rem !important;
158
+ line-height: 1.5rem !important;
159
+ }
160
+
111
161
  .univer-text-base {
112
162
  font-size: 1rem;
113
163
  line-height: 1.5rem;
@@ -118,6 +168,10 @@
118
168
  line-height: 1.25rem;
119
169
  }
120
170
 
171
+ .\!univer-font-normal {
172
+ font-weight: 400 !important;
173
+ }
174
+
121
175
  .univer-leading-5 {
122
176
  line-height: 1.25rem;
123
177
  }
@@ -130,6 +184,10 @@
130
184
  color: var(--univer-primary-500);
131
185
  }
132
186
 
187
+ .univer-text-primary-600 {
188
+ color: var(--univer-primary-600);
189
+ }
190
+
133
191
  .univer-shadow {
134
192
  --univer-tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
135
193
  --univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);
@@ -137,10 +195,28 @@
137
195
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
138
196
  }
139
197
 
198
+ @media (hover: hover) and (pointer: fine) {
199
+ .hover\:\!univer-bg-transparent:hover {
200
+ background-color: #0000 !important;
201
+ }
202
+ }
203
+
204
+ .active\:\!univer-bg-transparent:active {
205
+ background-color: #0000 !important;
206
+ }
207
+
208
+ .disabled\:\!univer-pointer-events-auto:disabled {
209
+ pointer-events: auto !important;
210
+ }
211
+
212
+ .disabled\:\!univer-opacity-40:disabled {
213
+ opacity: .4 !important;
214
+ }
215
+
140
216
  .dark\:\!univer-bg-gray-900:where(.univer-dark, .univer-dark *) {
141
217
  background-color: var(--univer-gray-900) !important;
142
218
  }
143
219
 
144
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
145
- color: var(--univer-white) !important;
220
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
221
+ color: var(--univer-gray-0) !important;
146
222
  }