@seedgrid/fe-components 2026.11.2 → 2026.11.3
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/ai/seedgrid-components.manifest.json +323 -65
- package/dist/buttons/SgButton.d.ts +6 -2
- package/dist/buttons/SgButton.d.ts.map +1 -1
- package/dist/buttons/SgButton.js +2 -2
- package/dist/buttons/SgButton.meta.js +3 -3
- package/dist/buttons/SgFloatActionButton.d.ts +2 -2
- package/dist/buttons/SgFloatActionButton.d.ts.map +1 -1
- package/dist/buttons/SgFloatActionButton.js +7 -7
- package/dist/buttons/SgFloatActionButton.meta.js +2 -2
- package/dist/buttons/SgSplitButton.d.ts +2 -2
- package/dist/buttons/SgSplitButton.d.ts.map +1 -1
- package/dist/buttons/SgSplitButton.js +4 -4
- package/dist/buttons/SgSplitButton.meta.js +3 -3
- package/dist/commons/SgAvatar.d.ts +2 -2
- package/dist/commons/SgAvatar.d.ts.map +1 -1
- package/dist/commons/SgAvatar.js +3 -3
- package/dist/commons/SgBadge.d.ts +1 -1
- package/dist/commons/SgBadge.d.ts.map +1 -1
- package/dist/commons/SgBadge.js +3 -3
- package/dist/generated/compiledStyles.d.ts +1 -1
- package/dist/generated/compiledStyles.d.ts.map +1 -1
- package/dist/generated/compiledStyles.js +1 -1
- package/dist/i18n/en-US.d.ts.map +1 -1
- package/dist/i18n/en-US.js +26 -0
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +26 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +26 -0
- package/dist/i18n/pt-BR.d.ts.map +1 -1
- package/dist/i18n/pt-BR.js +26 -0
- package/dist/i18n/pt-PT.d.ts.map +1 -1
- package/dist/i18n/pt-PT.js +26 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/inputs/SgAutocomplete.d.ts +1 -1
- package/dist/inputs/SgAutocomplete.d.ts.map +1 -1
- package/dist/inputs/SgAutocomplete.js +3 -3
- package/dist/inputs/SgCameraCapture.d.ts +1 -1
- package/dist/inputs/SgCameraCapture.d.ts.map +1 -1
- package/dist/inputs/SgCameraCapture.js +4 -4
- package/dist/inputs/SgCameraCapture.meta.js +1 -1
- package/dist/inputs/SgCheckboxGroup.d.ts +2 -2
- package/dist/inputs/SgCheckboxGroup.d.ts.map +1 -1
- package/dist/inputs/SgCheckboxGroup.js +12 -12
- package/dist/inputs/SgCombobox.js +5 -5
- package/dist/inputs/SgDatatable.js +11 -11
- package/dist/inputs/SgDatatable.meta.d.ts.map +1 -1
- package/dist/inputs/SgDatatable.meta.js +4 -1
- package/dist/inputs/SgFileUpload.d.ts +1 -1
- package/dist/inputs/SgFileUpload.d.ts.map +1 -1
- package/dist/inputs/SgFileUpload.js +2 -2
- package/dist/inputs/SgFileUpload.meta.js +1 -1
- package/dist/inputs/SgImageUpload.meta.js +1 -1
- package/dist/inputs/SgInputCurrency.d.ts.map +1 -1
- package/dist/inputs/SgInputCurrency.js +6 -4
- package/dist/inputs/SgInputDate.d.ts.map +1 -1
- package/dist/inputs/SgInputDate.js +3 -4
- package/dist/inputs/SgInputDateTime.d.ts.map +1 -1
- package/dist/inputs/SgInputDateTime.js +11 -0
- package/dist/inputs/SgInputNumber.d.ts.map +1 -1
- package/dist/inputs/SgInputNumber.js +6 -4
- package/dist/inputs/SgInputText.d.ts.map +1 -1
- package/dist/inputs/SgInputText.js +6 -4
- package/dist/inputs/SgInputTextArea.d.ts.map +1 -1
- package/dist/inputs/SgInputTextArea.js +4 -2
- package/dist/inputs/SgMultiSelect.meta.js +1 -1
- package/dist/inputs/SgMultiSelectChips.meta.js +1 -1
- package/dist/inputs/SgMultiSelectDropdown.js +1 -1
- package/dist/inputs/SgOrderList.d.ts +3 -3
- package/dist/inputs/SgOrderList.d.ts.map +1 -1
- package/dist/inputs/SgOrderList.js +13 -13
- package/dist/inputs/SgOrderList.meta.js +1 -1
- package/dist/inputs/SgPeriodSelector.d.ts +1 -1
- package/dist/inputs/SgPeriodSelector.d.ts.map +1 -1
- package/dist/inputs/SgPeriodSelector.js +3 -3
- package/dist/inputs/SgPickList.d.ts +3 -3
- package/dist/inputs/SgPickList.d.ts.map +1 -1
- package/dist/inputs/SgPickList.js +28 -28
- package/dist/inputs/SgPickList.meta.js +1 -1
- package/dist/inputs/SgRadioGroup.d.ts +2 -2
- package/dist/inputs/SgRadioGroup.d.ts.map +1 -1
- package/dist/inputs/SgRadioGroup.js +5 -5
- package/dist/inputs/SgRating.d.ts +1 -1
- package/dist/inputs/SgRating.d.ts.map +1 -1
- package/dist/inputs/SgRating.js +7 -7
- package/dist/inputs/SgRating.meta.js +1 -1
- package/dist/inputs/SgSlider.d.ts +1 -1
- package/dist/inputs/SgSlider.d.ts.map +1 -1
- package/dist/inputs/SgSlider.js +3 -3
- package/dist/inputs/SgSlider.meta.js +1 -1
- package/dist/inputs/SgStepperInput.d.ts +2 -2
- package/dist/inputs/SgStepperInput.d.ts.map +1 -1
- package/dist/inputs/SgStepperInput.js +4 -4
- package/dist/inputs/SgStepperInput.meta.js +1 -1
- package/dist/inputs/SgTextEditor.d.ts +1 -1
- package/dist/inputs/SgTextEditor.d.ts.map +1 -1
- package/dist/inputs/SgTextEditor.js +14 -14
- package/dist/inputs/SgToggleSwitch.meta.js +1 -1
- package/dist/inputs/SgYearPartSelector.d.ts +1 -1
- package/dist/inputs/SgYearPartSelector.d.ts.map +1 -1
- package/dist/inputs/SgYearPartSelector.js +1 -2
- package/dist/inputs/SgYearPartSelector.meta.js +2 -2
- package/dist/inputs/dateTimeLogic.d.ts +7 -1
- package/dist/inputs/dateTimeLogic.d.ts.map +1 -1
- package/dist/inputs/dateTimeLogic.js +17 -4
- package/dist/inputs/useSgMultiSelect.d.ts +1 -1
- package/dist/inputs/useSgMultiSelect.d.ts.map +1 -1
- package/dist/inputs/useSgMultiSelect.js +1 -1
- package/dist/layout/SgAccordion.d.ts +1 -1
- package/dist/layout/SgAccordion.d.ts.map +1 -1
- package/dist/layout/SgAccordion.js +3 -3
- package/dist/layout/SgBreadcrumb.d.ts +1 -1
- package/dist/layout/SgBreadcrumb.d.ts.map +1 -1
- package/dist/layout/SgBreadcrumb.js +1 -1
- package/dist/layout/SgCard.d.ts +1 -1
- package/dist/layout/SgCard.d.ts.map +1 -1
- package/dist/layout/SgCard.js +14 -14
- package/dist/layout/SgMenu.d.ts +1 -1
- package/dist/layout/SgMenu.d.ts.map +1 -1
- package/dist/layout/SgMenu.js +15 -15
- package/dist/layout/SgPageControl.d.ts +1 -1
- package/dist/layout/SgPageControl.d.ts.map +1 -1
- package/dist/layout/SgPageControl.js +4 -4
- package/dist/layout/SgPageControlPage.meta.js +2 -2
- package/dist/layout/SgToolBar.d.ts +1 -1
- package/dist/layout/SgToolBar.d.ts.map +1 -1
- package/dist/layout/SgToolBar.js +4 -4
- package/dist/layout/SgToolbarIconButton.meta.js +2 -2
- package/dist/layout/SgTreeView.d.ts +4 -4
- package/dist/layout/SgTreeView.d.ts.map +1 -1
- package/dist/layout/SgTreeView.js +6 -6
- package/dist/menus/SgDockMenu.d.ts +1 -1
- package/dist/menus/SgDockMenu.d.ts.map +1 -1
- package/dist/menus/SgDockMenu.js +4 -4
- package/dist/notifications/SgNotificationBell.d.ts +51 -0
- package/dist/notifications/SgNotificationBell.d.ts.map +1 -0
- package/dist/notifications/SgNotificationBell.js +348 -0
- package/dist/notifications/SgNotificationBell.meta.d.ts +4 -0
- package/dist/notifications/SgNotificationBell.meta.d.ts.map +1 -0
- package/dist/notifications/SgNotificationBell.meta.js +75 -0
- package/dist/notifications/notificationBellLogic.d.ts +148 -0
- package/dist/notifications/notificationBellLogic.d.ts.map +1 -0
- package/dist/notifications/notificationBellLogic.js +244 -0
- package/dist/overlay/SgConfirmationDialog.d.ts +1 -1
- package/dist/overlay/SgConfirmationDialog.d.ts.map +1 -1
- package/dist/overlay/SgConfirmationDialog.js +1 -1
- package/dist/overlay/SgPopup.d.ts +1 -1
- package/dist/overlay/SgPopup.d.ts.map +1 -1
- package/dist/overlay/SgPopup.js +1 -1
- package/dist/realtime/SgRealtimeProvider.d.ts +5 -0
- package/dist/realtime/SgRealtimeProvider.d.ts.map +1 -1
- package/dist/realtime/SgRealtimeProvider.js +31 -8
- package/dist/sandbox.cjs +62 -62
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -914,7 +914,7 @@
|
|
|
914
914
|
"required": false
|
|
915
915
|
},
|
|
916
916
|
{
|
|
917
|
-
"name": "
|
|
917
|
+
"name": "enabled",
|
|
918
918
|
"type": "boolean",
|
|
919
919
|
"required": false
|
|
920
920
|
},
|
|
@@ -1796,7 +1796,7 @@
|
|
|
1796
1796
|
},
|
|
1797
1797
|
{
|
|
1798
1798
|
"name": "options",
|
|
1799
|
-
"type": "{ label: string; value: string | number; chipLabel?: string;
|
|
1799
|
+
"type": "{ label: string; value: string | number; chipLabel?: string; enabled?: boolean }[]",
|
|
1800
1800
|
"required": true,
|
|
1801
1801
|
"description": "Lista de opcoes disponiveis. `label` aparece na lista; `chipLabel` (opcional) e' o texto curto do item ja' selecionado (o resumo do campo), ex.: label \"3 - Filial Centro\" e chipLabel \"3\".",
|
|
1802
1802
|
"semanticRole": "data",
|
|
@@ -2132,7 +2132,7 @@
|
|
|
2132
2132
|
},
|
|
2133
2133
|
{
|
|
2134
2134
|
"name": "options",
|
|
2135
|
-
"type": "{ label: string; value: string | number; chipLabel?: string;
|
|
2135
|
+
"type": "{ label: string; value: string | number; chipLabel?: string; enabled?: boolean }[]",
|
|
2136
2136
|
"required": true,
|
|
2137
2137
|
"description": "Lista de opcoes disponiveis. `label` aparece na lista; `chipLabel` (opcional) e' o texto curto do item ja' selecionado (o chip), ex.: label \"3 - Filial Centro\" e chipLabel \"3\".",
|
|
2138
2138
|
"semanticRole": "data",
|
|
@@ -3085,10 +3085,37 @@
|
|
|
3085
3085
|
"name": "columns",
|
|
3086
3086
|
"type": "SgDatatableColumn[]",
|
|
3087
3087
|
"required": true,
|
|
3088
|
-
"description": "Definicao das colunas da tabela.",
|
|
3088
|
+
"description": "Definicao das colunas da tabela. column.filterPlaceholder vence o dicionario (components.datatable.columnFilterPlaceholder).",
|
|
3089
3089
|
"semanticRole": "data",
|
|
3090
3090
|
"bindable": true
|
|
3091
3091
|
},
|
|
3092
|
+
{
|
|
3093
|
+
"name": "emptyMessage",
|
|
3094
|
+
"type": "string",
|
|
3095
|
+
"required": false,
|
|
3096
|
+
"default": "(dicionario)",
|
|
3097
|
+
"description": "Mensagem exibida quando nao ha registros. Vence o dicionario (components.datatable.empty).",
|
|
3098
|
+
"semanticRole": "appearance",
|
|
3099
|
+
"bindable": true
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
"name": "globalFilterPlaceholder",
|
|
3103
|
+
"type": "string",
|
|
3104
|
+
"required": false,
|
|
3105
|
+
"default": "(dicionario)",
|
|
3106
|
+
"description": "Placeholder da busca global. Vence o dicionario (components.datatable.globalFilterPlaceholder).",
|
|
3107
|
+
"semanticRole": "appearance",
|
|
3108
|
+
"bindable": true
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"name": "columnManagerLabel",
|
|
3112
|
+
"type": "string",
|
|
3113
|
+
"required": false,
|
|
3114
|
+
"default": "(dicionario)",
|
|
3115
|
+
"description": "Titulo do painel de colunas. Vence o dicionario (components.datatable.columns).",
|
|
3116
|
+
"semanticRole": "appearance",
|
|
3117
|
+
"bindable": true
|
|
3118
|
+
},
|
|
3092
3119
|
{
|
|
3093
3120
|
"name": "rows",
|
|
3094
3121
|
"type": "number",
|
|
@@ -3165,11 +3192,6 @@
|
|
|
3165
3192
|
"semanticRole": "event",
|
|
3166
3193
|
"bindable": false
|
|
3167
3194
|
},
|
|
3168
|
-
{
|
|
3169
|
-
"name": "columnManagerLabel",
|
|
3170
|
-
"type": "string",
|
|
3171
|
-
"required": false
|
|
3172
|
-
},
|
|
3173
3195
|
{
|
|
3174
3196
|
"name": "columnManagerMaxHeight",
|
|
3175
3197
|
"type": "string | number",
|
|
@@ -3180,11 +3202,6 @@
|
|
|
3180
3202
|
"type": "string",
|
|
3181
3203
|
"required": false
|
|
3182
3204
|
},
|
|
3183
|
-
{
|
|
3184
|
-
"name": "emptyMessage",
|
|
3185
|
-
"type": "string",
|
|
3186
|
-
"required": false
|
|
3187
|
-
},
|
|
3188
3205
|
{
|
|
3189
3206
|
"name": "filters",
|
|
3190
3207
|
"type": "Record<string, string>",
|
|
@@ -3200,11 +3217,6 @@
|
|
|
3200
3217
|
"type": "string",
|
|
3201
3218
|
"required": false
|
|
3202
3219
|
},
|
|
3203
|
-
{
|
|
3204
|
-
"name": "globalFilterPlaceholder",
|
|
3205
|
-
"type": "string",
|
|
3206
|
-
"required": false
|
|
3207
|
-
},
|
|
3208
3220
|
{
|
|
3209
3221
|
"name": "groupBoxProps",
|
|
3210
3222
|
"type": "(Omit<Partial<SgGroupBoxProps>, \"title\" | \"children\"> & { title?: string; })",
|
|
@@ -5528,10 +5540,10 @@
|
|
|
5528
5540
|
"bindable": true
|
|
5529
5541
|
},
|
|
5530
5542
|
{
|
|
5531
|
-
"name": "
|
|
5543
|
+
"name": "enabled",
|
|
5532
5544
|
"type": "boolean",
|
|
5533
5545
|
"required": false,
|
|
5534
|
-
"default":
|
|
5546
|
+
"default": true,
|
|
5535
5547
|
"description": "Desabilita a escolha e a remocao.",
|
|
5536
5548
|
"semanticRole": "appearance",
|
|
5537
5549
|
"bindable": true
|
|
@@ -5854,10 +5866,10 @@
|
|
|
5854
5866
|
"bindable": true
|
|
5855
5867
|
},
|
|
5856
5868
|
{
|
|
5857
|
-
"name": "
|
|
5869
|
+
"name": "enabled",
|
|
5858
5870
|
"type": "boolean",
|
|
5859
5871
|
"required": false,
|
|
5860
|
-
"default":
|
|
5872
|
+
"default": true,
|
|
5861
5873
|
"description": "Desabilita a escolha e a remocao.",
|
|
5862
5874
|
"semanticRole": "appearance",
|
|
5863
5875
|
"bindable": true
|
|
@@ -6109,10 +6121,10 @@
|
|
|
6109
6121
|
"bindable": true
|
|
6110
6122
|
},
|
|
6111
6123
|
{
|
|
6112
|
-
"name": "
|
|
6124
|
+
"name": "enabled",
|
|
6113
6125
|
"type": "boolean",
|
|
6114
6126
|
"required": false,
|
|
6115
|
-
"default":
|
|
6127
|
+
"default": true,
|
|
6116
6128
|
"description": "Nao abre a camera nem permite capturar.",
|
|
6117
6129
|
"semanticRole": "appearance",
|
|
6118
6130
|
"bindable": true
|
|
@@ -8042,10 +8054,10 @@
|
|
|
8042
8054
|
"bindable": true
|
|
8043
8055
|
},
|
|
8044
8056
|
{
|
|
8045
|
-
"name": "
|
|
8057
|
+
"name": "enabled",
|
|
8046
8058
|
"type": "boolean",
|
|
8047
8059
|
"required": false,
|
|
8048
|
-
"default":
|
|
8060
|
+
"default": true,
|
|
8049
8061
|
"description": "Desabilita interacao.",
|
|
8050
8062
|
"semanticRole": "behavior",
|
|
8051
8063
|
"bindable": true
|
|
@@ -8090,7 +8102,7 @@
|
|
|
8090
8102
|
},
|
|
8091
8103
|
{
|
|
8092
8104
|
"name": "itemTemplate",
|
|
8093
|
-
"type": "((item: SgOrderListItem, state: { index: number; selected: boolean;
|
|
8105
|
+
"type": "((item: SgOrderListItem, state: { index: number; selected: boolean; enabled: boolean; }) => ReactNode)",
|
|
8094
8106
|
"required": false
|
|
8095
8107
|
},
|
|
8096
8108
|
{
|
|
@@ -8314,7 +8326,7 @@
|
|
|
8314
8326
|
"bindable": true
|
|
8315
8327
|
},
|
|
8316
8328
|
{
|
|
8317
|
-
"name": "
|
|
8329
|
+
"name": "enabled",
|
|
8318
8330
|
"type": "boolean",
|
|
8319
8331
|
"required": false
|
|
8320
8332
|
},
|
|
@@ -8521,10 +8533,10 @@
|
|
|
8521
8533
|
"bindable": true
|
|
8522
8534
|
},
|
|
8523
8535
|
{
|
|
8524
|
-
"name": "
|
|
8536
|
+
"name": "enabled",
|
|
8525
8537
|
"type": "boolean",
|
|
8526
8538
|
"required": false,
|
|
8527
|
-
"default":
|
|
8539
|
+
"default": true,
|
|
8528
8540
|
"description": "Desabilita os tres combos (ano, recorte e fatia).",
|
|
8529
8541
|
"semanticRole": "behavior",
|
|
8530
8542
|
"bindable": true
|
|
@@ -8570,7 +8582,7 @@
|
|
|
8570
8582
|
"BIMESTER"
|
|
8571
8583
|
],
|
|
8572
8584
|
"locale": "pt-BR",
|
|
8573
|
-
"
|
|
8585
|
+
"enabled": true,
|
|
8574
8586
|
"required": false
|
|
8575
8587
|
}
|
|
8576
8588
|
}
|
|
@@ -8687,10 +8699,10 @@
|
|
|
8687
8699
|
"bindable": true
|
|
8688
8700
|
},
|
|
8689
8701
|
{
|
|
8690
|
-
"name": "
|
|
8702
|
+
"name": "enabled",
|
|
8691
8703
|
"type": "boolean",
|
|
8692
8704
|
"required": false,
|
|
8693
|
-
"default":
|
|
8705
|
+
"default": true,
|
|
8694
8706
|
"description": "Desabilita interacao.",
|
|
8695
8707
|
"semanticRole": "behavior",
|
|
8696
8708
|
"bindable": true
|
|
@@ -8735,7 +8747,7 @@
|
|
|
8735
8747
|
},
|
|
8736
8748
|
{
|
|
8737
8749
|
"name": "itemTemplate",
|
|
8738
|
-
"type": "((item: SgPickListItem, state: { index: number; selected: boolean;
|
|
8750
|
+
"type": "((item: SgPickListItem, state: { index: number; selected: boolean; enabled: boolean; list: SgPickListListName; }) => ReactNode)",
|
|
8739
8751
|
"required": false
|
|
8740
8752
|
},
|
|
8741
8753
|
{
|
|
@@ -8992,7 +9004,7 @@
|
|
|
8992
9004
|
"bindable": false
|
|
8993
9005
|
},
|
|
8994
9006
|
{
|
|
8995
|
-
"name": "
|
|
9007
|
+
"name": "enabled",
|
|
8996
9008
|
"type": "boolean",
|
|
8997
9009
|
"required": false
|
|
8998
9010
|
},
|
|
@@ -9152,10 +9164,10 @@
|
|
|
9152
9164
|
"bindable": true
|
|
9153
9165
|
},
|
|
9154
9166
|
{
|
|
9155
|
-
"name": "
|
|
9167
|
+
"name": "enabled",
|
|
9156
9168
|
"type": "boolean",
|
|
9157
9169
|
"required": false,
|
|
9158
|
-
"default":
|
|
9170
|
+
"default": true,
|
|
9159
9171
|
"description": "Desabilita interacao.",
|
|
9160
9172
|
"semanticRole": "behavior",
|
|
9161
9173
|
"bindable": true
|
|
@@ -9392,10 +9404,10 @@
|
|
|
9392
9404
|
"bindable": true
|
|
9393
9405
|
},
|
|
9394
9406
|
{
|
|
9395
|
-
"name": "
|
|
9407
|
+
"name": "enabled",
|
|
9396
9408
|
"type": "boolean",
|
|
9397
9409
|
"required": false,
|
|
9398
|
-
"default":
|
|
9410
|
+
"default": true,
|
|
9399
9411
|
"description": "Desabilita interacao.",
|
|
9400
9412
|
"semanticRole": "behavior",
|
|
9401
9413
|
"bindable": true
|
|
@@ -9580,10 +9592,10 @@
|
|
|
9580
9592
|
"bindable": true
|
|
9581
9593
|
},
|
|
9582
9594
|
{
|
|
9583
|
-
"name": "
|
|
9595
|
+
"name": "enabled",
|
|
9584
9596
|
"type": "boolean",
|
|
9585
9597
|
"required": false,
|
|
9586
|
-
"default":
|
|
9598
|
+
"default": true,
|
|
9587
9599
|
"description": "Desabilita interacao.",
|
|
9588
9600
|
"semanticRole": "behavior",
|
|
9589
9601
|
"bindable": true
|
|
@@ -9768,7 +9780,7 @@
|
|
|
9768
9780
|
"required": false
|
|
9769
9781
|
},
|
|
9770
9782
|
{
|
|
9771
|
-
"name": "
|
|
9783
|
+
"name": "enabled",
|
|
9772
9784
|
"type": "boolean",
|
|
9773
9785
|
"required": false
|
|
9774
9786
|
},
|
|
@@ -10355,7 +10367,7 @@
|
|
|
10355
10367
|
"acceptsDataBinding": true,
|
|
10356
10368
|
"defaultProps": {
|
|
10357
10369
|
"checked": false,
|
|
10358
|
-
"
|
|
10370
|
+
"enabled": true
|
|
10359
10371
|
}
|
|
10360
10372
|
}
|
|
10361
10373
|
},
|
|
@@ -10477,11 +10489,11 @@
|
|
|
10477
10489
|
"bindable": true
|
|
10478
10490
|
},
|
|
10479
10491
|
{
|
|
10480
|
-
"name": "
|
|
10492
|
+
"name": "enabled",
|
|
10481
10493
|
"type": "boolean",
|
|
10482
10494
|
"required": false,
|
|
10483
|
-
"default":
|
|
10484
|
-
"description": "
|
|
10495
|
+
"default": true,
|
|
10496
|
+
"description": "Quando false, desabilita a interacao do botao.",
|
|
10485
10497
|
"semanticRole": "behavior",
|
|
10486
10498
|
"bindable": true
|
|
10487
10499
|
},
|
|
@@ -10680,10 +10692,10 @@
|
|
|
10680
10692
|
"bindable": true
|
|
10681
10693
|
},
|
|
10682
10694
|
{
|
|
10683
|
-
"name": "
|
|
10695
|
+
"name": "enabled",
|
|
10684
10696
|
"type": "boolean",
|
|
10685
10697
|
"required": false,
|
|
10686
|
-
"default":
|
|
10698
|
+
"default": true,
|
|
10687
10699
|
"description": "Desabilita a acao principal e as acoes derivadas.",
|
|
10688
10700
|
"semanticRole": "behavior",
|
|
10689
10701
|
"bindable": true
|
|
@@ -10954,10 +10966,10 @@
|
|
|
10954
10966
|
"bindable": true
|
|
10955
10967
|
},
|
|
10956
10968
|
{
|
|
10957
|
-
"name": "
|
|
10969
|
+
"name": "enabled",
|
|
10958
10970
|
"type": "boolean",
|
|
10959
10971
|
"required": false,
|
|
10960
|
-
"default":
|
|
10972
|
+
"default": true,
|
|
10961
10973
|
"description": "Desabilita a acao principal e o menu secundario.",
|
|
10962
10974
|
"semanticRole": "behavior",
|
|
10963
10975
|
"bindable": true
|
|
@@ -11034,7 +11046,7 @@
|
|
|
11034
11046
|
"defaultProps": {
|
|
11035
11047
|
"severity": "primary",
|
|
11036
11048
|
"appearance": "solid",
|
|
11037
|
-
"
|
|
11049
|
+
"enabled": true
|
|
11038
11050
|
}
|
|
11039
11051
|
}
|
|
11040
11052
|
},
|
|
@@ -11184,7 +11196,7 @@
|
|
|
11184
11196
|
"required": false
|
|
11185
11197
|
},
|
|
11186
11198
|
{
|
|
11187
|
-
"name": "
|
|
11199
|
+
"name": "enabled",
|
|
11188
11200
|
"type": "boolean",
|
|
11189
11201
|
"required": false
|
|
11190
11202
|
},
|
|
@@ -11561,7 +11573,7 @@
|
|
|
11561
11573
|
"required": false
|
|
11562
11574
|
},
|
|
11563
11575
|
{
|
|
11564
|
-
"name": "
|
|
11576
|
+
"name": "enabled",
|
|
11565
11577
|
"type": "boolean",
|
|
11566
11578
|
"required": false
|
|
11567
11579
|
},
|
|
@@ -14783,11 +14795,6 @@
|
|
|
14783
14795
|
"type": "SgCardPosition",
|
|
14784
14796
|
"required": false
|
|
14785
14797
|
},
|
|
14786
|
-
{
|
|
14787
|
-
"name": "disabled",
|
|
14788
|
-
"type": "boolean",
|
|
14789
|
-
"required": false
|
|
14790
|
-
},
|
|
14791
14798
|
{
|
|
14792
14799
|
"name": "draggable",
|
|
14793
14800
|
"type": "boolean",
|
|
@@ -14798,6 +14805,11 @@
|
|
|
14798
14805
|
"type": "string",
|
|
14799
14806
|
"required": false
|
|
14800
14807
|
},
|
|
14808
|
+
{
|
|
14809
|
+
"name": "enabled",
|
|
14810
|
+
"type": "boolean",
|
|
14811
|
+
"required": false
|
|
14812
|
+
},
|
|
14801
14813
|
{
|
|
14802
14814
|
"name": "footer",
|
|
14803
14815
|
"type": "ReactNode",
|
|
@@ -16893,10 +16905,10 @@
|
|
|
16893
16905
|
"bindable": true
|
|
16894
16906
|
},
|
|
16895
16907
|
{
|
|
16896
|
-
"name": "
|
|
16908
|
+
"name": "enabled",
|
|
16897
16909
|
"type": "boolean",
|
|
16898
16910
|
"required": false,
|
|
16899
|
-
"default":
|
|
16911
|
+
"default": true,
|
|
16900
16912
|
"description": "Desabilita a selecao da pagina.",
|
|
16901
16913
|
"semanticRole": "behavior",
|
|
16902
16914
|
"bindable": true
|
|
@@ -16944,7 +16956,7 @@
|
|
|
16944
16956
|
"acceptsDataBinding": true,
|
|
16945
16957
|
"defaultProps": {
|
|
16946
16958
|
"hidden": false,
|
|
16947
|
-
"
|
|
16959
|
+
"enabled": true
|
|
16948
16960
|
}
|
|
16949
16961
|
}
|
|
16950
16962
|
},
|
|
@@ -17639,10 +17651,10 @@
|
|
|
17639
17651
|
"bindable": true
|
|
17640
17652
|
},
|
|
17641
17653
|
{
|
|
17642
|
-
"name": "
|
|
17654
|
+
"name": "enabled",
|
|
17643
17655
|
"type": "boolean",
|
|
17644
17656
|
"required": false,
|
|
17645
|
-
"default":
|
|
17657
|
+
"default": true,
|
|
17646
17658
|
"description": "Desabilita interacao.",
|
|
17647
17659
|
"semanticRole": "behavior",
|
|
17648
17660
|
"bindable": true
|
|
@@ -17680,7 +17692,7 @@
|
|
|
17680
17692
|
"defaultProps": {
|
|
17681
17693
|
"showLabel": false,
|
|
17682
17694
|
"severity": "plain",
|
|
17683
|
-
"
|
|
17695
|
+
"enabled": true
|
|
17684
17696
|
}
|
|
17685
17697
|
}
|
|
17686
17698
|
},
|
|
@@ -19640,6 +19652,252 @@
|
|
|
19640
19652
|
}
|
|
19641
19653
|
}
|
|
19642
19654
|
},
|
|
19655
|
+
{
|
|
19656
|
+
"componentId": "feedback.notification-bell",
|
|
19657
|
+
"exportName": "SgNotificationBell",
|
|
19658
|
+
"sgMeta": {
|
|
19659
|
+
"version": "0.1",
|
|
19660
|
+
"componentId": "feedback.notification-bell",
|
|
19661
|
+
"package": "@seedgrid/fe-components",
|
|
19662
|
+
"exportName": "SgNotificationBell",
|
|
19663
|
+
"slug": "sg-notification-bell",
|
|
19664
|
+
"displayName": "SgNotificationBell",
|
|
19665
|
+
"category": "feedback",
|
|
19666
|
+
"subcategory": "notification",
|
|
19667
|
+
"description": "Sino de notificacoes do usuario logado: contador de nao lidas, lista de ate 100 notificacoes com titulo, texto, data e estado lida/nao lida, marcar como lida, excluir, marcar todas e limpar. Autonomo: conecta-se sozinho ao Pulse (token vindo do backend, sem apikey no front) e reaproveita o SgRealtimeProvider se houver; com o Pulse desligado faz polling de reserva. Sem regra de negocio: cada tipo de notificacao tem icone e acao ao abrir.",
|
|
19668
|
+
"tags": [
|
|
19669
|
+
"notification",
|
|
19670
|
+
"bell",
|
|
19671
|
+
"inbox",
|
|
19672
|
+
"alert",
|
|
19673
|
+
"realtime",
|
|
19674
|
+
"pulse",
|
|
19675
|
+
"badge",
|
|
19676
|
+
"feedback"
|
|
19677
|
+
],
|
|
19678
|
+
"capabilities": [
|
|
19679
|
+
"realtime",
|
|
19680
|
+
"polling-fallback",
|
|
19681
|
+
"unread-count",
|
|
19682
|
+
"mark-as-read",
|
|
19683
|
+
"delete",
|
|
19684
|
+
"reduced-motion",
|
|
19685
|
+
"aria-live"
|
|
19686
|
+
],
|
|
19687
|
+
"fieldSemantics": [
|
|
19688
|
+
"notification",
|
|
19689
|
+
"inbox",
|
|
19690
|
+
"userNotice"
|
|
19691
|
+
],
|
|
19692
|
+
"props": [
|
|
19693
|
+
{
|
|
19694
|
+
"name": "apiUrl",
|
|
19695
|
+
"type": "string",
|
|
19696
|
+
"required": false,
|
|
19697
|
+
"default": "/api/user-notifications",
|
|
19698
|
+
"description": "Base das rotas da extension user-notifications (BFF, mesma origem).",
|
|
19699
|
+
"semanticRole": "data",
|
|
19700
|
+
"bindable": true
|
|
19701
|
+
},
|
|
19702
|
+
{
|
|
19703
|
+
"name": "tokenEndpoint",
|
|
19704
|
+
"type": "string",
|
|
19705
|
+
"required": false,
|
|
19706
|
+
"default": "/api/realtime/connect",
|
|
19707
|
+
"description": "Rota que entrega o token do Pulse; usada quando nao ha SgRealtimeProvider acima.",
|
|
19708
|
+
"semanticRole": "behavior",
|
|
19709
|
+
"bindable": true
|
|
19710
|
+
},
|
|
19711
|
+
{
|
|
19712
|
+
"name": "requestInit",
|
|
19713
|
+
"type": "RequestInit",
|
|
19714
|
+
"required": false,
|
|
19715
|
+
"description": "Opcoes do fetch (ex.: headers com Authorization quando nao ha cookie).",
|
|
19716
|
+
"semanticRole": "behavior",
|
|
19717
|
+
"bindable": false
|
|
19718
|
+
},
|
|
19719
|
+
{
|
|
19720
|
+
"name": "fetcher",
|
|
19721
|
+
"type": "(input: string, init?: RequestInit) => Promise<Response>",
|
|
19722
|
+
"required": false,
|
|
19723
|
+
"description": "Substitui o fetch (apps sem BFF, testes, demonstracao).",
|
|
19724
|
+
"semanticRole": "behavior",
|
|
19725
|
+
"bindable": false
|
|
19726
|
+
},
|
|
19727
|
+
{
|
|
19728
|
+
"name": "types",
|
|
19729
|
+
"type": "Record<string, SgNotificationTypeConfig>",
|
|
19730
|
+
"required": false,
|
|
19731
|
+
"description": "Tipo da notificacao -> icone e acao ao abrir (onOpen). O sino nao conhece o negocio.",
|
|
19732
|
+
"semanticRole": "data",
|
|
19733
|
+
"bindable": true
|
|
19734
|
+
},
|
|
19735
|
+
{
|
|
19736
|
+
"name": "eventPattern",
|
|
19737
|
+
"type": "string",
|
|
19738
|
+
"required": false,
|
|
19739
|
+
"default": "user-notification.*",
|
|
19740
|
+
"description": "Evento do Pulse que dispara a leitura.",
|
|
19741
|
+
"semanticRole": "behavior",
|
|
19742
|
+
"bindable": true
|
|
19743
|
+
},
|
|
19744
|
+
{
|
|
19745
|
+
"name": "pollIntervalMs",
|
|
19746
|
+
"type": "number",
|
|
19747
|
+
"required": false,
|
|
19748
|
+
"default": 45000,
|
|
19749
|
+
"description": "Intervalo do polling de reserva (so com o Pulse desligado ou fora do ar), preso entre 30 e 60 s, com jitter e backoff em erro.",
|
|
19750
|
+
"semanticRole": "behavior",
|
|
19751
|
+
"bindable": true
|
|
19752
|
+
},
|
|
19753
|
+
{
|
|
19754
|
+
"name": "maxVisible",
|
|
19755
|
+
"type": "number",
|
|
19756
|
+
"required": false,
|
|
19757
|
+
"default": 100,
|
|
19758
|
+
"description": "Maximo de notificacoes na lista; as mais antigas saem.",
|
|
19759
|
+
"semanticRole": "behavior",
|
|
19760
|
+
"bindable": true
|
|
19761
|
+
},
|
|
19762
|
+
{
|
|
19763
|
+
"name": "placement",
|
|
19764
|
+
"type": "\"auto\" | \"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
19765
|
+
"required": false,
|
|
19766
|
+
"default": "auto",
|
|
19767
|
+
"description": "De que lado do sino o painel abre (como o placement do SgPopup); auto escolhe o lado em que cabe.",
|
|
19768
|
+
"semanticRole": "behavior",
|
|
19769
|
+
"bindable": true
|
|
19770
|
+
},
|
|
19771
|
+
{
|
|
19772
|
+
"name": "showUnreadToggle",
|
|
19773
|
+
"type": "boolean",
|
|
19774
|
+
"required": false,
|
|
19775
|
+
"default": "true",
|
|
19776
|
+
"description": "Mostra o interruptor Não lidas no topo do painel; false esconde só o interruptor (o sino fica) e o painel lista tudo.",
|
|
19777
|
+
"semanticRole": "behavior",
|
|
19778
|
+
"bindable": true
|
|
19779
|
+
},
|
|
19780
|
+
{
|
|
19781
|
+
"name": "defaultUnreadOnly",
|
|
19782
|
+
"type": "boolean",
|
|
19783
|
+
"required": false,
|
|
19784
|
+
"default": "true",
|
|
19785
|
+
"description": "O painel abre em Não lidas (ainda não clicadas); ignorada com showUnreadToggle=false e não persiste entre recargas.",
|
|
19786
|
+
"semanticRole": "behavior",
|
|
19787
|
+
"bindable": true
|
|
19788
|
+
},
|
|
19789
|
+
{
|
|
19790
|
+
"name": "onNotification",
|
|
19791
|
+
"type": "(notification: SgNotification) => void",
|
|
19792
|
+
"required": false,
|
|
19793
|
+
"description": "Chegou uma notificacao nova (aviso do Pulse).",
|
|
19794
|
+
"semanticRole": "event",
|
|
19795
|
+
"bindable": false
|
|
19796
|
+
},
|
|
19797
|
+
{
|
|
19798
|
+
"name": "onNotificationDelete",
|
|
19799
|
+
"type": "(notification: SgNotification) => void",
|
|
19800
|
+
"required": false,
|
|
19801
|
+
"description": "O usuario excluiu uma notificacao.",
|
|
19802
|
+
"semanticRole": "event",
|
|
19803
|
+
"bindable": false
|
|
19804
|
+
},
|
|
19805
|
+
{
|
|
19806
|
+
"name": "onOpen",
|
|
19807
|
+
"type": "(notification: SgNotification) => void",
|
|
19808
|
+
"required": false,
|
|
19809
|
+
"description": "O usuario abriu uma notificacao (depois do onOpen do tipo).",
|
|
19810
|
+
"semanticRole": "event",
|
|
19811
|
+
"bindable": false
|
|
19812
|
+
},
|
|
19813
|
+
{
|
|
19814
|
+
"name": "onPollingTick",
|
|
19815
|
+
"type": "(stats: SgPollingStats) => void",
|
|
19816
|
+
"required": false,
|
|
19817
|
+
"description": "O polling consultou a API: contador, instante da ultima consulta e motivo (disabled ou unavailable).",
|
|
19818
|
+
"semanticRole": "event",
|
|
19819
|
+
"bindable": false
|
|
19820
|
+
}
|
|
19821
|
+
],
|
|
19822
|
+
"states": [
|
|
19823
|
+
"loading",
|
|
19824
|
+
"empty",
|
|
19825
|
+
"list",
|
|
19826
|
+
"error"
|
|
19827
|
+
],
|
|
19828
|
+
"examples": [
|
|
19829
|
+
{
|
|
19830
|
+
"id": "basic",
|
|
19831
|
+
"title": "Basico",
|
|
19832
|
+
"file": "apps/showcase/src/app/components/sg-notification-bell/samples/basico.tsx.sample",
|
|
19833
|
+
"kind": "sample"
|
|
19834
|
+
},
|
|
19835
|
+
{
|
|
19836
|
+
"id": "types",
|
|
19837
|
+
"title": "Tipos com icone e acao",
|
|
19838
|
+
"file": "apps/showcase/src/app/components/sg-notification-bell/samples/tipos.tsx.sample",
|
|
19839
|
+
"kind": "sample"
|
|
19840
|
+
},
|
|
19841
|
+
{
|
|
19842
|
+
"id": "playground",
|
|
19843
|
+
"title": "Playground",
|
|
19844
|
+
"file": "apps/showcase/src/app/components/sg-notification-bell/sg-notification-bell.tsx.playground",
|
|
19845
|
+
"kind": "playground"
|
|
19846
|
+
}
|
|
19847
|
+
],
|
|
19848
|
+
"showcase": {
|
|
19849
|
+
"route": "/components/sg-notification-bell",
|
|
19850
|
+
"hasPlayground": true,
|
|
19851
|
+
"hasPropsTable": true
|
|
19852
|
+
},
|
|
19853
|
+
"sdui": {
|
|
19854
|
+
"rendererType": "feedback.notification-bell",
|
|
19855
|
+
"acceptsDataBinding": true,
|
|
19856
|
+
"defaultProps": {}
|
|
19857
|
+
}
|
|
19858
|
+
},
|
|
19859
|
+
"aiHints": {
|
|
19860
|
+
"version": "0.1",
|
|
19861
|
+
"preferredUseCases": [
|
|
19862
|
+
"Avisar o usuario logado de algo que terminou ou aconteceu (relatorio pronto, backup, importacao, convite) com historico e contador de nao lidas.",
|
|
19863
|
+
"Barra superior de um app com caixa de notificacoes que atualiza sozinha.",
|
|
19864
|
+
"Qualquer aviso persistente ao usuario que nao deve sumir sozinho."
|
|
19865
|
+
],
|
|
19866
|
+
"avoidUseCases": [
|
|
19867
|
+
"Mensagem rapida que some sozinha (toast): use o feedback de toast.",
|
|
19868
|
+
"Chat ou mensagens entre usuarios.",
|
|
19869
|
+
"Mostrar notificacoes sem a extension user-notifications no backend."
|
|
19870
|
+
],
|
|
19871
|
+
"synonyms": [
|
|
19872
|
+
"sino",
|
|
19873
|
+
"notificacoes",
|
|
19874
|
+
"notification bell",
|
|
19875
|
+
"inbox",
|
|
19876
|
+
"avisos do usuario",
|
|
19877
|
+
"caixa de notificacoes",
|
|
19878
|
+
"alerts"
|
|
19879
|
+
],
|
|
19880
|
+
"relatedEntityFields": [
|
|
19881
|
+
"notification",
|
|
19882
|
+
"alert",
|
|
19883
|
+
"unread",
|
|
19884
|
+
"report",
|
|
19885
|
+
"backup"
|
|
19886
|
+
],
|
|
19887
|
+
"compositionHints": [
|
|
19888
|
+
"Pôr no cabecalho do layout autenticado; sem SgRealtimeProvider acima ele abre a propria conexao.",
|
|
19889
|
+
"Use types para mapear cada tipo de notificacao a um icone e a acao de abrir (ex.: baixar o relatorio).",
|
|
19890
|
+
"O payload da notificacao so tem identificadores: a acao de abrir busca o arquivo ou registro pela API do dono."
|
|
19891
|
+
],
|
|
19892
|
+
"rankingSignals": {
|
|
19893
|
+
"freeText": 0,
|
|
19894
|
+
"structuredChoice": 0,
|
|
19895
|
+
"date": 0,
|
|
19896
|
+
"number": 0.2,
|
|
19897
|
+
"denseLayout": 0.2
|
|
19898
|
+
}
|
|
19899
|
+
}
|
|
19900
|
+
},
|
|
19643
19901
|
{
|
|
19644
19902
|
"componentId": "hook.realtime-event",
|
|
19645
19903
|
"exportName": "useSgRealtimeEvent",
|
|
@@ -14,7 +14,9 @@ export type SgButtonCustomColors = {
|
|
|
14
14
|
activeBg?: string;
|
|
15
15
|
ring?: string;
|
|
16
16
|
};
|
|
17
|
-
export type SgButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
17
|
+
export type SgButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "disabled"> & {
|
|
18
|
+
/** Quando false, desabilita o botão. Padrão: true. */
|
|
19
|
+
enabled?: boolean;
|
|
18
20
|
severity?: Severity;
|
|
19
21
|
appearance?: Appearance;
|
|
20
22
|
size?: Size;
|
|
@@ -28,7 +30,9 @@ export type SgButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
28
30
|
customColors?: SgButtonCustomColors;
|
|
29
31
|
};
|
|
30
32
|
export declare function resolveButtonColors(severity: Severity, custom?: SgButtonCustomColors): Required<SgButtonCustomColors>;
|
|
31
|
-
export declare const SgButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
33
|
+
export declare const SgButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "color"> & {
|
|
34
|
+
/** Quando false, desabilita o botão. Padrão: true. */
|
|
35
|
+
enabled?: boolean;
|
|
32
36
|
severity?: Severity;
|
|
33
37
|
appearance?: Appearance;
|
|
34
38
|
size?: Size;
|