@kubex/zinc 1.1.134 → 1.1.135
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/custom-elements.json +1065 -1008
- package/dist/vscode.html-custom-data.json +175 -160
- package/dist/web-types.json +384 -354
- package/dist/zn.d.ts +25 -1
- package/dist/zn.min.js +228 -227
- package/package.json +1 -1
- package/src/components/data-select/data-select.component.ts +7 -0
- package/src/components/inline-edit/inline-edit.component.ts +6 -0
- package/src/components/select/select.component.ts +16 -2
- package/src/components/select/select.test.ts +103 -0
- package/src/internal/conditional.ts +53 -35
package/dist/zn.d.ts
CHANGED
|
@@ -2560,17 +2560,25 @@ declare module "internal/conditional" {
|
|
|
2560
2560
|
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2561
2561
|
export interface ConditionalHost {
|
|
2562
2562
|
conditional: string;
|
|
2563
|
+
requires: string;
|
|
2563
2564
|
disabled: boolean;
|
|
2564
2565
|
}
|
|
2565
|
-
/**
|
|
2566
|
+
/**
|
|
2567
|
+
* A reactive controller that drives the host's disabled state from other form
|
|
2568
|
+
* controls: `conditional` disables the host once a linked control has a value,
|
|
2569
|
+
* `requires` keeps it disabled until every named control has one.
|
|
2570
|
+
*/
|
|
2566
2571
|
export class ConditionalController implements ReactiveController {
|
|
2567
2572
|
host: ReactiveControllerHost & Element & ConditionalHost;
|
|
2568
2573
|
private conditionals;
|
|
2574
|
+
private required;
|
|
2569
2575
|
private initiallyDisabled;
|
|
2570
2576
|
private readonly handleChange;
|
|
2571
2577
|
constructor(host: ReactiveControllerHost & Element & ConditionalHost);
|
|
2572
2578
|
/** Call from the host's `firstUpdated()` to parse IDs, find elements, attach listeners, and run the initial check. */
|
|
2573
2579
|
setup(): void;
|
|
2580
|
+
/** Resolve a comma-separated list of ids or names to the controls they name. */
|
|
2581
|
+
private resolve;
|
|
2574
2582
|
hostConnected(): void;
|
|
2575
2583
|
hostDisconnected(): void;
|
|
2576
2584
|
/** Re-evaluate the conditional state. Call from the host when needed. */
|
|
@@ -2862,6 +2870,12 @@ declare module "components/select/select.component" {
|
|
|
2862
2870
|
selectFirst: boolean;
|
|
2863
2871
|
distinct: string;
|
|
2864
2872
|
conditional: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* Ids or names of controls that must have a value before this one becomes
|
|
2875
|
+
* usable, comma separated. The control stays disabled until every one of them
|
|
2876
|
+
* is filled, and is disabled again if any is cleared.
|
|
2877
|
+
*/
|
|
2878
|
+
requires: string;
|
|
2865
2879
|
/**
|
|
2866
2880
|
* The URL to fetch options from. When set, the component fetches JSON from this URL and renders the results as
|
|
2867
2881
|
* options. The expected format is an array of objects with `key` and `value` properties:
|
|
@@ -3623,6 +3637,11 @@ declare module "components/data-select/data-select.component" {
|
|
|
3623
3637
|
selectFirst: boolean;
|
|
3624
3638
|
distinct: string;
|
|
3625
3639
|
conditional: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* Ids or names of controls that must have a value before this one becomes
|
|
3642
|
+
* usable, comma separated. Forwarded to the underlying select.
|
|
3643
|
+
*/
|
|
3644
|
+
requires: string;
|
|
3626
3645
|
protected readonly formControlController: FormControlController;
|
|
3627
3646
|
private readonly selectObserver;
|
|
3628
3647
|
get validationMessage(): string;
|
|
@@ -5534,6 +5553,11 @@ declare module "components/inline-edit/inline-edit.component" {
|
|
|
5534
5553
|
*/
|
|
5535
5554
|
clearOnEdit: boolean;
|
|
5536
5555
|
conditional: string;
|
|
5556
|
+
/**
|
|
5557
|
+
* Ids or names of controls that must have a value before this one becomes
|
|
5558
|
+
* usable, comma separated.
|
|
5559
|
+
*/
|
|
5560
|
+
requires: string;
|
|
5537
5561
|
disabled: boolean;
|
|
5538
5562
|
inline: boolean;
|
|
5539
5563
|
padded: boolean;
|