@seedgrid/fe-components 2026.9.5 → 2026.10.1

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.
Files changed (44) hide show
  1. package/dist/ai/seedgrid-components.manifest.json +361 -240
  2. package/dist/digits/matrix-digit/SgMatrixDigit.meta.d.ts.map +1 -1
  3. package/dist/digits/matrix-digit/SgMatrixDigit.meta.js +0 -1
  4. package/dist/digits/roller3d-digit/SgRoller3DDigit.meta.d.ts.map +1 -1
  5. package/dist/digits/roller3d-digit/SgRoller3DDigit.meta.js +0 -2
  6. package/dist/digits/segment-digit/SgSegmentDigit.meta.d.ts.map +1 -1
  7. package/dist/digits/segment-digit/SgSegmentDigit.meta.js +0 -2
  8. package/dist/digits/seven-segment-digit/SgSevenSegmentDigit.meta.d.ts.map +1 -1
  9. package/dist/digits/seven-segment-digit/SgSevenSegmentDigit.meta.js +0 -1
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -0
  13. package/dist/inputs/SgDatatable.meta.d.ts.map +1 -1
  14. package/dist/inputs/SgDatatable.meta.js +0 -1
  15. package/dist/inputs/SgInputCurrency.meta.d.ts.map +1 -1
  16. package/dist/inputs/SgInputCurrency.meta.js +0 -21
  17. package/dist/inputs/SgInputNumber.meta.d.ts.map +1 -1
  18. package/dist/inputs/SgInputNumber.meta.js +0 -14
  19. package/dist/inputs/SgInputTextarea.meta.d.ts.map +1 -1
  20. package/dist/inputs/SgInputTextarea.meta.js +0 -14
  21. package/dist/inputs/SgPickList.meta.d.ts.map +1 -1
  22. package/dist/inputs/SgPickList.meta.js +0 -3
  23. package/dist/inputs/SgRating.meta.d.ts.map +1 -1
  24. package/dist/inputs/SgRating.meta.js +0 -1
  25. package/dist/inputs/SgTextEditor.meta.d.ts.map +1 -1
  26. package/dist/inputs/SgTextEditor.meta.js +0 -4
  27. package/dist/inputs/SgToggleSwitch.meta.d.ts.map +1 -1
  28. package/dist/inputs/SgToggleSwitch.meta.js +0 -3
  29. package/dist/layout/SgTreeView.meta.d.ts.map +1 -1
  30. package/dist/layout/SgTreeView.meta.js +0 -30
  31. package/dist/realtime/SgRealtimeProvider.d.ts +71 -0
  32. package/dist/realtime/SgRealtimeProvider.d.ts.map +1 -0
  33. package/dist/realtime/SgRealtimeProvider.js +170 -0
  34. package/dist/realtime/SgRealtimeProvider.meta.d.ts +4 -0
  35. package/dist/realtime/SgRealtimeProvider.meta.d.ts.map +1 -0
  36. package/dist/realtime/SgRealtimeProvider.meta.js +50 -0
  37. package/dist/realtime/useSgRealtimeEvent.meta.d.ts +4 -0
  38. package/dist/realtime/useSgRealtimeEvent.meta.d.ts.map +1 -0
  39. package/dist/realtime/useSgRealtimeEvent.meta.js +33 -0
  40. package/dist/realtime/useSgRealtimeStatus.meta.d.ts +4 -0
  41. package/dist/realtime/useSgRealtimeStatus.meta.d.ts.map +1 -0
  42. package/dist/realtime/useSgRealtimeStatus.meta.js +32 -0
  43. package/dist/sandbox.cjs +21 -21
  44. package/package.json +5 -4
@@ -3075,14 +3075,6 @@
3075
3075
  "semanticRole": "behavior",
3076
3076
  "bindable": true
3077
3077
  },
