@sincpro/web-ui 2.6.0 → 2.8.0
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/README.md +59 -1
- package/dist/components/search/CriteriaBuilder.d.ts +14 -2
- package/dist/components/search/CriteriaBuilder.js +26 -6
- package/dist/components/search/FieldPath.js +16 -7
- package/dist/components/search/FilterBuilder.d.ts +72 -5
- package/dist/components/search/FilterBuilder.js +395 -50
- package/dist/components/search/RuleValue.d.ts +21 -0
- package/dist/components/search/RuleValue.js +143 -0
- package/dist/components/search/SearchBar.d.ts +25 -2
- package/dist/components/search/SearchBar.js +397 -39
- package/dist/components/search/context.d.ts +49 -0
- package/dist/components/search/context.js +28 -0
- package/dist/components/search/criteria.d.ts +20 -0
- package/dist/components/search/index.d.ts +7 -4
- package/dist/components/search/index.js +9 -3
- package/dist/components/search/model.d.ts +16 -1
- package/dist/components/search/model.js +5 -0
- package/dist/components/search/query.d.ts +88 -4
- package/dist/components/search/query.js +262 -62
- package/dist/components/search/records.d.ts +91 -0
- package/dist/components/search/records.js +115 -0
- package/dist/foundations/copy.d.ts +21 -0
- package/dist/foundations/copy.es.js +12 -0
- package/dist/foundations/copy.js +12 -0
- package/package.json +1 -1
|
@@ -261,6 +261,24 @@ export type UiCopy = {
|
|
|
261
261
|
/** The cut of a long phrase: a chip that does not fit in the bar says
|
|
262
262
|
* nothing, and the builder is there to see it whole. */
|
|
263
263
|
andMore: string;
|
|
264
|
+
/** A chip of values of ONE field: «Cliente: Andrés Pérez o Andrés Gutiérrez». */
|
|
265
|
+
valuesChip: string;
|
|
266
|
+
/** What a row that unfolds says it unfolds, after the field: «con «andres»». */
|
|
267
|
+
unfoldHint: string;
|
|
268
|
+
/** The ▸ of a row: show the records (or values) that match, and hide them again. */
|
|
269
|
+
unfold: string;
|
|
270
|
+
fold: string;
|
|
271
|
+
/** While the records of a relation are being searched; when none matches; when the search
|
|
272
|
+
* could not be done. */
|
|
273
|
+
searchingRecords: string;
|
|
274
|
+
noRecords: string;
|
|
275
|
+
recordsFailed: string;
|
|
276
|
+
/** The last record of an unfolded relation: the chooser with the whole list. */
|
|
277
|
+
moreRecords: string;
|
|
278
|
+
/** The way into the builder — in the dropdown, under what is offered, and in the panel. */
|
|
279
|
+
advanced: string;
|
|
280
|
+
/** The keys of the dropdown, said once at its foot. */
|
|
281
|
+
keysHint: string;
|
|
264
282
|
placeholder: string;
|
|
265
283
|
/** The titles of the three columns of the tools panel. */
|
|
266
284
|
filters: string;
|
|
@@ -663,6 +681,9 @@ export type UiCopy = {
|
|
|
663
681
|
ruleField: string;
|
|
664
682
|
ruleOperator: string;
|
|
665
683
|
noValue: string;
|
|
684
|
+
/** The value of a rule, when it is chosen and not written: an enum's word, a record. */
|
|
685
|
+
ruleValue: string;
|
|
686
|
+
chooseValue: string;
|
|
666
687
|
from: string;
|
|
667
688
|
to: string;
|
|
668
689
|
value: string;
|
|
@@ -177,6 +177,16 @@ export const SPANISH_COPY = {
|
|
|
177
177
|
joins: { all: "todas", any: "cualquiera", none: "ninguna" },
|
|
178
178
|
notWord: "no",
|
|
179
179
|
andMore: "y {count} más",
|
|
180
|
+
valuesChip: "{field}: {values}",
|
|
181
|
+
unfoldHint: "con «{text}»",
|
|
182
|
+
unfold: "ver los que coinciden",
|
|
183
|
+
fold: "ocultarlos",
|
|
184
|
+
searchingRecords: "Buscando…",
|
|
185
|
+
noRecords: "Ninguno coincide",
|
|
186
|
+
recordsFailed: "No se pudo buscar",
|
|
187
|
+
moreRecords: "Buscar más…",
|
|
188
|
+
advanced: "Búsqueda avanzada…",
|
|
189
|
+
keysHint: "↑↓ moverse · Enter poner · → abrir · Esc deshacer",
|
|
180
190
|
landsHere: "acá cae lo próximo",
|
|
181
191
|
closeGroup: "Cerrar este grupo",
|
|
182
192
|
condition: "{field} {op} {value}",
|
|
@@ -439,6 +449,8 @@ export const SPANISH_COPY = {
|
|
|
439
449
|
ruleField: "Campo",
|
|
440
450
|
ruleOperator: "Comparación",
|
|
441
451
|
noValue: "sin valor",
|
|
452
|
+
ruleValue: "Valor",
|
|
453
|
+
chooseValue: "Elegir…",
|
|
442
454
|
from: "desde…",
|
|
443
455
|
to: "hasta…",
|
|
444
456
|
value: "valor…",
|
package/dist/foundations/copy.js
CHANGED
|
@@ -154,6 +154,16 @@ export const ENGLISH_COPY = {
|
|
|
154
154
|
askValue: "to what",
|
|
155
155
|
condition: "{field} {op} {value}",
|
|
156
156
|
andMore: "and {count} more",
|
|
157
|
+
valuesChip: "{field}: {values}",
|
|
158
|
+
unfoldHint: "matching “{text}”",
|
|
159
|
+
unfold: "show the ones that match",
|
|
160
|
+
fold: "hide them",
|
|
161
|
+
searchingRecords: "Searching…",
|
|
162
|
+
noRecords: "Nothing matches",
|
|
163
|
+
recordsFailed: "The search could not be done",
|
|
164
|
+
moreRecords: "Search more…",
|
|
165
|
+
advanced: "Advanced search…",
|
|
166
|
+
keysHint: "↑↓ move · Enter set · → open · Esc undo",
|
|
157
167
|
placeholder: "search…",
|
|
158
168
|
filters: "Filters",
|
|
159
169
|
groupBy: "Group by",
|
|
@@ -429,6 +439,8 @@ export const ENGLISH_COPY = {
|
|
|
429
439
|
ruleField: "Field",
|
|
430
440
|
ruleOperator: "Comparison",
|
|
431
441
|
noValue: "no value",
|
|
442
|
+
ruleValue: "Value",
|
|
443
|
+
chooseValue: "Choose…",
|
|
432
444
|
from: "from…",
|
|
433
445
|
to: "to…",
|
|
434
446
|
value: "value…",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sincpro/web-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "An enterprise web design system for business software — ERPs, back offices, management tools — in React and Tailwind: tokens, primitives, components and the two views every management screen is made of.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|