react-luminus-components 2.0.5-beta.r19-26 → 2.0.6

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/README.md +349 -349
  2. package/dist/.vite/manifest.json +48 -37
  3. package/dist/FormDisabledProvider--0DdMCBK.cjs +1 -0
  4. package/dist/{FormDisabledProvider-BlRae2l2.js → FormDisabledProvider-CQ3lr_vU.js} +1 -1
  5. package/dist/ShortcutLinksContext-CzUA0Bw_.cjs +285 -0
  6. package/dist/{nivo-bar-BHzU38wt.js → ShortcutLinksContext-DGg3i3jj.js} +20917 -20917
  7. package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +7 -3
  8. package/dist/components/NotifCenter/Actions/components/index.d.ts +2 -0
  9. package/dist/components/NotifCenter/Actions/components/modals/NotificationActionAddModal.d.ts +11 -0
  10. package/dist/components/NotifCenter/Actions/components/modals/NotificationTemplateAddModal.d.ts +13 -0
  11. package/dist/components/NotifCenter/Actions/components/modals/NotificationTemplateEditModal.d.ts +6 -4
  12. package/dist/components/NotifCenter/NotifStyles/NotifStyles.d.ts +10 -0
  13. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleFormSchema.d.ts +20 -0
  14. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleTableColumns.d.ts +7 -0
  15. package/dist/components/NotifCenter/index.d.ts +1 -0
  16. package/dist/components/UserSettings/LanguageSettingsUS/LanguageSettingsUS.d.ts +2 -0
  17. package/dist/components/UserSettings/index.d.ts +1 -0
  18. package/dist/contexts.cjs.js +1 -1
  19. package/dist/contexts.es.js +13 -13
  20. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +3 -0
  21. package/dist/hooks/usePersistentState/usePersistentState.d.ts +15 -1
  22. package/dist/hooks/useSearchQueryState/useSearchQueryState.d.ts +5 -4
  23. package/dist/hooks.cjs.js +1 -1
  24. package/dist/hooks.es.js +108 -107
  25. package/dist/layout.cjs.js +1 -1
  26. package/dist/layout.es.js +59 -59
  27. package/dist/main.cjs.js +15 -15
  28. package/dist/main.d.ts +1 -0
  29. package/dist/main.es.js +11304 -10804
  30. package/dist/models/index.d.ts +3 -0
  31. package/dist/models/texts/NotifCentrumTexts.d.ts +15 -0
  32. package/dist/models/texts/UserSettingsTexts.d.ts +1 -0
  33. package/dist/models/types/notifCenter/NotifStyleModel.d.ts +6 -0
  34. package/dist/models/types/notifCenter/NotifTemplateCreateModel.d.ts +11 -0
  35. package/dist/models/types/notifCenter/NotifTemplateEditModel.d.ts +6 -0
  36. package/dist/models/types/notifCenter/NotificationAttachmentModel.d.ts +4 -0
  37. package/dist/models/types/notifCenter/NotificationModel.d.ts +2 -1
  38. package/dist/models/types/notifCenter/NotificationTemplate.d.ts +3 -1
  39. package/dist/queryStorage-C8e71gxx.js +30 -0
  40. package/dist/queryStorage-Dk70bkj7.cjs +1 -0
  41. package/dist/style.css +1 -1
  42. package/dist/useIsFormDirty-CLUo8jl7.cjs +1 -0
  43. package/dist/useIsFormDirty-ebfGUdgb.js +117 -0
  44. package/dist/{useLocalStorageState-B2v6hClT.js → useLocalStorageState-9W8xZxsD.js} +20 -20
  45. package/dist/useLocalStorageState-nJ8QPdoa.cjs +1 -0
  46. package/dist/utils.cjs.js +1 -1
  47. package/dist/utils.es.js +76 -101
  48. package/dist/variables.scss +165 -165
  49. package/package.json +127 -127
  50. package/dist/FormDisabledProvider-CiGUtSf7.cjs +0 -1
  51. package/dist/nivo-bar-C1VYGnTR.cjs +0 -285
  52. package/dist/useIsFormDirty-BhBtGgzZ.cjs +0 -1
  53. package/dist/useIsFormDirty-GgEve4W-.js +0 -123
  54. package/dist/useLocalStorageState-AB4BFfn5.cjs +0 -1
@@ -144,5 +144,8 @@ export type { default as NotificationHistoryUserDto } from './types/notifCenter/
144
144
  export type { default as NotificationModel } from './types/notifCenter/NotificationModel';
145
145
  export type { default as NotificationTarget } from './types/notifCenter/NotificationTarget';
146
146
  export type { default as NotificationTemplate } from './types/notifCenter/NotificationTemplate';
147
+ export type { default as NotifStyleModel } from './types/notifCenter/NotifStyleModel';
148
+ export type { default as NotifTemplateCreateModel } from './types/notifCenter/NotifTemplateCreateModel';
149
+ export type { default as NotifTemplateEditModel } from './types/notifCenter/NotifTemplateEditModel';
147
150
  export type { default as EmployeePickerBaseProps } from './types/EmployeePickerBaseProps';
