Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/export-v3/admin/atoms/AntDesignDatePicker.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,17 @@
"api": {
"id": "6141188c-5930-47c6-8405-e8e72b37c121"
},
"defaultValues": "\"year\"",
"defaultValues": null,
"description": null,
"fieldType": {
"id": "a9a2b9de-d59b-4b25-b877-6c743930def5"
},
"id": "2deb0f60-5962-4ba7-a1c0-f282f35b4fb0",
"key": "mode",
"name": null,
"name": "Mode",
"nextSibling": null,
"prevSibling": null,
"validationRules": "{\"general\":{\"nullable\":false}}"
"validationRules": null
},
{
"api": {
Expand Down
316 changes: 316 additions & 0 deletions data/export-v3/admin/atoms/AntDesignDateRangePicker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
{
"api": {
"__typename": "InterfaceType",
"fields": [
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "90b255f4-6ba9-4e2c-a44b-af43ff0b9a7f"
},
"id": "0e2f0e06-691f-4e90-92a2-5c4dcfa8f7e4",
"key": "disabledTime",
"name": "Disabled Time",
"nextSibling": {
"id": "306a2912-f9b1-4795-bd0a-cfe7ab68fa2d"
},
"prevSibling": null,
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "f6d0299e-4370-45ff-aa94-e56c1dd6142f"
},
"id": "306a2912-f9b1-4795-bd0a-cfe7ab68fa2d",
"key": "format",
"name": "Format",
"nextSibling": {
"id": "9fa8700f-73ae-4536-a603-bd24c3f57a14"
},
"prevSibling": {
"id": "0e2f0e06-691f-4e90-92a2-5c4dcfa8f7e4"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "90b255f4-6ba9-4e2c-a44b-af43ff0b9a7f"
},
"id": "9fa8700f-73ae-4536-a603-bd24c3f57a14",
"key": "onChange",
"name": "On Change",
"nextSibling": {
"id": "17ce65e6-ae48-4dfc-a2ce-52fc5e4b945c"
},
"prevSibling": {
"id": "306a2912-f9b1-4795-bd0a-cfe7ab68fa2d"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "90b255f4-6ba9-4e2c-a44b-af43ff0b9a7f"
},
"id": "17ce65e6-ae48-4dfc-a2ce-52fc5e4b945c",
"key": "onOk",
"name": "On Ok",
"nextSibling": {
"id": "0b418076-473e-4549-84fa-a996e41b3628"
},
"prevSibling": {
"id": "9fa8700f-73ae-4536-a603-bd24c3f57a14"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "90b255f4-6ba9-4e2c-a44b-af43ff0b9a7f"
},
"id": "0b418076-473e-4549-84fa-a996e41b3628",
"key": "onPanelChange",
"name": "On Panel Change",
"nextSibling": {
"id": "e1c3609e-9a9b-41a4-a80c-622cab4c6309"
},
"prevSibling": {
"id": "17ce65e6-ae48-4dfc-a2ce-52fc5e4b945c"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "7333edde-f8f5-4d3c-a595-01b5585b37da"
},
"id": "e1c3609e-9a9b-41a4-a80c-622cab4c6309",
"key": "renderExtraFooter",
"name": "Render Extra Footer",
"nextSibling": {
"id": "0722ced2-bd5f-4788-ab48-180eddd76ac1"
},
"prevSibling": {
"id": "0b418076-473e-4549-84fa-a996e41b3628"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "44c7df30-5f72-45ca-a3d1-d08f21ad34ba"
},
"id": "0722ced2-bd5f-4788-ab48-180eddd76ac1",
"key": "showNow",
"name": "Show Now",
"nextSibling": {
"id": "901d74f7-67e2-440b-9e32-5b9f6e01c629"
},
"prevSibling": {
"id": "e1c3609e-9a9b-41a4-a80c-622cab4c6309"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "777f7122-35da-4440-a6b1-d566053e22ce"
},
"id": "901d74f7-67e2-440b-9e32-5b9f6e01c629",
"key": "mode",
"name": "Mode",
"nextSibling": {
"id": "cf8efbb4-9a74-49c5-8192-22f8dfaabca5"
},
"prevSibling": {
"id": "0722ced2-bd5f-4788-ab48-180eddd76ac1"
},
"validationRules": null
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": "\"Select Date\"",
"description": null,
"fieldType": {
"id": "3a0d0fc6-c51e-4f05-85b4-cde709fe5625"
},
"id": "cf8efbb4-9a74-49c5-8192-22f8dfaabca5",
"key": "placeholder",
"name": null,
"nextSibling": {
"id": "702a70db-0e63-468e-893c-4b0b3933b621"
},
"prevSibling": {
"id": "901d74f7-67e2-440b-9e32-5b9f6e01c629"
},
"validationRules": "{\"general\":{\"nullable\":true}}"
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": "false",
"description": null,
"fieldType": {
"id": "44c7df30-5f72-45ca-a3d1-d08f21ad34ba"
},
"id": "702a70db-0e63-468e-893c-4b0b3933b621",
"key": "showTime",
"name": null,
"nextSibling": {
"id": "a80dd24e-82ba-48f2-a561-4edb7c7ffa47"
},
"prevSibling": {
"id": "cf8efbb4-9a74-49c5-8192-22f8dfaabca5"
},
"validationRules": "{}"
},
{
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"defaultValues": null,
"description": null,
"fieldType": {
"id": "44c7df30-5f72-45ca-a3d1-d08f21ad34ba"
},
"id": "a80dd24e-82ba-48f2-a561-4edb7c7ffa47",
"key": "showToday",
"name": "Show Today",
"nextSibling": null,
"prevSibling": {
"id": "702a70db-0e63-468e-893c-4b0b3933b621"
},
"validationRules": null
}
],
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79",
"kind": "InterfaceType",
"name": "AntDesignDateRangePicker API",
"types": [
{
"__typename": "InterfaceType",
"fields": [],
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79",
"kind": "InterfaceType",
"name": "AntDesignDateRangePicker API"
},
{
"__typename": "EnumType",
"allowedValues": [
{
"id": "80d79aa8-b5f2-4cc2-a88c-5b07af43c6e9",
"key": "(string",
"value": "(string"
},
{
"id": "b60455ab-16d2-424b-b430-6f94c05a25eb",
"key": "(value: moment) => string",
"value": "(value: moment) => string"
},
{
"id": "e24ca166-fd5b-4c2a-9450-14a8c4925484",
"key": "(value: moment) => string)[]",
"value": "(value: moment) => string)[]"
},
{
"id": "95bbdf3e-a9bb-4b63-8f48-2c1bbe910ddb",
"key": "string",
"value": "string"
}
],
"id": "f6d0299e-4370-45ff-aa94-e56c1dd6142f",
"kind": "EnumType",
"name": "AntDesignDateRangePicker Format Enum"
},
{
"__typename": "EnumType",
"allowedValues": [
{
"id": "496a1734-3bfc-4dc0-8ecc-3a28a4bda800",
"key": "Date",
"value": "date"
},
{
"id": "353e0f5c-9dcd-4b0b-a7ba-c699643a4e49",
"key": "Decade",
"value": "decade"
},
{
"id": "cd0b3436-5225-4c79-9568-4304b9809407",
"key": "Month",
"value": "month"
},
{
"id": "c6bb4525-9ece-495c-b433-20179d127619",
"key": "Time",
"value": "time"
},
{
"id": "bc9af2a4-fe1b-4ead-9c6e-18f221621df1",
"key": "Year",
"value": "year"
}
],
"id": "777f7122-35da-4440-a6b1-d566053e22ce",
"kind": "EnumType",
"name": "AntDesingDateRangePicker Mode"
}
]
},
"atom": {
"__typename": "Atom",
"api": {
"id": "16a05f57-8bc8-4b61-ab7a-1de642240d79"
},
"externalCssSource": null,
"externalJsSource": null,
"externalSourceType": null,
"icon": "DatePicker",
"id": "e4939c9c-4b9b-4e63-a57d-ebf2ae531735",
"name": "AntDesignDateRangePicker",
"requiredParents": [],
"suggestedChildren": [],
"tags": [
{
"id": "ca591e61-9820-4aab-a739-486f54df21ba"
}
],
"type": "AntDesignDateRangePicker"
}
}
1 change: 1 addition & 0 deletions libs/backend/data/seed/src/tag/antd/antd-tag-tree.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const antdTagTree: TagNode<IAntdCategoryTag | keyof IAntdAtomRecords> = {
IAtomType.AntDesignCascader,
{ [IAtomType.AntDesignCheckbox]: [IAtomType.AntDesignCheckboxGroup] },
IAtomType.AntDesignDatePicker,
IAtomType.AntDesignDateRangePicker,
{
[IAtomType.AntDesignForm]: [
IAtomType.AntDesignFormItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export const antdAtoms: IAtomRendererRecord = {
[IAtomType.AntDesignDatePicker]: dynamicLoader(
() => import('antd/lib/date-picker'),
),
[IAtomType.AntDesignDateRangePicker]: dynamicLoader(() =>
import('antd/lib/date-picker').then((mod) => mod.default.RangePicker),
),
[IAtomType.AntDesignDescriptions]: dynamicLoader(
() => import('antd/lib/descriptions'),
),
Expand Down
1 change: 1 addition & 0 deletions libs/shared/abstract/modules/src/atom/atom-type.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export enum __AtomType {
AntDesignCollapse = 'AntDesignCollapse',
AntDesignConfigProvider = 'AntDesignConfigProvider',
AntDesignDatePicker = 'AntDesignDatePicker',
AntDesignDateRangePicker = 'AntDesignDateRangePicker',
AntDesignDescriptions = 'AntDesignDescriptions',
AntDesignDivider = 'AntDesignDivider',
AntDesignDrawer = 'AntDesignDrawer',
Expand Down
11 changes: 5 additions & 6 deletions libs/shared/data/seed/src/atoms/antd-atom.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,11 @@ export const antdAtomData: IAntdAtomRecords = {
icon: IAtomType.AntDesignDatePicker,
tag: IAtomType.AntDesignDatePicker,
},
// 'DatePicker--Common API': IAtomType.AntDesignDatePicker,
// 'DatePicker--DatePicker[picker=month]': IAtomType.AntDesignDatePicker,
// 'DatePicker--DatePicker[picker=quarter]': IAtomType.AntDesignDatePicker,
// 'DatePicker--DatePicker[picker=week]': IAtomType.AntDesignDatePicker,
// 'DatePicker--DatePicker[picker=year]': IAtomType.AntDesignDatePicker,
// 'DatePicker--RangePicker': IAtomType.AntDesignDatePicker,
[IAtomType.AntDesignDateRangePicker]: {
file: 'DatePicker',
icon: IAtomType.AntDesignDateRangePicker,
tag: IAtomType.AntDesignDateRangePicker,
},
[IAtomType.AntDesignDescriptions]: {
file: 'Descriptions',
icon: IAtomType.AntDesignDescriptions,
Expand Down
1 change: 1 addition & 0 deletions libs/shared/infra/gqlgen/src/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6003,6 +6003,7 @@ export enum AtomType {
AntDesignCollapse = 'AntDesignCollapse',
AntDesignConfigProvider = 'AntDesignConfigProvider',
AntDesignDatePicker = 'AntDesignDatePicker',
AntDesignDateRangePicker = 'AntDesignDateRangePicker',
AntDesignDescriptions = 'AntDesignDescriptions',
AntDesignDivider = 'AntDesignDivider',
AntDesignDrawer = 'AntDesignDrawer',
Expand Down
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5028,6 +5028,7 @@ enum AtomType {
AntDesignCollapse
AntDesignConfigProvider
AntDesignDatePicker
AntDesignDateRangePicker
AntDesignDescriptions
AntDesignDivider
AntDesignDrawer
Expand Down