@nocobase/client 0.9.1-alpha.2 → 0.9.2-alpha.2
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/.umirc.ts +2 -2
- package/es/acl/ACLProvider.js +35 -125
- package/es/acl/ACLShortcut.js +11 -18
- package/es/acl/Configuration/ConfigureCenter.js +57 -101
- package/es/acl/Configuration/MenuConfigure.js +92 -147
- package/es/acl/Configuration/MenuItemsProvider.js +0 -7
- package/es/acl/Configuration/PermisionProvider.js +54 -84
- package/es/acl/Configuration/RoleConfigure.js +22 -43
- package/es/acl/Configuration/RoleTable.js +5 -9
- package/es/acl/Configuration/RolesResourcesActions.js +10 -54
- package/es/acl/Configuration/ScopeSelect.js +5 -15
- package/es/acl/Configuration/StrategyActions.js +10 -31
- package/es/acl/Configuration/schemas/roles.js +4 -4
- package/es/acl/Configuration/schemas/scopes.js +4 -8
- package/es/acl/Configuration/schemas/useRoleResourceValues.js +5 -8
- package/es/acl/Configuration/schemas/useSaveRoleResourceAction.js +23 -30
- package/es/acl/style.less +1 -1
- package/es/antd-config-provider/index.js +30 -41
- package/es/antd-config-provider/loadConstrueLocale.js +4 -9
- package/es/api-client/APIClient.js +10 -42
- package/es/api-client/APIClientProvider.js +1 -1
- package/es/api-client/hooks/assign.js +0 -18
- package/es/api-client/hooks/useRequest.js +35 -59
- package/es/appInfo/CurrentAppInfoProvider.js +16 -3
- package/es/application/Application.js +87 -121
- package/es/application/compose.js +12 -23
- package/es/async-data-provider/index.js +7 -12
- package/es/block-provider/BlockProvider.d.ts +1 -0
- package/es/block-provider/BlockProvider.js +56 -96
- package/es/block-provider/BlockSchemaComponentProvider.js +10 -5
- package/es/block-provider/CalendarBlockProvider.d.ts +1 -0
- package/es/block-provider/CalendarBlockProvider.js +16 -19
- package/es/block-provider/DetailsBlockProvider.js +11 -16
- package/es/block-provider/FilterFormBlockProvider.d.ts +1 -0
- package/es/block-provider/FilterFormBlockProvider.js +16 -0
- package/es/block-provider/FormBlockProvider.d.ts +3 -0
- package/es/block-provider/FormBlockProvider.js +71 -29
- package/es/block-provider/FormFieldProvider.js +17 -21
- package/es/block-provider/GanttBlockProvider.d.ts +11 -0
- package/es/block-provider/GanttBlockProvider.js +150 -0
- package/es/block-provider/KanbanBlockProvider.js +54 -110
- package/es/block-provider/SharedFilterProvider.js +10 -25
- package/es/block-provider/TableBlockProvider.d.ts +3 -0
- package/es/block-provider/TableBlockProvider.js +164 -96
- package/es/block-provider/TableFieldProvider.js +107 -160
- package/es/block-provider/TableSelectorProvider.d.ts +18 -1
- package/es/block-provider/TableSelectorProvider.js +106 -105
- package/es/block-provider/hooks/index.d.ts +37 -0
- package/es/block-provider/hooks/index.js +1093 -972
- package/es/block-provider/index.d.ts +4 -0
- package/es/block-provider/index.js +5 -1
- package/es/board/Board.js +110 -153
- package/es/board/Card.js +7 -9
- package/es/board/CardAdder.js +6 -17
- package/es/board/CardForm.js +1 -5
- package/es/board/Column.js +27 -39
- package/es/board/ColumnAdder.js +5 -16
- package/es/board/ColumnForm.js +1 -5
- package/es/board/DefaultCard.js +3 -5
- package/es/board/DefaultColumnHeader.js +17 -34
- package/es/board/Kanban.js +5 -16
- package/es/board/helpers.js +7 -24
- package/es/board/services.js +4 -12
- package/es/board/utils.js +5 -24
- package/es/board/withDroppable.js +5 -11
- package/es/china-region/index.js +5 -21
- package/es/collection-manager/CollectionField.js +16 -42
- package/es/collection-manager/CollectionFieldProvider.js +5 -10
- package/es/collection-manager/CollectionHistoryProvider.js +24 -33
- package/es/collection-manager/CollectionManagerProvider.js +86 -121
- package/es/collection-manager/CollectionManagerSchemaComponentProvider.js +4 -4
- package/es/collection-manager/CollectionManagerShortcut.js +19 -23
- package/es/collection-manager/CollectionProvider.js +4 -8
- package/es/collection-manager/Configuration/AddCategoryAction.js +36 -56
- package/es/collection-manager/Configuration/AddCollectionAction.js +106 -129
- package/es/collection-manager/Configuration/AddFieldAction.js +87 -108
- package/es/collection-manager/Configuration/AddSubFieldAction.js +36 -56
- package/es/collection-manager/Configuration/CollectionFieldsTable.js +10 -16
- package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +37 -86
- package/es/collection-manager/Configuration/ConfigurationTable.js +158 -113
- package/es/collection-manager/Configuration/ConfigurationTabs.js +94 -146
- package/es/collection-manager/Configuration/EditCategoryAction.js +44 -68
- package/es/collection-manager/Configuration/EditCollectionAction.js +59 -94
- package/es/collection-manager/Configuration/EditFieldAction.js +102 -133
- package/es/collection-manager/Configuration/EditSubFieldAction.js +54 -85
- package/es/collection-manager/Configuration/OverridingCollectionField.js +88 -134
- package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -0
- package/es/collection-manager/Configuration/SyncFieldsAction.js +236 -0
- package/es/collection-manager/Configuration/ViewInheritedField.js +51 -81
- package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +1 -3
- package/es/collection-manager/Configuration/components/CollectionTemplate.js +1 -3
- package/es/collection-manager/Configuration/components/FieldSummary.js +2 -8
- package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +2 -0
- package/es/collection-manager/Configuration/components/TemplateSummay.js +26 -0
- package/es/collection-manager/Configuration/components/index.js +5 -18
- package/es/collection-manager/Configuration/index.d.ts +1 -0
- package/es/collection-manager/Configuration/index.js +1 -0
- package/es/collection-manager/Configuration/interfaces.js +4 -7
- package/es/collection-manager/Configuration/schemas/collectionFields.js +17 -3
- package/es/collection-manager/Configuration/schemas/collections.js +22 -30
- package/es/collection-manager/Configuration/templates.js +6 -6
- package/es/collection-manager/ResourceActionProvider.js +18 -38
- package/es/collection-manager/action-hooks.d.ts +2 -0
- package/es/collection-manager/action-hooks.js +422 -432
- package/es/collection-manager/hooks/useCollection.d.ts +4 -0
- package/es/collection-manager/hooks/useCollection.js +12 -9
- package/es/collection-manager/hooks/useCollectionDataSource.d.ts +1 -1
- package/es/collection-manager/hooks/useCollectionDataSource.js +5 -6
- package/es/collection-manager/hooks/useCollectionField.js +4 -6
- package/es/collection-manager/hooks/useCollectionManager.d.ts +23 -3
- package/es/collection-manager/hooks/useCollectionManager.js +125 -90
- package/es/collection-manager/hooks/useOptions.js +5 -8
- package/es/collection-manager/index.d.ts +1 -1
- package/es/collection-manager/index.js +1 -1
- package/es/collection-manager/interfaces/attachment.js +5 -9
- package/es/collection-manager/interfaces/checkbox.js +5 -4
- package/es/collection-manager/interfaces/checkboxGroup.js +5 -4
- package/es/collection-manager/interfaces/chinaRegion.js +5 -8
- package/es/collection-manager/interfaces/createdAt.js +5 -4
- package/es/collection-manager/interfaces/createdBy.js +5 -4
- package/es/collection-manager/interfaces/datetime.js +5 -4
- package/es/collection-manager/interfaces/email.js +5 -4
- package/es/collection-manager/interfaces/icon.js +6 -5
- package/es/collection-manager/interfaces/id.js +1 -0
- package/es/collection-manager/interfaces/index.d.ts +1 -0
- package/es/collection-manager/interfaces/index.js +2 -1
- package/es/collection-manager/interfaces/input.js +5 -5
- package/es/collection-manager/interfaces/integer.js +6 -5
- package/es/collection-manager/interfaces/json.js +8 -6
- package/es/collection-manager/interfaces/linkTo.js +25 -12
- package/es/collection-manager/interfaces/m2m.js +21 -14
- package/es/collection-manager/interfaces/m2o.js +21 -10
- package/es/collection-manager/interfaces/markdown.js +5 -5
- package/es/collection-manager/interfaces/multipleSelect.js +5 -4
- package/es/collection-manager/interfaces/number.js +6 -5
- package/es/collection-manager/interfaces/o2m.js +12 -12
- package/es/collection-manager/interfaces/o2o.js +42 -30
- package/es/collection-manager/interfaces/password.js +6 -5
- package/es/collection-manager/interfaces/percent.js +11 -15
- package/es/collection-manager/interfaces/phone.js +8 -6
- package/es/collection-manager/interfaces/properties/index.js +7 -6
- package/es/collection-manager/interfaces/properties/operators.d.ts +11 -19
- package/es/collection-manager/interfaces/properties/operators.js +6 -21
- package/es/collection-manager/interfaces/radioGroup.js +5 -4
- package/es/collection-manager/interfaces/richText.js +5 -5
- package/es/collection-manager/interfaces/select.js +5 -4
- package/es/collection-manager/interfaces/subTable.js +15 -12
- package/es/collection-manager/interfaces/textarea.js +5 -5
- package/es/collection-manager/interfaces/time.js +5 -4
- package/es/collection-manager/interfaces/updatedAt.js +5 -4
- package/es/collection-manager/interfaces/updatedBy.js +5 -4
- package/es/collection-manager/interfaces/url.d.ts +2 -0
- package/es/collection-manager/interfaces/url.js +30 -0
- package/es/collection-manager/sub-table.js +79 -126
- package/es/collection-manager/templates/calendar.js +11 -10
- package/es/collection-manager/templates/components/PreviewFields.d.ts +2 -0
- package/es/collection-manager/templates/components/PreviewFields.js +256 -0
- package/es/collection-manager/templates/components/PreviewTable.d.ts +1 -0
- package/es/collection-manager/templates/components/PreviewTable.js +133 -0
- package/es/collection-manager/templates/expression.d.ts +2 -0
- package/es/collection-manager/templates/expression.js +52 -0
- package/es/collection-manager/templates/index.d.ts +3 -0
- package/es/collection-manager/templates/index.js +4 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/collection-manager/templates/properties/index.js +5 -11
- package/es/collection-manager/templates/tree.d.ts +2 -0
- package/es/collection-manager/templates/tree.js +70 -0
- package/es/collection-manager/templates/types.d.ts +6 -0
- package/es/collection-manager/templates/view.d.ts +2 -0
- package/es/collection-manager/templates/view.js +135 -0
- package/es/collection-manager/types.d.ts +2 -0
- package/es/document-title/index.js +7 -17
- package/es/filter-provider/FilterProvider.d.ts +45 -0
- package/es/filter-provider/FilterProvider.js +143 -0
- package/es/filter-provider/index.d.ts +2 -0
- package/es/filter-provider/index.js +2 -0
- package/es/filter-provider/utils.d.ts +27 -0
- package/es/filter-provider/utils.js +170 -0
- package/es/formula/Expression.js +48 -112
- package/es/formula/Result.js +14 -33
- package/es/i18n/i18n.js +2 -3
- package/es/icon/Icon.js +7 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/en_US.d.ts +67 -4
- package/es/locale/en_US.js +68 -5
- package/es/locale/ja_JP.d.ts +54 -2
- package/es/locale/ja_JP.js +55 -4
- package/es/locale/pt_BR.d.ts +650 -0
- package/es/locale/pt_BR.js +649 -0
- package/es/locale/ru_RU.d.ts +29 -2
- package/es/locale/ru_RU.js +30 -3
- package/es/locale/tr_TR.d.ts +30 -2
- package/es/locale/tr_TR.js +31 -3
- package/es/locale/zh_CN.d.ts +84 -6
- package/es/locale/zh_CN.js +85 -7
- package/es/plugin-manager/PinnedPluginListProvider.d.ts +5 -0
- package/es/plugin-manager/PinnedPluginListProvider.js +50 -0
- package/es/plugin-manager/PluginManager.js +23 -52
- package/es/plugin-manager/PluginManagerProvider.js +1 -1
- package/es/plugin-manager/context.d.ts +3 -0
- package/es/plugin-manager/context.js +4 -1
- package/es/plugin-manager/index.d.ts +1 -0
- package/es/plugin-manager/index.js +1 -0
- package/es/pm/PluginManagerLink.js +24 -49
- package/es/pm/index.js +250 -209
- package/es/powered-by/index.js +1 -4
- package/es/record-provider/index.js +8 -14
- package/es/route-switch/RouteSwitch.js +5 -11
- package/es/route-switch/RouteSwitchProvider.js +10 -12
- package/es/route-switch/antd/admin-layout/index.js +45 -82
- package/es/route-switch/antd/auth-layout/index.js +1 -5
- package/es/route-switch/hooks.js +2 -6
- package/es/schema-component/antd/AntdSchemaComponentProvider.js +4 -4
- package/es/schema-component/antd/action/Action.Container.js +5 -8
- package/es/schema-component/antd/action/Action.Designer.js +54 -132
- package/es/schema-component/antd/action/Action.Drawer.js +11 -20
- package/es/schema-component/antd/action/Action.Link.js +4 -4
- package/es/schema-component/antd/action/Action.Modal.d.ts +2 -1
- package/es/schema-component/antd/action/Action.Modal.js +11 -19
- package/es/schema-component/antd/action/Action.Page.js +5 -15
- package/es/schema-component/antd/action/Action.js +44 -65
- package/es/schema-component/antd/action/ActionBar.js +11 -24
- package/es/schema-component/antd/action/hooks.d.ts +1 -0
- package/es/schema-component/antd/action/hooks.js +41 -50
- package/es/schema-component/antd/action/types.d.ts +1 -1
- package/es/schema-component/antd/action/utils.d.ts +1 -1
- package/es/schema-component/antd/action/utils.js +26 -19
- package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +19 -13
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +34 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +1 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.js +87 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.js +13 -17
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +91 -29
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.js +51 -110
- package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +3 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.js +9 -11
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +2 -7
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +4 -8
- package/es/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +1 -0
- package/es/schema-component/antd/association-filter/AssociationFilterProvider.js +2 -0
- package/es/schema-component/antd/association-filter/utilts.d.ts +2 -0
- package/es/schema-component/antd/association-filter/utilts.js +3 -0
- package/es/schema-component/antd/association-select/AssociationSelect.d.ts +1 -0
- package/es/schema-component/antd/association-select/AssociationSelect.js +495 -88
- package/es/schema-component/antd/association-select/ReadPretty.js +4 -4
- package/es/schema-component/antd/association-select/useServiceOptions.js +8 -15
- package/es/schema-component/antd/block-item/BlockItem.js +0 -2
- package/es/schema-component/antd/block-item/TestDesigner.js +1 -2
- package/es/schema-component/antd/calendar/Calendar.Designer.js +23 -29
- package/es/schema-component/antd/calendar/Calendar.js +30 -63
- package/es/schema-component/antd/calendar/DeleteEvent.js +53 -81
- package/es/schema-component/antd/calendar/Nav.js +2 -4
- package/es/schema-component/antd/calendar/Title.js +5 -8
- package/es/schema-component/antd/calendar/Today.js +3 -6
- package/es/schema-component/antd/calendar/ViewSelect.js +5 -7
- package/es/schema-component/antd/calendar/components/Header.js +7 -10
- package/es/schema-component/antd/calendar/style.less +1 -1
- package/es/schema-component/antd/card-item/CardItem.js +5 -9
- package/es/schema-component/antd/cascader/Cascader.js +19 -36
- package/es/schema-component/antd/cascader/ReadPretty.js +3 -13
- package/es/schema-component/antd/checkbox/Checkbox.js +5 -8
- package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +8 -0
- package/es/schema-component/antd/collection-select/CollectionSelect.js +61 -0
- package/es/schema-component/antd/collection-select/index.d.ts +1 -0
- package/es/schema-component/antd/collection-select/index.js +1 -0
- package/es/schema-component/antd/color-select/ColorSelect.js +4 -6
- package/es/schema-component/antd/cron/Cron.d.ts +6 -3
- package/es/schema-component/antd/cron/Cron.js +20 -19
- package/es/schema-component/antd/cron/CronSet.d.ts +7 -0
- package/es/schema-component/antd/cron/CronSet.js +106 -0
- package/es/schema-component/antd/cron/index.d.ts +1 -0
- package/es/schema-component/antd/cron/index.js +2 -1
- package/es/schema-component/antd/cron/locale/index.d.ts +0 -1
- package/es/schema-component/antd/cron/locale/index.js +1 -3
- package/es/schema-component/antd/cron/locale/zh-CN.js +8 -4
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +8 -4
- package/es/schema-component/antd/date-picker/DatePicker.js +42 -3
- package/es/schema-component/antd/date-picker/ReadPretty.js +0 -9
- package/es/schema-component/antd/date-picker/util.d.ts +25 -2
- package/es/schema-component/antd/date-picker/util.js +129 -32
- package/es/schema-component/antd/details/Details.d.ts +7 -0
- package/es/schema-component/antd/details/Details.js +2 -0
- package/es/schema-component/antd/details/index.d.ts +1 -0
- package/es/schema-component/antd/details/index.js +1 -0
- package/es/schema-component/antd/filter/DynamicComponent.js +13 -61
- package/es/schema-component/antd/filter/Filter.Action.Designer.js +10 -27
- package/es/schema-component/antd/filter/Filter.js +14 -13
- package/es/schema-component/antd/filter/FilterAction.js +35 -65
- package/es/schema-component/antd/filter/FilterGroup.js +8 -16
- package/es/schema-component/antd/filter/FilterItem.js +10 -15
- package/es/schema-component/antd/filter/FilterItems.js +0 -1
- package/es/schema-component/antd/filter/SaveDefaultValue.js +4 -13
- package/es/schema-component/antd/filter/useFilterActionProps.js +69 -60
- package/es/schema-component/antd/filter/useOperators.d.ts +5 -0
- package/es/schema-component/antd/filter/useOperators.js +25 -0
- package/es/schema-component/antd/filter/useValues.js +17 -39
- package/es/schema-component/antd/form/Form.Designer.js +2 -3
- package/es/schema-component/antd/form/Form.js +35 -56
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -0
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +26 -0
- package/es/schema-component/antd/form-item/FormItem.js +89 -77
- package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +23 -0
- package/es/schema-component/antd/form-item/SchemaSettingOptions.js +615 -0
- package/es/schema-component/antd/form-v2/Form.Designer.js +30 -45
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +5 -0
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.js +40 -0
- package/es/schema-component/antd/form-v2/Form.d.ts +2 -0
- package/es/schema-component/antd/form-v2/Form.js +31 -50
- package/es/schema-component/antd/form-v2/FormField.js +1 -5
- package/es/schema-component/antd/form-v2/Templates.d.ts +4 -0
- package/es/schema-component/antd/form-v2/Templates.js +168 -0
- package/es/schema-component/antd/form-v2/index.d.ts +1 -1
- package/es/schema-component/antd/form-v2/index.js +4 -2
- package/es/schema-component/antd/form-v2/utils.d.ts +0 -1
- package/es/schema-component/antd/form-v2/utils.js +22 -95
- package/es/schema-component/antd/g2plot/G2Plot.js +8 -23
- package/es/schema-component/antd/g2plot/G2PlotDesigner.js +40 -51
- package/es/schema-component/antd/g2plot/requestChartData.js +19 -25
- package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +1 -0
- package/es/schema-component/antd/gantt/Gantt.Designer.js +214 -0
- package/es/schema-component/antd/gantt/components/calendar/calendar.d.ts +14 -0
- package/es/schema-component/antd/gantt/components/calendar/calendar.js +324 -0
- package/es/schema-component/antd/gantt/components/calendar/style.d.ts +4 -0
- package/es/schema-component/antd/gantt/components/calendar/style.js +7 -0
- package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +11 -0
- package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +26 -0
- package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +2 -0
- package/es/schema-component/antd/gantt/components/gantt/Event.js +5 -0
- package/es/schema-component/antd/gantt/components/gantt/gantt.d.ts +5 -0
- package/es/schema-component/antd/gantt/components/gantt/gantt.js +638 -0
- package/es/schema-component/antd/gantt/components/gantt/style.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/gantt/style.js +6 -0
- package/es/schema-component/antd/gantt/components/gantt/task-gantt-content.d.ts +25 -0
- package/es/schema-component/antd/gantt/components/gantt/task-gantt-content.js +366 -0
- package/es/schema-component/antd/gantt/components/gantt/task-gantt.d.ts +14 -0
- package/es/schema-component/antd/gantt/components/gantt/task-gantt.js +67 -0
- package/es/schema-component/antd/gantt/components/grid/grid-body.d.ts +13 -0
- package/es/schema-component/antd/gantt/components/grid/grid-body.js +112 -0
- package/es/schema-component/antd/gantt/components/grid/grid.d.ts +4 -0
- package/es/schema-component/antd/gantt/components/grid/grid.js +13 -0
- package/es/schema-component/antd/gantt/components/grid/style.d.ts +4 -0
- package/es/schema-component/antd/gantt/components/grid/style.js +7 -0
- package/es/schema-component/antd/gantt/components/other/arrow.d.ts +12 -0
- package/es/schema-component/antd/gantt/components/other/arrow.js +57 -0
- package/es/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +8 -0
- package/es/schema-component/antd/gantt/components/other/horizontal-scroll.js +30 -0
- package/es/schema-component/antd/gantt/components/other/style.d.ts +7 -0
- package/es/schema-component/antd/gantt/components/other/style.js +10 -0
- package/es/schema-component/antd/gantt/components/other/tooltip.d.ts +29 -0
- package/es/schema-component/antd/gantt/components/other/tooltip.js +103 -0
- package/es/schema-component/antd/gantt/components/other/vertical-scroll.d.ts +9 -0
- package/es/schema-component/antd/gantt/components/other/vertical-scroll.js +32 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.d.ts +11 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.js +19 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +21 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.js +48 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.d.ts +7 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.js +10 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.js +38 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/bar.js +60 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/style.d.ts +2 -0
- package/es/schema-component/antd/gantt/components/task-item/bar/style.js +5 -0
- package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.js +30 -0
- package/es/schema-component/antd/gantt/components/task-item/milestone/style.d.ts +2 -0
- package/es/schema-component/antd/gantt/components/task-item/milestone/style.js +5 -0
- package/es/schema-component/antd/gantt/components/task-item/project/project.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/project/project.js +31 -0
- package/es/schema-component/antd/gantt/components/task-item/project/style.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/project/style.js +6 -0
- package/es/schema-component/antd/gantt/components/task-item/style.d.ts +3 -0
- package/es/schema-component/antd/gantt/components/task-item/style.js +6 -0
- package/es/schema-component/antd/gantt/components/task-item/task-item.d.ts +15 -0
- package/es/schema-component/antd/gantt/components/task-item/task-item.js +105 -0
- package/es/schema-component/antd/gantt/context.d.ts +3 -0
- package/es/schema-component/antd/gantt/context.js +4 -0
- package/es/schema-component/antd/gantt/helpers/bar-helper.d.ts +14 -0
- package/es/schema-component/antd/gantt/helpers/bar-helper.js +329 -0
- package/es/schema-component/antd/gantt/helpers/date-helper.d.ts +18 -0
- package/es/schema-component/antd/gantt/helpers/date-helper.js +182 -0
- package/es/schema-component/antd/gantt/helpers/other-helper.d.ts +9 -0
- package/es/schema-component/antd/gantt/helpers/other-helper.js +65 -0
- package/es/schema-component/antd/gantt/index.d.ts +2 -0
- package/es/schema-component/antd/gantt/index.js +11 -0
- package/es/schema-component/antd/gantt/types/bar-task.d.ts +22 -0
- package/es/schema-component/antd/gantt/types/bar-task.js +1 -0
- package/es/schema-component/antd/gantt/types/date-setup.d.ts +5 -0
- package/es/schema-component/antd/gantt/types/date-setup.js +1 -0
- package/es/schema-component/antd/gantt/types/gantt-task-actions.d.ts +8 -0
- package/es/schema-component/antd/gantt/types/gantt-task-actions.js +1 -0
- package/es/schema-component/antd/gantt/types/public-types.d.ts +136 -0
- package/es/schema-component/antd/gantt/types/public-types.js +12 -0
- package/es/schema-component/antd/grid/Grid.js +62 -116
- package/es/schema-component/antd/icon-picker/IconPicker.js +12 -29
- package/es/schema-component/antd/index.d.ts +6 -2
- package/es/schema-component/antd/index.js +6 -2
- package/es/schema-component/antd/index.less +28 -0
- package/es/schema-component/antd/input/EllipsisWithTooltip.js +12 -22
- package/es/schema-component/antd/input/Input.d.ts +3 -3
- package/es/schema-component/antd/input/Input.js +17 -16
- package/es/schema-component/antd/input/Json.d.ts +7 -5
- package/es/schema-component/antd/input/Json.js +9 -14
- package/es/schema-component/antd/input/ReadPretty.d.ts +2 -2
- package/es/schema-component/antd/input/ReadPretty.js +21 -21
- package/es/schema-component/antd/input-number/InputNumber.js +5 -11
- package/es/schema-component/antd/input-number/ReadPretty.js +3 -5
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +1 -0
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.js +26 -0
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +22 -22
- package/es/schema-component/antd/kanban/Kanban.Card.js +25 -38
- package/es/schema-component/antd/kanban/Kanban.Designer.js +19 -20
- package/es/schema-component/antd/kanban/Kanban.js +32 -59
- package/es/schema-component/antd/kanban/index.js +2 -0
- package/es/schema-component/antd/kanban/index.less +8 -5
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.js +1 -3
- package/es/schema-component/antd/markdown/Markdown.Void.js +43 -58
- package/es/schema-component/antd/markdown/Markdown.js +14 -8
- package/es/schema-component/antd/markdown/highlight-theme/default.less +98 -0
- package/es/schema-component/antd/markdown/highlight-theme/table.less +36 -0
- package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.d.ts +5 -0
- package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.js +63 -0
- package/es/schema-component/antd/markdown/md.d.ts +5 -0
- package/es/schema-component/antd/markdown/md.js +14 -0
- package/es/schema-component/antd/markdown/util.d.ts +5 -1
- package/es/schema-component/antd/markdown/util.js +60 -8
- package/es/schema-component/antd/menu/Menu.Designer.js +27 -62
- package/es/schema-component/antd/menu/Menu.js +62 -114
- package/es/schema-component/antd/menu/MenuItemInitializers/index.js +170 -196
- package/es/schema-component/antd/menu/util.js +2 -21
- package/es/schema-component/antd/page/FixedBlock.d.ts +8 -7
- package/es/schema-component/antd/page/FixedBlock.js +100 -131
- package/es/schema-component/antd/page/Page.js +86 -113
- package/es/schema-component/antd/page/PageTabDesigner.js +11 -26
- package/es/schema-component/antd/pagination/index.js +14 -12
- package/es/schema-component/antd/password/Password.js +7 -12
- package/es/schema-component/antd/password/PasswordStrength.js +0 -32
- package/es/schema-component/antd/percent/Percent.js +5 -5
- package/es/schema-component/antd/preview/Preview.d.ts +15 -0
- package/es/schema-component/antd/preview/Preview.js +234 -0
- package/es/schema-component/antd/preview/index.d.ts +1 -0
- package/es/schema-component/antd/preview/index.js +1 -0
- package/es/schema-component/antd/radio/Radio.js +1 -4
- package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +2 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +166 -91
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +30 -46
- package/es/schema-component/antd/record-picker/useFieldNames.js +4 -5
- package/es/schema-component/antd/record-picker/util.d.ts +1 -1
- package/es/schema-component/antd/record-picker/util.js +14 -9
- package/es/schema-component/antd/remote-select/ReadPretty.js +22 -30
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.js +48 -70
- package/es/schema-component/antd/remote-select/shared.js +0 -1
- package/es/schema-component/antd/rich-text/RichText.js +6 -6
- package/es/schema-component/antd/select/ReadPretty.js +4 -9
- package/es/schema-component/antd/select/Select.js +15 -37
- package/es/schema-component/antd/select/shared.js +5 -25
- package/es/schema-component/antd/space/index.js +4 -7
- package/es/schema-component/antd/table/Table.Array.js +48 -97
- package/es/schema-component/antd/table/Table.Column.ActionBar.js +0 -2
- package/es/schema-component/antd/table/Table.Column.Decorator.js +5 -14
- package/es/schema-component/antd/table/Table.Column.Designer.js +37 -57
- package/es/schema-component/antd/table/Table.Designer.js +2 -3
- package/es/schema-component/antd/table/Table.RowActionDesigner.js +1 -3
- package/es/schema-component/antd/table/Table.RowSelection.js +6 -18
- package/es/schema-component/antd/table/Table.Void.Designer.js +8 -17
- package/es/schema-component/antd/table/Table.Void.js +17 -43
- package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -0
- package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +150 -0
- package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +1 -3
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +0 -2
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -17
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +28 -34
- package/es/schema-component/antd/table-v2/Table.Designer.js +2 -3
- package/es/schema-component/antd/table-v2/Table.js +145 -156
- package/es/schema-component/antd/table-v2/TableBlockDesigner.js +62 -46
- package/es/schema-component/antd/table-v2/TableField.js +5 -11
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +42 -27
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +10 -0
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +56 -0
- package/es/schema-component/antd/table-v2/utils.d.ts +2 -0
- package/es/schema-component/antd/table-v2/utils.js +38 -2
- package/es/schema-component/antd/tabs/Tabs.Designer.js +7 -9
- package/es/schema-component/antd/tabs/Tabs.js +1 -5
- package/es/schema-component/antd/time-picker/ReadPretty.js +2 -4
- package/es/schema-component/antd/time-picker/TimePicker.js +4 -6
- package/es/schema-component/antd/tree-select/ReadPretty.js +1 -8
- package/es/schema-component/antd/tree-select/TreeSelect.js +4 -4
- package/es/schema-component/antd/upload/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/upload/ReadPretty.js +18 -26
- package/es/schema-component/antd/upload/Upload.js +73 -58
- package/es/schema-component/antd/upload/shared.js +14 -53
- package/es/schema-component/antd/upload/type.d.ts +11 -0
- package/es/schema-component/antd/variable/Input.js +57 -67
- package/es/schema-component/antd/variable/JSONInput.js +19 -31
- package/es/schema-component/antd/variable/TextArea.d.ts +3 -0
- package/es/schema-component/antd/variable/TextArea.js +256 -161
- package/es/schema-component/antd/variable/Variable.js +2 -2
- package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -0
- package/es/schema-component/antd/variable/VariableSelect.js +65 -0
- package/es/schema-component/antd/variable/XButton.d.ts +9 -0
- package/es/schema-component/antd/variable/XButton.js +17 -0
- package/es/schema-component/common/dnd-context/index.js +13 -39
- package/es/schema-component/common/sortable-item/SortableItem.js +21 -37
- package/es/schema-component/common/utils/logic.js +74 -93
- package/es/schema-component/common/utils/uitls.js +47 -43
- package/es/schema-component/core/DesignableSwitch.js +12 -14
- package/es/schema-component/core/FormProvider.js +5 -12
- package/es/schema-component/core/RemoteSchemaComponent.js +21 -30
- package/es/schema-component/core/SchemaComponent.js +12 -26
- package/es/schema-component/core/SchemaComponentOptions.js +4 -7
- package/es/schema-component/core/SchemaComponentProvider.js +19 -35
- package/es/schema-component/hooks/index.d.ts +2 -0
- package/es/schema-component/hooks/index.js +3 -1
- package/es/schema-component/hooks/useAttach.js +0 -1
- package/es/schema-component/hooks/useCompile.js +4 -5
- package/es/schema-component/hooks/useComponent.js +1 -4
- package/es/schema-component/hooks/useDesignable.js +205 -385
- package/es/schema-component/hooks/useDesigner.js +1 -4
- package/es/schema-component/hooks/useFieldComponentOptions.js +18 -13
- package/es/schema-component/hooks/useFieldProps.js +4 -5
- package/es/schema-component/hooks/useFieldTitle.js +2 -7
- package/es/schema-component/hooks/useProps.js +1 -5
- package/es/schema-component/hooks/useTableSize.d.ts +5 -0
- package/es/schema-component/hooks/useTableSize.js +42 -0
- package/es/schema-initializer/SchemaInitializer.js +47 -82
- package/es/schema-initializer/SchemaInitializerProvider.js +10 -16
- package/es/schema-initializer/SelectCollection.js +4 -9
- package/es/schema-initializer/buttons/BlockInitializers.js +22 -2
- package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +2 -3
- package/es/schema-initializer/buttons/CalendarActionInitializers.d.ts +4 -0
- package/es/schema-initializer/buttons/CalendarActionInitializers.js +5 -0
- package/es/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +6 -0
- package/es/schema-initializer/buttons/CalendarFormActionInitializers.js +21 -0
- package/es/schema-initializer/buttons/CreateFormBlockInitializers.js +2 -3
- package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +2 -3
- package/es/schema-initializer/buttons/CustomFormItemInitializers.js +4 -7
- package/es/schema-initializer/buttons/FilterFormActionInitializers.d.ts +16 -0
- package/es/schema-initializer/buttons/FilterFormActionInitializers.js +24 -0
- package/es/schema-initializer/buttons/FormItemInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/FormItemInitializers.js +62 -8
- package/es/schema-initializer/buttons/GanttActionInitializers.d.ts +133 -0
- package/es/schema-initializer/buttons/GanttActionInitializers.js +9 -0
- package/es/schema-initializer/buttons/KanbanActionInitializers.d.ts +2 -0
- package/es/schema-initializer/buttons/KanbanActionInitializers.js +5 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +6 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +17 -0
- package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +2 -6
- package/es/schema-initializer/buttons/RecordBlockInitializers.js +31 -47
- package/es/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -2
- package/es/schema-initializer/buttons/SubTableActionInitializers.js +4 -4
- package/es/schema-initializer/buttons/TabPaneInitializers.js +53 -66
- package/es/schema-initializer/buttons/TableActionColumnInitializers.js +38 -18
- package/es/schema-initializer/buttons/TableActionInitializers.d.ts +17 -0
- package/es/schema-initializer/buttons/TableActionInitializers.js +51 -16
- package/es/schema-initializer/buttons/TableColumnInitializers.js +9 -15
- package/es/schema-initializer/buttons/TableSelectorInitializers.js +2 -3
- package/es/schema-initializer/buttons/index.d.ts +2 -0
- package/es/schema-initializer/buttons/index.js +4 -2
- package/es/schema-initializer/components/BulkEditField.js +31 -56
- package/es/schema-initializer/components/CreateRecordAction.js +74 -69
- package/es/schema-initializer/components/assigned-field/AssignedField.js +33 -77
- package/es/schema-initializer/index.d.ts +1 -1
- package/es/schema-initializer/index.js +1 -1
- package/es/schema-initializer/items/ActionInitializer.js +4 -4
- package/es/schema-initializer/items/BlockInitializer.js +4 -5
- package/es/schema-initializer/items/BulkDestroyActionInitializer.js +4 -6
- package/es/schema-initializer/items/BulkEditSubmitActionInitializer.js +4 -4
- package/es/schema-initializer/items/CalendarBlockInitializer.js +61 -71
- package/es/schema-initializer/items/CollectionFieldInitializer.js +6 -6
- package/es/schema-initializer/items/CreateActionInitializer.js +5 -4
- package/es/schema-initializer/items/CreateChildInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateChildInitializer.js +62 -0
- package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateFilterActionInitializer.js +23 -0
- package/es/schema-initializer/items/CreateFormBlockInitializer.js +51 -70
- package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +47 -66
- package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateResetActionInitializer.js +21 -0
- package/es/schema-initializer/items/CreateSubmitActionInitializer.js +6 -6
- package/es/schema-initializer/items/CustomizeActionInitializer.js +4 -6
- package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.js +4 -4
- package/es/schema-initializer/items/DataBlockInitializer.js +44 -61
- package/es/schema-initializer/items/DeleteEventActionInitializer.js +4 -4
- package/es/schema-initializer/items/DestroyActionInitializer.js +4 -4
- package/es/schema-initializer/items/DetailsBlockInitializer.js +25 -32
- package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -0
- package/es/schema-initializer/items/ExpandActionInitializer.js +58 -0
- package/es/schema-initializer/items/FilterActionInitializer.js +4 -4
- package/es/schema-initializer/items/FilterBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/FilterBlockInitializer.js +77 -0
- package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/FilterCollapseBlockInitializer.js +44 -0
- package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/FilterFormBlockInitializer.js +28 -0
- package/es/schema-initializer/items/FormBlockInitializer.js +4 -6
- package/es/schema-initializer/items/G2PlotInitializer.js +6 -10
- package/es/schema-initializer/items/GanttBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/GanttBlockInitializer.js +166 -0
- package/es/schema-initializer/items/InitializerWithSwitch.js +8 -12
- package/es/schema-initializer/items/KanbanBlockInitializer.js +85 -100
- package/es/schema-initializer/items/MarkdownBlockInitializer.js +5 -7
- package/es/schema-initializer/items/PrintActionInitializer.js +4 -4
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +37 -53
- package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +93 -115
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +37 -53
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +52 -71
- package/es/schema-initializer/items/RecordFormBlockInitializer.js +49 -68
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +51 -72
- package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +52 -73
- package/es/schema-initializer/items/RefreshActionInitializer.js +4 -4
- package/es/schema-initializer/items/SubmitActionInitializer.js +7 -6
- package/es/schema-initializer/items/TableActionColumnInitializer.js +4 -4
- package/es/schema-initializer/items/TableBlockInitializer.js +24 -32
- package/es/schema-initializer/items/TableCollectionFieldInitializer.js +4 -4
- package/es/schema-initializer/items/TableSelectorInitializer.js +24 -35
- package/es/schema-initializer/items/UpdateActionInitializer.js +4 -4
- package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +4 -4
- package/es/schema-initializer/items/ViewActionInitializer.js +4 -4
- package/es/schema-initializer/items/index.d.ts +7 -0
- package/es/schema-initializer/items/index.js +9 -2
- package/es/schema-initializer/utils.d.ts +174 -1
- package/es/schema-initializer/utils.js +665 -336
- package/es/schema-items/OpenModeSchemaItems.d.ts +7 -0
- package/es/schema-items/OpenModeSchemaItems.js +78 -0
- package/es/schema-items/index.d.ts +1 -0
- package/es/schema-items/index.js +1 -0
- package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +2 -0
- package/es/schema-settings/DataTemplates/FormDataTemplates.js +174 -0
- package/es/schema-settings/DataTemplates/TreeLabel.d.ts +1 -0
- package/es/schema-settings/DataTemplates/TreeLabel.js +19 -0
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.d.ts +2 -0
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.js +47 -0
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.d.ts +11 -0
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +261 -0
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +13 -0
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +146 -0
- package/es/schema-settings/DataTemplates/index.d.ts +1 -0
- package/es/schema-settings/DataTemplates/index.js +1 -0
- package/es/schema-settings/EnableChildCollections/index.js +28 -38
- package/es/schema-settings/GeneralSchemaDesigner.js +11 -20
- package/es/schema-settings/LinkageRules/DynamicComponent.js +9 -61
- package/es/schema-settings/LinkageRules/FilterDynamicComponent.js +3 -3
- package/es/schema-settings/LinkageRules/LinkageRuleAction.js +34 -49
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +9 -13
- package/es/schema-settings/LinkageRules/ValueDynamicComponent.js +37 -29
- package/es/schema-settings/LinkageRules/Variables.js +11 -34
- package/es/schema-settings/LinkageRules/action-hooks.js +5 -20
- package/es/schema-settings/LinkageRules/components/EnableLinkage.d.ts +2 -0
- package/es/schema-settings/LinkageRules/components/EnableLinkage.js +40 -0
- package/es/schema-settings/LinkageRules/components/LinkageHeader.d.ts +11 -0
- package/es/schema-settings/LinkageRules/components/LinkageHeader.js +252 -0
- package/es/schema-settings/LinkageRules/context.d.ts +1 -1
- package/es/schema-settings/LinkageRules/context.js +1 -1
- package/es/schema-settings/LinkageRules/index.js +20 -18
- package/es/schema-settings/LinkageRules/type.js +0 -1
- package/es/schema-settings/LinkageRules/useValues.js +10 -21
- package/es/schema-settings/SchemaSettings.d.ts +3 -0
- package/es/schema-settings/SchemaSettings.js +733 -586
- package/es/schema-templates/BlockTemplate.js +3 -11
- package/es/schema-templates/BlockTemplateDetails.js +35 -52
- package/es/schema-templates/BlockTemplatePage.js +2 -3
- package/es/schema-templates/SchemaTemplateManagerProvider.js +100 -145
- package/es/schema-templates/SchemaTemplateShortcut.js +1 -2
- package/es/schema-templates/schemas/uiSchemaTemplates.js +41 -63
- package/es/settings-form/SettingsForm.js +87 -125
- package/es/system-settings/SystemSettingsProvider.js +14 -2
- package/es/system-settings/SystemSettingsShortcut.js +80 -98
- package/es/user/ChangePassword.js +43 -65
- package/es/user/CurrentUser.js +29 -44
- package/es/user/CurrentUserProvider.js +1 -6
- package/es/user/EditProfile.js +44 -69
- package/es/user/LanguageSettings.js +38 -53
- package/es/user/SigninPage.js +38 -56
- package/es/user/SigninPageExtension.js +3 -11
- package/es/user/SignupPage.js +29 -42
- package/es/user/SwitchRole.js +30 -38
- package/es/user/ThemeSettings.d.ts +1 -0
- package/es/user/ThemeSettings.js +70 -0
- package/es/user/VerificationCode.js +51 -76
- package/lib/acl/ACLProvider.js +34 -162
- package/lib/acl/ACLShortcut.js +11 -38
- package/lib/acl/Configuration/ConfigureCenter.js +56 -112
- package/lib/acl/Configuration/MenuConfigure.js +91 -159
- package/lib/acl/Configuration/MenuItemsProvider.js +0 -21
- package/lib/acl/Configuration/PermisionProvider.js +53 -96
- package/lib/acl/Configuration/RoleConfigure.js +21 -59
- package/lib/acl/Configuration/RoleTable.js +5 -23
- package/lib/acl/Configuration/RolesResourcesActions.js +10 -67
- package/lib/acl/Configuration/ScopeSelect.js +5 -26
- package/lib/acl/Configuration/StrategyActions.js +10 -38
- package/lib/acl/Configuration/index.js +0 -6
- package/lib/acl/Configuration/schemas/roleCollections.js +0 -3
- package/lib/acl/Configuration/schemas/roles.js +4 -13
- package/lib/acl/Configuration/schemas/scopes.js +4 -13
- package/lib/acl/Configuration/schemas/useRoleResourceValues.js +5 -12
- package/lib/acl/Configuration/schemas/useSaveRoleResourceAction.js +23 -34
- package/lib/acl/index.js +0 -5
- package/lib/acl/style.less +1 -1
- package/lib/antd-config-provider/index.js +29 -57
- package/lib/antd-config-provider/loadConstrueLocale.js +4 -12
- package/lib/api-client/APIClient.js +10 -47
- package/lib/api-client/APIClientProvider.js +1 -6
- package/lib/api-client/context.js +0 -3
- package/lib/api-client/hooks/assign.js +0 -23
- package/lib/api-client/hooks/index.js +0 -6
- package/lib/api-client/hooks/useAPIClient.js +0 -3
- package/lib/api-client/hooks/useRequest.js +35 -68
- package/lib/api-client/hooks/useResource.js +0 -3
- package/lib/api-client/index.js +0 -8
- package/lib/appInfo/CurrentAppInfoProvider.js +16 -14
- package/lib/appInfo/index.js +0 -2
- package/lib/application/Application.js +82 -147
- package/lib/application/compose.js +12 -26
- package/lib/application/index.js +0 -4
- package/lib/async-data-provider/index.js +6 -22
- package/lib/block-provider/BlockProvider.d.ts +1 -0
- package/lib/block-provider/BlockProvider.js +56 -136
- package/lib/block-provider/BlockSchemaComponentProvider.js +10 -24
- package/lib/block-provider/CalendarBlockProvider.d.ts +1 -0
- package/lib/block-provider/CalendarBlockProvider.js +16 -32
- package/lib/block-provider/DetailsBlockProvider.js +11 -32
- package/lib/block-provider/FilterFormBlockProvider.d.ts +1 -0
- package/lib/block-provider/FilterFormBlockProvider.js +24 -0
- package/lib/block-provider/FormBlockProvider.d.ts +3 -0
- package/lib/block-provider/FormBlockProvider.js +73 -49
- package/lib/block-provider/FormFieldProvider.js +17 -39
- package/lib/block-provider/GanttBlockProvider.d.ts +11 -0
- package/lib/block-provider/GanttBlockProvider.js +162 -0
- package/lib/block-provider/KanbanBlockProvider.js +52 -127
- package/lib/block-provider/SharedFilterProvider.js +10 -36
- package/lib/block-provider/TableBlockProvider.d.ts +3 -0
- package/lib/block-provider/TableBlockProvider.js +162 -114
- package/lib/block-provider/TableFieldProvider.js +107 -177
- package/lib/block-provider/TableSelectorProvider.d.ts +18 -1
- package/lib/block-provider/TableSelectorProvider.js +107 -123
- package/lib/block-provider/hooks/index.d.ts +37 -0
- package/lib/block-provider/hooks/index.js +1097 -1015
- package/lib/block-provider/index.d.ts +4 -0
- package/lib/block-provider/index.js +33 -18
- package/lib/board/Board.js +110 -169
- package/lib/board/Card.js +7 -12
- package/lib/board/CardAdder.js +6 -23
- package/lib/board/CardForm.js +1 -10
- package/lib/board/Column.js +27 -52
- package/lib/board/ColumnAdder.js +5 -22
- package/lib/board/ColumnForm.js +1 -10
- package/lib/board/DefaultCard.js +3 -7
- package/lib/board/DefaultColumnHeader.js +17 -38
- package/lib/board/Kanban.js +5 -26
- package/lib/board/helpers.js +7 -24
- package/lib/board/index.js +0 -2
- package/lib/board/services.js +4 -12
- package/lib/board/utils.js +5 -24
- package/lib/board/withDroppable.js +5 -14
- package/lib/china-region/index.js +5 -27
- package/lib/collection-manager/CollectionField.js +14 -51
- package/lib/collection-manager/CollectionFieldProvider.js +5 -17
- package/lib/collection-manager/CollectionHistoryProvider.js +23 -47
- package/lib/collection-manager/CollectionManagerProvider.js +86 -140
- package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +4 -16
- package/lib/collection-manager/CollectionManagerShortcut.js +17 -42
- package/lib/collection-manager/CollectionProvider.js +4 -14
- package/lib/collection-manager/Configuration/AddCategoryAction.js +35 -73
- package/lib/collection-manager/Configuration/AddCollectionAction.js +105 -151
- package/lib/collection-manager/Configuration/AddFieldAction.js +86 -132
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +36 -74
- package/lib/collection-manager/Configuration/CollectionFieldsTable.js +10 -26
- package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +35 -98
- package/lib/collection-manager/Configuration/ConfigurationTable.js +159 -135
- package/lib/collection-manager/Configuration/ConfigurationTabs.js +94 -163
- package/lib/collection-manager/Configuration/EditCategoryAction.js +43 -85
- package/lib/collection-manager/Configuration/EditCollectionAction.js +59 -120
- package/lib/collection-manager/Configuration/EditFieldAction.js +101 -154
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +54 -103
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +88 -155
- package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -0
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +245 -0
- package/lib/collection-manager/Configuration/ViewInheritedField.js +50 -99
- package/lib/collection-manager/Configuration/components/CollectionCategory.js +0 -6
- package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +1 -10
- package/lib/collection-manager/Configuration/components/CollectionTemplate.js +1 -10
- package/lib/collection-manager/Configuration/components/FieldSummary.js +2 -17
- package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +2 -0
- package/lib/collection-manager/Configuration/components/TemplateSummay.js +34 -0
- package/lib/collection-manager/Configuration/components/index.js +5 -26
- package/lib/collection-manager/Configuration/index.d.ts +1 -0
- package/lib/collection-manager/Configuration/index.js +11 -29
- package/lib/collection-manager/Configuration/interfaces.js +4 -20
- package/lib/collection-manager/Configuration/schemas/collectionFields.js +17 -5
- package/lib/collection-manager/Configuration/schemas/collections.js +22 -39
- package/lib/collection-manager/Configuration/templates.js +6 -16
- package/lib/collection-manager/ResourceActionProvider.js +18 -55
- package/lib/collection-manager/action-hooks.d.ts +2 -0
- package/lib/collection-manager/action-hooks.js +425 -485
- package/lib/collection-manager/context.js +0 -2
- package/lib/collection-manager/hooks/index.js +0 -8
- package/lib/collection-manager/hooks/useCollection.d.ts +4 -0
- package/lib/collection-manager/hooks/useCollection.js +12 -16
- package/lib/collection-manager/hooks/useCollectionDataSource.d.ts +1 -1
- package/lib/collection-manager/hooks/useCollectionDataSource.js +5 -10
- package/lib/collection-manager/hooks/useCollectionField.js +4 -14
- package/lib/collection-manager/hooks/useCollectionManager.d.ts +23 -3
- package/lib/collection-manager/hooks/useCollectionManager.js +127 -97
- package/lib/collection-manager/hooks/useOptions.js +5 -13
- package/lib/collection-manager/index.d.ts +1 -1
- package/lib/collection-manager/index.js +7 -36
- package/lib/collection-manager/interfaces/attachment.js +5 -12
- package/lib/collection-manager/interfaces/checkbox.js +5 -6
- package/lib/collection-manager/interfaces/checkboxGroup.js +5 -6
- package/lib/collection-manager/interfaces/chinaRegion.js +5 -11
- package/lib/collection-manager/interfaces/components/index.js +0 -15
- package/lib/collection-manager/interfaces/createdAt.js +5 -6
- package/lib/collection-manager/interfaces/createdBy.js +5 -7
- package/lib/collection-manager/interfaces/datetime.js +5 -6
- package/lib/collection-manager/interfaces/email.js +5 -6
- package/lib/collection-manager/interfaces/icon.js +6 -7
- package/lib/collection-manager/interfaces/id.js +1 -2
- package/lib/collection-manager/interfaces/index.d.ts +1 -0
- package/lib/collection-manager/interfaces/index.js +11 -64
- package/lib/collection-manager/interfaces/input.js +5 -8
- package/lib/collection-manager/interfaces/integer.js +6 -9
- package/lib/collection-manager/interfaces/json.js +8 -9
- package/lib/collection-manager/interfaces/linkTo.js +25 -16
- package/lib/collection-manager/interfaces/m2m.js +21 -18
- package/lib/collection-manager/interfaces/m2o.js +21 -13
- package/lib/collection-manager/interfaces/markdown.js +5 -8
- package/lib/collection-manager/interfaces/multipleSelect.js +5 -6
- package/lib/collection-manager/interfaces/number.js +6 -8
- package/lib/collection-manager/interfaces/o2m.js +12 -15
- package/lib/collection-manager/interfaces/o2o.js +42 -32
- package/lib/collection-manager/interfaces/password.js +6 -8
- package/lib/collection-manager/interfaces/percent.js +11 -19
- package/lib/collection-manager/interfaces/phone.js +8 -8
- package/lib/collection-manager/interfaces/properties/index.js +7 -14
- package/lib/collection-manager/interfaces/properties/operators.d.ts +11 -19
- package/lib/collection-manager/interfaces/properties/operators.js +6 -21
- package/lib/collection-manager/interfaces/radioGroup.js +5 -6
- package/lib/collection-manager/interfaces/richText.js +5 -8
- package/lib/collection-manager/interfaces/select.js +5 -6
- package/lib/collection-manager/interfaces/subTable.js +15 -15
- package/lib/collection-manager/interfaces/textarea.js +5 -8
- package/lib/collection-manager/interfaces/time.js +5 -6
- package/lib/collection-manager/interfaces/updatedAt.js +5 -6
- package/lib/collection-manager/interfaces/updatedBy.js +5 -7
- package/lib/collection-manager/interfaces/url.d.ts +2 -0
- package/lib/collection-manager/interfaces/url.js +37 -0
- package/lib/collection-manager/sub-table.js +79 -136
- package/lib/collection-manager/templates/calendar.js +11 -12
- package/lib/collection-manager/templates/components/PreviewFields.d.ts +2 -0
- package/lib/collection-manager/templates/components/PreviewFields.js +265 -0
- package/lib/collection-manager/templates/components/PreviewTable.d.ts +1 -0
- package/lib/collection-manager/templates/components/PreviewTable.js +142 -0
- package/lib/collection-manager/templates/expression.d.ts +2 -0
- package/lib/collection-manager/templates/expression.js +59 -0
- package/lib/collection-manager/templates/general.js +0 -2
- package/lib/collection-manager/templates/index.d.ts +3 -0
- package/lib/collection-manager/templates/index.js +33 -4
- package/lib/collection-manager/templates/properties/index.d.ts +1 -1
- package/lib/collection-manager/templates/properties/index.js +5 -17
- package/lib/collection-manager/templates/tree.d.ts +2 -0
- package/lib/collection-manager/templates/tree.js +77 -0
- package/lib/collection-manager/templates/types.d.ts +6 -0
- package/lib/collection-manager/templates/view.d.ts +2 -0
- package/lib/collection-manager/templates/view.js +142 -0
- package/lib/collection-manager/types.d.ts +2 -0
- package/lib/document-title/index.js +7 -32
- package/lib/filter-provider/FilterProvider.d.ts +45 -0
- package/lib/filter-provider/FilterProvider.js +154 -0
- package/lib/filter-provider/index.d.ts +2 -0
- package/lib/filter-provider/index.js +27 -0
- package/lib/filter-provider/utils.d.ts +27 -0
- package/lib/filter-provider/utils.js +184 -0
- package/lib/formula/Expression.js +47 -124
- package/lib/formula/Result.js +13 -45
- package/lib/formula/index.js +0 -5
- package/lib/i18n/i18n.js +2 -8
- package/lib/i18n/index.js +0 -2
- package/lib/icon/Icon.js +6 -31
- package/lib/icon/index.js +0 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +11 -55
- package/lib/locale/en_US.d.ts +67 -4
- package/lib/locale/en_US.js +68 -5
- package/lib/locale/index.js +0 -3
- package/lib/locale/ja_JP.d.ts +54 -2
- package/lib/locale/ja_JP.js +55 -4
- package/lib/locale/pt_BR.d.ts +650 -0
- package/lib/locale/pt_BR.js +656 -0
- package/lib/locale/ru_RU.d.ts +29 -2
- package/lib/locale/ru_RU.js +30 -3
- package/lib/locale/tr_TR.d.ts +30 -2
- package/lib/locale/tr_TR.js +31 -3
- package/lib/locale/zh_CN.d.ts +84 -6
- package/lib/locale/zh_CN.js +85 -7
- package/lib/plugin-manager/PinnedPluginListProvider.d.ts +5 -0
- package/lib/plugin-manager/PinnedPluginListProvider.js +60 -0
- package/lib/plugin-manager/PluginManager.js +22 -73
- package/lib/plugin-manager/PluginManagerProvider.js +1 -6
- package/lib/plugin-manager/context.d.ts +3 -0
- package/lib/plugin-manager/context.js +6 -4
- package/lib/plugin-manager/index.d.ts +1 -0
- package/lib/plugin-manager/index.js +11 -6
- package/lib/pm/PluginManagerLink.js +22 -63
- package/lib/pm/index.js +246 -235
- package/lib/powered-by/index.js +1 -10
- package/lib/record-provider/index.js +8 -29
- package/lib/route-switch/RouteSwitch.js +5 -17
- package/lib/route-switch/RouteSwitchProvider.js +10 -19
- package/lib/route-switch/antd/admin-layout/index.js +43 -94
- package/lib/route-switch/antd/auth-layout/index.js +1 -11
- package/lib/route-switch/antd/index.js +0 -6
- package/lib/route-switch/antd/route-schema-component/index.js +0 -5
- package/lib/route-switch/context.js +0 -2
- package/lib/route-switch/hooks.js +2 -13
- package/lib/route-switch/index.js +0 -12
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +4 -17
- package/lib/schema-component/antd/action/Action.Container.js +5 -16
- package/lib/schema-component/antd/action/Action.Designer.js +52 -146
- package/lib/schema-component/antd/action/Action.Drawer.js +11 -30
- package/lib/schema-component/antd/action/Action.Link.js +4 -9
- package/lib/schema-component/antd/action/Action.Modal.d.ts +2 -1
- package/lib/schema-component/antd/action/Action.Modal.js +11 -28
- package/lib/schema-component/antd/action/Action.Page.js +5 -23
- package/lib/schema-component/antd/action/Action.js +42 -90
- package/lib/schema-component/antd/action/ActionBar.js +11 -33
- package/lib/schema-component/antd/action/context.js +0 -2
- package/lib/schema-component/antd/action/hooks.d.ts +1 -0
- package/lib/schema-component/antd/action/hooks.js +43 -62
- package/lib/schema-component/antd/action/index.js +0 -8
- package/lib/schema-component/antd/action/types.d.ts +1 -1
- package/lib/schema-component/antd/action/utils.d.ts +1 -1
- package/lib/schema-component/antd/action/utils.js +26 -25
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +19 -25
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +42 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +1 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.js +95 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.js +13 -25
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +89 -37
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +48 -127
- package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +3 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.js +13 -29
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +2 -18
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +4 -15
- package/lib/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +1 -0
- package/lib/schema-component/antd/association-filter/AssociationFilterProvider.js +12 -0
- package/lib/schema-component/antd/association-filter/utilts.d.ts +2 -0
- package/lib/schema-component/antd/association-filter/utilts.js +10 -0
- package/lib/schema-component/antd/association-select/AssociationSelect.d.ts +1 -0
- package/lib/schema-component/antd/association-select/AssociationSelect.js +492 -103
- package/lib/schema-component/antd/association-select/ReadPretty.js +4 -11
- package/lib/schema-component/antd/association-select/index.js +0 -2
- package/lib/schema-component/antd/association-select/useServiceOptions.js +8 -21
- package/lib/schema-component/antd/block-item/BlockItem.js +0 -10
- package/lib/schema-component/antd/block-item/TestDesigner.js +1 -8
- package/lib/schema-component/antd/block-item/index.js +0 -4
- package/lib/schema-component/antd/calendar/Calendar.Designer.js +22 -40
- package/lib/schema-component/antd/calendar/Calendar.js +29 -88
- package/lib/schema-component/antd/calendar/DeleteEvent.js +52 -97
- package/lib/schema-component/antd/calendar/Event.js +0 -4
- package/lib/schema-component/antd/calendar/Nav.js +2 -15
- package/lib/schema-component/antd/calendar/Title.js +5 -17
- package/lib/schema-component/antd/calendar/Today.js +3 -17
- package/lib/schema-component/antd/calendar/ViewSelect.js +5 -16
- package/lib/schema-component/antd/calendar/components/Header.js +7 -15
- package/lib/schema-component/antd/calendar/context.js +0 -4
- package/lib/schema-component/antd/calendar/index.js +0 -12
- package/lib/schema-component/antd/calendar/style.less +1 -1
- package/lib/schema-component/antd/calendar/utils.js +0 -13
- package/lib/schema-component/antd/card-item/CardItem.js +5 -17
- package/lib/schema-component/antd/card-item/index.js +0 -2
- package/lib/schema-component/antd/cascader/Cascader.js +19 -46
- package/lib/schema-component/antd/cascader/ReadPretty.js +3 -20
- package/lib/schema-component/antd/cascader/index.js +0 -2
- package/lib/schema-component/antd/checkbox/Checkbox.js +5 -16
- package/lib/schema-component/antd/checkbox/index.js +0 -2
- package/lib/schema-component/antd/collection-select/CollectionSelect.d.ts +8 -0
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +69 -0
- package/lib/schema-component/antd/collection-select/index.d.ts +1 -0
- package/lib/schema-component/antd/collection-select/index.js +16 -0
- package/lib/schema-component/antd/color-select/ColorSelect.js +4 -13
- package/lib/schema-component/antd/color-select/index.js +0 -2
- package/lib/schema-component/antd/cron/Cron.d.ts +6 -3
- package/lib/schema-component/antd/cron/Cron.js +22 -26
- package/lib/schema-component/antd/cron/CronSet.d.ts +7 -0
- package/lib/schema-component/antd/cron/CronSet.js +116 -0
- package/lib/schema-component/antd/cron/index.d.ts +1 -0
- package/lib/schema-component/antd/cron/index.js +11 -2
- package/lib/schema-component/antd/cron/locale/index.d.ts +0 -1
- package/lib/schema-component/antd/cron/locale/index.js +1 -7
- package/lib/schema-component/antd/cron/locale/zh-CN.js +8 -4
- package/lib/schema-component/antd/date-picker/DatePicker.d.ts +8 -4
- package/lib/schema-component/antd/date-picker/DatePicker.js +45 -8
- package/lib/schema-component/antd/date-picker/ReadPretty.js +0 -18
- package/lib/schema-component/antd/date-picker/index.js +0 -2
- package/lib/schema-component/antd/date-picker/util.d.ts +25 -2
- package/lib/schema-component/antd/date-picker/util.js +133 -40
- package/lib/schema-component/antd/details/Details.d.ts +7 -0
- package/lib/schema-component/antd/details/Details.js +9 -0
- package/lib/schema-component/antd/details/index.d.ts +1 -0
- package/lib/schema-component/antd/details/index.js +16 -0
- package/lib/schema-component/antd/filter/DynamicComponent.js +11 -76
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +10 -39
- package/lib/schema-component/antd/filter/Filter.js +14 -23
- package/lib/schema-component/antd/filter/FilterAction.js +34 -79
- package/lib/schema-component/antd/filter/FilterGroup.js +7 -27
- package/lib/schema-component/antd/filter/FilterItem.js +10 -29
- package/lib/schema-component/antd/filter/FilterItems.js +0 -8
- package/lib/schema-component/antd/filter/SaveDefaultValue.js +4 -22
- package/lib/schema-component/antd/filter/context.js +0 -2
- package/lib/schema-component/antd/filter/index.js +0 -4
- package/lib/schema-component/antd/filter/useFilterActionProps.js +69 -76
- package/lib/schema-component/antd/filter/useOperators.d.ts +5 -0
- package/lib/schema-component/antd/filter/useOperators.js +32 -0
- package/lib/schema-component/antd/filter/useValues.js +15 -47
- package/lib/schema-component/antd/form/Form.Designer.js +2 -9
- package/lib/schema-component/antd/form/Form.js +34 -69
- package/lib/schema-component/antd/form/index.js +0 -2
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +34 -0
- package/lib/schema-component/antd/form-item/FormItem.js +88 -95
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +23 -0
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +634 -0
- package/lib/schema-component/antd/form-item/index.js +0 -2
- package/lib/schema-component/antd/form-v2/Form.Designer.js +30 -64
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +5 -0
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.js +48 -0
- package/lib/schema-component/antd/form-v2/Form.d.ts +2 -0
- package/lib/schema-component/antd/form-v2/Form.js +28 -61
- package/lib/schema-component/antd/form-v2/FormField.js +1 -14
- package/lib/schema-component/antd/form-v2/Templates.d.ts +4 -0
- package/lib/schema-component/antd/form-v2/Templates.js +178 -0
- package/lib/schema-component/antd/form-v2/index.d.ts +1 -1
- package/lib/schema-component/antd/form-v2/index.js +2 -4
- package/lib/schema-component/antd/form-v2/utils.d.ts +0 -1
- package/lib/schema-component/antd/form-v2/utils.js +22 -107
- package/lib/schema-component/antd/g2plot/G2Plot.js +8 -37
- package/lib/schema-component/antd/g2plot/G2PlotDesigner.js +40 -61
- package/lib/schema-component/antd/g2plot/index.js +0 -2
- package/lib/schema-component/antd/g2plot/requestChartData.js +19 -27
- package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +1 -0
- package/lib/schema-component/antd/gantt/Gantt.Designer.js +222 -0
- package/lib/schema-component/antd/gantt/components/calendar/calendar.d.ts +14 -0
- package/lib/schema-component/antd/gantt/components/calendar/calendar.js +332 -0
- package/lib/schema-component/antd/gantt/components/calendar/style.d.ts +4 -0
- package/lib/schema-component/antd/gantt/components/calendar/style.js +17 -0
- package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +11 -0
- package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +34 -0
- package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +2 -0
- package/lib/schema-component/antd/gantt/components/gantt/Event.js +13 -0
- package/lib/schema-component/antd/gantt/components/gantt/gantt.d.ts +5 -0
- package/lib/schema-component/antd/gantt/components/gantt/gantt.js +648 -0
- package/lib/schema-component/antd/gantt/components/gantt/style.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/gantt/style.js +15 -0
- package/lib/schema-component/antd/gantt/components/gantt/task-gantt-content.d.ts +25 -0
- package/lib/schema-component/antd/gantt/components/gantt/task-gantt-content.js +375 -0
- package/lib/schema-component/antd/gantt/components/gantt/task-gantt.d.ts +14 -0
- package/lib/schema-component/antd/gantt/components/gantt/task-gantt.js +76 -0
- package/lib/schema-component/antd/gantt/components/grid/grid-body.d.ts +13 -0
- package/lib/schema-component/antd/gantt/components/grid/grid-body.js +120 -0
- package/lib/schema-component/antd/gantt/components/grid/grid.d.ts +4 -0
- package/lib/schema-component/antd/gantt/components/grid/grid.js +21 -0
- package/lib/schema-component/antd/gantt/components/grid/style.d.ts +4 -0
- package/lib/schema-component/antd/gantt/components/grid/style.js +17 -0
- package/lib/schema-component/antd/gantt/components/other/arrow.d.ts +12 -0
- package/lib/schema-component/antd/gantt/components/other/arrow.js +65 -0
- package/lib/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +8 -0
- package/lib/schema-component/antd/gantt/components/other/horizontal-scroll.js +40 -0
- package/lib/schema-component/antd/gantt/components/other/style.d.ts +7 -0
- package/lib/schema-component/antd/gantt/components/other/style.js +23 -0
- package/lib/schema-component/antd/gantt/components/other/tooltip.d.ts +29 -0
- package/lib/schema-component/antd/gantt/components/other/tooltip.js +114 -0
- package/lib/schema-component/antd/gantt/components/other/vertical-scroll.d.ts +9 -0
- package/lib/schema-component/antd/gantt/components/other/vertical-scroll.js +42 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.d.ts +11 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.js +27 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +21 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-display.js +56 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.d.ts +7 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.js +18 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.js +46 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/bar.js +68 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/style.d.ts +2 -0
- package/lib/schema-component/antd/gantt/components/task-item/bar/style.js +13 -0
- package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.js +38 -0
- package/lib/schema-component/antd/gantt/components/task-item/milestone/style.d.ts +2 -0
- package/lib/schema-component/antd/gantt/components/task-item/milestone/style.js +13 -0
- package/lib/schema-component/antd/gantt/components/task-item/project/project.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/project/project.js +39 -0
- package/lib/schema-component/antd/gantt/components/task-item/project/style.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/project/style.js +15 -0
- package/lib/schema-component/antd/gantt/components/task-item/style.d.ts +3 -0
- package/lib/schema-component/antd/gantt/components/task-item/style.js +15 -0
- package/lib/schema-component/antd/gantt/components/task-item/task-item.d.ts +15 -0
- package/lib/schema-component/antd/gantt/components/task-item/task-item.js +114 -0
- package/lib/schema-component/antd/gantt/context.d.ts +3 -0
- package/lib/schema-component/antd/gantt/context.js +12 -0
- package/lib/schema-component/antd/gantt/helpers/bar-helper.d.ts +14 -0
- package/lib/schema-component/antd/gantt/helpers/bar-helper.js +340 -0
- package/lib/schema-component/antd/gantt/helpers/date-helper.d.ts +18 -0
- package/lib/schema-component/antd/gantt/helpers/date-helper.js +197 -0
- package/lib/schema-component/antd/gantt/helpers/other-helper.d.ts +9 -0
- package/lib/schema-component/antd/gantt/helpers/other-helper.js +78 -0
- package/lib/schema-component/antd/gantt/index.d.ts +2 -0
- package/lib/schema-component/antd/gantt/index.js +21 -0
- package/lib/schema-component/antd/gantt/types/bar-task.d.ts +22 -0
- package/lib/schema-component/antd/gantt/types/bar-task.js +5 -0
- package/lib/schema-component/antd/gantt/types/date-setup.d.ts +5 -0
- package/lib/schema-component/antd/gantt/types/date-setup.js +5 -0
- package/lib/schema-component/antd/gantt/types/gantt-task-actions.d.ts +8 -0
- package/lib/schema-component/antd/gantt/types/gantt-task-actions.js +5 -0
- package/lib/schema-component/antd/gantt/types/public-types.d.ts +136 -0
- package/lib/schema-component/antd/gantt/types/public-types.js +19 -0
- package/lib/schema-component/antd/grid/Block.js +0 -5
- package/lib/schema-component/antd/grid/Grid.js +61 -132
- package/lib/schema-component/antd/grid/index.js +0 -4
- package/lib/schema-component/antd/icon-picker/IconPicker.js +11 -40
- package/lib/schema-component/antd/icon-picker/index.js +0 -2
- package/lib/schema-component/antd/index.d.ts +6 -2
- package/lib/schema-component/antd/index.js +66 -101
- package/lib/schema-component/antd/index.less +28 -0
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +11 -28
- package/lib/schema-component/antd/input/Input.d.ts +3 -3
- package/lib/schema-component/antd/input/Input.js +17 -24
- package/lib/schema-component/antd/input/Json.d.ts +7 -5
- package/lib/schema-component/antd/input/Json.js +9 -20
- package/lib/schema-component/antd/input/ReadPretty.d.ts +2 -2
- package/lib/schema-component/antd/input/ReadPretty.js +21 -39
- package/lib/schema-component/antd/input/index.js +0 -8
- package/lib/schema-component/antd/input/shared.js +0 -1
- package/lib/schema-component/antd/input-number/InputNumber.js +5 -17
- package/lib/schema-component/antd/input-number/ReadPretty.js +3 -11
- package/lib/schema-component/antd/input-number/index.js +0 -2
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +1 -0
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.js +34 -0
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +22 -36
- package/lib/schema-component/antd/kanban/Kanban.Card.js +25 -51
- package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +0 -2
- package/lib/schema-component/antd/kanban/Kanban.Designer.js +18 -32
- package/lib/schema-component/antd/kanban/Kanban.js +31 -77
- package/lib/schema-component/antd/kanban/context.js +0 -2
- package/lib/schema-component/antd/kanban/index.js +2 -7
- package/lib/schema-component/antd/kanban/index.less +8 -5
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +1 -10
- package/lib/schema-component/antd/markdown/Markdown.Void.js +40 -68
- package/lib/schema-component/antd/markdown/Markdown.js +12 -18
- package/lib/schema-component/antd/markdown/highlight-theme/default.less +98 -0
- package/lib/schema-component/antd/markdown/highlight-theme/table.less +36 -0
- package/lib/schema-component/antd/markdown/index.js +0 -2
- package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.d.ts +5 -0
- package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.js +69 -0
- package/lib/schema-component/antd/markdown/md.d.ts +5 -0
- package/lib/schema-component/antd/markdown/md.js +22 -0
- package/lib/schema-component/antd/markdown/util.d.ts +5 -1
- package/lib/schema-component/antd/markdown/util.js +66 -12
- package/lib/schema-component/antd/menu/Menu.Designer.js +27 -72
- package/lib/schema-component/antd/menu/Menu.js +61 -129
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +170 -209
- package/lib/schema-component/antd/menu/index.js +0 -6
- package/lib/schema-component/antd/menu/util.js +2 -24
- package/lib/schema-component/antd/page/FixedBlock.d.ts +8 -7
- package/lib/schema-component/antd/page/FixedBlock.js +100 -149
- package/lib/schema-component/antd/page/Page.js +83 -135
- package/lib/schema-component/antd/page/PageTabDesigner.js +11 -38
- package/lib/schema-component/antd/page/index.js +0 -4
- package/lib/schema-component/antd/pagination/index.js +14 -18
- package/lib/schema-component/antd/password/Password.js +7 -18
- package/lib/schema-component/antd/password/PasswordStrength.js +0 -38
- package/lib/schema-component/antd/password/index.js +0 -2
- package/lib/schema-component/antd/percent/Percent.js +5 -16
- package/lib/schema-component/antd/percent/index.js +0 -2
- package/lib/schema-component/antd/preview/Preview.d.ts +15 -0
- package/lib/schema-component/antd/preview/Preview.js +246 -0
- package/lib/schema-component/antd/preview/index.d.ts +1 -0
- package/lib/schema-component/antd/preview/index.js +16 -0
- package/lib/schema-component/antd/radio/Radio.js +1 -10
- package/lib/schema-component/antd/radio/index.js +0 -2
- package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +2 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +166 -106
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +29 -61
- package/lib/schema-component/antd/record-picker/RecordPicker.js +0 -4
- package/lib/schema-component/antd/record-picker/index.js +0 -10
- package/lib/schema-component/antd/record-picker/useFieldNames.js +4 -8
- package/lib/schema-component/antd/record-picker/util.d.ts +1 -1
- package/lib/schema-component/antd/record-picker/util.js +15 -18
- package/lib/schema-component/antd/remote-select/ReadPretty.js +22 -39
- package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +47 -80
- package/lib/schema-component/antd/remote-select/index.js +0 -2
- package/lib/schema-component/antd/remote-select/shared.js +0 -4
- package/lib/schema-component/antd/rich-text/RichText.js +6 -13
- package/lib/schema-component/antd/rich-text/index.js +0 -2
- package/lib/schema-component/antd/select/ReadPretty.js +4 -18
- package/lib/schema-component/antd/select/Select.js +15 -45
- package/lib/schema-component/antd/select/index.js +0 -4
- package/lib/schema-component/antd/select/shared.js +5 -29
- package/lib/schema-component/antd/space/index.js +4 -13
- package/lib/schema-component/antd/table/Table.Array.Designer.js +0 -5
- package/lib/schema-component/antd/table/Table.Array.js +48 -111
- package/lib/schema-component/antd/table/Table.Column.ActionBar.js +0 -8
- package/lib/schema-component/antd/table/Table.Column.Decorator.js +5 -25
- package/lib/schema-component/antd/table/Table.Column.Designer.js +37 -65
- package/lib/schema-component/antd/table/Table.Column.js +0 -5
- package/lib/schema-component/antd/table/Table.Designer.js +2 -9
- package/lib/schema-component/antd/table/Table.RowActionDesigner.js +1 -12
- package/lib/schema-component/antd/table/Table.RowSelection.js +6 -23
- package/lib/schema-component/antd/table/Table.Void.Designer.js +8 -29
- package/lib/schema-component/antd/table/Table.Void.js +17 -54
- package/lib/schema-component/antd/table/index.js +0 -13
- package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -0
- package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +157 -0
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +1 -12
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +0 -8
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -29
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +28 -42
- package/lib/schema-component/antd/table-v2/Table.Column.js +0 -5
- package/lib/schema-component/antd/table-v2/Table.Designer.js +2 -9
- package/lib/schema-component/antd/table-v2/Table.js +139 -169
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +60 -59
- package/lib/schema-component/antd/table-v2/TableField.js +5 -22
- package/lib/schema-component/antd/table-v2/TableSelector.js +0 -2
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +42 -41
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +10 -0
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +63 -0
- package/lib/schema-component/antd/table-v2/index.js +0 -13
- package/lib/schema-component/antd/table-v2/utils.d.ts +2 -0
- package/lib/schema-component/antd/table-v2/utils.js +40 -6
- package/lib/schema-component/antd/tabs/Tabs.Designer.js +7 -17
- package/lib/schema-component/antd/tabs/Tabs.js +1 -17
- package/lib/schema-component/antd/tabs/index.js +0 -2
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -12
- package/lib/schema-component/antd/time-picker/TimePicker.js +4 -10
- package/lib/schema-component/antd/time-picker/index.js +0 -2
- package/lib/schema-component/antd/tree-select/ReadPretty.js +1 -16
- package/lib/schema-component/antd/tree-select/TreeSelect.js +4 -11
- package/lib/schema-component/antd/tree-select/index.js +0 -2
- package/lib/schema-component/antd/upload/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/upload/ReadPretty.js +18 -40
- package/lib/schema-component/antd/upload/Upload.js +75 -80
- package/lib/schema-component/antd/upload/index.js +0 -2
- package/lib/schema-component/antd/upload/shared.js +14 -92
- package/lib/schema-component/antd/upload/type.d.ts +11 -0
- package/lib/schema-component/antd/variable/Input.js +68 -89
- package/lib/schema-component/antd/variable/JSONInput.js +15 -37
- package/lib/schema-component/antd/variable/TextArea.d.ts +3 -0
- package/lib/schema-component/antd/variable/TextArea.js +254 -169
- package/lib/schema-component/antd/variable/Variable.js +1 -7
- package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -0
- package/lib/schema-component/antd/variable/VariableSelect.js +74 -0
- package/lib/schema-component/antd/variable/XButton.d.ts +9 -0
- package/lib/schema-component/antd/variable/XButton.js +26 -0
- package/lib/schema-component/antd/variable/index.js +0 -2
- package/lib/schema-component/common/dnd-context/index.js +12 -48
- package/lib/schema-component/common/index.js +0 -4
- package/lib/schema-component/common/sortable-item/SortableItem.js +20 -50
- package/lib/schema-component/common/sortable-item/index.js +0 -2
- package/lib/schema-component/common/utils/logic.js +74 -93
- package/lib/schema-component/common/utils/uitls.js +46 -48
- package/lib/schema-component/context.js +0 -2
- package/lib/schema-component/core/DesignableSwitch.js +12 -23
- package/lib/schema-component/core/FormProvider.js +4 -21
- package/lib/schema-component/core/RemoteSchemaComponent.js +21 -42
- package/lib/schema-component/core/SchemaComponent.js +12 -34
- package/lib/schema-component/core/SchemaComponentOptions.js +4 -15
- package/lib/schema-component/core/SchemaComponentProvider.js +18 -50
- package/lib/schema-component/core/index.js +0 -12
- package/lib/schema-component/hooks/index.d.ts +2 -0
- package/lib/schema-component/hooks/index.js +22 -18
- package/lib/schema-component/hooks/useAttach.js +0 -4
- package/lib/schema-component/hooks/useCompile.js +4 -9
- package/lib/schema-component/hooks/useComponent.js +1 -9
- package/lib/schema-component/hooks/useDesignable.js +203 -404
- package/lib/schema-component/hooks/useDesigner.js +1 -7
- package/lib/schema-component/hooks/useFieldComponentOptions.js +18 -19
- package/lib/schema-component/hooks/useFieldProps.js +4 -9
- package/lib/schema-component/hooks/useFieldTitle.js +2 -13
- package/lib/schema-component/hooks/useProps.js +1 -8
- package/lib/schema-component/hooks/useSchemaComponentContext.js +0 -3
- package/lib/schema-component/hooks/useTableSize.d.ts +5 -0
- package/lib/schema-component/hooks/useTableSize.js +49 -0
- package/lib/schema-component/index.js +0 -14
- package/lib/schema-initializer/SchemaInitializer.js +46 -96
- package/lib/schema-initializer/SchemaInitializerProvider.js +11 -36
- package/lib/schema-initializer/SelectCollection.js +4 -16
- package/lib/schema-initializer/buttons/BlockInitializers.js +20 -2
- package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +2 -11
- package/lib/schema-initializer/buttons/CalendarActionInitializers.d.ts +4 -0
- package/lib/schema-initializer/buttons/CalendarActionInitializers.js +5 -0
- package/lib/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +6 -0
- package/lib/schema-initializer/buttons/CalendarFormActionInitializers.js +21 -0
- package/lib/schema-initializer/buttons/CreateFormBlockInitializers.js +2 -10
- package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +2 -10
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +2 -13
- package/lib/schema-initializer/buttons/FilterFormActionInitializers.d.ts +16 -0
- package/lib/schema-initializer/buttons/FilterFormActionInitializers.js +31 -0
- package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +1 -0
- package/lib/schema-initializer/buttons/FormItemInitializers.js +63 -16
- package/lib/schema-initializer/buttons/GanttActionInitializers.d.ts +133 -0
- package/lib/schema-initializer/buttons/GanttActionInitializers.js +16 -0
- package/lib/schema-initializer/buttons/KanbanActionInitializers.d.ts +2 -0
- package/lib/schema-initializer/buttons/KanbanActionInitializers.js +5 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +6 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +17 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +2 -14
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +31 -54
- package/lib/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -9
- package/lib/schema-initializer/buttons/SubTableActionInitializers.js +4 -4
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +55 -77
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +41 -33
- package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +17 -0
- package/lib/schema-initializer/buttons/TableActionInitializers.js +51 -17
- package/lib/schema-initializer/buttons/TableColumnInitializers.js +7 -21
- package/lib/schema-initializer/buttons/TableSelectorInitializers.js +2 -10
- package/lib/schema-initializer/buttons/chart-config/index.js +0 -10
- package/lib/schema-initializer/buttons/index.d.ts +2 -0
- package/lib/schema-initializer/buttons/index.js +22 -44
- package/lib/schema-initializer/components/BulkEditField.js +31 -69
- package/lib/schema-initializer/components/CreateRecordAction.js +85 -95
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +33 -91
- package/lib/schema-initializer/components/assigned-field/index.js +0 -2
- package/lib/schema-initializer/components/index.js +0 -6
- package/lib/schema-initializer/index.d.ts +1 -1
- package/lib/schema-initializer/index.js +7 -11
- package/lib/schema-initializer/items/ActionInitializer.js +4 -9
- package/lib/schema-initializer/items/BlockInitializer.js +2 -9
- package/lib/schema-initializer/items/BulkDestroyActionInitializer.js +4 -12
- package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.js +4 -9
- package/lib/schema-initializer/items/CalendarBlockInitializer.js +61 -86
- package/lib/schema-initializer/items/CollectionFieldInitializer.js +4 -9
- package/lib/schema-initializer/items/CreateActionInitializer.js +5 -9
- package/lib/schema-initializer/items/CreateChildInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateChildInitializer.js +70 -0
- package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateFilterActionInitializer.js +31 -0
- package/lib/schema-initializer/items/CreateFormBlockInitializer.js +45 -74
- package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +47 -76
- package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateResetActionInitializer.js +29 -0
- package/lib/schema-initializer/items/CreateSubmitActionInitializer.js +4 -9
- package/lib/schema-initializer/items/CustomizeActionInitializer.js +4 -12
- package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.js +4 -9
- package/lib/schema-initializer/items/DataBlockInitializer.js +43 -71
- package/lib/schema-initializer/items/DeleteEventActionInitializer.js +4 -9
- package/lib/schema-initializer/items/DestroyActionInitializer.js +4 -9
- package/lib/schema-initializer/items/DetailsBlockInitializer.js +21 -36
- package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -0
- package/lib/schema-initializer/items/ExpandActionInitializer.js +67 -0
- package/lib/schema-initializer/items/FilterActionInitializer.js +4 -9
- package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/FilterBlockInitializer.js +86 -0
- package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/FilterCollapseBlockInitializer.js +52 -0
- package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/FilterFormBlockInitializer.js +36 -0
- package/lib/schema-initializer/items/FormBlockInitializer.js +4 -13
- package/lib/schema-initializer/items/G2PlotInitializer.js +6 -15
- package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/GanttBlockInitializer.js +175 -0
- package/lib/schema-initializer/items/InitializerWithSwitch.js +8 -19
- package/lib/schema-initializer/items/KanbanBlockInitializer.js +85 -116
- package/lib/schema-initializer/items/MarkdownBlockInitializer.js +5 -14
- package/lib/schema-initializer/items/PrintActionInitializer.js +4 -9
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +37 -62
- package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +92 -130
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +37 -62
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +52 -79
- package/lib/schema-initializer/items/RecordFormBlockInitializer.js +49 -78
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +51 -81
- package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +52 -83
- package/lib/schema-initializer/items/RefreshActionInitializer.js +4 -9
- package/lib/schema-initializer/items/SubmitActionInitializer.js +7 -11
- package/lib/schema-initializer/items/TableActionColumnInitializer.js +4 -9
- package/lib/schema-initializer/items/TableBlockInitializer.js +20 -36
- package/lib/schema-initializer/items/TableCollectionFieldInitializer.js +4 -9
- package/lib/schema-initializer/items/TableSelectorInitializer.js +24 -44
- package/lib/schema-initializer/items/UpdateActionInitializer.js +4 -9
- package/lib/schema-initializer/items/UpdateSubmitActionInitializer.js +4 -9
- package/lib/schema-initializer/items/ViewActionInitializer.js +4 -9
- package/lib/schema-initializer/items/index.d.ts +7 -0
- package/lib/schema-initializer/items/index.js +77 -86
- package/lib/schema-initializer/utils.d.ts +174 -1
- package/lib/schema-initializer/utils.js +672 -397
- package/lib/schema-items/OpenModeSchemaItems.d.ts +7 -0
- package/lib/schema-items/OpenModeSchemaItems.js +86 -0
- package/lib/schema-items/index.d.ts +1 -0
- package/lib/schema-items/index.js +16 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +2 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +182 -0
- package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +1 -0
- package/lib/schema-settings/DataTemplates/TreeLabel.js +27 -0
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.d.ts +2 -0
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +55 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.d.ts +11 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +271 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +13 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +155 -0
- package/lib/schema-settings/DataTemplates/index.d.ts +1 -0
- package/lib/schema-settings/DataTemplates/index.js +16 -0
- package/lib/schema-settings/EnableChildCollections/index.js +28 -45
- package/lib/schema-settings/GeneralSchemaDesigner.js +11 -34
- package/lib/schema-settings/LinkageRules/DynamicComponent.js +7 -76
- package/lib/schema-settings/LinkageRules/FilterDynamicComponent.js +3 -8
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +33 -65
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +9 -23
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +36 -40
- package/lib/schema-settings/LinkageRules/Variables.js +11 -37
- package/lib/schema-settings/LinkageRules/action-hooks.js +5 -25
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.d.ts +2 -0
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +48 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.d.ts +11 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +262 -0
- package/lib/schema-settings/LinkageRules/context.d.ts +1 -1
- package/lib/schema-settings/LinkageRules/context.js +3 -5
- package/lib/schema-settings/LinkageRules/index.js +20 -27
- package/lib/schema-settings/LinkageRules/type.js +0 -1
- package/lib/schema-settings/LinkageRules/useValues.js +8 -23
- package/lib/schema-settings/SchemaSettings.d.ts +3 -0
- package/lib/schema-settings/SchemaSettings.js +731 -611
- package/lib/schema-settings/index.js +0 -4
- package/lib/schema-templates/BlockTemplate.js +3 -22
- package/lib/schema-templates/BlockTemplateDetails.js +34 -61
- package/lib/schema-templates/BlockTemplatePage.js +2 -15
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +99 -164
- package/lib/schema-templates/SchemaTemplateShortcut.js +1 -10
- package/lib/schema-templates/index.js +0 -8
- package/lib/schema-templates/schemas/uiSchemaTemplates.js +41 -66
- package/lib/settings-form/SettingsForm.js +86 -138
- package/lib/settings-form/index.js +0 -2
- package/lib/system-settings/SystemSettingsProvider.js +14 -13
- package/lib/system-settings/SystemSettingsShortcut.js +78 -121
- package/lib/system-settings/index.js +0 -4
- package/lib/user/ChangePassword.js +42 -78
- package/lib/user/CurrentUser.js +28 -59
- package/lib/user/CurrentUserProvider.js +1 -18
- package/lib/user/EditProfile.js +43 -81
- package/lib/user/LanguageSettings.js +37 -64
- package/lib/user/SigninPage.js +37 -76
- package/lib/user/SigninPageExtension.js +3 -20
- package/lib/user/SignupPage.js +29 -57
- package/lib/user/SwitchRole.js +30 -47
- package/lib/user/ThemeSettings.d.ts +1 -0
- package/lib/user/ThemeSettings.js +78 -0
- package/lib/user/VerificationCode.js +50 -87
- package/lib/user/index.js +0 -10
- package/package.json +13 -9
- package/es/collection-manager/templates/treeCollection.d.ts +0 -1
- package/es/collection-manager/templates/treeCollection.js +0 -0
- package/lib/collection-manager/templates/treeCollection.d.ts +0 -1
- package/lib/collection-manager/templates/treeCollection.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cx } from '@emotion/css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { projectBackground, projectWrapper } from './style';
|
|
4
|
+
export var Project = function Project(_ref) {
|
|
5
|
+
var task = _ref.task,
|
|
6
|
+
isSelected = _ref.isSelected;
|
|
7
|
+
var barColor = isSelected ? task.styles.backgroundSelectedColor : task.styles.backgroundColor;
|
|
8
|
+
var processColor = isSelected ? task.styles.progressSelectedColor : task.styles.progressColor;
|
|
9
|
+
var projectWith = task.x2 - task.x1;
|
|
10
|
+
return /*#__PURE__*/React.createElement("g", {
|
|
11
|
+
tabIndex: 0,
|
|
12
|
+
className: cx(projectWrapper)
|
|
13
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
14
|
+
fill: task.color || barColor,
|
|
15
|
+
x: task.x1,
|
|
16
|
+
width: projectWith,
|
|
17
|
+
y: task.y,
|
|
18
|
+
height: task.height,
|
|
19
|
+
rx: task.barCornerRadius,
|
|
20
|
+
ry: task.barCornerRadius,
|
|
21
|
+
className: cx(projectBackground)
|
|
22
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
23
|
+
x: task.progressX,
|
|
24
|
+
width: task.progressWidth,
|
|
25
|
+
y: task.y,
|
|
26
|
+
height: task.height,
|
|
27
|
+
ry: task.barCornerRadius,
|
|
28
|
+
rx: task.barCornerRadius,
|
|
29
|
+
fill: task.color || processColor
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
export var projectWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n outline: none;\n"])));
|
|
5
|
+
export var projectBackground = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n user-select: none;\n opacity: 0.6;\n"])));
|
|
6
|
+
export var projectTop = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n user-select: none;\n"])));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
export var barLabel = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n fill: #fff;\n text-anchor: middle;\n font-weight: 400;\n dominant-baseline: central;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n"])));
|
|
5
|
+
export var projectLabel = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n fill: #130d0d;\n font-weight: 500;\n font-size: 0.9em;\n dominant-baseline: central;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n"])));
|
|
6
|
+
export var barLabelOutside = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n fill: #555;\n text-anchor: start;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n"])));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BarTask } from '../../types/bar-task';
|
|
3
|
+
import { GanttContentMoveAction } from '../../types/gantt-task-actions';
|
|
4
|
+
export declare type TaskItemProps = {
|
|
5
|
+
task: BarTask;
|
|
6
|
+
arrowIndent: number;
|
|
7
|
+
taskHeight: number;
|
|
8
|
+
isProgressChangeable: boolean;
|
|
9
|
+
isDateChangeable: boolean;
|
|
10
|
+
isDelete: boolean;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
rtl: boolean;
|
|
13
|
+
onEventStart: (action: GanttContentMoveAction, selectedTask: BarTask, event?: React.MouseEvent | React.KeyboardEvent) => any;
|
|
14
|
+
};
|
|
15
|
+
export declare const TaskItem: React.FC<TaskItemProps>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
+
import { cx } from '@emotion/css';
|
|
14
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { getYmd } from '../../helpers/other-helper';
|
|
16
|
+
import { Bar } from './bar/bar';
|
|
17
|
+
import { BarSmall } from './bar/bar-small';
|
|
18
|
+
import { Milestone } from './milestone/milestone';
|
|
19
|
+
import { Project } from './project/project';
|
|
20
|
+
import { barLabel, barLabelOutside, projectLabel } from './style';
|
|
21
|
+
export var TaskItem = function TaskItem(props) {
|
|
22
|
+
var _props = _objectSpread({}, props),
|
|
23
|
+
task = _props.task,
|
|
24
|
+
arrowIndent = _props.arrowIndent,
|
|
25
|
+
isDelete = _props.isDelete,
|
|
26
|
+
taskHeight = _props.taskHeight,
|
|
27
|
+
isSelected = _props.isSelected,
|
|
28
|
+
rtl = _props.rtl,
|
|
29
|
+
onEventStart = _props.onEventStart;
|
|
30
|
+
var textRef = useRef(null);
|
|
31
|
+
var _useState = useState( /*#__PURE__*/React.createElement("div", null)),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
taskItem = _useState2[0],
|
|
34
|
+
setTaskItem = _useState2[1];
|
|
35
|
+
var _useState3 = useState(true),
|
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
+
isTextInside = _useState4[0],
|
|
38
|
+
setIsTextInside = _useState4[1];
|
|
39
|
+
var isProjectBar = task.typeInternal === 'project';
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
switch (task.typeInternal) {
|
|
42
|
+
case 'milestone':
|
|
43
|
+
setTaskItem( /*#__PURE__*/React.createElement(Milestone, _objectSpread({}, props)));
|
|
44
|
+
break;
|
|
45
|
+
case 'project':
|
|
46
|
+
setTaskItem( /*#__PURE__*/React.createElement(Project, _objectSpread({}, props)));
|
|
47
|
+
break;
|
|
48
|
+
case 'smalltask':
|
|
49
|
+
setTaskItem( /*#__PURE__*/React.createElement(BarSmall, _objectSpread({}, props)));
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
setTaskItem( /*#__PURE__*/React.createElement(Bar, _objectSpread({}, props)));
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}, [task, isSelected]);
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
if (textRef.current) {
|
|
58
|
+
setIsTextInside(textRef.current.getBBox().width < task.x2 - task.x1);
|
|
59
|
+
}
|
|
60
|
+
}, [textRef, task]);
|
|
61
|
+
var getX = function getX() {
|
|
62
|
+
var width = task.x2 - task.x1;
|
|
63
|
+
var hasChild = task.barChildren.length > 0;
|
|
64
|
+
if (isTextInside) {
|
|
65
|
+
return task.x1 + width * 0.5;
|
|
66
|
+
}
|
|
67
|
+
if (rtl && textRef.current) {
|
|
68
|
+
return task.x1 - textRef.current.getBBox().width - arrowIndent * +hasChild - arrowIndent * 0.2;
|
|
69
|
+
} else {
|
|
70
|
+
return task.x1 + width + arrowIndent * +hasChild + arrowIndent * 0.2;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return /*#__PURE__*/React.createElement("g", {
|
|
74
|
+
onKeyDown: function onKeyDown(e) {
|
|
75
|
+
switch (e.key) {
|
|
76
|
+
case 'Delete':
|
|
77
|
+
{
|
|
78
|
+
if (isDelete) onEventStart('delete', task, e);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
e.stopPropagation();
|
|
83
|
+
},
|
|
84
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
85
|
+
onEventStart('mouseenter', task, e);
|
|
86
|
+
},
|
|
87
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
88
|
+
onEventStart('mouseleave', task, e);
|
|
89
|
+
},
|
|
90
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
91
|
+
onEventStart('dblclick', task, e);
|
|
92
|
+
},
|
|
93
|
+
onClick: function onClick(e) {
|
|
94
|
+
onEventStart('click', task, e);
|
|
95
|
+
},
|
|
96
|
+
onFocus: function onFocus() {
|
|
97
|
+
onEventStart('select', task);
|
|
98
|
+
}
|
|
99
|
+
}, taskItem, /*#__PURE__*/React.createElement("text", {
|
|
100
|
+
x: isProjectBar ? task.x1 : getX(),
|
|
101
|
+
y: isProjectBar ? task.y - 8 : isTextInside ? task.y + taskHeight * 0.5 : task.y + taskHeight * 0.65,
|
|
102
|
+
className: isProjectBar ? cx(projectLabel) : isTextInside ? cx(barLabel) : cx(barLabel) && cx(barLabelOutside),
|
|
103
|
+
ref: textRef
|
|
104
|
+
}, isProjectBar ? "".concat(task.name, ": ").concat(getYmd(task.start), " ~ ").concat(getYmd(task.end)) : task.name));
|
|
105
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Task } from '../types/public-types';
|
|
2
|
+
import { BarTask } from '../types/bar-task';
|
|
3
|
+
import { BarMoveAction } from '../types/gantt-task-actions';
|
|
4
|
+
export declare const convertToBarTasks: (tasks: Task[], dates: Date[], columnWidth: number, rowHeight: number, taskHeight: number, barCornerRadius: number, handleWidth: number, rtl: boolean, barProgressColor: string, barProgressSelectedColor: string, barBackgroundColor: string, barBackgroundSelectedColor: string, projectProgressColor: string, projectProgressSelectedColor: string, projectBackgroundColor: string, projectBackgroundSelectedColor: string, milestoneBackgroundColor: string, milestoneBackgroundSelectedColor: string) => BarTask[];
|
|
5
|
+
export declare const progressWithByParams: (taskX1: number, taskX2: number, progress: number, rtl: boolean) => number[];
|
|
6
|
+
export declare const progressByProgressWidth: (progressWidth: number, barTask: BarTask) => number;
|
|
7
|
+
export declare const getProgressPoint: (progressX: number, taskY: number, taskHeight: number) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Method handles event in real time(mousemove) and on finish(mouseup)
|
|
10
|
+
*/
|
|
11
|
+
export declare const handleTaskBySVGMouseEvent: (svgX: number, action: BarMoveAction, selectedTask: BarTask, xStep: number, timeStep: number, initEventX1Delta: number, rtl: boolean) => {
|
|
12
|
+
isChanged: boolean;
|
|
13
|
+
changedTask: BarTask;
|
|
14
|
+
};
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
export var convertToBarTasks = function convertToBarTasks(tasks, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor) {
|
|
14
|
+
var barTasks = tasks.map(function (t, i) {
|
|
15
|
+
return convertToBarTask(t, i, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor);
|
|
16
|
+
});
|
|
17
|
+
// set dependencies
|
|
18
|
+
barTasks = barTasks.map(function (task) {
|
|
19
|
+
var dependencies = task.dependencies || [];
|
|
20
|
+
var _loop = function _loop(j) {
|
|
21
|
+
var dependence = barTasks.findIndex(function (value) {
|
|
22
|
+
return value.id === dependencies[j];
|
|
23
|
+
});
|
|
24
|
+
if (dependence !== -1) barTasks[dependence].barChildren.push(task);
|
|
25
|
+
};
|
|
26
|
+
for (var j = 0; j < dependencies.length; j++) {
|
|
27
|
+
_loop(j);
|
|
28
|
+
}
|
|
29
|
+
return task;
|
|
30
|
+
});
|
|
31
|
+
return barTasks;
|
|
32
|
+
};
|
|
33
|
+
var convertToBarTask = function convertToBarTask(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, milestoneBackgroundColor, milestoneBackgroundSelectedColor) {
|
|
34
|
+
var barTask;
|
|
35
|
+
switch (task.type) {
|
|
36
|
+
case 'milestone':
|
|
37
|
+
barTask = convertToMilestone(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, milestoneBackgroundColor, milestoneBackgroundSelectedColor);
|
|
38
|
+
break;
|
|
39
|
+
case 'project':
|
|
40
|
+
barTask = convertToBar(task, index, dates, columnWidth, rowHeight, taskHeight * 0.5, barCornerRadius, handleWidth, rtl, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor);
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
barTask = convertToBar(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
return barTask;
|
|
47
|
+
};
|
|
48
|
+
var convertToBar = function convertToBar(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor) {
|
|
49
|
+
var x1;
|
|
50
|
+
var x2;
|
|
51
|
+
if (rtl) {
|
|
52
|
+
x2 = taskXCoordinateRTL(task.start, dates, columnWidth);
|
|
53
|
+
x1 = taskXCoordinateRTL(task.end, dates, columnWidth);
|
|
54
|
+
} else {
|
|
55
|
+
x1 = taskXCoordinate(task.start, dates, columnWidth);
|
|
56
|
+
x2 = taskXCoordinate(task.end, dates, columnWidth);
|
|
57
|
+
}
|
|
58
|
+
var typeInternal = task.type;
|
|
59
|
+
if (typeInternal === 'task' && x2 - x1 < handleWidth * 2) {
|
|
60
|
+
typeInternal = 'smalltask';
|
|
61
|
+
x2 = x1 + handleWidth * 2;
|
|
62
|
+
}
|
|
63
|
+
var _progressWithByParams = progressWithByParams(x1, x2, task.progress, rtl),
|
|
64
|
+
_progressWithByParams2 = _slicedToArray(_progressWithByParams, 2),
|
|
65
|
+
progressWidth = _progressWithByParams2[0],
|
|
66
|
+
progressX = _progressWithByParams2[1];
|
|
67
|
+
var y = task.type === 'project' ? taskYCoordinate(index, rowHeight, taskHeight) + 8 : taskYCoordinate(index, rowHeight, taskHeight);
|
|
68
|
+
var hideChildren = task.type === 'project' ? task.hideChildren : undefined;
|
|
69
|
+
var styles = _objectSpread({
|
|
70
|
+
backgroundColor: barBackgroundColor,
|
|
71
|
+
backgroundSelectedColor: barBackgroundSelectedColor,
|
|
72
|
+
progressColor: barProgressColor,
|
|
73
|
+
progressSelectedColor: barProgressSelectedColor
|
|
74
|
+
}, task.styles);
|
|
75
|
+
return _objectSpread(_objectSpread({}, task), {}, {
|
|
76
|
+
typeInternal: typeInternal,
|
|
77
|
+
x1: x1,
|
|
78
|
+
x2: x2,
|
|
79
|
+
y: y,
|
|
80
|
+
index: index,
|
|
81
|
+
progressX: progressX,
|
|
82
|
+
progressWidth: progressWidth,
|
|
83
|
+
barCornerRadius: barCornerRadius,
|
|
84
|
+
handleWidth: handleWidth,
|
|
85
|
+
hideChildren: hideChildren,
|
|
86
|
+
height: taskHeight,
|
|
87
|
+
barChildren: [],
|
|
88
|
+
styles: styles
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
var convertToMilestone = function convertToMilestone(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, milestoneBackgroundColor, milestoneBackgroundSelectedColor) {
|
|
92
|
+
var x = taskXCoordinate(task.start, dates, columnWidth);
|
|
93
|
+
var y = taskYCoordinate(index, rowHeight, taskHeight);
|
|
94
|
+
var x1 = x - taskHeight * 0.5;
|
|
95
|
+
var x2 = x + taskHeight * 0.5;
|
|
96
|
+
var rotatedHeight = taskHeight / 1.414;
|
|
97
|
+
var styles = _objectSpread({
|
|
98
|
+
backgroundColor: milestoneBackgroundColor,
|
|
99
|
+
backgroundSelectedColor: milestoneBackgroundSelectedColor,
|
|
100
|
+
progressColor: '',
|
|
101
|
+
progressSelectedColor: ''
|
|
102
|
+
}, task.styles);
|
|
103
|
+
return _objectSpread(_objectSpread({}, task), {}, {
|
|
104
|
+
end: task.start,
|
|
105
|
+
x1: x1,
|
|
106
|
+
x2: x2,
|
|
107
|
+
y: y,
|
|
108
|
+
index: index,
|
|
109
|
+
progressX: 0,
|
|
110
|
+
progressWidth: 0,
|
|
111
|
+
barCornerRadius: barCornerRadius,
|
|
112
|
+
handleWidth: handleWidth,
|
|
113
|
+
typeInternal: task.type,
|
|
114
|
+
progress: 0,
|
|
115
|
+
height: rotatedHeight,
|
|
116
|
+
hideChildren: undefined,
|
|
117
|
+
barChildren: [],
|
|
118
|
+
styles: styles
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
|
|
122
|
+
var _dates$index, _dates, _dates$index2;
|
|
123
|
+
var index = dates.findIndex(function (d) {
|
|
124
|
+
return (d === null || d === void 0 ? void 0 : d.getTime()) >= (xDate === null || xDate === void 0 ? void 0 : xDate.getTime());
|
|
125
|
+
}) - 1;
|
|
126
|
+
var remainderMillis = (xDate === null || xDate === void 0 ? void 0 : xDate.getTime()) - ((_dates$index = dates[index]) === null || _dates$index === void 0 ? void 0 : _dates$index.getTime());
|
|
127
|
+
var percentOfInterval = remainderMillis / (((_dates = dates[index + 1]) === null || _dates === void 0 ? void 0 : _dates.getTime()) - ((_dates$index2 = dates[index]) === null || _dates$index2 === void 0 ? void 0 : _dates$index2.getTime()));
|
|
128
|
+
var x = index * columnWidth + percentOfInterval * columnWidth;
|
|
129
|
+
return x;
|
|
130
|
+
};
|
|
131
|
+
var taskXCoordinateRTL = function taskXCoordinateRTL(xDate, dates, columnWidth) {
|
|
132
|
+
var x = taskXCoordinate(xDate, dates, columnWidth);
|
|
133
|
+
x += columnWidth;
|
|
134
|
+
return x;
|
|
135
|
+
};
|
|
136
|
+
var taskYCoordinate = function taskYCoordinate(index, rowHeight, taskHeight) {
|
|
137
|
+
var y = index * rowHeight + (rowHeight - taskHeight) / 2;
|
|
138
|
+
return y;
|
|
139
|
+
};
|
|
140
|
+
export var progressWithByParams = function progressWithByParams(taskX1, taskX2, progress, rtl) {
|
|
141
|
+
var progressWidth = (taskX2 - taskX1) * progress * 0.01;
|
|
142
|
+
var progressX;
|
|
143
|
+
if (rtl) {
|
|
144
|
+
progressX = taskX2 - progressWidth;
|
|
145
|
+
} else {
|
|
146
|
+
progressX = taskX1;
|
|
147
|
+
}
|
|
148
|
+
return [progressWidth, progressX];
|
|
149
|
+
};
|
|
150
|
+
export var progressByProgressWidth = function progressByProgressWidth(progressWidth, barTask) {
|
|
151
|
+
var barWidth = barTask.x2 - barTask.x1;
|
|
152
|
+
var progressPercent = Math.round(progressWidth * 100 / barWidth);
|
|
153
|
+
if (progressPercent >= 100) return 100;else if (progressPercent <= 0) return 0;else return progressPercent;
|
|
154
|
+
};
|
|
155
|
+
var progressByX = function progressByX(x, task) {
|
|
156
|
+
if (x >= task.x2) return 100;else if (x <= task.x1) return 0;else {
|
|
157
|
+
var barWidth = task.x2 - task.x1;
|
|
158
|
+
var progressPercent = Math.round((x - task.x1) * 100 / barWidth);
|
|
159
|
+
return progressPercent;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var progressByXRTL = function progressByXRTL(x, task) {
|
|
163
|
+
if (x >= task.x2) return 0;else if (x <= task.x1) return 100;else {
|
|
164
|
+
var barWidth = task.x2 - task.x1;
|
|
165
|
+
var progressPercent = Math.round((task.x2 - x) * 100 / barWidth);
|
|
166
|
+
return progressPercent;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
export var getProgressPoint = function getProgressPoint(progressX, taskY, taskHeight) {
|
|
170
|
+
var point = [progressX - 5, taskY + taskHeight, progressX + 5, taskY + taskHeight, progressX, taskY + taskHeight - 8.66];
|
|
171
|
+
return point.join(',');
|
|
172
|
+
};
|
|
173
|
+
var startByX = function startByX(x, xStep, task) {
|
|
174
|
+
if (x >= task.x2 - task.handleWidth * 2) {
|
|
175
|
+
x = task.x2 - task.handleWidth * 2;
|
|
176
|
+
}
|
|
177
|
+
var steps = Math.round((x - task.x1) / xStep);
|
|
178
|
+
var additionalXValue = steps * xStep;
|
|
179
|
+
var newX = task.x1 + additionalXValue;
|
|
180
|
+
return newX;
|
|
181
|
+
};
|
|
182
|
+
var endByX = function endByX(x, xStep, task) {
|
|
183
|
+
if (x <= task.x1 + task.handleWidth * 2) {
|
|
184
|
+
x = task.x1 + task.handleWidth * 2;
|
|
185
|
+
}
|
|
186
|
+
var steps = Math.round((x - task.x2) / xStep);
|
|
187
|
+
var additionalXValue = steps * xStep;
|
|
188
|
+
var newX = task.x2 + additionalXValue;
|
|
189
|
+
return newX;
|
|
190
|
+
};
|
|
191
|
+
var moveByX = function moveByX(x, xStep, task) {
|
|
192
|
+
var steps = Math.round((x - task.x1) / xStep);
|
|
193
|
+
var additionalXValue = steps * xStep;
|
|
194
|
+
var newX1 = task.x1 + additionalXValue;
|
|
195
|
+
var newX2 = newX1 + task.x2 - task.x1;
|
|
196
|
+
return [newX1, newX2];
|
|
197
|
+
};
|
|
198
|
+
var dateByX = function dateByX(x, taskX, taskDate, xStep, timeStep) {
|
|
199
|
+
var newDate = new Date((x - taskX) / xStep * timeStep + taskDate.getTime());
|
|
200
|
+
newDate = new Date(newDate.getTime() + (newDate.getTimezoneOffset() - taskDate.getTimezoneOffset()) * 60000);
|
|
201
|
+
return newDate;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Method handles event in real time(mousemove) and on finish(mouseup)
|
|
205
|
+
*/
|
|
206
|
+
export var handleTaskBySVGMouseEvent = function handleTaskBySVGMouseEvent(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) {
|
|
207
|
+
var result;
|
|
208
|
+
switch (selectedTask.type) {
|
|
209
|
+
case 'milestone':
|
|
210
|
+
result = handleTaskBySVGMouseEventForMilestone(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta);
|
|
211
|
+
break;
|
|
212
|
+
default:
|
|
213
|
+
result = handleTaskBySVGMouseEventForBar(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
return result;
|
|
217
|
+
};
|
|
218
|
+
var handleTaskBySVGMouseEventForBar = function handleTaskBySVGMouseEventForBar(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) {
|
|
219
|
+
var changedTask = _objectSpread({}, selectedTask);
|
|
220
|
+
var isChanged = false;
|
|
221
|
+
switch (action) {
|
|
222
|
+
case 'progress':
|
|
223
|
+
if (rtl) {
|
|
224
|
+
changedTask.progress = progressByXRTL(svgX, selectedTask);
|
|
225
|
+
} else {
|
|
226
|
+
changedTask.progress = progressByX(svgX, selectedTask);
|
|
227
|
+
}
|
|
228
|
+
isChanged = changedTask.progress !== selectedTask.progress;
|
|
229
|
+
if (isChanged) {
|
|
230
|
+
var _progressWithByParams3 = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl),
|
|
231
|
+
_progressWithByParams4 = _slicedToArray(_progressWithByParams3, 2),
|
|
232
|
+
progressWidth = _progressWithByParams4[0],
|
|
233
|
+
progressX = _progressWithByParams4[1];
|
|
234
|
+
changedTask.progressWidth = progressWidth;
|
|
235
|
+
changedTask.progressX = progressX;
|
|
236
|
+
}
|
|
237
|
+
break;
|
|
238
|
+
case 'start':
|
|
239
|
+
{
|
|
240
|
+
var newX1 = startByX(svgX, xStep, selectedTask);
|
|
241
|
+
changedTask.x1 = newX1;
|
|
242
|
+
isChanged = changedTask.x1 !== selectedTask.x1;
|
|
243
|
+
if (isChanged) {
|
|
244
|
+
if (rtl) {
|
|
245
|
+
changedTask.end = dateByX(newX1, selectedTask.x1, selectedTask.end, xStep, timeStep);
|
|
246
|
+
} else {
|
|
247
|
+
changedTask.start = dateByX(newX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
|
|
248
|
+
}
|
|
249
|
+
var _progressWithByParams5 = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl),
|
|
250
|
+
_progressWithByParams6 = _slicedToArray(_progressWithByParams5, 2),
|
|
251
|
+
_progressWidth = _progressWithByParams6[0],
|
|
252
|
+
_progressX = _progressWithByParams6[1];
|
|
253
|
+
changedTask.progressWidth = _progressWidth;
|
|
254
|
+
changedTask.progressX = _progressX;
|
|
255
|
+
}
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
case 'end':
|
|
259
|
+
{
|
|
260
|
+
var newX2 = endByX(svgX, xStep, selectedTask);
|
|
261
|
+
changedTask.x2 = newX2;
|
|
262
|
+
isChanged = changedTask.x2 !== selectedTask.x2;
|
|
263
|
+
if (isChanged) {
|
|
264
|
+
if (rtl) {
|
|
265
|
+
changedTask.start = dateByX(newX2, selectedTask.x2, selectedTask.start, xStep, timeStep);
|
|
266
|
+
} else {
|
|
267
|
+
changedTask.end = dateByX(newX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
|
|
268
|
+
}
|
|
269
|
+
var _progressWithByParams7 = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl),
|
|
270
|
+
_progressWithByParams8 = _slicedToArray(_progressWithByParams7, 2),
|
|
271
|
+
_progressWidth2 = _progressWithByParams8[0],
|
|
272
|
+
_progressX2 = _progressWithByParams8[1];
|
|
273
|
+
changedTask.progressWidth = _progressWidth2;
|
|
274
|
+
changedTask.progressX = _progressX2;
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case 'move':
|
|
279
|
+
{
|
|
280
|
+
var _moveByX = moveByX(svgX - initEventX1Delta, xStep, selectedTask),
|
|
281
|
+
_moveByX2 = _slicedToArray(_moveByX, 2),
|
|
282
|
+
newMoveX1 = _moveByX2[0],
|
|
283
|
+
newMoveX2 = _moveByX2[1];
|
|
284
|
+
isChanged = newMoveX1 !== selectedTask.x1;
|
|
285
|
+
if (isChanged) {
|
|
286
|
+
changedTask.start = dateByX(newMoveX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
|
|
287
|
+
changedTask.end = dateByX(newMoveX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
|
|
288
|
+
changedTask.x1 = newMoveX1;
|
|
289
|
+
changedTask.x2 = newMoveX2;
|
|
290
|
+
var _progressWithByParams9 = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl),
|
|
291
|
+
_progressWithByParams10 = _slicedToArray(_progressWithByParams9, 2),
|
|
292
|
+
_progressWidth3 = _progressWithByParams10[0],
|
|
293
|
+
_progressX3 = _progressWithByParams10[1];
|
|
294
|
+
changedTask.progressWidth = _progressWidth3;
|
|
295
|
+
changedTask.progressX = _progressX3;
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
isChanged: isChanged,
|
|
302
|
+
changedTask: changedTask
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
var handleTaskBySVGMouseEventForMilestone = function handleTaskBySVGMouseEventForMilestone(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta) {
|
|
306
|
+
var changedTask = _objectSpread({}, selectedTask);
|
|
307
|
+
var isChanged = false;
|
|
308
|
+
switch (action) {
|
|
309
|
+
case 'move':
|
|
310
|
+
{
|
|
311
|
+
var _moveByX3 = moveByX(svgX - initEventX1Delta, xStep, selectedTask),
|
|
312
|
+
_moveByX4 = _slicedToArray(_moveByX3, 2),
|
|
313
|
+
newMoveX1 = _moveByX4[0],
|
|
314
|
+
newMoveX2 = _moveByX4[1];
|
|
315
|
+
isChanged = newMoveX1 !== selectedTask.x1;
|
|
316
|
+
if (isChanged) {
|
|
317
|
+
changedTask.start = dateByX(newMoveX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
|
|
318
|
+
changedTask.end = changedTask.start;
|
|
319
|
+
changedTask.x1 = newMoveX1;
|
|
320
|
+
changedTask.x2 = newMoveX2;
|
|
321
|
+
}
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
isChanged: isChanged,
|
|
327
|
+
changedTask: changedTask
|
|
328
|
+
};
|
|
329
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Task, ViewMode } from '../types/public-types';
|
|
2
|
+
declare const DateTimeFormat: {
|
|
3
|
+
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
|
|
4
|
+
new (locales?: string | string[], options?: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
|
|
5
|
+
supportedLocalesOf(locales: string | string[], options?: Intl.DateTimeFormatOptions): string[];
|
|
6
|
+
};
|
|
7
|
+
declare type DateTimeFormat = typeof DateTimeFormat;
|
|
8
|
+
declare type DateHelperScales = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
|
|
9
|
+
export declare const getCachedDateTimeFormat: (locString: string | string[], opts?: any) => DateTimeFormat;
|
|
10
|
+
export declare const addToDate: (date: Date, quantity: number, scale: DateHelperScales) => Date;
|
|
11
|
+
export declare const startOfDate: (date: Date, scale: DateHelperScales) => Date;
|
|
12
|
+
export declare const ganttDateRange: (tasks: Task[], viewMode: ViewMode, preStepsCount: number) => Date[];
|
|
13
|
+
export declare const seedDates: (startDate: Date, endDate: Date, viewMode: ViewMode) => Date[];
|
|
14
|
+
export declare const getLocaleMonth: (date: Date, locale: string) => any;
|
|
15
|
+
export declare const getLocalDayOfWeek: (date: Date, locale: string, format?: 'long' | 'short' | 'narrow' | undefined) => any;
|
|
16
|
+
export declare const getWeekNumberISO8601: (date: Date) => string;
|
|
17
|
+
export declare const getDaysInMonth: (month: number, year: number) => number;
|
|
18
|
+
export {};
|