@uides/stepwise 2.2.1 → 2.2.3
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/CHANGELOG.md +11 -2
- package/generators/extractStepwisePossibleValues.d.mts +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/schemas/action.d.ts +48 -168
- package/schemas/action.js +34 -47
- package/schemas/field/afm/index.d.ts +158 -6
- package/schemas/field/afm/index.js +6 -9
- package/schemas/field/amka/index.d.ts +152 -8
- package/schemas/field/amka/index.js +3 -7
- package/schemas/field/attachment/index.d.ts +184 -16
- package/schemas/field/attachment/index.js +9 -22
- package/schemas/field/captcha/index.d.ts +156 -2
- package/schemas/field/captcha/index.js +6 -9
- package/schemas/field/choice/index.d.ts +188 -15
- package/schemas/field/choice/index.js +4 -9
- package/schemas/field/common.d.ts +92 -40
- package/schemas/field/common.js +78 -11
- package/schemas/field/date/index.d.ts +152 -38
- package/schemas/field/date/index.js +6 -33
- package/schemas/field/doc_subtitle/index.d.ts +158 -5
- package/schemas/field/doc_subtitle/index.js +5 -6
- package/schemas/field/doc_title/index.d.ts +154 -8
- package/schemas/field/doc_title/index.js +5 -12
- package/schemas/field/dynamically-filled-text/index.d.ts +170 -33
- package/schemas/field/dynamically-filled-text/index.js +6 -23
- package/schemas/field/email/index.d.ts +152 -8
- package/schemas/field/email/index.js +5 -9
- package/schemas/field/fillable-string/index.d.ts +156 -12
- package/schemas/field/fillable-string/index.js +4 -10
- package/schemas/field/five-block-date/index.d.ts +156 -2
- package/schemas/field/five-block-date/index.js +5 -4
- package/schemas/field/hidden/index.d.ts +161 -14
- package/schemas/field/hidden/index.js +7 -15
- package/schemas/field/hierarchical-selector/index.d.ts +176 -37
- package/schemas/field/hierarchical-selector/index.js +5 -21
- package/schemas/field/iban/index.d.ts +168 -6
- package/schemas/field/iban/index.js +3 -3
- package/schemas/field/image/index.d.ts +168 -16
- package/schemas/field/image/index.js +7 -23
- package/schemas/field/index.d.ts +2 -7
- package/schemas/field/index.js +8 -15
- package/schemas/field/int/index.d.ts +152 -8
- package/schemas/field/int/index.js +5 -9
- package/schemas/field/intl_mobile_phone/index.d.ts +156 -3
- package/schemas/field/intl_mobile_phone/index.js +5 -5
- package/schemas/field/lab-results/index.d.ts +156 -3
- package/schemas/field/lab-results/index.js +6 -6
- package/schemas/field/mobile_phone/index.d.ts +158 -5
- package/schemas/field/mobile_phone/index.js +5 -6
- package/schemas/field/multiple-choice/index.d.ts +180 -12
- package/schemas/field/multiple-choice/index.js +3 -8
- package/schemas/field/password/index.d.ts +156 -2
- package/schemas/field/password/index.js +5 -5
- package/schemas/field/pdf-image/index.d.ts +152 -14
- package/schemas/field/pdf-image/index.js +6 -18
- package/schemas/field/postal_code/index.d.ts +156 -4
- package/schemas/field/postal_code/index.js +6 -8
- package/schemas/field/preference-multiple-choice/index.d.ts +211 -17
- package/schemas/field/preference-multiple-choice/index.js +5 -9
- package/schemas/field/qrcode/index.d.ts +168 -19
- package/schemas/field/qrcode/index.js +6 -18
- package/schemas/field/quote/index.d.ts +170 -11
- package/schemas/field/quote/index.js +4 -12
- package/schemas/field/radio-choice/index.d.ts +172 -9
- package/schemas/field/radio-choice/index.js +4 -10
- package/schemas/field/rate/index.d.ts +150 -8
- package/schemas/field/rate/index.js +4 -7
- package/schemas/field/recipient/index.d.ts +158 -5
- package/schemas/field/recipient/index.js +5 -9
- package/schemas/field/redirect/index.d.ts +156 -6
- package/schemas/field/redirect/index.js +6 -9
- package/schemas/field/refcode/index.d.ts +168 -16
- package/schemas/field/refcode/index.js +6 -20
- package/schemas/field/string/index.d.ts +226 -65
- package/schemas/field/string/index.js +5 -54
- package/schemas/field/text/index.d.ts +170 -33
- package/schemas/field/text/index.js +5 -30
- package/schemas/field/three-block-date/index.d.ts +176 -12
- package/schemas/field/three-block-date/index.js +4 -10
- package/schemas/field/url/index.d.ts +204 -0
- package/schemas/field/url/index.js +16 -0
- package/schemas/fieldset/component-params.d.ts +9 -41
- package/schemas/fieldset/component-params.js +5 -29
- package/schemas/fieldset/display-components.d.ts +16 -244
- package/schemas/fieldset/display-components.js +6 -19
- package/schemas/fieldset/enums.d.ts +0 -22
- package/schemas/fieldset/enums.js +1 -15
- package/schemas/fieldset/index.d.ts +9 -93
- package/schemas/index.d.ts +1 -1
- package/schemas/index.js +1 -1
- package/schemas/step.d.ts +7 -0
- package/schemas/step.js +2 -1
- package/schemas/{template/template.d.ts → template.d.ts} +47 -23
- package/schemas/template.js +26 -0
- package/src/generators/actions-possible-values/document-anon-create.json +19 -0
- package/src/generators/actions-possible-values/document-backstep.json +19 -0
- package/src/generators/actions-possible-values/document-create-new.json +43 -0
- package/src/generators/actions-possible-values/document-create.json +20 -0
- package/src/generators/actions-possible-values/document-dismiss.json +36 -0
- package/src/generators/actions-possible-values/document-download-pdf.json +69 -0
- package/src/generators/actions-possible-values/document-email.json +42 -0
- package/src/generators/actions-possible-values/document-resend-otp.json +30 -0
- package/src/generators/actions-possible-values/document-revoke.json +46 -0
- package/src/generators/actions-possible-values/document-share.json +29 -0
- package/src/generators/actions-possible-values/document-sms.json +38 -0
- package/src/generators/actions-possible-values/document-temporary-save.json +28 -0
- package/src/generators/actions-possible-values/document-update.json +111 -0
- package/src/generators/actions-possible-values/entity-forward.json +31 -0
- package/src/generators/actions-possible-values/entity-reply.json +31 -0
- package/src/generators/actions-possible-values/entity-send-message.json +34 -0
- package/src/generators/actions-possible-values/hidden.json +22 -0
- package/src/generators/actions-possible-values/link.json +43 -0
- package/src/generators/extractStepwisePossibleValues.mjs +139 -0
- package/src/generators/fields-possible-values/afm.json +94 -0
- package/src/generators/fields-possible-values/amka.json +26 -0
- package/src/generators/fields-possible-values/attachment.json +89 -0
- package/src/generators/fields-possible-values/captcha.json +16 -0
- package/src/generators/fields-possible-values/choice.json +432 -0
- package/src/generators/fields-possible-values/date.json +57 -0
- package/src/generators/fields-possible-values/doc_subtitle.json +26 -0
- package/src/generators/fields-possible-values/doc_title.json +63 -0
- package/src/generators/fields-possible-values/dynamically-filled-text.json +47 -0
- package/src/generators/fields-possible-values/email.json +65 -0
- package/src/generators/fields-possible-values/fillable-string.json +47 -0
- package/src/generators/fields-possible-values/five-block-date.json +23 -0
- package/src/generators/fields-possible-values/hidden.json +140 -0
- package/src/generators/fields-possible-values/hierarchical-selector.json +84 -0
- package/src/generators/fields-possible-values/iban.json +35 -0
- package/src/generators/fields-possible-values/image.json +37 -0
- package/src/generators/fields-possible-values/int.json +52 -0
- package/src/generators/fields-possible-values/intl_mobile_phone.json +32 -0
- package/src/generators/fields-possible-values/lab-results.json +19 -0
- package/src/generators/fields-possible-values/mobile_phone.json +45 -0
- package/src/generators/fields-possible-values/multiple-choice.json +128 -0
- package/src/generators/fields-possible-values/password.json +20 -0
- package/src/generators/fields-possible-values/pdf-image.json +70 -0
- package/src/generators/fields-possible-values/postal_code.json +32 -0
- package/src/generators/fields-possible-values/preference-multiple-choice.json +53 -0
- package/src/generators/fields-possible-values/qrcode.json +75 -0
- package/src/generators/fields-possible-values/quote.json +71 -0
- package/src/generators/fields-possible-values/radio-choice.json +209 -0
- package/src/generators/fields-possible-values/rate.json +26 -0
- package/src/generators/fields-possible-values/recipient.json +46 -0
- package/src/generators/fields-possible-values/redirect.json +22 -0
- package/src/generators/fields-possible-values/refcode.json +89 -0
- package/src/generators/fields-possible-values/string.json +778 -0
- package/src/generators/fields-possible-values/text.json +105 -0
- package/src/generators/fields-possible-values/three-block-date.json +83 -0
- package/src/generators/fields-possible-values/url.json +23 -0
- package/src/generators/fieldsets-possible-values/form.json +311 -0
- package/src/generators/fieldsets-possible-values/hidden.json +107 -0
- package/src/generators/fieldsets-possible-values/unknown.json +69 -0
- package/src/generators/fieldsets-possible-values/values-list.json +364 -0
- package/src/schemas/action.ts +44 -58
- package/src/schemas/field/afm/index.ts +8 -6
- package/src/schemas/field/amka/index.ts +7 -9
- package/src/schemas/field/attachment/index.ts +9 -23
- package/src/schemas/field/captcha/index.ts +8 -3
- package/src/schemas/field/choice/index.ts +7 -5
- package/src/schemas/field/common.spec.ts +0 -3
- package/src/schemas/field/common.ts +115 -53
- package/src/schemas/field/date/index.ts +8 -24
- package/src/schemas/field/doc_subtitle/index.ts +7 -4
- package/src/schemas/field/doc_title/index.ts +7 -14
- package/src/schemas/field/dynamically-filled-text/index.ts +7 -15
- package/src/schemas/field/email/index.ts +7 -9
- package/src/schemas/field/fillable-string/index.ts +7 -11
- package/src/schemas/field/five-block-date/index.ts +7 -2
- package/src/schemas/field/hidden/index.ts +15 -40
- package/src/schemas/field/hierarchical-selector/index.ts +8 -18
- package/src/schemas/field/iban/index.ts +7 -3
- package/src/schemas/field/image/index.ts +8 -10
- package/src/schemas/field/index.ts +8 -33
- package/src/schemas/field/int/index.ts +7 -9
- package/src/schemas/field/intl_mobile_phone/index.ts +7 -3
- package/src/schemas/field/lab-results/index.ts +7 -3
- package/src/schemas/field/mobile_phone/index.ts +7 -4
- package/src/schemas/field/multiple-choice/index.ts +7 -5
- package/src/schemas/field/password/index.ts +8 -3
- package/src/schemas/field/pdf-image/index.ts +8 -12
- package/src/schemas/field/postal_code/index.ts +8 -5
- package/src/schemas/field/preference-multiple-choice/index.ts +8 -7
- package/src/schemas/field/qrcode/index.ts +7 -10
- package/src/schemas/field/quote/index.ts +8 -8
- package/src/schemas/field/radio-choice/index.ts +7 -5
- package/src/schemas/field/rate/index.ts +7 -8
- package/src/schemas/field/recipient/index.ts +7 -4
- package/src/schemas/field/redirect/index.ts +7 -6
- package/src/schemas/field/refcode/index.ts +7 -21
- package/src/schemas/field/string/index.ts +7 -42
- package/src/schemas/field/text/index.ts +8 -16
- package/src/schemas/field/three-block-date/index.ts +7 -6
- package/src/schemas/field/url/index.ts +24 -0
- package/src/schemas/fieldset/component-params.ts +4 -20
- package/src/schemas/fieldset/display-components.ts +5 -36
- package/src/schemas/fieldset/enums.ts +0 -38
- package/src/schemas/step.ts +1 -0
- package/src/schemas/{template/template-base.ts → template.ts} +30 -6
- package/src/utils/index.ts +69 -2
- package/utils/index.js +28 -2
- package/schemas/field/consent-content/index.d.ts +0 -68
- package/schemas/field/consent-content/index.js +0 -19
- package/schemas/field/image-crop/index.d.ts +0 -59
- package/schemas/field/image-crop/index.js +0 -19
- package/schemas/field/landline_phone/index.d.ts +0 -48
- package/schemas/field/landline_phone/index.js +0 -14
- package/schemas/field/link/index.d.ts +0 -50
- package/schemas/field/link/index.js +0 -16
- package/schemas/field/phone/index.d.ts +0 -48
- package/schemas/field/phone/index.js +0 -14
- package/schemas/field/url-param/index.d.ts +0 -57
- package/schemas/field/url-param/index.js +0 -14
- package/schemas/template/index.d.ts +0 -2
- package/schemas/template/index.js +0 -2
- package/schemas/template/template-base.d.ts +0 -53
- package/schemas/template/template-base.js +0 -15
- package/schemas/template/template-source.d.ts +0 -50
- package/schemas/template/template-source.js +0 -14
- package/schemas/template/template.js +0 -22
- package/src/schemas/field/consent-content/index.ts +0 -28
- package/src/schemas/field/image-crop/index.ts +0 -25
- package/src/schemas/field/landline_phone/index.ts +0 -18
- package/src/schemas/field/link/index.ts +0 -20
- package/src/schemas/field/phone/index.ts +0 -18
- package/src/schemas/field/url-param/index.ts +0 -23
- package/src/schemas/template/index.ts +0 -2
- package/src/schemas/template/template-source.ts +0 -88
- package/src/schemas/template/template.ts +0 -49
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-resend-otp",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 12,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"APOSTILLE",
|
|
8
|
+
"BUSINESS-AID23",
|
|
9
|
+
"DIGITAL-SIGN-APPLY",
|
|
10
|
+
"EDUDOCS",
|
|
11
|
+
"ENSTASI-PARAVASIS-AIT",
|
|
12
|
+
"EVIA-AID-EPIXEIRHSH",
|
|
13
|
+
"EXOUS",
|
|
14
|
+
"GNISIO-YPOGRAFIS",
|
|
15
|
+
"IDIOTIKO-SYMFONITIKO",
|
|
16
|
+
"VEVAIOSI-ERGASTIRIAKON-EXETASEON",
|
|
17
|
+
"YPDIL"
|
|
18
|
+
],
|
|
19
|
+
"possibleValues": {
|
|
20
|
+
"display.default.el.component": [
|
|
21
|
+
"document-resend-otp"
|
|
22
|
+
],
|
|
23
|
+
"display.default.el.label": [
|
|
24
|
+
"Δεν έλαβα κωδικό"
|
|
25
|
+
],
|
|
26
|
+
"display.default.el.primary": [
|
|
27
|
+
false
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-revoke",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 2,
|
|
5
|
+
"templates": [
|
|
6
|
+
"EXOUS"
|
|
7
|
+
],
|
|
8
|
+
"possibleValues": {
|
|
9
|
+
"component-params.next_step": [
|
|
10
|
+
"revoked"
|
|
11
|
+
],
|
|
12
|
+
"display.default.el.component": [
|
|
13
|
+
"document-revoke"
|
|
14
|
+
],
|
|
15
|
+
"display.default.el.confirm_cancel_label": [
|
|
16
|
+
"Επιστροφή"
|
|
17
|
+
],
|
|
18
|
+
"display.default.el.confirm_confirm_label": [
|
|
19
|
+
"Ανάκληση"
|
|
20
|
+
],
|
|
21
|
+
"display.default.el.confirm_message": [
|
|
22
|
+
"Είστε σίγουροι ότι θέλετε να ανακαλέσετε το έγγραφό σας; Το έγγραφο θα πάψει να έχει ισχύ και σε περίπτωση που αλλάξετε γνώμη θα πρέπει να το δημιουργήσετε εξαρχής."
|
|
23
|
+
],
|
|
24
|
+
"display.default.el.confirm_title": [
|
|
25
|
+
"Ανακαλέστε το έγγραφο"
|
|
26
|
+
],
|
|
27
|
+
"display.default.el.helptext": [
|
|
28
|
+
"Για να σταματήσει να έχει ισχύ το έγγραφό σας, μπορείτε να κάνετε ανάκληση"
|
|
29
|
+
],
|
|
30
|
+
"display.default.el.icon": [
|
|
31
|
+
"settings_backup_restore"
|
|
32
|
+
],
|
|
33
|
+
"display.default.el.label": [
|
|
34
|
+
"Ανάκληση"
|
|
35
|
+
],
|
|
36
|
+
"display.default.el.primary": [
|
|
37
|
+
false
|
|
38
|
+
],
|
|
39
|
+
"display.default.el.title": [
|
|
40
|
+
"Ανακαλέστε το έγγραφο"
|
|
41
|
+
],
|
|
42
|
+
"display.default.el.warning": [
|
|
43
|
+
true
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-share",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 9,
|
|
5
|
+
"templates": [
|
|
6
|
+
"BUSINESS-AID23",
|
|
7
|
+
"EXOUS",
|
|
8
|
+
"OIKKAT",
|
|
9
|
+
"REFERENCE",
|
|
10
|
+
"YPDIL"
|
|
11
|
+
],
|
|
12
|
+
"possibleValues": {
|
|
13
|
+
"display.default.el.component": [
|
|
14
|
+
"document-share"
|
|
15
|
+
],
|
|
16
|
+
"display.default.el.helptext": [
|
|
17
|
+
"Κοινοποιήστε το έγγραφο στη θυρίδα άλλου πολίτη."
|
|
18
|
+
],
|
|
19
|
+
"display.default.el.label": [
|
|
20
|
+
"Κοινοποίηση"
|
|
21
|
+
],
|
|
22
|
+
"display.default.el.primary": [
|
|
23
|
+
false
|
|
24
|
+
],
|
|
25
|
+
"display.default.el.title": [
|
|
26
|
+
"Κοινοποιήστε το έγγραφο"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-sms",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 10,
|
|
5
|
+
"templates": [
|
|
6
|
+
"BUSINESS-AID23",
|
|
7
|
+
"DIGITAL-SIGN-APPLY",
|
|
8
|
+
"EVIA-AID-EPIXEIRHSH",
|
|
9
|
+
"EXOUS",
|
|
10
|
+
"YPDIL"
|
|
11
|
+
],
|
|
12
|
+
"possibleValues": {
|
|
13
|
+
"component-params.sms_field": [
|
|
14
|
+
"solemn:tel",
|
|
15
|
+
"authorization:tel"
|
|
16
|
+
],
|
|
17
|
+
"component-params.template": [
|
|
18
|
+
"Υπ. Δήλωση: %s",
|
|
19
|
+
"Εξουσιοδότηση: %s",
|
|
20
|
+
"Αίτηση: %s"
|
|
21
|
+
],
|
|
22
|
+
"display.default.el.component": [
|
|
23
|
+
"document-sms"
|
|
24
|
+
],
|
|
25
|
+
"display.default.el.helptext": [
|
|
26
|
+
"Λάβετε το έγγραφο μέσω SMS στον αριθμό τηλεφώνου που δηλώσατε."
|
|
27
|
+
],
|
|
28
|
+
"display.default.el.label": [
|
|
29
|
+
"Αποστολή SMS"
|
|
30
|
+
],
|
|
31
|
+
"display.default.el.primary": [
|
|
32
|
+
false
|
|
33
|
+
],
|
|
34
|
+
"display.default.el.title": [
|
|
35
|
+
"Λάβετε το έγγραφο μέσω SMS"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-temporary-save",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 21,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"KEP-AITISI",
|
|
8
|
+
"OIKKAT-KEP",
|
|
9
|
+
"TEACHER-SELF-EVALUATION-B"
|
|
10
|
+
],
|
|
11
|
+
"possibleValues": {
|
|
12
|
+
"display.default.el.component": [
|
|
13
|
+
"document-temporary-save"
|
|
14
|
+
],
|
|
15
|
+
"display.default.el.label": [
|
|
16
|
+
"Προσωρινή Αποθήκευση"
|
|
17
|
+
],
|
|
18
|
+
"display.default.el.primary": [
|
|
19
|
+
false
|
|
20
|
+
],
|
|
21
|
+
"display.default.el.self": [
|
|
22
|
+
true
|
|
23
|
+
],
|
|
24
|
+
"display.default.el.url": [
|
|
25
|
+
"/vault/drafts"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "document-update",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 215,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"AFTEPAGGELTI",
|
|
8
|
+
"APOSTILLE",
|
|
9
|
+
"BUSINESS-AID23",
|
|
10
|
+
"DAKTYLIOS",
|
|
11
|
+
"DIGITAL-SIGN-APPLY",
|
|
12
|
+
"DILOSI-VAPTISIS",
|
|
13
|
+
"EDUDOCS",
|
|
14
|
+
"ENISXYSI-TYPOU",
|
|
15
|
+
"ENSTASI-PARAVASIS-AIT",
|
|
16
|
+
"EVIA-AID-EPIXEIRHSH",
|
|
17
|
+
"EXOUS",
|
|
18
|
+
"GNISIO-YPOGRAFIS",
|
|
19
|
+
"GOV-PRESENT-ID",
|
|
20
|
+
"IDIOTIKO-SYMFONITIKO",
|
|
21
|
+
"KEP-AITISI",
|
|
22
|
+
"KEP-PISTGENN2",
|
|
23
|
+
"OIKKAT",
|
|
24
|
+
"OIKKAT-KEP",
|
|
25
|
+
"PIST-POLYTEK-AIT-ASPE",
|
|
26
|
+
"POINIKO-AIT",
|
|
27
|
+
"REFERENCE",
|
|
28
|
+
"TEACHER-SELF-EVALUATION-B",
|
|
29
|
+
"VEHICLE-INSURANCE",
|
|
30
|
+
"VEVAIOSI-ERGASTIRIAKON-EXETASEON",
|
|
31
|
+
"YPDIL"
|
|
32
|
+
],
|
|
33
|
+
"possibleValues": {
|
|
34
|
+
"component-params.ensure-no-input": [
|
|
35
|
+
false,
|
|
36
|
+
true
|
|
37
|
+
],
|
|
38
|
+
"component-params.issue": [
|
|
39
|
+
false,
|
|
40
|
+
true
|
|
41
|
+
],
|
|
42
|
+
"component-params.mark_submitting": [
|
|
43
|
+
true
|
|
44
|
+
],
|
|
45
|
+
"display.default.el.autocall": [
|
|
46
|
+
true
|
|
47
|
+
],
|
|
48
|
+
"display.default.el.component": [
|
|
49
|
+
"document-update"
|
|
50
|
+
],
|
|
51
|
+
"display.default.el.confirm_cancel_label": [
|
|
52
|
+
"Some action confirm_cancel_label",
|
|
53
|
+
"Όχι"
|
|
54
|
+
],
|
|
55
|
+
"display.default.el.confirm_confirm_label": [
|
|
56
|
+
"Some action confirm_confirm_label",
|
|
57
|
+
"Ναι"
|
|
58
|
+
],
|
|
59
|
+
"display.default.el.confirm_message": [
|
|
60
|
+
"Some action confirm_message",
|
|
61
|
+
"Η ενέργεια αυτή θα ακυρώσει το έγγραφο οριστικά για όλους τους συνυπογράφοντες και δεν αναιρείται. Είστε βέβαιοι ότι επιθυμείτε να το ακυρώσετε;",
|
|
62
|
+
"Η ενέργεια αυτή θα είναι οριστική για όλους τους συνυπογράφοντες και δεν αναιρείται. Είστε βέβαιοι ότι επιθυμείτε να συνεχίσετε;"
|
|
63
|
+
],
|
|
64
|
+
"display.default.el.confirm_title": [
|
|
65
|
+
"Some action confirm_title",
|
|
66
|
+
"Ακύρωση εγγράφου"
|
|
67
|
+
],
|
|
68
|
+
"display.default.el.helptext": [
|
|
69
|
+
"Some action helptext"
|
|
70
|
+
],
|
|
71
|
+
"display.default.el.label": [
|
|
72
|
+
"Συνέχεια",
|
|
73
|
+
"Έκδοση",
|
|
74
|
+
"Επιβεβαίωση",
|
|
75
|
+
"Υποβολή Αίτησης",
|
|
76
|
+
"Υποβολή",
|
|
77
|
+
"Διαγραφή",
|
|
78
|
+
"Υπογραφή",
|
|
79
|
+
"Ακύρωση",
|
|
80
|
+
"Δημιουργία"
|
|
81
|
+
],
|
|
82
|
+
"display.default.el.poll.endpoint": [
|
|
83
|
+
"validation/consent_status"
|
|
84
|
+
],
|
|
85
|
+
"display.default.el.poll.id_field": [
|
|
86
|
+
"poll_id"
|
|
87
|
+
],
|
|
88
|
+
"display.default.el.poll.retry.retry_delay": [
|
|
89
|
+
1000
|
|
90
|
+
],
|
|
91
|
+
"display.default.el.poll.retry.retry_limit": [
|
|
92
|
+
120
|
|
93
|
+
],
|
|
94
|
+
"display.default.el.primary": [
|
|
95
|
+
true,
|
|
96
|
+
false
|
|
97
|
+
],
|
|
98
|
+
"display.default.el.retry.retry_delay": [
|
|
99
|
+
1000
|
|
100
|
+
],
|
|
101
|
+
"display.default.el.retry.retry_limit": [
|
|
102
|
+
30
|
|
103
|
+
],
|
|
104
|
+
"display.default.el.title": [
|
|
105
|
+
"Some action title"
|
|
106
|
+
],
|
|
107
|
+
"display.default.el.warning": [
|
|
108
|
+
true
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "entity-forward",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 1,
|
|
5
|
+
"templates": [
|
|
6
|
+
"KEP-AITISI"
|
|
7
|
+
],
|
|
8
|
+
"possibleValues": {
|
|
9
|
+
"component-params.message": [
|
|
10
|
+
"Λόγω αρμοδιότητας, η αίτησή σας προωθήθηκε για διεκπεραίωση σε %s"
|
|
11
|
+
],
|
|
12
|
+
"component-params.message-subject": [
|
|
13
|
+
"Μήνυμα - GOVGR"
|
|
14
|
+
],
|
|
15
|
+
"component-params.notify_user": [
|
|
16
|
+
true
|
|
17
|
+
],
|
|
18
|
+
"display.default.el.component": [
|
|
19
|
+
"entity-forward"
|
|
20
|
+
],
|
|
21
|
+
"display.default.el.helptext": [
|
|
22
|
+
"Επιλέξτε την θυρίδα στην οποία θέλετε να προωθήσετε το έγγραφο"
|
|
23
|
+
],
|
|
24
|
+
"display.default.el.label": [
|
|
25
|
+
"Προώθηση"
|
|
26
|
+
],
|
|
27
|
+
"display.default.el.primary": [
|
|
28
|
+
false
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "entity-reply",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 7,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"DILOSI-VAPTISIS",
|
|
8
|
+
"ENSTASI-PARAVASIS-AIT",
|
|
9
|
+
"KEP-AITISI",
|
|
10
|
+
"OIKKAT-KEP",
|
|
11
|
+
"PIST-POLYTEK-AIT-ASPE"
|
|
12
|
+
],
|
|
13
|
+
"possibleValues": {
|
|
14
|
+
"component-params.reply-templates.1": [
|
|
15
|
+
"PIST-POLYTEK-APA-ASPE",
|
|
16
|
+
"KEP-APA",
|
|
17
|
+
"FOREIS-APA",
|
|
18
|
+
"ENSTASI-PARAVASIS-APA",
|
|
19
|
+
"DILOSI-VAPTISIS-AP"
|
|
20
|
+
],
|
|
21
|
+
"display.default.el.component": [
|
|
22
|
+
"entity-reply"
|
|
23
|
+
],
|
|
24
|
+
"display.default.el.label": [
|
|
25
|
+
"Απάντηση"
|
|
26
|
+
],
|
|
27
|
+
"display.default.el.primary": [
|
|
28
|
+
true
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "entity-send-message",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 9,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"DILOSI-VAPTISIS",
|
|
8
|
+
"ENSTASI-PARAVASIS-AIT",
|
|
9
|
+
"KEP-AITISI",
|
|
10
|
+
"OIKKAT-KEP",
|
|
11
|
+
"PIST-POLYTEK-AIT-ASPE",
|
|
12
|
+
"POINIKO-AIT"
|
|
13
|
+
],
|
|
14
|
+
"possibleValues": {
|
|
15
|
+
"component-params.contact-email-field": [
|
|
16
|
+
"email",
|
|
17
|
+
"contact-email"
|
|
18
|
+
],
|
|
19
|
+
"component-params.contact-phone-field": [
|
|
20
|
+
"mobile",
|
|
21
|
+
"contact-phone",
|
|
22
|
+
"mobile_phone"
|
|
23
|
+
],
|
|
24
|
+
"display.default.el.component": [
|
|
25
|
+
"entity-send-message"
|
|
26
|
+
],
|
|
27
|
+
"display.default.el.label": [
|
|
28
|
+
"Αποστολή μηνύματος"
|
|
29
|
+
],
|
|
30
|
+
"display.default.el.primary": [
|
|
31
|
+
false
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "hidden",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 1,
|
|
5
|
+
"templates": [
|
|
6
|
+
"POINIKO-AIT"
|
|
7
|
+
],
|
|
8
|
+
"possibleValues": {
|
|
9
|
+
"component-params.reply-templates.1": [
|
|
10
|
+
"POINIKO-APA"
|
|
11
|
+
],
|
|
12
|
+
"display.default.el.component": [
|
|
13
|
+
"hidden"
|
|
14
|
+
],
|
|
15
|
+
"display.default.el.label": [
|
|
16
|
+
"Απάντηση"
|
|
17
|
+
],
|
|
18
|
+
"display.default.el.primary": [
|
|
19
|
+
true
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "link",
|
|
3
|
+
"kind": "actions",
|
|
4
|
+
"instanceCount": 14,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"KEP-AITISI",
|
|
8
|
+
"OIKKAT-KEP",
|
|
9
|
+
"TEACHER-SELF-EVALUATION-B",
|
|
10
|
+
"VEHICLE-INSURANCE"
|
|
11
|
+
],
|
|
12
|
+
"possibleValues": {
|
|
13
|
+
"display.default.el.component": [
|
|
14
|
+
"link"
|
|
15
|
+
],
|
|
16
|
+
"display.default.el.helptext": [
|
|
17
|
+
"Δημιουργία νέας Αίτησης προς ΚΕΠ/Δήμο"
|
|
18
|
+
],
|
|
19
|
+
"display.default.el.icon": [
|
|
20
|
+
"add"
|
|
21
|
+
],
|
|
22
|
+
"display.default.el.label": [
|
|
23
|
+
"Νέα αναζήτηση",
|
|
24
|
+
"Προσωρινή Αποθήκευση",
|
|
25
|
+
"Νέα Αίτηση"
|
|
26
|
+
],
|
|
27
|
+
"display.default.el.primary": [
|
|
28
|
+
true,
|
|
29
|
+
false
|
|
30
|
+
],
|
|
31
|
+
"display.default.el.self": [
|
|
32
|
+
true
|
|
33
|
+
],
|
|
34
|
+
"display.default.el.title": [
|
|
35
|
+
"Δημιουργήστε νέα Αίτηση"
|
|
36
|
+
],
|
|
37
|
+
"display.default.el.url": [
|
|
38
|
+
"https://dilosi.services.gov.gr/templates/VEHICLE-INSURANCE/create",
|
|
39
|
+
"/vault/drafts",
|
|
40
|
+
"https://aitiseis-dhmoi.services.gov.gr"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { glob } from 'glob';
|
|
2
|
+
import { flatten } from 'flat';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
Reads ../templates/*.json directly and walks
|
|
8
|
+
steps_spec.steps[*].(fields|fieldsets|actions)[*]. For each kind,
|
|
9
|
+
groups objects by display.default.el.component (fallback web, then 'unknown')
|
|
10
|
+
and writes per-component json with every unique value observed at each
|
|
11
|
+
flattened key path.
|
|
12
|
+
|
|
13
|
+
Output dirs:
|
|
14
|
+
./fields-possible-values/<component>.json
|
|
15
|
+
./fieldsets-possible-values/<component>.json
|
|
16
|
+
./actions-possible-values/<component>.json
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const TEMPLATES_GLOB = '../templates/*.json';
|
|
20
|
+
const KINDS = [
|
|
21
|
+
{ key: 'fields', dir: './fields-possible-values', fallback: 'string' },
|
|
22
|
+
{ key: 'fieldsets', dir: './fieldsets-possible-values', fallback: 'unknown' },
|
|
23
|
+
{ key: 'actions', dir: './actions-possible-values', fallback: 'unknown' },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
for (const { dir } of KINDS) fs.mkdirSync(dir, { recursive: true });
|
|
27
|
+
|
|
28
|
+
const stableKey = (v) => {
|
|
29
|
+
if (v === undefined) return '__undefined__';
|
|
30
|
+
if (typeof v === 'string') return `s:${v}`;
|
|
31
|
+
if (typeof v === 'number') return `n:${v}`;
|
|
32
|
+
if (typeof v === 'boolean') return `b:${v}`;
|
|
33
|
+
if (v === null) return 'null';
|
|
34
|
+
return `j:${JSON.stringify(v)}`;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const resolveComponent = (obj, fallback) =>
|
|
38
|
+
obj?.display?.default?.el?.component ||
|
|
39
|
+
obj?.display?.web?.el?.component ||
|
|
40
|
+
fallback;
|
|
41
|
+
|
|
42
|
+
const makeRegistry = () => new Map();
|
|
43
|
+
|
|
44
|
+
const ensureBucket = (registry, component) => {
|
|
45
|
+
if (!registry.has(component)) {
|
|
46
|
+
registry.set(component, {
|
|
47
|
+
componentName: component,
|
|
48
|
+
instanceCount: 0,
|
|
49
|
+
templates: new Set(),
|
|
50
|
+
keys: [],
|
|
51
|
+
buckets: new Map(),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return registry.get(component);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const ingest = (entry, obj) => {
|
|
58
|
+
entry.instanceCount += 1;
|
|
59
|
+
const flat = flatten(obj, { safe: false });
|
|
60
|
+
for (const [key, value] of Object.entries(flat)) {
|
|
61
|
+
if (!entry.buckets.has(key)) {
|
|
62
|
+
entry.buckets.set(key, new Map());
|
|
63
|
+
entry.keys.push(key);
|
|
64
|
+
}
|
|
65
|
+
const bucket = entry.buckets.get(key);
|
|
66
|
+
const k = stableKey(value);
|
|
67
|
+
if (!bucket.has(k)) bucket.set(k, value);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const registries = Object.fromEntries(
|
|
72
|
+
KINDS.map(({ key }) => [key, makeRegistry()])
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
const collectSteps = (spec) => {
|
|
76
|
+
const out = [];
|
|
77
|
+
if (!spec) return out;
|
|
78
|
+
if (spec.steps && typeof spec.steps === 'object') {
|
|
79
|
+
for (const name in spec.steps) {
|
|
80
|
+
const s = spec.steps[name];
|
|
81
|
+
if (s && typeof s === 'object') out.push(s);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (spec['intro-step'] && typeof spec['intro-step'] === 'object') {
|
|
85
|
+
out.push(spec['intro-step']);
|
|
86
|
+
}
|
|
87
|
+
return out;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
for (const file of glob.sync(TEMPLATES_GLOB)) {
|
|
91
|
+
const tmpl = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
92
|
+
const steps = collectSteps(tmpl?.steps_spec);
|
|
93
|
+
if (steps.length === 0) continue;
|
|
94
|
+
|
|
95
|
+
for (const step of steps) {
|
|
96
|
+
for (const { key, fallback } of KINDS) {
|
|
97
|
+
const group = step?.[key];
|
|
98
|
+
if (!group || typeof group !== 'object') continue;
|
|
99
|
+
|
|
100
|
+
for (const name in group) {
|
|
101
|
+
const obj = group[name];
|
|
102
|
+
if (!obj || typeof obj !== 'object') continue;
|
|
103
|
+
|
|
104
|
+
const component = resolveComponent(obj, fallback);
|
|
105
|
+
const entry = ensureBucket(registries[key], component);
|
|
106
|
+
entry.templates.add(tmpl.refname);
|
|
107
|
+
ingest(entry, obj);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
for (const { key, dir } of KINDS) {
|
|
114
|
+
const registry = registries[key];
|
|
115
|
+
console.log(`\n== ${key} → ${dir} ==`);
|
|
116
|
+
for (const entry of registry.values()) {
|
|
117
|
+
const possibleValues = {};
|
|
118
|
+
for (const k of entry.keys.sort()) {
|
|
119
|
+
possibleValues[k] = Array.from(entry.buckets.get(k).values());
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const output = {
|
|
123
|
+
componentName: entry.componentName,
|
|
124
|
+
kind: key,
|
|
125
|
+
instanceCount: entry.instanceCount,
|
|
126
|
+
templates: Array.from(entry.templates).sort(),
|
|
127
|
+
possibleValues,
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const safeName = entry.componentName.replace(/[/\\]/g, '_');
|
|
131
|
+
fs.writeFileSync(
|
|
132
|
+
path.join(dir, `${safeName}.json`),
|
|
133
|
+
JSON.stringify(output, null, 2)
|
|
134
|
+
);
|
|
135
|
+
console.log(
|
|
136
|
+
` ${entry.componentName}: ${entry.keys.length} keys / ${entry.instanceCount} instances / ${entry.templates.size} templates`
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"componentName": "afm",
|
|
3
|
+
"kind": "fields",
|
|
4
|
+
"instanceCount": 130,
|
|
5
|
+
"templates": [
|
|
6
|
+
"ADEIA-POLITIKOU-GAMOU",
|
|
7
|
+
"AFTEPAGGELTI",
|
|
8
|
+
"BUSINESS-AID23",
|
|
9
|
+
"DAKTYLIOS",
|
|
10
|
+
"DILOSI-VAPTISIS",
|
|
11
|
+
"EDUDOCS",
|
|
12
|
+
"ENISXYSI-TYPOU",
|
|
13
|
+
"ENSTASI-PARAVASIS-AIT",
|
|
14
|
+
"EVIA-AID-EPIXEIRHSH",
|
|
15
|
+
"EXOUS",
|
|
16
|
+
"GNISIO-YPOGRAFIS",
|
|
17
|
+
"GOV-PRESENT-ID",
|
|
18
|
+
"IDIOTIKO-SYMFONITIKO",
|
|
19
|
+
"KEP-AITISI",
|
|
20
|
+
"KEP-PISTGENN2",
|
|
21
|
+
"OIKKAT",
|
|
22
|
+
"OIKKAT-KEP",
|
|
23
|
+
"PIST-POLYTEK-AIT-ASPE",
|
|
24
|
+
"POINIKO-AIT",
|
|
25
|
+
"REFERENCE"
|
|
26
|
+
],
|
|
27
|
+
"possibleValues": {
|
|
28
|
+
"attribute": [
|
|
29
|
+
"afm",
|
|
30
|
+
null,
|
|
31
|
+
"find_idiotiko_sym:signatories_afm",
|
|
32
|
+
"confirm_signatories:afm"
|
|
33
|
+
],
|
|
34
|
+
"datatype": [
|
|
35
|
+
"afm"
|
|
36
|
+
],
|
|
37
|
+
"default-value": [
|
|
38
|
+
"126635510"
|
|
39
|
+
],
|
|
40
|
+
"display.default.el.component": [
|
|
41
|
+
"afm"
|
|
42
|
+
],
|
|
43
|
+
"display.default.el.hint": [
|
|
44
|
+
"Συμπληρώστε τον ΑΦΜ του πολίτη ώστε να αναρτηθεί το έγγραφο στη θυρίδα του"
|
|
45
|
+
],
|
|
46
|
+
"display.default.el.layout.md": [
|
|
47
|
+
"6"
|
|
48
|
+
],
|
|
49
|
+
"display.default.el.template_hint": [
|
|
50
|
+
"ΑΦΜ"
|
|
51
|
+
],
|
|
52
|
+
"display.default.el.title": [
|
|
53
|
+
"Component afm",
|
|
54
|
+
"Α.Φ.Μ.",
|
|
55
|
+
"ΑΦΜ",
|
|
56
|
+
"ΑΦΜ / Tax Identification Number",
|
|
57
|
+
"Α.Φ.Μ. / Tax Identification Number",
|
|
58
|
+
"ΑΦΜ παραχωρητή",
|
|
59
|
+
"ΑΦΜ Επιχείρησης",
|
|
60
|
+
"ΑΦΜ Ιδιοκτήτη",
|
|
61
|
+
"1.2. ΑΦΜ"
|
|
62
|
+
],
|
|
63
|
+
"display.default.el.title_md": [
|
|
64
|
+
6,
|
|
65
|
+
8,
|
|
66
|
+
22
|
|
67
|
+
],
|
|
68
|
+
"display.default.el.value_md": [
|
|
69
|
+
24,
|
|
70
|
+
22,
|
|
71
|
+
38
|
|
72
|
+
],
|
|
73
|
+
"display.pdf.el.component": [
|
|
74
|
+
"hidden"
|
|
75
|
+
],
|
|
76
|
+
"display.pdf.el.title": [
|
|
77
|
+
"ΑΦΜ"
|
|
78
|
+
],
|
|
79
|
+
"display.pdf.el.title_md": [
|
|
80
|
+
12
|
|
81
|
+
],
|
|
82
|
+
"display.pdf.el.value_md": [
|
|
83
|
+
18
|
|
84
|
+
],
|
|
85
|
+
"sources": [
|
|
86
|
+
"session:afm"
|
|
87
|
+
],
|
|
88
|
+
"user-input-mode": [
|
|
89
|
+
"optional",
|
|
90
|
+
"noinput",
|
|
91
|
+
"required"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|