@uxland/primary-shell 1.0.16 → 1.0.17
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 +2 -0
- package/dist/index.js +24029 -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 +3 -2
- 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 +21 -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 +119 -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 +26 -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 +2 -0
- package/src/initializer.ts +1 -1
package/dist/UI/index.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class PrimariaContentSwitcher extends LitElement {
|
|
4
|
+
render(): import('lit').TemplateResult<1>;
|
|
5
|
+
static styles: import('lit').CSSResult;
|
|
6
|
+
selected: any;
|
|
7
|
+
attrForSelected: string;
|
|
8
|
+
animation: string;
|
|
9
|
+
updated(props: any): any;
|
|
10
|
+
get items(): HTMLCollection;
|
|
11
|
+
selectIndex(): number;
|
|
12
|
+
select(): void;
|
|
13
|
+
doAnimation(item: any): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { IConfirmMixin } from '../confirm-mixin';
|
|
3
|
+
import { ConfirmOptions, CustomConfirmOptions } from '../typings';
|
|
4
|
+
|
|
5
|
+
export declare class DialogComponent extends LitElement {
|
|
6
|
+
render(): import('lit').TemplateResult<1>;
|
|
7
|
+
static get styles(): import('lit').CSSResult;
|
|
8
|
+
options: ConfirmOptions & CustomConfirmOptions;
|
|
9
|
+
modal: any;
|
|
10
|
+
_cancel(e: any): void;
|
|
11
|
+
_accept(e: any): void;
|
|
12
|
+
componentCloseRequest(e: CustomEvent): void;
|
|
13
|
+
close(result: boolean): Promise<void>;
|
|
14
|
+
getCustomComponent(): IConfirmMixin | any;
|
|
15
|
+
acceptButton: HTMLElement;
|
|
16
|
+
actionsContainer: HTMLElement;
|
|
17
|
+
header: HTMLElement;
|
|
18
|
+
content: HTMLElement;
|
|
19
|
+
show(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { NotifyOptions } from '../typings';
|
|
3
|
+
|
|
4
|
+
export declare class NotifierComponent extends LitElement {
|
|
5
|
+
render(): import('lit').TemplateResult<1>;
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
options: NotifyOptions;
|
|
8
|
+
snackbar: HTMLElement;
|
|
9
|
+
show(): void;
|
|
10
|
+
clearAndUpdateOrder(order: string): void;
|
|
11
|
+
close(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { Constructor } from './typings';
|
|
3
|
+
|
|
4
|
+
export interface IConfirmMixin {
|
|
5
|
+
model: any;
|
|
6
|
+
close(result: boolean): void;
|
|
7
|
+
canAccept(): Promise<boolean> | boolean;
|
|
8
|
+
accept(): Promise<void> | void;
|
|
9
|
+
}
|
|
10
|
+
export declare class ConfirmMixinBase {
|
|
11
|
+
model: any;
|
|
12
|
+
close(result: boolean): void;
|
|
13
|
+
canAccept(): Promise<boolean> | boolean;
|
|
14
|
+
accept(): Promise<void> | void;
|
|
15
|
+
}
|
|
16
|
+
export declare function confirmMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<ConfirmMixinBase> & T;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
4
|
+
export interface ConfirmOptions {
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
type: ConfirmType;
|
|
8
|
+
acceptLabel: string;
|
|
9
|
+
cancelLabel: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CustomConfirmOptions<T = any> {
|
|
12
|
+
title: string;
|
|
13
|
+
componentConstructor: Constructor<LitElement | any>;
|
|
14
|
+
type: ConfirmType;
|
|
15
|
+
acceptLabel?: string;
|
|
16
|
+
cancelLabel?: string;
|
|
17
|
+
model?: T;
|
|
18
|
+
}
|
|
19
|
+
export type ConfirmType = "danger" | "warning" | "info" | "success";
|
|
20
|
+
export interface NotifyOptions {
|
|
21
|
+
message?: string;
|
|
22
|
+
type?: NotifyType;
|
|
23
|
+
position?: NotifyPosition;
|
|
24
|
+
order?: string;
|
|
25
|
+
}
|
|
26
|
+
export type NotifyOrder = "first" | "second" | "third" | "fourth" | "fifth";
|
|
27
|
+
export type NotifyPosition = "bottom" | "center" | "top";
|
|
28
|
+
export type NotifyType = "danger" | "warning" | "info" | "success" | "error";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class PrimariaMenuItem extends LitElement {
|
|
4
|
+
constructor(icon: string, label: string, callbackFn: () => void);
|
|
5
|
+
render(): import('lit').TemplateResult<1>;
|
|
6
|
+
static styles: import('lit').CSSResult;
|
|
7
|
+
icon: string;
|
|
8
|
+
label: string;
|
|
9
|
+
callbackFn: () => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { default as Quill } from 'uxl-quill/dist/quill';
|
|
3
|
+
|
|
4
|
+
export declare class PrimariaRichTextEditor extends LitElement {
|
|
5
|
+
render(): import('lit').TemplateResult<1>;
|
|
6
|
+
static styles: import('lit').CSSResult;
|
|
7
|
+
firstUpdated(): void;
|
|
8
|
+
quill: Quill | null;
|
|
9
|
+
options: string;
|
|
10
|
+
range: {
|
|
11
|
+
index: number;
|
|
12
|
+
length: number;
|
|
13
|
+
};
|
|
14
|
+
availableOptions: string[];
|
|
15
|
+
availableFormats: string[];
|
|
16
|
+
formats: string;
|
|
17
|
+
_getOptions(): {
|
|
18
|
+
modules: {
|
|
19
|
+
toolbar: {
|
|
20
|
+
container: never[];
|
|
21
|
+
handlers: {
|
|
22
|
+
redo(): void;
|
|
23
|
+
undo(): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
history: {
|
|
27
|
+
delay: number;
|
|
28
|
+
maxStack: number;
|
|
29
|
+
userOnly: boolean;
|
|
30
|
+
};
|
|
31
|
+
keyboard: {
|
|
32
|
+
bindings: {
|
|
33
|
+
indent: {
|
|
34
|
+
key: string;
|
|
35
|
+
format: string[];
|
|
36
|
+
handler(range: any, context: any): boolean;
|
|
37
|
+
};
|
|
38
|
+
"list autofill": {
|
|
39
|
+
key: string;
|
|
40
|
+
shiftKey: null;
|
|
41
|
+
collapsed: boolean;
|
|
42
|
+
format: {
|
|
43
|
+
"code-block": boolean;
|
|
44
|
+
blockquote: boolean;
|
|
45
|
+
table: boolean;
|
|
46
|
+
};
|
|
47
|
+
prefix: RegExp;
|
|
48
|
+
handler(range: any, context: any): boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
theme: string;
|
|
54
|
+
formats: string[];
|
|
55
|
+
};
|
|
56
|
+
getCursorPosition(): any;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const template: (props: any) => import('lit').TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fixSpellCheckerIssue: (Quill: any) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfirmOptions, CustomConfirmOptions, NotifyOptions } from '
|
|
1
|
+
import { ConfirmOptions, CustomConfirmOptions, NotifyOptions } from '../../UI/shared-components/primaria-interaction';
|
|
2
2
|
|
|
3
3
|
export interface PrimariaInteractionManager {
|
|
4
4
|
notify(options: NotifyOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export * from './regions';
|
|
|
3
3
|
export * from './plugin';
|
|
4
4
|
export * from './api/api';
|
|
5
5
|
export * from './api/broker/primaria-broker';
|
|
6
|
+
export { PrimariaMenuItem } from './UI/shared-components/primaria-menu-item/primaria-menu-item';
|
|
7
|
+
export { confirmMixin } from './UI/shared-components/primaria-interaction';
|