3078
- {
3079
- "name": "rowsPerPage",
3080
- "type": "number",
3081
- "required": false,
3082
- "description": "Quantidade de linhas por pagina.",
3083
- "semanticRole": "behavior",
3084
- "bindable": true
3085
- },
3086
3078
  {
3087
3079
  "name": "onPage",
3088
3080
  "type": "(event: SgDatatablePageEvent) => void",
@@ -4027,22 +4019,6 @@
4027
4019
  "semanticRole": "validation",
4028
4020
  "bindable": true
4029
4021
  },
4030
- {
4031
- "name": "min",
4032
- "type": "number",
4033
- "required": false,
4034
- "description": "Valor minimo aceito.",
4035
- "semanticRole": "validation",
4036
- "bindable": true
4037
- },
4038
- {
4039
- "name": "max",
4040
- "type": "number",
4041
- "required": false,
4042
- "description": "Valor maximo aceito.",
4043
- "semanticRole": "validation",
4044
- "bindable": true
4045
- },
4046
4022
  {
4047
4023
  "name": "decimals",
4048
4024
  "type": "number",
@@ -4367,14 +4343,6 @@
4367
4343
  "semanticRole": "behavior",
4368
4344
  "bindable": true
4369
4345
  },
4370
- {
4371
- "name": "symbol",
4372
- "type": "string",
4373
- "required": false,
4374
- "description": "Simbolo monetario exibido no campo.",
4375
- "semanticRole": "appearance",
4376
- "bindable": true
4377
- },
4378
4346
  {
4379
4347
  "name": "required",
4380
4348
  "type": "boolean",
@@ -4384,22 +4352,6 @@
4384
4352
  "semanticRole": "validation",
4385
4353
  "bindable": true
4386
4354
  },
4387
- {
4388
- "name": "min",
4389
- "type": "number",
4390
- "required": false,
4391
- "description": "Valor monetario minimo aceito.",
4392
- "semanticRole": "validation",
4393
- "bindable": true
4394
- },
4395
- {
4396
- "name": "max",
4397
- "type": "number",
4398
- "required": false,
4399
- "description": "Valor monetario maximo aceito.",
4400
- "semanticRole": "validation",
4401
- "bindable": true
4402
- },
4403
4355
  {
4404
4356
  "name": "onChange",
4405
4357
  "type": "(value: number | null) => void",
@@ -7464,22 +7416,6 @@
7464
7416
  "semanticRole": "value",
7465
7417
  "bindable": true
7466
7418
  },
7467
- {
7468
- "name": "sourceLabel",
7469
- "type": "string",
7470
- "required": false,
7471
- "description": "Rotulo da lista de origem.",
7472
- "semanticRole": "label",
7473
- "bindable": true
7474
- },
7475
- {
7476
- "name": "targetLabel",
7477
- "type": "string",
7478
- "required": false,
7479
- "description": "Rotulo da lista de destino.",
7480
- "semanticRole": "label",
7481
- "bindable": true
7482
- },
7483
7419
  {
7484
7420
  "name": "selectionMode",
7485
7421
  "type": "string",
@@ -7488,15 +7424,6 @@
7488
7424
  "semanticRole": "behavior",
7489
7425
  "bindable": true
7490
7426
  },
7491
- {
7492
- "name": "showFilters",
7493
- "type": "boolean",
7494
- "required": false,
7495
- "default": true,
7496
- "description": "Exibe filtros nas listas.",
7497
- "semanticRole": "appearance",
7498
- "bindable": true
7499
- },
7500
7427
  {
7501
7428
  "name": "disabled",
7502
7429
  "type": "boolean",
@@ -7953,14 +7880,6 @@
7953
7880
  "semanticRole": "value",
7954
7881
  "bindable": true
7955
7882
  },
