@salmonui/query-builder 0.3.0 → 0.4.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.
@@ -14,6 +14,7 @@ export declare const EDITOR_PROPS: {
14
14
  readonly tndbsc: 'description errorMessage invalid localeText';
15
15
  readonly tndsc: 'onValueChange';
16
16
  readonly tnb: 'validateOn';
17
+ readonly t: 'reveal';
17
18
  readonly n: 'clampBehavior currency decimals formatOptions incrementOnWheel restrictDecimals showStepper';
18
19
  readonly nd: 'format';
19
20
  readonly ndsc: 'locale';
@@ -1 +1 @@
1
- {"version":3,"file":"editor-props.d.ts","sourceRoot":"","sources":["../../src/query-builder/editor-props.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;aACvB,KAAK,EAAE,uBAAuB;aAC9B,IAAI,EAAE,WAAW;aACjB,EAAE,EAAE,6BAA6B;aACjC,MAAM,EAAE,6CAA6C;aACrD,KAAK,EAAE,eAAe;aACtB,GAAG,EAAE,YAAY;aACjB,CAAC,EAAE,6FAA6F;aAChG,EAAE,EAAE,QAAQ;aACZ,IAAI,EAAE,QAAQ;aACd,CAAC,EAAE,0FAA0F;aAC7F,CAAC,EAAE,8CAA8C;aACjD,EAAE,EAAE,uhBAAuhB;aAC3hB,CAAC,EAAE,0DAA0D;aAC7D,CAAC,EAAE,6JAA6J;CACxJ,CAAC;AAIX,0FAA0F;AAC1F,eAAO,MAAM,OAAO,UAAW,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,QAAQ,MAAM,KAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SACtB,CAAC"}
1
+ {"version":3,"file":"editor-props.d.ts","sourceRoot":"","sources":["../../src/query-builder/editor-props.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;aACvB,KAAK,EAAE,uBAAuB;aAC9B,IAAI,EAAE,WAAW;aACjB,EAAE,EAAE,6BAA6B;aACjC,MAAM,EAAE,6CAA6C;aACrD,KAAK,EAAE,eAAe;aACtB,GAAG,EAAE,YAAY;aACjB,CAAC,EAAE,QAAQ;aACX,CAAC,EAAE,6FAA6F;aAChG,EAAE,EAAE,QAAQ;aACZ,IAAI,EAAE,QAAQ;aACd,CAAC,EAAE,0FAA0F;aAC7F,CAAC,EAAE,8CAA8C;aACjD,EAAE,EAAE,uhBAAuhB;aAC3hB,CAAC,EAAE,0DAA0D;aAC7D,CAAC,EAAE,6JAA6J;CACxJ,CAAC;AAIX,0FAA0F;AAC1F,eAAO,MAAM,OAAO,UAAW,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,QAAQ,MAAM,KAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SACtB,CAAC"}
@@ -15,6 +15,7 @@ export const EDITOR_PROPS = {
15
15
  tndbsc: 'description errorMessage invalid localeText',
16
16
  tndsc: 'onValueChange',
17
17
  tnb: 'validateOn',
18
+ t: 'reveal',
18
19
  n: 'clampBehavior currency decimals formatOptions incrementOnWheel restrictDecimals showStepper',
19
20
  nd: 'format',
20
21
  ndsc: 'locale',
@@ -1 +1 @@
1
- {"version":3,"file":"editor-props.js","sourceRoot":"","sources":["../../src/query-builder/editor-props.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAE,uBAAuB;IAC9B,IAAI,EAAE,WAAW;IACjB,EAAE,EAAE,6BAA6B;IACjC,MAAM,EAAE,6CAA6C;IACrD,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,YAAY;IACjB,CAAC,EAAE,6FAA6F;IAChG,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,CAAC,EAAE,0FAA0F;IAC7F,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AAC,EAAE,0DAA0D;IAC7D,CAAC,EAAE,6JAA6J;CACxJ,CAAC;AAEX,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAU,CAAC,CAAC,CAAC,CAAC;AAEnI,0FAA0F;AAC1F,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAoD,EAAE,IAAY,EAAiD,EAAE,CAC3I,KAAK,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC"}
@@ -1241,7 +1241,7 @@ mark.salmon-dropdown__match {
1241
1241
 
1242
1242
  }
1243
1243
  @layer salmon.b {
1244
- /* Input group: bordered box, adornments, clear button.
1244
+ /* Input group: bordered box, adornments, clear and password reveal buttons.
1245
1245
  Button heights and inline padding per
1246
1246
  size (the density control metrics), md radius, a 16px clear glyph whose edge sits at
1247
1247
  the text inset. */
@@ -1312,14 +1312,16 @@ mark.salmon-dropdown__match {
1312
1312
  }
1313
1313
 
1314
1314
  .salmon-input-group-adornment,
1315
- .salmon-input-group-clear {
1315
+ .salmon-input-group-clear,
1316
+ .salmon-input-group-reveal {
1316
1317
  display: inline-flex;
1317
1318
  align-items: center;
1318
1319
  flex: none;
1319
1320
  color: var(--salmon-text-secondary);
1320
1321
  }
1321
1322
 
1322
- .salmon-input-group-clear {
1323
+ .salmon-input-group-clear,
1324
+ .salmon-input-group-reveal {
1323
1325
  justify-content: center;
1324
1326
  inline-size: 24px;
1325
1327
  block-size: 24px;
@@ -1338,7 +1340,29 @@ mark.salmon-dropdown__match {
1338
1340
  background: linear-gradient(45deg, transparent 45%, currentColor 0 55%, transparent 0), linear-gradient(-45deg, transparent 45%, currentColor 0 55%, transparent 0);
1339
1341
  }
1340
1342
 
1341
- .salmon-input-group-clear:hover {
1343
+ .salmon-input-group-clear + .salmon-input-group-reveal {
1344
+ margin-inline-start: calc(-1 * var(--salmon-space-3) + 4px);
1345
+ }
1346
+
1347
+ .salmon-input-group-reveal:focus-visible {
1348
+ outline: var(--salmon-state-focus-ring-width) solid var(--salmon-state-focus-ring);
1349
+ outline-offset: var(--salmon-state-focus-ring-offset);
1350
+ }
1351
+
1352
+ /* Eye while the characters are hidden, struck-through eye while they show. */
1353
+ .salmon-input-group-reveal-icon {
1354
+ inline-size: 16px;
1355
+ block-size: 16px;
1356
+ background: currentColor;
1357
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z'/%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
1358
+ }
1359
+
1360
+ .salmon-input-group-reveal[aria-pressed='true'] .salmon-input-group-reveal-icon {
1361
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z'/%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3Cpath d='M2.5 2.5l11 11'/%3E%3C/svg%3E");
1362
+ }
1363
+
1364
+ .salmon-input-group-clear:hover,
1365
+ .salmon-input-group-reveal:hover {
1342
1366
  background: var(--salmon-surface-hover);
1343
1367
  color: var(--salmon-text-primary);
1344
1368
  }
@@ -1973,6 +1997,17 @@ mark.salmon-dropdown__match {
1973
1997
  overflow: hidden;
1974
1998
  }
1975
1999
 
2000
+ .salmon-text-area-count {
2001
+ align-self: flex-end;
2002
+ font-size: var(--salmon-font-size-sm);
2003
+ font-variant-numeric: tabular-nums;
2004
+ color: var(--salmon-text-secondary);
2005
+ }
2006
+
2007
+ .salmon-text-area-count[data-limit] {
2008
+ color: var(--salmon-color-warning-text);
2009
+ }
2010
+
1976
2011
  }
1977
2012
  @layer salmon.c {
1978
2013
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salmonui/query-builder",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "QueryBuilder for Salmon UI with SQL and MongoDB import and export.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,11 +38,11 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "dependencies": {
41
- "@salmonui/core": "0.3.0",
42
- "@salmonui/buttons": "0.3.0",
43
- "@salmonui/dropdowns": "0.3.0",
44
- "@salmonui/calendars": "0.3.0",
45
- "@salmonui/inputs": "0.3.0"
41
+ "@salmonui/core": "0.4.0",
42
+ "@salmonui/buttons": "0.4.0",
43
+ "@salmonui/dropdowns": "0.4.0",
44
+ "@salmonui/calendars": "0.4.0",
45
+ "@salmonui/inputs": "0.4.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=19",