@kubex/zinc 1.1.183 → 1.1.185

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.
@@ -1959,6 +1959,27 @@
1959
1959
  "default": "false",
1960
1960
  "attribute": "loading"
1961
1961
  },
1962
+ {
1963
+ "kind": "field",
1964
+ "name": "processing",
1965
+ "type": {
1966
+ "text": "boolean"
1967
+ },
1968
+ "default": "false",
1969
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
1970
+ "attribute": "processing",
1971
+ "reflects": true
1972
+ },
1973
+ {
1974
+ "kind": "field",
1975
+ "name": "processingText",
1976
+ "type": {
1977
+ "text": "string"
1978
+ },
1979
+ "default": "''",
1980
+ "description": "Replaces the label while processing.",
1981
+ "attribute": "processing-text"
1982
+ },
1962
1983
  {
1963
1984
  "kind": "field",
1964
1985
  "name": "validity",
@@ -2423,6 +2444,24 @@
2423
2444
  },
2424
2445
  "default": "false",
2425
2446
  "fieldName": "loading"
2447
+ },
2448
+ {
2449
+ "name": "processing",
2450
+ "type": {
2451
+ "text": "boolean"
2452
+ },
2453
+ "default": "false",
2454
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
2455
+ "fieldName": "processing"
2456
+ },
2457
+ {
2458
+ "name": "processing-text",
2459
+ "type": {
2460
+ "text": "string"
2461
+ },
2462
+ "default": "''",
2463
+ "description": "Replaces the label while processing.",
2464
+ "fieldName": "processingText"
2426
2465
  }
2427
2466
  ],
2428
2467
  "superclass": {
@@ -6959,7 +6998,7 @@
6959
6998
  "kind": "method",
6960
6999
  "name": "markRowEnds",
6961
7000
  "privacy": "private",
6962
- "description": "Flags each child that ends its row as laid out, so `divide` only draws between neighbours on the same row\nhowever the columns have wrapped."
7001
+ "description": "Flags each child that ends its row, and each child on the last row, as laid out, so `divide` only draws\nbetween neighbours however the columns have wrapped."
6963
7002
  },
6964
7003
  {
6965
7004
  "kind": "method",
@@ -9375,7 +9414,12 @@
9375
9414
  },
9376
9415
  {
9377
9416
  "kind": "method",
9378
- "name": "refresh"
9417
+ "name": "refresh",
9418
+ "return": {
9419
+ "type": {
9420
+ "text": "Promise<void>"
9421
+ }
9422
+ }
9379
9423
  },
9380
9424
  {
9381
9425
  "kind": "method",
@@ -16166,17 +16210,63 @@
16166
16210
  },
16167
16211
  {
16168
16212
  "kind": "field",
16169
- "name": "hasSubmitButton",
16213
+ "name": "submitOnEnter",
16214
+ "type": {
16215
+ "text": "boolean"
16216
+ },
16217
+ "default": "false",
16218
+ "description": "Submits the filters when Enter is pressed in a text field.",
16219
+ "attribute": "submit-on-enter"
16220
+ },
16221
+ {
16222
+ "kind": "field",
16223
+ "name": "loadingText",
16224
+ "type": {
16225
+ "text": "string"
16226
+ },
16227
+ "default": "'Searching...'",
16228
+ "description": "Shown on the submit button while results load.",
16229
+ "attribute": "loading-text"
16230
+ },
16231
+ {
16232
+ "kind": "field",
16233
+ "name": "loading",
16170
16234
  "type": {
16171
16235
  "text": "boolean"
16172
16236
  },
16173
16237
  "privacy": "private",
16174
16238
  "default": "false"
16175
16239
  },
16240
+ {
16241
+ "kind": "field",
16242
+ "name": "submitButton",
16243
+ "type": {
16244
+ "text": "ZnButton | null"
16245
+ },
16246
+ "privacy": "private",
16247
+ "default": "null"
16248
+ },
16176
16249
  {
16177
16250
  "kind": "field",
16178
16251
  "name": "handleSubmit"
16179
16252
  },