7956
- {
7957
- "name": "max",
7958
- "type": "number",
7959
- "required": false,
7960
- "description": "Quantidade maxima de itens de avaliacao.",
7961
- "semanticRole": "validation",
7962
- "bindable": true
7963
- },
7964
7883
  {
7965
7884
  "name": "readOnly",
7966
7885
  "type": "boolean",
@@ -8547,31 +8466,6 @@
8547
8466
  "semanticRole": "data",
8548
8467
  "bindable": false
8549
8468
  },
8550
- {
8551
- "name": "label",
8552
- "type": "string",
8553
- "required": false,
8554
- "description": "Rotulo exibido ao usuario.",
8555
- "semanticRole": "label",
8556
- "bindable": true
8557
- },
8558
- {
8559
- "name": "value",
8560
- "type": "string",
8561
- "required": false,
8562
- "description": "Conteudo atual do editor.",
8563
- "semanticRole": "value",
8564
- "bindable": true
8565
- },
8566
- {
8567
- "name": "readOnly",
8568
- "type": "boolean",
8569
- "required": false,
8570
- "default": false,
8571
- "description": "Impede edicao do conteudo.",
8572
- "semanticRole": "behavior",
8573
- "bindable": true
8574
- },
8575
8469
  {
8576
8470
  "name": "placeholder",
8577
8471
  "type": "string",
@@ -8588,14 +8482,6 @@
8588
8482
  "semanticRole": "appearance",
8589
8483
  "bindable": true
8590
8484
  },
8591
- {
8592
- "name": "onChange",
8593
- "type": "(value: string) => void",
8594
- "required": false,
8595
- "description": "Callback de mudanca do conteudo.",
8596
- "semanticRole": "event",
8597
- "bindable": false
8598
- },
8599
8485
  {
8600
8486
  "name": "onSave",
8601
8487
  "type": "(meta: SgTextEditorSaveMeta) => void",
@@ -8782,14 +8668,6 @@
8782
8668
  "semanticRole": "label",
8783
8669
  "bindable": true
8784
8670
  },
8785
- {
8786
- "name": "placeholder",
8787
- "type": "string",
8788
- "required": false,
8789
- "description": "Texto de apoio para orientar o conteudo esperado.",
8790
- "semanticRole": "label",
8791
- "bindable": true
8792
- },
8793
8671
  {
8794
8672
  "name": "required",
8795
8673
  "type": "boolean",
@@ -8799,14 +8677,6 @@
8799
8677
  "semanticRole": "validation",
8800
8678
  "bindable": true
8801
8679
  },
8802
- {
8803
- "name": "rows",
8804
- "type": "number",
8805
- "required": false,
8806
- "description": "Quantidade inicial de linhas visiveis.",
8807
- "semanticRole": "appearance",
8808
- "bindable": true
8809
- },
8810
8680
  {
8811
8681
  "name": "maxLength",
8812
8682
  "type": "number",
@@ -9108,15 +8978,6 @@
9108
8978
  "semanticRole": "value",
9109
8979
  "bindable": true
9110
8980
  },
9111
- {
9112
- "name": "disabled",
9113
- "type": "boolean",
9114
- "required": false,
9115
- "default": false,
9116
- "description": "Desabilita interacao.",
9117
- "semanticRole": "behavior",
9118
- "bindable": true
9119
- },
9120
8981
  {
9121
8982
  "name": "readOnly",
9122
8983
  "type": "boolean",
@@ -9126,22 +8987,6 @@
9126
8987
  "semanticRole": "behavior",
9127
8988
  "bindable": true
9128
8989
  },
9129
- {
9130
- "name": "checkedLabel",
9131
- "type": "string",
9132
- "required": false,
9133
- "description": "Texto exibido no estado ligado.",
9134
- "semanticRole": "appearance",
9135
- "bindable": true
9136
- },
9137
- {
9138
- "name": "uncheckedLabel",
9139
- "type": "string",
9140
- "required": false,
9141
- "description": "Texto exibido no estado desligado.",
9142
- "semanticRole": "appearance",
9143
- "bindable": true
9144
- },
9145
8990
  {
9146
8991
  "name": "onChange",
9147
8992
  "type": "(checked: boolean) => void",
@@ -16658,23 +16503,6 @@
16658
16503
  "semanticRole": "data",
16659
16504
  "bindable": true
16660
16505
  },
