@diia-inhouse/types 6.24.0 → 6.33.0

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 (45) hide show
  1. package/dist/generated/designSystem/item.js +18 -0
  2. package/dist/generated/designSystem/item.js.map +1 -1
  3. package/dist/generated/designSystem/molecules/inputDateMlc.js +40 -28
  4. package/dist/generated/designSystem/molecules/inputDateMlc.js.map +1 -1
  5. package/dist/generated/designSystem/molecules/tableItemPrimaryMlc.js +5 -5
  6. package/dist/generated/designSystem/molecules/tableItemPrimaryMlc.js.map +1 -1
  7. package/dist/generated/designSystem/molecules/textLabelContainerMlc.js +15 -1
  8. package/dist/generated/designSystem/molecules/textLabelContainerMlc.js.map +1 -1
  9. package/dist/generated/designSystem/organisms/index.js +1 -0
  10. package/dist/generated/designSystem/organisms/index.js.map +1 -1
  11. package/dist/generated/designSystem/organisms/inputDateTimeOrg.js +123 -0
  12. package/dist/generated/designSystem/organisms/inputDateTimeOrg.js.map +1 -0
  13. package/dist/generated/designSystem/organisms/questionFormsOrg.js +24 -1
  14. package/dist/generated/designSystem/organisms/questionFormsOrg.js.map +1 -1
  15. package/dist/generated/designSystem/organisms/selectorListWidgetOrg.js +23 -2
  16. package/dist/generated/designSystem/organisms/selectorListWidgetOrg.js.map +1 -1
  17. package/dist/generated/designSystem/organisms/selectorOrg.js +15 -0
  18. package/dist/generated/designSystem/organisms/selectorOrg.js.map +1 -1
  19. package/dist/generated/index.js +1 -0
  20. package/dist/generated/index.js.map +1 -1
  21. package/dist/generated/processData.js +166 -0
  22. package/dist/generated/processData.js.map +1 -0
  23. package/dist/proto/designSystem/item.proto +2 -0
  24. package/dist/proto/designSystem/molecules/inputDateMlc.proto +7 -3
  25. package/dist/proto/designSystem/molecules/tableItemPrimaryMlc.proto +5 -1
  26. package/dist/proto/designSystem/molecules/textLabelContainerMlc.proto +1 -0
  27. package/dist/proto/designSystem/organisms/docButtonHeadingOrg.proto +1 -0
  28. package/dist/proto/designSystem/organisms/inputDateTimeOrg.proto +20 -0
  29. package/dist/proto/designSystem/organisms/questionFormsOrg.proto +2 -0
  30. package/dist/proto/designSystem/organisms/selectorListWidgetOrg.proto +3 -1
  31. package/dist/proto/designSystem/organisms/selectorOrg.proto +1 -0
  32. package/dist/proto/processData.proto +11 -0
  33. package/dist/types/generated/designSystem/item.d.ts +2 -0
  34. package/dist/types/generated/designSystem/molecules/inputDateMlc.d.ts +4 -4
  35. package/dist/types/generated/designSystem/molecules/tableItemPrimaryMlc.d.ts +1 -1
  36. package/dist/types/generated/designSystem/molecules/textLabelContainerMlc.d.ts +1 -0
  37. package/dist/types/generated/designSystem/organisms/index.d.ts +1 -0
  38. package/dist/types/generated/designSystem/organisms/inputDateTimeOrg.d.ts +26 -0
  39. package/dist/types/generated/designSystem/organisms/questionFormsOrg.d.ts +2 -0
  40. package/dist/types/generated/designSystem/organisms/selectorListWidgetOrg.d.ts +3 -1
  41. package/dist/types/generated/designSystem/organisms/selectorOrg.d.ts +2 -0
  42. package/dist/types/generated/index.d.ts +1 -0
  43. package/dist/types/generated/processData.d.ts +32 -0
  44. package/dist/types/logger.d.ts +5 -1
  45. package/package.json +2 -3
@@ -36,6 +36,7 @@ import "designSystem/organisms/mediaUploadGroupOrg.proto";
36
36
  import "designSystem/organisms/radioBtnGroupOrg.proto";
37
37
  import "designSystem/organisms/editAutomaticallyDeterminedValueOrg.proto";
38
38
  import "designSystem/organisms/tableBlockPlaneOrg.proto";
