@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.
Files changed (54) hide show
  1. package/dist/UI/components/primaria-breadcumbs/primaria-breadcumbs.d.ts +1 -0
  2. package/dist/UI/index.d.ts +1 -0
  3. package/dist/UI/shared-components/dss-container/dss-container.d.ts +7 -0
  4. package/dist/UI/shared-components/index.d.ts +2 -0
  5. package/dist/UI/shared-components/primaria-content-switcher/primaria-content-switcher.d.ts +14 -0
  6. package/dist/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +20 -0
  7. package/dist/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +12 -0
  8. package/dist/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +16 -0
  9. package/dist/UI/shared-components/primaria-interaction/confirm.d.ts +3 -0
  10. package/dist/UI/shared-components/primaria-interaction/index.d.ts +4 -0
  11. package/dist/UI/shared-components/primaria-interaction/notify.d.ts +4 -0
  12. package/dist/UI/shared-components/primaria-interaction/typings.d.ts +28 -0
  13. package/dist/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +10 -0
  14. package/dist/UI/shared-components/primaria-menu-item/template.d.ts +3 -0
  15. package/dist/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.d.ts +57 -0
  16. package/dist/UI/shared-components/primaria-text-editor/template.d.ts +1 -0
  17. package/dist/UI/shared-components/primaria-text-editor/utils.d.ts +1 -0
  18. package/dist/api/interaction-manager/interaction.d.ts +1 -1
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +24029 -14713
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.umd.cjs +526 -383
  23. package/dist/index.umd.cjs.map +1 -1
  24. package/package.json +3 -2
  25. package/src/UI/components/clinical-monitoring/styles.scss +1 -0
  26. package/src/UI/components/index.ts +1 -1
  27. package/src/UI/components/primaria-breadcumbs/primaria-breadcumbs.ts +5 -1
  28. package/src/UI/components/primaria-shell/styles.scss +1 -3
  29. package/src/UI/components/primaria-shell/template.ts +1 -3
  30. package/src/UI/index.ts +1 -0
  31. package/src/UI/shared-components/design-system.css +1 -0
  32. package/src/UI/shared-components/dss-container/dss-container.ts +32 -0
  33. package/src/UI/shared-components/dss-container/styles.scss +21 -0
  34. package/src/UI/shared-components/index.ts +5 -0
  35. package/src/UI/shared-components/primaria-content-switcher/primaria-content-switcher.ts +79 -0
  36. package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.scss +155 -0
  37. package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +119 -0
  38. package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.scss +128 -0
  39. package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +73 -0
  40. package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +39 -0
  41. package/src/UI/shared-components/primaria-interaction/confirm.ts +26 -0
  42. package/src/UI/shared-components/primaria-interaction/index.ts +4 -0
  43. package/src/UI/shared-components/primaria-interaction/notify.ts +153 -0
  44. package/src/UI/shared-components/primaria-interaction/typings.ts +32 -0
  45. package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +25 -0
  46. package/src/UI/shared-components/primaria-menu-item/styles.scss +10 -0
  47. package/src/UI/shared-components/primaria-menu-item/template.ts +8 -0
  48. package/src/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.ts +230 -0
  49. package/src/UI/shared-components/primaria-text-editor/styles.scss +972 -0
  50. package/src/UI/shared-components/primaria-text-editor/template.ts +8 -0
  51. package/src/UI/shared-components/primaria-text-editor/utils.ts +39 -0
  52. package/src/api/interaction-manager/interaction.ts +1 -1
  53. package/src/index.ts +2 -0
  54. package/src/initializer.ts +1 -1
@@ -4,5 +4,6 @@ export declare class PrimariaBreadcumbs extends LitElement {
4
4
  render(): import('lit').TemplateResult<1>;
5
5
  static styles: import('lit').CSSResult;
6
6
  breadcumbs: any[];
7
+ callbackFn: () => void;
7
8
  _breadcumbClick(breadcumb: any): void;
8
9
  }
@@ -1 +1,2 @@
1
1
  export * from './components';
2
+ export * from './shared-components';
@@ -0,0 +1,7 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class DssContainer extends LitElement {
4
+ render(): import('lit').TemplateResult<1>;
5
+ firstUpdated(): void;
6
+ static styles: import('lit').CSSResult;
7
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export * from './primaria-interaction';
@@ -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,3 @@
1
+ import { ConfirmOptions, CustomConfirmOptions } from './typings';
2
+
3
+ export declare const doConfirm: (options: (ConfirmOptions & CustomConfirmOptions) | any) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ export * from './confirm';
2
+ export * from './notify';
3
+ export * from './confirm-mixin';
4
+ export * from './typings';
@@ -0,0 +1,4 @@
1
+ import { NotifyOptions } from './typings';
2
+
3
+ export declare function generateId(): string;
4
+ export declare const notify: (options: NotifyOptions) => void;
@@ -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,3 @@
1
+ import { PrimariaMenuItem } from './primaria-menu-item';
2
+
3
+ export declare const template: (props: PrimariaMenuItem) => import('lit').TemplateResult<1>;
@@ -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 '@uxland/primaria-ui-components';
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';