16661
- {
16662
- "name": "selectionMode",
16663
- "type": "\"single\" | \"multiple\" | \"checkbox\"",
16664
- "required": false,
16665
- "default": "single",
16666
- "description": "Modo principal de selecao dos nos.",
16667
- "semanticRole": "behavior",
16668
- "bindable": true
16669
- },
16670
- {
16671
- "name": "selectedIds",
16672
- "type": "string[]",
16673
- "required": false,
16674
- "description": "Nos selecionados de forma controlada.",
16675
- "semanticRole": "value",
16676
- "bindable": true
16677
- },
16678
16506
  {
16679
16507
  "name": "checkedIds",
16680
16508
  "type": "string[]",
@@ -16692,15 +16520,6 @@
16692
16520
  "semanticRole": "behavior",
16693
16521
  "bindable": true
16694
16522
  },
16695
- {
16696
- "name": "expandAllByDefault",
16697
- "type": "boolean",
16698
- "required": false,
16699
- "default": false,
16700
- "description": "Expande a arvore inteira na montagem inicial.",
16701
- "semanticRole": "behavior",
16702
- "bindable": true
16703
- },
16704
16523
  {
16705
16524
  "name": "size",
16706
16525
  "type": "\"sm\" | \"md\" | \"lg\"",
@@ -16710,14 +16529,6 @@
16710
16529
  "semanticRole": "appearance",
16711
16530
  "bindable": true
16712
16531
  },
16713
- {
16714
- "name": "onSelectionChange",
16715
- "type": "(ids: string[]) => void",
16716
- "required": false,
16717
- "description": "Callback disparado quando a selecao muda.",
16718
- "semanticRole": "event",
16719
- "bindable": false
16720
- },
16721
16532
  {
16722
16533
  "name": "branchLabelBehavior",
16723
16534
  "type": "\"none\" | \"toggle\"",
@@ -18397,6 +18208,367 @@
18397
18208
  }
18398
18209
  }
18399
18210
  },
