@truenas/ui-components 0.8.18 → 0.8.19
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.
|
@@ -541,7 +541,7 @@ function createTnOptionsDataSource(config) {
|
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
|
-
let nextId$
|
|
544
|
+
let nextId$9 = 0;
|
|
545
545
|
const TN_AUTOCOMPLETE_DEFAULT_LABELS = {
|
|
546
546
|
placeholder: "Type to search...",
|
|
547
547
|
loading: "Loading...",
|
|
@@ -555,7 +555,7 @@ var TnAutocompleteComponent = class TnAutocompleteComponent {
|
|
|
555
555
|
elementRef = inject(ElementRef);
|
|
556
556
|
overlay = inject(Overlay);
|
|
557
557
|
viewContainerRef = inject(ViewContainerRef);
|
|
558
|
-
uid = `tn-autocomplete-${nextId$
|
|
558
|
+
uid = `tn-autocomplete-${nextId$9++}`;
|
|
559
559
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
560
560
|
compareWith = input(void 0, ...ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []);
|
|
561
561
|
placeholder = input(void 0, ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
@@ -5151,7 +5151,7 @@ function tnIconMarker(iconName, library) {
|
|
|
5151
5151
|
function libIconMarker(iconName) {
|
|
5152
5152
|
return iconName;
|
|
5153
5153
|
}
|
|
5154
|
-
let nextId$
|
|
5154
|
+
let nextId$8 = 0;
|
|
5155
5155
|
var TnInputComponent = class TnInputComponent {
|
|
5156
5156
|
inputEl = viewChild.required("inputEl", ...ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []);
|
|
5157
5157
|
inputType = input(InputType.PlainText, ...ngDevMode ? [{ debugName: "inputType" }] : /* istanbul ignore next */ []);
|
|
@@ -5206,7 +5206,7 @@ var TnInputComponent = class TnInputComponent {
|
|
|
5206
5206
|
const base = this.testId();
|
|
5207
5207
|
return ["toggle-password", ...Array.isArray(base) ? base : [base]];
|
|
5208
5208
|
}, ...ngDevMode ? [{ debugName: "passwordToggleTestId" }] : /* istanbul ignore next */ []);
|
|
5209
|
-
id = `tn-input-${nextId$
|
|
5209
|
+
id = `tn-input-${nextId$8++}`;
|
|
5210
5210
|
value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
5211
5211
|
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
5212
5212
|
isDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
@@ -6544,11 +6544,11 @@ const TN_CHIP_INPUT_LABELS = new InjectionToken("TN_CHIP_INPUT_LABELS", {
|
|
|
6544
6544
|
providedIn: "root",
|
|
6545
6545
|
factory: () => TN_CHIP_INPUT_DEFAULT_LABELS
|
|
6546
6546
|
});
|
|
6547
|
-
let nextId$
|
|
6547
|
+
let nextId$7 = 0;
|
|
6548
6548
|
var TnChipInputComponent = class TnChipInputComponent {
|
|
6549
6549
|
overlay = inject(Overlay);
|
|
6550
6550
|
viewContainerRef = inject(ViewContainerRef);
|
|
6551
|
-
uid = `tn-chip-input-${nextId$
|
|
6551
|
+
uid = `tn-chip-input-${nextId$7++}`;
|
|
6552
6552
|
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
6553
6553
|
disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
6554
6554
|
separatorKeys = input(["Enter", ","], ...ngDevMode ? [{ debugName: "separatorKeys" }] : /* istanbul ignore next */ []);
|
|
@@ -8352,6 +8352,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8352
8352
|
}]
|
|
8353
8353
|
}
|
|
8354
8354
|
});
|
|
8355
|
+
let nextId$6 = 0;
|
|
8355
8356
|
var TnSlideToggleComponent = class TnSlideToggleComponent {
|
|
8356
8357
|
toggleEl = viewChild.required("toggleEl", ...ngDevMode ? [{ debugName: "toggleEl" }] : /* istanbul ignore next */ []);
|
|
8357
8358
|
labelPosition = input("after", ...ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []);
|
|
@@ -8367,7 +8368,7 @@ var TnSlideToggleComponent = class TnSlideToggleComponent {
|
|
|
8367
8368
|
checked = input(false, ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
8368
8369
|
change = output();
|
|
8369
8370
|
toggleChange = output();
|
|
8370
|
-
id = `tn-slide-toggle-${
|
|
8371
|
+
id = `tn-slide-toggle-${nextId$6++}`;
|
|
8371
8372
|
internalChecked = signal(false, ...ngDevMode ? [{ debugName: "internalChecked" }] : /* istanbul ignore next */ []);
|
|
8372
8373
|
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
8373
8374
|
isDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
@@ -9645,6 +9646,7 @@ var TnExpansionPanelHarness = class TnExpansionPanelHarness extends ComponentHar
|
|
|
9645
9646
|
if (await this.isExpanded()) await this.toggle();
|
|
9646
9647
|
}
|
|
9647
9648
|
};
|
|
9649
|
+
let nextId$5 = 0;
|
|
9648
9650
|
var TnCheckboxLabelDirective = class TnCheckboxLabelDirective {
|
|
9649
9651
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9650
9652
|
minVersion: "12.0.0",
|
|
@@ -9690,7 +9692,7 @@ var TnCheckboxComponent = class TnCheckboxComponent {
|
|
|
9690
9692
|
change = output();
|
|
9691
9693
|
labelContent = contentChildren(TnCheckboxLabelDirective, ...ngDevMode ? [{ debugName: "labelContent" }] : /* istanbul ignore next */ []);
|
|
9692
9694
|
hasProjectedLabel = computed(() => this.labelContent().length > 0, ...ngDevMode ? [{ debugName: "hasProjectedLabel" }] : /* istanbul ignore next */ []);
|
|
9693
|
-
id = `tn-checkbox-${
|
|
9695
|
+
id = `tn-checkbox-${nextId$5++}`;
|
|
9694
9696
|
internalChecked = signal(false, ...ngDevMode ? [{ debugName: "internalChecked" }] : /* istanbul ignore next */ []);
|
|
9695
9697
|
cvaControlled = signal(false, ...ngDevMode ? [{ debugName: "cvaControlled" }] : /* istanbul ignore next */ []);
|
|
9696
9698
|
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
@@ -10019,7 +10021,7 @@ var TnCheckboxHarness = class TnCheckboxHarness extends ComponentHarness {
|
|
|
10019
10021
|
await (await this._label()).click();
|
|
10020
10022
|
}
|
|
10021
10023
|
};
|
|
10022
|
-
let nextId$
|
|
10024
|
+
let nextId$4 = 0;
|
|
10023
10025
|
var TnCheckboxGroupComponent = class TnCheckboxGroupComponent {
|
|
10024
10026
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
10025
10027
|
inline = input(false, ...ngDevMode ? [{ debugName: "inline" }] : /* istanbul ignore next */ []);
|
|
@@ -10035,7 +10037,7 @@ var TnCheckboxGroupComponent = class TnCheckboxGroupComponent {
|
|
|
10035
10037
|
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
10036
10038
|
isDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
10037
10039
|
ariaRequired = computed(() => this.required() || this.fieldAria.required() === true, ...ngDevMode ? [{ debugName: "ariaRequired" }] : /* istanbul ignore next */ []);
|
|
10038
|
-
requiredTextId = `tn-checkbox-group-required-${nextId$
|
|
10040
|
+
requiredTextId = `tn-checkbox-group-required-${nextId$4++}`;
|
|
10039
10041
|
resolvedAriaLabel = computed(() => {
|
|
10040
10042
|
const label = this.ariaLabel();
|
|
10041
10043
|
if (!label) return null;
|
|
@@ -10325,6 +10327,7 @@ var TnCheckboxGroupHarness = class TnCheckboxGroupHarness extends ComponentHarne
|
|
|
10325
10327
|
}
|
|
10326
10328
|
};
|
|
10327
10329
|
const TN_RADIO_GROUP = new InjectionToken("TN_RADIO_GROUP");
|
|
10330
|
+
let nextId$3 = 0;
|
|
10328
10331
|
var TnRadioComponent = class TnRadioComponent {
|
|
10329
10332
|
radioEl = viewChild.required("radioEl", ...ngDevMode ? [{ debugName: "radioEl" }] : /* istanbul ignore next */ []);
|
|
10330
10333
|
label = input("Radio", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
@@ -10336,7 +10339,7 @@ var TnRadioComponent = class TnRadioComponent {
|
|
|
10336
10339
|
resolvedTestId = controlTestId(this.testId);
|
|
10337
10340
|
error = input(null, ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
10338
10341
|
change = output();
|
|
10339
|
-
id = `tn-radio-${
|
|
10342
|
+
id = `tn-radio-${nextId$3++}`;
|
|
10340
10343
|
group = inject(TN_RADIO_GROUP, { optional: true });
|
|
10341
10344
|
standaloneChecked = signal(false, ...ngDevMode ? [{ debugName: "standaloneChecked" }] : /* istanbul ignore next */ []);
|
|
10342
10345
|
checked = computed(() => this.group ? this.group.isSelected(this.value()) : this.standaloneChecked(), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|