148
151
  export type { default as EmailOverviewModel } from './api/emailOverview/EmailOverviewModel';
@@ -1,4 +1,19 @@
1
1
  type NotifCentrumTexts = {
2
+ confirmTemplateDelete: string;
3
+ deleteTemplate: string;
4
+ addNewStyle: string;
5
+ create: string;
6
+ templatesCount: string;
7
+ templateBodyTagRequired: string;
8
+ markup: string;
9
+ name: string;
10
+ empty: string;
11
+ textBody: string;
12
+ style: string;
13
+ dashboard: string;
14
+ destination: string;
15
+ addNotifActionTemplate: string;
16
+ addNotifAction: string;
2
17
  historyLookup: string;
3
18
  save: string;
4
19
  text: string;
@@ -16,5 +16,6 @@ type UserSettingsTexts = {
16
16
  localStorageCreateBackupInfo: (count: number) => string;
17
17
  searchSettings: string;
18
18
  searchSettingsUseAsterisk: string;
19
+ languageSettings: string;
19
20
  };
20
21
  export default UserSettingsTexts;
@@ -0,0 +1,6 @@
1
+ export default interface NotifStyleModel {
2
+ id: number | null;
3
+ name: string;
4
+ css: string;
5
+ templatesCount: number;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { default as NotificationAttachmentModel } from './NotificationAttachmentModel';
2
+
3
+ export default interface NotifTemplateCreateModel {
4
+ actionId: number;
5
+ destinationId: number;
6
+ kindId: number;
7
+ styleId: number | null;
8
+ subjectTemplate: string | null;
9
+ textTemplate: string | null;
10
+ attachments: NotificationAttachmentModel[];
11
+ }
@@ -0,0 +1,6 @@
1
+ export default interface NotifTemplateEditModel {
2
+ id: number;
3
+ subjectTemplate: string;
4
+ textTemplate: string;
5
+ styleId: number | null;
6
+ }
@@ -0,0 +1,4 @@
1
+ export default interface NotificationAttachmentModel {
2
+ source: string | null;
3
+ sourceType: number;
4
+ }
@@ -1,9 +1,10 @@
1
+ import { default as NameIdIntModel } from '../NameIdIntModel';
1
2
  import { default as NotificationTemplate } from './NotificationTemplate';
2
3
 
3
4
  type NotificationModel = {
4
5
  id: number;
5
6
  name: string;
6
- kind: string;
7
+ kind: NameIdIntModel;
7
8
  templates: NotificationTemplate[];
8
9
  };
9
10
  export default NotificationModel;
@@ -1,3 +1,4 @@
1
+ import { default as NameIdIntModel } from '../NameIdIntModel';
1
2
  import { default as NotificationTarget } from './NotificationTarget';
2
3
 
3
4
  type NotificationTemplate = {
@@ -7,8 +8,9 @@ type NotificationTemplate = {
7
8
  kind: string | null;
8
9
  outputType: number;
9
10
  subjectTemplate: string;
11
+ templatePreview: string;
10
12
  textTemplate: string;
11
- styleName: string | null;
13
+ style: NameIdIntModel | null;
12
14
  targets: NotificationTarget[];
13
15
  };
14
16
  export default NotificationTemplate;
@@ -0,0 +1,30 @@
1
+ const a = () => new URLSearchParams(window.location.search), n = (e) => {
2
+ const t = window.location.pathname + (e.toString() ? `?${e.toString()}` : "") + window.location.hash;
3
+ window.history.replaceState(null, "", t);
4
+ }, o = {
5
+ get length() {
6
+ return Array.from(a().keys()).length;
7
+ },
8
+ key(e) {
9
+ const t = a();
10
+ return Array.from(t.keys())[e] ?? null;
11
+ },
12
+ getItem(e) {
13
+ const r = a().get(e);
14
+ return r ?? null;
15
+ },
16
+ setItem(e, t) {
17
+ const r = a();
18
+ r.set(e, t), n(r);
19
+ },
20
+ removeItem(e) {
21
+ const t = a();
22
+ t.delete(e), n(t);
23
+ },
24
+ clear() {
25
+ n(new URLSearchParams());
26
+ }
27
+ };
28
+ export {
29
+ o as q
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=()=>new URLSearchParams(window.location.search),n=e=>{const t=window.location.pathname+(e.toString()?`?${e.toString()}`:"")+window.location.hash;window.history.replaceState(null,"",t)},s={get length(){return Array.from(a().keys()).length},key(e){const t=a();return Array.from(t.keys())[e]??null},getItem(e){const r=a().get(e);return r??null},setItem(e,t){const r=a();r.set(e,t),n(r)},removeItem(e){const t=a();t.delete(e),n(t)},clear(){n(new URLSearchParams)}};exports.queryStorage=s;