jsegd-fluig-types 1.0.28 → 1.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsegd-fluig-types",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Definições de tipos TypeScript para desenvolvimento na plataforma Fluig - Inclui APIs, SDK, datasets, workflows e webservices",
5
5
  "keywords": [
6
6
  "fluig",
@@ -162,14 +162,17 @@ declare global {
162
162
  modal: (option: ModalSettings, callback?: (err: unknown, data: object) => void) => Modal
163
163
  datatable: <T>(target: string, options: DatatableOptions<T>) => Datatable
164
164
  autocomplete<T>(target: string | HTMLElement, options: object, callback?: (error: unknown, data: object) => void): Autocomplete<T>
165
- ajax<T = any>(options: {
166
- url: string
167
- contentType?: string
168
- dataType?: string
169
- type?: HttpMethod
170
- data?: any
171
- async?: boolean
172
- }, callback: (err: any, data: T) => void): void
165
+ ajax<T = any>(
166
+ options: {
167
+ url: string
168
+ contentType?: string
169
+ dataType?: string
170
+ type?: HttpMethod
171
+ data?: any
172
+ async?: boolean
173
+ },
174
+ callback: (err: any, data: T) => void
175
+ ): void
173
176
  rightbar(options: {
174
177
  appendTo?: string
175
178
  content: string
@@ -267,7 +270,6 @@ declare global {
267
270
  WKFViewAttachment: WKFViewAttachment
268
271
  formMode: FormMod
269
272
  ECM_WKFView: ECM_WKFView
270
-
271
273
  }
272
274
 
273
275
  // Funções globais do Fluig
@@ -319,14 +321,17 @@ declare global {
319
321
  static modal: (option: ModalSettings, callback?: (err: unknown, data: object) => void) => Modal
320
322
  static datatable: <T>(target: string, options: DatatableOptions<T>) => Datatable
321
323
  static autocomplete<T>(target: string | HTMLElement, options: object, callback?: (error: unknown, data: object) => void): Autocomplete<T>
322
- static ajax<T = any>(options: {
323
- url: string
324
- contentType?: string
325
- dataType?: string
326
- type?: HttpMethod
327
- data?: any
328
- async?: boolean
329
- }, callback: (err: any, data: T) => void): void
324
+ static ajax<T = any>(
325
+ options: {
326
+ url: string
327
+ contentType?: string
328
+ dataType?: string
329
+ type?: HttpMethod
330
+ data?: any
331
+ async?: boolean
332
+ },
333
+ callback: (err: any, data: T) => void
334
+ ): void
330
335
  static rightbar(options: {
331
336
  appendTo?: string
332
337
  content: string
@@ -391,16 +396,27 @@ declare global {
391
396
  }
392
397
 
393
398
  class Autocomplete<T> {
394
- val(value: string): void
395
- val(): string
396
- on(event: AutocompleteEvents, callback: (event: unknown) => void): void
399
+ add(a: T): void
400
+ close(): void
401
+ destroy(): void
402
+ disable(a: T): void
403
+ focus(): void
404
+ input(): void
397
405
  items(): T[]
406
+ on(event: AutocompleteEvents, callback: (event: unknown) => void): void
407
+ open(): void
408
+ refresh(): void
409
+ remove(a: T): void
410
+ removeAll(): void
411
+ update(a: T): void
412
+ val(): string
413
+ val(value: string): void
398
414
  }
399
415
 
400
416
  class message {
401
417
  confirm(settings: ConfirmSettings, callback: ConfirmCallback): void
402
- static alert(settings: AlertSettings, callback: MessageCallback): void
403
- static error(settings: ErrorSettings, callback: MessageCallback): void
418
+ alert(settings: AlertSettings, callback: MessageCallback): void
419
+ error(settings: ErrorSettings, callback: MessageCallback): void
404
420
  }
405
421
 
406
422
  // =============================
@@ -441,7 +457,7 @@ declare global {
441
457
  downloadAttachments(attachments: string[]): void
442
458
  deleteAttachments(attachments: any): void
443
459
  attachEdit(attach: { [key: string]: string }, index: number): void
444
-
460
+
445
461
  // Métodos de controle
446
462
  updateAttachmentStatus(): void
447
463
  loadAttachments(): void
@@ -452,7 +468,7 @@ declare global {
452
468
  changeSearchField(el: any, ev: any): void
453
469
  cleanNewAttachmentsDocs(): void
454
470
  updateAttachment(attachment: any): void
455
-
471
+
456
472
  // Métodos de publicação
457
473
  publishFile(index: number): void
458
474
  createFindDocumentModal(index: number): void
@@ -510,23 +526,23 @@ declare global {
510
526
  user: string
511
527
  organizationId: number
512
528
  serverURL: string
513
-
529
+
514
530
  // Métodos de servidor
515
531
  getServerURL(): string
516
532
  getTenantCode(): string
517
533
  getProtectedContextPath(): string
518
534
  getUploadURL(): string
519
-
535
+
520
536
  // Métodos utilitários
521
537
  convertFtlAsync(): string
522
538
  generateId(): string
523
539
  getUserCode(): string
524
540
  isIe(): boolean
525
541
  isIe9(): boolean
526
-
542
+
527
543
  // Event listener
528
544
  addListener(obj: any, eventName: string, callback: (eventName: string, data: any) => void): void
529
-
545
+
530
546
  // Requisições AJAX
531
547
  Create(options: {
532
548
  url: string
@@ -609,14 +625,14 @@ declare global {
609
625
  currentEvent: string
610
626
  isCancelable: boolean
611
627
  availableUsersInit: any[]
612
-
628
+
613
629
  // Propriedades de widgets relacionados
614
630
  wkfViewObservation: any
615
631
  wkfViewProcess: any
616
632
  wkfViewHistory: any
617
633
  wkfViewAttachment: WKFViewAttachment | null
618
634
  wkfViewAppointments: any
619
-
635
+
620
636
  // Propriedades de processo
621
637
  detailsProcessInstanceID: number
622
638
  processId: string
@@ -627,7 +643,7 @@ declare global {
627
643
  currentMovto: number
628
644
  managerMode: boolean
629
645
  afterRedirectMessage: string
630
-
646
+
631
647
  // Propriedades de configuração
632
648
  userSearch: string
633
649
  initUser: number
@@ -638,7 +654,7 @@ declare global {
638
654
  newRequest: boolean
639
655
  reloadSvg: boolean
640
656
  messagePage: Record<string, any>
641
-
657
+
642
658
  // Constantes e configurações
643
659
  WorkflowActions: {
644
660
  SAVE: number
@@ -649,14 +665,14 @@ declare global {
649
665
  conditionAfterAutomatic: number
650
666
  }
651
667
  lastSelectedState: any
652
-
668
+
653
669
  // Loading
654
670
  load: {
655
671
  loading?: Loading
656
672
  show(): void
657
673
  hide(): void
658
674
  }
659
-
675
+
660
676
  // Métodos de ação principais
661
677
  save(): void
662
678
  transfer(): void
@@ -666,16 +682,16 @@ declare global {
666
682
  cancelAutomaticRequest(): void
667
683
  sendTransferRequest(): void
668
684
  sendRequest(isAutomatic: boolean, isTransfer: boolean, pass?: string): void
669
-
685
+
670
686
  // Métodos de navegação
671
687
  back(): void
672
688
  backModal(): void
673
689
  backBtn(): void
674
-
690
+
675
691
  // Métodos de cancelamento
676
692
  cancel(): void
677
693
  cancelRequest(): void
678
-
694
+
679
695
  // Métodos de controle de interface
680
696
  enableSendButton(): void
681
697
  disableSendButton(): void
@@ -683,16 +699,16 @@ declare global {
683
699
  disableActionButtons(): void
684
700
  hideModals(): void
685
701
  closeModal(): void
686
-
702
+
687
703
  // Métodos de modal
688
704
  createUserSelectionModal(processInstanceId: any, isFormField: any, pass: any): void
689
705
  createAdHoc(): void
690
-
706
+
691
707
  // Métodos de formulário
692
708
  callFormFunction(functionName: string, args: any[]): Promise<boolean>
693
709
  getSelectedColleagues(): any
694
710
  getFormData(): any
695
-
711
+
696
712
  // Métodos de atividade
697
713
  selectActivity(): string
698
714
  movimentActivity(
@@ -710,10 +726,10 @@ declare global {
710
726
  hideModal: boolean,
711
727
  transferTaskAfterSelection: boolean
712
728
  ): void
713
-
729
+
714
730
  // Métodos de validação
715
731
  validateBeforeSend(activity: any, completeTask: any, isAutomatic: boolean, pass?: string, isTransfer?: boolean): any
716
-
732
+
717
733
  // Métodos de atualização de status
718
734
  updateAdHocStatus(qtt: number): void
719
735
  updateComplementsStatus(qtt: number): void