39
+ import "designSystem/organisms/tableBlockOrg.proto";
39
40
  import "designSystem/organisms/paymentInfoOrg.proto";
40
41
  import "designSystem/organisms/questionFormsOrg.proto";
41
42
  import "designSystem/organisms/checkboxBtnOrg.proto";
@@ -98,6 +99,7 @@ message DSBodyItem {
98
99
  optional ua.gov.diia.types.ds.molecules.TimerMlc timerMlc = 37;
99
100
  optional ua.gov.diia.types.ds.atoms.BtnPrimaryWideAtm btnPrimaryWideAtm = 38;
100
101
  optional ua.gov.diia.types.ds.organisms.PaginationListOrg paginationListOrg = 39;
102
+ optional ua.gov.diia.types.ds.organisms.TableBlockOrg tableBlockOrg = 40;
101
103
  }
102
104
 
103
105
  message DSTopGroupItem {
@@ -12,12 +12,16 @@ option java_package = "ua.gov.diia.types.ds.molecules";
12
12
  * @partof designSystem/organisms/inputGroupOrg.proto
13
13
  */
14
14
  message InputDateMlc {
15
- optional string id = 1;
15
+ reserved 5;
16
+ reserved "validation";
17
+
18
+ string id = 1;
16
19
  optional bool blocker = 2;
17
20
  string label = 3;
18
21
  optional string value = 4;
19
22
  optional string hint = 6;
20
- repeated ua.gov.diia.types.ds.atoms.ValidationAtm validation = 5;
21
23
  optional string dateFormat = 7;
22
- optional string componentId = 8;
24
+ string componentId = 8;
25
+ optional bool mandatory = 9;
26
+ optional string placeholder = 10;
23
27
  }
@@ -7,8 +7,12 @@ import "designSystem/atoms/iconAtm.proto";
7
7
  option java_multiple_files = true;
8
8
  option java_package = "ua.gov.diia.types.ds.molecules";
9
9
 
10
+ /**
11
+ * @see https://diia.atlassian.net/wiki/spaces/DIIA/pages/1372028929/tableItemPrimaryMlc
12
+ */
13
+
10
14
  message TableItemPrimaryMlc {
11
- optional string label = 1;
15
+ string label = 1;
12
16
  string value = 2;
13
17
  optional ua.gov.diia.types.ds.atoms.IconAtm icon = 3;
14
18
  optional string componentId = 4;
@@ -14,4 +14,5 @@ message TextLabelContainerMlc {
14
14
  optional string label = 1;
15
15
  optional string text = 2;
16
16
  repeated ua.gov.diia.types.ds.atoms.TextParameterAtm parameters = 3;
17
+ optional string componentId = 4;
17
18
  }
@@ -17,6 +17,7 @@ option java_package = "ua.gov.diia.types.ds.organisms";
17
17
  */
18
18
  message DocButtonHeadingOrg {
19
19
  reserved 3;
20
+ reserved "ellipseMenu";
20
21
 
21
22
  optional ua.gov.diia.types.ds.molecules.HeadingWithSubtitlesMlc headingWithSubtitlesMlc = 1;
22
23
  optional ua.gov.diia.types.ds.molecules.DocNumberCopyMlc docNumberCopyMlc = 2;
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package ua.gov.diia.types.ds.organisms;
4
+
5
+ import "designSystem/molecules/inputDateMlc.proto";
6
+
7
+ option java_multiple_files = true;
8
+ option java_package = "ua.gov.diia.types.ds.organisms";
9
+
10
+ /**
11
+ * @see
12
+ * https://diia.atlassian.net/wiki/spaces/DIIA/pages/1535606963/inputDateTimeOrg
13
+ */
14
+ message InputDateTimeOrg {
15
+ string componentId = 1;
16
+ optional string maxDate = 2;
17
+ optional string minDate = 3;
18
+ optional string inputCode = 4;
19
+ optional ua.gov.diia.types.ds.molecules.InputDateMlc inputDateMlc = 5;
20
+ }
@@ -6,6 +6,7 @@ import "designSystem/molecules/inputDateMlc.proto";
6
6
  import "designSystem/molecules/inputTextMlc.proto";
7
7
  import "designSystem/molecules/checkboxSquareMlc.proto";
8
8
  import "designSystem/organisms/selectorOrg.proto";
9
+ import "designSystem/organisms/inputDateTimeOrg.proto";
9
10
 
10
11
  option java_multiple_files = true;
11
12
  option java_package = "ua.gov.diia.types.ds.organisms";
@@ -30,4 +31,5 @@ message QuestionFormsOrgItem {
30
31
  optional ua.gov.diia.types.ds.molecules.InputDateMlc inputDateMlc = 3;
31
32
  optional ua.gov.diia.types.ds.organisms.SelectorOrg selectorOrg = 4;
32
33
  optional ua.gov.diia.types.ds.molecules.CheckboxSquareMlc checkboxSquareMlc = 5;
34
+ optional ua.gov.diia.types.ds.organisms.InputDateTimeOrg inputDateTimeOrg = 6;
33
35
  }
@@ -3,6 +3,7 @@ syntax = "proto3";
3
3
  package ua.gov.diia.types.ds.organisms;
4
4
 
5
5
  import "designSystem/molecules/listItemMlc.proto";
6
+ import "designSystem/molecules/listWidgetItemMlc.proto";
6
7
 
7
8
  option java_multiple_files = true;
8
9
  option java_package = "ua.gov.diia.types.ds.organisms";
@@ -20,5 +21,6 @@ message SelectorListWidgetOrg {
20
21
  }
21
22
 
22
23
  message SelectorListWidgetOrgItem {
23
- ua.gov.diia.types.ds.molecules.ListItemMlc listItemMlc = 1;
24
+ optional ua.gov.diia.types.ds.molecules.ListItemMlc listItemMlc = 1;
25
+ optional ua.gov.diia.types.ds.molecules.ListWidgetItemMlc listWidgetItemMlc = 2;
24
26
  }
@@ -23,5 +23,6 @@ message SelectorOrg {
23
23
  optional string componentId = 9;
24
24
  optional string inputCode = 10;
25
25
  optional bool mandatory = 11;
26
+ optional string valueId = 12; // item id which should be preselected
26
27
  }
27
28
 
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+
3
+ package ua.gov.diia.types;
4
+ option java_multiple_files = true;
5
+ option java_package = "ua.gov.diia.types";
6
+
7
+
8
+ message ProcessDataParams {
9
+ map<string, string> templateParams = 1;
10
+ optional string resource = 2;
11
+ }
@@ -37,6 +37,7 @@ import { QuestionFormsOrg } from "./organisms/questionFormsOrg.js";
37
37
  import { RadioBtnGroupOrg } from "./organisms/radioBtnGroupOrg.js";
38
38
  import { SharingCodesOrg } from "./organisms/sharingCodesOrg.js";
39
39
  import { SmallNotificationCarouselOrg } from "./organisms/smallNotificationCarouselOrg.js";
40
+ import { TableBlockOrg } from "./organisms/tableBlockOrg.js";
40
41
  import { TableBlockPlaneOrg } from "./organisms/tableBlockPlaneOrg.js";
41
42
  import { TopGroupOrg } from "./organisms/topGroupOrg.js";
42
43
  import { VerticalCardCarouselOrg } from "./organisms/verticalCardCarouselOrg.js";
@@ -80,6 +81,7 @@ export interface DSBodyItem {
80
81
  timerMlc?: TimerMlc | undefined;
81
82
  btnPrimaryWideAtm?: BtnPrimaryWideAtm | undefined;
82
83
  paginationListOrg?: PaginationListOrg | undefined;
84
+ tableBlockOrg?: TableBlockOrg | undefined;
83
85
  }
84
86
  export interface DSTopGroupItem {
85
87
  topGroupOrg?: TopGroupOrg | undefined;
@@ -1,18 +1,18 @@
1
1
  import _m0 from "protobufjs/minimal.js";
2
- import { ValidationAtm } from "../atoms/validationAtm.js";
3
2
  /**
4
3
  * @see https://diia.atlassian.net/wiki/spaces/DIIA/pages/1363738715/inputDateMlc
5
4
  * @partof designSystem/organisms/inputGroupOrg.proto
6
5
  */
7
6
  export interface InputDateMlc {
8
- id?: string | undefined;
7
+ id: string;
9
8
  blocker?: boolean | undefined;
10
9
  label: string;
11
10
  value?: string | undefined;
12
11
  hint?: string | undefined;
13
- validation: ValidationAtm[];
14
12
  dateFormat?: string | undefined;
15
- componentId?: string | undefined;
13
+ componentId: string;
14
+ mandatory?: boolean | undefined;
15
+ placeholder?: string | undefined;
16
16
  }
17
17
  export declare const InputDateMlc: {
18
18
  encode(message: InputDateMlc, writer?: _m0.Writer): _m0.Writer;
@@ -1,7 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal.js";
2
2
  import { IconAtm } from "../atoms/iconAtm.js";
3
3
  export interface TableItemPrimaryMlc {
4
- label?: string | undefined;
4
+ label: string;
5
5
  value: string;
6
6
  icon?: IconAtm | undefined;
7
7
  componentId?: string | undefined;
@@ -5,6 +5,7 @@ export interface TextLabelContainerMlc {
5
5
  label?: string | undefined;
6
6
  text?: string | undefined;
7
7
  parameters: TextParameterAtm[];
8
+ componentId?: string | undefined;
8
9
  }
9
10
  export declare const TextLabelContainerMlc: {
10
11
  encode(message: TextLabelContainerMlc, writer?: _m0.Writer): _m0.Writer;
@@ -15,6 +15,7 @@ export * from './fileUploadGroupOrg.js';
15
15
  export * from './fullScreenVideoOrg.js';
16
16
  export * from './groupFilesAddOrg.js';
17
17
  export * from './halvedCardCarouselOrg.js';
18
+ export * from './inputDateTimeOrg.js';
18
19
  export * from './inputGroupOrg.js';
19
20
  export * from './inputNumLargeTimeOrg.js';
20
21
  export * from './listItemGroupOrg.js';
@@ -0,0 +1,26 @@
1
+ import _m0 from "protobufjs/minimal.js";
2
+ import { InputDateMlc } from "../molecules/inputDateMlc.js";
3
+ /**
4
+ * @see
5
+ * https://diia.atlassian.net/wiki/spaces/DIIA/pages/1535606963/inputDateTimeOrg
6
+ */
7
+ export interface InputDateTimeOrg {
8
+ componentId: string;
9
+ maxDate?: string | undefined;
10
+ minDate?: string | undefined;
11
+ inputCode?: string | undefined;
12
+ inputDateMlc?: InputDateMlc | undefined;
13
+ }
14
+ export declare const InputDateTimeOrg: {
15
+ encode(message: InputDateTimeOrg, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): InputDateTimeOrg;
17
+ fromJSON(object: any): InputDateTimeOrg;
18
+ toJSON(message: InputDateTimeOrg): unknown;
19
+ create(base?: DeepPartial<InputDateTimeOrg>): InputDateTimeOrg;
20
+ fromPartial(object: DeepPartial<InputDateTimeOrg>): InputDateTimeOrg;
21
+ };
22
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
23
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
24
+ [K in keyof T]?: DeepPartial<T[K]>;
25
+ } : Partial<T>;
26
+ export {};
@@ -2,6 +2,7 @@ import _m0 from "protobufjs/minimal.js";
2
2
  import { CheckboxSquareMlc } from "../molecules/checkboxSquareMlc.js";
3
3
  import { InputDateMlc } from "../molecules/inputDateMlc.js";
4
4
  import { InputTextMlc } from "../molecules/inputTextMlc.js";
5
+ import { InputDateTimeOrg } from "./inputDateTimeOrg.js";
5
6
  import { SelectorOrg } from "./selectorOrg.js";
6
7
  /** @see https://diia.atlassian.net/wiki/spaces/DIIA/pages/1353809950/questionFormsOrg */
7
8
  export interface QuestionFormsOrg {
@@ -17,6 +18,7 @@ export interface QuestionFormsOrgItem {
17
18
  inputDateMlc?: InputDateMlc | undefined;
18
19
  selectorOrg?: SelectorOrg | undefined;
19
20
  checkboxSquareMlc?: CheckboxSquareMlc | undefined;
21
+ inputDateTimeOrg?: InputDateTimeOrg | undefined;
20
22
  }
21
23
  export declare const QuestionFormsOrg: {
22
24
  encode(message: QuestionFormsOrg, writer?: _m0.Writer): _m0.Writer;
@@ -1,5 +1,6 @@
1
1
  import _m0 from "protobufjs/minimal.js";
2
2
  import { ListItemMlc } from "../molecules/listItemMlc.js";
3
+ import { ListWidgetItemMlc } from "../molecules/listWidgetItemMlc.js";
3
4
  /**
4
5
  * @see https://diia.atlassian.net/wiki/spaces/DIIA/pages/1363804161/selectorListWidgetOrg
5
6
  * @partof designSystem/organisms/selectorOrg.proto
@@ -9,7 +10,8 @@ export interface SelectorListWidgetOrg {
9
10
  componentId?: string | undefined;
10
11
  }
11
12
  export interface SelectorListWidgetOrgItem {
12
- listItemMlc: ListItemMlc | undefined;
13
+ listItemMlc?: ListItemMlc | undefined;
14
+ listWidgetItemMlc?: ListWidgetItemMlc | undefined;
13
15
  }
14
16
  export declare const SelectorListWidgetOrg: {
15
17
  encode(message: SelectorListWidgetOrg, writer?: _m0.Writer): _m0.Writer;
@@ -14,6 +14,8 @@ export interface SelectorOrg {
14
14
  componentId?: string | undefined;
15
15
  inputCode?: string | undefined;
16
16
  mandatory?: boolean | undefined;
17
+ /** item id which should be preselected */
18
+ valueId?: string | undefined;
17
19
  }
18
20
  export declare const SelectorOrg: {
19
21
  encode(message: SelectorOrg, writer?: _m0.Writer): _m0.Writer;
@@ -11,6 +11,7 @@ export * from './message.js';
11
11
  export * from './page/index.js';
12
12
  export * from './platformType.js';
13
13
  export * from './portal/index.js';
14
+ export * from './processData.js';
14
15
  export * from './profileFeature.js';
15
16
  export * from './publicService.js';
16
17
  export * from './publicServiceStatus.js';
@@ -0,0 +1,32 @@
1
+ import _m0 from "protobufjs/minimal.js";
2
+ export interface ProcessDataParams {
3
+ templateParams: {
4
+ [key: string]: string;
5
+ };
6
+ resource?: string | undefined;
7
+ }
8
+ export interface ProcessDataParamsTemplateParamsEntry {
9
+ key: string;
10
+ value: string;
11
+ }
12
+ export declare const ProcessDataParams: {
13
+ encode(message: ProcessDataParams, writer?: _m0.Writer): _m0.Writer;
14
+ decode(input: _m0.Reader | Uint8Array, length?: number): ProcessDataParams;
15
+ fromJSON(object: any): ProcessDataParams;
16
+ toJSON(message: ProcessDataParams): unknown;
17
+ create(base?: DeepPartial<ProcessDataParams>): ProcessDataParams;
18
+ fromPartial(object: DeepPartial<ProcessDataParams>): ProcessDataParams;
19
+ };
20
+ export declare const ProcessDataParamsTemplateParamsEntry: {
21
+ encode(message: ProcessDataParamsTemplateParamsEntry, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): ProcessDataParamsTemplateParamsEntry;
23
+ fromJSON(object: any): ProcessDataParamsTemplateParamsEntry;
24
+ toJSON(message: ProcessDataParamsTemplateParamsEntry): unknown;
25
+ create(base?: DeepPartial<ProcessDataParamsTemplateParamsEntry>): ProcessDataParamsTemplateParamsEntry;
26
+ fromPartial(object: DeepPartial<ProcessDataParamsTemplateParamsEntry>): ProcessDataParamsTemplateParamsEntry;
27
+ };
28
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
29
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
30
+ [K in keyof T]?: DeepPartial<T[K]>;
31
+ } : Partial<T>;
32
+ export {};
@@ -16,7 +16,11 @@ export interface TrimmerOptions {
16
16
  maxStringLength: number;
17
17
  maxObjectDepth: number;
18
18
  maxObjectBreadth: number;
19
- redact: string[];
19
+ redact: {
20
+ fields?: Set<string>;
21
+ paths?: Set<string>;
22
+ fieldsToRedactFullname?: Set<string>;
23
+ };
20
24
  endLengthToLog: number;
21
25
  }
22
26
  export interface LoggerOptions extends TrimmerOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diia-inhouse/types",
3
- "version": "6.24.0",
3
+ "version": "6.33.0",
4
4
  "description": "Core types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -65,6 +65,5 @@
65
65
  "prettier": "@diia-inhouse/eslint-config/prettier",
66
66
  "madge": {
67
67
  "tsConfig": "./tsconfig.json"
68
- },
69
- "peerDependencies": null
68
+ }
70
69
  }