@seedgrid/fe-components 2026.6.6 → 2026.6.8
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 +523 -0
- package/dist/i18n/en-US.d.ts.map +1 -1
- package/dist/i18n/en-US.js +2 -0
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +2 -0
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +2 -0
- package/dist/i18n/pt-BR.d.ts.map +1 -1
- package/dist/i18n/pt-BR.js +2 -0
- package/dist/i18n/pt-PT.d.ts.map +1 -1
- package/dist/i18n/pt-PT.js +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/inputs/SgInputTextSearch.d.ts +11 -0
- package/dist/inputs/SgInputTextSearch.d.ts.map +1 -0
- package/dist/inputs/SgInputTextSearch.js +47 -0
- package/dist/inputs/SgInputTextSearch.meta.d.ts +4 -0
- package/dist/inputs/SgInputTextSearch.meta.d.ts.map +1 -0
- package/dist/inputs/SgInputTextSearch.meta.js +50 -0
- package/dist/inputs/SgMultiSelect.d.ts +23 -0
- package/dist/inputs/SgMultiSelect.d.ts.map +1 -0
- package/dist/inputs/SgMultiSelect.js +117 -0
- package/dist/inputs/SgMultiSelect.meta.d.ts +4 -0
- package/dist/inputs/SgMultiSelect.meta.d.ts.map +1 -0
- package/dist/inputs/SgMultiSelect.meta.js +56 -0
- package/dist/inputs/SgMultiSelectChips.d.ts +27 -0
- package/dist/inputs/SgMultiSelectChips.d.ts.map +1 -0
- package/dist/inputs/SgMultiSelectChips.js +127 -0
- package/dist/inputs/SgMultiSelectChips.meta.d.ts +4 -0
- package/dist/inputs/SgMultiSelectChips.meta.d.ts.map +1 -0
- package/dist/inputs/SgMultiSelectChips.meta.js +55 -0
- package/dist/inputs/SgMultiSelectDropdown.d.ts +28 -0
- package/dist/inputs/SgMultiSelectDropdown.d.ts.map +1 -0
- package/dist/inputs/SgMultiSelectDropdown.js +41 -0
- package/dist/inputs/useSgMultiSelect.d.ts +48 -0
- package/dist/inputs/useSgMultiSelect.d.ts.map +1 -0
- package/dist/inputs/useSgMultiSelect.js +202 -0
- package/dist/sandbox.cjs +53 -53
- package/package.json +1 -1
|
@@ -831,6 +831,384 @@
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
|
+
{
|
|
835
|
+
"componentId": "form.input.multiselect",
|
|
836
|
+
"exportName": "SgMultiSelect",
|
|
837
|
+
"sgMeta": {
|
|
838
|
+
"version": "0.1",
|
|
839
|
+
"componentId": "form.input.multiselect",
|
|
840
|
+
"package": "@seedgrid/fe-components",
|
|
841
|
+
"exportName": "SgMultiSelect",
|
|
842
|
+
"slug": "sg-multi-select",
|
|
843
|
+
"displayName": "SgMultiSelect",
|
|
844
|
+
"category": "input",
|
|
845
|
+
"subcategory": "multiselect",
|
|
846
|
+
"description": "Campo de selecao multipla no estilo select: trigger com chevron que vira check ao abrir e dropdown com checkboxes que mantem a lista aberta.",
|
|
847
|
+
"tags": [
|
|
848
|
+
"form",
|
|
849
|
+
"multiselect",
|
|
850
|
+
"choice",
|
|
851
|
+
"checkbox",
|
|
852
|
+
"rhf"
|
|
853
|
+
],
|
|
854
|
+
"capabilities": [
|
|
855
|
+
"multi-selection",
|
|
856
|
+
"search",
|
|
857
|
+
"clearable",
|
|
858
|
+
"max-selected",
|
|
859
|
+
"keyboard"
|
|
860
|
+
],
|
|
861
|
+
"fieldSemantics": [
|
|
862
|
+
"structuredChoice",
|
|
863
|
+
"multiChoice",
|
|
864
|
+
"tags",
|
|
865
|
+
"categories"
|
|
866
|
+
],
|
|
867
|
+
"props": [
|
|
868
|
+
{
|
|
869
|
+
"name": "id",
|
|
870
|
+
"type": "string",
|
|
871
|
+
"required": true,
|
|
872
|
+
"description": "Identificador unico do campo.",
|
|
873
|
+
"semanticRole": "data",
|
|
874
|
+
"bindable": false
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "label",
|
|
878
|
+
"type": "string",
|
|
879
|
+
"description": "Rotulo exibido ao usuario.",
|
|
880
|
+
"semanticRole": "label",
|
|
881
|
+
"bindable": true
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"name": "options",
|
|
885
|
+
"type": "{ label: string; value: string | number; disabled?: boolean }[]",
|
|
886
|
+
"description": "Lista de opcoes disponiveis.",
|
|
887
|
+
"semanticRole": "data",
|
|
888
|
+
"bindable": false
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "value",
|
|
892
|
+
"type": "(string | number)[]",
|
|
893
|
+
"description": "Array de valores selecionados.",
|
|
894
|
+
"semanticRole": "value",
|
|
895
|
+
"bindable": true
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "onChange",
|
|
899
|
+
"type": "(value: (string | number)[]) => void",
|
|
900
|
+
"description": "Callback com o array atualizado de valores.",
|
|
901
|
+
"semanticRole": "event",
|
|
902
|
+
"bindable": false
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "searchable",
|
|
906
|
+
"type": "boolean",
|
|
907
|
+
"default": false,
|
|
908
|
+
"description": "Exibe campo de busca no topo do dropdown.",
|
|
909
|
+
"semanticRole": "behavior",
|
|
910
|
+
"bindable": true
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "clearable",
|
|
914
|
+
"type": "boolean",
|
|
915
|
+
"default": false,
|
|
916
|
+
"description": "Exibe botao para limpar toda a selecao.",
|
|
917
|
+
"semanticRole": "behavior",
|
|
918
|
+
"bindable": true
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "maxSelected",
|
|
922
|
+
"type": "number",
|
|
923
|
+
"description": "Limite maximo de itens selecionaveis.",
|
|
924
|
+
"semanticRole": "validation",
|
|
925
|
+
"bindable": true
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "placeholder",
|
|
929
|
+
"type": "string",
|
|
930
|
+
"description": "Texto exibido quando nada esta selecionado.",
|
|
931
|
+
"semanticRole": "label",
|
|
932
|
+
"bindable": true
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "summaryThreshold",
|
|
936
|
+
"type": "number",
|
|
937
|
+
"default": 2,
|
|
938
|
+
"description": "Quantidade de rotulos antes de mostrar 'N selecionadas'.",
|
|
939
|
+
"semanticRole": "appearance",
|
|
940
|
+
"bindable": true
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "required",
|
|
944
|
+
"type": "boolean",
|
|
945
|
+
"default": false,
|
|
946
|
+
"description": "Marca o campo como obrigatorio.",
|
|
947
|
+
"semanticRole": "validation",
|
|
948
|
+
"bindable": true
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "onEnter",
|
|
952
|
+
"type": "() => void",
|
|
953
|
+
"description": "Disparado ao focar o campo.",
|
|
954
|
+
"semanticRole": "event",
|
|
955
|
+
"bindable": false
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"name": "onExit",
|
|
959
|
+
"type": "() => void",
|
|
960
|
+
"description": "Disparado ao sair do campo.",
|
|
961
|
+
"semanticRole": "event",
|
|
962
|
+
"bindable": false
|
|
963
|
+
}
|
|
964
|
+
],
|
|
965
|
+
"states": [
|
|
966
|
+
"default",
|
|
967
|
+
"focused",
|
|
968
|
+
"open",
|
|
969
|
+
"disabled",
|
|
970
|
+
"error"
|
|
971
|
+
],
|
|
972
|
+
"showcase": {
|
|
973
|
+
"route": "/components/sg-multi-select",
|
|
974
|
+
"hasPlayground": false,
|
|
975
|
+
"hasPropsTable": true
|
|
976
|
+
},
|
|
977
|
+
"sdui": {
|
|
978
|
+
"rendererType": "field.multiselect",
|
|
979
|
+
"acceptsDataBinding": true,
|
|
980
|
+
"defaultProps": {
|
|
981
|
+
"searchable": false,
|
|
982
|
+
"clearable": false,
|
|
983
|
+
"summaryThreshold": 2
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
"aiHints": {
|
|
988
|
+
"version": "0.1",
|
|
989
|
+
"preferredUseCases": [
|
|
990
|
+
"Selecao de varias opcoes a partir de uma lista fechada (ex.: empresas, categorias, tags).",
|
|
991
|
+
"Filtros multi-valor em formularios e relatorios.",
|
|
992
|
+
"Campos relacionais N:N em formularios CRUD."
|
|
993
|
+
],
|
|
994
|
+
"avoidUseCases": [
|
|
995
|
+
"Escolha unica; nesses casos prefira SgCombobox ou SgRadioGroup.",
|
|
996
|
+
"Listas muito grandes com busca remota assincrona; nesses casos prefira SgAutocomplete.",
|
|
997
|
+
"Poucas opcoes sempre visiveis; nesses casos prefira SgCheckboxGroup."
|
|
998
|
+
],
|
|
999
|
+
"synonyms": [
|
|
1000
|
+
"multi select",
|
|
1001
|
+
"multiselect",
|
|
1002
|
+
"selecao multipla",
|
|
1003
|
+
"multiple choice select",
|
|
1004
|
+
"checkbox dropdown"
|
|
1005
|
+
],
|
|
1006
|
+
"relatedEntityFields": [
|
|
1007
|
+
"empresas",
|
|
1008
|
+
"categorias",
|
|
1009
|
+
"tags",
|
|
1010
|
+
"permissoes",
|
|
1011
|
+
"roles"
|
|
1012
|
+
],
|
|
1013
|
+
"compositionHints": [
|
|
1014
|
+
"Usar dentro de SgPanel ou SgGroupBox em formularios.",
|
|
1015
|
+
"Combinar com SgCheckboxGroup quando todas as opcoes precisam ficar sempre visiveis."
|
|
1016
|
+
],
|
|
1017
|
+
"rankingSignals": {
|
|
1018
|
+
"freeText": 0.1,
|
|
1019
|
+
"structuredChoice": 0.95,
|
|
1020
|
+
"date": 0,
|
|
1021
|
+
"number": 0,
|
|
1022
|
+
"denseLayout": 0.7
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"componentId": "form.input.multiselectchips",
|
|
1028
|
+
"exportName": "SgMultiSelectChips",
|
|
1029
|
+
"sgMeta": {
|
|
1030
|
+
"version": "0.1",
|
|
1031
|
+
"componentId": "form.input.multiselectchips",
|
|
1032
|
+
"package": "@seedgrid/fe-components",
|
|
1033
|
+
"exportName": "SgMultiSelectChips",
|
|
1034
|
+
"slug": "sg-multi-select-chips",
|
|
1035
|
+
"displayName": "SgMultiSelectChips",
|
|
1036
|
+
"category": "input",
|
|
1037
|
+
"subcategory": "multiselect",
|
|
1038
|
+
"description": "Variante do multi-select onde os itens selecionados viram chips removiveis no trigger; o dropdown com checkboxes e a busca sao iguais ao SgMultiSelect.",
|
|
1039
|
+
"tags": [
|
|
1040
|
+
"form",
|
|
1041
|
+
"multiselect",
|
|
1042
|
+
"chips",
|
|
1043
|
+
"tags",
|
|
1044
|
+
"checkbox",
|
|
1045
|
+
"rhf"
|
|
1046
|
+
],
|
|
1047
|
+
"capabilities": [
|
|
1048
|
+
"multi-selection",
|
|
1049
|
+
"chips",
|
|
1050
|
+
"search",
|
|
1051
|
+
"clearable",
|
|
1052
|
+
"max-selected",
|
|
1053
|
+
"keyboard"
|
|
1054
|
+
],
|
|
1055
|
+
"fieldSemantics": [
|
|
1056
|
+
"structuredChoice",
|
|
1057
|
+
"multiChoice",
|
|
1058
|
+
"tags",
|
|
1059
|
+
"categories"
|
|
1060
|
+
],
|
|
1061
|
+
"props": [
|
|
1062
|
+
{
|
|
1063
|
+
"name": "id",
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"required": true,
|
|
1066
|
+
"description": "Identificador unico do campo.",
|
|
1067
|
+
"semanticRole": "data",
|
|
1068
|
+
"bindable": false
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "label",
|
|
1072
|
+
"type": "string",
|
|
1073
|
+
"description": "Rotulo exibido ao usuario.",
|
|
1074
|
+
"semanticRole": "label",
|
|
1075
|
+
"bindable": true
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "options",
|
|
1079
|
+
"type": "{ label: string; value: string | number; disabled?: boolean }[]",
|
|
1080
|
+
"description": "Lista de opcoes disponiveis.",
|
|
1081
|
+
"semanticRole": "data",
|
|
1082
|
+
"bindable": false
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "value",
|
|
1086
|
+
"type": "(string | number)[]",
|
|
1087
|
+
"description": "Array de valores selecionados.",
|
|
1088
|
+
"semanticRole": "value",
|
|
1089
|
+
"bindable": true
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "onChange",
|
|
1093
|
+
"type": "(value: (string | number)[]) => void",
|
|
1094
|
+
"description": "Callback com o array atualizado de valores.",
|
|
1095
|
+
"semanticRole": "event",
|
|
1096
|
+
"bindable": false
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "searchable",
|
|
1100
|
+
"type": "boolean",
|
|
1101
|
+
"default": false,
|
|
1102
|
+
"description": "Exibe campo de busca no topo do dropdown.",
|
|
1103
|
+
"semanticRole": "behavior",
|
|
1104
|
+
"bindable": true
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "clearable",
|
|
1108
|
+
"type": "boolean",
|
|
1109
|
+
"default": false,
|
|
1110
|
+
"description": "Exibe botao para limpar toda a selecao.",
|
|
1111
|
+
"semanticRole": "behavior",
|
|
1112
|
+
"bindable": true
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "maxSelected",
|
|
1116
|
+
"type": "number",
|
|
1117
|
+
"description": "Limite maximo de itens selecionaveis.",
|
|
1118
|
+
"semanticRole": "validation",
|
|
1119
|
+
"bindable": true
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "placeholder",
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"description": "Texto exibido quando nada esta selecionado.",
|
|
1125
|
+
"semanticRole": "label",
|
|
1126
|
+
"bindable": true
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"name": "required",
|
|
1130
|
+
"type": "boolean",
|
|
1131
|
+
"default": false,
|
|
1132
|
+
"description": "Marca o campo como obrigatorio.",
|
|
1133
|
+
"semanticRole": "validation",
|
|
1134
|
+
"bindable": true
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "onEnter",
|
|
1138
|
+
"type": "() => void",
|
|
1139
|
+
"description": "Disparado ao focar o campo.",
|
|
1140
|
+
"semanticRole": "event",
|
|
1141
|
+
"bindable": false
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "onExit",
|
|
1145
|
+
"type": "() => void",
|
|
1146
|
+
"description": "Disparado ao sair do campo.",
|
|
1147
|
+
"semanticRole": "event",
|
|
1148
|
+
"bindable": false
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"states": [
|
|
1152
|
+
"default",
|
|
1153
|
+
"focused",
|
|
1154
|
+
"open",
|
|
1155
|
+
"disabled",
|
|
1156
|
+
"error"
|
|
1157
|
+
],
|
|
1158
|
+
"showcase": {
|
|
1159
|
+
"route": "/components/sg-multi-select-chips",
|
|
1160
|
+
"hasPlayground": false,
|
|
1161
|
+
"hasPropsTable": true
|
|
1162
|
+
},
|
|
1163
|
+
"sdui": {
|
|
1164
|
+
"rendererType": "field.multiselectchips",
|
|
1165
|
+
"acceptsDataBinding": true,
|
|
1166
|
+
"defaultProps": {
|
|
1167
|
+
"searchable": false,
|
|
1168
|
+
"clearable": false
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
"aiHints": {
|
|
1173
|
+
"version": "0.1",
|
|
1174
|
+
"preferredUseCases": [
|
|
1175
|
+
"Selecao de varias opcoes onde e util ver e remover cada item escolhido individualmente (ex.: tags, destinatarios, empresas).",
|
|
1176
|
+
"Filtros multi-valor em que o usuario precisa enxergar tudo o que ja selecionou.",
|
|
1177
|
+
"Campos relacionais N:N em formularios CRUD com poucos itens visiveis por vez."
|
|
1178
|
+
],
|
|
1179
|
+
"avoidUseCases": [
|
|
1180
|
+
"Escolha unica; nesses casos prefira SgCombobox ou SgRadioGroup.",
|
|
1181
|
+
"Selecoes muito numerosas onde os chips ocupariam espaco demais; nesses casos prefira SgMultiSelect (resumo 'N selecionadas').",
|
|
1182
|
+
"Listas com busca remota assincrona; nesses casos prefira SgAutocomplete."
|
|
1183
|
+
],
|
|
1184
|
+
"synonyms": [
|
|
1185
|
+
"multi select chips",
|
|
1186
|
+
"multiselect tags",
|
|
1187
|
+
"selecao multipla com chips",
|
|
1188
|
+
"tag input select",
|
|
1189
|
+
"chips dropdown"
|
|
1190
|
+
],
|
|
1191
|
+
"relatedEntityFields": [
|
|
1192
|
+
"empresas",
|
|
1193
|
+
"categorias",
|
|
1194
|
+
"tags",
|
|
1195
|
+
"permissoes",
|
|
1196
|
+
"roles",
|
|
1197
|
+
"destinatarios"
|
|
1198
|
+
],
|
|
1199
|
+
"compositionHints": [
|
|
1200
|
+
"Usar dentro de SgPanel ou SgGroupBox em formularios.",
|
|
1201
|
+
"Preferir a SgMultiSelect quando o numero de selecoes for grande e os chips poluirem o layout."
|
|
1202
|
+
],
|
|
1203
|
+
"rankingSignals": {
|
|
1204
|
+
"freeText": 0.1,
|
|
1205
|
+
"structuredChoice": 0.95,
|
|
1206
|
+
"date": 0,
|
|
1207
|
+
"number": 0,
|
|
1208
|
+
"denseLayout": 0.6
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
834
1212
|
{
|
|
835
1213
|
"componentId": "form.input.cpf",
|
|
836
1214
|
"exportName": "SgInputCPF",
|
|
@@ -1518,6 +1896,151 @@
|
|
|
1518
1896
|
}
|
|
1519
1897
|
}
|
|
1520
1898
|
},
|
|
1899
|
+
{
|
|
1900
|
+
"componentId": "form.input.textsearch",
|
|
1901
|
+
"exportName": "SgInputTextSearch",
|
|
1902
|
+
"sgMeta": {
|
|
1903
|
+
"version": "0.1",
|
|
1904
|
+
"componentId": "form.input.textsearch",
|
|
1905
|
+
"package": "@seedgrid/fe-components",
|
|
1906
|
+
"exportName": "SgInputTextSearch",
|
|
1907
|
+
"slug": "sg-input-text-search",
|
|
1908
|
+
"displayName": "SgInputTextSearch",
|
|
1909
|
+
"category": "input",
|
|
1910
|
+
"subcategory": "search",
|
|
1911
|
+
"description": "Campo de busca que embrulha o SgInputText com debounce sem dependencia externa: onChange imediato e onSearchChange disparado apos o debounce com o termo normalizado (trim + gate por minChars).",
|
|
1912
|
+
"tags": [
|
|
1913
|
+
"form",
|
|
1914
|
+
"search",
|
|
1915
|
+
"debounce",
|
|
1916
|
+
"text",
|
|
1917
|
+
"filter"
|
|
1918
|
+
],
|
|
1919
|
+
"capabilities": [
|
|
1920
|
+
"debounce",
|
|
1921
|
+
"min-chars-gate",
|
|
1922
|
+
"distinct",
|
|
1923
|
+
"controlled"
|
|
1924
|
+
],
|
|
1925
|
+
"fieldSemantics": [
|
|
1926
|
+
"freeText",
|
|
1927
|
+
"search",
|
|
1928
|
+
"filter"
|
|
1929
|
+
],
|
|
1930
|
+
"props": [
|
|
1931
|
+
{
|
|
1932
|
+
"name": "id",
|
|
1933
|
+
"type": "string",
|
|
1934
|
+
"required": true,
|
|
1935
|
+
"description": "Identificador unico do campo.",
|
|
1936
|
+
"semanticRole": "data",
|
|
1937
|
+
"bindable": false
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "label",
|
|
1941
|
+
"type": "string",
|
|
1942
|
+
"description": "Rotulo exibido ao usuario.",
|
|
1943
|
+
"semanticRole": "label",
|
|
1944
|
+
"bindable": true
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "placeholder",
|
|
1948
|
+
"type": "string",
|
|
1949
|
+
"description": "Texto de apoio dentro do input.",
|
|
1950
|
+
"semanticRole": "label",
|
|
1951
|
+
"bindable": true
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "minChars",
|
|
1955
|
+
"type": "number",
|
|
1956
|
+
"default": 3,
|
|
1957
|
+
"description": "Minimo de caracteres (apos trim) para disparar onSearchChange; 0 caracteres tambem dispara (limpar busca).",
|
|
1958
|
+
"semanticRole": "behavior",
|
|
1959
|
+
"bindable": true
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"name": "debounceMs",
|
|
1963
|
+
"type": "number",
|
|
1964
|
+
"default": 350,
|
|
1965
|
+
"description": "Atraso do debounce em milissegundos antes de disparar onSearchChange.",
|
|
1966
|
+
"semanticRole": "behavior",
|
|
1967
|
+
"bindable": true
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"name": "onChange",
|
|
1971
|
+
"type": "(value: string) => void",
|
|
1972
|
+
"description": "Disparado imediatamente a cada digitacao, com o valor cru.",
|
|
1973
|
+
"semanticRole": "event",
|
|
1974
|
+
"bindable": false
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"name": "onSearchChange",
|
|
1978
|
+
"type": "(value: string) => void",
|
|
1979
|
+
"required": true,
|
|
1980
|
+
"description": "Disparado apos o debounce, com o termo normalizado.",
|
|
1981
|
+
"semanticRole": "event",
|
|
1982
|
+
"bindable": false
|
|
1983
|
+
}
|
|
1984
|
+
],
|
|
1985
|
+
"states": [
|
|
1986
|
+
"default",
|
|
1987
|
+
"focused",
|
|
1988
|
+
"disabled",
|
|
1989
|
+
"error"
|
|
1990
|
+
],
|
|
1991
|
+
"showcase": {
|
|
1992
|
+
"route": "/components/sg-input-text-search",
|
|
1993
|
+
"hasPlayground": false,
|
|
1994
|
+
"hasPropsTable": true
|
|
1995
|
+
},
|
|
1996
|
+
"sdui": {
|
|
1997
|
+
"rendererType": "field.textsearch",
|
|
1998
|
+
"acceptsDataBinding": true,
|
|
1999
|
+
"defaultProps": {
|
|
2000
|
+
"minChars": 3,
|
|
2001
|
+
"debounceMs": 350
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
"aiHints": {
|
|
2006
|
+
"version": "0.1",
|
|
2007
|
+
"preferredUseCases": [
|
|
2008
|
+
"Campo de busca/filtro que dispara requisicoes apos o usuario parar de digitar.",
|
|
2009
|
+
"Filtragem de listas, tabelas ou grids com termo de pesquisa debounced.",
|
|
2010
|
+
"Buscas onde se quer evitar disparos a cada tecla e exigir um minimo de caracteres."
|
|
2011
|
+
],
|
|
2012
|
+
"avoidUseCases": [
|
|
2013
|
+
"Entrada de texto comum sem busca; nesses casos prefira SgInputText.",
|
|
2014
|
+
"Selecao a partir de uma lista fechada; nesses casos prefira SgAutocomplete ou SgCombobox.",
|
|
2015
|
+
"Busca instantanea sem debounce; nesses casos use SgInputText com onChange direto."
|
|
2016
|
+
],
|
|
2017
|
+
"synonyms": [
|
|
2018
|
+
"search input",
|
|
2019
|
+
"search field",
|
|
2020
|
+
"campo de busca",
|
|
2021
|
+
"debounced search",
|
|
2022
|
+
"filtro de busca"
|
|
2023
|
+
],
|
|
2024
|
+
"relatedEntityFields": [
|
|
2025
|
+
"query",
|
|
2026
|
+
"search",
|
|
2027
|
+
"term",
|
|
2028
|
+
"filter",
|
|
2029
|
+
"busca"
|
|
2030
|
+
],
|
|
2031
|
+
"compositionHints": [
|
|
2032
|
+
"Combinar com SgDatatable ou listas para filtrar resultados.",
|
|
2033
|
+
"Agrupar com SgPanel/SgToolBar em cabecalhos de listagem."
|
|
2034
|
+
],
|
|
2035
|
+
"rankingSignals": {
|
|
2036
|
+
"freeText": 0.9,
|
|
2037
|
+
"structuredChoice": 0.1,
|
|
2038
|
+
"date": 0,
|
|
2039
|
+
"number": 0,
|
|
2040
|
+
"denseLayout": 0.7
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
1521
2044
|
{
|
|
1522
2045
|
"componentId": "form.input.number",
|
|
1523
2046
|
"exportName": "SgInputNumber",
|
package/dist/i18n/en-US.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/i18n/en-US.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/i18n/en-US.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgNhC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/i18n/en-US.js
CHANGED
|
@@ -146,6 +146,8 @@ const enUS = {
|
|
|
146
146
|
"components.dialog.close": "Close",
|
|
147
147
|
"components.popup.ariaLabel": "Popup",
|
|
148
148
|
"components.inputs.select.placeholder": "Select",
|
|
149
|
+
"components.inputs.multiSelect.summary": "{count} selected",
|
|
150
|
+
"components.inputs.multiSelect.removeChip": "Remove {label}",
|
|
149
151
|
"components.inputs.stepper.increase": "Increase value",
|
|
150
152
|
"components.inputs.stepper.decrease": "Decrease value",
|
|
151
153
|
"components.textEditor.placeholder": "Type here...",
|
package/dist/i18n/es.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/i18n/es.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/i18n/es.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgN9B,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/i18n/es.js
CHANGED
|
@@ -146,6 +146,8 @@ const es = {
|
|
|
146
146
|
"components.dialog.close": "Cerrar",
|
|
147
147
|
"components.popup.ariaLabel": "Popup",
|
|
148
148
|
"components.inputs.select.placeholder": "Seleccionar",
|
|
149
|
+
"components.inputs.multiSelect.summary": "{count} seleccionadas",
|
|
150
|
+
"components.inputs.multiSelect.removeChip": "Quitar {label}",
|
|
149
151
|
"components.inputs.stepper.increase": "Aumentar valor",
|
|
150
152
|
"components.inputs.stepper.decrease": "Disminuir valor",
|
|
151
153
|
"components.textEditor.placeholder": "Escribe aqui...",
|
package/dist/i18n/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgN9B,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/i18n/fr.js
CHANGED
|
@@ -146,6 +146,8 @@ const fr = {
|
|
|
146
146
|
"components.dialog.close": "Fermer",
|
|
147
147
|
"components.popup.ariaLabel": "Fenetre",
|
|
148
148
|
"components.inputs.select.placeholder": "Selectionner",
|
|
149
|
+
"components.inputs.multiSelect.summary": "{count} selectionnees",
|
|
150
|
+
"components.inputs.multiSelect.removeChip": "Retirer {label}",
|
|
149
151
|
"components.inputs.stepper.increase": "Augmenter la valeur",
|
|
150
152
|
"components.inputs.stepper.decrease": "Diminuer la valeur",
|
|
151
153
|
"components.textEditor.placeholder": "Tapez ici...",
|
package/dist/i18n/pt-BR.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt-BR.d.ts","sourceRoot":"","sources":["../../src/i18n/pt-BR.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pt-BR.d.ts","sourceRoot":"","sources":["../../src/i18n/pt-BR.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgNhC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/i18n/pt-BR.js
CHANGED
|
@@ -146,6 +146,8 @@ const ptBR = {
|
|
|
146
146
|
"components.dialog.close": "Fechar",
|
|
147
147
|
"components.popup.ariaLabel": "Popup",
|
|
148
148
|
"components.inputs.select.placeholder": "Selecione",
|
|
149
|
+
"components.inputs.multiSelect.summary": "{count} selecionadas",
|
|
150
|
+
"components.inputs.multiSelect.removeChip": "Remover {label}",
|
|
149
151
|
"components.inputs.stepper.increase": "Aumentar valor",
|
|
150
152
|
"components.inputs.stepper.decrease": "Diminuir valor",
|
|
151
153
|
"components.textEditor.placeholder": "Digite aqui...",
|
package/dist/i18n/pt-PT.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt-PT.d.ts","sourceRoot":"","sources":["../../src/i18n/pt-PT.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pt-PT.d.ts","sourceRoot":"","sources":["../../src/i18n/pt-PT.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgNhC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/i18n/pt-PT.js
CHANGED
|
@@ -146,6 +146,8 @@ const ptPT = {
|
|
|
146
146
|
"components.dialog.close": "Fechar",
|
|
147
147
|
"components.popup.ariaLabel": "Popup",
|
|
148
148
|
"components.inputs.select.placeholder": "Selecione",
|
|
149
|
+
"components.inputs.multiSelect.summary": "{count} selecionadas",
|
|
150
|
+
"components.inputs.multiSelect.removeChip": "Remover {label}",
|
|
149
151
|
"components.inputs.stepper.increase": "Aumentar valor",
|
|
150
152
|
"components.inputs.stepper.decrease": "Diminuir valor",
|
|
151
153
|
"components.textEditor.placeholder": "Escreva aqui...",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { SgInputText } from "./inputs/SgInputText";
|
|
2
2
|
export type { SgInputTextProps } from "./inputs/SgInputText";
|
|
3
|
+
export { SgInputTextSearch } from "./inputs/SgInputTextSearch";
|
|
4
|
+
export type { SgInputTextSearchProps } from "./inputs/SgInputTextSearch";
|
|
3
5
|
export { SgInputNumber } from "./inputs/SgInputNumber";
|
|
4
6
|
export type { SgInputNumberProps } from "./inputs/SgInputNumber";
|
|
5
7
|
export { SgInputCurrency } from "./inputs/SgInputCurrency";
|
|
@@ -32,6 +34,10 @@ export { SgAutocomplete } from "./inputs/SgAutocomplete";
|
|
|
32
34
|
export type { SgAutocompleteItem, SgAutocompleteProps } from "./inputs/SgAutocomplete";
|
|
33
35
|
export { SgCombobox } from "./inputs/SgCombobox";
|
|
34
36
|
export type { SgComboboxProps, SgComboboxSource } from "./inputs/SgCombobox";
|
|
37
|
+
export { SgMultiSelect } from "./inputs/SgMultiSelect";
|
|
38
|
+
export type { SgMultiSelectProps, SgMultiSelectOption, SgMultiSelectOptionValue } from "./inputs/SgMultiSelect";
|
|
39
|
+
export { SgMultiSelectChips } from "./inputs/SgMultiSelectChips";
|
|
40
|
+
export type { SgMultiSelectChipsProps } from "./inputs/SgMultiSelectChips";
|
|
35
41
|
export { SgTextEditor } from "./inputs/SgTextEditor";
|
|
36
42
|
export type { SgTextEditorProps, SgTextEditorSaveMeta } from "./inputs/SgTextEditor";
|
|
37
43
|
export { SgRating } from "./inputs/SgRating";
|