18211
+ {
18212
+ "componentId": "provider.realtime",
18213
+ "exportName": "SgRealtimeProvider",
18214
+ "sgMeta": {
18215
+ "version": "0.1",
18216
+ "componentId": "provider.realtime",
18217
+ "package": "@seedgrid/fe-components",
18218
+ "exportName": "SgRealtimeProvider",
18219
+ "slug": "sg-realtime-provider",
18220
+ "displayName": "SgRealtimeProvider",
18221
+ "category": "provider",
18222
+ "subcategory": "realtime",
18223
+ "description": "Avisos em tempo real para o usuario logado pelo SeedGrid Pulse: pede o token de conexao ao backend (que o emite para o usuario da sessao), conecta direto no Pulse, reconecta sozinho, para quando a credencial e revogada e expoe o status para a tela decidir entre aviso e polling de reserva.",
18224
+ "tags": [
18225
+ "provider",
18226
+ "realtime",
18227
+ "pulse",
18228
+ "websocket",
18229
+ "notification",
18230
+ "polling"
18231
+ ],
18232
+ "capabilities": [
18233
+ "token-from-backend",
18234
+ "auto-reconnect",
18235
+ "channel-subscription",
18236
+ "fallback-status"
18237
+ ],
18238
+ "fieldSemantics": [
18239
+ "realtimeChannels",
18240
+ "tokenEndpoint",
18241
+ "connectionStatus"
18242
+ ],
18243
+ "props": [
18244
+ {
18245
+ "name": "channels",
18246
+ "type": "string[]",
18247
+ "required": true,
18248
+ "description": "Channels que a aplicacao quer ouvir (ex.: [\"backup\"]).",
18249
+ "semanticRole": "data",
18250
+ "bindable": true
18251
+ },
18252
+ {
18253
+ "name": "tokenEndpoint",
18254
+ "type": "string",
18255
+ "required": false,
18256
+ "default": "/api/realtime/connect",
18257
+ "description": "Rota que entrega o token de conexao do usuario logado (a BFF, na mesma origem).",
18258
+ "semanticRole": "behavior",
18259
+ "bindable": true
18260
+ },
18261
+ {
18262
+ "name": "enabled",
18263
+ "type": "boolean",
18264
+ "required": false,
18265
+ "default": true,
18266
+ "description": "Liga/desliga (ex.: false enquanto nao ha usuario logado).",
18267
+ "semanticRole": "behavior",
18268
+ "bindable": true
18269
+ },
18270
+ {
18271
+ "name": "children",
18272
+ "type": "ReactNode",
18273
+ "required": true,
18274
+ "description": "Arvore que ouve os avisos com useSgRealtimeEvent.",
18275
+ "semanticRole": "data",
18276
+ "bindable": false
18277
+ },
18278
+ {
18279
+ "name": "connectOptions",
18280
+ "type": "Omit<ConnectInput, \"getToken\" | \"accountKey\" | \"baseUrl\">",
18281
+ "required": false,
18282
+ "description": "Opções avançadas do cliente do Pulse (reconexão, `webSocketImpl` em testes...)."
18283
+ },
18284
+ {
18285
+ "name": "fetchToken",
18286
+ "type": "(() => Promise<SgRealtimeConnectResponse>)",
18287
+ "required": false,
18288
+ "description": "Substitui o pedido de token inteiro (apps sem BFF, testes)."
18289
+ },
18290
+ {
18291
+ "name": "pulseUrl",
18292
+ "type": "string",
18293
+ "required": false,
18294
+ "description": "Endereço do Pulse, usado quando o token não traz `connectUrl` (Pulse sem endereço público)."
18295
+ },
18296
+ {
18297
+ "name": "tokenRequestInit",
18298
+ "type": "RequestInit",
18299
+ "required": false,
18300
+ "description": "Opções do `fetch` do token (ex.: `headers: { Authorization: ... }` quando não há cookie)."
18301
+ }
18302
+ ],
18303
+ "states": [
18304
+ "idle",
18305
+ "disabled",
18306
+ "connecting",
18307
+ "connected",
18308
+ "reconnecting",
18309
+ "unavailable",
18310
+ "auth-error"
18311
+ ],
18312
+ "examples": [
18313
+ {
18314
+ "id": "simulador",
18315
+ "title": "Simulador",
18316
+ "file": "apps/showcase/src/app/components/providers/sg-realtime-provider/samples/simulador.tsx.sample",
18317
+ "kind": "sample"
18318
+ },
18319
+ {
18320
+ "id": "layout-com-bff",
18321
+ "title": "No layout, com a BFF",
18322
+ "file": "apps/showcase/src/app/components/providers/sg-realtime-provider/samples/layout-com-bff.tsx.sample",
18323
+ "kind": "sample"
18324
+ },
18325
+ {
18326
+ "id": "polling-de-reserva",
18327
+ "title": "Polling de reserva",
18328
+ "file": "apps/showcase/src/app/components/providers/sg-realtime-provider/samples/polling-de-reserva.tsx.sample",
18329
+ "kind": "sample"
18330
+ }
18331
+ ],
18332
+ "showcase": {
18333
+ "route": "/components/providers/sg-realtime-provider",
18334
+ "hasPlayground": true,
18335
+ "hasPropsTable": true
18336
+ },
18337
+ "sdui": {
18338
+ "rendererType": "provider.realtime",
18339
+ "acceptsDataBinding": true,
18340
+ "defaultProps": {
18341
+ "channels": [],
18342
+ "tokenEndpoint": "/api/realtime/connect",
18343
+ "enabled": true
18344
+ }
18345
+ }
18346
+ },
18347
+ "aiHints": {
18348
+ "version": "0.1",
18349
+ "preferredUseCases": [
18350
+ "Avisar o usuario quando um processo demorado termina (backup, relatorio, importacao) sem polling.",
18351
+ "Atualizar uma lista quando o backend publica um evento para o usuario logado."
18352
+ ],
18353
+ "avoidUseCases": [
18354
+ "Transportar dados de negocio: o aviso so leva identificadores; busque o registro pela API.",
18355
+ "Mensagens entre usuarios ou chat."
18356
+ ],
18357
+ "synonyms": [
18358
+ "realtime provider",
18359
+ "pulse provider",
18360
+ "websocket provider",
18361
+ "push notifications"
18362
+ ],
18363
+ "relatedEntityFields": [
18364
+ "channel",
18365
+ "event",
18366
+ "userPublicId"
18367
+ ],
18368
+ "compositionHints": [
18369
+ "Montar uma vez no layout autenticado e ouvir com useSgRealtimeEvent nas telas.",
18370
+ "Usar useSgRealtimeStatus para ligar o polling de reserva quando nao estiver conectado."
18371
+ ],
18372
+ "rankingSignals": {
18373
+ "freeText": 0,
18374
+ "structuredChoice": 0,
18375
+ "date": 0,
18376
+ "number": 0,
18377
+ "denseLayout": 0
18378
+ }
18379
+ }
18380
+ },
18381
+ {
18382
+ "componentId": "hook.realtime-event",
18383
+ "exportName": "useSgRealtimeEvent",
18384
+ "sgMeta": {
18385
+ "version": "0.1",
18386
+ "componentId": "hook.realtime-event",
18387
+ "package": "@seedgrid/fe-components",
18388
+ "exportName": "useSgRealtimeEvent",
18389
+ "slug": "use-sg-realtime-event",
18390
+ "displayName": "useSgRealtimeEvent",
18391
+ "category": "hook",
18392
+ "subcategory": "realtime",
18393
+ "description": "Hook que chama o handler a cada aviso do SgRealtimeProvider no channel informado cujo evento casa o padrao (nome, lista, prefixo.* ou *).",
18394
+ "tags": [
18395
+ "hook",
18396
+ "realtime",
18397
+ "pulse",
18398
+ "event"
18399
+ ],
18400
+ "capabilities": [
18401
+ "event-subscription",
18402
+ "wildcard-match"
18403
+ ],
18404
+ "fieldSemantics": [
18405
+ "realtimeChannel",
18406
+ "eventPattern",
18407
+ "eventHandler"
18408
+ ],
18409
+ "props": [
18410
+ {
18411
+ "name": "channel",
18412
+ "type": "string",
18413
+ "required": true,
18414
+ "description": "Channel do aviso (ex.: \"backup\").",
18415
+ "semanticRole": "data",
18416
+ "bindable": false
18417
+ },
18418
+ {
18419
+ "name": "events",
18420
+ "type": "string | string[]",
18421
+ "required": true,
18422
+ "description": "Nome do evento, lista, \"prefixo.*\" ou \"*\".",
18423
+ "semanticRole": "data",
18424
+ "bindable": false
18425
+ },
18426
+ {
18427
+ "name": "handler",
18428
+ "type": "(event: SgRealtimeEvent) => void",
18429
+ "required": true,
18430
+ "description": "Chamado a cada aviso que casa.",
18431
+ "semanticRole": "behavior",
18432
+ "bindable": false
18433
+ }
18434
+ ],
18435
+ "states": [
18436
+ "listening"
18437
+ ],
18438
+ "examples": [
18439
+ {
18440
+ "id": "uso-basico",
18441
+ "title": "Uso basico",
18442
+ "file": "apps/showcase/src/app/components/hooks/use-sg-realtime-event/samples/uso-basico.tsx.sample",
18443
+ "kind": "sample"
18444
+ }
18445
+ ],
18446
+ "showcase": {
18447
+ "route": "/components/hooks/use-sg-realtime-event",
18448
+ "hasPlayground": true,
18449
+ "hasPropsTable": true
18450
+ }
18451
+ },
18452
+ "aiHints": {
18453
+ "version": "0.1",
18454
+ "preferredUseCases": [
18455
+ "Recarregar uma tela quando o backend avisa que um processo terminou."
18456
+ ],
18457
+ "avoidUseCases": [
18458
+ "Ler dados de negocio do aviso: ele so traz identificadores."
18459
+ ],
18460
+ "synonyms": [
18461
+ "realtime event",
18462
+ "pulse event",
18463
+ "on notice"
18464
+ ],
18465
+ "relatedEntityFields": [
18466
+ "channel",
18467
+ "event"
18468
+ ],
18469
+ "compositionHints": [
18470
+ "Usar dentro de um SgRealtimeProvider que assina o channel."
18471
+ ],
18472
+ "rankingSignals": {
18473
+ "freeText": 0,
18474
+ "structuredChoice": 0,
18475
+ "date": 0,
18476
+ "number": 0,
18477
+ "denseLayout": 0
18478
+ }
18479
+ }
18480
+ },
18481
+ {
18482
+ "componentId": "hook.realtime-status",
18483
+ "exportName": "useSgRealtimeStatus",
18484
+ "sgMeta": {
18485
+ "version": "0.1",
18486
+ "componentId": "hook.realtime-status",
18487
+ "package": "@seedgrid/fe-components",
18488
+ "exportName": "useSgRealtimeStatus",
18489
+ "slug": "use-sg-realtime-status",
18490
+ "displayName": "useSgRealtimeStatus",
18491
+ "category": "hook",
18492
+ "subcategory": "realtime",
18493
+ "description": "Hook com o estado da conexao do SgRealtimeProvider com o Pulse. connected falso indica que a tela deve usar o polling de reserva.",
18494
+ "tags": [
18495
+ "hook",
18496
+ "realtime",
18497
+ "pulse",
18498
+ "status",
18499
+ "polling"
18500
+ ],
18501
+ "capabilities": [
18502
+ "connection-status",
18503
+ "fallback-signal"
18504
+ ],
18505
+ "fieldSemantics": [
18506
+ "connectionStatus",
18507
+ "connected"
18508
+ ],
18509
+ "props": [
18510
+ {
18511
+ "name": "returns.status",
18512
+ "type": "SgRealtimeStatus",
18513
+ "description": "idle, disabled, connecting, connected, reconnecting, unavailable ou auth-error.",
18514
+ "semanticRole": "data",
18515
+ "bindable": false
18516
+ },
18517
+ {
18518
+ "name": "returns.connected",
18519
+ "type": "boolean",
18520
+ "description": "true so com a conexao aberta e assinada.",
18521
+ "semanticRole": "data",
18522
+ "bindable": false
18523
+ }
18524
+ ],
18525
+ "states": [
18526
+ "disabled",
18527
+ "connected",
18528
+ "unavailable"
18529
+ ],
18530
+ "examples": [
18531
+ {
18532
+ "id": "uso-basico",
18533
+ "title": "Uso basico",
18534
+ "file": "apps/showcase/src/app/components/hooks/use-sg-realtime-status/samples/uso-basico.tsx.sample",
18535
+ "kind": "sample"
18536
+ }
18537
+ ],
18538
+ "showcase": {
18539
+ "route": "/components/hooks/use-sg-realtime-status",
18540
+ "hasPlayground": true,
18541
+ "hasPropsTable": true
18542
+ }
18543
+ },
18544
+ "aiHints": {
18545
+ "version": "0.1",
18546
+ "preferredUseCases": [
18547
+ "Decidir entre aviso em tempo real e polling de reserva numa tela."
18548
+ ],
18549
+ "avoidUseCases": [
18550
+ "Decidir permissao ou autenticacao: o status so diz da conexao com o Pulse."
18551
+ ],
18552
+ "synonyms": [
18553
+ "realtime status",
18554
+ "pulse status",
18555
+ "connection state"
18556
+ ],
18557
+ "relatedEntityFields": [
18558
+ "status"
18559
+ ],
18560
+ "compositionHints": [
18561
+ "Usar dentro de um SgRealtimeProvider; fora dele o status e disabled."
18562
+ ],
18563
+ "rankingSignals": {
18564
+ "freeText": 0,
18565
+ "structuredChoice": 0,
18566
+ "date": 0,
18567
+ "number": 0,
18568
+ "denseLayout": 0
18569
+ }
18570
+ }
18571
+ },
18400
18572
  {
18401
18573
  "componentId": "gadget.clock-theme-picker",
18402
18574
  "exportName": "SgClockThemePicker",
@@ -20495,15 +20667,6 @@
20495
20667
  "semanticRole": "value",
20496
20668
  "bindable": true
20497
20669
  },
