@uni-design-system/uni-angular 11.0.0 → 11.1.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/CHANGELOG.md +23 -0
- package/fesm2022/uni-design-system-uni-angular.mjs +460 -73
- package/fesm2022/uni-design-system-uni-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +46 -10
- package/types/uni-design-system-uni-angular.d.ts +185 -13
- package/types/uni-design-system-uni-angular.d.ts.map +1 -1
|
@@ -3325,7 +3325,7 @@ class UniSymbolComponent extends BaseComponent {
|
|
|
3325
3325
|
}], null, { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], grade: [{ type: i0.Input, args: [{ isSignal: true, alias: "grade", required: false }] }], opticalSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "opticalSize", required: false }] }] }); })();
|
|
3326
3326
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniSymbolComponent, { className: "UniSymbolComponent", filePath: "lib/components/symbol/symbol.component.ts", lineNumber: 20 }); })();
|
|
3327
3327
|
|
|
3328
|
-
const _c0$
|
|
3328
|
+
const _c0$J = ["*"];
|
|
3329
3329
|
function UniIconButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3330
3330
|
i0.ɵɵelement(0, "uni-icon", 0);
|
|
3331
3331
|
} }
|
|
@@ -3475,7 +3475,7 @@ class UniIconButtonComponent {
|
|
|
3475
3475
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniIconButtonComponent, selectors: [["button", "uni-icon-button", ""], ["button", "icon-button", ""]], hostVars: 5, hostBindings: function UniIconButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3476
3476
|
i0.ɵɵattribute("disabled", ctx.disable() || ctx.loading() || null)("aria-busy", ctx.loading() ? "true" : null)("aria-label", ctx.ariaLabel() || null);
|
|
3477
3477
|
i0.ɵɵclassMap(ctx.className());
|
|
3478
|
-
} }, inputs: { ariaLabel: [1, "ariaLabel"], iconName: [1, "iconName"], symbolName: [1, "symbolName"], variant: [1, "variant"], size: [1, "size"], disable: [1, "disable"], loading: [1, "loading"], opticalSize: [1, "opticalSize"] }, features: [i0.ɵɵHostDirectivesFeature([RippleDirective])], ngContentSelectors: _c0$
|
|
3478
|
+
} }, inputs: { ariaLabel: [1, "ariaLabel"], iconName: [1, "iconName"], symbolName: [1, "symbolName"], variant: [1, "variant"], size: [1, "size"], disable: [1, "disable"], loading: [1, "loading"], opticalSize: [1, "opticalSize"] }, features: [i0.ɵɵHostDirectivesFeature([RippleDirective])], ngContentSelectors: _c0$J, decls: 5, vars: 3, consts: [["name", "spinner"], [3, "name", "opticalSize"], [3, "name", "size"]], template: function UniIconButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3479
3479
|
i0.ɵɵprojectionDef();
|
|
3480
3480
|
i0.ɵɵconditionalCreate(0, UniIconButtonComponent_Conditional_0_Template, 1, 0, "uni-icon", 0)(1, UniIconButtonComponent_Conditional_1_Template, 1, 2, "uni-symbol", 1)(2, UniIconButtonComponent_Conditional_2_Template, 1, 2, "uni-icon", 2);
|
|
3481
3481
|
i0.ɵɵelementStart(3, "span");
|
|
@@ -3907,7 +3907,7 @@ class UniWrapDirective extends UniBoxDirective {
|
|
|
3907
3907
|
}]
|
|
3908
3908
|
}], () => [], { display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], wrapItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrapItems", required: false }] }] }); })();
|
|
3909
3909
|
|
|
3910
|
-
const _c0$
|
|
3910
|
+
const _c0$I = ["*"];
|
|
3911
3911
|
class UniInputBoxComponent extends BaseComponent {
|
|
3912
3912
|
constructor() {
|
|
3913
3913
|
super(...arguments);
|
|
@@ -4002,7 +4002,7 @@ class UniInputBoxComponent extends BaseComponent {
|
|
|
4002
4002
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniInputBoxComponent_BaseFactory; return function UniInputBoxComponent_Factory(__ngFactoryType__) { return (ɵUniInputBoxComponent_BaseFactory || (ɵUniInputBoxComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniInputBoxComponent)))(__ngFactoryType__ || UniInputBoxComponent); }; })(); }
|
|
4003
4003
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniInputBoxComponent, selectors: [["uni-input-box"]], hostVars: 2, hostBindings: function UniInputBoxComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
4004
4004
|
i0.ɵɵclassMap(ctx.className);
|
|
4005
|
-
} }, inputs: { disabled: [1, "disabled"], error: [1, "error"], minWidth: [1, "minWidth"], height: [1, "height"], width: [1, "width"], fullWidth: [1, "fullWidth"], grow: [1, "grow"], managedInset: [1, "managedInset"] }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'input' }]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$
|
|
4005
|
+
} }, inputs: { disabled: [1, "disabled"], error: [1, "error"], minWidth: [1, "minWidth"], height: [1, "height"], width: [1, "width"], fullWidth: [1, "fullWidth"], grow: [1, "grow"], managedInset: [1, "managedInset"] }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'input' }]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$I, decls: 2, vars: 12, consts: [["row-layout", "", "alignItems", "center", "position", "relative", 3, "height", "minHeight", "containerColor", "border", "borderRadius", "shadow", "minWidth", "width", "fullWidth", "grow"]], template: function UniInputBoxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4006
4006
|
i0.ɵɵprojectionDef();
|
|
4007
4007
|
i0.ɵɵelementStart(0, "div", 0);
|
|
4008
4008
|
i0.ɵɵprojection(1);
|
|
@@ -4018,7 +4018,7 @@ class UniInputBoxComponent extends BaseComponent {
|
|
|
4018
4018
|
}], null, { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], grow: [{ type: i0.Input, args: [{ isSignal: true, alias: "grow", required: false }] }], managedInset: [{ type: i0.Input, args: [{ isSignal: true, alias: "managedInset", required: false }] }] }); })();
|
|
4019
4019
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniInputBoxComponent, { className: "UniInputBoxComponent", filePath: "lib/components/input-box/input-box.component.ts", lineNumber: 17 }); })();
|
|
4020
4020
|
|
|
4021
|
-
const _c0$
|
|
4021
|
+
const _c0$H = ["field"];
|
|
4022
4022
|
const _c1$n = ["listbox"];
|
|
4023
4023
|
function UniComboboxComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
4024
4024
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -4554,7 +4554,7 @@ class UniComboboxComponent extends BaseComponent {
|
|
|
4554
4554
|
}
|
|
4555
4555
|
static { this.ɵfac = function UniComboboxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniComboboxComponent)(); }; }
|
|
4556
4556
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniComboboxComponent, selectors: [["uni-combobox"], ["Combobox"]], viewQuery: function UniComboboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4557
|
-
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$
|
|
4557
|
+
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$H, 5)(ctx.listRef, _c1$n, 5);
|
|
4558
4558
|
} if (rf & 2) {
|
|
4559
4559
|
i0.ɵɵqueryAdvance(2);
|
|
4560
4560
|
} }, hostVars: 2, hostBindings: function UniComboboxComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -4604,7 +4604,7 @@ class UniComboboxComponent extends BaseComponent {
|
|
|
4604
4604
|
}], () => [], { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], commitOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "commitOnBlur", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], filterLocally: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocally", required: false }] }], filterWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterWith", required: false }] }], debounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceTime", required: false }] }], query: [{ type: i0.Output, args: ["query"] }], selected: [{ type: i0.Output, args: ["selected"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], rejected: [{ type: i0.Output, args: ["rejected"] }], inputRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }], listRef: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }] }); })();
|
|
4605
4605
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniComboboxComponent, { className: "UniComboboxComponent", filePath: "lib/components/combobox/combobox.component.ts", lineNumber: 54 }); })();
|
|
4606
4606
|
|
|
4607
|
-
const _forTrack0$
|
|
4607
|
+
const _forTrack0$a = ($index, $item) => $item.full;
|
|
4608
4608
|
const _forTrack1 = ($index, $item) => $item[0].date;
|
|
4609
4609
|
const _forTrack2 = ($index, $item) => $item.date;
|
|
4610
4610
|
function UniCalendarComponent_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -5214,7 +5214,7 @@ class UniCalendarComponent extends BaseComponent {
|
|
|
5214
5214
|
i0.ɵɵelementStart(7, "div", 2);
|
|
5215
5215
|
i0.ɵɵlistener("keydown", function UniCalendarComponent_Template_div_keydown_7_listener($event) { return ctx.onGridKeydown($event); });
|
|
5216
5216
|
i0.ɵɵelementStart(8, "div", 3);
|
|
5217
|
-
i0.ɵɵrepeaterCreate(9, UniCalendarComponent_For_10_Template, 3, 4, "div", 4, _forTrack0$
|
|
5217
|
+
i0.ɵɵrepeaterCreate(9, UniCalendarComponent_For_10_Template, 3, 4, "div", 4, _forTrack0$a);
|
|
5218
5218
|
i0.ɵɵelementEnd();
|
|
5219
5219
|
i0.ɵɵrepeaterCreate(11, UniCalendarComponent_For_12_Template, 3, 2, "div", 5, _forTrack1);
|
|
5220
5220
|
i0.ɵɵelementEnd();
|
|
@@ -5253,7 +5253,7 @@ class UniCalendarComponent extends BaseComponent {
|
|
|
5253
5253
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], month: [{ type: i0.Input, args: [{ isSignal: true, alias: "month", required: false }] }, { type: i0.Output, args: ["monthChange"] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], markers: [{ type: i0.Input, args: [{ isSignal: true, alias: "markers", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], weekStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStart", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }] }); })();
|
|
5254
5254
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniCalendarComponent, { className: "UniCalendarComponent", filePath: "lib/components/calendar/calendar.component.ts", lineNumber: 83 }); })();
|
|
5255
5255
|
|
|
5256
|
-
const _c0$
|
|
5256
|
+
const _c0$G = ["dropdown"];
|
|
5257
5257
|
const _c1$m = ["*"];
|
|
5258
5258
|
class UniDropdownComponent extends BaseComponent {
|
|
5259
5259
|
constructor() {
|
|
@@ -5402,7 +5402,7 @@ class UniDropdownComponent extends BaseComponent {
|
|
|
5402
5402
|
}
|
|
5403
5403
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniDropdownComponent_BaseFactory; return function UniDropdownComponent_Factory(__ngFactoryType__) { return (ɵUniDropdownComponent_BaseFactory || (ɵUniDropdownComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniDropdownComponent)))(__ngFactoryType__ || UniDropdownComponent); }; })(); }
|
|
5404
5404
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniDropdownComponent, selectors: [["uni-dropdown"]], viewQuery: function UniDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5405
|
-
i0.ɵɵviewQuery(_c0$
|
|
5405
|
+
i0.ɵɵviewQuery(_c0$G, 7);
|
|
5406
5406
|
} if (rf & 2) {
|
|
5407
5407
|
let _t;
|
|
5408
5408
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownRef = _t.first);
|
|
@@ -5448,7 +5448,7 @@ class UniDropdownComponent extends BaseComponent {
|
|
|
5448
5448
|
}] }); })();
|
|
5449
5449
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniDropdownComponent, { className: "UniDropdownComponent", filePath: "lib/components/dropdown/dropdown.component.ts", lineNumber: 67 }); })();
|
|
5450
5450
|
|
|
5451
|
-
const _c0$
|
|
5451
|
+
const _c0$F = ["field"];
|
|
5452
5452
|
const _c1$l = ["toggle"];
|
|
5453
5453
|
const _c2$8 = ["popupDialog"];
|
|
5454
5454
|
function UniDateInputComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -5843,7 +5843,7 @@ class UniDateInputComponent extends BaseComponent {
|
|
|
5843
5843
|
}
|
|
5844
5844
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniDateInputComponent_BaseFactory; return function UniDateInputComponent_Factory(__ngFactoryType__) { return (ɵUniDateInputComponent_BaseFactory || (ɵUniDateInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniDateInputComponent)))(__ngFactoryType__ || UniDateInputComponent); }; })(); }
|
|
5845
5845
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniDateInputComponent, selectors: [["uni-date-input"], ["DateInput"]], viewQuery: function UniDateInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5846
|
-
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$
|
|
5846
|
+
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$F, 5)(ctx.toggleRef, _c1$l, 5, ElementRef)(ctx.popupRef, _c2$8, 5)(ctx.dropdown, UniDropdownComponent, 5)(ctx.calendar, UniCalendarComponent, 5);
|
|
5847
5847
|
} if (rf & 2) {
|
|
5848
5848
|
i0.ɵɵqueryAdvance(5);
|
|
5849
5849
|
} }, hostVars: 2, hostBindings: function UniDateInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -5884,7 +5884,7 @@ class UniDateInputComponent extends BaseComponent {
|
|
|
5884
5884
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], displayFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayFormat", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], commitOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "commitOnBlur", required: false }] }], parse: [{ type: i0.Input, args: [{ isSignal: true, alias: "parse", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], markers: [{ type: i0.Input, args: [{ isSignal: true, alias: "markers", required: false }] }], weekStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStart", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], rejected: [{ type: i0.Output, args: ["rejected"] }], inputRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }], toggleRef: [{ type: i0.ViewChild, args: ['toggle', { ...{ read: ElementRef }, isSignal: true }] }], popupRef: [{ type: i0.ViewChild, args: ['popupDialog', { isSignal: true }] }], dropdown: [{ type: i0.ViewChild, args: [i0.forwardRef(() => UniDropdownComponent), { isSignal: true }] }], calendar: [{ type: i0.ViewChild, args: [i0.forwardRef(() => UniCalendarComponent), { isSignal: true }] }] }); })();
|
|
5885
5885
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniDateInputComponent, { className: "UniDateInputComponent", filePath: "lib/components/date-input/date-input.component.ts", lineNumber: 58 }); })();
|
|
5886
5886
|
|
|
5887
|
-
const _c0$
|
|
5887
|
+
const _c0$E = ["field"];
|
|
5888
5888
|
const _c1$k = ["listbox"];
|
|
5889
5889
|
function UniTimeInputComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
5890
5890
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -6320,7 +6320,7 @@ class UniTimeInputComponent extends BaseComponent {
|
|
|
6320
6320
|
}
|
|
6321
6321
|
static { this.ɵfac = function UniTimeInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniTimeInputComponent)(); }; }
|
|
6322
6322
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniTimeInputComponent, selectors: [["uni-time-input"], ["TimeInput"]], viewQuery: function UniTimeInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6323
|
-
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$
|
|
6323
|
+
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$E, 5)(ctx.listRef, _c1$k, 5);
|
|
6324
6324
|
} if (rf & 2) {
|
|
6325
6325
|
i0.ɵɵqueryAdvance(2);
|
|
6326
6326
|
} }, hostVars: 2, hostBindings: function UniTimeInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -6556,7 +6556,7 @@ class UniDateTimeInputComponent extends BaseComponent {
|
|
|
6556
6556
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], minDateTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDateTime", required: false }] }], maxDateTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDateTime", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], markers: [{ type: i0.Input, args: [{ isSignal: true, alias: "markers", required: false }] }], slots: [{ type: i0.Input, args: [{ isSignal: true, alias: "slots", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], hour12: [{ type: i0.Input, args: [{ isSignal: true, alias: "hour12", required: false }] }], weekStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStart", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], slotsFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotsFor", required: false }] }] }); })();
|
|
6557
6557
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniDateTimeInputComponent, { className: "UniDateTimeInputComponent", filePath: "lib/components/date-time-input/date-time-input.component.ts", lineNumber: 42 }); })();
|
|
6558
6558
|
|
|
6559
|
-
const _c0$
|
|
6559
|
+
const _c0$D = [[["pre-input"], ["", "pre-input", ""]], [["post-input"], ["", "post-input", ""]]];
|
|
6560
6560
|
const _c1$j = ["pre-input, [pre-input]", "post-input, [post-input]"];
|
|
6561
6561
|
class UniInputComponent {
|
|
6562
6562
|
constructor() {
|
|
@@ -6671,7 +6671,7 @@ class UniInputComponent {
|
|
|
6671
6671
|
}
|
|
6672
6672
|
static { this.ɵfac = function UniInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniInputComponent)(); }; }
|
|
6673
6673
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniInputComponent, selectors: [["uni-input"]], inputs: { value: [1, "value"], disabled: [1, "disabled"], touched: [1, "touched"], invalid: [1, "invalid"], dirty: [1, "dirty"], required: [1, "required"], ariaDescribedBy: [1, "ariaDescribedBy"], label: [1, "label"], placeholder: [1, "placeholder"], type: [1, "type"], readonly: [1, "readonly"], name: [1, "name"], minAttr: [1, "min", "minAttr"], maxAttr: [1, "max", "maxAttr"], minLength: [1, "minLength"], maxLength: [1, "maxLength"], pattern: [1, "pattern"], step: [1, "step"], autocomplete: [1, "autocomplete"], inputMode: [1, "inputMode"], list: [1, "list"], spellcheck: [1, "spellcheck"], width: [1, "width"], fullWidth: [1, "fullWidth"], grow: [1, "grow"] }, outputs: { value: "valueChange", touched: "touchedChange", touch: "touch" }, ngContentSelectors: _c1$j, decls: 4, vars: 26, consts: [[3, "error", "width", "fullWidth", "grow"], [3, "input", "blur", "type", "value", "placeholder", "disabled", "readOnly"]], template: function UniInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6674
|
-
i0.ɵɵprojectionDef(_c0$
|
|
6674
|
+
i0.ɵɵprojectionDef(_c0$D);
|
|
6675
6675
|
i0.ɵɵelementStart(0, "uni-input-box", 0);
|
|
6676
6676
|
i0.ɵɵprojection(1);
|
|
6677
6677
|
i0.ɵɵelementStart(2, "input", 1);
|
|
@@ -6693,7 +6693,7 @@ class UniInputComponent {
|
|
|
6693
6693
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], minAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], maxAttr: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }], list: [{ type: i0.Input, args: [{ isSignal: true, alias: "list", required: false }] }], spellcheck: [{ type: i0.Input, args: [{ isSignal: true, alias: "spellcheck", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], grow: [{ type: i0.Input, args: [{ isSignal: true, alias: "grow", required: false }] }] }); })();
|
|
6694
6694
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniInputComponent, { className: "UniInputComponent", filePath: "lib/components/input/input.component.ts", lineNumber: 13 }); })();
|
|
6695
6695
|
|
|
6696
|
-
const _c0$
|
|
6696
|
+
const _c0$C = ["*"];
|
|
6697
6697
|
function UniButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
6698
6698
|
i0.ɵɵelementStart(0, "div", 3);
|
|
6699
6699
|
i0.ɵɵelement(1, "uni-icon", 4);
|
|
@@ -6845,7 +6845,7 @@ class UniButtonComponent extends BaseComponent {
|
|
|
6845
6845
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniButtonComponent, selectors: [["button", "uni-text-button", ""], ["button", "text-button", ""]], hostVars: 4, hostBindings: function UniButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
6846
6846
|
i0.ɵɵattribute("disabled", ctx.disable() || ctx.loading() || null)("aria-busy", ctx.loading() ? "true" : null);
|
|
6847
6847
|
i0.ɵɵclassMap(ctx.className());
|
|
6848
|
-
} }, inputs: { disable: [1, "disable"], loading: [1, "loading"], fullWidth: [1, "fullWidth"], symbolLeft: [1, "symbolLeft"], symbolRight: [1, "symbolRight"] }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'button' }]), i0.ɵɵHostDirectivesFeature([RippleDirective]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$
|
|
6848
|
+
} }, inputs: { disable: [1, "disable"], loading: [1, "loading"], fullWidth: [1, "fullWidth"], symbolLeft: [1, "symbolLeft"], symbolRight: [1, "symbolRight"] }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'button' }]), i0.ɵɵHostDirectivesFeature([RippleDirective]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$C, decls: 5, vars: 3, consts: [["box-layout", "", 3, "class"], [1, "symbolLeft", 3, "name"], [1, "symbolRight", 3, "name"], ["box-layout", ""], ["name", "spinner"]], template: function UniButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6849
6849
|
i0.ɵɵprojectionDef();
|
|
6850
6850
|
i0.ɵɵconditionalCreate(0, UniButtonComponent_Conditional_0_Template, 2, 2, "div", 0);
|
|
6851
6851
|
i0.ɵɵconditionalCreate(1, UniButtonComponent_Conditional_1_Template, 1, 1, "uni-symbol", 1);
|
|
@@ -6937,8 +6937,8 @@ class UniDividerComponent {
|
|
|
6937
6937
|
}], null, { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }] }); })();
|
|
6938
6938
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniDividerComponent, { className: "UniDividerComponent", filePath: "lib/components/divider/divider.component.ts", lineNumber: 13 }); })();
|
|
6939
6939
|
|
|
6940
|
-
const _c0$
|
|
6941
|
-
const _forTrack0$
|
|
6940
|
+
const _c0$B = ["optionRow"];
|
|
6941
|
+
const _forTrack0$9 = ($index, $item) => $item.value;
|
|
6942
6942
|
function UniMultiSelectDropdownComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
6943
6943
|
i0.ɵɵelementStart(0, "span");
|
|
6944
6944
|
i0.ɵɵtext(1);
|
|
@@ -7158,7 +7158,7 @@ class UniMultiSelectDropdownComponent extends BaseComponent {
|
|
|
7158
7158
|
}
|
|
7159
7159
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniMultiSelectDropdownComponent_BaseFactory; return function UniMultiSelectDropdownComponent_Factory(__ngFactoryType__) { return (ɵUniMultiSelectDropdownComponent_BaseFactory || (ɵUniMultiSelectDropdownComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniMultiSelectDropdownComponent)))(__ngFactoryType__ || UniMultiSelectDropdownComponent); }; })(); }
|
|
7160
7160
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniMultiSelectDropdownComponent, selectors: [["uni-multi-select-dropdown"]], viewQuery: function UniMultiSelectDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7161
|
-
i0.ɵɵviewQuerySignal(ctx.optionRefs, _c0$
|
|
7161
|
+
i0.ɵɵviewQuerySignal(ctx.optionRefs, _c0$B, 5);
|
|
7162
7162
|
} if (rf & 2) {
|
|
7163
7163
|
i0.ɵɵqueryAdvance();
|
|
7164
7164
|
} }, hostVars: 2, hostBindings: function UniMultiSelectDropdownComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -7185,7 +7185,7 @@ class UniMultiSelectDropdownComponent extends BaseComponent {
|
|
|
7185
7185
|
i0.ɵɵelementEnd()();
|
|
7186
7186
|
i0.ɵɵelement(16, "uni-divider", 14);
|
|
7187
7187
|
i0.ɵɵelementStart(17, "div", 15);
|
|
7188
|
-
i0.ɵɵrepeaterCreate(18, UniMultiSelectDropdownComponent_For_19_Template, 3, 3, "div", null, _forTrack0$
|
|
7188
|
+
i0.ɵɵrepeaterCreate(18, UniMultiSelectDropdownComponent_For_19_Template, 3, 3, "div", null, _forTrack0$9);
|
|
7189
7189
|
i0.ɵɵconditionalCreate(20, UniMultiSelectDropdownComponent_Conditional_20_Template, 2, 0, "span", 16);
|
|
7190
7190
|
i0.ɵɵelementEnd();
|
|
7191
7191
|
i0.ɵɵelement(21, "uni-divider", 14);
|
|
@@ -7345,7 +7345,7 @@ class UniMultiSelectComponent {
|
|
|
7345
7345
|
}], null, { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], selections: [{ type: i0.Input, args: [{ isSignal: true, alias: "selections", required: false }] }], updates: [{ type: i0.Output, args: ["updates"] }], flexDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "flexDirection", required: false }] }], checkboxGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkboxGap", required: false }] }] }); })();
|
|
7346
7346
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniMultiSelectComponent, { className: "UniMultiSelectComponent", filePath: "lib/components/multi-select/multi-select.component.ts", lineNumber: 16 }); })();
|
|
7347
7347
|
|
|
7348
|
-
const _forTrack0$
|
|
7348
|
+
const _forTrack0$8 = ($index, $item) => $item.value;
|
|
7349
7349
|
function UniRadioComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
7350
7350
|
i0.ɵɵelementStart(0, "span", 1);
|
|
7351
7351
|
i0.ɵɵtext(1);
|
|
@@ -7548,7 +7548,7 @@ class UniRadioComponent extends BaseComponent {
|
|
|
7548
7548
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniRadioComponent, selectors: [["uni-radio"]], inputs: { value: [1, "value"], disabled: [1, "disabled"], touched: [1, "touched"], invalid: [1, "invalid"], dirty: [1, "dirty"], required: [1, "required"], checkedColor: [1, "checkedColor"], ariaDescribedBy: [1, "ariaDescribedBy"], options: [1, "options"], label: [1, "label"], name: [1, "name"] }, outputs: { value: "valueChange", touched: "touchedChange", touch: "touch" }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'radio' }]), i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 7, consts: [["role", "radiogroup"], ["uni-text", "label"], [3, "class", "disabled"], ["type", "radio", 3, "change", "value", "name", "checked", "disabled"], [1, "radio-button"], [1, "radio-inner"]], template: function UniRadioComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7549
7549
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7550
7550
|
i0.ɵɵconditionalCreate(1, UniRadioComponent_Conditional_1_Template, 2, 2, "span", 1);
|
|
7551
|
-
i0.ɵɵrepeaterCreate(2, UniRadioComponent_For_3_Template, 6, 11, "label", 2, _forTrack0$
|
|
7551
|
+
i0.ɵɵrepeaterCreate(2, UniRadioComponent_For_3_Template, 6, 11, "label", 2, _forTrack0$8);
|
|
7552
7552
|
i0.ɵɵelementEnd();
|
|
7553
7553
|
} if (rf & 2) {
|
|
7554
7554
|
i0.ɵɵclassMap(ctx.radioGroupClass);
|
|
@@ -7565,7 +7565,7 @@ class UniRadioComponent extends BaseComponent {
|
|
|
7565
7565
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], checkedColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedColor", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }] }); })();
|
|
7566
7566
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniRadioComponent, { className: "UniRadioComponent", filePath: "lib/components/radio/radio.component.ts", lineNumber: 18 }); })();
|
|
7567
7567
|
|
|
7568
|
-
const _c0$
|
|
7568
|
+
const _c0$A = ["field"];
|
|
7569
7569
|
const _c1$i = [[["", "pre-input", ""]], [["", "post-input", ""]]];
|
|
7570
7570
|
const _c2$7 = ["[pre-input]", "[post-input]"];
|
|
7571
7571
|
/**
|
|
@@ -7652,7 +7652,7 @@ class UniDebounceInputComponent {
|
|
|
7652
7652
|
}
|
|
7653
7653
|
static { this.ɵfac = function UniDebounceInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniDebounceInputComponent)(); }; }
|
|
7654
7654
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniDebounceInputComponent, selectors: [["uni-debounce-input"]], viewQuery: function UniDebounceInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7655
|
-
i0.ɵɵviewQuerySignal(ctx.inputElement, _c0$
|
|
7655
|
+
i0.ɵɵviewQuerySignal(ctx.inputElement, _c0$A, 5);
|
|
7656
7656
|
} if (rf & 2) {
|
|
7657
7657
|
i0.ɵɵqueryAdvance();
|
|
7658
7658
|
} }, inputs: { inputName: [1, "inputName"], inputId: [1, "inputId"], debounceTime: [1, "debounceTime"], label: [1, "label"], placeholder: [1, "placeholder"], disabled: [1, "disabled"], type: [1, "type"], autocomplete: [1, "autocomplete"], inputMode: [1, "inputMode"], role: [1, "role"], ariaExpanded: [1, "ariaExpanded"], ariaControls: [1, "ariaControls"], ariaActivedescendant: [1, "ariaActivedescendant"] }, outputs: { valueChange: "valueChange" }, ngContentSelectors: _c2$7, decls: 5, vars: 16, consts: [["field", ""], [3, "input", "type", "name", "id", "value", "placeholder", "disabled"]], template: function UniDebounceInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -7677,7 +7677,7 @@ class UniDebounceInputComponent {
|
|
|
7677
7677
|
}], () => [], { inputName: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputName", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], debounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceTime", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], ariaActivedescendant: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaActivedescendant", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], inputElement: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }] }); })();
|
|
7678
7678
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniDebounceInputComponent, { className: "UniDebounceInputComponent", filePath: "lib/components/forms/debounce-input/debounce-input.component.ts", lineNumber: 30 }); })();
|
|
7679
7679
|
|
|
7680
|
-
const _c0$
|
|
7680
|
+
const _c0$z = ["listbox"];
|
|
7681
7681
|
function UniSearchInputComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
7682
7682
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
7683
7683
|
i0.ɵɵelementStart(0, "button", 7);
|
|
@@ -7828,7 +7828,7 @@ class UniSearchInputComponent extends BaseComponent {
|
|
|
7828
7828
|
}
|
|
7829
7829
|
static { this.ɵfac = function UniSearchInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniSearchInputComponent)(); }; }
|
|
7830
7830
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniSearchInputComponent, selectors: [["uni-search-input"]], viewQuery: function UniSearchInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7831
|
-
i0.ɵɵviewQuerySignal(ctx.field, UniDebounceInputComponent, 5)(ctx.listRef, _c0$
|
|
7831
|
+
i0.ɵɵviewQuerySignal(ctx.field, UniDebounceInputComponent, 5)(ctx.listRef, _c0$z, 5);
|
|
7832
7832
|
} if (rf & 2) {
|
|
7833
7833
|
i0.ɵɵqueryAdvance(2);
|
|
7834
7834
|
} }, hostVars: 2, hostBindings: function UniSearchInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -7860,7 +7860,7 @@ class UniSearchInputComponent extends BaseComponent {
|
|
|
7860
7860
|
}], () => [], { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], debounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceTime", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], searchSubmit: [{ type: i0.Output, args: ["searchSubmit"] }], suggestionSelected: [{ type: i0.Output, args: ["suggestionSelected"] }], field: [{ type: i0.ViewChild, args: [i0.forwardRef(() => UniDebounceInputComponent), { isSignal: true }] }], listRef: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }] }); })();
|
|
7861
7861
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniSearchInputComponent, { className: "UniSearchInputComponent", filePath: "lib/components/search-input/search-input.component.ts", lineNumber: 39 }); })();
|
|
7862
7862
|
|
|
7863
|
-
const _forTrack0$
|
|
7863
|
+
const _forTrack0$7 = ($index, $item) => $item.label;
|
|
7864
7864
|
function UniSelectComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
7865
7865
|
i0.ɵɵelementStart(0, "option", 2);
|
|
7866
7866
|
i0.ɵɵtext(1);
|
|
@@ -7985,7 +7985,7 @@ class UniSelectComponent {
|
|
|
7985
7985
|
i0.ɵɵelementStart(0, "uni-input-box", 0)(1, "select", 1);
|
|
7986
7986
|
i0.ɵɵlistener("change", function UniSelectComponent_Template_select_change_1_listener($event) { return ctx.handleSelectChange($event); })("blur", function UniSelectComponent_Template_select_blur_1_listener() { return ctx.touched.set(true); });
|
|
7987
7987
|
i0.ɵɵconditionalCreate(2, UniSelectComponent_Conditional_2_Template, 2, 2, "option", 2);
|
|
7988
|
-
i0.ɵɵrepeaterCreate(3, UniSelectComponent_For_4_Template, 2, 4, "option", 3, _forTrack0$
|
|
7988
|
+
i0.ɵɵrepeaterCreate(3, UniSelectComponent_For_4_Template, 2, 4, "option", 3, _forTrack0$7);
|
|
7989
7989
|
i0.ɵɵelementEnd();
|
|
7990
7990
|
i0.ɵɵelement(5, "uni-icon", 4);
|
|
7991
7991
|
i0.ɵɵelementEnd();
|
|
@@ -8010,7 +8010,7 @@ class UniSelectComponent {
|
|
|
8010
8010
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], grow: [{ type: i0.Input, args: [{ isSignal: true, alias: "grow", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] }); })();
|
|
8011
8011
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniSelectComponent, { className: "UniSelectComponent", filePath: "lib/components/select-input/select-input.component.ts", lineNumber: 16 }); })();
|
|
8012
8012
|
|
|
8013
|
-
const _c0$
|
|
8013
|
+
const _c0$y = ["field"];
|
|
8014
8014
|
const _c1$h = (a0, a1) => ({ styleClass: a0, icon: a1 });
|
|
8015
8015
|
function UniNumberInputComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
8016
8016
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -8836,7 +8836,7 @@ class UniNumberInputComponent extends BaseComponent {
|
|
|
8836
8836
|
}
|
|
8837
8837
|
static { this.ɵfac = function UniNumberInputComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UniNumberInputComponent)(); }; }
|
|
8838
8838
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniNumberInputComponent, selectors: [["uni-number-input"], ["NumberInput"]], viewQuery: function UniNumberInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8839
|
-
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$
|
|
8839
|
+
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$y, 5);
|
|
8840
8840
|
} if (rf & 2) {
|
|
8841
8841
|
i0.ɵɵqueryAdvance();
|
|
8842
8842
|
} }, hostVars: 2, hostBindings: function UniNumberInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -8868,9 +8868,9 @@ class UniNumberInputComponent extends BaseComponent {
|
|
|
8868
8868
|
}], () => [], { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], valueAsString: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueAsString", required: false }] }, { type: i0.Output, args: ["valueAsStringChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], preset: [{ type: i0.Input, args: [{ isSignal: true, alias: "preset", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], grouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouping", required: false }] }], numberFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberFormat", required: false }] }], roundingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundingMode", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], valueIsFraction: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueIsFraction", required: false }] }], unitAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "unitAnnouncement", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], largeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "largeStep", required: false }] }], smallStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "smallStep", required: false }] }], stepOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepOrigin", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], clampOnCommit: [{ type: i0.Input, args: [{ isSignal: true, alias: "clampOnCommit", required: false }] }], emptyStepValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyStepValue", required: false }] }], commitOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "commitOnBlur", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], allowExpressions: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowExpressions", required: false }] }], wheel: [{ type: i0.Input, args: [{ isSignal: true, alias: "wheel", required: false }] }], repeat: [{ type: i0.Input, args: [{ isSignal: true, alias: "repeat", required: false }] }], parse: [{ type: i0.Input, args: [{ isSignal: true, alias: "parse", required: false }] }], stepperLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepperLayout", required: false }] }], stepped: [{ type: i0.Output, args: ["stepped"] }], rejected: [{ type: i0.Output, args: ["rejected"] }], inputRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }] }); })();
|
|
8869
8869
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniNumberInputComponent, { className: "UniNumberInputComponent", filePath: "lib/components/number-input/number-input.component.ts", lineNumber: 73 }); })();
|
|
8870
8870
|
|
|
8871
|
-
const _c0$
|
|
8871
|
+
const _c0$x = ["track"];
|
|
8872
8872
|
const _c1$g = ["thumb"];
|
|
8873
|
-
const _forTrack0$
|
|
8873
|
+
const _forTrack0$6 = ($index, $item) => $item.value;
|
|
8874
8874
|
function UniSliderComponent_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
8875
8875
|
i0.ɵɵelement(0, "div");
|
|
8876
8876
|
} if (rf & 2) {
|
|
@@ -8957,7 +8957,7 @@ function UniSliderComponent_Conditional_11_For_2_Template(rf, ctx) { if (rf & 1)
|
|
|
8957
8957
|
} }
|
|
8958
8958
|
function UniSliderComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
8959
8959
|
i0.ɵɵelementStart(0, "div", 12);
|
|
8960
|
-
i0.ɵɵrepeaterCreate(1, UniSliderComponent_Conditional_11_For_2_Template, 1, 1, null, null, _forTrack0$
|
|
8960
|
+
i0.ɵɵrepeaterCreate(1, UniSliderComponent_Conditional_11_For_2_Template, 1, 1, null, null, _forTrack0$6);
|
|
8961
8961
|
i0.ɵɵelementEnd();
|
|
8962
8962
|
} if (rf & 2) {
|
|
8963
8963
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -9627,7 +9627,7 @@ class UniSliderComponent extends BaseComponent {
|
|
|
9627
9627
|
}
|
|
9628
9628
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniSliderComponent_BaseFactory; return function UniSliderComponent_Factory(__ngFactoryType__) { return (ɵUniSliderComponent_BaseFactory || (ɵUniSliderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniSliderComponent)))(__ngFactoryType__ || UniSliderComponent); }; })(); }
|
|
9629
9629
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniSliderComponent, selectors: [["uni-slider"], ["Slider"]], viewQuery: function UniSliderComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9630
|
-
i0.ɵɵviewQuerySignal(ctx.trackRef, _c0$
|
|
9630
|
+
i0.ɵɵviewQuerySignal(ctx.trackRef, _c0$x, 5)(ctx.thumbRefs, _c1$g, 5);
|
|
9631
9631
|
} if (rf & 2) {
|
|
9632
9632
|
i0.ɵɵqueryAdvance(2);
|
|
9633
9633
|
} }, hostVars: 2, hostBindings: function UniSliderComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -9636,7 +9636,7 @@ class UniSliderComponent extends BaseComponent {
|
|
|
9636
9636
|
i0.ɵɵelementStart(0, "div")(1, "div")(2, "div", 2, 0);
|
|
9637
9637
|
i0.ɵɵlistener("pointerdown", function UniSliderComponent_Template_div_pointerdown_2_listener($event) { return ctx.onTrackPointerDown($event); })("pointermove", function UniSliderComponent_Template_div_pointermove_2_listener($event) { return ctx.onTrackPointerMove($event); })("pointerup", function UniSliderComponent_Template_div_pointerup_2_listener() { return ctx.onTrackPointerUp(); })("pointercancel", function UniSliderComponent_Template_div_pointercancel_2_listener() { return ctx.onTrackPointerUp(); })("lostpointercapture", function UniSliderComponent_Template_div_lostpointercapture_2_listener() { return ctx.onTrackPointerUp(); });
|
|
9638
9638
|
i0.ɵɵelement(4, "div");
|
|
9639
|
-
i0.ɵɵrepeaterCreate(5, UniSliderComponent_For_6_Template, 1, 4, "div", 3, _forTrack0$
|
|
9639
|
+
i0.ɵɵrepeaterCreate(5, UniSliderComponent_For_6_Template, 1, 4, "div", 3, _forTrack0$6);
|
|
9640
9640
|
i0.ɵɵrepeaterCreate(7, UniSliderComponent_For_8_Template, 3, 16, "div", 4, i0.ɵɵrepeaterTrackByIdentity);
|
|
9641
9641
|
i0.ɵɵelementEnd();
|
|
9642
9642
|
i0.ɵɵconditionalCreate(9, UniSliderComponent_Conditional_9_Template, 1, 9, "uni-number-input", 5);
|
|
@@ -9678,7 +9678,7 @@ class UniSliderComponent extends BaseComponent {
|
|
|
9678
9678
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], largeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "largeStep", required: false }] }], origin: [{ type: i0.Input, args: [{ isSignal: true, alias: "origin", required: false }] }], marks: [{ type: i0.Input, args: [{ isSignal: true, alias: "marks", required: false }] }], snapToMarks: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToMarks", required: false }] }], valueDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueDisplay", required: false }] }], formatValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatValue", required: false }] }], minGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "minGap", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], sliding: [{ type: i0.Output, args: ["sliding"] }], changed: [{ type: i0.Output, args: ["changed"] }], trackRef: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], thumbRefs: [{ type: i0.ViewChildren, args: ['thumb', { isSignal: true }] }] }); })();
|
|
9679
9679
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniSliderComponent, { className: "UniSliderComponent", filePath: "lib/components/slider/slider.component.ts", lineNumber: 61 }); })();
|
|
9680
9680
|
|
|
9681
|
-
const _c0$
|
|
9681
|
+
const _c0$w = ["field"];
|
|
9682
9682
|
function UniNumberRangeInputComponent_For_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
9683
9683
|
i0.ɵɵelementStart(0, "span", 7);
|
|
9684
9684
|
i0.ɵɵtext(1);
|
|
@@ -10177,7 +10177,7 @@ class UniNumberRangeInputComponent extends BaseComponent {
|
|
|
10177
10177
|
}
|
|
10178
10178
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniNumberRangeInputComponent_BaseFactory; return function UniNumberRangeInputComponent_Factory(__ngFactoryType__) { return (ɵUniNumberRangeInputComponent_BaseFactory || (ɵUniNumberRangeInputComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniNumberRangeInputComponent)))(__ngFactoryType__ || UniNumberRangeInputComponent); }; })(); }
|
|
10179
10179
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniNumberRangeInputComponent, selectors: [["uni-number-range-input"], ["NumberRangeInput"]], viewQuery: function UniNumberRangeInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10180
|
-
i0.ɵɵviewQuerySignal(ctx.inputRefs, _c0$
|
|
10180
|
+
i0.ɵɵviewQuerySignal(ctx.inputRefs, _c0$w, 5);
|
|
10181
10181
|
} if (rf & 2) {
|
|
10182
10182
|
i0.ɵɵqueryAdvance();
|
|
10183
10183
|
} }, hostVars: 2, hostBindings: function UniNumberRangeInputComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -10215,7 +10215,7 @@ class UniNumberRangeInputComponent extends BaseComponent {
|
|
|
10215
10215
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], startLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLabel", required: false }] }], endLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "endLabel", required: false }] }], preset: [{ type: i0.Input, args: [{ isSignal: true, alias: "preset", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], grouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouping", required: false }] }], roundingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundingMode", required: false }] }], placeholderStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderStart", required: false }] }], placeholderEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderEnd", required: false }] }], minValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], maxValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "minGap", required: false }] }], swapped: [{ type: i0.Output, args: ["swapped"] }], rejected: [{ type: i0.Output, args: ["rejected"] }], inputRefs: [{ type: i0.ViewChildren, args: ['field', { isSignal: true }] }] }); })();
|
|
10216
10216
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniNumberRangeInputComponent, { className: "UniNumberRangeInputComponent", filePath: "lib/components/number-range-input/number-range-input.component.ts", lineNumber: 68 }); })();
|
|
10217
10217
|
|
|
10218
|
-
const _c0$
|
|
10218
|
+
const _c0$v = ["field"];
|
|
10219
10219
|
function UniQuantityStepperComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
10220
10220
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
10221
10221
|
i0.ɵɵelementStart(0, "input", 8, 0);
|
|
@@ -10663,7 +10663,7 @@ class UniQuantityStepperComponent extends BaseComponent {
|
|
|
10663
10663
|
}
|
|
10664
10664
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniQuantityStepperComponent_BaseFactory; return function UniQuantityStepperComponent_Factory(__ngFactoryType__) { return (ɵUniQuantityStepperComponent_BaseFactory || (ɵUniQuantityStepperComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniQuantityStepperComponent)))(__ngFactoryType__ || UniQuantityStepperComponent); }; })(); }
|
|
10665
10665
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniQuantityStepperComponent, selectors: [["uni-quantity-stepper"], ["QuantityStepper"]], viewQuery: function UniQuantityStepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10666
|
-
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$
|
|
10666
|
+
i0.ɵɵviewQuerySignal(ctx.inputRef, _c0$v, 5);
|
|
10667
10667
|
} if (rf & 2) {
|
|
10668
10668
|
i0.ɵɵqueryAdvance();
|
|
10669
10669
|
} }, hostVars: 2, hostBindings: function UniQuantityStepperComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
@@ -10713,7 +10713,7 @@ class UniQuantityStepperComponent extends BaseComponent {
|
|
|
10713
10713
|
}], null, { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], dirty: [{ type: i0.Input, args: [{ isSignal: true, alias: "dirty", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], deleteAtMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteAtMin", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }], inputRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }] }); })();
|
|
10714
10714
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniQuantityStepperComponent, { className: "UniQuantityStepperComponent", filePath: "lib/components/quantity-stepper/quantity-stepper.component.ts", lineNumber: 57 }); })();
|
|
10715
10715
|
|
|
10716
|
-
const _c0$
|
|
10716
|
+
const _c0$u = [[["", "tag-lead", ""]], "*"];
|
|
10717
10717
|
const _c1$f = ["[tag-lead]", "*"];
|
|
10718
10718
|
function UniTagComponent_ng_template_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
10719
10719
|
i0.ɵɵelement(0, "uni-icon", 4);
|
|
@@ -10722,6 +10722,12 @@ function UniTagComponent_ng_template_0_Conditional_1_Template(rf, ctx) { if (rf
|
|
|
10722
10722
|
i0.ɵɵproperty("name", ctx)("size", ctx_r0.leadSize());
|
|
10723
10723
|
} }
|
|
10724
10724
|
function UniTagComponent_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
10725
|
+
i0.ɵɵelement(0, "span", 7);
|
|
10726
|
+
} if (rf & 2) {
|
|
10727
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10728
|
+
i0.ɵɵclassMap(ctx_r0.slotClass());
|
|
10729
|
+
} }
|
|
10730
|
+
function UniTagComponent_ng_template_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
10725
10731
|
i0.ɵɵelementStart(0, "span", 7);
|
|
10726
10732
|
i0.ɵɵelement(1, "img", 8);
|
|
10727
10733
|
i0.ɵɵelementEnd();
|
|
@@ -10731,7 +10737,7 @@ function UniTagComponent_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf
|
|
|
10731
10737
|
i0.ɵɵadvance();
|
|
10732
10738
|
i0.ɵɵproperty("src", ctx, i0.ɵɵsanitizeUrl);
|
|
10733
10739
|
} }
|
|
10734
|
-
function
|
|
10740
|
+
function UniTagComponent_ng_template_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
10735
10741
|
i0.ɵɵelementStart(0, "span", 7);
|
|
10736
10742
|
i0.ɵɵtext(1);
|
|
10737
10743
|
i0.ɵɵelementEnd();
|
|
@@ -10741,26 +10747,26 @@ function UniTagComponent_ng_template_0_Conditional_3_Template(rf, ctx) { if (rf
|
|
|
10741
10747
|
i0.ɵɵadvance();
|
|
10742
10748
|
i0.ɵɵtextInterpolate(ctx);
|
|
10743
10749
|
} }
|
|
10744
|
-
function
|
|
10750
|
+
function UniTagComponent_ng_template_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
10745
10751
|
i0.ɵɵelement(0, "uni-icon", 4);
|
|
10746
10752
|
} if (rf & 2) {
|
|
10747
10753
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10748
10754
|
i0.ɵɵproperty("name", ctx)("size", ctx_r0.leadSize());
|
|
10749
10755
|
} }
|
|
10750
|
-
function
|
|
10756
|
+
function UniTagComponent_ng_template_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
10751
10757
|
i0.ɵɵelement(0, "uni-symbol", 9);
|
|
10752
10758
|
} if (rf & 2) {
|
|
10753
10759
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10754
10760
|
i0.ɵɵstyleProp("font-size", ctx_r0.leadSize(), "px");
|
|
10755
10761
|
i0.ɵɵproperty("name", ctx);
|
|
10756
10762
|
} }
|
|
10757
|
-
function
|
|
10763
|
+
function UniTagComponent_ng_template_0_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
10758
10764
|
i0.ɵɵelement(0, "span", 7);
|
|
10759
10765
|
} if (rf & 2) {
|
|
10760
10766
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
10761
10767
|
i0.ɵɵclassMap(ctx_r0.dotClass());
|
|
10762
10768
|
} }
|
|
10763
|
-
function
|
|
10769
|
+
function UniTagComponent_ng_template_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
10764
10770
|
i0.ɵɵelementStart(0, "span");
|
|
10765
10771
|
i0.ɵɵtext(1);
|
|
10766
10772
|
i0.ɵɵelementEnd();
|
|
@@ -10772,7 +10778,7 @@ function UniTagComponent_ng_template_0_Conditional_7_Template(rf, ctx) { if (rf
|
|
|
10772
10778
|
i0.ɵɵadvance();
|
|
10773
10779
|
i0.ɵɵtextInterpolate(text_r2);
|
|
10774
10780
|
} }
|
|
10775
|
-
function
|
|
10781
|
+
function UniTagComponent_ng_template_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
10776
10782
|
i0.ɵɵelementStart(0, "span");
|
|
10777
10783
|
i0.ɵɵprojection(1, 1);
|
|
10778
10784
|
i0.ɵɵelementEnd();
|
|
@@ -10782,16 +10788,16 @@ function UniTagComponent_ng_template_0_Conditional_8_Template(rf, ctx) { if (rf
|
|
|
10782
10788
|
} }
|
|
10783
10789
|
function UniTagComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
10784
10790
|
i0.ɵɵprojection(0);
|
|
10785
|
-
i0.ɵɵconditionalCreate(1, UniTagComponent_ng_template_0_Conditional_1_Template, 1, 2, "uni-icon", 4)(2, UniTagComponent_ng_template_0_Conditional_2_Template,
|
|
10786
|
-
i0.ɵɵconditionalCreate(
|
|
10791
|
+
i0.ɵɵconditionalCreate(1, UniTagComponent_ng_template_0_Conditional_1_Template, 1, 2, "uni-icon", 4)(2, UniTagComponent_ng_template_0_Conditional_2_Template, 1, 2, "span", 5)(3, UniTagComponent_ng_template_0_Conditional_3_Template, 2, 3, "span", 5)(4, UniTagComponent_ng_template_0_Conditional_4_Template, 2, 3, "span", 5)(5, UniTagComponent_ng_template_0_Conditional_5_Template, 1, 2, "uni-icon", 4)(6, UniTagComponent_ng_template_0_Conditional_6_Template, 1, 3, "uni-symbol", 6)(7, UniTagComponent_ng_template_0_Conditional_7_Template, 1, 2, "span", 5);
|
|
10792
|
+
i0.ɵɵconditionalCreate(8, UniTagComponent_ng_template_0_Conditional_8_Template, 2, 4, "span", 2)(9, UniTagComponent_ng_template_0_Conditional_9_Template, 2, 2, "span", 2);
|
|
10787
10793
|
} if (rf & 2) {
|
|
10788
10794
|
let tmp_2_0;
|
|
10789
10795
|
let tmp_3_0;
|
|
10790
10796
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
10791
10797
|
i0.ɵɵadvance();
|
|
10792
|
-
i0.ɵɵconditional((tmp_2_0 = ctx_r0.selected() && ctx_r0.
|
|
10793
|
-
i0.ɵɵadvance(
|
|
10794
|
-
i0.ɵɵconditional((tmp_3_0 = ctx_r0.label()) ?
|
|
10798
|
+
i0.ɵɵconditional((tmp_2_0 = ctx_r0.selected() && ctx_r0.selectedIcon()) ? 1 : ctx_r0.reservesSlot() ? 2 : (tmp_2_0 = ctx_r0.avatarSrc()) ? 3 : (tmp_2_0 = ctx_r0.initials()) ? 4 : (tmp_2_0 = ctx_r0.iconName()) ? 5 : (tmp_2_0 = ctx_r0.symbolName()) ? 6 : ctx_r0.dot() ? 7 : -1, tmp_2_0);
|
|
10799
|
+
i0.ɵɵadvance(7);
|
|
10800
|
+
i0.ɵɵconditional((tmp_3_0 = ctx_r0.label()) ? 8 : 9, tmp_3_0);
|
|
10795
10801
|
} }
|
|
10796
10802
|
function UniTagComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
10797
10803
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -10832,12 +10838,26 @@ function UniTagComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10832
10838
|
i0.ɵɵadvance();
|
|
10833
10839
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.removeLabel() ?? "Remove " + (ctx_r0.label() ?? ""), " ");
|
|
10834
10840
|
} }
|
|
10841
|
+
/** The first length in a `padding` shorthand's inline position, as a number. */
|
|
10842
|
+
const inlinePaddingOf = (style) => {
|
|
10843
|
+
const explicit = Number.parseFloat(String(style['paddingInline'] ?? ''));
|
|
10844
|
+
if (Number.isFinite(explicit))
|
|
10845
|
+
return explicit;
|
|
10846
|
+
// A consumer theme may still state the shorthand. `0 10px` and `0 10px 0 8px`
|
|
10847
|
+
// both put the inline value second; a single value applies to every side.
|
|
10848
|
+
const parts = String(style['padding'] ?? '').trim().split(/\s+/);
|
|
10849
|
+
const shorthand = Number.parseFloat(parts[1] ?? parts[0] ?? '');
|
|
10850
|
+
return Number.isFinite(shorthand) ? shorthand : 10;
|
|
10851
|
+
};
|
|
10835
10852
|
/**
|
|
10836
10853
|
* Compact chip for categories, states, filters and tokens.
|
|
10837
10854
|
*
|
|
10838
10855
|
* Two orthogonal style axes: `variant` picks the colour role and `tone` picks
|
|
10839
10856
|
* the archetype (soft / solid / outline). Both live in the theme's `tag` entry,
|
|
10840
|
-
* so a theme restyles every chip in the app without touching markup.
|
|
10857
|
+
* so a theme restyles every chip in the app without touching markup. Two state
|
|
10858
|
+
* classes ride alongside the tone class for the same reason: `tag-selected` and
|
|
10859
|
+
* `tag-interactive` let the theme paint selection and hover beside the colours
|
|
10860
|
+
* they belong to, instead of an app swapping `tone` by hand on every chip.
|
|
10841
10861
|
*
|
|
10842
10862
|
* Structurally a chip is **body + trailing action as siblings**, never nested
|
|
10843
10863
|
* buttons: an interactive chip whose body is a `<button>` cannot contain the
|
|
@@ -10897,9 +10917,9 @@ class UniTagComponent extends BaseComponent {
|
|
|
10897
10917
|
...(ngDevMode ? [undefined, { debugName: "removeLabel" }] : /* istanbul ignore next */ []));
|
|
10898
10918
|
/**
|
|
10899
10919
|
* Tab position of the chip's controls. A composite that owns its own
|
|
10900
|
-
* roving focus — `uni-tag-input`, where the whole
|
|
10901
|
-
* passes `-1` so Tab does not walk through every
|
|
10902
|
-
* control.
|
|
10920
|
+
* roving focus — `uni-tag-input` or `uni-tag-group`, where the whole
|
|
10921
|
+
* thing is one tab stop — passes `-1` so Tab does not walk through every
|
|
10922
|
+
* chip to reach the next control.
|
|
10903
10923
|
*/
|
|
10904
10924
|
this.controlTabIndex = input(0, /* @ts-ignore */
|
|
10905
10925
|
...(ngDevMode ? [{ debugName: "controlTabIndex" }] : /* istanbul ignore next */ []));
|
|
@@ -10910,11 +10930,13 @@ class UniTagComponent extends BaseComponent {
|
|
|
10910
10930
|
...(ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []));
|
|
10911
10931
|
this.themeStyle = computed(() => this.theme.componentStyle('tag', this.resolvedVariant(), this.size())(), /* @ts-ignore */
|
|
10912
10932
|
...(ngDevMode ? [{ debugName: "themeStyle" }] : /* istanbul ignore next */ []));
|
|
10913
|
-
|
|
10914
|
-
this.leadSize = computed(() => {
|
|
10933
|
+
this.height = computed(() => {
|
|
10915
10934
|
const height = Number(this.themeStyle()['height'] ?? 24);
|
|
10916
|
-
return Number.isFinite(height) ?
|
|
10935
|
+
return Number.isFinite(height) ? height : 24;
|
|
10917
10936
|
}, /* @ts-ignore */
|
|
10937
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
10938
|
+
/** Lead elements derive from the chip height, so no second size token. */
|
|
10939
|
+
this.leadSize = computed(() => Math.max(this.height() - 6, 0), /* @ts-ignore */
|
|
10918
10940
|
...(ngDevMode ? [{ debugName: "leadSize" }] : /* istanbul ignore next */ []));
|
|
10919
10941
|
/** Remove glyph, proportional to the chip rather than to the icon-button. */
|
|
10920
10942
|
this.removeGlyphSize = computed(() => Math.max(Math.round(this.leadSize() * 0.8), 10), /* @ts-ignore */
|
|
@@ -10926,22 +10948,140 @@ class UniTagComponent extends BaseComponent {
|
|
|
10926
10948
|
.map((part) => part[0]?.toUpperCase() ?? '')
|
|
10927
10949
|
.join(''), /* @ts-ignore */
|
|
10928
10950
|
...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
|
|
10951
|
+
/** Glyph the theme shows in the lead slot for a selected chip, if any. */
|
|
10952
|
+
this.selectedIcon = computed(() => this.componentOptions().selectedIcon, /* @ts-ignore */
|
|
10953
|
+
...(ngDevMode ? [{ debugName: "selectedIcon" }] : /* istanbul ignore next */ []));
|
|
10954
|
+
/**
|
|
10955
|
+
* The chip is a toggle: `selected` was bound, so the chip is one of a set the
|
|
10956
|
+
* user switches on and off — the same tri-state that gates `aria-pressed`.
|
|
10957
|
+
*/
|
|
10958
|
+
this.isToggle = computed(() => this.selected() !== undefined, /* @ts-ignore */
|
|
10959
|
+
...(ngDevMode ? [{ debugName: "isToggle" }] : /* istanbul ignore next */ []));
|
|
10960
|
+
/** A lead element the chip renders itself, rather than the projected slot. */
|
|
10961
|
+
this.hasOwnLead = computed(() => !!this.avatarSrc() ||
|
|
10962
|
+
!!this.initials() ||
|
|
10963
|
+
!!this.iconName() ||
|
|
10964
|
+
!!this.symbolName() ||
|
|
10965
|
+
this.dot(), /* @ts-ignore */
|
|
10966
|
+
...(ngDevMode ? [{ debugName: "hasOwnLead" }] : /* istanbul ignore next */ []));
|
|
10967
|
+
/**
|
|
10968
|
+
* A toggle chip with nothing else in the lead holds the check's place while
|
|
10969
|
+
* unselected. Without it the chip grows by a glyph the moment it is picked
|
|
10970
|
+
* and the whole row reflows — and a row that jumps under the pointer is worse
|
|
10971
|
+
* than one with a little space in front of each label.
|
|
10972
|
+
*/
|
|
10973
|
+
this.reservesSlot = computed(() => this.isToggle() && !!this.selectedIcon() && !this.hasOwnLead(), /* @ts-ignore */
|
|
10974
|
+
...(ngDevMode ? [{ debugName: "reservesSlot" }] : /* istanbul ignore next */ []));
|
|
10975
|
+
/** Whether the chip paints a lead box at all, so the start end tucks. */
|
|
10976
|
+
this.showsLead = computed(() => this.hasOwnLead() || this.reservesSlot(), /* @ts-ignore */
|
|
10977
|
+
...(ngDevMode ? [{ debugName: "showsLead" }] : /* istanbul ignore next */ []));
|
|
10978
|
+
/** Status dots are their own size — a lead box would dwarf one. */
|
|
10979
|
+
this.dotSize = computed(() => Math.max(Math.round(this.leadSize() / 3), 6), /* @ts-ignore */
|
|
10980
|
+
...(ngDevMode ? [{ debugName: "dotSize" }] : /* istanbul ignore next */ []));
|
|
10981
|
+
/** Width the lead actually occupies, which a dot changes. */
|
|
10982
|
+
this.leadWidth = computed(() => this.dot() && !this.selected() ? this.dotSize() : this.leadSize(), /* @ts-ignore */
|
|
10983
|
+
...(ngDevMode ? [{ debugName: "leadWidth" }] : /* istanbul ignore next */ []));
|
|
10984
|
+
/**
|
|
10985
|
+
* Whether the ends are round enough to tuck anything into.
|
|
10986
|
+
*
|
|
10987
|
+
* The theme's documented `borderRadius: 'xs'` switch to rectangular labels
|
|
10988
|
+
* leaves no curve to flow into, and a glyph jammed against a corner is worse
|
|
10989
|
+
* than one sitting in a gutter.
|
|
10990
|
+
*/
|
|
10991
|
+
this.tucks = computed(() => {
|
|
10992
|
+
const token = this.componentOptions().borderRadius;
|
|
10993
|
+
const radius = Number.parseFloat(String(token ? (this.theme.radii()[token] ?? '') : ''));
|
|
10994
|
+
// `max` is `999px`; what a pill actually curves by is half its height.
|
|
10995
|
+
const cap = Math.min(Number.isFinite(radius) ? radius : 0, this.height() / 2);
|
|
10996
|
+
return cap >= this.leadSize() / 2;
|
|
10997
|
+
}, /* @ts-ignore */
|
|
10998
|
+
...(ngDevMode ? [{ debugName: "tucks" }] : /* istanbul ignore next */ []));
|
|
10999
|
+
/** The themed `gap` as a number, for the padding arithmetic. */
|
|
11000
|
+
this.gapSize = computed(() => {
|
|
11001
|
+
const gap = this.componentOptions().gap;
|
|
11002
|
+
if (!gap || gap === 'none')
|
|
11003
|
+
return 0;
|
|
11004
|
+
const value = Number.parseFloat(String(this.theme.getSpacing(gap) ?? ''));
|
|
11005
|
+
return Number.isFinite(value) ? value : 0;
|
|
11006
|
+
}, /* @ts-ignore */
|
|
11007
|
+
...(ngDevMode ? [{ debugName: "gapSize" }] : /* istanbul ignore next */ []));
|
|
11008
|
+
/**
|
|
11009
|
+
* Inline padding: the ends tuck, and a lead is balanced against.
|
|
11010
|
+
*
|
|
11011
|
+
* A lead pushes the label off centre, so the far side grows to match it —
|
|
11012
|
+
* each end asks for the room it needs (its own inset, plus whatever it holds,
|
|
11013
|
+
* plus the gap) and the wider ask wins for both. The tuck costs less than the
|
|
11014
|
+
* old gutter did, so that balance is largely paid for rather than added.
|
|
11015
|
+
*
|
|
11016
|
+
* The remove control is not balanced against on its own. It reads as an
|
|
11017
|
+
* affordance rather than as content, so a chip with nothing but a remove
|
|
11018
|
+
* button keeps the size token's gutter at the start and simply tucks the
|
|
11019
|
+
* glyph into the trailing curve — padding the other side to match would leave
|
|
11020
|
+
* a plain label sitting behind a stretch of empty chip.
|
|
11021
|
+
*/
|
|
11022
|
+
this.padding = computed(() => {
|
|
11023
|
+
const gap = this.gapSize();
|
|
11024
|
+
const basePad = inlinePaddingOf(this.themeStyle());
|
|
11025
|
+
const trailRun = this.removable() ? this.leadSize() + gap : 0;
|
|
11026
|
+
const trailPad = this.removable() ? this.inset(this.leadSize()) : basePad;
|
|
11027
|
+
if (!this.showsLead())
|
|
11028
|
+
return { start: basePad, end: trailPad };
|
|
11029
|
+
const leadRun = this.leadWidth() + gap;
|
|
11030
|
+
const block = Math.max(this.inset(this.leadWidth()) + leadRun, trailPad + trailRun);
|
|
11031
|
+
return { start: block - leadRun, end: block - trailRun };
|
|
11032
|
+
}, /* @ts-ignore */
|
|
11033
|
+
...(ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []));
|
|
10929
11034
|
this.hostClass = computed(() => {
|
|
10930
11035
|
const options = this.componentOptions();
|
|
10931
11036
|
const motion = this.theme.motion(options.motion ?? 'control');
|
|
11037
|
+
const timing = `${motion.duration}ms ${motion.easing}`;
|
|
11038
|
+
const lead = this.showsLead();
|
|
11039
|
+
const trail = this.removable();
|
|
11040
|
+
const pad = this.padding();
|
|
11041
|
+
const states = [
|
|
11042
|
+
`tone-${this.tone()}`,
|
|
11043
|
+
this.interactive() ? 'tag-interactive' : '',
|
|
11044
|
+
this.selected() ? 'tag-selected' : '',
|
|
11045
|
+
]
|
|
11046
|
+
.filter(Boolean)
|
|
11047
|
+
.join(' ');
|
|
10932
11048
|
return `${css([
|
|
10933
11049
|
{
|
|
10934
|
-
|
|
10935
|
-
|
|
11050
|
+
// Scoped, never `all`: `all` would animate the reserved slot, the
|
|
11051
|
+
// padding balance and — inside a justified group — the chip's width.
|
|
11052
|
+
// `border-color` earns its place because the outline tone changes only
|
|
11053
|
+
// the edge, which used to snap while the fill faded; `filter` carries
|
|
11054
|
+
// the theme's hover and selected washes.
|
|
11055
|
+
transition: `background-color ${timing}, color ${timing},` +
|
|
11056
|
+
` border-color ${timing}, filter ${timing}`,
|
|
10936
11057
|
},
|
|
10937
11058
|
this.theme.radius(options.borderRadius),
|
|
10938
11059
|
{ ...this.theme.typeface(options.typeface) },
|
|
10939
|
-
// Theme `fixed` + variant (incl. its nested `&.tone
|
|
11060
|
+
// Theme `fixed` + variant (incl. its nested `&.tone-*`, `&.tag-selected`
|
|
11061
|
+
// and hover rules) + size.
|
|
10940
11062
|
{ ...this.themeStyle() },
|
|
10941
11063
|
{ ...this.theme.gap(options.gap) },
|
|
10942
11064
|
{
|
|
10943
11065
|
boxSizing: 'border-box',
|
|
10944
11066
|
maxWidth: this.maxWidth(),
|
|
11067
|
+
// Longhands, stated after the size token's `paddingInline`, so they
|
|
11068
|
+
// win. Left alone when the chip is a plain label: there is nothing to
|
|
11069
|
+
// balance, and the size token's own gutter is the right answer.
|
|
11070
|
+
...((lead || trail) && {
|
|
11071
|
+
paddingInlineStart: pad.start,
|
|
11072
|
+
paddingInlineEnd: pad.end,
|
|
11073
|
+
}),
|
|
11074
|
+
// The projected `[tag-lead]` slot is an attribute, not a queryable
|
|
11075
|
+
// child, so the only way to balance for it is to ask the DOM — at a
|
|
11076
|
+
// lead box's width, since its content could be anything.
|
|
11077
|
+
...(!lead && {
|
|
11078
|
+
'&:has([tag-lead])': {
|
|
11079
|
+
paddingInlineStart: this.inset(this.leadSize()),
|
|
11080
|
+
paddingInlineEnd: trail
|
|
11081
|
+
? this.inset(this.leadSize())
|
|
11082
|
+
: this.inset(this.leadSize()) + this.leadSize() + this.gapSize(),
|
|
11083
|
+
},
|
|
11084
|
+
}),
|
|
10945
11085
|
// The chip is not a widget; only its sub-controls take focus.
|
|
10946
11086
|
'& > button': this.theme.focusRing(),
|
|
10947
11087
|
// The remove control is the trailing counterpart of the lead, so it
|
|
@@ -10956,7 +11096,7 @@ class UniTagComponent extends BaseComponent {
|
|
|
10956
11096
|
padding: 0,
|
|
10957
11097
|
fontSize: this.removeGlyphSize(),
|
|
10958
11098
|
// uni-icon writes width/height as *inline* styles, sized from the
|
|
10959
|
-
// icon-button's own `sm` token (18px — wider than an `sm` chip).
|
|
11099
|
+
// icon-button's own `sm` size token (18px — wider than an `sm` chip).
|
|
10960
11100
|
// Only !important can reach past an inline style to keep the glyph
|
|
10961
11101
|
// proportional to the chip.
|
|
10962
11102
|
'& uni-icon': {
|
|
@@ -10971,11 +11111,19 @@ class UniTagComponent extends BaseComponent {
|
|
|
10971
11111
|
textUnderlineOffset: 3,
|
|
10972
11112
|
},
|
|
10973
11113
|
this.disabled() && { pointerEvents: 'none' },
|
|
10974
|
-
])}
|
|
11114
|
+
])} ${states}`;
|
|
10975
11115
|
}, /* @ts-ignore */
|
|
10976
11116
|
...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
10977
|
-
/**
|
|
11117
|
+
/**
|
|
11118
|
+
* Truncating label. It grows, so a chip stretched to fill a justified row
|
|
11119
|
+
* puts the slack around its text instead of behind it — the tucked ends stay
|
|
11120
|
+
* where they are and the label stays centred. `title` exposes the full text
|
|
11121
|
+
* when a budget is set.
|
|
11122
|
+
*/
|
|
10978
11123
|
this.labelClass = css({
|
|
11124
|
+
flex: '1 1 auto',
|
|
11125
|
+
minWidth: 0,
|
|
11126
|
+
textAlign: 'center',
|
|
10979
11127
|
overflow: 'hidden',
|
|
10980
11128
|
textOverflow: 'ellipsis',
|
|
10981
11129
|
whiteSpace: 'nowrap',
|
|
@@ -10984,6 +11132,7 @@ class UniTagComponent extends BaseComponent {
|
|
|
10984
11132
|
{
|
|
10985
11133
|
display: 'inline-flex',
|
|
10986
11134
|
alignItems: 'center',
|
|
11135
|
+
flex: '1 1 auto',
|
|
10987
11136
|
minWidth: 0,
|
|
10988
11137
|
// The body inherits the chip's own colours in every case.
|
|
10989
11138
|
font: 'inherit',
|
|
@@ -11011,15 +11160,34 @@ class UniTagComponent extends BaseComponent {
|
|
|
11011
11160
|
'& img': { width: '100%', height: '100%', objectFit: 'cover' },
|
|
11012
11161
|
}), /* @ts-ignore */
|
|
11013
11162
|
...(ngDevMode ? [{ debugName: "leadClass" }] : /* istanbul ignore next */ []));
|
|
11163
|
+
/** The held-open check slot: the lead's footprint and nothing in it. */
|
|
11164
|
+
this.slotClass = computed(() => css({ flex: 'none', width: this.leadSize(), height: this.leadSize() }), /* @ts-ignore */
|
|
11165
|
+
...(ngDevMode ? [{ debugName: "slotClass" }] : /* istanbul ignore next */ []));
|
|
11014
11166
|
this.dotClass = computed(() => css({
|
|
11015
11167
|
flex: 'none',
|
|
11016
|
-
width:
|
|
11017
|
-
height:
|
|
11168
|
+
width: this.dotSize(),
|
|
11169
|
+
height: this.dotSize(),
|
|
11018
11170
|
borderRadius: '50%',
|
|
11019
11171
|
backgroundColor: 'currentColor',
|
|
11020
11172
|
}), /* @ts-ignore */
|
|
11021
11173
|
...(ngDevMode ? [{ debugName: "dotClass" }] : /* istanbul ignore next */ []));
|
|
11022
11174
|
}
|
|
11175
|
+
/**
|
|
11176
|
+
* How far an element of `size` sits from its end of the chip.
|
|
11177
|
+
*
|
|
11178
|
+
* `auto` centres it in the cap: an element `size` tall has `(height - size)/2`
|
|
11179
|
+
* of chip above and below it, so the same inset horizontally makes it
|
|
11180
|
+
* concentric with the curve. A lead box lands 3px in — flowing into the round
|
|
11181
|
+
* end rather than beginning where the radius ends — while a 6px status dot
|
|
11182
|
+
* keeps its distance, because a dot pushed that far in reads as a smudge on
|
|
11183
|
+
* the edge.
|
|
11184
|
+
*/
|
|
11185
|
+
inset(size) {
|
|
11186
|
+
const configured = this.componentOptions().endInset ?? 'auto';
|
|
11187
|
+
if (typeof configured === 'number')
|
|
11188
|
+
return configured;
|
|
11189
|
+
return this.tucks() ? (this.height() - size) / 2 : inlinePaddingOf(this.themeStyle());
|
|
11190
|
+
}
|
|
11023
11191
|
remove() {
|
|
11024
11192
|
if (this.disabled())
|
|
11025
11193
|
return;
|
|
@@ -11035,8 +11203,8 @@ class UniTagComponent extends BaseComponent {
|
|
|
11035
11203
|
i0.ɵɵattribute("aria-invalid", ctx.invalid() ? "true" : null);
|
|
11036
11204
|
i0.ɵɵclassMap(ctx.hostClass());
|
|
11037
11205
|
} }, inputs: { size: [1, "size"], tone: [1, "tone"], label: [1, "label"], value: [1, "value"], maxWidth: [1, "maxWidth"], avatarSrc: [1, "avatarSrc"], avatarName: [1, "avatarName"], iconName: [1, "iconName"], symbolName: [1, "symbolName"], dot: [1, "dot"], removable: [1, "removable"], interactive: [1, "interactive"], selected: [1, "selected"], invalid: [1, "invalid"], disabled: [1, "disabled"], removeLabel: [1, "removeLabel"], controlTabIndex: [1, "controlTabIndex"] }, outputs: { removed: "removed", activated: "activated" }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'tag' }]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1$f, decls: 5, vars: 2, consts: [["body", ""], ["type", "button", 3, "class", "disabled"], [3, "class"], ["uni-icon-button", "", "variant", "ghost", "size", "sm", 3, "iconName", "disable"], [3, "name", "size"], ["aria-hidden", "true", 3, "class"], [3, "name", "font-size"], ["aria-hidden", "true"], ["alt", "", 3, "src"], [3, "name"], ["type", "button", 3, "click", "disabled"], [3, "ngTemplateOutlet"], ["uni-icon-button", "", "variant", "ghost", "size", "sm", 3, "click", "iconName", "disable"]], template: function UniTagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11038
|
-
i0.ɵɵprojectionDef(_c0$
|
|
11039
|
-
i0.ɵɵtemplate(0, UniTagComponent_ng_template_0_Template,
|
|
11206
|
+
i0.ɵɵprojectionDef(_c0$u);
|
|
11207
|
+
i0.ɵɵtemplate(0, UniTagComponent_ng_template_0_Template, 10, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
11040
11208
|
i0.ɵɵconditionalCreate(2, UniTagComponent_Conditional_2_Template, 2, 6, "button", 1)(3, UniTagComponent_Conditional_3_Template, 2, 3, "span", 2);
|
|
11041
11209
|
i0.ɵɵconditionalCreate(4, UniTagComponent_Conditional_4_Template, 2, 4, "button", 3);
|
|
11042
11210
|
} if (rf & 2) {
|
|
@@ -11051,9 +11219,228 @@ class UniTagComponent extends BaseComponent {
|
|
|
11051
11219
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'uni-tag', imports: [NgTemplateOutlet, UniIconComponent, UniIconButtonComponent, UniSymbolComponent], providers: [{ provide: COMPONENT_NAME, useValue: 'tag' }], host: {
|
|
11052
11220
|
'[class]': 'hostClass()',
|
|
11053
11221
|
'[attr.aria-invalid]': "invalid() ? 'true' : null",
|
|
11054
|
-
}, template: "<!-- Lead + label. Shared so the static and interactive bodies stay identical. -->\n<ng-template #body>\n <ng-content select=\"[tag-lead]\"></ng-content>\n\n @if (selected() &&
|
|
11222
|
+
}, template: "<!-- Lead + label. Shared so the static and interactive bodies stay identical. -->\n<ng-template #body>\n <ng-content select=\"[tag-lead]\"></ng-content>\n\n @if (selected() && selectedIcon(); as icon) {\n <uni-icon [name]=\"icon\" [size]=\"leadSize()\" />\n } @else if (reservesSlot()) {\n <!-- The check's place, held open so picking a chip never reflows the row. -->\n <span [class]=\"slotClass()\" aria-hidden=\"true\"></span>\n } @else if (avatarSrc(); as src) {\n <span [class]=\"leadClass()\" aria-hidden=\"true\">\n <img [src]=\"src\" alt=\"\" />\n </span>\n } @else if (initials(); as text) {\n <span [class]=\"leadClass()\" aria-hidden=\"true\">{{ text }}</span>\n } @else if (iconName(); as icon) {\n <uni-icon [name]=\"icon\" [size]=\"leadSize()\" />\n } @else if (symbolName(); as symbol) {\n <uni-symbol [name]=\"symbol\" [style.font-size.px]=\"leadSize()\" />\n } @else if (dot()) {\n <span [class]=\"dotClass()\" aria-hidden=\"true\"></span>\n }\n\n @if (label(); as text) {\n <span [class]=\"labelClass\" [attr.title]=\"maxWidth() ? text : null\">{{ text }}</span>\n } @else {\n <span [class]=\"labelClass\"><ng-content></ng-content></span>\n }\n</ng-template>\n\n<!-- An interactive chip's body is the button; a static chip is plain text with\n no role and no tab stop, so screen readers read it as content. -->\n@if (interactive()) {\n <button\n type=\"button\"\n [class]=\"bodyClass()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected() ?? null\"\n [attr.tabindex]=\"controlTabIndex()\"\n (click)=\"activate()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <span [class]=\"bodyClass()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </span>\n}\n\n@if (removable()) {\n <button\n uni-icon-button\n variant=\"ghost\"\n size=\"sm\"\n [iconName]=\"componentOptions().removeIcon ?? 'close'\"\n [disable]=\"disabled()\"\n [attr.tabindex]=\"controlTabIndex()\"\n (click)=\"remove()\"\n >\n {{ removeLabel() ?? 'Remove ' + (label() ?? '') }}\n </button>\n}\n" }]
|
|
11055
11223
|
}], null, { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], avatarSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarSrc", required: false }] }], avatarName: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarName", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], symbolName: [{ type: i0.Input, args: [{ isSignal: true, alias: "symbolName", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], removeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeLabel", required: false }] }], controlTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlTabIndex", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }], activated: [{ type: i0.Output, args: ["activated"] }] }); })();
|
|
11056
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniTagComponent, { className: "UniTagComponent", filePath: "lib/components/tag/tag.component.ts", lineNumber:
|
|
11224
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniTagComponent, { className: "UniTagComponent", filePath: "lib/components/tag/tag.component.ts", lineNumber: 50 }); })();
|
|
11225
|
+
|
|
11226
|
+
const _c0$t = ["chip"];
|
|
11227
|
+
const _forTrack0$5 = ($index, $item) => $item.value;
|
|
11228
|
+
function UniTagGroupComponent_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
11229
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
11230
|
+
i0.ɵɵelementStart(0, "uni-tag", 3, 0);
|
|
11231
|
+
i0.ɵɵlistener("activated", function UniTagGroupComponent_For_1_Template_uni_tag_activated_0_listener() { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggle(item_r2)); })("removed", function UniTagGroupComponent_For_1_Template_uni_tag_removed_0_listener() { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.removed.emit(item_r2.value)); });
|
|
11232
|
+
i0.ɵɵelementEnd();
|
|
11233
|
+
} if (rf & 2) {
|
|
11234
|
+
const item_r2 = ctx.$implicit;
|
|
11235
|
+
const ɵ$index_1_r4 = ctx.$index;
|
|
11236
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
11237
|
+
i0.ɵɵproperty("interactive", true)("label", item_r2.label)("value", item_r2.value)("variant", item_r2.variant ?? ctx_r2.resolvedVariant())("tone", item_r2.tone ?? ctx_r2.resolvedTone())("size", ctx_r2.resolvedSize())("selected", ctx_r2.isSelected(item_r2.value))("disabled", item_r2.disabled ?? false)("removable", item_r2.removable ?? false)("iconName", item_r2.iconName)("symbolName", item_r2.symbolName)("avatarSrc", item_r2.avatarSrc)("avatarName", item_r2.avatarName)("dot", item_r2.dot ?? false)("maxWidth", item_r2.maxWidth)("controlTabIndex", ɵ$index_1_r4 === ctx_r2.focusedIndex() ? 0 : -1);
|
|
11238
|
+
} }
|
|
11239
|
+
function UniTagGroupComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
11240
|
+
i0.ɵɵelement(0, "i", 4);
|
|
11241
|
+
} if (rf & 2) {
|
|
11242
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
11243
|
+
i0.ɵɵclassMap(ctx_r2.fillerClass);
|
|
11244
|
+
} }
|
|
11245
|
+
/**
|
|
11246
|
+
* A row of chips the user picks from: filters, facets, a set of labels.
|
|
11247
|
+
*
|
|
11248
|
+
* The group **renders its own chips** from `items` rather than projecting them.
|
|
11249
|
+
* That is what lets it own the things an app was otherwise wiring per chip —
|
|
11250
|
+
* which one is selected, which one holds the tab stop — since a parent cannot
|
|
11251
|
+
* write a projected child's inputs. `uni-tag` is unchanged by this component;
|
|
11252
|
+
* `controlTabIndex` was already its hook for a composite that manages focus.
|
|
11253
|
+
*
|
|
11254
|
+
* Keyboard model is the toolbar pattern: one tab stop for the whole group, and
|
|
11255
|
+
* the arrow keys move within it. Twelve filter chips should cost one Tab to
|
|
11256
|
+
* pass, not twelve.
|
|
11257
|
+
*/
|
|
11258
|
+
class UniTagGroupComponent extends BaseComponent {
|
|
11259
|
+
constructor() {
|
|
11260
|
+
super(...arguments);
|
|
11261
|
+
this.items = input([], /* @ts-ignore */
|
|
11262
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
11263
|
+
/**
|
|
11264
|
+
* `wrap` lets chips keep their natural widths. `justify` stretches each
|
|
11265
|
+
* filled row flush to both edges, leaving the last row ragged; chips put the
|
|
11266
|
+
* extra width around their labels, so tucked leads and remove controls stay
|
|
11267
|
+
* tucked.
|
|
11268
|
+
*/
|
|
11269
|
+
this.layout = input('wrap', /* @ts-ignore */
|
|
11270
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
11271
|
+
/** Allow more than one chip at a time. Single select replaces instead. */
|
|
11272
|
+
this.multiple = input(false, /* @ts-ignore */
|
|
11273
|
+
...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
11274
|
+
/**
|
|
11275
|
+
* The selected values — one array in both modes, as `uni-tag-input` keeps one
|
|
11276
|
+
* array for its items. Single select simply never holds more than one, which
|
|
11277
|
+
* spares callers a `T[] | T | null` union at every call site.
|
|
11278
|
+
*/
|
|
11279
|
+
this.value = model([], /* @ts-ignore */
|
|
11280
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
11281
|
+
/** The chip the user just activated, selected or deselected. */
|
|
11282
|
+
this.activated = output();
|
|
11283
|
+
this.removed = output();
|
|
11284
|
+
// Chip presentation. Named for the chips rather than inherited from
|
|
11285
|
+
// `BaseComponent`, because each one falls back to a `tagGroup` theme option
|
|
11286
|
+
// when it is absent — the group's own `variant`/`size` carry no meaning here,
|
|
11287
|
+
// since a group has no colour of its own and themes no variants.
|
|
11288
|
+
this.chipTone = input(undefined, /* @ts-ignore */
|
|
11289
|
+
...(ngDevMode ? [{ debugName: "chipTone" }] : /* istanbul ignore next */ []));
|
|
11290
|
+
this.chipSize = input(undefined, /* @ts-ignore */
|
|
11291
|
+
...(ngDevMode ? [{ debugName: "chipSize" }] : /* istanbul ignore next */ []));
|
|
11292
|
+
this.chipVariant = input(undefined, /* @ts-ignore */
|
|
11293
|
+
...(ngDevMode ? [{ debugName: "chipVariant" }] : /* istanbul ignore next */ []));
|
|
11294
|
+
this.resolvedTone = computed(() => this.chipTone() ?? this.componentOptions().chipTone ?? 'soft', /* @ts-ignore */
|
|
11295
|
+
...(ngDevMode ? [{ debugName: "resolvedTone" }] : /* istanbul ignore next */ []));
|
|
11296
|
+
this.resolvedSize = computed(() => this.chipSize() ?? this.componentOptions().chipSize ?? 'md', /* @ts-ignore */
|
|
11297
|
+
...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
|
|
11298
|
+
this.resolvedVariant = computed(() => this.chipVariant() ?? this.componentOptions().chipVariant ?? 'primary', /* @ts-ignore */
|
|
11299
|
+
...(ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []));
|
|
11300
|
+
/**
|
|
11301
|
+
* Which chip holds the group's tab stop. It moves with the arrow keys and
|
|
11302
|
+
* follows selection, so tabbing back into the group lands where the user
|
|
11303
|
+
* left off rather than at the start.
|
|
11304
|
+
*/
|
|
11305
|
+
this.focusedIndex = signal(0, /* @ts-ignore */
|
|
11306
|
+
...(ngDevMode ? [{ debugName: "focusedIndex" }] : /* istanbul ignore next */ []));
|
|
11307
|
+
// `read: ElementRef` — a `#chip` ref on a component element otherwise hands
|
|
11308
|
+
// back the component instance, which has no DOM node to focus.
|
|
11309
|
+
this.chipRefs = viewChildren('chip', { ...(ngDevMode ? { debugName: "chipRefs" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
11310
|
+
this.fillerClass = css({ flex: '10000 0 0' });
|
|
11311
|
+
this.hostClass = computed(() => {
|
|
11312
|
+
const options = this.componentOptions();
|
|
11313
|
+
return css([
|
|
11314
|
+
// Theme `fixed` carries the flex row; the entry themes no variants and no
|
|
11315
|
+
// sizes, since the chips own every colour and geometry decision.
|
|
11316
|
+
{ ...this.style() },
|
|
11317
|
+
{ ...this.theme.gap(options.gap ?? 'xs') },
|
|
11318
|
+
{ rowGap: this.theme.getSpacing(options.rowGap ?? 'xs') },
|
|
11319
|
+
this.layout() === 'justify' && {
|
|
11320
|
+
// `auto` basis, not `0`: a stretched chip grows from its own content
|
|
11321
|
+
// width, so a long label still gets more room than a short one.
|
|
11322
|
+
'& > uni-tag': { flex: '1 1 auto', minWidth: 0 },
|
|
11323
|
+
},
|
|
11324
|
+
]);
|
|
11325
|
+
}, /* @ts-ignore */
|
|
11326
|
+
...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
|
|
11327
|
+
}
|
|
11328
|
+
isSelected(value) {
|
|
11329
|
+
return this.value().includes(value);
|
|
11330
|
+
}
|
|
11331
|
+
toggle(item) {
|
|
11332
|
+
const selected = this.isSelected(item.value);
|
|
11333
|
+
this.value.update((current) => {
|
|
11334
|
+
if (selected)
|
|
11335
|
+
return current.filter((value) => value !== item.value);
|
|
11336
|
+
return this.multiple() ? [...current, item.value] : [item.value];
|
|
11337
|
+
});
|
|
11338
|
+
this.focusedIndex.set(this.items().findIndex((candidate) => candidate.value === item.value));
|
|
11339
|
+
this.activated.emit(item.value);
|
|
11340
|
+
}
|
|
11341
|
+
onKeydown(event) {
|
|
11342
|
+
const last = this.items().length - 1;
|
|
11343
|
+
if (last < 0)
|
|
11344
|
+
return;
|
|
11345
|
+
// Both axes: the row wraps, so Down from the first line is as natural a
|
|
11346
|
+
// "next chip" as Right is.
|
|
11347
|
+
switch (event.key) {
|
|
11348
|
+
case 'ArrowRight':
|
|
11349
|
+
case 'ArrowDown':
|
|
11350
|
+
event.preventDefault();
|
|
11351
|
+
this.focusChip(Math.min(this.focusedIndex() + 1, last));
|
|
11352
|
+
break;
|
|
11353
|
+
case 'ArrowLeft':
|
|
11354
|
+
case 'ArrowUp':
|
|
11355
|
+
event.preventDefault();
|
|
11356
|
+
this.focusChip(Math.max(this.focusedIndex() - 1, 0));
|
|
11357
|
+
break;
|
|
11358
|
+
case 'Home':
|
|
11359
|
+
event.preventDefault();
|
|
11360
|
+
this.focusChip(0);
|
|
11361
|
+
break;
|
|
11362
|
+
case 'End':
|
|
11363
|
+
event.preventDefault();
|
|
11364
|
+
this.focusChip(last);
|
|
11365
|
+
break;
|
|
11366
|
+
}
|
|
11367
|
+
}
|
|
11368
|
+
focusChip(index) {
|
|
11369
|
+
const clamped = Math.max(0, Math.min(index, this.items().length - 1));
|
|
11370
|
+
this.focusedIndex.set(clamped);
|
|
11371
|
+
// The tab index the chip reads is a binding, so let it settle before
|
|
11372
|
+
// moving focus — the same ordering `uni-tag-input` uses.
|
|
11373
|
+
queueMicrotask(() => {
|
|
11374
|
+
const chip = this.chipRefs()[clamped]?.nativeElement;
|
|
11375
|
+
chip?.querySelector('button')?.focus();
|
|
11376
|
+
});
|
|
11377
|
+
}
|
|
11378
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵUniTagGroupComponent_BaseFactory; return function UniTagGroupComponent_Factory(__ngFactoryType__) { return (ɵUniTagGroupComponent_BaseFactory || (ɵUniTagGroupComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UniTagGroupComponent)))(__ngFactoryType__ || UniTagGroupComponent); }; })(); }
|
|
11379
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UniTagGroupComponent, selectors: [["uni-tag-group"]], viewQuery: function UniTagGroupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11380
|
+
i0.ɵɵviewQuerySignal(ctx.chipRefs, _c0$t, 5, ElementRef);
|
|
11381
|
+
} if (rf & 2) {
|
|
11382
|
+
i0.ɵɵqueryAdvance();
|
|
11383
|
+
} }, hostAttrs: ["role", "toolbar", "aria-orientation", "horizontal"], hostVars: 2, hostBindings: function UniTagGroupComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
11384
|
+
i0.ɵɵlistener("keydown", function UniTagGroupComponent_keydown_HostBindingHandler($event) { return ctx.onKeydown($event); });
|
|
11385
|
+
} if (rf & 2) {
|
|
11386
|
+
i0.ɵɵclassMap(ctx.hostClass());
|
|
11387
|
+
} }, inputs: { items: [1, "items"], layout: [1, "layout"], multiple: [1, "multiple"], value: [1, "value"], chipTone: [1, "chipTone"], chipSize: [1, "chipSize"], chipVariant: [1, "chipVariant"] }, outputs: { value: "valueChange", activated: "activated", removed: "removed" }, features: [i0.ɵɵProvidersFeature([{ provide: COMPONENT_NAME, useValue: 'tagGroup' }]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [["chip", ""], [3, "interactive", "label", "value", "variant", "tone", "size", "selected", "disabled", "removable", "iconName", "symbolName", "avatarSrc", "avatarName", "dot", "maxWidth", "controlTabIndex"], ["aria-hidden", "true", 3, "class"], [3, "activated", "removed", "interactive", "label", "value", "variant", "tone", "size", "selected", "disabled", "removable", "iconName", "symbolName", "avatarSrc", "avatarName", "dot", "maxWidth", "controlTabIndex"], ["aria-hidden", "true"]], template: function UniTagGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11388
|
+
i0.ɵɵrepeaterCreate(0, UniTagGroupComponent_For_1_Template, 2, 16, "uni-tag", 1, _forTrack0$5);
|
|
11389
|
+
i0.ɵɵconditionalCreate(2, UniTagGroupComponent_Conditional_2_Template, 1, 2, "i", 2);
|
|
11390
|
+
} if (rf & 2) {
|
|
11391
|
+
i0.ɵɵrepeater(ctx.items());
|
|
11392
|
+
i0.ɵɵadvance(2);
|
|
11393
|
+
i0.ɵɵconditional(ctx.layout() === "justify" ? 2 : -1);
|
|
11394
|
+
} }, dependencies: [UniTagComponent], encapsulation: 2 }); }
|
|
11395
|
+
}
|
|
11396
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UniTagGroupComponent, [{
|
|
11397
|
+
type: Component,
|
|
11398
|
+
args: [{
|
|
11399
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11400
|
+
selector: 'uni-tag-group',
|
|
11401
|
+
imports: [UniTagComponent],
|
|
11402
|
+
providers: [{ provide: COMPONENT_NAME, useValue: 'tagGroup' }],
|
|
11403
|
+
host: {
|
|
11404
|
+
'[class]': 'hostClass()',
|
|
11405
|
+
role: 'toolbar',
|
|
11406
|
+
'aria-orientation': 'horizontal',
|
|
11407
|
+
'(keydown)': 'onKeydown($event)',
|
|
11408
|
+
},
|
|
11409
|
+
template: `
|
|
11410
|
+
@for (item of items(); track item.value; let i = $index) {
|
|
11411
|
+
<uni-tag
|
|
11412
|
+
#chip
|
|
11413
|
+
[interactive]="true"
|
|
11414
|
+
[label]="item.label"
|
|
11415
|
+
[value]="item.value"
|
|
11416
|
+
[variant]="item.variant ?? resolvedVariant()"
|
|
11417
|
+
[tone]="item.tone ?? resolvedTone()"
|
|
11418
|
+
[size]="resolvedSize()"
|
|
11419
|
+
[selected]="isSelected(item.value)"
|
|
11420
|
+
[disabled]="item.disabled ?? false"
|
|
11421
|
+
[removable]="item.removable ?? false"
|
|
11422
|
+
[iconName]="item.iconName"
|
|
11423
|
+
[symbolName]="item.symbolName"
|
|
11424
|
+
[avatarSrc]="item.avatarSrc"
|
|
11425
|
+
[avatarName]="item.avatarName"
|
|
11426
|
+
[dot]="item.dot ?? false"
|
|
11427
|
+
[maxWidth]="item.maxWidth"
|
|
11428
|
+
[controlTabIndex]="i === focusedIndex() ? 0 : -1"
|
|
11429
|
+
(activated)="toggle(item)"
|
|
11430
|
+
(removed)="removed.emit(item.value)"
|
|
11431
|
+
/>
|
|
11432
|
+
}
|
|
11433
|
+
@if (layout() === 'justify') {
|
|
11434
|
+
<!-- Justification filler. It can only ever land on the last line, where
|
|
11435
|
+
it swallows the slack — so filled rows stretch flush and the last one
|
|
11436
|
+
keeps its natural widths, the way justified text behaves. A group
|
|
11437
|
+
that fits on one line is *all* last line, so it does not stretch. -->
|
|
11438
|
+
<i aria-hidden="true" [class]="fillerClass"></i>
|
|
11439
|
+
}
|
|
11440
|
+
`,
|
|
11441
|
+
}]
|
|
11442
|
+
}], null, { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], activated: [{ type: i0.Output, args: ["activated"] }], removed: [{ type: i0.Output, args: ["removed"] }], chipTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipTone", required: false }] }], chipSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipSize", required: false }] }], chipVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipVariant", required: false }] }], chipRefs: [{ type: i0.ViewChildren, args: ['chip', { ...{ read: ElementRef }, isSignal: true }] }] }); })();
|
|
11443
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UniTagGroupComponent, { className: "UniTagGroupComponent", filePath: "lib/components/tag/tag-group.component.ts", lineNumber: 76 }); })();
|
|
11057
11444
|
|
|
11058
11445
|
/**
|
|
11059
11446
|
* UniTagComponent Barrel File
|
|
@@ -20249,5 +20636,5 @@ class UniTourComponent extends BaseComponent {
|
|
|
20249
20636
|
* Generated bundle index. Do not edit.
|
|
20250
20637
|
*/
|
|
20251
20638
|
|
|
20252
|
-
export { BodyRenderDirective, ConfirmationDialogComponent, DRAWER_PANEL, DragAndDropDirective, FOCUSABLE_SELECTOR, ListboxNavigation, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, TRANSFORM_ORIGINS, ThemeService, UNI_FORMS, UNI_LAYOUT, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxDirective, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCalendarComponent, UniCalloutComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterDirective, UniCheckboxComponent, UniComboboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDateInputComponent, UniDateTimeInputComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerButtonsComponent, UniDrawerComponent, UniDrawerHeaderComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaDirective, UniGridDirective, UniIconButtonComponent, UniIconComponent, UniInlineButtonComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniNumberInputComponent, UniNumberRangeInputComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniQuantityStepperComponent, UniRadioComponent, UniRecordDatasource, UniRowDirective, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackDirective, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTagInputComponent, UniTextDirective, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniTimeInputComponent, UniToggleComponent, UniTooltipComponent, UniTourComponent, UniWrapDirective, acceptableFile, addDays, addMonths, anchorArrowStyles, anchorStyles, buildMonthGrid, clampDecimal, clearAnchorName, compareDecimal, createAnnouncer, createListboxNavigation, createPressRepeat, dayOfWeek, daysInMonth, decimalScale, discreteOverlayTransition, evaluateExpression, focusableElements, formatDate, formatMonthHeading, formatNumber, formatTime, fromScaled, getFileExtension, inclusiveDayCount, isCanonicalDecimal, isDivider, isToggleOpen, isValidDate, isoDate, joinDateTime, listboxPopupAttr, listboxPopupStyles, localeDatePlaceholder, localeDefaultHour12, localeFieldOrder, localeMonthNames, localeNumberParts, localeWeekStart, losesPrecision, monthOf, motionSafe, newAnchorName, newListboxAnchor, normalizeDecimal, parseDateText, parseNumber, parseTimeText, promoteListboxPopup, rawNumberText, resolveElement, resolveFocusTarget, resolveNumberFormat, restoreOverlayFocus, roundDecimal, setAnchorName, settleNumber, shiftDecimal, speakNumber, splitDateTime, spotlightStyles, stepDecimal, supportsAnchoredPopup, timeSlots, toAsciiDigits, toDecimal, toNumber, toScaled, todayIso, transformOriginFor, uniqueId, useTimer, visuallyHidden, weekdayNames };
|
|
20639
|
+
export { BodyRenderDirective, ConfirmationDialogComponent, DRAWER_PANEL, DragAndDropDirective, FOCUSABLE_SELECTOR, ListboxNavigation, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, TRANSFORM_ORIGINS, ThemeService, UNI_FORMS, UNI_LAYOUT, UNI_THEMES, UniAlertComponent, UniAppBarComponent, UniAvatarComponent, UniAvatarGroupComponent, UniBackgroundComponent, UniBadgeComponent, UniBaseDatasource, UniBoxDirective, UniBreadcrumbComponent, UniButtonComponent, UniButtonGroupComponent, UniCalendarComponent, UniCalloutComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterDirective, UniCheckboxComponent, UniComboboxComponent, UniDataSearchComponent, UniDataTableComponent, UniDateInputComponent, UniDateTimeInputComponent, UniDebounceInputComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDrawerButtonsComponent, UniDrawerComponent, UniDrawerHeaderComponent, UniDropdownComponent, UniExpandAreaComponent, UniExpandComponent, UniExpandToggleComponent, UniFileDropZoneComponent, UniGridAreaDirective, UniGridDirective, UniIconButtonComponent, UniIconComponent, UniInlineButtonComponent, UniInputBoxComponent, UniInputComponent, UniJsonViewComponent, UniMenuComponent, UniMultiSelectComponent, UniMultiSelectDropdownComponent, UniNotificationBadgeComponent, UniNumberInputComponent, UniNumberRangeInputComponent, UniPaginatorComponent, UniPopoverComponent, UniProgressBarComponent, UniProgressGaugeComponent, UniQuantityStepperComponent, UniRadioComponent, UniRecordDatasource, UniRowDirective, UniScrollAreaComponent, UniSearchInputComponent, UniSelectComponent, UniServerSideDatasource, UniSkeletonComponent, UniSliderComponent, UniSnackbarComponent, UniSortHeaderComponent, UniStackDirective, UniStatComponent, UniSymbolComponent, UniTabComponent, UniTabsComponent, UniTagComponent, UniTagGroupComponent, UniTagInputComponent, UniTextDirective, UniTextareaComponent, UniThemeBuilderComponent, UniThemeSwitchComponent, UniTimeInputComponent, UniToggleComponent, UniTooltipComponent, UniTourComponent, UniWrapDirective, acceptableFile, addDays, addMonths, anchorArrowStyles, anchorStyles, buildMonthGrid, clampDecimal, clearAnchorName, compareDecimal, createAnnouncer, createListboxNavigation, createPressRepeat, dayOfWeek, daysInMonth, decimalScale, discreteOverlayTransition, evaluateExpression, focusableElements, formatDate, formatMonthHeading, formatNumber, formatTime, fromScaled, getFileExtension, inclusiveDayCount, isCanonicalDecimal, isDivider, isToggleOpen, isValidDate, isoDate, joinDateTime, listboxPopupAttr, listboxPopupStyles, localeDatePlaceholder, localeDefaultHour12, localeFieldOrder, localeMonthNames, localeNumberParts, localeWeekStart, losesPrecision, monthOf, motionSafe, newAnchorName, newListboxAnchor, normalizeDecimal, parseDateText, parseNumber, parseTimeText, promoteListboxPopup, rawNumberText, resolveElement, resolveFocusTarget, resolveNumberFormat, restoreOverlayFocus, roundDecimal, setAnchorName, settleNumber, shiftDecimal, speakNumber, splitDateTime, spotlightStyles, stepDecimal, supportsAnchoredPopup, timeSlots, toAsciiDigits, toDecimal, toNumber, toScaled, todayIso, transformOriginFor, uniqueId, useTimer, visuallyHidden, weekdayNames };
|
|
20253
20640
|
//# sourceMappingURL=uni-design-system-uni-angular.mjs.map
|