16253
+ {
16254
+ "kind": "method",
16255
+ "name": "setLoading",
16256
+ "privacy": "private",
16257
+ "parameters": [
16258
+ {
16259
+ "name": "loading",
16260
+ "type": {
16261
+ "text": "boolean"
16262
+ }
16263
+ }
16264
+ ]
16265
+ },
16266
+ {
16267
+ "kind": "field",
16268
+ "name": "handleKeyDown"
16269
+ },
16180
16270
  {
16181
16271
  "kind": "method",
16182
16272
  "name": "renderDefaultButton",
@@ -16197,6 +16287,24 @@
16197
16287
  },
16198
16288
  "default": "'Filter'",
16199
16289
  "fieldName": "button"
16290
+ },
16291
+ {
16292
+ "name": "submit-on-enter",
16293
+ "type": {
16294
+ "text": "boolean"
16295
+ },
16296
+ "default": "false",
16297
+ "description": "Submits the filters when Enter is pressed in a text field.",
16298
+ "fieldName": "submitOnEnter"
16299
+ },
16300
+ {
16301
+ "name": "loading-text",
16302
+ "type": {
16303
+ "text": "string"
16304
+ },
16305
+ "default": "'Searching...'",
16306
+ "description": "Shown on the submit button while results load.",
16307
+ "fieldName": "loadingText"
16200
16308
  }
16201
16309
  ],
16202
16310
  "superclass": {
@@ -50952,7 +51060,7 @@
50952
51060
  "name": "hasSlotController",
50953
51061
  "privacy": "private",
50954
51062
  "readonly": true,
50955
- "default": "new HasSlotController(this, '[default]', 'properties', 'actions', 'image')"
51063
+ "default": "new HasSlotController(this, '[default]', 'caption', 'description', 'properties', 'actions', 'image')"
50956
51064
  },
50957
51065
  {
50958
51066
  "kind": "field",
@@ -54195,7 +54303,7 @@
54195
54303
  "package": {
54196
54304
  "name": "@kubex/zinc",
54197
54305
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
54198
- "version": "1.1.183",
54306
+ "version": "1.1.185",
54199
54307
  "author": "",
54200
54308
  "license": "MIT"
54201
54309
  }
@@ -348,7 +348,17 @@
348
348
  { "name": "center" }
349
349
  ]
350
350
  },
351
- { "name": "loading", "values": [] }
351
+ { "name": "loading", "values": [] },
352
+ {
353
+ "name": "processing",
354
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
355
+ "values": []
356
+ },
357
+ {
358
+ "name": "processing-text",
359
+ "description": "Replaces the label while processing.",
360
+ "values": []
361
+ }
352
362
  ],
