@uxland/primary-shell 1.0.16 → 1.0.18
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/dist/UI/components/primaria-breadcumbs/primaria-breadcumbs.d.ts +1 -0
- package/dist/UI/index.d.ts +1 -0
- package/dist/UI/shared-components/dss-container/dss-container.d.ts +7 -0
- package/dist/UI/shared-components/index.d.ts +2 -0
- package/dist/UI/shared-components/primaria-content-switcher/primaria-content-switcher.d.ts +14 -0
- package/dist/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +20 -0
- package/dist/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +12 -0
- package/dist/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +16 -0
- package/dist/UI/shared-components/primaria-interaction/confirm.d.ts +3 -0
- package/dist/UI/shared-components/primaria-interaction/index.d.ts +4 -0
- package/dist/UI/shared-components/primaria-interaction/notify.d.ts +4 -0
- package/dist/UI/shared-components/primaria-interaction/typings.d.ts +28 -0
- package/dist/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +10 -0
- package/dist/UI/shared-components/primaria-menu-item/template.d.ts +3 -0
- package/dist/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.d.ts +57 -0
- package/dist/UI/shared-components/primaria-text-editor/template.d.ts +1 -0
- package/dist/UI/shared-components/primaria-text-editor/utils.d.ts +1 -0
- package/dist/api/interaction-manager/interaction.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +24031 -14713
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +526 -383
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -4
- package/src/UI/components/clinical-monitoring/styles.scss +1 -0
- package/src/UI/components/index.ts +1 -1
- package/src/UI/components/primaria-breadcumbs/primaria-breadcumbs.ts +5 -1
- package/src/UI/components/primaria-shell/styles.scss +1 -3
- package/src/UI/components/primaria-shell/template.ts +1 -3
- package/src/UI/index.ts +1 -0
- package/src/UI/shared-components/design-system.css +1 -0
- package/src/UI/shared-components/dss-container/dss-container.ts +32 -0
- package/src/UI/shared-components/dss-container/styles.scss +23 -0
- package/src/UI/shared-components/index.ts +5 -0
- package/src/UI/shared-components/primaria-content-switcher/primaria-content-switcher.ts +79 -0
- package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.scss +155 -0
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +120 -0
- package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.scss +128 -0
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +73 -0
- package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +39 -0
- package/src/UI/shared-components/primaria-interaction/confirm.ts +30 -0
- package/src/UI/shared-components/primaria-interaction/index.ts +4 -0
- package/src/UI/shared-components/primaria-interaction/notify.ts +153 -0
- package/src/UI/shared-components/primaria-interaction/typings.ts +32 -0
- package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +25 -0
- package/src/UI/shared-components/primaria-menu-item/styles.scss +10 -0
- package/src/UI/shared-components/primaria-menu-item/template.ts +8 -0
- package/src/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.ts +230 -0
- package/src/UI/shared-components/primaria-text-editor/styles.scss +972 -0
- package/src/UI/shared-components/primaria-text-editor/template.ts +8 -0
- package/src/UI/shared-components/primaria-text-editor/utils.ts +39 -0
- package/src/api/interaction-manager/interaction.ts +1 -1
- package/src/index.ts +6 -0
- package/src/initializer.ts +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//Hay una issue detectada en el component quilljs que borra algunas palabras/parrafos al corregir palabras con el corrector del navegador
|
|
2
|
+
//Sólo pasa cuando el texto se ha copiado y enganchado de una fuente externa y contiene estilos(negritas, colores, etc).
|
|
3
|
+
//https://github.com/quilljs/quill/issues/2096
|
|
4
|
+
//Este fix corrige este comportamiento.
|
|
5
|
+
export const fixSpellCheckerIssue = (Quill) => {
|
|
6
|
+
const Inline = Quill.import("blots/inline");
|
|
7
|
+
|
|
8
|
+
class CustomAttributes extends Inline {
|
|
9
|
+
constructor(domNode, value) {
|
|
10
|
+
super(domNode, value);
|
|
11
|
+
|
|
12
|
+
const span = this.replaceWith(new Inline(Inline.create()));
|
|
13
|
+
|
|
14
|
+
span.children.forEach((child) => {
|
|
15
|
+
if (child.attributes) child.attributes.copy(span);
|
|
16
|
+
if (child.unwrap) child.unwrap();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// here we apply every attribute from <font> tag to span as a style
|
|
20
|
+
Object.keys(domNode.attributes).forEach(function (key) {
|
|
21
|
+
if (domNode.attributes[key].name != "style") {
|
|
22
|
+
const val = domNode.attributes[key].value;
|
|
23
|
+
let name = domNode.attributes[key].name;
|
|
24
|
+
if (name == "face") name = "font-family";
|
|
25
|
+
span.format(name, val);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
this.remove();
|
|
30
|
+
|
|
31
|
+
return span;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
CustomAttributes.blotName = "customAttributes";
|
|
36
|
+
CustomAttributes.tagName = "FONT";
|
|
37
|
+
|
|
38
|
+
Quill.register(CustomAttributes, true);
|
|
39
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -4,3 +4,9 @@ export * from "./plugin";
|
|
|
4
4
|
export * from "./api/api";
|
|
5
5
|
export * from "./api/broker/primaria-broker";
|
|
6
6
|
import "./UI/index";
|
|
7
|
+
export { PrimariaMenuItem } from "./UI/shared-components/primaria-menu-item/primaria-menu-item";
|
|
8
|
+
export { confirmMixin } from "./UI/shared-components/primaria-interaction";
|
|
9
|
+
export type {
|
|
10
|
+
IConfirmMixin,
|
|
11
|
+
CustomConfirmOptions,
|
|
12
|
+
} from "./UI/shared-components/primaria-interaction";
|
package/src/initializer.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrimariaMenuItem } from "
|
|
1
|
+
import { PrimariaMenuItem } from "./UI/shared-components/primaria-menu-item/primaria-menu-item";
|
|
2
2
|
import { selectableAdapterFactory as factory, regionAdapterRegistry } from "@uxland/regions";
|
|
3
3
|
import { ClinicalMonitoring } from "./UI/components/clinical-monitoring/clinical-monitoring";
|
|
4
4
|
import { PrimariaShell } from "./UI/components/primaria-shell/primaria-shell";
|