eastern-area-fe-package 0.3.6 → 0.3.7
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/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/statusConfig.cjs +1 -1
- package/dist/lib/statusConfig.d.ts +3 -1
- package/dist/lib/statusConfig.js +8 -10
- package/dist/types/request.types.cjs +1 -1
- package/dist/types/request.types.d.ts +6 -0
- package/dist/types/request.types.js +3 -1
- package/dist/types-entry.cjs +1 -1
- package/dist/types-entry.js +6 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib/staticIcons/map.cjs"),t=require("./lib/tablerIcons.cjs"),n=require("./components/DynamicIcon.cjs"),r=require("./hooks/useDebounce.cjs"),i=require("./lib/cn.cjs"),a=require("./lib/filterParams.cjs"),o=require("./lib/governments.cjs"),s=require("./lib/iconsList.cjs"),c=require("./lib/isValidUUID.cjs"),l=require("./lib/regExp.cjs"),u=require("./lib/routes.cjs"),d=require("./types/request.types.cjs"),f=require("./lib/statusConfig.cjs"),p=require("./types/service.types.cjs"),m=require("./types/sections.types.cjs"),h=require("./types/satisfaction-content.types.cjs"),g=require("./types/media.types.cjs");exports.ALL_ICONS_LIST=s.ALL_ICONS_LIST,exports.DynamicIcon=n.DynamicIcon,exports.EventStatus=g.EventStatus,exports.FieldConditionLogic=p.FieldConditionLogic,exports.FieldConditionOperator=p.FieldConditionOperator,exports.FormFieldType=p.FormFieldType,exports.FormGenderEnum=p.FormGenderEnum,exports.FormTypeEnum=p.FormTypeEnum,exports.GOVERNMENTS=o.GOVERNMENTS,exports.GalleryType=g.GalleryType,exports.MediaType=g.MediaType,exports.NewsCategory=g.NewsCategory,exports.RequestStatus=d.RequestStatus,exports.ResidenceStatusEnum=d.ResidenceStatusEnum,exports.Routes=u.Routes,exports.SECTIONS_KEYS=m.SECTIONS_KEYS,exports.STATIC_ICONS_LIST=e.STATIC_ICONS_LIST,exports.STATIC_ICONS_MAP=e.STATIC_ICONS_MAP,exports.STATUS_CONFIG=f.STATUS_CONFIG,exports.SectionsKey=m.SectionsKey,exports.SpeechRole=h.SpeechRole,exports.TABLER_ICONS_LIST=t.TABLER_ICONS_LIST,exports.TABLER_ICONS_MAP=t.TABLER_ICONS_MAP,exports.ValidationRuleType=p.ValidationRuleType,exports.buildUrlWithSearchParams=a.buildUrlWithSearchParams,exports.cn=i.cn,exports.emailRegExp=l.emailRegExp,exports.getFilterParams=a.getFilterParams,exports.idRegExp=l.idRegExp,exports.isValidUUID=c.isValidUUID,exports.landPhoneNumberRegExp=l.landPhoneNumberRegExp,exports.lettersWithSpacesRegExp=l.lettersWithSpacesRegExp,exports.passportRegExp=l.passportRegExp,exports.phoneNumberRegExp=l.phoneNumberRegExp,exports.postalCodeRegExp=l.postalCodeRegExp,exports.useDebounce=r.useDebounce;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib/staticIcons/map.cjs"),t=require("./lib/tablerIcons.cjs"),n=require("./components/DynamicIcon.cjs"),r=require("./hooks/useDebounce.cjs"),i=require("./lib/cn.cjs"),a=require("./lib/filterParams.cjs"),o=require("./lib/governments.cjs"),s=require("./lib/iconsList.cjs"),c=require("./lib/isValidUUID.cjs"),l=require("./lib/regExp.cjs"),u=require("./lib/routes.cjs"),d=require("./types/request.types.cjs"),f=require("./lib/statusConfig.cjs"),p=require("./types/service.types.cjs"),m=require("./types/sections.types.cjs"),h=require("./types/satisfaction-content.types.cjs"),g=require("./types/media.types.cjs");exports.ALL_ICONS_LIST=s.ALL_ICONS_LIST,exports.DynamicIcon=n.DynamicIcon,exports.EventStatus=g.EventStatus,exports.FieldConditionLogic=p.FieldConditionLogic,exports.FieldConditionOperator=p.FieldConditionOperator,exports.FormFieldType=p.FormFieldType,exports.FormGenderEnum=p.FormGenderEnum,exports.FormTypeEnum=p.FormTypeEnum,exports.GOVERNMENTS=o.GOVERNMENTS,exports.GalleryType=g.GalleryType,exports.MediaType=g.MediaType,exports.NewsCategory=g.NewsCategory,exports.RequestStatus=d.RequestStatus,exports.ResidenceStatusEnum=d.ResidenceStatusEnum,exports.Routes=u.Routes,exports.SECTIONS_KEYS=m.SECTIONS_KEYS,exports.STATIC_ICONS_LIST=e.STATIC_ICONS_LIST,exports.STATIC_ICONS_MAP=e.STATIC_ICONS_MAP,exports.STATUS_CONFIG=f.STATUS_CONFIG,exports.SectionsKey=m.SectionsKey,exports.SpeechRole=h.SpeechRole,exports.TABLER_ICONS_LIST=t.TABLER_ICONS_LIST,exports.TABLER_ICONS_MAP=t.TABLER_ICONS_MAP,exports.TasheelStatus=d.TasheelStatus,exports.ValidationRuleType=p.ValidationRuleType,exports.buildUrlWithSearchParams=a.buildUrlWithSearchParams,exports.cn=i.cn,exports.emailRegExp=l.emailRegExp,exports.getFilterParams=a.getFilterParams,exports.idRegExp=l.idRegExp,exports.isValidUUID=c.isValidUUID,exports.landPhoneNumberRegExp=l.landPhoneNumberRegExp,exports.lettersWithSpacesRegExp=l.lettersWithSpacesRegExp,exports.passportRegExp=l.passportRegExp,exports.phoneNumberRegExp=l.phoneNumberRegExp,exports.postalCodeRegExp=l.postalCodeRegExp,exports.useDebounce=r.useDebounce;
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import { ALL_ICONS_LIST as u } from "./lib/iconsList.js";
|
|
|
9
9
|
import { isValidUUID as d } from "./lib/isValidUUID.js";
|
|
10
10
|
import { emailRegExp as f, idRegExp as p, landPhoneNumberRegExp as m, lettersWithSpacesRegExp as h, passportRegExp as g, phoneNumberRegExp as _, postalCodeRegExp as v } from "./lib/regExp.js";
|
|
11
11
|
import { Routes as y } from "./lib/routes.js";
|
|
12
|
-
import { RequestStatus as b, ResidenceStatusEnum as x } from "./types/request.types.js";
|
|
13
|
-
import { STATUS_CONFIG as
|
|
14
|
-
import { FieldConditionLogic as
|
|
15
|
-
import { SECTIONS_KEYS as
|
|
16
|
-
import { SpeechRole as
|
|
17
|
-
import { EventStatus as
|
|
18
|
-
export { u as ALL_ICONS_LIST, i as DynamicIcon,
|
|
12
|
+
import { RequestStatus as b, ResidenceStatusEnum as x, TasheelStatus as S } from "./types/request.types.js";
|
|
13
|
+
import { STATUS_CONFIG as C } from "./lib/statusConfig.js";
|
|
14
|
+
import { FieldConditionLogic as w, FieldConditionOperator as T, FormFieldType as E, FormGenderEnum as D, FormTypeEnum as O, ValidationRuleType as k } from "./types/service.types.js";
|
|
15
|
+
import { SECTIONS_KEYS as A, SectionsKey as j } from "./types/sections.types.js";
|
|
16
|
+
import { SpeechRole as M } from "./types/satisfaction-content.types.js";
|
|
17
|
+
import { EventStatus as N, GalleryType as P, MediaType as F, NewsCategory as I } from "./types/media.types.js";
|
|
18
|
+
export { u as ALL_ICONS_LIST, i as DynamicIcon, N as EventStatus, w as FieldConditionLogic, T as FieldConditionOperator, E as FormFieldType, D as FormGenderEnum, O as FormTypeEnum, l as GOVERNMENTS, P as GalleryType, F as MediaType, I as NewsCategory, b as RequestStatus, x as ResidenceStatusEnum, y as Routes, A as SECTIONS_KEYS, e as STATIC_ICONS_LIST, t as STATIC_ICONS_MAP, C as STATUS_CONFIG, j as SectionsKey, M as SpeechRole, n as TABLER_ICONS_LIST, r as TABLER_ICONS_MAP, S as TasheelStatus, k as ValidationRuleType, s as buildUrlWithSearchParams, o as cn, f as emailRegExp, c as getFilterParams, p as idRegExp, d as isValidUUID, m as landPhoneNumberRegExp, h as lettersWithSpacesRegExp, g as passportRegExp, _ as phoneNumberRegExp, v as postalCodeRegExp, a as useDebounce };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../types/request.types.cjs");exports.STATUS_CONFIG={[e.RequestStatus.Draft]:{label:`جديد`,color:`blue`,dgaColor:`info`},[e.RequestStatus.InProgress]:{label:`جارى العمل عليه`,color:`orange`,dgaColor:`Warning`},[e.RequestStatus.
|
|
1
|
+
const e=require("../types/request.types.cjs");exports.STATUS_CONFIG={[e.RequestStatus.Draft]:{label:`جديد`,labelEn:`New`,color:`blue`,dgaColor:`info`},[e.RequestStatus.InProgress]:{label:`جارى العمل عليه`,labelEn:`In Progress`,color:`orange`,dgaColor:`Warning`},[e.RequestStatus.Rejected]:{label:`مرفوض`,labelEn:`Rejected`,color:`red`,dgaColor:`error`},[e.RequestStatus.Completed]:{label:`مكتمل`,labelEn:`Completed`,color:`brand`,dgaColor:`success`},Draft:{label:`جديد`,labelEn:`New`,color:`blue`,dgaColor:`info`},InProgress:{label:`جارى العمل عليه`,labelEn:`In Progress`,color:`orange`,dgaColor:`Warning`},Rejected:{label:`مرفوض`,labelEn:`Rejected`,color:`red`,dgaColor:`error`},Completed:{label:`مكتمل`,labelEn:`Completed`,color:`brand`,dgaColor:`success`}};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { RequestStatus } from '../types/request.types';
|
|
1
|
+
import { RequestStatus, TasheelStatus } from '../types/request.types';
|
|
2
2
|
export interface StatusConfig {
|
|
3
3
|
label: string;
|
|
4
|
+
labelEn: string;
|
|
4
5
|
color: string;
|
|
5
6
|
dgaColor: 'success' | 'neutral' | 'error' | 'Warning' | 'info';
|
|
6
7
|
}
|
|
7
8
|
export declare const STATUS_CONFIG: Record<RequestStatus | string | number, StatusConfig>;
|
|
9
|
+
export declare const TASHEEL_STATUS_CONFIG: Record<TasheelStatus, StatusConfig>;
|
package/dist/lib/statusConfig.js
CHANGED
|
@@ -3,51 +3,49 @@ import { RequestStatus as e } from "../types/request.types.js";
|
|
|
3
3
|
var t = {
|
|
4
4
|
[e.Draft]: {
|
|
5
5
|
label: "جديد",
|
|
6
|
+
labelEn: "New",
|
|
6
7
|
color: "blue",
|
|
7
8
|
dgaColor: "info"
|
|
8
9
|
},
|
|
9
10
|
[e.InProgress]: {
|
|
10
11
|
label: "جارى العمل عليه",
|
|
12
|
+
labelEn: "In Progress",
|
|
11
13
|
color: "orange",
|
|
12
14
|
dgaColor: "Warning"
|
|
13
15
|
},
|
|
14
|
-
[e.Approved]: {
|
|
15
|
-
label: "مقبول",
|
|
16
|
-
color: "green",
|
|
17
|
-
dgaColor: "success"
|
|
18
|
-
},
|
|
19
16
|
[e.Rejected]: {
|
|
20
17
|
label: "مرفوض",
|
|
18
|
+
labelEn: "Rejected",
|
|
21
19
|
color: "red",
|
|
22
20
|
dgaColor: "error"
|
|
23
21
|
},
|
|
24
22
|
[e.Completed]: {
|
|
25
23
|
label: "مكتمل",
|
|
24
|
+
labelEn: "Completed",
|
|
26
25
|
color: "brand",
|
|
27
26
|
dgaColor: "success"
|
|
28
27
|
},
|
|
29
28
|
Draft: {
|
|
30
29
|
label: "جديد",
|
|
30
|
+
labelEn: "New",
|
|
31
31
|
color: "blue",
|
|
32
32
|
dgaColor: "info"
|
|
33
33
|
},
|
|
34
34
|
InProgress: {
|
|
35
35
|
label: "جارى العمل عليه",
|
|
36
|
+
labelEn: "In Progress",
|
|
36
37
|
color: "orange",
|
|
37
38
|
dgaColor: "Warning"
|
|
38
39
|
},
|
|
39
|
-
Approved: {
|
|
40
|
-
label: "مقبول",
|
|
41
|
-
color: "green",
|
|
42
|
-
dgaColor: "success"
|
|
43
|
-
},
|
|
44
40
|
Rejected: {
|
|
45
41
|
label: "مرفوض",
|
|
42
|
+
labelEn: "Rejected",
|
|
46
43
|
color: "red",
|
|
47
44
|
dgaColor: "error"
|
|
48
45
|
},
|
|
49
46
|
Completed: {
|
|
50
47
|
label: "مكتمل",
|
|
48
|
+
labelEn: "Completed",
|
|
51
49
|
color: "brand",
|
|
52
50
|
dgaColor: "success"
|
|
53
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=function(e){return e[e.Draft=0]=`Draft`,e[e.InProgress=1]=`InProgress`,e[e.Approved=2]=`Approved`,e[e.Rejected=3]=`Rejected`,e[e.Completed=4]=`Completed`,e}({}),t=function(e){return e[e.Citizen=1]=`Citizen`,e[e.Resident=2]=`Resident`,e[e.Unspecified=3]=`Unspecified`,e}({});exports.RequestStatus=e,exports.ResidenceStatusEnum=t;
|
|
1
|
+
var e=function(e){return e[e.Draft=0]=`Draft`,e[e.InProgress=1]=`InProgress`,e[e.Approved=2]=`Approved`,e[e.Rejected=3]=`Rejected`,e[e.Completed=4]=`Completed`,e}({}),t=function(e){return e.Saved=`محفوظ`,e.New=`جديد`,e.Issued=`صدر`,e.UnderProcess=`تحت الاجراء`,e}({}),n=function(e){return e[e.Citizen=1]=`Citizen`,e[e.Resident=2]=`Resident`,e[e.Unspecified=3]=`Unspecified`,e}({});exports.RequestStatus=e,exports.ResidenceStatusEnum=n,exports.TasheelStatus=t;
|
|
@@ -6,6 +6,12 @@ export declare enum RequestStatus {
|
|
|
6
6
|
Rejected = 3,
|
|
7
7
|
Completed = 4
|
|
8
8
|
}
|
|
9
|
+
export declare enum TasheelStatus {
|
|
10
|
+
Saved = "\u0645\u062D\u0641\u0648\u0638",
|
|
11
|
+
New = "\u062C\u062F\u064A\u062F",
|
|
12
|
+
Issued = "\u0635\u062F\u0631",
|
|
13
|
+
UnderProcess = "\u062A\u062D\u062A \u0627\u0644\u0627\u062C\u0631\u0627\u0621"
|
|
14
|
+
}
|
|
9
15
|
export declare enum ResidenceStatusEnum {
|
|
10
16
|
Citizen = 1,
|
|
11
17
|
Resident = 2,
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e[e.Draft = 0] = "Draft", e[e.InProgress = 1] = "InProgress", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.Completed = 4] = "Completed", e;
|
|
4
4
|
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Saved = "محفوظ", e.New = "جديد", e.Issued = "صدر", e.UnderProcess = "تحت الاجراء", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
5
7
|
return e[e.Citizen = 1] = "Citizen", e[e.Resident = 2] = "Resident", e[e.Unspecified = 3] = "Unspecified", e;
|
|
6
8
|
}({});
|
|
7
9
|
//#endregion
|
|
8
|
-
export { e as RequestStatus,
|
|
10
|
+
export { e as RequestStatus, n as ResidenceStatusEnum, t as TasheelStatus };
|
package/dist/types-entry.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./types/request.types.cjs"),t=require("./types/service.types.cjs"),n=require("./types/sections.types.cjs"),r=require("./types/satisfaction-content.types.cjs"),i=require("./types/media.types.cjs");exports.EventStatus=i.EventStatus,exports.FieldConditionLogic=t.FieldConditionLogic,exports.FieldConditionOperator=t.FieldConditionOperator,exports.FormFieldType=t.FormFieldType,exports.FormGenderEnum=t.FormGenderEnum,exports.FormTypeEnum=t.FormTypeEnum,exports.GalleryType=i.GalleryType,exports.MediaType=i.MediaType,exports.NewsCategory=i.NewsCategory,exports.RequestStatus=e.RequestStatus,exports.ResidenceStatusEnum=e.ResidenceStatusEnum,exports.SECTIONS_KEYS=n.SECTIONS_KEYS,exports.SectionsKey=n.SectionsKey,exports.SpeechRole=r.SpeechRole,exports.ValidationRuleType=t.ValidationRuleType;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./types/request.types.cjs"),t=require("./types/service.types.cjs"),n=require("./types/sections.types.cjs"),r=require("./types/satisfaction-content.types.cjs"),i=require("./types/media.types.cjs");exports.EventStatus=i.EventStatus,exports.FieldConditionLogic=t.FieldConditionLogic,exports.FieldConditionOperator=t.FieldConditionOperator,exports.FormFieldType=t.FormFieldType,exports.FormGenderEnum=t.FormGenderEnum,exports.FormTypeEnum=t.FormTypeEnum,exports.GalleryType=i.GalleryType,exports.MediaType=i.MediaType,exports.NewsCategory=i.NewsCategory,exports.RequestStatus=e.RequestStatus,exports.ResidenceStatusEnum=e.ResidenceStatusEnum,exports.SECTIONS_KEYS=n.SECTIONS_KEYS,exports.SectionsKey=n.SectionsKey,exports.SpeechRole=r.SpeechRole,exports.TasheelStatus=e.TasheelStatus,exports.ValidationRuleType=t.ValidationRuleType;
|
package/dist/types-entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RequestStatus as e, ResidenceStatusEnum as t } from "./types/request.types.js";
|
|
2
|
-
import { FieldConditionLogic as
|
|
3
|
-
import { SECTIONS_KEYS as
|
|
4
|
-
import { SpeechRole as
|
|
5
|
-
import { EventStatus as
|
|
6
|
-
export {
|
|
1
|
+
import { RequestStatus as e, ResidenceStatusEnum as t, TasheelStatus as n } from "./types/request.types.js";
|
|
2
|
+
import { FieldConditionLogic as r, FieldConditionOperator as i, FormFieldType as a, FormGenderEnum as o, FormTypeEnum as s, ValidationRuleType as c } from "./types/service.types.js";
|
|
3
|
+
import { SECTIONS_KEYS as l, SectionsKey as u } from "./types/sections.types.js";
|
|
4
|
+
import { SpeechRole as d } from "./types/satisfaction-content.types.js";
|
|
5
|
+
import { EventStatus as f, GalleryType as p, MediaType as m, NewsCategory as h } from "./types/media.types.js";
|
|
6
|
+
export { f as EventStatus, r as FieldConditionLogic, i as FieldConditionOperator, a as FormFieldType, o as FormGenderEnum, s as FormTypeEnum, p as GalleryType, m as MediaType, h as NewsCategory, e as RequestStatus, t as ResidenceStatusEnum, l as SECTIONS_KEYS, u as SectionsKey, d as SpeechRole, n as TasheelStatus, c as ValidationRuleType };
|