20498
- {
20499
- "name": "fontSize",
20500
- "type": "number",
20501
- "required": false,
20502
- "default": 72,
20503
- "description": "Escala visual do display.",
20504
- "semanticRole": "appearance",
20505
- "bindable": true
20506
- },
20507
20670
  {
20508
20671
  "name": "color",
20509
20672
  "type": "string",
@@ -20892,22 +21055,6 @@
20892
21055
  "semanticRole": "appearance",
20893
21056
  "bindable": true
20894
21057
  },
20895
- {
20896
- "name": "color",
20897
- "type": "string",
20898
- "required": false,
20899
- "description": "Cor principal do digito.",
20900
- "semanticRole": "appearance",
20901
- "bindable": true
20902
- },
20903
- {
20904
- "name": "backgroundColor",
20905
- "type": "string",
20906
- "required": false,
20907
- "description": "Cor do fundo do display.",
20908
- "semanticRole": "appearance",
20909
- "bindable": true
20910
- },
20911
21058
  {
20912
21059
  "name": "className",
20913
21060
  "type": "string",
@@ -21038,15 +21185,6 @@
21038
21185
  "semanticRole": "value",
21039
21186
  "bindable": true
21040
21187
  },
21041
- {
21042
- "name": "fontSize",
21043
- "type": "number",
21044
- "required": false,
21045
- "default": 72,
21046
- "description": "Escala visual do digito.",
21047
- "semanticRole": "appearance",
21048
- "bindable": true
21049
- },
21050
21188
  {
21051
21189
  "name": "color",
21052
21190
  "type": "string",
@@ -21055,14 +21193,6 @@
21055
21193
  "semanticRole": "appearance",
21056
21194
  "bindable": true
21057
21195
  },
21058
- {
21059
- "name": "backgroundColor",
21060
- "type": "string",
21061
- "required": false,
21062
- "description": "Cor de fundo do display.",
21063
- "semanticRole": "appearance",
21064
- "bindable": true
21065
- },
21066
21196
  {
21067
21197
  "name": "className",
21068
21198
  "type": "string",
@@ -21186,15 +21316,6 @@
21186
21316
  "semanticRole": "value",
21187
21317
  "bindable": true
21188
21318
  },
21189
- {
21190
- "name": "fontSize",
21191
- "type": "number",
21192
- "required": false,
21193
- "default": 72,
21194
- "description": "Escala visual do digito.",
21195
- "semanticRole": "appearance",
21196
- "bindable": true
21197
- },
21198
21319
  {
21199
21320
  "name": "color",
21200
21321
  "type": "string",