@aquera/nile-elements 1.6.5 → 1.6.7
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/README.md +6 -0
- package/demo/index.js +2 -0
- package/dist/index.js +19 -16
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.esm.js +13 -13
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +5 -2
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +9 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.css.js +13 -13
- package/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +5 -2
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -1
- package/src/nile-tag/nile-tag.css.ts +13 -13
package/package.json
CHANGED
|
@@ -3,7 +3,10 @@ import { css } from 'lit';
|
|
|
3
3
|
|
|
4
4
|
export const styles = css`
|
|
5
5
|
.editor { all: revert;
|
|
6
|
-
|
|
6
|
+
}
|
|
7
|
+
.rte-container .editor.safari {
|
|
8
|
+
-webkit-user-modify: read-write;
|
|
9
|
+
}
|
|
7
10
|
|
|
8
11
|
nile-rich-text-editor {
|
|
9
12
|
position: relative;
|
|
@@ -202,7 +205,7 @@ nile-rich-text-editor[disabled] .editor a {
|
|
|
202
205
|
content: attr(data-placeholder);
|
|
203
206
|
color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary));
|
|
204
207
|
position: absolute;
|
|
205
|
-
font-family: var(
|
|
208
|
+
font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));
|
|
206
209
|
pointer-events: none;
|
|
207
210
|
user-select: none;
|
|
208
211
|
padding-top: 16px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
3
3
|
|
|
4
4
|
import './nile-rte-toolbar';
|
|
@@ -209,6 +209,17 @@ export class NileRichTextEditor extends LitElement {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
protected firstUpdated(_changedProperties: PropertyValues): void {
|
|
213
|
+
super.firstUpdated(_changedProperties);
|
|
214
|
+
|
|
215
|
+
if (this.editorEl) {
|
|
216
|
+
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
217
|
+
if (isSafari) {
|
|
218
|
+
this.editorEl.classList.add('safari');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
212
223
|
private updateContentWithMention(mentionDetail: any) {
|
|
213
224
|
this.updateContent();
|
|
214
225
|
this.dispatchEvent(
|
|
@@ -61,13 +61,13 @@ export const styles = css`
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.tag--success {
|
|
64
|
-
background: var(--nile-colors-green-400);
|
|
65
|
-
border: 2px solid var(--nile-colors-green-400, var(--ng-
|
|
66
|
-
color: var(--nile-colors-dark-900);
|
|
64
|
+
background: var(--nile-colors-green-400,var(--ng-componentcolors-utility-success-50));
|
|
65
|
+
border: 2px solid var(--nile-colors-green-400, var(--ng-componentcolors-utility-success-200));
|
|
66
|
+
color: var(--nile-colors-dark-900,var(--ng--componentcolors-utility-success-700));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.tag--success:hover {
|
|
70
|
-
border: 2px solid var(--nile-colors-green-500, var(--ng-
|
|
70
|
+
border: 2px solid var(--nile-colors-green-500, var(--ng-componentcolors-utility-success-300));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.tag--success:active > nile-icon-button {
|
|
@@ -79,7 +79,7 @@ export const styles = css`
|
|
|
79
79
|
border: var(--nile-border-size-2, var(--ng-border-width-1)) solid var(--nile-colors-neutral-400 , var(--ng-colors-border-primary));
|
|
80
80
|
color: var(--nile-colors-dark-900 , var(--ng-colors-text-secondary-700));
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
.tag--normal:hover {
|
|
84
84
|
border: var(--nile-border-size-2, var(--ng-border-width-1)) solid var(--nile-colors-neutral-500 , var(--ng-colors-border-primary));
|
|
85
85
|
}
|
|
@@ -89,13 +89,13 @@ export const styles = css`
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.tag--warning {
|
|
92
|
-
background: var(--nile-colors-yellow-400);
|
|
93
|
-
border: 2px solid var(--nile-colors-yellow-400, var(--ng-
|
|
94
|
-
color: var(--nile-colors-dark-900);
|
|
92
|
+
background: var(--nile-colors-yellow-400, var(--ng-componentcolors-utility-warning-50));
|
|
93
|
+
border: 2px solid var(--nile-colors-yellow-400, var(--ng-componentcolors-utility-warning-200));
|
|
94
|
+
color: var(--nile-colors-dark-900, var(--ng-componentcolors-utility-warning-700));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.tag--warning:hover {
|
|
98
|
-
border: 2px solid var(--nile-colors-yellow-500, var(--ng-
|
|
98
|
+
border: 2px solid var(--nile-colors-yellow-500, var(--ng-componentcolors-utility-warning-300));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.tag--warning:active > nile-icon-button {
|
|
@@ -104,13 +104,13 @@ export const styles = css`
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
.tag--error {
|
|
107
|
-
background: var(--nile-colors-red-400);
|
|
108
|
-
border: 2px solid var(--nile-colors-red-400, var(--ng-
|
|
109
|
-
color: var(--nile-colors-dark-900);
|
|
107
|
+
background: var(--nile-colors-red-400, var(--ng-componentcolors-utility-error-50));
|
|
108
|
+
border: 2px solid var(--nile-colors-red-400, var(--ng-componentcolors-utility-error-200));
|
|
109
|
+
color: var(--nile-colors-dark-900, var(--ng-componentcolors-utility-error-700));
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.tag--error:hover {
|
|
113
|
-
border: 2px solid var(--nile-colors-red-500, var(--ng-
|
|
113
|
+
border: 2px solid var(--nile-colors-red-500, var(--ng-componentcolors-utility-error-300));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.tag--error:active > nile-icon-button {
|