@oondemand/oon-core-front 0.3.33 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +29 -4
- package/dist/index.js +296 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -603,11 +603,28 @@ type OonPipelineCreateDef = {
|
|
|
603
603
|
defaultStage?: string;
|
|
604
604
|
defaultValues?: Record<string, unknown>;
|
|
605
605
|
};
|
|
606
|
+
type OonPipelineActionGroup = "approval" | "workStatus" | "custom";
|
|
607
|
+
type OonPipelineActionTone = "success" | "danger" | "warning" | "neutral" | "brand";
|
|
608
|
+
type OonPipelineOperationalKind = "approval" | "work-status" | "business";
|
|
609
|
+
/**
|
|
610
|
+
* Ações padrão da esteira. Quando omitido, aprovação/reprovação e status de
|
|
611
|
+
* trabalho ficam habilitados automaticamente quando os campos necessários
|
|
612
|
+
* existem na metadata do model.
|
|
613
|
+
*/
|
|
614
|
+
type OonPipelineDefaultActionsConfig = {
|
|
615
|
+
approval?: boolean;
|
|
616
|
+
workStatus?: boolean;
|
|
617
|
+
workStatusField?: string;
|
|
618
|
+
excludedStages?: string[];
|
|
619
|
+
};
|
|
620
|
+
type OonPipelineDefaultActionsDef = false | OonPipelineDefaultActionsConfig;
|
|
606
621
|
/**
|
|
607
622
|
* Ações operacionais exibidas no cabeçalho do ticket.
|
|
608
623
|
*
|
|
609
624
|
* - setField/transition atualizam um campo do próprio ticket;
|
|
610
|
-
* - formAction carrega dados opcionais e envia um formulário a um endpoint
|
|
625
|
+
* - formAction carrega dados opcionais e envia um formulário a um endpoint;
|
|
626
|
+
* - group/tone organizam a ação visualmente sem acoplar regra de negócio à UI;
|
|
627
|
+
* - operationalKind cria um contrato estável para telemetria, SLA e produtividade.
|
|
611
628
|
*/
|
|
612
629
|
type OonPipelineActionDef = Omit<OonRowActionDef, "type"> & {
|
|
613
630
|
type: OonRowActionDef["type"] | "setField" | "transition" | "formAction";
|
|
@@ -618,6 +635,9 @@ type OonPipelineActionDef = Omit<OonRowActionDef, "type"> & {
|
|
|
618
635
|
loadEndpoint?: string;
|
|
619
636
|
fields?: OonFormFieldDef[];
|
|
620
637
|
initialValues?: Record<string, unknown>;
|
|
638
|
+
group?: OonPipelineActionGroup;
|
|
639
|
+
tone?: OonPipelineActionTone;
|
|
640
|
+
operationalKind?: OonPipelineOperationalKind;
|
|
621
641
|
};
|
|
622
642
|
/**
|
|
623
643
|
* Extensão pública da view de esteira com filtros, inclusão, lista, ações e
|
|
@@ -642,7 +662,9 @@ type OonPipelineViewDef = PipelineViewDef & {
|
|
|
642
662
|
defaultView?: OonPipelineViewMode;
|
|
643
663
|
/** Colunas e ações da visualização em lista. */
|
|
644
664
|
list?: OonCollectionListConfig;
|
|
645
|
-
/** Ações
|
|
665
|
+
/** Ações padrão do Core; use false para desabilitá-las nesta esteira. */
|
|
666
|
+
defaultActions?: OonPipelineDefaultActionsDef;
|
|
667
|
+
/** Ações adicionais ou overrides exibidos no cabeçalho do ticket aberto. */
|
|
646
668
|
ticketActions?: OonPipelineActionDef[];
|
|
647
669
|
};
|
|
648
670
|
|
|
@@ -712,6 +734,8 @@ interface CentralUiManifest {
|
|
|
712
734
|
viewModes?: OonPipelineViewMode[];
|
|
713
735
|
defaultView?: OonPipelineViewMode;
|
|
714
736
|
list?: OonCollectionListConfig;
|
|
737
|
+
/** Habilitadas por padrão; use false para remover aprovação e status de trabalho. */
|
|
738
|
+
defaultActions?: OonPipelineDefaultActionsDef;
|
|
715
739
|
ticketActions?: OonPipelineActionDef[];
|
|
716
740
|
}>;
|
|
717
741
|
documents?: Array<{
|
|
@@ -817,10 +841,11 @@ interface CorePipelineProps {
|
|
|
817
841
|
viewModes?: OonPipelineViewMode[];
|
|
818
842
|
defaultView?: OonPipelineViewMode;
|
|
819
843
|
list?: OonCollectionListConfig;
|
|
844
|
+
defaultActions?: OonPipelineDefaultActionsDef;
|
|
820
845
|
ticketActions?: OonPipelineActionDef[];
|
|
821
846
|
}
|
|
822
847
|
/** Esteira com quadro/lista, filtros, inclusão e ações operacionais no ticket. */
|
|
823
|
-
declare function CorePipeline({ model, label, endpoint, stageField, stages, titleField, form, relations, ticketModal, filters, create, viewModes, defaultView, list, ticketActions, }: CorePipelineProps): react.JSX.Element;
|
|
848
|
+
declare function CorePipeline({ model, label, endpoint, stageField, stages, titleField, form, relations, ticketModal, filters, create, viewModes, defaultView, list, defaultActions, ticketActions, }: CorePipelineProps): react.JSX.Element;
|
|
824
849
|
|
|
825
850
|
interface CoreIntegrationProps {
|
|
826
851
|
label?: string;
|
|
@@ -1003,4 +1028,4 @@ declare function useCoreMetadata(): _tanstack_react_query.UseQueryResult<NoInfer
|
|
|
1003
1028
|
/** Descrição de uma model específica — base do modo "dynamic". */
|
|
1004
1029
|
declare function useModelSchema(name: string): _tanstack_react_query.UseQueryResult<NoInfer<ModelSummary>, Error>;
|
|
1005
1030
|
|
|
1006
|
-
export { type CentralFormFieldDef, type CentralUiManifest, type CollectionMode, type CollectionViewDef, CoreActions, CoreAssistant, CoreCards, CoreCollection, CoreCurrency, CoreDashboard, CoreDataGrid, CoreDocument, CoreEmptyState, CoreField, CoreForm, CoreIntegration, CoreLoadingState, type CoreMetadata, CorePage, CorePageHeader, CorePipeline, CoreRelationField, CoreToolbar, type DashboardViewDef, type DashboardWidgetDef, type DocumentViewDef, type FieldKind, type FieldMeta, type ListParams, type ManifestRuntime, type ModelSummary, type OonActionDef, type OonApiConfig, type OonAppConfig, type OonAppKind, type OonAuthConfig, type OonAuthMode, type OonBlockDef, type OonColumnDef, type OonComponentRegistry, type OonCoreFrontConfig, type OonError, type OonFormFieldDef, type OonLayoutConfig, type OonMenuItem, type OonModule, type OonNavigationConfig, type OonNavigationMode, type OonPageDef, type OonPipelineTicketModalConfig, type OonPipelineViewDef, type OonRoute, type OonSchemaVersion, type OonSecurityConfig, type OonUiManifest, type OonUser, type OonViewDefinition, type PaginatedResult, type Pagination, PermissionGate, type PipelineViewDef, defineCollectionView, defineDashboard, defineDocumentView, defineOonModule, definePipelineView, manifestToConfig, oonCoreFront, start, startFromManifest, useCoreMetadata, useModelSchema, useOonApi, useOonAuth, useOonResource };
|
|
1031
|
+
export { type CentralFormFieldDef, type CentralUiManifest, type CollectionMode, type CollectionViewDef, CoreActions, CoreAssistant, CoreCards, CoreCollection, CoreCurrency, CoreDashboard, CoreDataGrid, CoreDocument, CoreEmptyState, CoreField, CoreForm, CoreIntegration, CoreLoadingState, type CoreMetadata, CorePage, CorePageHeader, CorePipeline, CoreRelationField, CoreToolbar, type DashboardViewDef, type DashboardWidgetDef, type DocumentViewDef, type FieldKind, type FieldMeta, type ListParams, type ManifestRuntime, type ModelSummary, type OonActionDef, type OonApiConfig, type OonAppConfig, type OonAppKind, type OonAuthConfig, type OonAuthMode, type OonBlockDef, type OonColumnDef, type OonComponentRegistry, type OonCoreFrontConfig, type OonError, type OonFormFieldDef, type OonLayoutConfig, type OonMenuItem, type OonModule, type OonNavigationConfig, type OonNavigationMode, type OonPageDef, type OonPipelineActionDef, type OonPipelineActionGroup, type OonPipelineActionTone, type OonPipelineDefaultActionsConfig, type OonPipelineDefaultActionsDef, type OonPipelineTicketModalConfig, type OonPipelineViewDef, type OonRoute, type OonSchemaVersion, type OonSecurityConfig, type OonUiManifest, type OonUser, type OonViewDefinition, type PaginatedResult, type Pagination, PermissionGate, type PipelineViewDef, defineCollectionView, defineDashboard, defineDocumentView, defineOonModule, definePipelineView, manifestToConfig, oonCoreFront, start, startFromManifest, useCoreMetadata, useModelSchema, useOonApi, useOonAuth, useOonResource };
|