353
363
  "references": [
354
364
  {
@@ -1867,7 +1877,19 @@
1867
1877
  {
1868
1878
  "name": "zn-filter-wrapper",
1869
1879
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
1870
- "attributes": [{ "name": "button", "values": [] }],
1880
+ "attributes": [
1881
+ { "name": "button", "values": [] },
1882
+ {
1883
+ "name": "submit-on-enter",
1884
+ "description": "Submits the filters when Enter is pressed in a text field.",
1885
+ "values": []
1886
+ },
1887
+ {
1888
+ "name": "loading-text",
1889
+ "description": "Shown on the submit button while results load.",
1890
+ "values": []
1891
+ }
1892
+ ],
1871
1893
  "references": [
1872
1894
  {
1873
1895
  "name": "Documentation",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@kubex/zinc",
4
- "version": "1.1.183",
4
+ "version": "1.1.185",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -547,6 +547,16 @@
547
547
  {
548
548
  "name": "loading",
549
549
  "value": { "type": "boolean", "default": "false" }
550
+ },
551
+ {
552
+ "name": "processing",
553
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
554
+ "value": { "type": "boolean", "default": "false" }
555
+ },
556
+ {
557
+ "name": "processing-text",
558
+ "description": "Replaces the label while processing.",
559
+ "value": { "type": "string", "default": "''" }
550
560
  }
551
561
  ],
552
562
  "slots": [
@@ -666,6 +676,16 @@
666
676
  "type": "'left' | 'right' | 'center' | string"
667
677
  },
668
678
  { "name": "loading", "type": "boolean" },
679
+ {
680
+ "name": "processing",
681
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
682
+ "type": "boolean"
683
+ },
684
+ {
685
+ "name": "processingText",
686
+ "description": "Replaces the label while processing.",
687
+ "type": "string"
688
+ },
669
689
  { "name": "validity" },
670
690
  { "name": "validationMessage" },
671
691
  { "name": "handleClick" }
@@ -4354,6 +4374,16 @@
4354
4374
  {
4355
4375
  "name": "button",
4356
4376
  "value": { "type": "string", "default": "'Filter'" }
4377
+ },
4378
+ {
4379
+ "name": "submit-on-enter",
4380
+ "description": "Submits the filters when Enter is pressed in a text field.",
4381
+ "value": { "type": "boolean", "default": "false" }
4382
+ },
4383
+ {
4384
+ "name": "loading-text",
4385
+ "description": "Shown on the submit button while results load.",
4386
+ "value": { "type": "string", "default": "'Searching...'" }
4357
4387
  }
4358
4388
  ],
4359
4389
  "slots": [
@@ -4366,7 +4396,18 @@
4366
4396
  "js": {
4367
4397
  "properties": [
4368
4398
  { "name": "button", "type": "string" },
4369
- { "name": "handleSubmit" }
4399
+ {
4400
+ "name": "submitOnEnter",
4401
+ "description": "Submits the filters when Enter is pressed in a text field.",
4402
+ "type": "boolean"
4403
+ },
4404
+ {
4405
+ "name": "loadingText",
4406
+ "description": "Shown on the submit button while results load.",
4407
+ "type": "string"
4408
+ },
4409
+ { "name": "handleSubmit" },
4410
+ { "name": "handleKeyDown" }
4370
4411
  ],
4371
4412
  "events": [
4372
4413
  {
package/dist/zn.d.ts CHANGED
@@ -1268,6 +1268,10 @@ declare module "components/button/button.component" {
1268
1268
  loadingText: string;
1269
1269
  loadingTextPosition: 'left' | 'right' | 'center' | string;
1270
1270
  loading: boolean;
1271
+ /** Shows a spinner and ignores clicks, e.g. while a request is in flight. */
1272
+ processing: boolean;
1273
+ /** Replaces the label while processing. */
1274
+ processingText: string;
1271
1275
  get validity(): ValidityState;
1272
1276
  get validationMessage(): string;
1273
1277
  firstUpdated(): void;
@@ -4260,7 +4264,7 @@ declare module "components/data-table/data-table.component" {
4260
4264
  private _columnDefaultsApplied;
4261
4265
  private _formatTemplates;
4262
4266
  requestParams: Record<string, any>;
4263
- refresh(): void;
4267
+ refresh(): Promise<void>;
4264
4268
  private visibleHeaders;
4265
4269
  private selectableHeaders;
4266
4270
  private isColumnVisible;
@@ -4424,8 +4428,8 @@ declare module "components/cols/cols.component" {
4424
4428
  disconnectedCallback(): void;
4425
4429
  protected updated(changed: PropertyValues<this>): void;
4426
4430
  /**
4427
- * Flags each child that ends its row as laid out, so `divide` only draws between neighbours on the same row
4428
- * however the columns have wrapped.
4431
+ * Flags each child that ends its row, and each child on the last row, as laid out, so `divide` only draws
4432
+ * between neighbours however the columns have wrapped.
4429
4433
  */
4430
4434
  private markRowEnds;
4431
4435
  /**
@@ -9161,9 +9165,17 @@ declare module "components/filter-wrapper/filter-wrapper.component" {
9161
9165
  export default class ZnFilterWrapper extends ZincElement {
9162
9166
  static styles: CSSResultGroup;
9163
9167
  button: string;
9164
- private hasSubmitButton;
9168
+ /** Submits the filters when Enter is pressed in a text field. */
9169
+ submitOnEnter: boolean;
9170
+ /** Shown on the submit button while results load. */
9171
+ loadingText: string;
9172
+ private loading;
9173
+ private submitButton;
9165
9174
  handleSubmit: (event: Event) => void;
9175
+ private setLoading;
9176
+ handleKeyDown: (event: KeyboardEvent) => void;
9166
9177
  connectedCallback(): void;
9178
+ disconnectedCallback(): void;
9167
9179
  private renderDefaultButton;
9168
9180
  render(): import("lit-html").TemplateResult<1>;
9169
9181
  }